Skip to content

docs(contributing): declaring verdictScope template (#585 AC4) - #1364

Closed
nc9 wants to merge 2 commits into
mainfrom
docs/fanout-rule-authors-585
Closed

nc9 wants to merge 2 commits into
mainfrom
docs/fanout-rule-authors-585

Conversation

@nc9

@nc9 nc9 commented Oct 30, 2026

Copy link
Copy Markdown
Contributor

Refs #585

Adds the rule-author section (AC 4): what a template declaration claims, and the two tests that check it (template-verdict-inputs.test.ts tripwire, template-fanout-parity-golden.test.ts).

AC 1-3 status: the tripwire already fails on any read not on a rule's reviewed list and the parity golden runs in CI, but an UNKEYED reviewed read is allowed, so a signature fully derived from the declared reads is not done. Left open for a maintainer call on whether to derive it or accept the tripwire.

Docs only. Skill change: none.

nik

@claude

claude Bot commented Oct 30, 2026

Copy link
Copy Markdown

Docs-only change. I checked that the referenced files and symbols exist (template-verdict-inputs.test.ts, REVIEWED, template-fanout-parity-golden.test.ts, fanoutInputSignature, VerdictScope), and the keyed/unkeyed description matches the test and the VerdictScope doc.

  • (low) CONTRIBUTING.md new section: it leaves out the third check a template declaration has to pass. A new page rule must be recorded in packages/rules/tests/fixtures/template-invariance-measured.json, and rule-verdict-scope.test.ts asserts each declaration against it. Only a rule measured constant on both corpora may sit in constantRules. VerdictScope and AGENTS.md both mention this, so a one-line pointer would help.
  • (nit) "never body content" is slightly stronger than the code. REVIEWED lists body as a keyed read for a11y/aria-hidden-body-style rules. Something like "never per-page body content" would be more accurate.
  • (nit) AGENTS.md has a matching "Changing a rule" note about template-verdict-inputs.test.ts. A cross-link would keep the two files from drifting.

@nc9
nc9 force-pushed the docs/fanout-rule-authors-585 branch from 6d12f31 to a4df9b8 Compare October 30, 2026 19:21
@claude

claude Bot commented Oct 30, 2026

Copy link
Copy Markdown

Docs-only change to CONTRIBUTING.md. I found no problems. Every file the new section names exists: template-fanout.ts (with fanoutInputSignature), template-verdict-inputs.test.ts (with REVIEWED), rule-verdict-scope.test.ts, template-fanout-parity-golden.test.ts, and the VerdictScope type in packages/rules/src/types.ts. The core/charset demotion is also recorded in the measured fixture.

The section says "Three tests" and lists three. The wording follows the house style, with no em-dashes. I did not run bun run docs:check.

  • (nit) The new section sits between "Docs" and "Issues" in CONTRIBUTING.md. It reads more naturally next to the rule-authoring guidance. This is optional.

Whether to derive the fan-out signature from the declared reads is the open maintainer decision the PR body already mentions.

@nc9

nc9 commented Oct 30, 2026

Copy link
Copy Markdown
Contributor Author

Landed in v0.0.145 as b357023c 80549581 via #1377. Release: https://github.com/squirrelscan/squirrelscan/releases/tag/v0.0.145. Closing this original.

nik

@nc9 nc9 closed this Oct 30, 2026
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