Debt balance — a chantier leaves less debt than it found
A large chantier closes having resorbed more debt than it created or revealed. Without that rule the board inflames: over 2026-11-03 → 2026-12-02, 712 issues were opened against 353 closed as completed, 692 of them by sessions, and the quotas chantier (#3748) left 14 follow-ups open — 9 of which it had made itself (residuals, promise reductions, side effects, a feature with no way to read it). A ticket costs two minutes to open; closing it costs a later session the whole context the finder already held. So the finder fixes, and a ticket is the exception (#4050).
Triage at discovery
A finding outside the PR's scope gets one of four outcomes, decided when it is found, in this order:
- Fixed in the PR — it is small and sits in code the PR touches, or in the class the PR fixes.
- Fixed in a sibling PR — same session, right after the merge, reviewed through the normal door (Revi or the gate) with no extra local adversarial round. A sub-high product fix found after the loop's last bounded round (the loop) goes here, not to a ticket.
- Ticketed — only when it needs an operator arbitration, another surface, or a budget the session does not have.
- Dropped — with one line of reason and its proof in the PR description.
An idea with no trigger is not a ticket: one line, not now — trigger: X, in its ADR or its epic's body. It becomes a ticket when the trigger fires.
Caused or revealed — the two labels
| Label | The chantier… | Examples |
|---|---|---|
debt:caused | made it | a residual its fix leaves; a guarantee test ticketed instead of written (a promise reduction); a side effect on another reader; a feature shipped with no route or metric to observe it |
debt:revealed | found it, older than itself | the sibling site of a class sweep; a review finding on untouched code; a gap a prod proof exposes |
Caused debt is the chantier's own unfinished work. Revealed debt is information: revealing stays welcome, and the remedy is fixing, never silence.
The ticket a follow-up deserves
Besides its label, a follow-up carries what a cold session needs to launch it without re-deriving: Refs #<anchor> (the chantier's anchor issue) and a sub-issue link to the epic (board mechanics); the defect at file:line; the test that must go red; a size (S, M, L); and who can pick it up — a session, a catalog bot (dogfood), or only after an operator arbitration.
The ledger
The chantier's anchor issue — and the session handover, when there is one — keeps the balance: every follow-up opened, its label, its lot, its state; the sibling-PR queue; caused open, revealed opened against revealed closed. Each PR description says what became of each finding: fixed here, sibling PR #N, ticket #N, or dropped with its reason.
A session resuming after a compaction reads the ledger first. When a PR has just merged and the sibling-PR queue is not empty, that lot comes before the next main item: the code is still the context the session holds.
Closing a chantier
The anchor issue goes Done when both hold:
- no
debt:causedticket the chantier opened is still open — unless the operator accepted it by name as a promise reduction, recorded on the anchor; - it has closed at least as many
debt:revealedtickets as it opened — any revealed ticket counts, the ones in the code it touched first.
When the budget runs out first, the operator decides — resorb now, accept, or hand the rest to another chantier. A chantier never closes silently in debt.
Work in lots
Follow-ups that share a package form a lot: one session loads the context once and closes several tickets, in one PR or a train. Order lots by how fresh the code is in the session's context, then by what a lot unblocks.
Measure
gh issue list --label debt:caused --state open
gh issue list --label debt:revealed --state all --search 'Refs #<anchor>'
gh api -X GET search/issues --jq .total_count \
-f q='repo:SocialGouv/iterion is:issue created:<from>..<to>'
gh api -X GET search/issues --jq .total_count \
-f q='repo:SocialGouv/iterion is:issue closed:<from>..<to> reason:completed'The trend to watch is opened against closed per week; a chantier's balance is read on its anchor.
