From e41d9560ba757ba03ab53dd072b3699b563a3663 Mon Sep 17 00:00:00 2001 From: Diego Resendez Date: Mon, 12 Oct 2026 16:07:15 -0500 Subject: [PATCH] test(router-parity): make the app fixture's hex route disjoint for CARD-13 (owner approval required) The frozen app fixture declares GET /n/:num(\d+) and GET /n/:code([0-9a-f]+). Both constraints accept digits, so CARD-13 (#127) makes this pair a boot error, and the fixture app could no longer start. That would fail app-fetch.json and app-node.json, and the Deno, Bun and workerd parity runs that boot the same app. Narrow nCode to [a-f]+. The two frozen requests on this pair still get the captured answers: /n/42 goes to nNum and /n/ff goes to nCode, with the same params. No frozen JSON file changes. What is lost at app level is the equal-rank registration tie between two overlapping constraints. CARD-13 now forbids that tie at boot. The tie stays covered by matcher-hand.json, which calls the matcher without booting an app. Owner approval required (CARD-08 rule): this edits a file under test/router-parity/. Signed-off-by: Diego Resendez --- test/router-parity/app-fixture.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/router-parity/app-fixture.ts b/test/router-parity/app-fixture.ts index d5e2a71..af5141f 100644 --- a/test/router-parity/app-fixture.ts +++ b/test/router-parity/app-fixture.ts @@ -32,7 +32,11 @@ class ParityHttp { @Get('/n/:num(\\d+)') nNum(@param() p: Record) { return reply('nNum', p); } - @Get('/n/:code([0-9a-f]+)') nCode(@param() p: Record) { + // Was `[0-9a-f]+`, overlapping `\d+` above: an equal-rank tie settled by registration order. + // CARD-13 (#127) makes that pair a boot error, so the app can no longer declare it; the tie stays + // covered at matcher level (`matcher-hand.json`), which never boots an app. `[a-f]+` keeps both + // frozen requests — `/n/42` and `/n/ff` — answered exactly as captured. + @Get('/n/:code([a-f]+)') nCode(@param() p: Record) { return reply('nCode', p); } @Get('/files') files(@param() p: Record) {