Skip to content

fix(engine): carried pages earn no passes for info-only rules #2167 - #2171

Closed
nc9 wants to merge 1 commit into
mainfrom
boat/carried-info-only-2167
Closed

nc9 wants to merge 1 commit into
mainfrom
boat/carried-info-only-2167

Conversation

@nc9

@nc9 nc9 commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

Closes #2167

A capped re-audit credited each carried page one pass for rules whose checks are all info (e.g. content/word-count), which a full audit scores as nothing. The producer's tallies already omit such rules; carriedChecksPerPageFor now reads a rule missing from present tallies as 0 checks per page (was floored to 1). A chunked body with no tallies at all (older CLI) keeps 1. No wire format change.

Acceptance criteria

Gates

  • bun run scripts/test-suites.ts --run audit-engine: 2369 pass, 3 skip, 0 fail
  • audit-engine typecheck clean; bun scripts/changelog.ts check OK
  • New tests fail with the src change reverted (3 fail), pass with it.

Agent skill: no change needed.

@nc9

nc9 commented Nov 20, 2026

Copy link
Copy Markdown
Contributor Author

Closing unmerged. A rule that is absent from this run's tallies can't be told apart from a scored rule that matched no page, so giving carried pages 0 passes would collapse scored rules on partial re-audits. No metadata identifies info-only rules without a new wire field. The finding is kept on #2167.

nik

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.

engine: carried pages earn passes for info-only rules that a full audit scores as nothing (capped re-audit still 1 point high after #2099)

1 participant