Skip to content

Template fan-out key misses html lang, body aria-hidden and favicon links that template rules read #614

Closed

Description

@nc9

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).

Part of #637.

Activity

  1. added
    enhancement
    P2
    size: S
    rules
    on Oct 9, 2026
  2. nc9 commented on Oct 11, 2026

    @nc9
    ContributorAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2enhancementrulessize: S

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions