Skip to content

Gate: narrow the corpus-report.md slurp to the report's table cells #190

Closed

Description

@lex00

Follow-up to #189, which shipped the figure gate. Filed against the merged state at d682952.

What the gate accepts today

spec/figures.test.ts scans paper/*.md prose and requires every integer to be computable from the tree or allowlisted. "Computable" is the four figures.mjs counts, two hardcoded subtractions (rulesTotal − rulesWithFixture, fixtures − wholeBuildFixtures), and every 2-to-4-digit number appearing anywhere in packages/conformance/corpus-report.md, because the paper quotes that report throughout.

With identifier-blanking now running on both sides, the accepted set is 24 values:

4, 11, 12, 13, 14, 16, 18, 19, 22, 29, 31, 32, 55, 62, 65, 72,
109, 127, 135, 139, 142, 304, 440, 441

That is 0.24% of the range, so the gate is tight overall.

The residual, stated so a fix can be measured

11 of the 31 values between 10 and 40 are accepted. The gate is loosest exactly where the risk is highest, because a stale count is usually the true value from an earlier revision and therefore close to it.

What survives: a per-entry figure quoted in paper prose from corpus-report.md, gone stale, coinciding with another accepted value. The large distinctive counts carrying the paper's claims — 127, 135 of 139, 109, 441, 440, 304 — are well covered, and all three defects #189 caught were of that kind.

The fix

Narrow the slurp from "every number in the report" to the report's own table cells, so a number only becomes computable by being a figure the report actually publishes rather than by appearing anywhere in its text.

Deferred from #189 deliberately: it is new parsing of a file the gate does not otherwise structure, and writing it immediately before a merge was the wrong risk. Nothing about it is urgent.

Acceptance

  • The accepted set is recomputed and printed, and judged against the 24 above rather than asserted to have improved. If it does not shrink, the change bought nothing and should not land.
  • The 10-to-40 density is reported before and after, since that band is the actual weakness.
  • No new allowlist entries. If narrowing the slurp forces exemptions, it has moved the problem rather than fixed it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions