{"name":"land-complex-change","title":"Land a complex change","description":"Land a change whose side effects are the risk rather than the code: derive a touch-set budget from its blast map, arm one regression gate per affected surface and watch each fail first, land in steps that revert one at a time, and stop rather than absorb anything that appears outside the budget. Symptoms: this refactor touches code every user depends on, this migration cannot be taken back, prove the deletion is safe before I merge it, the last attempt grew until review was an argument about scope, land it in stages, this runs unattended overnight. For a routine merge-and-deploy use a ship or land-and-deploy skill; this is for the change you are nervous about.","compatibility":"Any repository the agent can change, with git and a way to run the project's own checks. A blast map from the companion mapping skill is the preferred input; without one the budget is declared rather than derived and the skill says so. Guards are whatever the repository already has; the skill arms and runs them and installs no framework. Subagents and model choice are optional; without them the bands control depth only. Output is the change plus its budget, gate ladder and residual risks.","allowedTools":"Read Write Edit Grep Glob Bash","license":"MIT","kind":"signals","useWhen":"a change crossing surfaces — code with schema, jobs or config — that must not grow in scope","group":"workflow","lifecycle":"release","version":"1.0.1","author":"crissmoldovan","install":["npx skills add crissmoldovan/agent-skills --skill land-complex-change"],"asks":["Here is the blast map for dropping the status column. Turn it into a touch-set budget before you\nwrite any code, and stay inside it — if you find a reader the map missed, stop and tell me\ninstead of fixing it while you are in there.","This is a pure refactor and the claim is no behaviour change. Before you start, show me which\nexisting test covers each surface on the map and which surfaces have nothing watching them at\nall. I would rather know the ladder has holes now than find out from production.","Build the spec on the branch. The migration file is part of the work, but do not apply it —\nleave it staged, and tell me the ordering, what runs in the window between the halves, and what\na revert would not bring back.","Run this one unattended overnight. Land what is inside the budget, stop at anything\nirreversible rather than deciding for me, and document the run (--document) so I can read what\nhappened and what is left before I approve the rest.","This looked like a two-file change and it is turning into eight. Stop, re-score the band, get\nthe map redone with what you just found, and come back with an extended budget before you write\nanother line.","Before review: give me the gate ladder with the fail-before output for each guard, the surfaces\nyou could not guard, and the residual risks the tests cannot see. The diff I can read myself."],"commands":[],"documents":[{"path":"references/change-bands.md","slug":"change-bands","title":"Change bands and act gates","body":"# Change bands and act gates\n\n## The rubric is not restated here\n\nScoring belongs to `investigate-codebase`: five signals, each scored against an observable\nthat was actually run, summed into **light / normal / deep**, with the two overrides and the\nboundary round-up defined there. Run that rubric. Do not restate it, do not paraphrase its\nanchors, and above all do not invent a second scoring scheme for changes — two rubrics in one\nfamily produce two different bands for the same work, and the person reading the announcement\ncannot tell which one was used.\n\nWhat follows is only the delta a **change** adds to it.\n\n## The delta: an irreversible act sets the floor\n\n**For a change, cost-of-being-wrong is 2 whenever the plan contains an irreversible act.** Not\n\"could conceivably lead to\" — contains. Applying a migration, writing to production data,\ndeleting something not restorable from history, sending an outbound message to a person, a\ndeploy with no rollback.\n\nTwo consequences follow mechanically, and they are different from each other:\n\n1. **The floor rises to at least normal.** A blast map becomes required, the budget must be\n   derived from it rather than declared, and the gate ladder must cover every affected surface.\n2. **The act gates arm.** Consent is required at each irreversible act, at the moment of the\n   act. This is the part people substitute for the first one; they are not interchangeable. A\n   consented act inside an unmapped change is a decision made with a confident-sounding summary\n   instead of evidence.\n\nThe floor rule never produces a question at scoring time. Nothing irreversible is imminent\nwhen the band is chosen, and a person asked to approve at that moment has no context to approve\nwith. The question belongs at the act, where the four facts are concrete.\n\n## What each band buys for a change\n\n| Band | Map | Budget | Ladder | Landing | Review |\n|---|---|---|---|---|---|\n| light | optional; if skipped, the touch-set is recorded as **declared, not derived** | one page, one surface | one gate on the single affected surface | one step, one revert | ordinary |\n| normal | required | derived from the map, per surface | one gate per affected surface | steps ordered by the map, each separately revertible | budget + ladder handed to review |\n| deep | required, plus its blindspots read first | derived, plus an adversarial pre-mortem against the budget | as normal, plus a rehearsed revert where the shape allows | staged, with a checkpoint between halves | as normal, plus the residual list as its own section |\n\nThe **adversarial pre-mortem** at the deep band is one pass with a single instruction: *assume\nthis change caused an incident; name the surface it came through.* It is scored against the\nbudget, not against the code, and its output is either a new surface for the map or an\nexplicit \"the budget covers the paths I can name\". It is a cheap use of an adversary and it is\nnot a code review — the review loop over the pull request belongs to `request-blocks-review`\nand `blocks`, and it judges a diff that already exists.\n\n## Escalation and de-escalation, mid-run\n\nRe-score when any of these happens; announce the new band and what caused it.\n\n**Escalate when:**\n\n- The map returns a surface the plan did not anticipate, or more than one.\n- A budget breach occurs — the map's method missed something, so the map's clean results are\n  now weaker evidence than they were.\n- An irreversible act appears in the plan that was not there at scoring time. This is the most\n  common escalation and the easiest to miss, because it usually arrives as a convenience: \"we\n  may as well apply it while we are here\".\n- A gate that was assumed to exist turns out to be at rung 4, moving a surface from guarded to\n  unguarded.\n\n**De-escalate when** — and this is legitimate, and under-used — the map comes back genuinely\nsmall: one surface, everything else searched with fired controls, no irreversible act. Say so\nand drop the apparatus. Needless escalation is a failure mode in its own right; it is the cost\nthat makes people stop using the skill, and then nothing is contained at all.\n\n## The act gate\n\nAt the moment before an irreversible act, state four things and stop:\n\n```text\nABOUT TO:      apply the pending migration to the production database\nIT TOUCHES:    one table, one column, roughly N rows\nCANNOT UNDO:   the column's data. A revert restores the schema shape, not the values.\nIF I DO NOT:   the code half stays behind a flag; nothing else in the change is blocked.\n```\n\nThen wait for a consent that names *this* act. A general \"go ahead\" given at the start of the\nrun was granted before anyone knew what the act would be, and it is not consent to this one.\n\n**Unattended runs take no irreversible act at all.** They stop, leave the work staged, and\nreport precisely what remains: the act, its four facts, and how to take it. A scheduled job\nthat applied a migration because applying it was the natural next step has made a decision\nnobody was present to make, and the fact that it was the right decision is luck rather than\nprocess. If you cannot confirm a human will see and answer a question in **this** run, it is\nunattended.\n\n## After the act: the record is part of the act\n\nAn irreversible act is not finished when the effect lands. The record that tracks it — the\napplied-migration history, the deployment log, the ticket, whatever the repository uses to\nknow what state production is in — is updated in the same change, not later.\n\nIn one measured repository the file's *location* was the applied-history record: a migration\nthat had run in production while its file sat in a review-staging folder left the main branch\ndisagreeing with the database, and the next deploy from a clean checkout failed. It happened\ntwice inside a single day. The suggested remedy from the tooling — recording the applied\nmigration as reverted — would have made the history lie about production, which is worse than\nthe failure it was offered to fix.\n\n## Degradations\n\nState the degradation in the same breath as the band, exactly as the rubric's own skill does:\n\n- **No subagents.** The bands run as sequential passes. Same apparatus, more wall-clock; say\n  how much. Nothing about the budget or the ladder changes.\n- **No model choice.** The band controls depth only. Roles stay named; nothing is routed.\n- **No blast map available** (no mapping skill, or a repository it cannot resolve). The\n  touch-set is **declared, not derived**, and every surface's confidence drops accordingly.\n  Say it on the budget, in the deliverable, next to the ALLOWED list — not in a footnote.\n- **No runnable checks** (checks exist only in CI, or the environment cannot run them). Every\n  surface drops to rung 3 or rung 4 and the ladder says so. Do not silently promote \"CI will\n  catch it\" to a gate: an unobserved check is exactly the guard class this ladder exists to\n  distrust.\n","bodyHtml":"<h2 id=\"change-bands-and-act-gates\">Change bands and act gates</h2>\n<h3 id=\"the-rubric-is-not-restated-here\">The rubric is not restated here</h3>\n<p>Scoring belongs to <code>investigate-codebase</code>: five signals, each scored against an observable\nthat was actually run, summed into <strong>light / normal / deep</strong>, with the two overrides and the\nboundary round-up defined there. Run that rubric. Do not restate it, do not paraphrase its\nanchors, and above all do not invent a second scoring scheme for changes — two rubrics in one\nfamily produce two different bands for the same work, and the person reading the announcement\ncannot tell which one was used.</p>\n<p>What follows is only the delta a <strong>change</strong> adds to it.</p>\n<h3 id=\"the-delta-an-irreversible-act-sets-the-floor\">The delta: an irreversible act sets the floor</h3>\n<p><strong>For a change, cost-of-being-wrong is 2 whenever the plan contains an irreversible act.</strong> Not\n&quot;could conceivably lead to&quot; — contains. Applying a migration, writing to production data,\ndeleting something not restorable from history, sending an outbound message to a person, a\ndeploy with no rollback.</p>\n<p>Two consequences follow mechanically, and they are different from each other:</p>\n<ol>\n<li><strong>The floor rises to at least normal.</strong> A blast map becomes required, the budget must be\nderived from it rather than declared, and the gate ladder must cover every affected surface.</li>\n<li><strong>The act gates arm.</strong> Consent is required at each irreversible act, at the moment of the\nact. This is the part people substitute for the first one; they are not interchangeable. A\nconsented act inside an unmapped change is a decision made with a confident-sounding summary\ninstead of evidence.</li>\n</ol>\n<p>The floor rule never produces a question at scoring time. Nothing irreversible is imminent\nwhen the band is chosen, and a person asked to approve at that moment has no context to approve\nwith. The question belongs at the act, where the four facts are concrete.</p>\n<h3 id=\"what-each-band-buys-for-a-change\">What each band buys for a change</h3>\n<table>\n<thead>\n<tr>\n<th>Band</th>\n<th>Map</th>\n<th>Budget</th>\n<th>Ladder</th>\n<th>Landing</th>\n<th>Review</th>\n</tr>\n</thead>\n<tbody><tr>\n<td>light</td>\n<td>optional; if skipped, the touch-set is recorded as <strong>declared, not derived</strong></td>\n<td>one page, one surface</td>\n<td>one gate on the single affected surface</td>\n<td>one step, one revert</td>\n<td>ordinary</td>\n</tr>\n<tr>\n<td>normal</td>\n<td>required</td>\n<td>derived from the map, per surface</td>\n<td>one gate per affected surface</td>\n<td>steps ordered by the map, each separately revertible</td>\n<td>budget + ladder handed to review</td>\n</tr>\n<tr>\n<td>deep</td>\n<td>required, plus its blindspots read first</td>\n<td>derived, plus an adversarial pre-mortem against the budget</td>\n<td>as normal, plus a rehearsed revert where the shape allows</td>\n<td>staged, with a checkpoint between halves</td>\n<td>as normal, plus the residual list as its own section</td>\n</tr>\n</tbody></table>\n<p>The <strong>adversarial pre-mortem</strong> at the deep band is one pass with a single instruction: <em>assume\nthis change caused an incident; name the surface it came through.</em> It is scored against the\nbudget, not against the code, and its output is either a new surface for the map or an\nexplicit &quot;the budget covers the paths I can name&quot;. It is a cheap use of an adversary and it is\nnot a code review — the review loop over the pull request belongs to <code>request-blocks-review</code>\nand <code>blocks</code>, and it judges a diff that already exists.</p>\n<h3 id=\"escalation-and-de-escalation-mid-run\">Escalation and de-escalation, mid-run</h3>\n<p>Re-score when any of these happens; announce the new band and what caused it.</p>\n<p><strong>Escalate when:</strong></p>\n<ul>\n<li>The map returns a surface the plan did not anticipate, or more than one.</li>\n<li>A budget breach occurs — the map&#39;s method missed something, so the map&#39;s clean results are\nnow weaker evidence than they were.</li>\n<li>An irreversible act appears in the plan that was not there at scoring time. This is the most\ncommon escalation and the easiest to miss, because it usually arrives as a convenience: &quot;we\nmay as well apply it while we are here&quot;.</li>\n<li>A gate that was assumed to exist turns out to be at rung 4, moving a surface from guarded to\nunguarded.</li>\n</ul>\n<p><strong>De-escalate when</strong> — and this is legitimate, and under-used — the map comes back genuinely\nsmall: one surface, everything else searched with fired controls, no irreversible act. Say so\nand drop the apparatus. Needless escalation is a failure mode in its own right; it is the cost\nthat makes people stop using the skill, and then nothing is contained at all.</p>\n<h3 id=\"the-act-gate\">The act gate</h3>\n<p>At the moment before an irreversible act, state four things and stop:</p>\n<pre><code class=\"language-text\">ABOUT TO:      apply the pending migration to the production database\nIT TOUCHES:    one table, one column, roughly N rows\nCANNOT UNDO:   the column&#39;s data. A revert restores the schema shape, not the values.\nIF I DO NOT:   the code half stays behind a flag; nothing else in the change is blocked.\n</code></pre>\n<p>Then wait for a consent that names <em>this</em> act. A general &quot;go ahead&quot; given at the start of the\nrun was granted before anyone knew what the act would be, and it is not consent to this one.</p>\n<p><strong>Unattended runs take no irreversible act at all.</strong> They stop, leave the work staged, and\nreport precisely what remains: the act, its four facts, and how to take it. A scheduled job\nthat applied a migration because applying it was the natural next step has made a decision\nnobody was present to make, and the fact that it was the right decision is luck rather than\nprocess. If you cannot confirm a human will see and answer a question in <strong>this</strong> run, it is\nunattended.</p>\n<h3 id=\"after-the-act-the-record-is-part-of-the-act\">After the act: the record is part of the act</h3>\n<p>An irreversible act is not finished when the effect lands. The record that tracks it — the\napplied-migration history, the deployment log, the ticket, whatever the repository uses to\nknow what state production is in — is updated in the same change, not later.</p>\n<p>In one measured repository the file&#39;s <em>location</em> was the applied-history record: a migration\nthat had run in production while its file sat in a review-staging folder left the main branch\ndisagreeing with the database, and the next deploy from a clean checkout failed. It happened\ntwice inside a single day. The suggested remedy from the tooling — recording the applied\nmigration as reverted — would have made the history lie about production, which is worse than\nthe failure it was offered to fix.</p>\n<h3 id=\"degradations\">Degradations</h3>\n<p>State the degradation in the same breath as the band, exactly as the rubric&#39;s own skill does:</p>\n<ul>\n<li><strong>No subagents.</strong> The bands run as sequential passes. Same apparatus, more wall-clock; say\nhow much. Nothing about the budget or the ladder changes.</li>\n<li><strong>No model choice.</strong> The band controls depth only. Roles stay named; nothing is routed.</li>\n<li><strong>No blast map available</strong> (no mapping skill, or a repository it cannot resolve). The\ntouch-set is <strong>declared, not derived</strong>, and every surface&#39;s confidence drops accordingly.\nSay it on the budget, in the deliverable, next to the ALLOWED list — not in a footnote.</li>\n<li><strong>No runnable checks</strong> (checks exist only in CI, or the environment cannot run them). Every\nsurface drops to rung 3 or rung 4 and the ladder says so. Do not silently promote &quot;CI will\ncatch it&quot; to a gate: an unobserved check is exactly the guard class this ladder exists to\ndistrust.</li>\n</ul>\n","words":1202},{"path":"references/change-shapes.md","slug":"change-shapes","title":"Change shapes","body":"# Change shapes\n\nThree shapes enter this skill. They share the budget, the ladder and the act gates; they differ\nin **what the gates have to prove**, which is why the shape is named before the work starts\nrather than inferred from the diff afterwards.\n\n## Feature — the claim is new behaviour\n\nThe change adds something that did not exist. The claim is falsifiable in the easiest way\navailable: before the code, the new behaviour is absent, and a check that asserts it must fail.\n\n- **Budget delta.** New files are ALLOWED entries like any other. The interesting rows are the\n  existing files the feature has to reach through — a registry, a route table, a configuration\n  key, a permission list. Those are the entries that get forgotten and then appear in the diff\n  looking like scope creep.\n- **Ladder delta.** Rung 1 is the ordinary case: write the check, run it, watch it fail for the\n  right reason. Surfaces the feature only *touches* — the registry it registers into, the\n  navigation it appears in — often cannot fail first and sit at rung 2 with a mutation.\n- **The trap.** A feature that has to modify existing behaviour to fit is a feature and a\n  refactor in one change. Split it or take both shapes' gates; do not let the new behaviour's\n  green checks stand in for the old behaviour's.\n\n## Refactor — the claim is *no* behaviour change\n\nThis is the shape with the sharpest gate, because the claim is unusually precise: everything\nthat held before still holds.\n\n- **Budget delta.** A refactor's budget is usually wide in files and narrow in effect — the\n  opposite of a feature's. State the effect boundary explicitly: which observable behaviours are\n  in scope to stay identical, and which incidental ones (log lines, ordering of unordered\n  output, timing) are permitted to differ.\n- **Ladder delta.** The guards are the **existing** checks, run unmodified. **A test that had to\n  be edited to keep it green refutes the claim** — the behaviour changed, and editing the\n  assertion is how the change gets suppressed. The correct output at that moment is the\n  behavioural delta, not a tidied test. Where a surface has no existing check, a refactor is\n  where rung 4 shows up honestly: you are changing code that nothing watches, and that is worth\n  knowing before rather than after.\n- **The trap.** \"No behaviour change\" is usually true of the paths that are tested and untested\n  of the rest. A non-empty delta is the finding; a rendering skill can show it as an\n  added/removed/rewired classification against the same map.\n\n## Migration — the claim is a data or schema transition\n\nTwo halves, an ordering, a window, and an irreversible act.\n\n- **Budget delta.** The migration **file** is an ALLOWED entry. **Applying it is not** — that is\n  a standing out-of-bounds class and it is released only at the act gate. Write both rows\n  explicitly, because the distinction is exactly the one that erodes under momentum.\n- **Ladder delta.** The data-contract surface needs a guard that reaches the *derived* values,\n  not only the read and the write. The deploy-ordering surface is usually rung 3 — a rehearsal\n  against a disposable database, or a written window analysis with the drain question answered.\n  Say which; a rehearsed revert is worth more here than anywhere else, because this is the shape\n  whose undo path is most often assumed.\n- **The trap.** The undo path is where migrations are misdescribed. A revert restores the schema\n  shape; it does not restore the values a contracting migration removed, and it does not un-write\n  the rows the new code wrote during the window. State both halves.\n- **The record.** The act's record — the applied-migration history, wherever the repository keeps\n  it — is updated in the same change as the act. A migration applied in production whose record\n  says otherwise breaks the next clean deploy, and the disagreement surfaces in somebody else's\n  work.\n\n## Mixed shapes\n\nReal changes combine them: a feature that needs a schema column, a refactor that renames a\ncolumn on the way past. Two rules:\n\n1. **Take the strictest gate of every shape present.** A refactor-plus-migration runs the\n   existing checks unmodified *and* rehearses the revert *and* gates the apply.\n2. **Prefer to split.** A mixed change has one budget, one review and one revert covering two\n   claims of different kinds — so a regression in either half rolls back both. Splitting costs\n   an extra branch; not splitting costs the ability to undo half of it.\n\n## The boundary with `resolve-problem-report`, in both directions\n\nThe two skills meet at exactly one handover and are not supersets of each other.\n\n| | `resolve-problem-report` | this skill |\n|---|---|---|\n| Starts with | a report: a bug, a feature request, a question, a complaint with numbers in it | a decided change |\n| Owns | intake as a falsifiable claim, reproduction, root cause at the required evidence class, candidate offers with trade-offs, the spec | the budget, the ladder, the act gates, the landing |\n| Can correctly end with | **no change at all** — a refutation, a question, \"this was fixed three weeks ago\" | a landed change, a split, or an abandonment with a finding |\n| Hands over | the spec and the file paths — never the investigation transcript | the diff, the budget, the ladder and the residuals, to description and review |\n\n**Report first, then here:** a report arrives, is reproduced, candidates are offered, one is\nchosen and specced — and the spec-implement-verify half runs here, by name, with the spec and\nthe paths as context.\n\n**Here without a report:** a roadmap item, a dependency bump, a deprecation with a date, a\nperformance change nobody filed. Do not manufacture a report to get a pipeline: the intake gate\nwould be answering a question nobody asked, and its artifacts would be fiction.\n\n**The wrong direction, both ways.** Entering here with a report and no chosen fix means the\nbudget encloses a solution nobody validated — the containment will be excellent and the change\nmay be unnecessary. Entering the report pipeline with a decided change means re-deriving an\nintake and a candidate set for a decision that is already made, which produces a document that\njustifies rather than tests.\n","bodyHtml":"<h2 id=\"change-shapes\">Change shapes</h2>\n<p>Three shapes enter this skill. They share the budget, the ladder and the act gates; they differ\nin <strong>what the gates have to prove</strong>, which is why the shape is named before the work starts\nrather than inferred from the diff afterwards.</p>\n<h3 id=\"feature-the-claim-is-new-behaviour\">Feature — the claim is new behaviour</h3>\n<p>The change adds something that did not exist. The claim is falsifiable in the easiest way\navailable: before the code, the new behaviour is absent, and a check that asserts it must fail.</p>\n<ul>\n<li><strong>Budget delta.</strong> New files are ALLOWED entries like any other. The interesting rows are the\nexisting files the feature has to reach through — a registry, a route table, a configuration\nkey, a permission list. Those are the entries that get forgotten and then appear in the diff\nlooking like scope creep.</li>\n<li><strong>Ladder delta.</strong> Rung 1 is the ordinary case: write the check, run it, watch it fail for the\nright reason. Surfaces the feature only <em>touches</em> — the registry it registers into, the\nnavigation it appears in — often cannot fail first and sit at rung 2 with a mutation.</li>\n<li><strong>The trap.</strong> A feature that has to modify existing behaviour to fit is a feature and a\nrefactor in one change. Split it or take both shapes&#39; gates; do not let the new behaviour&#39;s\ngreen checks stand in for the old behaviour&#39;s.</li>\n</ul>\n<h3 id=\"refactor-the-claim-is-no-behaviour-change\">Refactor — the claim is <em>no</em> behaviour change</h3>\n<p>This is the shape with the sharpest gate, because the claim is unusually precise: everything\nthat held before still holds.</p>\n<ul>\n<li><strong>Budget delta.</strong> A refactor&#39;s budget is usually wide in files and narrow in effect — the\nopposite of a feature&#39;s. State the effect boundary explicitly: which observable behaviours are\nin scope to stay identical, and which incidental ones (log lines, ordering of unordered\noutput, timing) are permitted to differ.</li>\n<li><strong>Ladder delta.</strong> The guards are the <strong>existing</strong> checks, run unmodified. <strong>A test that had to\nbe edited to keep it green refutes the claim</strong> — the behaviour changed, and editing the\nassertion is how the change gets suppressed. The correct output at that moment is the\nbehavioural delta, not a tidied test. Where a surface has no existing check, a refactor is\nwhere rung 4 shows up honestly: you are changing code that nothing watches, and that is worth\nknowing before rather than after.</li>\n<li><strong>The trap.</strong> &quot;No behaviour change&quot; is usually true of the paths that are tested and untested\nof the rest. A non-empty delta is the finding; a rendering skill can show it as an\nadded/removed/rewired classification against the same map.</li>\n</ul>\n<h3 id=\"migration-the-claim-is-a-data-or-schema-transition\">Migration — the claim is a data or schema transition</h3>\n<p>Two halves, an ordering, a window, and an irreversible act.</p>\n<ul>\n<li><strong>Budget delta.</strong> The migration <strong>file</strong> is an ALLOWED entry. <strong>Applying it is not</strong> — that is\na standing out-of-bounds class and it is released only at the act gate. Write both rows\nexplicitly, because the distinction is exactly the one that erodes under momentum.</li>\n<li><strong>Ladder delta.</strong> The data-contract surface needs a guard that reaches the <em>derived</em> values,\nnot only the read and the write. The deploy-ordering surface is usually rung 3 — a rehearsal\nagainst a disposable database, or a written window analysis with the drain question answered.\nSay which; a rehearsed revert is worth more here than anywhere else, because this is the shape\nwhose undo path is most often assumed.</li>\n<li><strong>The trap.</strong> The undo path is where migrations are misdescribed. A revert restores the schema\nshape; it does not restore the values a contracting migration removed, and it does not un-write\nthe rows the new code wrote during the window. State both halves.</li>\n<li><strong>The record.</strong> The act&#39;s record — the applied-migration history, wherever the repository keeps\nit — is updated in the same change as the act. A migration applied in production whose record\nsays otherwise breaks the next clean deploy, and the disagreement surfaces in somebody else&#39;s\nwork.</li>\n</ul>\n<h3 id=\"mixed-shapes\">Mixed shapes</h3>\n<p>Real changes combine them: a feature that needs a schema column, a refactor that renames a\ncolumn on the way past. Two rules:</p>\n<ol>\n<li><strong>Take the strictest gate of every shape present.</strong> A refactor-plus-migration runs the\nexisting checks unmodified <em>and</em> rehearses the revert <em>and</em> gates the apply.</li>\n<li><strong>Prefer to split.</strong> A mixed change has one budget, one review and one revert covering two\nclaims of different kinds — so a regression in either half rolls back both. Splitting costs\nan extra branch; not splitting costs the ability to undo half of it.</li>\n</ol>\n<h3 id=\"the-boundary-with-resolve-problem-report-in-both-directions\">The boundary with <code>resolve-problem-report</code>, in both directions</h3>\n<p>The two skills meet at exactly one handover and are not supersets of each other.</p>\n<table>\n<thead>\n<tr>\n<th></th>\n<th><code>resolve-problem-report</code></th>\n<th>this skill</th>\n</tr>\n</thead>\n<tbody><tr>\n<td>Starts with</td>\n<td>a report: a bug, a feature request, a question, a complaint with numbers in it</td>\n<td>a decided change</td>\n</tr>\n<tr>\n<td>Owns</td>\n<td>intake as a falsifiable claim, reproduction, root cause at the required evidence class, candidate offers with trade-offs, the spec</td>\n<td>the budget, the ladder, the act gates, the landing</td>\n</tr>\n<tr>\n<td>Can correctly end with</td>\n<td><strong>no change at all</strong> — a refutation, a question, &quot;this was fixed three weeks ago&quot;</td>\n<td>a landed change, a split, or an abandonment with a finding</td>\n</tr>\n<tr>\n<td>Hands over</td>\n<td>the spec and the file paths — never the investigation transcript</td>\n<td>the diff, the budget, the ladder and the residuals, to description and review</td>\n</tr>\n</tbody></table>\n<p><strong>Report first, then here:</strong> a report arrives, is reproduced, candidates are offered, one is\nchosen and specced — and the spec-implement-verify half runs here, by name, with the spec and\nthe paths as context.</p>\n<p><strong>Here without a report:</strong> a roadmap item, a dependency bump, a deprecation with a date, a\nperformance change nobody filed. Do not manufacture a report to get a pipeline: the intake gate\nwould be answering a question nobody asked, and its artifacts would be fiction.</p>\n<p><strong>The wrong direction, both ways.</strong> Entering here with a report and no chosen fix means the\nbudget encloses a solution nobody validated — the containment will be excellent and the change\nmay be unnecessary. Entering the report pipeline with a decided change means re-deriving an\nintake and a candidate set for a decision that is already made, which produces a document that\njustifies rather than tests.</p>\n","words":1055},{"path":"references/documenting-the-run.md","slug":"documenting-the-run","title":"The run record — `--document`","body":"# The run record — `--document`\n\nA run that reached a good answer and left nothing behind cannot be checked, reused, or\nresumed. The next person — often the same person a week later — repeats the searches,\nrediscovers the same dead ends, and has no way to tell which claims were measured and\nwhich were guessed. A run record fixes exactly that: it says what was searched, who\nsearched it, what each found, how the disagreements were settled, and what was decided.\n\nIt is a byproduct, never the product. Writing one must not change the answer.\n\nThis file is the whole convention. It is carried, byte-identical, by every skill in this\nfamily, and the copies are compared by hash in CI — so edit the convention once and copy\nit, never edit a single skill's copy. Never link across skills to another copy: a local\nlink that escapes its skill directory fails the catalog verifier.\n\n## When a record gets written\n\nThree branches, keyed on **attendance**. Attendance is *declared* — conservatively — and\nnever probed. Do not ask the harness whether someone is watching; decide from what you\nalready know about how the run started.\n\n| Branch | Condition | Where it goes | Form |\n|---|---|---|---|\n| Asked for | `--document`, `--document=<path>`, or an unambiguous phrase | host repository | full |\n| Unattended | headless, cron, CI, or dispatched by a parent agent | harness scratch directory | full (light band: short) |\n| Attended, no token | a human is in the loop and did not ask | nowhere | none, plus at most one offer |\n\n1. **Asked for.** The invocation carries `--document` or `--document=<path>`, or an\n   unambiguous natural phrase — \"document the run\", \"write down how you got there\".\n   Write the **full** record at the host-repository path below. A vague \"keep notes\"\n   is not this branch; treat it as attended and offer.\n\n2. **Unattended.** The operative test is one sentence: *if you cannot confirm a human\n   will see and answer a question in THIS run, treat it as unattended.* An unattended\n   run **always** writes a record, because there is nobody to ask afterwards what it\n   did — and it writes to the **harness scratch directory, never the host repository**.\n   An unattended run does not make unsolicited repository writes; a cron job that leaves\n   a file in someone's tree has changed their working state without being asked. Name the\n   record's path in the final answer, or the record is unfindable and might as well not\n   exist. Normal and deep bands write the full form; the light band writes the short form\n   below.\n\n3. **Attended, no token.** Silent by default. Make **one** offer, and only when the run\n   ends with an unresolved contradiction or an open blocking question — the two states\n   where the value of a written record exceeds the cost of the interruption. One offer,\n   ever. A declined offer ends the matter for the run; do not re-offer with better\n   framing.\n\n## Where it goes\n\nOne literal convention:\n\n```text\ndocs/<skill-name>/<UTC-date>-<slug>.md\n```\n\n- `<skill-name>` — the invoking skill's own name, so records from different skills do\n  not interleave in one directory.\n- `<UTC-date>` — `YYYY-MM-DD`, in UTC. Local dates put two records of the same run on\n  different days when the machines sit in different zones.\n- `<slug>` — a short kebab-case handle for the question or the change.\n\nThere is no probe cascade. The path is not negotiated with the repository's existing\ndocumentation layout, because a convention that guesses produces a different answer on\nevery repo and nobody can predict where the file will land. Determinism wins.\n\n- **Overridable only by `--document=<path>`.** No other input moves it.\n- **Create the directory if absent.** A missing directory is not a reason to skip the\n  record.\n- **Never inside a skill directory.** Records are host artifacts; one written under a\n  skill directory ships to everyone who installs the pack.\n- **Never overwrite.** A re-run against an existing path **appends** a new section,\n  headed with its UTC timestamp and round number. Earlier rounds stay exactly as written.\n- **Assert its existence in the skill's Verification list**, with the path stated.\n\n## What the record contains\n\nA header block, then **five headings, in this order, with these names**:\n\n```text\n## What was searched\n## Who searched it\n## What each found\n## How it reconciled\n## What was decided and why\n```\n\nThe names are literal and identical across every skill that carries this file. In a skill\nwhose work is mapping, rendering, or landing rather than searching, \"searched\" covers\nwhatever that skill probed — map queries, gate runs, seeded checks. Do not rename the\nheadings to fit the local vocabulary; the point of fixed names is that a reader who has\nseen one record can read all of them.\n\n### The header block\n\nAbove the first heading, pin what the record is about and what it was true of:\n\n- Repository identity — remote or name, **never** a machine-absolute path.\n- HEAD sha, and the **dirty state**: clean, or the count of modified files. A record\n  taken against an uncommitted tree describes a state nobody else can reconstruct, and\n  it has to say so.\n- UTC timestamp.\n- The invocation: skill, band, and the flags as they were given.\n- The question, or the proposed change, in one sentence.\n\n### What was searched\n\n- Every query **verbatim**, with the tool that ran it and its result count. A query\n  paraphrased into prose cannot be re-run.\n- The surface each query covers, and the surfaces deliberately left out.\n- Artifacts *read* as well as searched — generated registries, manifests, migrations,\n  dashboards, logs. Reading a registry that already answers the question is a finding,\n  not a shortcut worth hiding.\n- Which round each query belongs to, when there was more than one.\n\n### Who searched it\n\n- One line per child: **role, tier band, decomposition axis, the input it was given, and\n  what was withheld from it.** Roles and tiers, never model names — routing identifiers\n  belong to `model-routing`, and a record naming a model is stale the day it changes.\n- **Independence.** State which children could see one another's output. Agreement\n  between two children that read the same artifact is one reading, counted twice.\n- When there were no children — no subagents available, or a light band — say so, and\n  say the passes ran sequentially instead. A record that silently omits this reads as\n  if a fan-out happened.\n\n### What each found\n\n- **Claims**, each with its evidence as `path:line`, its `basis` — `measured` or\n  `inferred` — and its confidence expressed as basis × coverage. Never a percentage;\n  a number nobody computed is a decoration.\n- **`not_found[]`, each with its control and whether the control fired.** A zero-hit\n  search is admissible as \"absent\" **only** with a fired control — a deliberately\n  positive variant of the same query, run the same way, that returns hits. Without one,\n  record `inconclusive`, not `absent`. This is not pedantry: in one measured case a\n  `git grep -E '\\b…'` returned nothing and was read as proof of absence, when ERE simply\n  ignores `\\b` and the search had never matched anything at all.\n- **Discarded candidates** — everything looked at and rejected, with the reason for the\n  rejection and the artifact that produced it. This is the bullet most often skipped and\n  the one that earns the most: in the suite this family is scored against, four of the\n  eight scoring keys award credit for a recorded discard, and none award anything for a\n  candidate dropped in silence. A discard is what stops the next reader spending an hour\n  on a path already walked.\n- **Blockers** — anything a child could not do, with the reason.\n\n### How it reconciled\n\n- **The contradiction table**, with these columns, in this order:\n\n  ```text\n  claim | source A | source B | evidence A | evidence B | what each evidence CAN prove | verdict | residual\n  ```\n\n  Verdicts come from a closed set: `confirmed`, `refuted`, `unresolved (needs X)`,\n  `inconclusive`. \"What each evidence CAN prove\" is the column that does the work — a\n  document proves intent, a log proves behaviour, and a table that skips this column\n  settles disputes by tone.\n- **The evidence class used to break each tie**, and the note that class breaks ties\n  while *reach* decides admissibility: an observation of production outranks a local\n  measurement, which outranks code reading, which outranks docs, comments, and titles,\n  which outrank recollection — but only over the surface the evidence actually touches.\n- **Which candidate hits were re-read** rather than taken from a child's summary. Summaries\n  launder substring false positives into confirmed claims; the reconciler opens the file.\n- **Rounds that changed no verdict.** That is the stop rule firing, and it belongs in the\n  record as the reason the run ended.\n\n### What was decided and why\n\n- **The decision**, one sentence, and what it authorises — including \"authorises nothing\n  destructive\" when that is the truth.\n- **Adversarial concessions**, quoted, each naming the artifact that produced it. A\n  conceded claim is recorded *conceded*, not *validated*; the difference matters to whoever\n  re-opens this.\n- **Marked assumptions.** Every claim depending on an unanswered question is marked\n  assumption-dependent, with the question, the default taken, and the direction the answer\n  would move the conclusion.\n- **Open questions**, with the blocking one labelled as blocking.\n- **The evidence index**: every load-bearing citation as `path:line`, the sha it was read\n  at, and the result counts of the queries behind it. This is what makes the record\n  re-checkable a month later against a moved tree.\n- **A closing paragraph titled \"what this run could not see\"** — surfaces not covered,\n  tools unavailable, questions only a production observation could settle. It closes the\n  record; there is no sixth heading. It is a boundary, not a hedge — and the paragraph a\n  reader deciding how far to trust the rest will go looking for.\n\n## The short form\n\nUnattended runs at the light band write four parts and stop:\n\n1. Header block and invocation.\n2. The complexity assessment — each signal's score, the observable that scored it, and\n   the resulting band.\n3. The decision, with its marked assumptions.\n4. What this run could not see.\n\nNo contradiction table and no evidence index: a light-band run that produced either was\nmis-banded, and the fix is the band, not the record.\n\n## Prohibitions\n\n- **No secret values.** Variable and file names only. Records get committed, and a record\n  is read by people who were not in the room.\n- **No machine-absolute paths.** Repository-relative only. An absolute path under a home\n  directory leaks a username and stops resolving on any other machine.\n- **No chain-of-thought, child transcripts, or raw logs.** The record carries claims,\n  evidence, verdicts and decisions. A transcript is volume, and it re-presents reasoning\n  as if it were a finding.\n- **Minimal personal-data fragments.** Names, addresses, ticket text, customer strings —\n  only where the finding genuinely cannot be stated without them, and preferably as a role.\n- **No unmarked inference.** Every claim carries its basis. Inference written flat, in the\n  same voice as measurement, is the failure this whole family exists to prevent.\n- **No unearned benefit claims.** \"Faster\", \"safer\", \"fixes it\" require something that\n  measured it. Otherwise state what the code does and stop.\n- **Never edit an earlier record.** Append a new dated round section. Records are a\n  history; a rewritten one is a claim about the past with no evidence behind it.\n- **`--document` must not change the answer.** If knowing a record is coming changes what\n  gets searched, what gets conceded, or how confident the conclusion sounds, the record has\n  become the product. Decide first, write second.\n\n## A worked example\n\nA normal-band investigation in a large monorepo, anonymised. Short deliberately — the\nshape matters more than the length.\n\n```markdown\n# Which registry is authoritative for job names?\n\n- repo: `acme/platform` @ `3f9c1ab` — clean\n- run: investigate-codebase, normal band (scope 2, contradiction 2, size 1, ambiguity 0,\n  cost-of-being-wrong 1 = 6), 2026-08-26T09:14Z\n- question: two registries list job names; which one does the runtime read?\n\n## What was searched\n- `git grep -n \"registerJob(\" -- src worker` → 41 hits (round 1)\n- `git grep -nE \"jobs\\.(json|ts)\" -- .` → 6 hits (round 1)\n- read: the generated job registry page, and `worker/boot.ts`\n- not searched: the deploy pipeline's own manifests — not readable from this checkout\n\n## Who searched it\n- child A — searcher, mid tier, by-surface (`src/`), given the question only\n- child B — searcher, mid tier, by-runtime-evidence, forbidden from reading source,\n  given boot output only\n- reconciler — mid tier, re-read every cited hit; A and B could not see each other\n\n## What each found\n- A: `worker/boot.ts:22` imports `jobs.generated.ts` — basis measured\n- B: boot output names 41 jobs, against the 46 listed in the generated page — basis measured\n- not_found: no runtime read of the generated page. Control: `git grep -n \"atlas\" -- worker`\n  → 3 hits, so the pattern matches in that path and the absence is real. Control fired.\n- discarded: `tools/sync-jobs.ts` — writes the page, never read at runtime; rejected\n  after reading it, not after reading its name\n- discarded: 5 of the 41 `registerJob(` hits are test fixtures, not registrations\n\n## How it reconciled\n| claim | source A | source B | evidence A | evidence B | what each evidence CAN prove | verdict | residual |\n|---|---|---|---|---|---|---|---|\n| the generated page is authoritative | its own header | boot output | a doc asserting intent | 41 booted vs 46 listed | doc proves intent; output proves behaviour | refuted | the 5 extra rows are unexplained |\n\nRuntime observation outranks the doc's own claim. The reconciler re-read all 41\n`registerJob(` sites rather than trusting a counted summary; that is where the 5 fixtures\nsurfaced.\n\n## What was decided and why\n- Decision: `jobs.generated.ts` is authoritative at runtime; the generated page has drifted\n  by five entries. Authorises nothing destructive.\n- Concession: the refuter conceded after reading `worker/boot.ts:22` — recorded conceded,\n  not independently validated.\n- Assumption (marked): the deployed image boots the same entrypoint as local. Unanswered;\n  default taken is yes. If false, the drift count is wrong in an unknown direction.\n- Open question (non-blocking): what produced the five extra rows?\n- Evidence index: `worker/boot.ts:22` @ `3f9c1ab`; `jobs.generated.ts` @ `3f9c1ab`;\n  `git grep -n \"registerJob(\" -- src worker` → 41.\n\nWhat this run could not see: the deploy pipeline manifests, any environment whose\nentrypoint differs from local, and job registration that happens per-request rather than\nat boot.\n```\n\n## In-body core (copy verbatim)\n\nEvery skill that supports `--document` embeds the block below in its own body, so the\nconvention survives a reader who never opens this file. Copy it verbatim; the only\npermitted edit is substituting the skill's own name for `<skill-name>`.\n\n```markdown\n**Documenting the run.** Write a full record when the invocation carries `--document` (or\nan unmistakable phrase such as \"document the run\"), at `docs/<skill-name>/<UTC-date>-<slug>.md`\nin the host repository — and always when the run is unattended, in which case it goes to the\nharness scratch directory, never the repository, and its path is named in the final answer;\nif you cannot confirm a human will see and answer a question in THIS run, treat it as\nunattended. Attended with no token: stay silent, offering once only if the run ends with an\nunresolved contradiction or an open blocking question. Five headings, in order: What was\nsearched / Who searched it / What each found / How it reconciled / What was decided and why,\nclosing with what this run could not see. No secret values, machine-absolute paths, child\ntranscripts or raw logs; no unmarked inference or unearned benefit claims; never edit an\nearlier record, and never let writing one change the answer.\n```\n\nFollow it, in the same section, with the sentence below, word for word, linking the words\n`the run-record convention` to `references/documenting-the-run.md`, a path from the skill's\nroot, where `SKILL.md` sits:\n\n```markdown\nRecords are written per the run-record convention.\n```\n\nThe path is given here as code, not as a link: a link resolves from the file that holds it,\nfenced or not, and from this file's folder that path names nothing.\n","bodyHtml":"<h2 id=\"the-run-record---document\">The run record — <code>--document</code></h2>\n<p>A run that reached a good answer and left nothing behind cannot be checked, reused, or\nresumed. The next person — often the same person a week later — repeats the searches,\nrediscovers the same dead ends, and has no way to tell which claims were measured and\nwhich were guessed. A run record fixes exactly that: it says what was searched, who\nsearched it, what each found, how the disagreements were settled, and what was decided.</p>\n<p>It is a byproduct, never the product. Writing one must not change the answer.</p>\n<p>This file is the whole convention. It is carried, byte-identical, by every skill in this\nfamily, and the copies are compared by hash in CI — so edit the convention once and copy\nit, never edit a single skill&#39;s copy. Never link across skills to another copy: a local\nlink that escapes its skill directory fails the catalog verifier.</p>\n<h3 id=\"when-a-record-gets-written\">When a record gets written</h3>\n<p>Three branches, keyed on <strong>attendance</strong>. Attendance is <em>declared</em> — conservatively — and\nnever probed. Do not ask the harness whether someone is watching; decide from what you\nalready know about how the run started.</p>\n<table>\n<thead>\n<tr>\n<th>Branch</th>\n<th>Condition</th>\n<th>Where it goes</th>\n<th>Form</th>\n</tr>\n</thead>\n<tbody><tr>\n<td>Asked for</td>\n<td><code>--document</code>, <code>--document=&lt;path&gt;</code>, or an unambiguous phrase</td>\n<td>host repository</td>\n<td>full</td>\n</tr>\n<tr>\n<td>Unattended</td>\n<td>headless, cron, CI, or dispatched by a parent agent</td>\n<td>harness scratch directory</td>\n<td>full (light band: short)</td>\n</tr>\n<tr>\n<td>Attended, no token</td>\n<td>a human is in the loop and did not ask</td>\n<td>nowhere</td>\n<td>none, plus at most one offer</td>\n</tr>\n</tbody></table>\n<ol>\n<li><p><strong>Asked for.</strong> The invocation carries <code>--document</code> or <code>--document=&lt;path&gt;</code>, or an\nunambiguous natural phrase — &quot;document the run&quot;, &quot;write down how you got there&quot;.\nWrite the <strong>full</strong> record at the host-repository path below. A vague &quot;keep notes&quot;\nis not this branch; treat it as attended and offer.</p>\n</li>\n<li><p><strong>Unattended.</strong> The operative test is one sentence: <em>if you cannot confirm a human\nwill see and answer a question in THIS run, treat it as unattended.</em> An unattended\nrun <strong>always</strong> writes a record, because there is nobody to ask afterwards what it\ndid — and it writes to the <strong>harness scratch directory, never the host repository</strong>.\nAn unattended run does not make unsolicited repository writes; a cron job that leaves\na file in someone&#39;s tree has changed their working state without being asked. Name the\nrecord&#39;s path in the final answer, or the record is unfindable and might as well not\nexist. Normal and deep bands write the full form; the light band writes the short form\nbelow.</p>\n</li>\n<li><p><strong>Attended, no token.</strong> Silent by default. Make <strong>one</strong> offer, and only when the run\nends with an unresolved contradiction or an open blocking question — the two states\nwhere the value of a written record exceeds the cost of the interruption. One offer,\never. A declined offer ends the matter for the run; do not re-offer with better\nframing.</p>\n</li>\n</ol>\n<h3 id=\"where-it-goes\">Where it goes</h3>\n<p>One literal convention:</p>\n<pre><code class=\"language-text\">docs/&lt;skill-name&gt;/&lt;UTC-date&gt;-&lt;slug&gt;.md\n</code></pre>\n<ul>\n<li><code>&lt;skill-name&gt;</code> — the invoking skill&#39;s own name, so records from different skills do\nnot interleave in one directory.</li>\n<li><code>&lt;UTC-date&gt;</code> — <code>YYYY-MM-DD</code>, in UTC. Local dates put two records of the same run on\ndifferent days when the machines sit in different zones.</li>\n<li><code>&lt;slug&gt;</code> — a short kebab-case handle for the question or the change.</li>\n</ul>\n<p>There is no probe cascade. The path is not negotiated with the repository&#39;s existing\ndocumentation layout, because a convention that guesses produces a different answer on\nevery repo and nobody can predict where the file will land. Determinism wins.</p>\n<ul>\n<li><strong>Overridable only by <code>--document=&lt;path&gt;</code>.</strong> No other input moves it.</li>\n<li><strong>Create the directory if absent.</strong> A missing directory is not a reason to skip the\nrecord.</li>\n<li><strong>Never inside a skill directory.</strong> Records are host artifacts; one written under a\nskill directory ships to everyone who installs the pack.</li>\n<li><strong>Never overwrite.</strong> A re-run against an existing path <strong>appends</strong> a new section,\nheaded with its UTC timestamp and round number. Earlier rounds stay exactly as written.</li>\n<li><strong>Assert its existence in the skill&#39;s Verification list</strong>, with the path stated.</li>\n</ul>\n<h3 id=\"what-the-record-contains\">What the record contains</h3>\n<p>A header block, then <strong>five headings, in this order, with these names</strong>:</p>\n<pre><code class=\"language-text\">## What was searched\n## Who searched it\n## What each found\n## How it reconciled\n## What was decided and why\n</code></pre>\n<p>The names are literal and identical across every skill that carries this file. In a skill\nwhose work is mapping, rendering, or landing rather than searching, &quot;searched&quot; covers\nwhatever that skill probed — map queries, gate runs, seeded checks. Do not rename the\nheadings to fit the local vocabulary; the point of fixed names is that a reader who has\nseen one record can read all of them.</p>\n<h4 id=\"the-header-block\">The header block</h4>\n<p>Above the first heading, pin what the record is about and what it was true of:</p>\n<ul>\n<li>Repository identity — remote or name, <strong>never</strong> a machine-absolute path.</li>\n<li>HEAD sha, and the <strong>dirty state</strong>: clean, or the count of modified files. A record\ntaken against an uncommitted tree describes a state nobody else can reconstruct, and\nit has to say so.</li>\n<li>UTC timestamp.</li>\n<li>The invocation: skill, band, and the flags as they were given.</li>\n<li>The question, or the proposed change, in one sentence.</li>\n</ul>\n<h4 id=\"what-was-searched\">What was searched</h4>\n<ul>\n<li>Every query <strong>verbatim</strong>, with the tool that ran it and its result count. A query\nparaphrased into prose cannot be re-run.</li>\n<li>The surface each query covers, and the surfaces deliberately left out.</li>\n<li>Artifacts <em>read</em> as well as searched — generated registries, manifests, migrations,\ndashboards, logs. Reading a registry that already answers the question is a finding,\nnot a shortcut worth hiding.</li>\n<li>Which round each query belongs to, when there was more than one.</li>\n</ul>\n<h4 id=\"who-searched-it\">Who searched it</h4>\n<ul>\n<li>One line per child: <strong>role, tier band, decomposition axis, the input it was given, and\nwhat was withheld from it.</strong> Roles and tiers, never model names — routing identifiers\nbelong to <code>model-routing</code>, and a record naming a model is stale the day it changes.</li>\n<li><strong>Independence.</strong> State which children could see one another&#39;s output. Agreement\nbetween two children that read the same artifact is one reading, counted twice.</li>\n<li>When there were no children — no subagents available, or a light band — say so, and\nsay the passes ran sequentially instead. A record that silently omits this reads as\nif a fan-out happened.</li>\n</ul>\n<h4 id=\"what-each-found\">What each found</h4>\n<ul>\n<li><strong>Claims</strong>, each with its evidence as <code>path:line</code>, its <code>basis</code> — <code>measured</code> or\n<code>inferred</code> — and its confidence expressed as basis × coverage. Never a percentage;\na number nobody computed is a decoration.</li>\n<li><strong><code>not_found[]</code>, each with its control and whether the control fired.</strong> A zero-hit\nsearch is admissible as &quot;absent&quot; <strong>only</strong> with a fired control — a deliberately\npositive variant of the same query, run the same way, that returns hits. Without one,\nrecord <code>inconclusive</code>, not <code>absent</code>. This is not pedantry: in one measured case a\n<code>git grep -E &#39;\\b…&#39;</code> returned nothing and was read as proof of absence, when ERE simply\nignores <code>\\b</code> and the search had never matched anything at all.</li>\n<li><strong>Discarded candidates</strong> — everything looked at and rejected, with the reason for the\nrejection and the artifact that produced it. This is the bullet most often skipped and\nthe one that earns the most: in the suite this family is scored against, four of the\neight scoring keys award credit for a recorded discard, and none award anything for a\ncandidate dropped in silence. A discard is what stops the next reader spending an hour\non a path already walked.</li>\n<li><strong>Blockers</strong> — anything a child could not do, with the reason.</li>\n</ul>\n<h4 id=\"how-it-reconciled\">How it reconciled</h4>\n<ul>\n<li><p><strong>The contradiction table</strong>, with these columns, in this order:</p>\n<pre><code class=\"language-text\">claim | source A | source B | evidence A | evidence B | what each evidence CAN prove | verdict | residual\n</code></pre>\n<p>Verdicts come from a closed set: <code>confirmed</code>, <code>refuted</code>, <code>unresolved (needs X)</code>,\n<code>inconclusive</code>. &quot;What each evidence CAN prove&quot; is the column that does the work — a\ndocument proves intent, a log proves behaviour, and a table that skips this column\nsettles disputes by tone.</p>\n</li>\n<li><p><strong>The evidence class used to break each tie</strong>, and the note that class breaks ties\nwhile <em>reach</em> decides admissibility: an observation of production outranks a local\nmeasurement, which outranks code reading, which outranks docs, comments, and titles,\nwhich outrank recollection — but only over the surface the evidence actually touches.</p>\n</li>\n<li><p><strong>Which candidate hits were re-read</strong> rather than taken from a child&#39;s summary. Summaries\nlaunder substring false positives into confirmed claims; the reconciler opens the file.</p>\n</li>\n<li><p><strong>Rounds that changed no verdict.</strong> That is the stop rule firing, and it belongs in the\nrecord as the reason the run ended.</p>\n</li>\n</ul>\n<h4 id=\"what-was-decided-and-why\">What was decided and why</h4>\n<ul>\n<li><strong>The decision</strong>, one sentence, and what it authorises — including &quot;authorises nothing\ndestructive&quot; when that is the truth.</li>\n<li><strong>Adversarial concessions</strong>, quoted, each naming the artifact that produced it. A\nconceded claim is recorded <em>conceded</em>, not <em>validated</em>; the difference matters to whoever\nre-opens this.</li>\n<li><strong>Marked assumptions.</strong> Every claim depending on an unanswered question is marked\nassumption-dependent, with the question, the default taken, and the direction the answer\nwould move the conclusion.</li>\n<li><strong>Open questions</strong>, with the blocking one labelled as blocking.</li>\n<li><strong>The evidence index</strong>: every load-bearing citation as <code>path:line</code>, the sha it was read\nat, and the result counts of the queries behind it. This is what makes the record\nre-checkable a month later against a moved tree.</li>\n<li><strong>A closing paragraph titled &quot;what this run could not see&quot;</strong> — surfaces not covered,\ntools unavailable, questions only a production observation could settle. It closes the\nrecord; there is no sixth heading. It is a boundary, not a hedge — and the paragraph a\nreader deciding how far to trust the rest will go looking for.</li>\n</ul>\n<h3 id=\"the-short-form\">The short form</h3>\n<p>Unattended runs at the light band write four parts and stop:</p>\n<ol>\n<li>Header block and invocation.</li>\n<li>The complexity assessment — each signal&#39;s score, the observable that scored it, and\nthe resulting band.</li>\n<li>The decision, with its marked assumptions.</li>\n<li>What this run could not see.</li>\n</ol>\n<p>No contradiction table and no evidence index: a light-band run that produced either was\nmis-banded, and the fix is the band, not the record.</p>\n<h3 id=\"prohibitions\">Prohibitions</h3>\n<ul>\n<li><strong>No secret values.</strong> Variable and file names only. Records get committed, and a record\nis read by people who were not in the room.</li>\n<li><strong>No machine-absolute paths.</strong> Repository-relative only. An absolute path under a home\ndirectory leaks a username and stops resolving on any other machine.</li>\n<li><strong>No chain-of-thought, child transcripts, or raw logs.</strong> The record carries claims,\nevidence, verdicts and decisions. A transcript is volume, and it re-presents reasoning\nas if it were a finding.</li>\n<li><strong>Minimal personal-data fragments.</strong> Names, addresses, ticket text, customer strings —\nonly where the finding genuinely cannot be stated without them, and preferably as a role.</li>\n<li><strong>No unmarked inference.</strong> Every claim carries its basis. Inference written flat, in the\nsame voice as measurement, is the failure this whole family exists to prevent.</li>\n<li><strong>No unearned benefit claims.</strong> &quot;Faster&quot;, &quot;safer&quot;, &quot;fixes it&quot; require something that\nmeasured it. Otherwise state what the code does and stop.</li>\n<li><strong>Never edit an earlier record.</strong> Append a new dated round section. Records are a\nhistory; a rewritten one is a claim about the past with no evidence behind it.</li>\n<li><strong><code>--document</code> must not change the answer.</strong> If knowing a record is coming changes what\ngets searched, what gets conceded, or how confident the conclusion sounds, the record has\nbecome the product. Decide first, write second.</li>\n</ul>\n<h3 id=\"a-worked-example\">A worked example</h3>\n<p>A normal-band investigation in a large monorepo, anonymised. Short deliberately — the\nshape matters more than the length.</p>\n<pre><code class=\"language-markdown\"># Which registry is authoritative for job names?\n\n- repo: `acme/platform` @ `3f9c1ab` — clean\n- run: investigate-codebase, normal band (scope 2, contradiction 2, size 1, ambiguity 0,\n  cost-of-being-wrong 1 = 6), 2026-08-26T09:14Z\n- question: two registries list job names; which one does the runtime read?\n\n## What was searched\n- `git grep -n &quot;registerJob(&quot; -- src worker` → 41 hits (round 1)\n- `git grep -nE &quot;jobs\\.(json|ts)&quot; -- .` → 6 hits (round 1)\n- read: the generated job registry page, and `worker/boot.ts`\n- not searched: the deploy pipeline&#39;s own manifests — not readable from this checkout\n\n## Who searched it\n- child A — searcher, mid tier, by-surface (`src/`), given the question only\n- child B — searcher, mid tier, by-runtime-evidence, forbidden from reading source,\n  given boot output only\n- reconciler — mid tier, re-read every cited hit; A and B could not see each other\n\n## What each found\n- A: `worker/boot.ts:22` imports `jobs.generated.ts` — basis measured\n- B: boot output names 41 jobs, against the 46 listed in the generated page — basis measured\n- not_found: no runtime read of the generated page. Control: `git grep -n &quot;atlas&quot; -- worker`\n  → 3 hits, so the pattern matches in that path and the absence is real. Control fired.\n- discarded: `tools/sync-jobs.ts` — writes the page, never read at runtime; rejected\n  after reading it, not after reading its name\n- discarded: 5 of the 41 `registerJob(` hits are test fixtures, not registrations\n\n## How it reconciled\n| claim | source A | source B | evidence A | evidence B | what each evidence CAN prove | verdict | residual |\n|---|---|---|---|---|---|---|---|\n| the generated page is authoritative | its own header | boot output | a doc asserting intent | 41 booted vs 46 listed | doc proves intent; output proves behaviour | refuted | the 5 extra rows are unexplained |\n\nRuntime observation outranks the doc&#39;s own claim. The reconciler re-read all 41\n`registerJob(` sites rather than trusting a counted summary; that is where the 5 fixtures\nsurfaced.\n\n## What was decided and why\n- Decision: `jobs.generated.ts` is authoritative at runtime; the generated page has drifted\n  by five entries. Authorises nothing destructive.\n- Concession: the refuter conceded after reading `worker/boot.ts:22` — recorded conceded,\n  not independently validated.\n- Assumption (marked): the deployed image boots the same entrypoint as local. Unanswered;\n  default taken is yes. If false, the drift count is wrong in an unknown direction.\n- Open question (non-blocking): what produced the five extra rows?\n- Evidence index: `worker/boot.ts:22` @ `3f9c1ab`; `jobs.generated.ts` @ `3f9c1ab`;\n  `git grep -n &quot;registerJob(&quot; -- src worker` → 41.\n\nWhat this run could not see: the deploy pipeline manifests, any environment whose\nentrypoint differs from local, and job registration that happens per-request rather than\nat boot.\n</code></pre>\n<h3 id=\"in-body-core-copy-verbatim\">In-body core (copy verbatim)</h3>\n<p>Every skill that supports <code>--document</code> embeds the block below in its own body, so the\nconvention survives a reader who never opens this file. Copy it verbatim; the only\npermitted edit is substituting the skill&#39;s own name for <code>&lt;skill-name&gt;</code>.</p>\n<pre><code class=\"language-markdown\">**Documenting the run.** Write a full record when the invocation carries `--document` (or\nan unmistakable phrase such as &quot;document the run&quot;), at `docs/&lt;skill-name&gt;/&lt;UTC-date&gt;-&lt;slug&gt;.md`\nin the host repository — and always when the run is unattended, in which case it goes to the\nharness scratch directory, never the repository, and its path is named in the final answer;\nif you cannot confirm a human will see and answer a question in THIS run, treat it as\nunattended. Attended with no token: stay silent, offering once only if the run ends with an\nunresolved contradiction or an open blocking question. Five headings, in order: What was\nsearched / Who searched it / What each found / How it reconciled / What was decided and why,\nclosing with what this run could not see. No secret values, machine-absolute paths, child\ntranscripts or raw logs; no unmarked inference or unearned benefit claims; never edit an\nearlier record, and never let writing one change the answer.\n</code></pre>\n<p>Follow it, in the same section, with the sentence below, word for word, linking the words\n<code>the run-record convention</code> to <code>references/documenting-the-run.md</code>, a path from the skill&#39;s\nroot, where <code>SKILL.md</code> sits:</p>\n<pre><code class=\"language-markdown\">Records are written per the run-record convention.\n</code></pre>\n<p>The path is given here as code, not as a link: a link resolves from the file that holds it,\nfenced or not, and from this file&#39;s folder that path names nothing.</p>\n","words":2722},{"path":"references/regression-gates.md","slug":"regression-gates","title":"The regression gate ladder","body":"# The regression gate ladder\n\nOne gate per affected surface, and each gate **watched failing before the change and passing\nafter**. That is the whole discipline. Everything below is how to reach it on surfaces where\nit is awkward, and what to write down when you cannot reach it at all.\n\nThe failure this prevents is not a broken guard. It is a guard that was never capable of\nfailing: green on the day it was written, green forever after, counted as coverage in every\nsubsequent conversation. In one measured repository four separate CI guards were added in that\nstate — one of them a regex that could never match, because the pattern used an escape the\nmatching engine does not support. Nothing detected them, because a guard that cannot fail\nproduces exactly the output everybody wants to see.\n\n## The ladder\n\nPer affected surface, take the highest rung you can actually reach, and record which rung it\nwas. The rung is part of the deliverable: rung 3 and rung 1 are both \"guarded\", and they are\nnot the same claim.\n\n| Rung | Guard | Evidence that it is armed | Typical cost |\n|---|---|---|---|\n| 1 | an automated check that **fails before and passes after** | the failing output, quoted, from before the change | minutes |\n| 2 | an automated check that cannot fail first — the work is purely additive | a recorded baseline **plus a mutation**: break the thing deliberately, watch the check fail, restore, watch it pass | a minute more |\n| 3 | a written manual observation with an expected value | the procedure, plus the before-value recorded | minutes to hours |\n| 4 | **none** | the surface recorded as unguarded, with what would guard it and what that costs | free, and the most useful row on the page |\n\n### Rung 1 — fail first, for the right reason\n\nRun the check before the change and read the failure. The trap is a failure that looks right\nand is not: the file does not exist yet, the import is misspelled, the fixture is missing, the\ntest name has a typo so the runner selected nothing and reported success on zero tests. A run\nthat fails because the apparatus is broken proves the apparatus is broken. Read the message.\n\n### Rung 2 — mutation, because additive work cannot fail first\n\nSome correct work cannot make an existing check fail: adding a new column nothing reads yet,\nadding a handler nothing calls yet, widening an accepted input. There is nothing to break, so\nthere is no failing state to observe. Substitute a **mutation**:\n\n1. Deliberately break the thing the guard is supposed to protect — flip a boolean, delete a\n   line, change the expected value.\n2. Run the guard. Watch it fail. If it passes, the guard does not cover that thing, and you\n   have just learned the surface is at rung 4, not rung 2.\n3. Restore. Run again. Watch it pass.\n\nThree commands. It converts \"there is a test for this\" from a claim into an observation.\n\n### Rung 3 — a manual observation is a real guard if it is written\n\nA written procedure with an expected value is checkable by someone else and repeatable next\nweek. \"I clicked through it and it looked fine\" is neither. Record the steps, the value you\nobserved before the change, and the value you expect after.\n\n### Rung 4 — unguarded, and said out loud\n\nA surface with no reachable guard is recorded as unguarded **in the deliverable**, not in a\nthought and not in the run's scrollback. The row carries: the surface, why no guard exists,\nwhat would guard it, and roughly what that would cost. This row is frequently the most\nvaluable output of the entire run, because it is the only artefact anyone produces that says\nwhere the tests are not.\n\n## Guard classes by surface\n\nMapping the map's surfaces onto the kinds of guard that fit them:\n\n| Surface | Guards that reach it | Notes |\n|---|---|---|\n| Callers | typecheck, unit tests at the call sites | a typed language gives rung 1 almost free; a dynamic one usually does not |\n| Data contracts and derivers | a test asserting the **derived** value, schema validation, a round-trip test | the deriver is the bucket that gets skipped, and the one where both ends stay correct |\n| Background jobs and registries | a registration assertion — \"this key appears in the registry\" — plus one execution test | a job that stops registering fails silently and forever |\n| UI | component or end-to-end test on the specific route, including the empty and error states | the empty state is where a removed field renders as nothing |\n| Tests and guards | the mutation above, applied to the guard itself | this is the surface most likely to be quietly dead |\n| Config, infra, toolchains | run **each** build pipeline that processes the file, not just the one in your terminal | one construct, several toolchains, several behaviours |\n| Deploy ordering | a rehearsal against a disposable environment, or a written window analysis | rarely rung 1; usually rung 3, honestly labelled |\n| Docs, prompts, data-resident references | a query against the datastore, asserting the count of rows naming the thing | no code search reaches these; the break is always silent |\n| External consumers | a contract test, a recorded schema, or a notification with a date | often rung 4 — say so |\n| Second-order readers | an assertion on the aggregate or the downstream value | the value changes quietly and nothing throws |\n| Reversibility | a rehearsed revert on a disposable copy | proves the undo path exists rather than assuming it |\n\n## How guards go quietly dead\n\nFour mechanisms, all observed in real repositories, all producing green:\n\n- **The pattern that matches nothing.** A grep-based guard whose regex is subtly invalid, or\n  whose target was renamed. It now scans for something that does not exist and reports success.\n- **The selector that selects nothing.** A test filter, tag, or path glob that no longer\n  matches any file. The runner reports zero failures out of zero tests.\n- **The assertion inside a swallowed path.** The code under test catches its own errors by\n  design; the test asserts \"it did not throw\", which was never in doubt. Assert the inner call\n  fired, not that the wrapper stayed quiet.\n- **The check that never ran in this configuration.** The job is defined but skipped for this\n  branch, this path filter, or this event type. Confirm it ran on the change, not that it\n  exists in the file.\n\nEach of these is caught by the same one-minute mutation. None of them is caught by reading the\nguard's source and agreeing with it.\n\n## Closing the ladder\n\nAfter the change, run every gate again and record the result beside its fail-before evidence.\nThree outcomes, and the third is the one that must not be rounded off:\n\n- **Passed, having failed first** — the gate did its job.\n- **Passed, mutation-armed** — rung 2, evidence recorded.\n- **Unproven** — it passes now and it never failed first. Not a pass. Common cause: the guard\n  does not actually cover the surface it was assigned to, which means the surface is at rung 4\n  and the ladder has a hole where it claimed a rung.\n\nNever edit a guard to make it pass. In a refactor that edit is the behaviour change announcing\nitself; in a feature it is the gate being lowered to meet the work. If a guard's expectation is\ngenuinely wrong, that is its own change, with its own review, and the reason belongs in the\nrecord rather than in the diff alone.\n","bodyHtml":"<h2 id=\"the-regression-gate-ladder\">The regression gate ladder</h2>\n<p>One gate per affected surface, and each gate <strong>watched failing before the change and passing\nafter</strong>. That is the whole discipline. Everything below is how to reach it on surfaces where\nit is awkward, and what to write down when you cannot reach it at all.</p>\n<p>The failure this prevents is not a broken guard. It is a guard that was never capable of\nfailing: green on the day it was written, green forever after, counted as coverage in every\nsubsequent conversation. In one measured repository four separate CI guards were added in that\nstate — one of them a regex that could never match, because the pattern used an escape the\nmatching engine does not support. Nothing detected them, because a guard that cannot fail\nproduces exactly the output everybody wants to see.</p>\n<h3 id=\"the-ladder\">The ladder</h3>\n<p>Per affected surface, take the highest rung you can actually reach, and record which rung it\nwas. The rung is part of the deliverable: rung 3 and rung 1 are both &quot;guarded&quot;, and they are\nnot the same claim.</p>\n<table>\n<thead>\n<tr>\n<th>Rung</th>\n<th>Guard</th>\n<th>Evidence that it is armed</th>\n<th>Typical cost</th>\n</tr>\n</thead>\n<tbody><tr>\n<td>1</td>\n<td>an automated check that <strong>fails before and passes after</strong></td>\n<td>the failing output, quoted, from before the change</td>\n<td>minutes</td>\n</tr>\n<tr>\n<td>2</td>\n<td>an automated check that cannot fail first — the work is purely additive</td>\n<td>a recorded baseline <strong>plus a mutation</strong>: break the thing deliberately, watch the check fail, restore, watch it pass</td>\n<td>a minute more</td>\n</tr>\n<tr>\n<td>3</td>\n<td>a written manual observation with an expected value</td>\n<td>the procedure, plus the before-value recorded</td>\n<td>minutes to hours</td>\n</tr>\n<tr>\n<td>4</td>\n<td><strong>none</strong></td>\n<td>the surface recorded as unguarded, with what would guard it and what that costs</td>\n<td>free, and the most useful row on the page</td>\n</tr>\n</tbody></table>\n<h4 id=\"rung-1-fail-first-for-the-right-reason\">Rung 1 — fail first, for the right reason</h4>\n<p>Run the check before the change and read the failure. The trap is a failure that looks right\nand is not: the file does not exist yet, the import is misspelled, the fixture is missing, the\ntest name has a typo so the runner selected nothing and reported success on zero tests. A run\nthat fails because the apparatus is broken proves the apparatus is broken. Read the message.</p>\n<h4 id=\"rung-2-mutation-because-additive-work-cannot-fail-first\">Rung 2 — mutation, because additive work cannot fail first</h4>\n<p>Some correct work cannot make an existing check fail: adding a new column nothing reads yet,\nadding a handler nothing calls yet, widening an accepted input. There is nothing to break, so\nthere is no failing state to observe. Substitute a <strong>mutation</strong>:</p>\n<ol>\n<li>Deliberately break the thing the guard is supposed to protect — flip a boolean, delete a\nline, change the expected value.</li>\n<li>Run the guard. Watch it fail. If it passes, the guard does not cover that thing, and you\nhave just learned the surface is at rung 4, not rung 2.</li>\n<li>Restore. Run again. Watch it pass.</li>\n</ol>\n<p>Three commands. It converts &quot;there is a test for this&quot; from a claim into an observation.</p>\n<h4 id=\"rung-3-a-manual-observation-is-a-real-guard-if-it-is-written\">Rung 3 — a manual observation is a real guard if it is written</h4>\n<p>A written procedure with an expected value is checkable by someone else and repeatable next\nweek. &quot;I clicked through it and it looked fine&quot; is neither. Record the steps, the value you\nobserved before the change, and the value you expect after.</p>\n<h4 id=\"rung-4-unguarded-and-said-out-loud\">Rung 4 — unguarded, and said out loud</h4>\n<p>A surface with no reachable guard is recorded as unguarded <strong>in the deliverable</strong>, not in a\nthought and not in the run&#39;s scrollback. The row carries: the surface, why no guard exists,\nwhat would guard it, and roughly what that would cost. This row is frequently the most\nvaluable output of the entire run, because it is the only artefact anyone produces that says\nwhere the tests are not.</p>\n<h3 id=\"guard-classes-by-surface\">Guard classes by surface</h3>\n<p>Mapping the map&#39;s surfaces onto the kinds of guard that fit them:</p>\n<table>\n<thead>\n<tr>\n<th>Surface</th>\n<th>Guards that reach it</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody><tr>\n<td>Callers</td>\n<td>typecheck, unit tests at the call sites</td>\n<td>a typed language gives rung 1 almost free; a dynamic one usually does not</td>\n</tr>\n<tr>\n<td>Data contracts and derivers</td>\n<td>a test asserting the <strong>derived</strong> value, schema validation, a round-trip test</td>\n<td>the deriver is the bucket that gets skipped, and the one where both ends stay correct</td>\n</tr>\n<tr>\n<td>Background jobs and registries</td>\n<td>a registration assertion — &quot;this key appears in the registry&quot; — plus one execution test</td>\n<td>a job that stops registering fails silently and forever</td>\n</tr>\n<tr>\n<td>UI</td>\n<td>component or end-to-end test on the specific route, including the empty and error states</td>\n<td>the empty state is where a removed field renders as nothing</td>\n</tr>\n<tr>\n<td>Tests and guards</td>\n<td>the mutation above, applied to the guard itself</td>\n<td>this is the surface most likely to be quietly dead</td>\n</tr>\n<tr>\n<td>Config, infra, toolchains</td>\n<td>run <strong>each</strong> build pipeline that processes the file, not just the one in your terminal</td>\n<td>one construct, several toolchains, several behaviours</td>\n</tr>\n<tr>\n<td>Deploy ordering</td>\n<td>a rehearsal against a disposable environment, or a written window analysis</td>\n<td>rarely rung 1; usually rung 3, honestly labelled</td>\n</tr>\n<tr>\n<td>Docs, prompts, data-resident references</td>\n<td>a query against the datastore, asserting the count of rows naming the thing</td>\n<td>no code search reaches these; the break is always silent</td>\n</tr>\n<tr>\n<td>External consumers</td>\n<td>a contract test, a recorded schema, or a notification with a date</td>\n<td>often rung 4 — say so</td>\n</tr>\n<tr>\n<td>Second-order readers</td>\n<td>an assertion on the aggregate or the downstream value</td>\n<td>the value changes quietly and nothing throws</td>\n</tr>\n<tr>\n<td>Reversibility</td>\n<td>a rehearsed revert on a disposable copy</td>\n<td>proves the undo path exists rather than assuming it</td>\n</tr>\n</tbody></table>\n<h3 id=\"how-guards-go-quietly-dead\">How guards go quietly dead</h3>\n<p>Four mechanisms, all observed in real repositories, all producing green:</p>\n<ul>\n<li><strong>The pattern that matches nothing.</strong> A grep-based guard whose regex is subtly invalid, or\nwhose target was renamed. It now scans for something that does not exist and reports success.</li>\n<li><strong>The selector that selects nothing.</strong> A test filter, tag, or path glob that no longer\nmatches any file. The runner reports zero failures out of zero tests.</li>\n<li><strong>The assertion inside a swallowed path.</strong> The code under test catches its own errors by\ndesign; the test asserts &quot;it did not throw&quot;, which was never in doubt. Assert the inner call\nfired, not that the wrapper stayed quiet.</li>\n<li><strong>The check that never ran in this configuration.</strong> The job is defined but skipped for this\nbranch, this path filter, or this event type. Confirm it ran on the change, not that it\nexists in the file.</li>\n</ul>\n<p>Each of these is caught by the same one-minute mutation. None of them is caught by reading the\nguard&#39;s source and agreeing with it.</p>\n<h3 id=\"closing-the-ladder\">Closing the ladder</h3>\n<p>After the change, run every gate again and record the result beside its fail-before evidence.\nThree outcomes, and the third is the one that must not be rounded off:</p>\n<ul>\n<li><strong>Passed, having failed first</strong> — the gate did its job.</li>\n<li><strong>Passed, mutation-armed</strong> — rung 2, evidence recorded.</li>\n<li><strong>Unproven</strong> — it passes now and it never failed first. Not a pass. Common cause: the guard\ndoes not actually cover the surface it was assigned to, which means the surface is at rung 4\nand the ladder has a hole where it claimed a rung.</li>\n</ul>\n<p>Never edit a guard to make it pass. In a refactor that edit is the behaviour change announcing\nitself; in a feature it is the gate being lowered to meet the work. If a guard&#39;s expectation is\ngenuinely wrong, that is its own change, with its own review, and the reason belongs in the\nrecord rather than in the diff alone.</p>\n","words":1320},{"path":"references/side-effect-budget.md","slug":"side-effect-budget","title":"The side-effect budget","body":"# The side-effect budget\n\nThe budget is the artifact this skill exists to produce. It is written **before the first\nedit**, it is derived from the blast map rather than from recollection, and it is the thing a\nreviewer checks the diff against afterwards. Written after the work, it matches the diff\nexactly, proves nothing, and reads exactly like diligence — which is why the ordering is not\na stylistic preference.\n\nA budget answers one question that a plan does not: **what is this change not allowed to\ntouch?** The answer is \"everything not listed\", and that default is the whole mechanism.\n\n## The artifact\n\n```text\nBUDGET  <change name>  base <sha>  band <light|normal|deep>  shape <feature|refactor|migration>\nmap: <blast map reference or \"declared, no map — light band\">\n\nALLOWED\n  path or symbol                     operation   surface           note\n  src/ingest/parse.ts                edit        callers           the signature change itself\n  src/ingest/__tests__/parse.test.ts add         tests-and-guards  rung-1 guard for callers\n  migrations/<version>_drop_status   add         data-contracts    file only — NOT applied\n\nEXPECTED EFFECT\n  surface            what changes there                              break time\n  callers            three call sites take one fewer argument        compile\n  data-contracts     the column stops being selected                 runtime\n  jobs               nothing — the nightly job reads a view          none (searched, control fired)\n\nOUT OF BOUNDS\n  the four standing classes (below), plus:\n  - the shared formatter config: touching it rewrites files this change never read\n  - the deploy workflow: it is the gate this change is judged by\n\nON BREACH\n  stop → re-enter the mapping skill with the new fact → extend | split | abandon\n  never: absorb silently\n```\n\nPlain text is enough. What matters is that each row is checkable against the eventual diff by\nsomeone who was not there.\n\n## Deriving the touch-set from the map\n\nThe map is per **surface**; the budget is per **thing you will edit**. The conversion is\nmechanical and has three rules:\n\n1. **Every ALLOWED entry names a surface from the map.** An entry that cannot be attributed to\n   a surface is either an unmapped surface — go back and map it — or work that belongs to a\n   different change.\n2. **Every affected surface appears under EXPECTED EFFECT, including the empty ones.** A\n   surface the map searched and found clean carries `none`, plus the search and whether its\n   control fired. An empty row and an absent row look identical to a reader six days later,\n   and only one of them is evidence.\n3. **A node the map marks `affected` but not `changed` does not become an ALLOWED entry by\n   default.** Affected means something happens there; it does not mean you edit it. Promoting\n   an affected node to an allowed edit is a decision, and it gets its own row and its reason.\n\n## The awkward entries, declared on purpose\n\nThese are the ones that get left out and then dominate the diff:\n\n- **Generated output** — build artifacts, type definitions, an atlas or registry that a script\n  regenerates. Declare which generator you will run, and that its output is expected.\n- **Lockfiles** — a dependency change is a change to the dependency graph and belongs in the\n  map. An incidental lockfile churn from a different tool version is a side effect.\n- **Formatter and linter sweeps** — a formatter run over files this change never read is a\n  side effect with a tidy diff. Declare the scope, or exclude the tool from the run.\n- **Import reordering and auto-fixes** — the editor's helpfulness is still your diff.\n- **Snapshot updates** — updating a snapshot is asserting the new value is correct. If it is\n  correct, that is a rung-1 gate observation and belongs on the ladder; if it is unexamined, it\n  is a regression being written into the baseline.\n\n## The four standing out-of-bounds classes\n\nOutside every budget by default, regardless of what the map contains. Each is released only by\na consent that names the specific act, at the moment of the act — never by a general approval\ngiven at the start of the run, which was granted before anyone knew what the act would be.\n\n| Class | What it covers | Not covered (and therefore fine) |\n|---|---|---|\n| **Applying a migration** | executing the schema change against a live database; running a tool that applies pending files as a side effect | writing the migration file, reviewing it, dry-running it against a disposable local database |\n| **Writing to production data** | inserts, updates, deletes, a \"small\" backfill, running a job whose effect is a write, a script pointed at production credentials | reads, a query plan, a count, the same write against a local fixture |\n| **Deleting anything not restorable from history** | data, storage objects, branches, tags, secrets, and code whose only copy is the working tree | deleting committed code, which a revert restores |\n| **Sending an outbound message to a person** | mail, chat, ticket comment, notification, a status change that pages someone | drafting the message and showing it |\n\nAdd the repository's own standing exclusions to the same list. Two recur everywhere:\n**history rewriting** (force-push, rebase of a shared branch) and **editing the gates** — CI\nconfiguration, the guard patterns, the allowlists. A change that alters the guard it is being\njudged by has removed the only thing capable of contradicting it, and it is not made safe by\nbeing correct.\n\n## The breach procedure\n\nA breach is not a mistake. It is the map being wrong, which is the normal condition of maps.\nWhat makes it expensive is absorbing it.\n\n**Stop at the discovery.** Not at the end of the current edit, not after \"just finishing this\nfile\". The reason is not tidiness: the discovery is evidence that the map's method missed\nsomething, so every other surface the same method cleared is now suspect. Continuing to work\nagainst a map you have just falsified is the actual risk.\n\n**Re-enter the mapping skill with the new fact.** It re-runs its searching with the discovery\nas an input — often the same class of thing exists in three more places, and finding two of\nthem by accident is worse than finding all four on purpose.\n\n**Then take exactly one of three dispositions, in the open:**\n\n| Disposition | When | What it costs |\n|---|---|---|\n| **Extend** | the discovery belongs to this change and does not alter its shape | re-declare the budget with the new rows, announce the extension and the re-scored band |\n| **Split** | the discovery is real work with its own surfaces | land what is inside the original budget; carry the rest into a change with its own map |\n| **Abandon** | the discovery invalidates the approach | say what was found — that finding is usually worth more than the change was |\n\nThe fourth option — absorb it, it is small and related and right there — is the one everyone\ntakes by default and the one the artifact exists to remove. It is how a two-file change becomes\nan eight-file change, and how review stops being about correctness and becomes an argument\nabout scope.\n\n## Verifying the budget after the fact\n\nTwo checks, both cheap:\n\n- **Diff ⊆ ALLOWED.** List the paths the change touched and subtract the budget. A non-empty\n  remainder is either an undeclared side effect or an extension that never got written down.\n- **EXPECTED EFFECT ⊆ observed.** For each expected effect, name the gate observation that\n  confirms it happened. An expected effect nobody observed is a prediction, not a result.\n","bodyHtml":"<h2 id=\"the-side-effect-budget\">The side-effect budget</h2>\n<p>The budget is the artifact this skill exists to produce. It is written <strong>before the first\nedit</strong>, it is derived from the blast map rather than from recollection, and it is the thing a\nreviewer checks the diff against afterwards. Written after the work, it matches the diff\nexactly, proves nothing, and reads exactly like diligence — which is why the ordering is not\na stylistic preference.</p>\n<p>A budget answers one question that a plan does not: <strong>what is this change not allowed to\ntouch?</strong> The answer is &quot;everything not listed&quot;, and that default is the whole mechanism.</p>\n<h3 id=\"the-artifact\">The artifact</h3>\n<pre><code class=\"language-text\">BUDGET  &lt;change name&gt;  base &lt;sha&gt;  band &lt;light|normal|deep&gt;  shape &lt;feature|refactor|migration&gt;\nmap: &lt;blast map reference or &quot;declared, no map — light band&quot;&gt;\n\nALLOWED\n  path or symbol                     operation   surface           note\n  src/ingest/parse.ts                edit        callers           the signature change itself\n  src/ingest/__tests__/parse.test.ts add         tests-and-guards  rung-1 guard for callers\n  migrations/&lt;version&gt;_drop_status   add         data-contracts    file only — NOT applied\n\nEXPECTED EFFECT\n  surface            what changes there                              break time\n  callers            three call sites take one fewer argument        compile\n  data-contracts     the column stops being selected                 runtime\n  jobs               nothing — the nightly job reads a view          none (searched, control fired)\n\nOUT OF BOUNDS\n  the four standing classes (below), plus:\n  - the shared formatter config: touching it rewrites files this change never read\n  - the deploy workflow: it is the gate this change is judged by\n\nON BREACH\n  stop → re-enter the mapping skill with the new fact → extend | split | abandon\n  never: absorb silently\n</code></pre>\n<p>Plain text is enough. What matters is that each row is checkable against the eventual diff by\nsomeone who was not there.</p>\n<h3 id=\"deriving-the-touch-set-from-the-map\">Deriving the touch-set from the map</h3>\n<p>The map is per <strong>surface</strong>; the budget is per <strong>thing you will edit</strong>. The conversion is\nmechanical and has three rules:</p>\n<ol>\n<li><strong>Every ALLOWED entry names a surface from the map.</strong> An entry that cannot be attributed to\na surface is either an unmapped surface — go back and map it — or work that belongs to a\ndifferent change.</li>\n<li><strong>Every affected surface appears under EXPECTED EFFECT, including the empty ones.</strong> A\nsurface the map searched and found clean carries <code>none</code>, plus the search and whether its\ncontrol fired. An empty row and an absent row look identical to a reader six days later,\nand only one of them is evidence.</li>\n<li><strong>A node the map marks <code>affected</code> but not <code>changed</code> does not become an ALLOWED entry by\ndefault.</strong> Affected means something happens there; it does not mean you edit it. Promoting\nan affected node to an allowed edit is a decision, and it gets its own row and its reason.</li>\n</ol>\n<h3 id=\"the-awkward-entries-declared-on-purpose\">The awkward entries, declared on purpose</h3>\n<p>These are the ones that get left out and then dominate the diff:</p>\n<ul>\n<li><strong>Generated output</strong> — build artifacts, type definitions, an atlas or registry that a script\nregenerates. Declare which generator you will run, and that its output is expected.</li>\n<li><strong>Lockfiles</strong> — a dependency change is a change to the dependency graph and belongs in the\nmap. An incidental lockfile churn from a different tool version is a side effect.</li>\n<li><strong>Formatter and linter sweeps</strong> — a formatter run over files this change never read is a\nside effect with a tidy diff. Declare the scope, or exclude the tool from the run.</li>\n<li><strong>Import reordering and auto-fixes</strong> — the editor&#39;s helpfulness is still your diff.</li>\n<li><strong>Snapshot updates</strong> — updating a snapshot is asserting the new value is correct. If it is\ncorrect, that is a rung-1 gate observation and belongs on the ladder; if it is unexamined, it\nis a regression being written into the baseline.</li>\n</ul>\n<h3 id=\"the-four-standing-out-of-bounds-classes\">The four standing out-of-bounds classes</h3>\n<p>Outside every budget by default, regardless of what the map contains. Each is released only by\na consent that names the specific act, at the moment of the act — never by a general approval\ngiven at the start of the run, which was granted before anyone knew what the act would be.</p>\n<table>\n<thead>\n<tr>\n<th>Class</th>\n<th>What it covers</th>\n<th>Not covered (and therefore fine)</th>\n</tr>\n</thead>\n<tbody><tr>\n<td><strong>Applying a migration</strong></td>\n<td>executing the schema change against a live database; running a tool that applies pending files as a side effect</td>\n<td>writing the migration file, reviewing it, dry-running it against a disposable local database</td>\n</tr>\n<tr>\n<td><strong>Writing to production data</strong></td>\n<td>inserts, updates, deletes, a &quot;small&quot; backfill, running a job whose effect is a write, a script pointed at production credentials</td>\n<td>reads, a query plan, a count, the same write against a local fixture</td>\n</tr>\n<tr>\n<td><strong>Deleting anything not restorable from history</strong></td>\n<td>data, storage objects, branches, tags, secrets, and code whose only copy is the working tree</td>\n<td>deleting committed code, which a revert restores</td>\n</tr>\n<tr>\n<td><strong>Sending an outbound message to a person</strong></td>\n<td>mail, chat, ticket comment, notification, a status change that pages someone</td>\n<td>drafting the message and showing it</td>\n</tr>\n</tbody></table>\n<p>Add the repository&#39;s own standing exclusions to the same list. Two recur everywhere:\n<strong>history rewriting</strong> (force-push, rebase of a shared branch) and <strong>editing the gates</strong> — CI\nconfiguration, the guard patterns, the allowlists. A change that alters the guard it is being\njudged by has removed the only thing capable of contradicting it, and it is not made safe by\nbeing correct.</p>\n<h3 id=\"the-breach-procedure\">The breach procedure</h3>\n<p>A breach is not a mistake. It is the map being wrong, which is the normal condition of maps.\nWhat makes it expensive is absorbing it.</p>\n<p><strong>Stop at the discovery.</strong> Not at the end of the current edit, not after &quot;just finishing this\nfile&quot;. The reason is not tidiness: the discovery is evidence that the map&#39;s method missed\nsomething, so every other surface the same method cleared is now suspect. Continuing to work\nagainst a map you have just falsified is the actual risk.</p>\n<p><strong>Re-enter the mapping skill with the new fact.</strong> It re-runs its searching with the discovery\nas an input — often the same class of thing exists in three more places, and finding two of\nthem by accident is worse than finding all four on purpose.</p>\n<p><strong>Then take exactly one of three dispositions, in the open:</strong></p>\n<table>\n<thead>\n<tr>\n<th>Disposition</th>\n<th>When</th>\n<th>What it costs</th>\n</tr>\n</thead>\n<tbody><tr>\n<td><strong>Extend</strong></td>\n<td>the discovery belongs to this change and does not alter its shape</td>\n<td>re-declare the budget with the new rows, announce the extension and the re-scored band</td>\n</tr>\n<tr>\n<td><strong>Split</strong></td>\n<td>the discovery is real work with its own surfaces</td>\n<td>land what is inside the original budget; carry the rest into a change with its own map</td>\n</tr>\n<tr>\n<td><strong>Abandon</strong></td>\n<td>the discovery invalidates the approach</td>\n<td>say what was found — that finding is usually worth more than the change was</td>\n</tr>\n</tbody></table>\n<p>The fourth option — absorb it, it is small and related and right there — is the one everyone\ntakes by default and the one the artifact exists to remove. It is how a two-file change becomes\nan eight-file change, and how review stops being about correctness and becomes an argument\nabout scope.</p>\n<h3 id=\"verifying-the-budget-after-the-fact\">Verifying the budget after the fact</h3>\n<p>Two checks, both cheap:</p>\n<ul>\n<li><strong>Diff ⊆ ALLOWED.</strong> List the paths the change touched and subtract the budget. A non-empty\nremainder is either an undeclared side effect or an extension that never got written down.</li>\n<li><strong>EXPECTED EFFECT ⊆ observed.</strong> For each expected effect, name the gate observation that\nconfirms it happened. An expected effect nobody observed is a prediction, not a result.</li>\n</ul>\n","words":1245},{"path":"references/worked-landing.md","slug":"worked-landing","title":"A worked landing","body":"# A worked landing\n\nOne migration-shaped change, end to end: the map, the budget, the ladder, a mid-run discovery\nthat stopped the work, the extension that followed, and the surface that stayed unguarded.\nNames are generic; the sequence, including the discovery, is the ordinary one.\n\n**The change:** drop the `status` column from the `jobs` table. It has been superseded by a\n`state` enum written by the same code path for two releases.\n\n## 1. Shape and band\n\nShape: **migration**. Two halves — the readers stop reading `status`, then the column is\ndropped — an ordering between them, and one irreversible act.\n\nThe rubric is scored with `investigate-codebase`. Cost-of-being-wrong is **2** by this skill's\none rule: the plan contains applying a migration. Total lands at normal on its own; the floor\nrule would have raised it there anyway. Announced before anything is dispatched:\n\n```text\nland-complex-change · normal band — migration shape; cost-of-being-wrong 2 (plan applies a\nmigration) forces the floor. Map required, budget derived, one gate per affected surface,\nact gates armed. Attended.\n```\n\n## 2. The map, read blindspots first\n\nThe mapping skill returns nine surfaces with content and two empty. Read in the order that\nmatters:\n\n- **What it could not see:** resolution is name-based; the repository has no compiler-resolved\n  index. Data-resident references *were* queried — a single table of saved report definitions.\n  Runtime-only edges: one job dispatches handlers by a key built at runtime.\n- **Callers:** four, all in one package, `compile` break.\n- **Data contracts:** two readers plus **one deriver** — a nightly rollup computing a count\n  grouped by `status`. Break time `silent`: with the column gone the group collapses and the\n  number simply changes.\n- **Jobs:** the nightly rollup, above. `runtime` at first dispatch.\n- **Docs and data-resident:** one saved report definition names the column in a stored SQL\n  string. `silent`, always.\n- **Deploy ordering:** code-first. The schema half would break readers that are live now, so\n  the readers stop reading, old instances drain, then the column goes.\n- **External consumers:** an analytics warehouse job in another repository, **not readable from\n  here** — recorded as a blindspot with a probe: ask its owners for a column-level search.\n\n## 3. The budget, before the first edit\n\n```text\nBUDGET  drop jobs.status  base 4f2ab19  band normal  shape migration\nmap: blast map of the same base; blindspots read\n\nALLOWED\n  src/jobs/read-status.ts            edit   callers            switch four call sites to state\n  src/reports/rollup-nightly.ts      edit   data-contracts     group by state; deriver\n  src/jobs/__tests__/rollup.test.ts  edit   tests-and-guards   rung-1 guard for the deriver\n  migrations/<version>_drop_status   add    data-contracts     FILE ONLY — not applied\n\nEXPECTED EFFECT\n  callers                four call sites take state              compile\n  data-contracts         rollup groups by state, same totals     silent\n  jobs                   nightly rollup keeps running            runtime\n  docs-and-data-resident one saved report definition updated     silent\n  ui                     none — searched, control fired          none\n  external-consumers     UNKNOWN — warehouse job unreadable      unknown\n\nOUT OF BOUNDS\n  the four standing classes, plus:\n  - the enum definition itself: widening it is a different change\n  - the report-definition table beyond the single row named above\n\nON BREACH\n  stop → re-enter the mapping skill → extend | split | abandon\n```\n\nThe `migrations/...` row is the distinction the whole shape turns on: **the file is allowed,\napplying it is not.**\n\n## 4. The ladder, armed before any edit\n\n| Surface | Guard | Rung | Fail-before |\n|---|---|---|---|\n| callers | typecheck | 1 | run first: four errors, one per call site — quoted |\n| data-contracts (deriver) | rollup test asserting the grouped totals | 1 | edited the test to expect `state`; run: fails on the old code, correct reason |\n| jobs | registration assertion + one execution test | 2 | additive; **mutation**: removed the registry key, watched the assertion fail, restored |\n| tests-and-guards | the mutation above is itself the check | 2 | recorded |\n| docs-and-data-resident | a query counting rows whose SQL names `status` | 1 | returns 1 before; must return 0 after |\n| deploy-ordering | rehearsed on a disposable database | 3 | written procedure, before-value recorded |\n| ui | — | 4 | **unguarded**: no view renders the column; a search with a fired control found nothing, and nothing would catch a future one |\n| external-consumers | — | 4 | **unguarded**: the warehouse job is in another repository. Guarding it needs a column-level search by its owners — asked, answer pending |\n\nTwo rung-4 rows, both visible in the deliverable. The second is the honest one: this change\ncannot see the consumer that is most likely to break, and the reviewer needs to know that\nbefore approving, not after.\n\n## 5. The breach\n\nFour call sites edited, typecheck green. While editing the rollup, a `SELECT` built from a\nstring literal appears in a **second** report path that the map did not list — an export\nroutine assembling its query from a template, in a package the search's pathspec excluded.\n\nThe work stops there. Not after finishing the rollup edit: the discovery is evidence that the\nmap's method missed a class of thing, so every clean result from the same method is now weaker\nevidence than it was.\n\nRe-entering the mapping skill with the new fact returns what stopping bought: **three** more\nstring-built queries, not one. Two name the column; the third names a different column and is\nirrelevant. The original pathspec had excluded an entire package.\n\n**Disposition: extend.** The two new sites belong to this change — same surface, same break\ntime, no new shape. The budget is re-declared with the extra rows, the extension is announced\nwith the re-scored band (still normal), and the ladder gains a rung-1 guard for the export\npath: a test asserting the exported header set, which fails before and passes after.\n\nAbsorbing the two edits quietly would have produced a diff with two extra files and no record\nof why — and, worse, would have left the third string-built query undiscovered, because nobody\nwould have gone looking for a class of thing they had already fixed twice.\n\n## 6. Landing, in the map's order\n\nCode-first, in separately revertible steps: callers and rollup, then the export path, then the\nsaved report definition row, then the migration **file**. Four commits, each revertible alone.\n\nAt the act gate:\n\n```text\nABOUT TO:      apply the pending migration to the production database\nIT TOUCHES:    one table, one column\nCANNOT UNDO:   the column's values. A revert restores the shape, not the data.\nIF I DO NOT:   nothing else is blocked. The readers already stopped reading it.\n```\n\nConsent given, naming this act. The applied-migration record is updated in the same change —\nthe record is part of the act, and a repository whose history disagrees with production breaks\nthe next clean deploy rather than this one.\n\n## 7. Closing\n\nLadder re-run: every rung-1 gate passed having failed first; both rung-2 gates passed with\ntheir mutations recorded; the rehearsal at rung 3 matched its expected value. Nothing was\nrecorded `unproven`.\n\nResidual risks, from the map's `silent` items and the two rung-4 rows:\n\n- The warehouse job in another repository. Probe: a column-level search by its owners; asked,\n  pending. **This is the most likely break in the whole change.**\n- Any report definition added to the datastore between the query and the deploy. Probe: re-run\n  the counting query immediately before the act — done, still 0.\n- Undo: a revert restores the schema shape and the four commits. It does not restore the\n  column's values, and it does not un-write rows the new code wrote in the window.\n\nHanded to review: the diff, the budget with its one recorded extension, the ladder including\nboth unguarded rows, and the three residuals. The reviewer's first question was about the\nwarehouse job — which is the point. It was on the page.\n","bodyHtml":"<h2 id=\"a-worked-landing\">A worked landing</h2>\n<p>One migration-shaped change, end to end: the map, the budget, the ladder, a mid-run discovery\nthat stopped the work, the extension that followed, and the surface that stayed unguarded.\nNames are generic; the sequence, including the discovery, is the ordinary one.</p>\n<p><strong>The change:</strong> drop the <code>status</code> column from the <code>jobs</code> table. It has been superseded by a\n<code>state</code> enum written by the same code path for two releases.</p>\n<h3 id=\"1-shape-and-band\">1. Shape and band</h3>\n<p>Shape: <strong>migration</strong>. Two halves — the readers stop reading <code>status</code>, then the column is\ndropped — an ordering between them, and one irreversible act.</p>\n<p>The rubric is scored with <code>investigate-codebase</code>. Cost-of-being-wrong is <strong>2</strong> by this skill&#39;s\none rule: the plan contains applying a migration. Total lands at normal on its own; the floor\nrule would have raised it there anyway. Announced before anything is dispatched:</p>\n<pre><code class=\"language-text\">land-complex-change · normal band — migration shape; cost-of-being-wrong 2 (plan applies a\nmigration) forces the floor. Map required, budget derived, one gate per affected surface,\nact gates armed. Attended.\n</code></pre>\n<h3 id=\"2-the-map-read-blindspots-first\">2. The map, read blindspots first</h3>\n<p>The mapping skill returns nine surfaces with content and two empty. Read in the order that\nmatters:</p>\n<ul>\n<li><strong>What it could not see:</strong> resolution is name-based; the repository has no compiler-resolved\nindex. Data-resident references <em>were</em> queried — a single table of saved report definitions.\nRuntime-only edges: one job dispatches handlers by a key built at runtime.</li>\n<li><strong>Callers:</strong> four, all in one package, <code>compile</code> break.</li>\n<li><strong>Data contracts:</strong> two readers plus <strong>one deriver</strong> — a nightly rollup computing a count\ngrouped by <code>status</code>. Break time <code>silent</code>: with the column gone the group collapses and the\nnumber simply changes.</li>\n<li><strong>Jobs:</strong> the nightly rollup, above. <code>runtime</code> at first dispatch.</li>\n<li><strong>Docs and data-resident:</strong> one saved report definition names the column in a stored SQL\nstring. <code>silent</code>, always.</li>\n<li><strong>Deploy ordering:</strong> code-first. The schema half would break readers that are live now, so\nthe readers stop reading, old instances drain, then the column goes.</li>\n<li><strong>External consumers:</strong> an analytics warehouse job in another repository, <strong>not readable from\nhere</strong> — recorded as a blindspot with a probe: ask its owners for a column-level search.</li>\n</ul>\n<h3 id=\"3-the-budget-before-the-first-edit\">3. The budget, before the first edit</h3>\n<pre><code class=\"language-text\">BUDGET  drop jobs.status  base 4f2ab19  band normal  shape migration\nmap: blast map of the same base; blindspots read\n\nALLOWED\n  src/jobs/read-status.ts            edit   callers            switch four call sites to state\n  src/reports/rollup-nightly.ts      edit   data-contracts     group by state; deriver\n  src/jobs/__tests__/rollup.test.ts  edit   tests-and-guards   rung-1 guard for the deriver\n  migrations/&lt;version&gt;_drop_status   add    data-contracts     FILE ONLY — not applied\n\nEXPECTED EFFECT\n  callers                four call sites take state              compile\n  data-contracts         rollup groups by state, same totals     silent\n  jobs                   nightly rollup keeps running            runtime\n  docs-and-data-resident one saved report definition updated     silent\n  ui                     none — searched, control fired          none\n  external-consumers     UNKNOWN — warehouse job unreadable      unknown\n\nOUT OF BOUNDS\n  the four standing classes, plus:\n  - the enum definition itself: widening it is a different change\n  - the report-definition table beyond the single row named above\n\nON BREACH\n  stop → re-enter the mapping skill → extend | split | abandon\n</code></pre>\n<p>The <code>migrations/...</code> row is the distinction the whole shape turns on: <strong>the file is allowed,\napplying it is not.</strong></p>\n<h3 id=\"4-the-ladder-armed-before-any-edit\">4. The ladder, armed before any edit</h3>\n<table>\n<thead>\n<tr>\n<th>Surface</th>\n<th>Guard</th>\n<th>Rung</th>\n<th>Fail-before</th>\n</tr>\n</thead>\n<tbody><tr>\n<td>callers</td>\n<td>typecheck</td>\n<td>1</td>\n<td>run first: four errors, one per call site — quoted</td>\n</tr>\n<tr>\n<td>data-contracts (deriver)</td>\n<td>rollup test asserting the grouped totals</td>\n<td>1</td>\n<td>edited the test to expect <code>state</code>; run: fails on the old code, correct reason</td>\n</tr>\n<tr>\n<td>jobs</td>\n<td>registration assertion + one execution test</td>\n<td>2</td>\n<td>additive; <strong>mutation</strong>: removed the registry key, watched the assertion fail, restored</td>\n</tr>\n<tr>\n<td>tests-and-guards</td>\n<td>the mutation above is itself the check</td>\n<td>2</td>\n<td>recorded</td>\n</tr>\n<tr>\n<td>docs-and-data-resident</td>\n<td>a query counting rows whose SQL names <code>status</code></td>\n<td>1</td>\n<td>returns 1 before; must return 0 after</td>\n</tr>\n<tr>\n<td>deploy-ordering</td>\n<td>rehearsed on a disposable database</td>\n<td>3</td>\n<td>written procedure, before-value recorded</td>\n</tr>\n<tr>\n<td>ui</td>\n<td>—</td>\n<td>4</td>\n<td><strong>unguarded</strong>: no view renders the column; a search with a fired control found nothing, and nothing would catch a future one</td>\n</tr>\n<tr>\n<td>external-consumers</td>\n<td>—</td>\n<td>4</td>\n<td><strong>unguarded</strong>: the warehouse job is in another repository. Guarding it needs a column-level search by its owners — asked, answer pending</td>\n</tr>\n</tbody></table>\n<p>Two rung-4 rows, both visible in the deliverable. The second is the honest one: this change\ncannot see the consumer that is most likely to break, and the reviewer needs to know that\nbefore approving, not after.</p>\n<h3 id=\"5-the-breach\">5. The breach</h3>\n<p>Four call sites edited, typecheck green. While editing the rollup, a <code>SELECT</code> built from a\nstring literal appears in a <strong>second</strong> report path that the map did not list — an export\nroutine assembling its query from a template, in a package the search&#39;s pathspec excluded.</p>\n<p>The work stops there. Not after finishing the rollup edit: the discovery is evidence that the\nmap&#39;s method missed a class of thing, so every clean result from the same method is now weaker\nevidence than it was.</p>\n<p>Re-entering the mapping skill with the new fact returns what stopping bought: <strong>three</strong> more\nstring-built queries, not one. Two name the column; the third names a different column and is\nirrelevant. The original pathspec had excluded an entire package.</p>\n<p><strong>Disposition: extend.</strong> The two new sites belong to this change — same surface, same break\ntime, no new shape. The budget is re-declared with the extra rows, the extension is announced\nwith the re-scored band (still normal), and the ladder gains a rung-1 guard for the export\npath: a test asserting the exported header set, which fails before and passes after.</p>\n<p>Absorbing the two edits quietly would have produced a diff with two extra files and no record\nof why — and, worse, would have left the third string-built query undiscovered, because nobody\nwould have gone looking for a class of thing they had already fixed twice.</p>\n<h3 id=\"6-landing-in-the-maps-order\">6. Landing, in the map&#39;s order</h3>\n<p>Code-first, in separately revertible steps: callers and rollup, then the export path, then the\nsaved report definition row, then the migration <strong>file</strong>. Four commits, each revertible alone.</p>\n<p>At the act gate:</p>\n<pre><code class=\"language-text\">ABOUT TO:      apply the pending migration to the production database\nIT TOUCHES:    one table, one column\nCANNOT UNDO:   the column&#39;s values. A revert restores the shape, not the data.\nIF I DO NOT:   nothing else is blocked. The readers already stopped reading it.\n</code></pre>\n<p>Consent given, naming this act. The applied-migration record is updated in the same change —\nthe record is part of the act, and a repository whose history disagrees with production breaks\nthe next clean deploy rather than this one.</p>\n<h3 id=\"7-closing\">7. Closing</h3>\n<p>Ladder re-run: every rung-1 gate passed having failed first; both rung-2 gates passed with\ntheir mutations recorded; the rehearsal at rung 3 matched its expected value. Nothing was\nrecorded <code>unproven</code>.</p>\n<p>Residual risks, from the map&#39;s <code>silent</code> items and the two rung-4 rows:</p>\n<ul>\n<li>The warehouse job in another repository. Probe: a column-level search by its owners; asked,\npending. <strong>This is the most likely break in the whole change.</strong></li>\n<li>Any report definition added to the datastore between the query and the deploy. Probe: re-run\nthe counting query immediately before the act — done, still 0.</li>\n<li>Undo: a revert restores the schema shape and the four commits. It does not restore the\ncolumn&#39;s values, and it does not un-write rows the new code wrote in the window.</li>\n</ul>\n<p>Handed to review: the diff, the budget with its one recorded extension, the ladder including\nboth unguarded rows, and the three residuals. The reviewer&#39;s first question was about the\nwarehouse job — which is the point. It was on the page.</p>\n","words":1291}],"body":"# Land a complex change\n\nA complex change rarely fails at the part that was planned. It fails at the edges: the file\nthat got tidied because it was already open, the guard that has been green since the day it\nwas written and could never have failed, the migration that got applied because applying it\nwas the obvious next step, the second consumer nobody mapped. The diff is reviewable and the\nreview still misses these, because a reviewer sees what changed — not what was *allowed* to\nchange, and not which of the green checks were ever capable of turning red.\n\nTwo costs, named apart because different mechanics prevent them. A **side effect** is work\nthe change did that nobody declared. A **regression** is behaviour that used to hold, does\nnot any more, and had nothing watching it. This skill contains the first with a budget and\ncatches the second with a gate per affected surface — and when the work turns out to be\nbigger than the map said, it **stops** rather than absorbing the difference quietly.\n\nIt changes the repository. Everything it changes was declared first.\n\n## What contains a change\n\nThree artifacts, produced in this order. None of them is a status report; each one is a\nthing the run can be checked against afterwards.\n\n- **The side-effect budget.** The declared touch-set — every path, symbol, schema object and\n  config key this change is permitted to alter, derived from the blast map rather than from\n  memory — plus the classes of act that are out of bounds regardless of what the map says,\n  plus the rule for what happens when reality exceeds the declaration. A budget written after\n  the work is a description of the diff, which is a different document with the same shape.\n- **The regression gate ladder.** For every surface the map marks affected, the guard that\n  would catch a regression there — **watched failing before the change and passing after**.\n  A guard that was green on both sides proves that it ran, not that it works. Surfaces with\n  no guard at any rung are recorded as unguarded, in the deliverable, where a reviewer reads.\n- **The change band and its act gates.** How much apparatus this change is worth, scored\n  before anything is spent, with one rule that overrides the score: anything irreversible in\n  the plan raises the floor and arms consent **at the act**, not at the plan.\n\nThe mechanics behind them are ordinary and the discipline is the hard part. In one measured\nrepository, four separate CI guards were added unarmed — each passed from the day it landed,\neach was reported as coverage, and none of them was ever capable of failing. Nothing in that\nrepository was broken by a bad guard. Things were broken by the absence a green guard was\nstanding in front of.\n\n### What this skill does not own\n\n| The job | Whose it is | What this skill does with it |\n|---|---|---|\n| Which model runs which role | `model-routing` | Names **roles** and bands only. **This skill chooses no models, and it does not override `model-routing`'s Procedure step 2.** |\n| Dispatching children and seeing what they did | `agent-lifecycle` | Consumes it; keeps no child bookkeeping of its own. |\n| Durable, regenerable, CI-gated repo artifacts | `derive-codebase-context` | Reads what already exists; builds nothing durable. |\n| Answering one question about the code | `investigate-codebase` | Delegates every search, and **inherits its complexity rubric rather than restating it**. |\n| What a set of changes would affect | `blast-area` | Consumes its map as the budget's source, and re-enters it when the budget is breached. |\n| Drawing that map | `visualise-blast-area` | Optional. Renders the same envelope; changes nothing in it. |\n| Describing what the change did | `describe-changes` | Hands it the landed diff at the end. |\n| The review loop over the pull request | `request-blocks-review` and `blocks` | Hands over the budget, the ladder and the residuals; runs no review loop of its own. |\n| Intake, reproduction and candidate offers for a **report** | `resolve-problem-report` | Receives a spec from it; never performs its own intake. |\n\nInstall the companions with `npx skills add crissmoldovan/agent-skills`.\n\n## When to Use\n\n- A change crosses more than one surface — code and schema, code and jobs, code and config —\n  and no single reviewer, and no single compiler, sees the whole path.\n- A refactor claims \"no behaviour change\" and something has to hold it to that claim.\n- A migration is part of the work, and the plan contains an act that cannot be taken back.\n- A deletion is part of the work, and the evidence that it is safe has to outlive the session\n  that gathered it.\n- The last attempt at this change grew: the branch touched files nobody asked for, and review\n  turned into an argument about scope instead of about correctness.\n- The work runs unattended, or across several sessions, and \"what were we allowed to touch?\"\n  has to survive the gap.\n- A spec has arrived from a report pipeline and now has to be built without disturbing the\n  rest of the system.\n\nDo not use it to work out **what** a change would hit — `blast-area` owns that, and this skill\nconsumes its map rather than deriving a second one. Do not use it to answer a question about\nhow the code works; that is `investigate-codebase`, which both skills call for their searching.\nDo not use it to take a **report** from intake through reproduction and root cause to candidate\nfixes — `resolve-problem-report` owns that pipeline and delegates its spec-implement-verify half\nhere by name. **Neither trigger is a superset of the other.** A report can correctly end with no\nchange at all: a refutation, a question, a \"this was fixed three weeks ago\". A change frequently\nstarts with no report behind it — a roadmap item, a dependency bump, a deprecation with a date on\nit. If you hold a report and no chosen fix, start there and arrive here; if you hold a chosen\nchange and no report, start here and do not manufacture one. Do not use it to describe what\nlanded — `describe-changes` reads the diff — or to run the review loop over the pull request,\nwhich is `request-blocks-review` and `blocks`. And do not use it as a project-management wrapper\naround a body of work with no definable touch-set: the budget *is* the skill, and a budget over\nan undefined change is a formality that will be quietly widened by lunchtime.\n\n## Prerequisites\n\n1. **The change stated as changes, with a shape.** Every element names a thing — file, symbol,\n   schema object, endpoint, config key — and an operation: add, rename, drop, retype, move,\n   delete. And the change carries a shape: **feature**, **refactor**, **migration**, or a\n   stated mix, because the shape decides what the gates have to prove. Per-shape entries are in\n   [change shapes](references/change-shapes.md).\n   **Complete when:** every element has a thing and an operation, and the shape is written down.\n2. **A blast map at a named base revision.** Surfaces, break times, deploy ordering, and the\n   map's own \"what this map cannot see\". The budget is derived from this; a touch-set assembled\n   from memory is a wish.\n   **Complete when:** the map's envelope is in hand — or the run is at the light band and the\n   absence of a map is recorded as a declared, not derived, touch-set.\n3. **The repository's own checks located and runnable here.** Test command, typecheck, lint,\n   build, CI configuration, and any manual runbook step that constitutes a check.\n   **Complete when:** each is named with the command that runs it, and at least one has been run\n   in this checkout to prove the apparatus works.\n4. **A revision you can return to.** A recorded base sha, a clean or explicitly-recorded dirty\n   tree, and a branch that is not the one that deploys.\n   **Complete when:** base sha, dirty state and the revert path are written down.\n5. **Every irreversible act in the plan enumerated, before the first edit.** Applying a\n   migration, writing to production data, deleting anything not restorable from history,\n   sending an outbound message to a person, a deploy with no rollback.\n   **Complete when:** the list exists — or is empty and says so.\n6. **Attendance declared, conservatively.** If you cannot confirm a human will see and answer a\n   question in this run, it is unattended. Unattended changes both the act policy — an\n   irreversible act **stops the run** rather than proceeding with a note — and whether a run\n   record is written.\n   **Complete when:** the run is marked attended or unattended before the first gate.\n\n## Procedure\n\n1. **Name the shape, and the claim the shape makes.** A **feature** claims new behaviour: its\n   gates are new checks that must fail before the code exists. A **refactor** claims *no*\n   behaviour change: its gates are existing checks that must pass unmodified, and any test that\n   had to be edited to keep it green is a behaviour change wearing a refactor's clothes — say so\n   rather than editing it. A **migration** claims a data or schema transition: it has two halves,\n   an ordering between them, an irreversible act, and a window in which one half is new and the\n   other is old. Mixed changes take the strictest gate of each shape they contain, and are better\n   split. The per-shape budget and ladder deltas are in\n   [change shapes](references/change-shapes.md).\n\n2. **Score the change band before anything is spent, and let an irreversible act set the floor.**\n   The rubric belongs to `investigate-codebase` — five signals, each scored 0–2 against an\n   observable you actually ran, summed into light / normal / deep, with a boundary total rounding\n   up one band. Run *that* rubric; do not restate it and do not invent a second one. One rule is\n   this skill's own and it is not a restatement: **for a change, cost-of-being-wrong is 2 whenever\n   the plan contains an irreversible act.** Not \"may contain\" — contains. That forces at least the\n   normal band and it **arms the act gates** in step 8. Re-score after the map arrives, because\n   the map changes the rubric's inputs; a two-file change that turns out to cross four surfaces was\n   never a light-band change, it was a mis-scored one. Announce the band on one code path, before\n   any child is dispatched, whether or not anyone is watching. What each band buys **here**:\n\n   | Band | Apparatus | Landing |\n   |---|---|---|\n   | light | declared touch-set, one gate on the single affected surface | one step, one revert |\n   | normal | blast map required, budget derived from it, one gate per affected surface | steps ordered by the map, each separately revertible |\n   | deep | the above, plus an adversarial pre-mortem against the budget and a staged landing | staged, with a checkpoint between halves |\n\n   Band-to-role assignment, the escalation triggers and the degradations are in\n   [change bands and act gates](references/change-bands.md).\n\n3. **Take the map. Do not rebuild it, and do not substitute recollection for it.** `blast-area`\n   returns surfaces with break times, searched negatives with their controls, a deploy ordering\n   with its reason, and a mandatory list of what it could not see. Read that last part first: it\n   is the part that decides how much of the budget is guesswork. If the map is missing a surface\n   you know exists, that is a defect in the map — send it back rather than patching the hole in\n   the budget, or the budget will be the only place the surface is recorded and the reviewer will\n   never see it.\n\n4. **Declare the side-effect budget, and declare it before the first edit.** One artifact, four\n   parts, written down where the reviewer will read it:\n\n   ```text\n   BUDGET  <change name>  base <sha>  band <light|normal|deep>  shape <feature|refactor|migration>\n\n   ALLOWED          path or symbol            operation        surface (from the map)\n   EXPECTED EFFECT  surface                   what changes there            break time\n   OUT OF BOUNDS    the four standing classes + anything this change adds\n   ON BREACH        stop → re-enter blast-area → extend | split | abandon (never widen silently)\n   ```\n\n   Everything not in ALLOWED is out of bounds by default — that is what makes it a budget rather\n   than a list of intentions. Include the awkward entries explicitly: generated files, lockfiles,\n   formatter sweeps, import reorders. A formatter that rewrites two hundred files it was never\n   asked about is a side effect with a tidy diff. The full artifact, its field semantics and a\n   worked budget are in [the side-effect budget](references/side-effect-budget.md).\n\n5. **Set the out-of-bounds classes, and keep them out.** Four classes stand outside every\n   budget by default, whatever the map says, and each is released only by a consent that names\n   the specific act at the moment of the act:\n\n   - **Applying a migration** — writing the schema change to a live database, as opposed to\n     writing the migration file.\n   - **Writing to production data** — including a \"small\" backfill, and including a run of a job\n     whose effect is a write.\n   - **Deleting anything not restorable from history** — data, buckets, branches, tags, secrets,\n     and code whose only copy is the working tree.\n   - **Sending an outbound message to a person** — mail, chat, ticket comment, notification,\n     status change that pages someone.\n\n   Add the repository's own: rewriting history, touching credentials, and **editing the gates\n   themselves**, which deserves its own line because a change that alters the guard it is being\n   judged by has removed the only thing that could contradict it.\n\n6. **Arm one gate per affected surface — and watch each one fail before you change anything.**\n   This is the ladder, and it is per surface, not per repository. For each surface the map marks\n   affected, find the guard that would catch a regression there and place it on the highest rung\n   you can actually reach:\n\n   | Rung | Guard | Evidence it is armed |\n   |---|---|---|\n   | 1 | an automated check that **fails before and passes after** | the failing output, quoted, from before the change |\n   | 2 | an automated check that cannot fail first (purely additive work) | a recorded baseline, plus a **mutation**: break the thing deliberately, watch the check fail, restore |\n   | 3 | a written manual observation with an expected value | the procedure and the before-value, recorded |\n   | 4 | **none** — recorded as an unguarded surface | what would guard it, and what that would cost |\n\n   Rung 1 is the ordinary case for a feature and for a bug fix: write the check first, run it,\n   watch it fail for the right reason — not because the file does not exist yet, not because of a\n   typo in the test name. Rung 2 exists because some correct work cannot make an existing check\n   fail, and a check that has never been observed failing is a claim; the mutation converts it\n   into evidence and costs about a minute. Rung 4 is not a failure of the run — it is the run's\n   most useful output, and it must appear in the deliverable rather than in a thought. A surface\n   listed as affected with no row on the ladder is the one shape of omission this skill exists to\n   make impossible. The full ladder, per-surface guard classes, and the failure modes of each rung\n   are in [the regression gate ladder](references/regression-gates.md).\n\n7. **Land in the map's order, in steps that revert one at a time.** The deploy ordering came with\n   a reason attached; follow it, including what runs in the window between halves. Keep each step\n   independently revertible — one concern per commit — because a change that can only be\n   reverted whole converts a small regression into a full rollback, and everyone will\n   therefore choose to patch forward under pressure instead. Stay inside ALLOWED. Fixing\n   something you noticed in passing is the definitional side effect, however small and however\n   correct the fix is: it lands in a follow-up with its own budget, or it lands as an explicit\n   extension in step 9.\n\n8. **Gate every irreversible act at the act, and take none of them unattended.** Consent lives\n   here, not at band selection — a mode question at the start is the wrong moment, because nothing\n   irreversible is imminent and the person answering has no context yet. At the moment before the\n   act, state four things: what is about to happen, what it touches, what it cannot undo, and what\n   happens if you do not do it. Then wait. **An unattended run does not take an irreversible act.\n   It stops, leaves the change staged, and reports exactly what remains to be done** — a cron job\n   that applied a migration because it seemed like the natural next step has made a decision\n   nobody was present to make. And remember that the act's **record** is part of the act: in one\n   measured repository, a migration applied to production while its file sat unmoved in a staging\n   folder broke the next deploy from a clean checkout, twice inside one day, because the file's\n   location *was* the applied-history record and it disagreed with reality.\n\n9. **When something outside the budget appears, stop the work and re-enter at `blast-area`.**\n   This is the rule the artifact exists to enforce, and it is not advisory. A new caller, a second\n   registry, a consumer in another repository, a column read from a string literal, a surface the\n   map said was empty and is not — the work stops there. Re-enter the mapping skill with the new\n   fact, get an updated map, and then take one of exactly three dispositions, in the open:\n\n   - **Extend** — re-declare the budget with the new entries, announce the extension and the\n     re-scored band, and continue. An extension is a document change, not a shrug.\n   - **Split** — land what is inside the original budget, and carry the discovery into a separate\n     change with its own map and its own budget.\n   - **Abandon** — the discovery invalidates the approach. Say what was found; that finding is\n     usually worth more than the change was.\n\n   What is never available is the fourth option everybody takes by default: absorbing the\n   discovery into the current work because it is small, related, and right there. That is how a\n   two-file change becomes an eight-file change and the review becomes an argument about scope.\n\n10. **Close the ladder: pass-after for every gate, unguarded surfaces still visible.** Run every\n    guard again and record its result next to the fail-before evidence from step 6. A gate that\n    never failed before is recorded **unproven**, not passed — including one that was green all\n    along because it never covered the surface. Refactor shapes have one extra rule: if a test had\n    to be modified to make it pass, the claim of no behaviour change is refuted, and the honest\n    output is the behavioural delta rather than an edited assertion.\n\n11. **Check what the gates cannot see, and state the undo path.** Every guard you can run is a\n    guard over the surfaces the tooling reaches. Carry the map's break times forward: the `silent`\n    items are precisely the ones no green check will ever report on — a value that stops being\n    written, a job that stops registering, a query built from a string, a row in a datastore\n    naming something you renamed. List them as residual risks with the observation that would\n    settle each. Then state the undo path in the change's own terms: what a revert restores, what\n    it does not, and what data written during the window a revert cannot bring back. \"Revertible\"\n    without that second half is how a rollback becomes an incident.\n\n12. **Hand off the description and the review loop; do not perform them here.** `describe-changes`\n    writes what the change did, anchored to the diff. `request-blocks-review` and `blocks` own the\n    review loop over the pull request. Give the reviewer three things beside the diff — the\n    budget, the ladder with its unguarded rows, and the residual risks — because a reviewer with\n    only a diff can check whether the change is correct but cannot check whether it was contained.\n\n13. **Document the run when the branch calls for it.** The convention is below, and it is\n    identical in every skill of this family that supports it.\n\n### The run record\n\n**Documenting the run.** Write a full record when the invocation carries `--document` (or\nan unmistakable phrase such as \"document the run\"), at `docs/land-complex-change/<UTC-date>-<slug>.md`\nin the host repository — and always when the run is unattended, in which case it goes to the\nharness scratch directory, never the repository, and its path is named in the final answer;\nif you cannot confirm a human will see and answer a question in THIS run, treat it as\nunattended. Attended with no token: stay silent, offering once only if the run ends with an\nunresolved contradiction or an open blocking question. Five headings, in order: What was\nsearched / Who searched it / What each found / How it reconciled / What was decided and why,\nclosing with what this run could not see. No secret values, machine-absolute paths, child\ntranscripts or raw logs; no unmarked inference or unearned benefit claims; never edit an\nearlier record, and never let writing one change the answer.\n\nRecords are written per [the run-record convention](references/documenting-the-run.md).\n\nFor a change, the five headings carry the change's own material: the budget and the map it came\nfrom under *what was decided and why*; every gate with its fail-before and pass-after evidence\nunder *what each found*; each budget breach, its re-entry and its disposition under *how it\nreconciled*; and the unguarded surfaces and residual risks in *what this run could not see*.\n\n## Usage Examples\n\n```text\nHere is the blast map for dropping the status column. Turn it into a touch-set budget before you\nwrite any code, and stay inside it — if you find a reader the map missed, stop and tell me\ninstead of fixing it while you are in there.\n```\n\n```text\nThis is a pure refactor and the claim is no behaviour change. Before you start, show me which\nexisting test covers each surface on the map and which surfaces have nothing watching them at\nall. I would rather know the ladder has holes now than find out from production.\n```\n\n```text\nBuild the spec on the branch. The migration file is part of the work, but do not apply it —\nleave it staged, and tell me the ordering, what runs in the window between the halves, and what\na revert would not bring back.\n```\n\n```text\nRun this one unattended overnight. Land what is inside the budget, stop at anything\nirreversible rather than deciding for me, and document the run (--document) so I can read what\nhappened and what is left before I approve the rest.\n```\n\n```text\nThis looked like a two-file change and it is turning into eight. Stop, re-score the band, get\nthe map redone with what you just found, and come back with an extended budget before you write\nanother line.\n```\n\n```text\nBefore review: give me the gate ladder with the fail-before output for each guard, the surfaces\nyou could not guard, and the residual risks the tests cannot see. The diff I can read myself.\n```\n\n## Pitfalls\n\n- **The budget written after the work.** It will match the diff exactly, prove nothing, and read\n  as diligence. The budget's whole value is that it was falsifiable while there was still time.\n- **\"While I was in there.\"** The single most common source of side effects, and it never arrives\n  as a bad idea — it arrives as a small, correct, obviously-worth-doing fix that nobody asked for\n  and nobody will review as a change.\n- **A guard nobody watched fail.** Green from the day it was written, reported as coverage,\n  incapable of failing. Four of them in one measured repository, and each cost more than having\n  no guard, because no guard invites care and a green one invites confidence.\n- **A silently widened budget.** Extension is legitimate; extension without an announcement is\n  the failure. The difference between them is one sentence written down.\n- **Absorbing the discovery instead of re-mapping.** The new fact is evidence that the map was\n  wrong, which means the *rest* of the map is now suspect too — not just the part you noticed.\n- **Reverting the code and calling it reverted.** Rows written during the window survive the\n  revert. Jobs that fired stay fired. Messages that went out stay sent.\n- **Editing the test to make it pass.** In a refactor that is the behaviour change announcing\n  itself, and editing it is how the announcement gets suppressed.\n- **A green suite mistaken for coverage.** A suite that passes over an unguarded surface is not\n  evidence about that surface. It is evidence about the others.\n- **Applying the migration because you were already at the prompt.** The act gate exists exactly\n  where the momentum is strongest, which is why it is placed at the act and not at the plan.\n- **The unattended run that took the irreversible act and left a note.** A note is not consent.\n  Nobody was there; that is the entire premise of the branch.\n- **One commit for the whole change.** Then the only available revert is total, so under pressure\n  everybody patches forward instead — which is the state the budget was meant to avoid.\n- **Confusing the diff with the touch-set.** Generated output, lockfiles and formatter sweeps\n  belong in the budget as declared entries, or the diff will contain hundreds of files nobody\n  decided on.\n- **Changing the gate you are being judged by.** Occasionally necessary, never incidental, and\n  always its own change with its own review — a guard edited inside the change it guards has\n  removed the only thing that could have contradicted the change.\n- **Handing the reviewer a diff and nothing else.** They can check correctness from a diff. They\n  cannot check containment from a diff, because containment is a claim about what is *not* there.\n- **Leaving the act's record out of the plan.** An irreversible act whose record is not updated\n  in the same breath leaves the repository disagreeing with production — and the disagreement\n  surfaces later, in someone else's deploy.\n\n## Verification\n\n- [ ] The change's shape is named — feature, refactor, migration, or a stated mix — and the\n      claim that shape makes is written down.\n- [ ] The band was scored with `investigate-codebase`'s rubric (not a second, local one) before\n      anything was spent, and announced before any child was dispatched.\n- [ ] **Where the plan contains an irreversible act, cost-of-being-wrong was scored 2**, the\n      floor was raised to at least normal, and the act gates were armed — or the plan contains\n      none and says so.\n- [ ] The band was re-scored after the map arrived, and any change of band was announced.\n- [ ] The budget was declared **before the first edit**, and it lists ALLOWED entries, expected\n      effects per surface, the out-of-bounds classes, and the on-breach rule.\n- [ ] The touch-set was derived from the blast map — or the run is light-band and the touch-set is\n      explicitly recorded as declared, not derived.\n- [ ] Generated files, lockfiles and formatter output are either declared in the budget or absent\n      from the diff.\n- [ ] **Every surface the map marks affected has a row on the gate ladder**, with its rung.\n- [ ] Every rung-1 guard has quoted fail-before evidence; every rung-2 guard has a recorded\n      baseline and a mutation that was watched failing and then restored.\n- [ ] **Unguarded surfaces appear in the deliverable**, each with what would guard it and what\n      that would cost.\n- [ ] Every gate was re-run after the change, and any guard that never failed first is recorded\n      `unproven` rather than passed.\n- [ ] For a refactor: no existing test was modified to keep it green, or the behavioural delta is\n      reported as the finding.\n- [ ] The work landed in the map's deploy order, in steps that can be reverted one at a time.\n- [ ] Every breach of the budget stopped the work, re-entered `blast-area`, and resolved to\n      extend, split, or abandon — recorded in the open, with none absorbed silently.\n- [ ] No irreversible act was taken without consent at the act naming what it touches and what it\n      cannot undo; **no irreversible act was taken in an unattended run**.\n- [ ] Where an irreversible act was taken, the record that tracks it was updated in the same\n      change.\n- [ ] Residual risks are listed for the map's `silent` items, each with the observation that would\n      settle it, and the undo path states what a revert does **not** restore.\n- [ ] The description and the review loop were handed to `describe-changes` and\n      `request-blocks-review`, and the reviewer received the budget, the ladder and the residuals\n      alongside the diff.\n- [ ] Where a record was written, it exists at `docs/land-complex-change/<UTC-date>-<slug>.md` (or\n      the harness scratch path for an unattended run, named in the final answer), under the five\n      required headings.\n\n## Deeper reading\n\n- [The side-effect budget](references/side-effect-budget.md): the artifact field by field, how the\n  touch-set is derived from a blast map, the four standing out-of-bounds classes with the consent\n  each requires, the breach procedure with its three dispositions, and a worked budget.\n- [The regression gate ladder](references/regression-gates.md): the four rungs with their evidence\n  requirements, the guard classes that fit each of the map's surfaces, arming by mutation, how\n  guards go quietly dead, and how unguarded surfaces are reported.\n- [Change bands and act gates](references/change-bands.md): what each band buys for a change, the\n  irreversible-act floor rule, the escalation and de-escalation triggers, the act-gate script, the\n  unattended stop rule, and the degradations.\n- [Change shapes](references/change-shapes.md): feature, refactor and migration entries with the\n  budget and ladder deltas for each, mixed shapes, and the boundary with `resolve-problem-report`\n  in both directions.\n- [A worked landing](references/worked-landing.md): one migration-shaped change end to end — map\n  to budget to ladder, a mid-run discovery that stopped the work and re-entered the map, the\n  extension that followed, and the surface that stayed unguarded.\n- [The run-record convention](references/documenting-the-run.md): when a record is written, where\n  it goes, its five headings, the prohibitions, and a worked record.\n","bodyHtml":"<h2 id=\"land-a-complex-change\">Land a complex change</h2>\n<p>A complex change rarely fails at the part that was planned. It fails at the edges: the file\nthat got tidied because it was already open, the guard that has been green since the day it\nwas written and could never have failed, the migration that got applied because applying it\nwas the obvious next step, the second consumer nobody mapped. The diff is reviewable and the\nreview still misses these, because a reviewer sees what changed — not what was <em>allowed</em> to\nchange, and not which of the green checks were ever capable of turning red.</p>\n<p>Two costs, named apart because different mechanics prevent them. A <strong>side effect</strong> is work\nthe change did that nobody declared. A <strong>regression</strong> is behaviour that used to hold, does\nnot any more, and had nothing watching it. This skill contains the first with a budget and\ncatches the second with a gate per affected surface — and when the work turns out to be\nbigger than the map said, it <strong>stops</strong> rather than absorbing the difference quietly.</p>\n<p>It changes the repository. Everything it changes was declared first.</p>\n<h3 id=\"what-contains-a-change\">What contains a change</h3>\n<p>Three artifacts, produced in this order. None of them is a status report; each one is a\nthing the run can be checked against afterwards.</p>\n<ul>\n<li><strong>The side-effect budget.</strong> The declared touch-set — every path, symbol, schema object and\nconfig key this change is permitted to alter, derived from the blast map rather than from\nmemory — plus the classes of act that are out of bounds regardless of what the map says,\nplus the rule for what happens when reality exceeds the declaration. A budget written after\nthe work is a description of the diff, which is a different document with the same shape.</li>\n<li><strong>The regression gate ladder.</strong> For every surface the map marks affected, the guard that\nwould catch a regression there — <strong>watched failing before the change and passing after</strong>.\nA guard that was green on both sides proves that it ran, not that it works. Surfaces with\nno guard at any rung are recorded as unguarded, in the deliverable, where a reviewer reads.</li>\n<li><strong>The change band and its act gates.</strong> How much apparatus this change is worth, scored\nbefore anything is spent, with one rule that overrides the score: anything irreversible in\nthe plan raises the floor and arms consent <strong>at the act</strong>, not at the plan.</li>\n</ul>\n<p>The mechanics behind them are ordinary and the discipline is the hard part. In one measured\nrepository, four separate CI guards were added unarmed — each passed from the day it landed,\neach was reported as coverage, and none of them was ever capable of failing. Nothing in that\nrepository was broken by a bad guard. Things were broken by the absence a green guard was\nstanding in front of.</p>\n<h4 id=\"what-this-skill-does-not-own\">What this skill does not own</h4>\n<table>\n<thead>\n<tr>\n<th>The job</th>\n<th>Whose it is</th>\n<th>What this skill does with it</th>\n</tr>\n</thead>\n<tbody><tr>\n<td>Which model runs which role</td>\n<td><code>model-routing</code></td>\n<td>Names <strong>roles</strong> and bands only. <strong>This skill chooses no models, and it does not override <code>model-routing</code>&#39;s Procedure step 2.</strong></td>\n</tr>\n<tr>\n<td>Dispatching children and seeing what they did</td>\n<td><code>agent-lifecycle</code></td>\n<td>Consumes it; keeps no child bookkeeping of its own.</td>\n</tr>\n<tr>\n<td>Durable, regenerable, CI-gated repo artifacts</td>\n<td><code>derive-codebase-context</code></td>\n<td>Reads what already exists; builds nothing durable.</td>\n</tr>\n<tr>\n<td>Answering one question about the code</td>\n<td><code>investigate-codebase</code></td>\n<td>Delegates every search, and <strong>inherits its complexity rubric rather than restating it</strong>.</td>\n</tr>\n<tr>\n<td>What a set of changes would affect</td>\n<td><code>blast-area</code></td>\n<td>Consumes its map as the budget&#39;s source, and re-enters it when the budget is breached.</td>\n</tr>\n<tr>\n<td>Drawing that map</td>\n<td><code>visualise-blast-area</code></td>\n<td>Optional. Renders the same envelope; changes nothing in it.</td>\n</tr>\n<tr>\n<td>Describing what the change did</td>\n<td><code>describe-changes</code></td>\n<td>Hands it the landed diff at the end.</td>\n</tr>\n<tr>\n<td>The review loop over the pull request</td>\n<td><code>request-blocks-review</code> and <code>blocks</code></td>\n<td>Hands over the budget, the ladder and the residuals; runs no review loop of its own.</td>\n</tr>\n<tr>\n<td>Intake, reproduction and candidate offers for a <strong>report</strong></td>\n<td><code>resolve-problem-report</code></td>\n<td>Receives a spec from it; never performs its own intake.</td>\n</tr>\n</tbody></table>\n<p>Install the companions with <code>npx skills add crissmoldovan/agent-skills</code>.</p>\n<h3 id=\"when-to-use\">When to Use</h3>\n<ul>\n<li>A change crosses more than one surface — code and schema, code and jobs, code and config —\nand no single reviewer, and no single compiler, sees the whole path.</li>\n<li>A refactor claims &quot;no behaviour change&quot; and something has to hold it to that claim.</li>\n<li>A migration is part of the work, and the plan contains an act that cannot be taken back.</li>\n<li>A deletion is part of the work, and the evidence that it is safe has to outlive the session\nthat gathered it.</li>\n<li>The last attempt at this change grew: the branch touched files nobody asked for, and review\nturned into an argument about scope instead of about correctness.</li>\n<li>The work runs unattended, or across several sessions, and &quot;what were we allowed to touch?&quot;\nhas to survive the gap.</li>\n<li>A spec has arrived from a report pipeline and now has to be built without disturbing the\nrest of the system.</li>\n</ul>\n<p>Do not use it to work out <strong>what</strong> a change would hit — <code>blast-area</code> owns that, and this skill\nconsumes its map rather than deriving a second one. Do not use it to answer a question about\nhow the code works; that is <code>investigate-codebase</code>, which both skills call for their searching.\nDo not use it to take a <strong>report</strong> from intake through reproduction and root cause to candidate\nfixes — <code>resolve-problem-report</code> owns that pipeline and delegates its spec-implement-verify half\nhere by name. <strong>Neither trigger is a superset of the other.</strong> A report can correctly end with no\nchange at all: a refutation, a question, a &quot;this was fixed three weeks ago&quot;. A change frequently\nstarts with no report behind it — a roadmap item, a dependency bump, a deprecation with a date on\nit. If you hold a report and no chosen fix, start there and arrive here; if you hold a chosen\nchange and no report, start here and do not manufacture one. Do not use it to describe what\nlanded — <code>describe-changes</code> reads the diff — or to run the review loop over the pull request,\nwhich is <code>request-blocks-review</code> and <code>blocks</code>. And do not use it as a project-management wrapper\naround a body of work with no definable touch-set: the budget <em>is</em> the skill, and a budget over\nan undefined change is a formality that will be quietly widened by lunchtime.</p>\n<h3 id=\"prerequisites\">Prerequisites</h3>\n<ol>\n<li><strong>The change stated as changes, with a shape.</strong> Every element names a thing — file, symbol,\nschema object, endpoint, config key — and an operation: add, rename, drop, retype, move,\ndelete. And the change carries a shape: <strong>feature</strong>, <strong>refactor</strong>, <strong>migration</strong>, or a\nstated mix, because the shape decides what the gates have to prove. Per-shape entries are in\n<a href=\"references/change-shapes.md\">change shapes</a>.\n<strong>Complete when:</strong> every element has a thing and an operation, and the shape is written down.</li>\n<li><strong>A blast map at a named base revision.</strong> Surfaces, break times, deploy ordering, and the\nmap&#39;s own &quot;what this map cannot see&quot;. The budget is derived from this; a touch-set assembled\nfrom memory is a wish.\n<strong>Complete when:</strong> the map&#39;s envelope is in hand — or the run is at the light band and the\nabsence of a map is recorded as a declared, not derived, touch-set.</li>\n<li><strong>The repository&#39;s own checks located and runnable here.</strong> Test command, typecheck, lint,\nbuild, CI configuration, and any manual runbook step that constitutes a check.\n<strong>Complete when:</strong> each is named with the command that runs it, and at least one has been run\nin this checkout to prove the apparatus works.</li>\n<li><strong>A revision you can return to.</strong> A recorded base sha, a clean or explicitly-recorded dirty\ntree, and a branch that is not the one that deploys.\n<strong>Complete when:</strong> base sha, dirty state and the revert path are written down.</li>\n<li><strong>Every irreversible act in the plan enumerated, before the first edit.</strong> Applying a\nmigration, writing to production data, deleting anything not restorable from history,\nsending an outbound message to a person, a deploy with no rollback.\n<strong>Complete when:</strong> the list exists — or is empty and says so.</li>\n<li><strong>Attendance declared, conservatively.</strong> If you cannot confirm a human will see and answer a\nquestion in this run, it is unattended. Unattended changes both the act policy — an\nirreversible act <strong>stops the run</strong> rather than proceeding with a note — and whether a run\nrecord is written.\n<strong>Complete when:</strong> the run is marked attended or unattended before the first gate.</li>\n</ol>\n<h3 id=\"procedure\">Procedure</h3>\n<ol>\n<li><p><strong>Name the shape, and the claim the shape makes.</strong> A <strong>feature</strong> claims new behaviour: its\ngates are new checks that must fail before the code exists. A <strong>refactor</strong> claims <em>no</em>\nbehaviour change: its gates are existing checks that must pass unmodified, and any test that\nhad to be edited to keep it green is a behaviour change wearing a refactor&#39;s clothes — say so\nrather than editing it. A <strong>migration</strong> claims a data or schema transition: it has two halves,\nan ordering between them, an irreversible act, and a window in which one half is new and the\nother is old. Mixed changes take the strictest gate of each shape they contain, and are better\nsplit. The per-shape budget and ladder deltas are in\n<a href=\"references/change-shapes.md\">change shapes</a>.</p>\n</li>\n<li><p><strong>Score the change band before anything is spent, and let an irreversible act set the floor.</strong>\nThe rubric belongs to <code>investigate-codebase</code> — five signals, each scored 0–2 against an\nobservable you actually ran, summed into light / normal / deep, with a boundary total rounding\nup one band. Run <em>that</em> rubric; do not restate it and do not invent a second one. One rule is\nthis skill&#39;s own and it is not a restatement: <strong>for a change, cost-of-being-wrong is 2 whenever\nthe plan contains an irreversible act.</strong> Not &quot;may contain&quot; — contains. That forces at least the\nnormal band and it <strong>arms the act gates</strong> in step 8. Re-score after the map arrives, because\nthe map changes the rubric&#39;s inputs; a two-file change that turns out to cross four surfaces was\nnever a light-band change, it was a mis-scored one. Announce the band on one code path, before\nany child is dispatched, whether or not anyone is watching. What each band buys <strong>here</strong>:</p>\n<table>\n<thead>\n<tr>\n<th>Band</th>\n<th>Apparatus</th>\n<th>Landing</th>\n</tr>\n</thead>\n<tbody><tr>\n<td>light</td>\n<td>declared touch-set, one gate on the single affected surface</td>\n<td>one step, one revert</td>\n</tr>\n<tr>\n<td>normal</td>\n<td>blast map required, budget derived from it, one gate per affected surface</td>\n<td>steps ordered by the map, each separately revertible</td>\n</tr>\n<tr>\n<td>deep</td>\n<td>the above, plus an adversarial pre-mortem against the budget and a staged landing</td>\n<td>staged, with a checkpoint between halves</td>\n</tr>\n</tbody></table>\n<p>Band-to-role assignment, the escalation triggers and the degradations are in\n<a href=\"references/change-bands.md\">change bands and act gates</a>.</p>\n</li>\n<li><p><strong>Take the map. Do not rebuild it, and do not substitute recollection for it.</strong> <code>blast-area</code>\nreturns surfaces with break times, searched negatives with their controls, a deploy ordering\nwith its reason, and a mandatory list of what it could not see. Read that last part first: it\nis the part that decides how much of the budget is guesswork. If the map is missing a surface\nyou know exists, that is a defect in the map — send it back rather than patching the hole in\nthe budget, or the budget will be the only place the surface is recorded and the reviewer will\nnever see it.</p>\n</li>\n<li><p><strong>Declare the side-effect budget, and declare it before the first edit.</strong> One artifact, four\nparts, written down where the reviewer will read it:</p>\n<pre><code class=\"language-text\">BUDGET  &lt;change name&gt;  base &lt;sha&gt;  band &lt;light|normal|deep&gt;  shape &lt;feature|refactor|migration&gt;\n\nALLOWED          path or symbol            operation        surface (from the map)\nEXPECTED EFFECT  surface                   what changes there            break time\nOUT OF BOUNDS    the four standing classes + anything this change adds\nON BREACH        stop → re-enter blast-area → extend | split | abandon (never widen silently)\n</code></pre>\n<p>Everything not in ALLOWED is out of bounds by default — that is what makes it a budget rather\nthan a list of intentions. Include the awkward entries explicitly: generated files, lockfiles,\nformatter sweeps, import reorders. A formatter that rewrites two hundred files it was never\nasked about is a side effect with a tidy diff. The full artifact, its field semantics and a\nworked budget are in <a href=\"references/side-effect-budget.md\">the side-effect budget</a>.</p>\n</li>\n<li><p><strong>Set the out-of-bounds classes, and keep them out.</strong> Four classes stand outside every\nbudget by default, whatever the map says, and each is released only by a consent that names\nthe specific act at the moment of the act:</p>\n<ul>\n<li><strong>Applying a migration</strong> — writing the schema change to a live database, as opposed to\nwriting the migration file.</li>\n<li><strong>Writing to production data</strong> — including a &quot;small&quot; backfill, and including a run of a job\nwhose effect is a write.</li>\n<li><strong>Deleting anything not restorable from history</strong> — data, buckets, branches, tags, secrets,\nand code whose only copy is the working tree.</li>\n<li><strong>Sending an outbound message to a person</strong> — mail, chat, ticket comment, notification,\nstatus change that pages someone.</li>\n</ul>\n<p>Add the repository&#39;s own: rewriting history, touching credentials, and <strong>editing the gates\nthemselves</strong>, which deserves its own line because a change that alters the guard it is being\njudged by has removed the only thing that could contradict it.</p>\n</li>\n<li><p><strong>Arm one gate per affected surface — and watch each one fail before you change anything.</strong>\nThis is the ladder, and it is per surface, not per repository. For each surface the map marks\naffected, find the guard that would catch a regression there and place it on the highest rung\nyou can actually reach:</p>\n<table>\n<thead>\n<tr>\n<th>Rung</th>\n<th>Guard</th>\n<th>Evidence it is armed</th>\n</tr>\n</thead>\n<tbody><tr>\n<td>1</td>\n<td>an automated check that <strong>fails before and passes after</strong></td>\n<td>the failing output, quoted, from before the change</td>\n</tr>\n<tr>\n<td>2</td>\n<td>an automated check that cannot fail first (purely additive work)</td>\n<td>a recorded baseline, plus a <strong>mutation</strong>: break the thing deliberately, watch the check fail, restore</td>\n</tr>\n<tr>\n<td>3</td>\n<td>a written manual observation with an expected value</td>\n<td>the procedure and the before-value, recorded</td>\n</tr>\n<tr>\n<td>4</td>\n<td><strong>none</strong> — recorded as an unguarded surface</td>\n<td>what would guard it, and what that would cost</td>\n</tr>\n</tbody></table>\n<p>Rung 1 is the ordinary case for a feature and for a bug fix: write the check first, run it,\nwatch it fail for the right reason — not because the file does not exist yet, not because of a\ntypo in the test name. Rung 2 exists because some correct work cannot make an existing check\nfail, and a check that has never been observed failing is a claim; the mutation converts it\ninto evidence and costs about a minute. Rung 4 is not a failure of the run — it is the run&#39;s\nmost useful output, and it must appear in the deliverable rather than in a thought. A surface\nlisted as affected with no row on the ladder is the one shape of omission this skill exists to\nmake impossible. The full ladder, per-surface guard classes, and the failure modes of each rung\nare in <a href=\"references/regression-gates.md\">the regression gate ladder</a>.</p>\n</li>\n<li><p><strong>Land in the map&#39;s order, in steps that revert one at a time.</strong> The deploy ordering came with\na reason attached; follow it, including what runs in the window between halves. Keep each step\nindependently revertible — one concern per commit — because a change that can only be\nreverted whole converts a small regression into a full rollback, and everyone will\ntherefore choose to patch forward under pressure instead. Stay inside ALLOWED. Fixing\nsomething you noticed in passing is the definitional side effect, however small and however\ncorrect the fix is: it lands in a follow-up with its own budget, or it lands as an explicit\nextension in step 9.</p>\n</li>\n<li><p><strong>Gate every irreversible act at the act, and take none of them unattended.</strong> Consent lives\nhere, not at band selection — a mode question at the start is the wrong moment, because nothing\nirreversible is imminent and the person answering has no context yet. At the moment before the\nact, state four things: what is about to happen, what it touches, what it cannot undo, and what\nhappens if you do not do it. Then wait. <strong>An unattended run does not take an irreversible act.\nIt stops, leaves the change staged, and reports exactly what remains to be done</strong> — a cron job\nthat applied a migration because it seemed like the natural next step has made a decision\nnobody was present to make. And remember that the act&#39;s <strong>record</strong> is part of the act: in one\nmeasured repository, a migration applied to production while its file sat unmoved in a staging\nfolder broke the next deploy from a clean checkout, twice inside one day, because the file&#39;s\nlocation <em>was</em> the applied-history record and it disagreed with reality.</p>\n</li>\n<li><p><strong>When something outside the budget appears, stop the work and re-enter at <code>blast-area</code>.</strong>\nThis is the rule the artifact exists to enforce, and it is not advisory. A new caller, a second\nregistry, a consumer in another repository, a column read from a string literal, a surface the\nmap said was empty and is not — the work stops there. Re-enter the mapping skill with the new\nfact, get an updated map, and then take one of exactly three dispositions, in the open:</p>\n<ul>\n<li><strong>Extend</strong> — re-declare the budget with the new entries, announce the extension and the\nre-scored band, and continue. An extension is a document change, not a shrug.</li>\n<li><strong>Split</strong> — land what is inside the original budget, and carry the discovery into a separate\nchange with its own map and its own budget.</li>\n<li><strong>Abandon</strong> — the discovery invalidates the approach. Say what was found; that finding is\nusually worth more than the change was.</li>\n</ul>\n<p>What is never available is the fourth option everybody takes by default: absorbing the\ndiscovery into the current work because it is small, related, and right there. That is how a\ntwo-file change becomes an eight-file change and the review becomes an argument about scope.</p>\n</li>\n<li><p><strong>Close the ladder: pass-after for every gate, unguarded surfaces still visible.</strong> Run every\nguard again and record its result next to the fail-before evidence from step 6. A gate that\nnever failed before is recorded <strong>unproven</strong>, not passed — including one that was green all\nalong because it never covered the surface. Refactor shapes have one extra rule: if a test had\nto be modified to make it pass, the claim of no behaviour change is refuted, and the honest\noutput is the behavioural delta rather than an edited assertion.</p>\n</li>\n<li><p><strong>Check what the gates cannot see, and state the undo path.</strong> Every guard you can run is a\nguard over the surfaces the tooling reaches. Carry the map&#39;s break times forward: the <code>silent</code>\nitems are precisely the ones no green check will ever report on — a value that stops being\nwritten, a job that stops registering, a query built from a string, a row in a datastore\nnaming something you renamed. List them as residual risks with the observation that would\nsettle each. Then state the undo path in the change&#39;s own terms: what a revert restores, what\nit does not, and what data written during the window a revert cannot bring back. &quot;Revertible&quot;\nwithout that second half is how a rollback becomes an incident.</p>\n</li>\n<li><p><strong>Hand off the description and the review loop; do not perform them here.</strong> <code>describe-changes</code>\nwrites what the change did, anchored to the diff. <code>request-blocks-review</code> and <code>blocks</code> own the\nreview loop over the pull request. Give the reviewer three things beside the diff — the\nbudget, the ladder with its unguarded rows, and the residual risks — because a reviewer with\nonly a diff can check whether the change is correct but cannot check whether it was contained.</p>\n</li>\n<li><p><strong>Document the run when the branch calls for it.</strong> The convention is below, and it is\nidentical in every skill of this family that supports it.</p>\n</li>\n</ol>\n<h4 id=\"the-run-record\">The run record</h4>\n<p><strong>Documenting the run.</strong> Write a full record when the invocation carries <code>--document</code> (or\nan unmistakable phrase such as &quot;document the run&quot;), at <code>docs/land-complex-change/&lt;UTC-date&gt;-&lt;slug&gt;.md</code>\nin the host repository — and always when the run is unattended, in which case it goes to the\nharness scratch directory, never the repository, and its path is named in the final answer;\nif you cannot confirm a human will see and answer a question in THIS run, treat it as\nunattended. Attended with no token: stay silent, offering once only if the run ends with an\nunresolved contradiction or an open blocking question. Five headings, in order: What was\nsearched / Who searched it / What each found / How it reconciled / What was decided and why,\nclosing with what this run could not see. No secret values, machine-absolute paths, child\ntranscripts or raw logs; no unmarked inference or unearned benefit claims; never edit an\nearlier record, and never let writing one change the answer.</p>\n<p>Records are written per <a href=\"references/documenting-the-run.md\">the run-record convention</a>.</p>\n<p>For a change, the five headings carry the change&#39;s own material: the budget and the map it came\nfrom under <em>what was decided and why</em>; every gate with its fail-before and pass-after evidence\nunder <em>what each found</em>; each budget breach, its re-entry and its disposition under <em>how it\nreconciled</em>; and the unguarded surfaces and residual risks in <em>what this run could not see</em>.</p>\n<h3 id=\"usage-examples\">Usage Examples</h3>\n<pre><code class=\"language-text\">Here is the blast map for dropping the status column. Turn it into a touch-set budget before you\nwrite any code, and stay inside it — if you find a reader the map missed, stop and tell me\ninstead of fixing it while you are in there.\n</code></pre>\n<pre><code class=\"language-text\">This is a pure refactor and the claim is no behaviour change. Before you start, show me which\nexisting test covers each surface on the map and which surfaces have nothing watching them at\nall. I would rather know the ladder has holes now than find out from production.\n</code></pre>\n<pre><code class=\"language-text\">Build the spec on the branch. The migration file is part of the work, but do not apply it —\nleave it staged, and tell me the ordering, what runs in the window between the halves, and what\na revert would not bring back.\n</code></pre>\n<pre><code class=\"language-text\">Run this one unattended overnight. Land what is inside the budget, stop at anything\nirreversible rather than deciding for me, and document the run (--document) so I can read what\nhappened and what is left before I approve the rest.\n</code></pre>\n<pre><code class=\"language-text\">This looked like a two-file change and it is turning into eight. Stop, re-score the band, get\nthe map redone with what you just found, and come back with an extended budget before you write\nanother line.\n</code></pre>\n<pre><code class=\"language-text\">Before review: give me the gate ladder with the fail-before output for each guard, the surfaces\nyou could not guard, and the residual risks the tests cannot see. The diff I can read myself.\n</code></pre>\n<h3 id=\"pitfalls\">Pitfalls</h3>\n<ul>\n<li><strong>The budget written after the work.</strong> It will match the diff exactly, prove nothing, and read\nas diligence. The budget&#39;s whole value is that it was falsifiable while there was still time.</li>\n<li><strong>&quot;While I was in there.&quot;</strong> The single most common source of side effects, and it never arrives\nas a bad idea — it arrives as a small, correct, obviously-worth-doing fix that nobody asked for\nand nobody will review as a change.</li>\n<li><strong>A guard nobody watched fail.</strong> Green from the day it was written, reported as coverage,\nincapable of failing. Four of them in one measured repository, and each cost more than having\nno guard, because no guard invites care and a green one invites confidence.</li>\n<li><strong>A silently widened budget.</strong> Extension is legitimate; extension without an announcement is\nthe failure. The difference between them is one sentence written down.</li>\n<li><strong>Absorbing the discovery instead of re-mapping.</strong> The new fact is evidence that the map was\nwrong, which means the <em>rest</em> of the map is now suspect too — not just the part you noticed.</li>\n<li><strong>Reverting the code and calling it reverted.</strong> Rows written during the window survive the\nrevert. Jobs that fired stay fired. Messages that went out stay sent.</li>\n<li><strong>Editing the test to make it pass.</strong> In a refactor that is the behaviour change announcing\nitself, and editing it is how the announcement gets suppressed.</li>\n<li><strong>A green suite mistaken for coverage.</strong> A suite that passes over an unguarded surface is not\nevidence about that surface. It is evidence about the others.</li>\n<li><strong>Applying the migration because you were already at the prompt.</strong> The act gate exists exactly\nwhere the momentum is strongest, which is why it is placed at the act and not at the plan.</li>\n<li><strong>The unattended run that took the irreversible act and left a note.</strong> A note is not consent.\nNobody was there; that is the entire premise of the branch.</li>\n<li><strong>One commit for the whole change.</strong> Then the only available revert is total, so under pressure\neverybody patches forward instead — which is the state the budget was meant to avoid.</li>\n<li><strong>Confusing the diff with the touch-set.</strong> Generated output, lockfiles and formatter sweeps\nbelong in the budget as declared entries, or the diff will contain hundreds of files nobody\ndecided on.</li>\n<li><strong>Changing the gate you are being judged by.</strong> Occasionally necessary, never incidental, and\nalways its own change with its own review — a guard edited inside the change it guards has\nremoved the only thing that could have contradicted the change.</li>\n<li><strong>Handing the reviewer a diff and nothing else.</strong> They can check correctness from a diff. They\ncannot check containment from a diff, because containment is a claim about what is <em>not</em> there.</li>\n<li><strong>Leaving the act&#39;s record out of the plan.</strong> An irreversible act whose record is not updated\nin the same breath leaves the repository disagreeing with production — and the disagreement\nsurfaces later, in someone else&#39;s deploy.</li>\n</ul>\n<h3 id=\"verification\">Verification</h3>\n<ul>\n<li><input disabled=\"\" type=\"checkbox\"> The change&#39;s shape is named — feature, refactor, migration, or a stated mix — and the\nclaim that shape makes is written down.</li>\n<li><input disabled=\"\" type=\"checkbox\"> The band was scored with <code>investigate-codebase</code>&#39;s rubric (not a second, local one) before\nanything was spent, and announced before any child was dispatched.</li>\n<li><input disabled=\"\" type=\"checkbox\"> <strong>Where the plan contains an irreversible act, cost-of-being-wrong was scored 2</strong>, the\nfloor was raised to at least normal, and the act gates were armed — or the plan contains\nnone and says so.</li>\n<li><input disabled=\"\" type=\"checkbox\"> The band was re-scored after the map arrived, and any change of band was announced.</li>\n<li><input disabled=\"\" type=\"checkbox\"> The budget was declared <strong>before the first edit</strong>, and it lists ALLOWED entries, expected\neffects per surface, the out-of-bounds classes, and the on-breach rule.</li>\n<li><input disabled=\"\" type=\"checkbox\"> The touch-set was derived from the blast map — or the run is light-band and the touch-set is\nexplicitly recorded as declared, not derived.</li>\n<li><input disabled=\"\" type=\"checkbox\"> Generated files, lockfiles and formatter output are either declared in the budget or absent\nfrom the diff.</li>\n<li><input disabled=\"\" type=\"checkbox\"> <strong>Every surface the map marks affected has a row on the gate ladder</strong>, with its rung.</li>\n<li><input disabled=\"\" type=\"checkbox\"> Every rung-1 guard has quoted fail-before evidence; every rung-2 guard has a recorded\nbaseline and a mutation that was watched failing and then restored.</li>\n<li><input disabled=\"\" type=\"checkbox\"> <strong>Unguarded surfaces appear in the deliverable</strong>, each with what would guard it and what\nthat would cost.</li>\n<li><input disabled=\"\" type=\"checkbox\"> Every gate was re-run after the change, and any guard that never failed first is recorded\n<code>unproven</code> rather than passed.</li>\n<li><input disabled=\"\" type=\"checkbox\"> For a refactor: no existing test was modified to keep it green, or the behavioural delta is\nreported as the finding.</li>\n<li><input disabled=\"\" type=\"checkbox\"> The work landed in the map&#39;s deploy order, in steps that can be reverted one at a time.</li>\n<li><input disabled=\"\" type=\"checkbox\"> Every breach of the budget stopped the work, re-entered <code>blast-area</code>, and resolved to\nextend, split, or abandon — recorded in the open, with none absorbed silently.</li>\n<li><input disabled=\"\" type=\"checkbox\"> No irreversible act was taken without consent at the act naming what it touches and what it\ncannot undo; <strong>no irreversible act was taken in an unattended run</strong>.</li>\n<li><input disabled=\"\" type=\"checkbox\"> Where an irreversible act was taken, the record that tracks it was updated in the same\nchange.</li>\n<li><input disabled=\"\" type=\"checkbox\"> Residual risks are listed for the map&#39;s <code>silent</code> items, each with the observation that would\nsettle it, and the undo path states what a revert does <strong>not</strong> restore.</li>\n<li><input disabled=\"\" type=\"checkbox\"> The description and the review loop were handed to <code>describe-changes</code> and\n<code>request-blocks-review</code>, and the reviewer received the budget, the ladder and the residuals\nalongside the diff.</li>\n<li><input disabled=\"\" type=\"checkbox\"> Where a record was written, it exists at <code>docs/land-complex-change/&lt;UTC-date&gt;-&lt;slug&gt;.md</code> (or\nthe harness scratch path for an unattended run, named in the final answer), under the five\nrequired headings.</li>\n</ul>\n<h3 id=\"deeper-reading\">Deeper reading</h3>\n<ul>\n<li><a href=\"references/side-effect-budget.md\">The side-effect budget</a>: the artifact field by field, how the\ntouch-set is derived from a blast map, the four standing out-of-bounds classes with the consent\neach requires, the breach procedure with its three dispositions, and a worked budget.</li>\n<li><a href=\"references/regression-gates.md\">The regression gate ladder</a>: the four rungs with their evidence\nrequirements, the guard classes that fit each of the map&#39;s surfaces, arming by mutation, how\nguards go quietly dead, and how unguarded surfaces are reported.</li>\n<li><a href=\"references/change-bands.md\">Change bands and act gates</a>: what each band buys for a change, the\nirreversible-act floor rule, the escalation and de-escalation triggers, the act-gate script, the\nunattended stop rule, and the degradations.</li>\n<li><a href=\"references/change-shapes.md\">Change shapes</a>: feature, refactor and migration entries with the\nbudget and ladder deltas for each, mixed shapes, and the boundary with <code>resolve-problem-report</code>\nin both directions.</li>\n<li><a href=\"references/worked-landing.md\">A worked landing</a>: one migration-shaped change end to end — map\nto budget to ladder, a mid-run discovery that stopped the work and re-entered the map, the\nextension that followed, and the surface that stayed unguarded.</li>\n<li><a href=\"references/documenting-the-run.md\">The run-record convention</a>: when a record is written, where\nit goes, its five headings, the prohibitions, and a worked record.</li>\n</ul>\n","outline":["What contains a change","When to Use","Prerequisites","Procedure","Usage Examples","Pitfalls","Verification","Deeper reading"],"words":5075}
