I3116 — The debt every ratchet baseline holds is one derived table, with its rule and its trend
Derive one table from every ratchet baseline file under .ai/repo: the top-level *-baseline.txt files and .ai/repo/ci/case-numbers-baseline.txt, .ai/repo/ci/github-drift-baseline.txt and .ai/repo/evidence/published-not-run.txt. Each row names the gate that writes it, the rule it serves, and its entry count now and at the previous release. Show the table in the evidence view and in doctor --json. A baseline with no owning gate is a finding.
READY wave 0 · p2 · implementation profile · parallel safe
Ready. Every dependency is done, so majordomus plan start I3116 will be accepted.
Objective
Derive one table from every ratchet baseline file under .ai/repo: the top-level *-baseline.txt files and .ai/repo/ci/case-numbers-baseline.txt, .ai/repo/ci/github-drift-baseline.txt and .ai/repo/evidence/published-not-run.txt. Each row names the gate that writes it, the rule it serves, and its entry count now and at the previous release. Show the table in the evidence view and in doctor --json. A baseline with no owning gate is a finding.
Why
The audit of 2026-10-08 (c193#1) found README claiming \"no baseline\" while 17 baseline files existed. Point Zero, discussed on 2026-10-16 (c269#0), lists \"known debt\" as an invariant. Counted on master 707a04c on 2026-10-18 with ls .ai/repo/*-baseline.txt: 16 top-level files, from 0 entries (rule-proof, claim-proof) to 1853 (rust-quality), plus the three under .ai/repo/ci and .ai/repo/evidence that the glob misses. It extends milestone architecture-is-enforced. Sources: chatgpt-majordomus:c193#1, chatgpt-majordomus:c269#0, chatgpt-majordomus:c062#3.
Current state
Each gate writes and reads its own baseline. No surface lists them together.
Desired state
One projection, derived from the files and their headers, read by the evidence view and the release notes.
Scope
- scripts/generate-site-data
- apps/majordomus-cli/src/capability/builtin/quality.rs
- docs/EVIDENCE.md
- .ai/repo/ci/case-numbers-baseline.txt
- .ai/repo/ci/github-drift-baseline.txt
- .ai/repo/evidence/published-not-run.txt
- site/templates/evidence.html
- lib/doctor.sh
- test/cases/10_site_data.sh
- .ai/repo/ci/gates.yaml
Out of scope
- Paying down any baseline
Dependencies
None. This issue is a root of the graph.
Acceptance criteria
- Every baseline file appears with its gate, rule and count
- A baseline file no gate names is reported
- Every ratchet baseline file under .ai/repo appears, including .ai/repo/ci/case-numbers-baseline.txt, .ai/repo/ci/github-drift-baseline.txt and .ai/repo/evidence/published-not-run.txt, not only the top-level *-baseline.txt glob
Validation
- scripts/generate-site-data --check
- MJ_TEST_JOBS=4 bash test/run.sh 10_site_data
Evidence required
- case_baselines_are_one_table
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/I3116.yaml. Read it back with majordomus plan show I3116.