CARD-07 will index local and remote mesh routes as two radix trees and keep
today's unified precedence: the most specific route wins across both trees, a
tie goes to the local route, and Allow is the union. This freezes that behaviour
from ed47836, through app.fetch and a Node socket, in a new file
(owner-mesh-allow.json); existing captures are untouched.
- Local GET and remote POST on one path: PUT is 405 and OPTIONS is 204, both
with Allow GET, HEAD, POST, OPTIONS. HEAD uses the local GET.
- Local static GET /api/v/b with remote POST /api/v/🆔 the same union on
/api/v/b, and only POST, OPTIONS on /api/v/c.
- A remote GET with no local route: OPTIONS advertises GET, HEAD, OPTIONS, but
HEAD answers 404. The teacup resolves HEAD to the remote GET implicitly,
forwards it as HEAD, and the teapot finds no plan for (pattern, HEAD). That
is the mesh proxy, not the matcher, and is captured as observed.
The mutation check still kills 12 of 12.
Refs #109
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>