You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Template fan-out key misses html lang, body aria-hidden and favicon links that template rules read #614
Follow-up to #275 / #580. The template fan-out now groups on the chrome key, the origin and fanoutInputSignature. Three rules that declare verdictScope: "template" still read inputs outside that key:
a11y/html-xml-lang-mismatch reads lang and xml:lang on <html>
a11y/aria-hidden-body reads aria-hidden on <html> and <body>
core/favicon reads the href and rel of link[rel*="icon"]
When two pages share the chrome key but differ in one of these, the second page inherits the first page's verdict. That happens in cloud audits and in CLI audits run with SQUIRREL_RULE_CACHE=0. The CONTENT_READ_METAS tripwire covers only the literal meta[name="…"] selector form, so nothing catches a declared rule that starts reading a new input.
Acceptance Criteria
Two pages with the same chrome key that differ only in <html lang>, xml:lang, aria-hidden on <html>/<body>, or a link[rel*=icon] href do not share a fan-out group, each pinned by a counterexample in template-fanout-equivalence-golden.test.ts that fails on the current key
A test fails when a rule declaring verdictScope: "template" reads an element or attribute that neither the chrome key nor fanoutInputSignature covers, or the VerdictScope doc names the exact inputs that test does not check
The gymshark and openelectricity cluster and inherited-page counts in benchmarks/2026-09-perf-program.md are re-measured after the change
Related: #585 (derive the fan-out signature from what the declared rules read, so this class of miss fails CI).
Landed in ad2e562 (#621): verified against the diff: seven counterexample pairs in template-fanout-equivalence-golden.test.ts (each fails on the previous key), the template-verdict-inputs tripwire plus the VerdictScope doc naming every unkeyed input, and the gymshark/openelectricity re-measure in benchmarks/2026-09-perf-program.md; main CI green.
Activity
test(rules): tripwire on the selectors and attributes template rules …
fix(audit-engine): fan-out signature covers html/body attrs and icon …
test(rules): tripwire on the selectors and attributes template rules …
test(audit-engine): pin the #614 inputs as end-to-end counterexamples…
test(rules): tripwire reviews every read of each template rule, Verdi…
docs(benchmarks): re-measure fan-out clusters on gymshark and openele…
fix(audit-engine): key icon links as JSON pairs in document order #614
test(rules): tripwire scans helper files and CI attribute reads, skip…
test(rules): tripwire strips comments token-aware and records CI attr…
chore(changelog): merge main into fix/template-key-614, keep both [Un…
nc9 commentedon Oct 11, 2026
Landed in ad2e562 (#621): verified against the diff: seven counterexample pairs in template-fanout-equivalence-golden.test.ts (each fails on the previous key), the template-verdict-inputs tripwire plus the VerdictScope doc naming every unkeyed input, and the gymshark/openelectricity re-measure in benchmarks/2026-09-perf-program.md; main CI green.