Skip to content

fix(core-contracts): pin LINK_TARGET_SET_RULES to the link rules' emitted check names (repo#3022) - #1981

Merged
nc9 merged 1 commit into
mainfrom
boat/link-target-set-pin-3022
Nov 16, 2026
Merged

nc9 merged 1 commit into
mainfrom
boat/link-target-set-pin-3022

Conversation

@nc9

@nc9 nc9 commented Nov 15, 2026

Copy link
Copy Markdown
Contributor

Closes squirrelscan/repo#3022.

What

  • New packages/rules/tests/link-target-set-rules-3022.test.ts: (1) every kebab-case check name literal in broken-links.ts and broken-external-links.ts must be in LINK_TARGET_SET_RULES; (2) both rules are run over fixtures that emit every row kind reachable without placement data, and any emitted check that lists items must be mapped.
  • The test found two real gaps: possibly-broken-external-links and awaiting-confirmation-external-links list unsettled links but were missing from the external rule's unverified list. Added them, so a link sitting in either at the previous audit is not read as newly broken.

Acceptance criteria

  • Test fails when a link-listing check is missing from the map: it failed on the two names above before the fix (2 failing, then 5 pass).
  • Private alert imports the contract map: private follow-up after the gitlink bump (see below).

Gates

  • bun test packages/rules/tests/link-target-set-rules-3022.test.ts: 5 pass
  • bun test packages/audit-engine/tests/publish-cap.test.ts: 64 pass
  • typecheck in packages/rules and packages/core-contracts: pass

Docs: no user-facing change, no rule added. Agent skill: no change needed.

@nc9
nc9 marked this pull request as ready for review November 16, 2026 08:51
…tted check names (repo#3022)

Signed-off-by: Nik Cubrilovic <[email protected]>
@nc9
nc9 force-pushed the boat/link-target-set-pin-3022 branch from 263dc58 to 3e38fc0 Compare November 16, 2026 15:09
@nc9
nc9 merged commit 01aa1aa into main Nov 16, 2026
16 checks passed
@nc9
nc9 deleted the boat/link-target-set-pin-3022 branch November 16, 2026 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant