CARD-07 replaces the linear HTTP matcher with a radix index. Before any of that code changes, the behaviour it must preserve has to exist somewhere the new code cannot quietly move it. manifest.json names the existing tests retained unchanged (ROUTER-CORPUS §1), pinned toed47836instead of42376c6: #117 and #122 landed after the corpus was written. Every named file and test was verified to exist and pass there; none was renamed. Three upgrade-path tests from #117 are listed separately as proposed additions, pending D5. manifest.test.ts fails if a named test disappears. oracle.ts is a verbatim copy of the matcher ated47836(matchRoute, resolveRoute, allowedMethods, normalizeRequestPath, compilePattern, matchWsRoute), with local route types and its own caches. Its header says it must not be edited to fit a new implementation, and the manifest test fails if anything under src/ imports it. frozen.ts reads the captured baseline. It refuses `vitest -u`, and the capture switch only fills a missing file, never overwrites one. Refs #109 Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
156 lines
6.1 KiB
JSON
156 lines
6.1 KiB
JSON
{
|
|
"purpose": "Existing tests retained unchanged as the radix-router compatibility baseline (FPRD-001 CARD-08, ROUTER-CORPUS §1, #109).",
|
|
"revision": "ed47836c9820c47bf4ed5e902d91e019abdb110a",
|
|
"corpusRevision": "42376c6693c7e15fadbcfb544172cc571fcacef0",
|
|
"verification": {
|
|
"date": "2026-10-10",
|
|
"revision": "ed47836c9820c47bf4ed5e902d91e019abdb110a",
|
|
"command": "npx vitest run <every vitest file below> --reporter=json; npm run test:deno; npm run test:bun; npm run test:edge",
|
|
"result": "Every file and every named test exists at the pinned revision and passes. No test was renamed or removed between 42376c6 and ed47836; src/http/router.ts is byte-identical between the two.",
|
|
"renamed": []
|
|
},
|
|
"retained": [
|
|
{
|
|
"surface": "Pattern grammar, normalization, matching, Allow, HEAD",
|
|
"file": "test/router.test.ts",
|
|
"scope": "file"
|
|
},
|
|
{
|
|
"surface": "HTTP adapter",
|
|
"file": "test/http.test.ts",
|
|
"scope": "tests",
|
|
"tests": [
|
|
"matches a static + :param route and extracts params",
|
|
"http streaming > routes by method (non-GET no longer falls through)"
|
|
]
|
|
},
|
|
{
|
|
"surface": "Fetch adapter",
|
|
"file": "test/fetch.test.ts",
|
|
"scope": "tests",
|
|
"tests": [
|
|
"app.fetch > handles GET and returns JSON 200",
|
|
"app.fetch > 404s an unknown route",
|
|
"app.fetch on a mesh app > serves without ever calling listen()",
|
|
"app.fetch on a mesh app > does not re-boot when listen() follows a fetch"
|
|
]
|
|
},
|
|
{
|
|
"surface": "App declarations and introspection",
|
|
"file": "test/app.test.ts",
|
|
"scope": "tests",
|
|
"tests": [
|
|
"app.graph / explain > graph() returns nodes (with origin/needs/provides) and routes with their sliced chain",
|
|
"app.graph / explain > explain() returns the rich chain with origin and a handler entry",
|
|
"route table validation > rejects routes with the same method and effective pattern",
|
|
"route table validation > allows the same effective pattern under different methods",
|
|
"devGraph endpoint > serves /__graph__ as HTML when devGraph:true",
|
|
"devGraph endpoint > does NOT mount /__graph__ without devGraph",
|
|
"devGraph endpoint > serves /__graph__ and /__openapi__ over app.fetch too (runtime-agnostic dev tools)",
|
|
"app streaming wiring > serves a @Ws route receiving @inbound and returning a channel"
|
|
]
|
|
},
|
|
{
|
|
"surface": "OpenAPI",
|
|
"file": "test/openapi.test.ts",
|
|
"scope": "file"
|
|
},
|
|
{
|
|
"surface": "WebSocket selection",
|
|
"file": "test/ws-core.test.ts",
|
|
"scope": "tests",
|
|
"tests": ["runWsConnection (neutral core) > matchWsRoute finds a pattern and captures params"]
|
|
},
|
|
{
|
|
"surface": "Node WebSocket upgrade",
|
|
"file": "test/ws.test.ts",
|
|
"scope": "tests",
|
|
"tests": [
|
|
"ws upgrade > echoes inbound to outbound and aborts on close",
|
|
"ws upgrade > closes with a 4000+status code when the WS open() throws an HttpError"
|
|
]
|
|
},
|
|
{
|
|
"surface": "Mesh route splicing",
|
|
"file": "test/mesh/integration.test.ts",
|
|
"scope": "tests",
|
|
"tests": [
|
|
"mesh skeleton integration > teapot still serves its own local route (regression)",
|
|
"mesh skeleton integration > refuses to boot when two teapots export the same route, naming both",
|
|
"mesh skeleton integration > refuses ambiguous remote routes that differ only by parameter name",
|
|
"mesh skeleton integration > accepts the same route from a single teapot (regression: no false positive)",
|
|
"mesh skeleton integration > gives a local route precedence over a remote one, and says so",
|
|
"mesh skeleton integration > does not warn when a remote route has no local twin"
|
|
]
|
|
}
|
|
],
|
|
"runtimeSmoke": [
|
|
{
|
|
"file": "test/deno/ws.test.ts",
|
|
"runner": "npm run test:deno",
|
|
"tests": [
|
|
"serveDeno: HTTP + WebSocket round-trip through the graph",
|
|
"serveDeno: a malformed upgrade path closes 1008 and the server keeps serving"
|
|
]
|
|
},
|
|
{
|
|
"file": "test/bun/ws.test.ts",
|
|
"runner": "npm run test:bun",
|
|
"tests": [
|
|
"serveBun: HTTP + WebSocket round-trip",
|
|
"serveBun: a malformed upgrade path closes 1008 and the server keeps serving"
|
|
]
|
|
},
|
|
{
|
|
"file": "test/deno/mesh.test.ts",
|
|
"runner": "npm run test:deno",
|
|
"tests": [
|
|
"mesh on Deno: teacup resolves a Deno teapot through the graph",
|
|
"mesh on Deno: a teapot refuses a bad secret over its control channel"
|
|
]
|
|
},
|
|
{
|
|
"file": "test/bun/mesh.test.ts",
|
|
"runner": "npm run test:bun",
|
|
"tests": [
|
|
"mesh on Bun: teacup resolves a Bun teapot through the graph",
|
|
"mesh on Bun: a teapot refuses a bad secret over its control channel"
|
|
]
|
|
},
|
|
{
|
|
"file": "test/edge/run.ts",
|
|
"runner": "npm run test:edge",
|
|
"tests": []
|
|
}
|
|
],
|
|
"supplementary": {
|
|
"note": "Not in ROUTER-CORPUS §1. Proposed because #117 (merged after the corpus was written) moved WS upgrade paths through normalizeRequestPath and added the reserved-path refusal on app.upgrade. Pending D5 approval; they run in npm test either way.",
|
|
"retained": [
|
|
{
|
|
"surface": "Node upgrade path normalization and rejection (#104)",
|
|
"file": "test/ws-upgrade-reject.test.ts",
|
|
"scope": "file"
|
|
},
|
|
{
|
|
"surface": "Reserved mesh control path ahead of WS routes (Node)",
|
|
"file": "test/mesh/control-upgrade.test.ts",
|
|
"scope": "file"
|
|
},
|
|
{
|
|
"surface": "Reserved mesh control path over app.upgrade",
|
|
"file": "test/mesh/fetch-boot.test.ts",
|
|
"scope": "tests",
|
|
"tests": [
|
|
"mesh control over app.upgrade (no listen) > serves the handshake to a peer that never touched a Node server",
|
|
"mesh control over app.upgrade (no listen) > refuses the reserved path explicitly on an app that exports nothing"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"frozenFixtures": {
|
|
"dir": "test/router-parity/frozen",
|
|
"oracle": "test/router-parity/oracle.ts",
|
|
"readme": "test/router-parity/README.md"
|
|
}
|
|
}
|