Skip to content

I2846 — A hand-pinned budget in a case is reported unless it states its margin

Report a literal budget, count or size that a case compares against a product's output without a comment giving its margin and the reason it holds, so a case does not go red only because its subject grew.

READY wave 0 · p2 · implementation profile · parallel safe

Part of M004 — Performance is executable evidence, and the hot path does no canonical work twice.

Ready. Every dependency is done, so majordomus plan start I2846 will be accepted.

Objective

Report a literal budget, count or size that a case compares against a product's output without a comment giving its margin and the reason it holds, so a case does not go red only because its subject grew.

Why

Split from I2716 on 2026-10-21. On 2026-10-14 master 2d226f0836 went red in suite-shard (2): case 130 compared three surfaces against a hand-pinned 4000-token budget, and a fresh init's governance tier grew to 4023 when #1143 added 235 bytes to the seeded scope. I2716's other half, the release-record-cases listing, is on master (scripts/ci/release-record-cases-check, case 3033). Nothing yet finds a pinned budget before it breaks.

Current state

A case can compare a product's output against a hand-typed number with no stated margin; the pin is found only when the subject grows past it.

Desired state

A scripted capability (ADR 0069) over test/cases reports each literal budget, count or size compared against a product's output that carries no margin comment, names the case and line, and runs in the structure job. A case that holds a deliberate pin states its margin beside it.

Scope

  • .ai/repo/ci/gates.yaml
  • .ai/repo/automation

Out of scope

  • Rewriting the existing pins: the first run reports them, and each is either given its margin or derived in its own change.

Dependencies

None. This issue is a root of the graph.

Acceptance criteria

  • A case comparing a product's output against a literal number with no margin comment is reported with its file and line
  • The same comparison with a margin comment beside it is not reported
  • The check runs in the structure job

Validation

  • bin/majordomus plan validate

Evidence required

  • pinned_values_are_reported_case

Evidence

None recorded. Every token above needs a command or an artifact behind it before this issue can be completed; narrative is refused.

Timeline

started
—
verified
—
completed
—

Those three fields, the evidence above and the state of the dependencies are all the status is made of. There is no status field to disagree with them.

Canonical record: .ai/repo/project/issues/I2846.yaml. Read it back with majordomus plan show I2846.

Searches the titles and descriptions of every page this site publishes.