From 5c57addd159f6cbae974af492b07666d5b07887a Mon Sep 17 00:00:00 2001 From: Vivswan Shah <58091053+Vivswan@users.noreply.github.com> Date: Mon, 21 Sep 2026 19:36:18 -0400 Subject: [PATCH] test(autolinks): drop the case the contract tests already pin The read-port shape case restates the endpoint table at runtime; the canonical read-port case in the contract tests pins the port's derivation for every section. The duplicate-prefix validate case stays: it is the only pin that identical prefixes raise the duplicate issue alone, without an overlapping-prefix issue beside it. The convergence twin stays: its final-state assertion is the only pin that a declared false flag wins over a live true one on the recreate. Test-only; no source changes. --- src/sections/autolinks/autolinks.test.ts | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/sections/autolinks/autolinks.test.ts b/src/sections/autolinks/autolinks.test.ts index fab82596..92d0a591 100644 --- a/src/sections/autolinks/autolinks.test.ts +++ b/src/sections/autolinks/autolinks.test.ts @@ -274,15 +274,4 @@ describe("autolinks", () => { api.state.autolinks.map((a) => [a.key_prefix, a.url_template, a.is_alphanumeric]), ).toEqual([["TICKET-", "https://example.com/TICKET/", false]]); }); - - test("the read port exposes exactly the list role in its denied posture", () => { - const ctx = planContext(autolinksSection, new MockApi({}), REPO); - expect(Object.keys(ctx.read)).toEqual(["list"]); - // @ts-expect-error a write role is not a read: the port has no `create` - ctx.read.create; - // @ts-expect-error nor a `remove` - ctx.read.remove; - // @ts-expect-error a "denied" primary read offers no 404-tolerant helper - ctx.read.list.probeAbsent; - }); });