Repository navigation
Open
Feature
2 / 32 of 3 issues completed
Copy link
Labels
P2hamsterwheelenhancementNew feature or requestrulespackages/rules — audit rule definitionssize: XLhamsterwheel
Description
Template fan-out runs a template-scoped rule on one representative page per cluster and copies its verdict to the rest. That is only correct when every input the rule reads is in the fan-out key, and today it also cannot run alongside the rule-result cache. This epic makes a fanned audit give the same findings as running every rule on every page, with CI failing when a rule reads an input the key misses.
Acceptance Criteria
- Every sub-issue below is closed
- An audit with template fan-out produces the same findings as the same audit with fan-out off, on the engine golden fixtures and the fan-out bench estates
- A rule declaring
verdictScope: "template"that reads an input outside the fan-out key fails CI (perf(audit-engine): derive the template fan-out signature from what the declared rules read, with a parity test #585, Template fan-out key misses html lang, body aria-hidden and favicon links that template rules read #614, perf(audit-engine): derive the template fan-out signature from what the declared rules read #1373) - The rule-result cache and template fan-out run together on a warm audit (Make the rule-result cache and template fan-out compose #296)
Sub-issues
- Template fan-out key misses html lang, body aria-hidden and favicon links that template rules read #614 Template fan-out key misses html lang, body aria-hidden and favicon links that template rules read
- perf(audit-engine): derive the template fan-out signature from what the declared rules read, with a parity test #585 perf(audit-engine): derive the template fan-out signature from what the declared rules read, with a parity test (closed: the tripwire and parity golden shipped; the derivation continues in perf(audit-engine): derive the template fan-out signature from what the declared rules read #1373)
- perf(audit-engine): derive the template fan-out signature from what the declared rules read #1373 perf(audit-engine): derive the template fan-out signature from what the declared rules read (cluster-coverage measurement, then derive or keep the tripwire)
- Make the rule-result cache and template fan-out compose #296 Make the rule-result cache and template fan-out compose
Sub-issues
Collapse Sub-issuesSub-issues
Loading 3 sub-issues
Metadata
Metadata
Assignees
Labels
P2hamsterwheelenhancementNew feature or requestrulespackages/rules — audit rule definitionssize: XLhamsterwheel
Activity
nc9 commentedon Oct 11, 2026
Checked against current main (ad95fb2):
fanoutInputSignatureinpackages/audit-engine/src/template-fanout.tsnow includes the<html>lang, xml:lang and aria-hidden, the<body>aria-hidden, and icon links.packages/rules/tests/template-verdict-inputs.test.ts, a source-scan tripwire that fails CI when a declared template rule starts reading something not on its reviewed KEYED/UNKEYED list. The signature is still hand-written, and theVerdictScopedoc inpackages/rules/src/types.ts(lines 122 to 151) lists the reviewed reads it does not cover: raw HTML, everythinggetCWVHintsreads, inline script and style bodies, and more. So a fanned audit can still differ from one with fan-out off.packages/audit-engine/src/streaming.ts:299still makes the rule cache and fan-out mutually exclusive.Left for the epic: #585 criteria 1 and 4 (criterion 3 I did not measure), and all of #296.