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 <diego.resendez@zero-oneit.com>
This commit is contained in:
chrnx committed 2026-10-12 16:07:15 -05:00
1 parent c2db4f69c6
commit e41d9560ba
1 file changed
+5 -1
+5 -1
View File
@@ -32,7 +32,11 @@ class ParityHttp {
@Get('/n/:num(\\d+)') nNum(@param() p: Record<string, string>) {
return reply('nNum', p);
}
@Get('/n/:code([0-9a-f]+)') nCode(@param() p: Record<string, string>) {
// 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<string, string>) {
return reply('nCode', p);
}
@Get('/files') files(@param() p: Record<string, string>) {