[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7587QCRDFBV0HGR7ZTEGS0K":3,"skill-same:01M7587QCRDFBV0HGR7ZTEGS0K":112},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":41,"commitSha":42,"skillDirectory":43,"forksCount":44,"repositoryHtmlUrl":45,"repositoryHomepageUrl":46,"ownerHtmlUrl":47,"ownerBlogUrl":6,"ownerDescription":48,"updatedAt":49,"install":50,"resources":63},"01M7587QCRDFBV0HGR7ZTEGS0K","governance-closeout",null,"Use when a governed change will not close.","lukemcqueen\u002Fsteadfaste-fleet","lukemcqueen","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F405240?v=4","01M757MHPAGRXTJAT46SKZP98R","Luke McQueen","01M757MHPZ573KP8DT9GB8SBQ7",4,"MIT","https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet\u002Fblob\u002Fmain\u002Fskills\u002Fdevops\u002Fgovernance-closeout\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: governance-closeout\nversion: 1.0.0\ncategory: devops\ndescription: \"Use when a governed change will not close.\"\nauthor: Steadfaste Fleet curator\nlicense: MIT\nplatforms: [linux, macos]\nmetadata:\n  hermes:\n    tags: [governance, loop-governance, adversarial-review, lock, close-out]\n    related_skills: [loop-governance, governance-lock-lifecycle, two-hard-rules]\n---\n\n## A window cannot demand another window's content\n\nA per-blob window shows ONE file, so \"commit the sibling's test bodies here\" and \"commit the\nimplementation here\" are unsatisfiable by construction — and the refusal count RISES as the worker\nanswers it. Fix the reviewer's CONSTITUTION (prompt template) and pair the rule with a structural fact\nthe window can show; never keep editing the judged files. A template edit also changes the rules\nrevision, which RE-SENDS the blobs the old rules refused — that is the unblock for a stuck range.\nTerminal exit, the pinning test, and the measure-before-you-build recipe:\n`references\u002Freviewer-policy-two-windows.md`.\n\n## No resolvable push range means GENERIC feedback, never a whole-history demand\n\nWhen the push base cannot be resolved — no repo, no remote, or a base that fell back to the root\ncommit — the range is NOT \"all history\". Enumerating it would list every path in the session opener\nand demand a verdict per blob for the entire repository. The gate instead treats the range as absent:\nno blobs are enumerated, the receipt binds by exact tip+base only (the STRICTER authorisation — the\nconsumer accepts a blob-less receipt only under that rule), and the session opener prints\n`NO RESOLVABLE PUSH RANGE` plus the generic expectations (operator rule, 2026-10-18: \"no repo data to\nwork with\" means generic feedback). Two traps when testing this: a fake repo path like `\u002Ftmp` has no\ngit, so the unresolvable branch fires in tests that meant to exercise the NORMAL path — stub the\nfallback predicate explicitly and say which case each test describes.\n\n## Coverage is \"judged and nothing outstanding\", not CLEAN\n\nA blob is COVERED when its stored verdict is CLEAN **or** its findings are all below blocking.\nDemanding a bare CLEAN made an `info`-only review uncoverable forever — the close reported\n\"0 blocking findings\" and \"carries no review verdict\" for the SAME blob at once, so the range could\nnever close. Widening coverage this way is not weaker severity gating: a blocking finding still\nrefuses the close, and an UNJUDGED blob is still uncovered. When a range looks unclosable, check\nwhether a judged blob is being held to CLEAN by mistake.\n\n## A path that does not exist at the tip is NOT reviewable — demanding it is a deadlock\n\n`range_blobs` records a path the range changed but that is ABSENT at the tip with the sentinel\n`\"deleted\"` — a deletion, or every old path of a file that was RENAMED while the stored base\npredates the rename. Such a path has no diff, so no verdict can EVER satisfy the demand, and a blob\nalready carrying a non-clean verdict is never re-sent. The result is a deadlock, not strictness:\n`reviewed this pass: 0` with the same paths pending on every close, for ever — and the reviewer's\nfinding form gives it away (\"prove, from within this file's diff, that …\" for a file with no diff).\nThe only exit is an override, so treat it as the bug it is. Two halves, and shipping one alone just\nmoves the deadlock:\n\n- the DEMAND excludes any path with no content at tip, and REPORTS the exclusion (count + sample) —\n  silently dropping it is the same defect class;\n- the RECEIPT still names each such path PER PATH (value = the sentinel), or the push gate — which\n  queries the same range, sentinel included — refuses that range for ever instead.\n\nDiagnose from the symptom pair: `reviewed this pass: 0` while paths stay pending, PLUS a stored base\nthat predates a rename. Confirm with `git log --oneline \u003Cbase>..HEAD` (find the rename commit) and\n`git log --diff-filter=D --name-only \u003Cbase>..HEAD` (list what vanished). A fresh base also clears it,\nbut the base is computed by `begin_change`, so it is not something the worker picks mid-cycle.\nNote the residual that this does NOT fix: a path that STILL EXISTS and whose recorded verdict is\nnon-clean keeps its verdict and stays pending — that is a JUDGEMENT problem, and its exits are a new\nblob (edit and re-commit) or a fresh base. `rereview_change` is now one of its exits too: a CLEAN\nre-review DELETES the per-blob verdicts for the range it just judged, so those blobs are re-judged\nlive on the next close instead of blocking on a row the range-level review has already overruled.\nNever a silent override.\n\n## `reviewed this pass: 0` with blobs pending is an ENGINE condition, not work to finish\n\nThe per-blob pass runs inside the SAME 240s client window as the whole-range review, and a range\ncall measures 180-220s — so the pass can be handed a remainder that no single blob call can fit\ninside. It then issued the wave anyway, every call was cut at the deadline, `calls` stayed 0, and\neach blob was reported as \"still carries no review verdict\": a statement about blob WORK that was\nreally a statement about the clock. Four closes in a row said the same thing, each ending \"fix the\nfile and commit it\" for a file already fixed.\n\nRead the two states apart before doing anything to your tree:\n\n- **the window was already spent** — the refusal now names it (`REVIEW_WINDOW_SPENT`), states that\n  ZERO blob calls were attempted, and says the remedy is to RETRY the close, not to edit: the range\n  verdict is stored, so the retry skips the range call and hands the pass the whole window. Editing\n  files cannot change this outcome.\n- **nothing was eligible** — every outstanding blob already carries a not-clean verdict for its\n  EXACT content. Then, and only then, the remedy is a CONTENT change (a new blob), because\n  re-sending identical bytes cannot produce a different verdict.\n\nA close refuses as `REVIEW_WINDOW_SPENT` only below `BLOB_REVIEW_MIN_CALL_S` (180s, the low end of\nthe measured band), so it never starts a call it knows will be abandoned. The refusal text and the\nreplay-safe distinction are pinned by\n`tests\u002Ftest_perblob_zero_work_is_engine_condition.py`; the floor's arithmetic by\n`tests\u002Ftest_close_budget_bounds.py`. When a close reports zero work, first ask WHICH of the two you\nare looking at — one is fixed by another close, the other by a commit, and confusing them is what\nturns a refusal into a loop.\n\n## An empty reviewer reply is the FIRST thing to check when a close hangs or refuses\n\n`REVIEWER_REASONING_EFFORT` is the lever, not `REVIEWER_MAX_TOKENS`. A reasoning model thinks to\nwhatever cap it is given and returns EMPTY content (`finish_reason=length`), so no blob is ever\ncredited and every close burns the whole client window: measured, effort `low` returned nothing at\ncaps 16k, 32k and 128k, while effort `none` returned a verdict in seconds on the same material. Both\nvalues are read at CALL time from the fleet `.env`, so no restart is needed to change them.\n\n## The reviewer's demands are scoped by claim type\n\nBehaviour a file controls → a committed, re-runnable test. A historical measurement or an operator\ndirective → a POINTER to its record (cycle id, event number, evidence path); neither can be a test\nfixture, because the measured behaviour is the one being replaced and a quoted instruction is a fact.\nA cited sibling → judged on its own blob, never as fabrication. A pre-existing helper used by new\ncode is context, not a claim. A repo-internal REFERENCE (`see CURRENT_STATE.md`, a cross-reference\nbetween docs) is a POINTER: its evidence is that the target exists at the reviewed tip, which the\nreviewer cannot see from the diff alone — so it is a PROMPT gap (flag only a target that does not\nexist), not a defect in the docs and never a case for an override. Answering it by editing every\nAnswering it by editing every referenced file is a loop: those files reference yet more files.\n\n**Bulk-recovered HISTORY is the case that breaks the claim classes: a record gets judged as a live\nclaim.** Landing many recovered documents in one range puts N prose files under the reviewer, each\njudged on its OWN blob — and a document that merely asserts something about code is `behaviour`, so\nthe demand is a committed, re-runnable test. Nobody can write that test for a past measurement, so\none such finding arrives per recovered file, at one pass per four files, and each fix commit widens\nthe range further. Diagnose it as a claim-class mismatch, not as a defect in the recovered text:\nthe policy above already makes a historical measurement a POINTER to its record, so the move is to\nhave the material declare what it is a record OF (as-of date, provenance line) instead of reading as\nspecification for the code today — and to land recovered prose in waves rather than as one\nhundred-file range. Do NOT answer the class by adding a test artifact per file: the range grows,\nevery file's share of the material shrinks, and the new files are judged too.\n\n## A blob's material now SHOWS the range siblings' added lines\n\nEvery per-blob material carries `sibling ADDED lines`: the *added* lines of the range's other files,\nbounded to 6 files \u002F 12 lines each \u002F 60 total. This exists because of the highest-cost churn measured\n(2026-10-18): a file whose evidence is proved in another file — \"the test that asserts this is in\ntests\u002F…\" — could not be cleared in one round trip. The reviewer saw the sibling's PATH and its verdict\nbut never its CONTENT, so it kept demanding the evidence be duplicated into the file under review or\nproduced as committed output; the only thing that satisfied it was TOUCHING the sibling too, which\nchanged a blob sha and nothing else. A 3-blob range cost ~10 closes that way.\n\nSo when a review asks where the proof is, check the material first — it is probably in that block — and\ndo **not** adopt \"when the fix is in another file, touch both\" as a habit: it codifies the symptom.\n\n**When the proof is a WHOLE sibling the block cannot carry — a test file, not a line — NAME the\ncoverage inside the file under review.** The block carries added LINES under a bound (6 files, 12\nlines each, 60 total), so a reviewer reading `mcp-servers\u002Fx.py` still cannot see that\n`tests\u002Ftest_x.py::test_\u003Cproperty>` exists. Measured: it demanded \"commit a test that injects a\nreviewer sleeping longer than the remaining budget\" while that exact test was already committed in\nthe same range — and because identical content is never re-judged, no note could clear it. The fix\nthat works is a comment in the judged file naming the covering tests beside the code they cover\n(`COVERED BY tests\u002Ftest_x.py::test_a, ::test_b`), which makes the demand answerable from the material\nalone. Prefer that to touching the sibling: touching it changes a blob sha and nothing else.\n\n**…and the pointer BACKFIRES when the complaint is that the window cannot see the other file at\nall.** Measured: adding `COVERED BY tests\u002F…::test_name` pointers to a judged file RAISED the blocking\ncount from 4 to 9, all of one class — the pointer handed the reviewer a test id to demand the BODY of,\nand the test file's own window demanded the implementation in return. When two files prove each other\n(an implementation and its test file), no single-blob window can hold both, so the demand is\nunsatisfiable BY CONSTRUCTION and no edit to either file can clear it. Read the CLASS as the defect,\nnot the pointer: the pointer works when the window can RESOLVE it (the sibling list names that test),\nand is useless when the complaint is that the other file is not visible at all.\n\n**Two rounds of the SAME class = stop editing the judged files.** Record the class with its\nmeasurement (`record_issue`), release the cycle terminally — `advance_task_state(new_state=\n\"cancelled\", reason=…)`; a terminal task holds nothing and an already-scored cycle leaves no PENDING\nleak — and fix the reviewer's constitution or the verdict schema in its OWN governed change. Every\nedit also buys a fresh review of a NEW blob, so the rounds are not free: a count that RISES while the\nclass stays the same is the signal, not a reason to try one more wording.\n\n## A blocking verdict is keyed to blob CONTENT — a file whose fix landed in a SIBLING must change\n\n`_blobs_with_recorded_verdict` skips content that already has a verdict, and the reasoning is sound\n(\"identical bytes cannot produce a different verdict\"). The consequence: a blob that came back with\nBLOCKING findings keeps that verdict, is reported in `remaining`, and is **never re-judged** — so if\nyou answered its finding by editing ANOTHER file, the blamed file still carries the old refusal and the\nrange cannot close. Touch **both** when the fix genuinely lives elsewhere (the sibling block above is\nwhat makes that rare). An `UNJUDGED` reply is deliberately NOT recorded, precisely so this cannot\nhappen to content nobody judged.\n\n## Tell the agent BEFORE the close, with content the reviewer expects\n\n`begin_change` prints the review scope (the paths that will be judged), the standing expectations,\nAND preflight advice computed from the range's own added lines (a cited measurement wants a pointer;\na recorded `rc=124` wants a completed run; a test calling into a sibling wants a dependency pointer).\nIt is silent when nothing is outstanding. The close names the unreviewed paths and reports the true\ncovered count — never a bare count, which forces a database query per round trip.\n\n## Requesting a review: read docs\u002Ftemplates\u002Fadversarial-review-brief.md first\n\nThat template is for whoever ASKS for a review. Its measured lesson: a brief that led with its\nauthor's five suspicions came back with six findings that merely restated them, so it now leads with\nopen questions and the code, and it carries a table of what a reviewer cannot see (siblings, your\nterminal, the store, the past, a helper present at both range ends) with what to supply instead.\n\n## Read a review's FINDINGS, not its verdict token\n\nA CLEAN from a review request is an approval only if its findings are empty or trivial. A CLEAN whose\nsingle finding is `info` `unverified-claim` saying the window held only a path is the tell of\n`--material \u003Cpath>` instead of the file's CONTENTS — it verified nothing, and citing it as an approval\nmeans quoting a paid pass on an empty review. Read the stored row before relying on it:\n\n```bash\nsqlite3 ~\u002F.steadfaste-fleet\u002Fdata\u002Floop-governance.db \\\n  \"SELECT reviewer_model, verdict, findings_json FROM adversarial_reviews WHERE cycle_id=\u003CN>\"\n```\n\nThe material and pass-off rules live in `adversarial-review-passoff`; this is the close-out side of the\nsame rule — and the same instinct that says \"the gate passed\" is the one to distrust here.\n\n# Governance Close-out\n\n**Class of task:** closing a governed change — `feedback_accept` then `end_change` —\nand everything that can refuse it: an unscored cycle, an unclosable cycle, an\nadversarial review returning FINDINGS, or a fix to the close-out path that is not live\nyet.\n\n> The normative governance rules live in the repo (AGENTS.md, the loop-governance\n> skill). This skill is the CLOSE-OUT procedure and the traps that cost time.\n\n## The procedure\n\n```text\ncycle_query(status=\"pending\")                  # every cycle for this session\nfeedback_accept(cycle_id=…, completeness=…, quality=…, progress=…, note=\"…\")\nend_change(task_id=…)                          # refuses while the cycle is unscored\n```\n\nA bare note is refused: pass scores, or an explicit `unscored_reason`.\n**Pass ALL THREE scores in the one call — a partial call is ACCEPTED and silently records zeros.**\n`feedback_accept` takes `completeness`, `quality` and `progress`; supplying one raises no error, so\nfinished, verified work is recorded as e.g. `completeness=10, quality=0, progress=0 → composite 4.0`.\nNothing downstream complains — the cycle closes and the bad number sits in the record for any later\nreader, and any metric over composites reads it as a poor cycle. So check the returned line names all\nthree values before moving on — **the RECORD is the evidence, not the call.** Measured: a call that\npassed all three was stored as `completeness=8, quality=0, progress=0 → composite 3.2`, and\nre-issuing the SAME cycle with the same values then reported `8.0\u002F8.0\u002F8.0 → composite 8.0`. So read\nthe returned line every time and re-issue when it disagrees with what you passed, rather than\nexplaining the number afterwards. It is CORRECTABLE while the session is live: re-issue\n`feedback_accept` for the SAME cycle id with all three (`MOVE_ON → MOVE_ON`, composite updated and\nreported). Do that rather than explaining the number afterwards — the reflection note cannot fix a\nwrong score, and re-scoring is cheaper than the confusion it prevents.\n\n**Score a deliberately PARTIAL change honestly, and NAME the gap.** A cycle whose scope was cut\nshort — the first of two items landed, a follow-up sweep deferred because it depends on the\narbiter this change introduces — is RECORDED, not hidden: pass the real numbers and state the\ndeferred item in one clause. Completeness 10 beside an unstated gap is a false record, and the\nnext session cannot tell a finished change from an abandoned one; a 9 with the gap named is what\nit actually needs. `unscored_reason` is for a cycle where NOTHING could be measured — an approval\ntimed out, no change made — never a substitute for scores you can defend. Decisions are\ncompared by CLASS, so a `LOOP` result still closes.\n\n## A close judges a WAVE of blobs per pass — count the passes before you start\n\nThe per-blob pass judges up to `CLOSE_BLOBS_PER_WINDOW` blobs per close, CONCURRENTLY, inside one\nbounded window (the window stays below the MCP client ceiling and is never raised). Verdicts are keyed\nby blob CONTENT, so each further `end_change` continues from the cache instead of redoing work: a\na 15-file range is a handful of passes, not 15 sequential reviews. Design for that budget — a range\nwhose every file needs its own verdict costs passes in proportion to its file count, so prefer ONE\ncommit per close and fold unpushed docs commits rather than growing the range.\n\n**Measure the RATE before planning around it — it is far below the window cap.** Measured: **4 blobs\nper pass**, not `CLOSE_BLOBS_PER_WINDOW`, because each blob is a real reviewer call and the window\nbounds how many fit; a 34-file range cost 9 sequential `end_change` calls. So a wide mechanical edit\nspread across N tiny files costs roughly N\u002F4 closes — price that in BEFORE deciding to land it as one\nrange (fewer, larger files is the lever when the edit allows it), and read the repeated `N blob(s)\nstill carry no review verdict` as PROGRESS rather than a malfunction: verdicts are cached by blob\ncontent, so every call re-sends only what is left and the count strictly falls. Do not re-derive the\nmechanism or reach for another cycle when a close returns that line — call `end_change` again.\n\nWhen a pass hits its window, the blobs it could not read are FAILED and reported in `remaining` —\nnever credited — so re-calling `end_change` is the correct move, not a re-roll. Concurrency does not\nchange the window: elapsed time is the SLOWEST call, not the sum, which is why N calls fit where N\nsequential ones would not. And the window must be ENFORCED, not merely checked before the wave: each\ncall is awaited only until the deadline the pass was given, the pool is not waited on, and a worker\nonly CALLS the reviewer (every write happens in the pass, for outcomes it collected), so a straggler\nleaves no trace.\n\n**A blob the reviewer never ANSWERED is not a blob it refused — but the pass counts it as a failure.**\nWhen a pass reports `reviewer timed out on: N blob(s) — not judged, so not credited` and the SAME path\nis named on every retry, nothing is being cached: the reviewer answered for every other blob and\nproduced nothing for that one, so re-calling `end_change` re-sends the same call. Count the passes before concluding anything: the\ncap that stops a pass (`BLOB_REVIEW_MAX_CONSECUTIVE_FAILURES`) counts consecutive failures inside\nONE pass and resets on the next close, so a lone straggler IS retried on every pass — the cap is not\nwhat blocks it, the call simply never fits the window. Diagnose with a TIMED direct call to the same\nreviewer on the same material: 191 s on a 5 KB diff is an ANSWER, not a refusal, which makes the pass\nWINDOW the binding constraint. **Do not then infer the material's SIZE — measure it.** The per-blob\nmaterial is the blob's own bounded diff plus at most 6 sibling files \u002F 12 lines each \u002F 60 lines\ntotal, so the blob that never answers can be the SMALLEST file in the range (measured: 2.7 KB of\ndiff, the least of eleven files) while its neighbours answer inside the same window: the binding\nconstraint is the reviewer's per-call LATENCY against a window the operator's rule never raises, not\nthe bytes. Then check the budget it must fit inside: a `ADVERSARIAL_REVIEW_TIMEOUT` ABOVE the pass\nwindow can never return a verdict. What the gate DOES with that outcome is part of the diagnosis: a\nwindow-exhausted call (`TimeoutError`) is an ABSENT ANSWER, not the reviewer being down — it is\nreported unjudged (`failed` + `remaining`, never credited) without tripping the outage cap, so a slow\nsibling no longer abandons the blobs the pass had not reached, and the wave consults `fut.done()`\nbefore stamping a later future as expired, so a call that already ANSWERED is credited instead of\nbeing reported unanswered and re-bought on the next pass. The reading is that a timeout is neither a\nfinding nor a re-roll: record an ISSUE carrying the measurement, file the investigation as its own\ntask, and release the lock terminally — `force` is never the answer, and an instructed next step\nbelongs in a NEW cycle, not this one.\n\n## The adversarial review gate\n\nA COMPLEX change cannot close without a CLEAN verdict. Complexity is MEASURED from the\ndiff (≥50 lines, ≥3 files, or any always-review path such as `plugins\u002F`,\n`mcp-servers\u002F`, `ops\u002Fscripts\u002Ffleet-update.sh`, `pre-commit-score`) — never\nself-reported, and uncommitted work counts.\n\n**Independence is CONTEXT ISOLATION, not a different model.** The design\n(`docs\u002Fdesign\u002Findependent-adversarial-verifier.md`) defines it as: its own\nprocess seeing only the output, a fixed orchestrator-owned prompt the worker\ncannot edit, and an orchestrator-owned trigger the worker cannot invoke. (The\ngate's reviewer also happens to use a different model, but that is not what makes\nit independent — so never argue independence from the model name.)\n\n**Scope of that trigger claim (2026-10-30, operator directive):** the\norchestrator-owned trigger described above holds for the CLOSE-TIME reviewer\n(loop-gov-mcp.py `end_change`) — a code review gating the close. The\nPLAN-REVIEW-before-slice gate changed: Luke's directive (\"adversarial review\nmust NOT be orchestrator gated; automatic for the agent; a review before\nbuilding is always better\") made the plan-review RECORD worker-invocable — a\nworker runs `python3 ~\u002F.steadfaste-fleet\u002Fscripts\u002Fadversarial-review.py --cycle-id N\n--material-file \u003Cplan> --review --reviewer-id plan-\u003Cslug>` (sanctioned lock-free\nwrite). Independence there is the fixed prompt + distinct model + recorded\nreviewer_id, NOT who runs the script. The close-time reviewer is unchanged.\n\nThat design point also names the trap: a review the WORKER invokes, in the\nworker's own session, is a self-report — so the two mechanisms are distinct and\nthey are named accordingly, in the artifacts rather than only in the design doc:\n\n| Name | Path | Independent? |\n|---|---|---|\n| `self-adversarial review` | loop-gov-mcp.py `end_change`, complexity-gated | **No** — worker-invoked, in-session |\n| `plan review` | adversarial-review.py `--cycle-id N --review` \u002F `--re-review` (worker-invocable for the plan gate, 2026-10-30, per operator directive) | Fixed prompt + distinct model + recorded reviewer_id; recorded by the worker for their own cycle; the code-review equivalent of the sweep — applies only to the plan-review gate, never to a close. `--re-review` supersedes the current verdict into append-only `adversarial_reviews_history` — never DELETE rows |\n\nName a mechanism by the property that DISTINGUISHES it from its lookalike, and\npropagate that name into everything it emits (log lines, verdict text, doctor\nresult names) — not just the design doc. Two mechanisms sharing one name is how a\nlater session merges the wrong one: sharing the CODE is fine (share the policy,\nkeep one implementation), but process, prompt and trigger are what carry\nindependence, and a name that hides the difference invites breaking it.\n**Resolve the reviewer's MODEL in one place, and state what the tier does to it.** ONE\nresolution must feed both the caller and the recorder, so what RUNS and what is WRITTEN\nDOWN cannot diverge. The depth tier decides TRANSPORT and how long the gate waits — **never\nWHO JUDGES**: a cheap judge is a weaker judge, and the light tier is the CATCH-ALL (every\ncomplex change that is not an always-review surface or unusually large), so a cheaper model\nthere silently judges ORDINARY work, not merely risky work. A downgrade is therefore an\nexplicit operator decision recorded in the environment (`ADVERSARIAL_REVIEW_LIGHT_MODEL`),\nnever a default; if the cheap tier ever waves something through, move that CLASS back up\ninstead of trusting the tier more.\n**And make the judge READABLE, or the default cannot be checked.** Every recorded verdict\nmust name the model that produced it — the per-blob store ships the column and the writer\nalready accepts it, so a call site that passes neither leaves every row blank and a wrong\ndefault survives indefinitely, because no query can show what judged a blob. When you change\na reviewer default, verify it in the RECORD (a stored row naming the model), never in the\nconstant; and a blocking verdict's judge matters most of all, because that is the finding a\nworker has to contest.\n**Verify the WIRING, not the constant.** A helper that returns the cheap model proves\nnothing about what the gate RUNS. Assert through the DISPATCH, with the configured backend\nset to its DEFAULT, that a light change actually reaches the cheap model: a condition that\nalso required a non-default backend left the cheap path unreachable while every unit test\nstayed green, because the tests asserted the tier's VALUE and never that anything consumed\nit. A constant being right is not a feature being on.\n\n**The verdict is durable, and the reviewer is a SAMPLING model** — re-running it on\nbyte-identical material can return the OPPOSITE verdict, so the verdict is stored\nonce per cycle and pinned by a fingerprint of the ARTIFACT it judged —\nrepo state, audited range, the task's description, the diff stat, and the diff:\n\n- `end_change` honours a stored verdict whose fingerprint matches the current\n  artifact — CLEAN proceeds, FINDINGS blocks with the recorded findings.\n- Material that moved after a review is judged again, so a CLEAN cannot be carried\n  over a later, unreviewed change.\n- A stored verdict with NO fingerprint is not reused.\n- **The worker's NOTE is deliberately outside the key.** It still travels inside the\n  material (the reviewer is told to treat it as a self-report and check it against the\n  diff), but re-wording it does not re-open judgment of an unchanged diff: keying on\n  note+diff meant every retry bought a whole fresh review of the same artifact, which\n  was the largest recurring review cost. When the note itself is what changed, the\n  explicit re-judge is `rereview_change(force=True)`.\n\n### Working the findings\n\n- **Keep the closing note FACTUAL and minimal — no self-assessment.** State what\n  changed, the commits, the files, and the raw output. Do NOT narrate your own\n  corrections, add an \"honest limits\" section, or pre-empt the reviewer's concerns in\n  prose: a reviewer reads that as evaluation-shaped framing (`evaluation-awareness`)\n  and it looks like shaping the verdict rather than informing it. The diff and the\n  committed tests are the argument; the note is a caption. Honesty is not the issue —\n  presentation is, and a factual note is also simply shorter. The ONE exception is a\n  finding that demands a retraction: retract the claim in one line and state what IS\n  verified in its place. Do not re-argue a claim the material cannot support.\n  **Never explain the gate's OWN mechanics in the note — its character budget, a finding\n  id, or what a previous round said.** Describing how the material is assembled or judged,\n  instead of the change and its evidence, is graded `injection`\u002Fevaluation-awareness even\n  when every word of it is true, and it blocks the close at MEDIUM. State the change, the\n  commit count, the evidence path and the raw output; nothing about the review process.\n  **Never write a sentence addressed TO the reviewer** — \"if the reviewer judges this a\n  process finding, I will split future ones\" is graded as an injection attempt however\n transparent it is. A conditional promise, or your own classification of your own\n finding, belongs in neither the note nor the artifact.\n **Do not write the note in the REVIEWER's format.** Labelling your own paragraphs\n `ADV-\u003Ccycle>-N (severity) — …`, i.e. assigning yourself finding ids and severities, is\n graded `evaluation-awareness`: you are role-playing the reviewer on your own work\n instead of describing it. Write plainly — what changed, why, and the evidence path —\n and let the reviewer produce findings.\n- **A refusal whose findings are ALL `unverified-claim` is an evidence gap, not a code\n  defect — commit the artifacts and CLOSE AGAIN.** Every such finding is a true claim\n  whose output lived only on a screen (a test count, a live-run result, a proof about a\n  scratch resource, a fix for a defect the diff does not demonstrate). The remedy is to\n  commit, in the SAME range, the verbatim run output and a re-runnable capture — not to\n  edit code nothing found fault with, and not to rewrite the note. A refusal keeps the\n  lock, so the retry is `end_change` on the SAME cycle: the material changed, so it is\n  judged afresh. Do NOT open a fresh cycle for it — a new cycle's window is empty, its\n  review is skipped as `simple`, and it authorises a range nothing reviewed.\n- **Evidence about an EPHEMERAL resource is captured while it exists, or re-created.**\n  A scratch unit or temporary process is deleted once the proof is taken, and a reading\n  captured as it went away prints `MainPID=0 \u002F NRestarts=0` — a contradiction sitting\n  inside your own artifact. Re-run the proof and capture the reading live, and inline the\n  resource definition and its probe IN the artifact so any host can reproduce it. The\n  unit's JOURNAL survives the cleanup (`journalctl -u \u003Cunit>`), which is what makes the\n  capture durable rather than a claim.\n- **A pasted transcript is NOT accepted evidence, however true it is.** When the\n  load-bearing claim is a measurement (the suite is green, the doctor is clean), the\n  finding will be that nobody can re-run a transcript. Commit a RUNNABLE generator — a\n  script that reproduces the measurement, writes an artifact, and exits non-zero on\n  failure — and commit its ARTIFACT too, not just the script. One command must reproduce\n  the claim.\n- **Lead the artifact with its ASSERTIONS, not with its transcript.** The material bound\n  cuts the artifact too, so a transcript whose proof lines sit in the omitted middle is\n  unreviewable: the reviewer reports the claims as unevidenced while the output proving\n  them sits on disk. Emit `RESULT: \u003Cn>\u002F\u003Cn> assertions PASS, exit \u003Ccode>` first, then the\n  assertion lines verbatim, then the load-state evidence, and only then the verbose\n  transcript. Same discipline for the note — it does NOT share the diff's character budget: the\n  gate appends it verbatim AFTER the bounded diff (`_build_review_material`), so a long note never\n  crowds the evidence out. What it adds is UNBOUNDED claim surface, graded sentence by sentence —\n  so name the artifact, the revision and the assertion count, and stop. Terse because each extra\n  sentence is a fresh claim, not because of a budget. **Split the evidence when it is longer than a\n  screen**: one SMALL answers file — the grep line numbers that show the code, the PASS\n  lines, each `rc=` — beside the long transcript it points to, named so it sorts BEFORE that\n  transcript in the diff, because the material keeps the head and tail of a range and proof\n  sitting in the omitted middle is reported as absent however true it is. **\"Small\" is\n  arithmetic, not a feeling: the per-file share is the range's budget divided by its FILE\n  COUNT** (measured: ~11 files in one docs-only range => ~500-600 characters each, less than\n  this bullet). Size each evidence file to that share, and remember the bound applies to a\n  standalone checksum\u002Fproof file too — a hash carrier must sit INSIDE the artifact it pins,\n  because a checksum list arrives truncated and its claim is filed as unverified.\n  **Never answer a completeness finding by adding an artifact**: the range grows, every\n  file's share shrinks, and the new file becomes the next truncation target — the only\n  moves that help REDUCE the range (push earlier commits so `base` advances, collapse\n  unpushed docs commits, fold the proof into the commit whose claim it supports). A\n  `DECISIVE LINES ONLY` label is honest and still scores as a summary, because the demand\n  was for the complete output. Full mechanics: `references\u002Fadversarial-gate-material.md`,\n  \"Answering a completeness finding\".\n- **The artifact must name the revision it ran against, and be run against the FINAL\n  revision of the change.** A green artifact produced at an intermediate commit is\n  exactly the finding it was meant to answer: the reviewer reads the revision field and\n  asks for the run at the head of the change's commits. Generate it after the last code\n  commit — the artifact's own commit may follow, since it is documentation. **Deploy LAST\n  when the claim is deploy-sync.** A doctor capture taken between the commit and the\n  deploy reads `Deploy sync — HEAD ahead of last deploy` and lands as a FAILING artifact\n  beside a note claiming the tree matches: deploy first, capture, and remember the\n  artifact's own commit moves the tree again — the push gate runs the mandatory dogfood,\n  so deploy is the last step before the push rather than a step before the commit. **The named\n  revision must also CONTAIN the generator that produced the artifact**: an artifact whose\n  revision field predates the script it claims to come from is `fabrication` on its face,\n  and the reviewer is right to file it. And never claim the run happened at the commit\n  CARRYING the artifact — the file is generated and then committed, so by construction it\n  can never name its own carrying commit. Say which revision it ran at, and that the\n  generator is committed, so any reviewer can re-run it at HEAD.\n- **The audited range is every commit since the lock, it is TRUNCATED, and it shows\n  SUPERSEDED hunks.** The gate budgets roughly 12k characters of diff for a normal\n  range and several times that for a docs-only range, and it allocates that budget PER\n  FILE across the range — so a ten-file range gives each file ~1200 chars, less than the\n  diff of one 50-line script, and every file arrives as a sliver. **Measure a candidate\n  range before closing it** rather than estimating: `scripts\u002Fmeasure-review-material.py`\n  imports the gate's own bounder, names each file as `whole` or `CUT`, and exits 1 when\n  the range is over budget (3 = could not verify, never read as \"no truncation\"). When it\n  says CUT, split the change into PUSHED waves — the range is `base..HEAD` and `base` is\n  what the remote already has, so a wave only shrinks the range once it is pushed\n  (`references\u002Fadversarial-gate-material.md`, \"Two budgets\" and \"Delivering a change\n  larger than one range\"). Either way a large range\n  reaches the reviewer with its middle omitted — and a range holding SEVERAL commits\n  contains the earlier commits' hunks as well as the final ones. The reviewer then reads\n  an intermediate state and files `fabrication` against a claim that is true of the\n  final state (\"the test still ages mtimes\" — when the second commit deleted exactly\n  that). Two things prevent it: **keep the audited range to ONE commit** wherever the\n  work allows, and when it cannot be, **say the commit count out loud, name HEAD, and\n  quote `git show HEAD:\u003Cpath>` for the files under dispute** — the note is the material,\n  so the final state has to be readable from it. Do not paste or commit the whole diff\n  in response: a 100 KB range is what truncated in the first place, and committing it as\n  an artifact duplicates git history and lands in the next range.\n  - **When the reviewer's own reasoning is \"the last commit does not touch \u003Cfile>, so the\n    earlier hunk stands\", give it a commit that DOES touch the file.** A note quoting\n    `git show HEAD:\u003Cpath>` is not enough while the visible diff still ends on the\n    superseded hunk. Fold a REAL improvement to that file into one more commit (a\n    stronger assertion, a persistence check) so the final state is the last hunk the\n    material shows — then the finding's premise is gone rather than argued with.\n  - **Read the range's BASE off the material and claim nothing at or before it.** The\n    range arrives named `\u003Cbase>..\u003Chead>`, and `\u003Cbase>` — normally the tip already on the\n    remote — is a boundary, not a detail: a file you fixed and pushed in a PREVIOUS cycle\n    is at the base, outside the window, so claiming it reads as `fabrication` even though\n    the claim is true of history. Scope the claim with `git diff --stat \u003Cbase>..HEAD`,\n    and describe genuinely-earlier work as out of range in one clause rather than as\n    evidence. A clean tree, a green suite or a dogfood pass is context the reviewer\n    cannot check — omit it or mark it, never paste it beside a narrow diff as proof.\n  - **When the range is more than one commit, make the NEWEST one the evidence commit.**\n    The window keeps the HEAD and TAIL of the diff text and omits the middle, and\n    `git log -p` emits newest-first — so the newest commit's diff is the part that is\n    always readable, while an older large commit falls into the omitted middle.\n    Evidence folded into the big EARLIER commit is unreviewable by construction; a\n    small commit made LAST is visible. Point at the committed artifact for the full\n    run rather than pasting it.\n  - **Collapse UNPUSHED documentation commits before you close.** The artifact's own\n    commit may follow the code commit, but a range of three or more commits is what\n    truncates: fold the docs commit back with `git reset --soft \u003Clast-code-commit>` and\n    re-commit once. Do this ONLY for commits you have not pushed — do not rewrite\n    published history on a shared repo, and never force-push to make a range smaller.\n  - **A \"your material is truncated\" finding that quotes NO exact marker is a GATE bug, not a\n    long range — and half the cure is in the reviewer's PROMPT.** The gate already exempts\n    window-only findings from blocking, but it matches the gate's OWN disclosure wording\n    (`chars omitted`, `bounded:`); a reviewer saying the same thing in its own words (\"the diffs\n    are truncated by the gate budget\") matches nothing, blocks, and cannot be cleared by ANY edit —\n    the complaint is about the window, not the change. Diagnose before shortening the range:\n\n    ```bash\n    sqlite3 ~\u002F.steadfaste-fleet\u002Fdata\u002Floop-governance.db \\\n      \"SELECT findings_json FROM adversarial_reviews WHERE cycle_id=\u003CN>\"\n    ```\n\n    then run the gate's own predicate over the stored dicts (`_is_material_limit_finding`,\n    imported from the deployed `loop-gov-mcp.py`). A finding whose marker hits are EMPTY while a\n    sibling's are not is the paraphrase case. Fix BOTH halves: tolerant matching (pattern as well\n    as exact string, keeping the guards — the recommendation must still be about SEEING the\n    content, and fabrication\u002Finjection\u002Fswallowed-error are never exempt) AND a rule in the\n    reviewer prompt telling it to report a bound as ONE finding at `info`, quoting the marker\n    verbatim. The prompt is the durable half: a reviewer with no verdict class for \"I could not see\n    it\" reaches for a blocking severity instead, and the predicate can only catch the wording after\n    it has been written. Pin it with a test built from the REAL stored text — an invented wording\n    tests your guess about the reviewer's phrasing, not the one it uses. **A stored verdict is\n    evaluated by the RUNNING daemon's predicate**, so an already-refused cycle keeps refusing until\n    that daemon restarts: the fix is live for the next session, never retroactively.\n  - **Same finding, same superseded hunk, two retries = stop re-writing the note.** It\n    means the range is too long for the budget, not that your note lacked evidence.\n    Shorten the range (one commit per close where the work allows) instead of\n    re-rolling the reviewer — it samples, so a lucky CLEAN on unreadable material is\n    not a fix.\n- **A per-run artifact is OVERWRITTEN by the next run, so a FAILING run's evidence\n  disappears the moment a later run passes.** Keep an append-only ledger beside it: one\n  line per run carrying timestamp, revision, measured summary and failure count, so a\n  failure cannot be erased by time. If you already overwrote one, commit the captured\n  output as a file with a provenance header stating it is NOT regenerable and why — do\n  not silently lose it, and do not re-run to reconstruct it.\n- **Scrub the artifact at the SOURCE, not in the committed copy.** An evidence artifact\n  carries host paths — the interpreter's bin dir, the checkout path, whatever the tests\n  printed — and the leak detector flags `\u002Fhome\u002F\u003Cuser>\u002F…` in anything committed to a\n  shared repo. Put the scrub INSIDE the generator (one function replacing the home dir,\n  the checkout path and the python bin dir with placeholders, applied to every emitted\n  line): a hand-sanitised copy is republished the moment anyone re-runs the generator,\n  which is exactly what the artifact invites.  The same guard reads a long digit run as a\n  phone number and will refuse a repo write carrying raw PIDs— describe a process by its\n  ROLE (\"the reviewer child\", \"the cron worker's server\") rather than its pid. **An email address\n  in a fixture counts as personal data unless its domain is the reserved placeholder** — a test\n  helper writing `someone@some-invalid-host` is refused outright and the whole file write fails, so\n  use `example.com` (or drop the address) and keep the fixture's SHAPE rather than a plausible\n  address. A large NUMBER in\n  a test fixture trips the same guard, and the fix is not to weaken the fixture: build the value\n  arithmetically (`\"1\" + \"0\" * 12`) so no bare digit run exists in the source for the guard to read,\n  which keeps the assertion's strength while the write goes through.\n  It ALSO fires on a `\\d{4}[-.]\\d{4}}` digit-dash-digit shape anywhere the guard scans —\n  including evidence FILENAMES. A name like `cycle-4907-2026...txt` (four-digit-dash-four-digit) is\n  reads as a phone number and the write is refused until you rename to a letter-safe form.\n  Prefer evidence names that use the commit sha or a dated-word form (`fix-landing-2026-10-10.txt`),\n  and never embed the NNNN-YYYY pattern in a committed path or prose.\n- **The committed artifact's SCOPE must equal the claim's scope — the SUMMARY\n  included, not just the files.** A capture that ran ONE test file cannot\n  substantiate \"41 tests pass\" across two — the reviewer checks the arithmetic\n  and the gap is the finding. Regenerate the artifact to cover exactly what the\n  note asserts: the run, not a slice of it. The same rule bites the per-test\n  OUTPUT: a generator that keeps only the last N lines of each test's output\n  truncates the `PASS (N):` block, so a 13-test harness reaches the reviewer\n  showing 4 names while the note claims 13 — and it files `fabrication` against a\n  claim that is completely true. The finding is then WRONG about the code and\n  RIGHT about the evidence, which is the expensive shape: fix the generator, not\n  the note. Size the tail to hold the whole summary (these harnesses print it\n  last, so a generous tail suffices), and have it re-emitted in full.\n- **When the load-bearing value is a personal identifier, commit the SHAPE and\n  claim the shape.** An evidence artifact is a committed file, so a real chat id,\n  hostname or key has to be redacted to its pattern (`fleet-\u003Cagent>-\u003Cchat>`) — but a\n  redacted artifact sitting beside a note that asserts the exact value is its own\n  finding. Assert the property the reader CAN check from committed material (the\n  key is per-chat, distinct, stable) and drop the value they cannot.\n- **A guard that passes on the broken revision is not a guard.** Prove it\n  discriminates before citing it: run it against the PRE-FIX revision\n  (`git show \u003Cpre-fix-sha>:\u003Cpath>` into a temp tree) and assert it FAILS there,\n  then record both directions in the evidence. A guard only ever run against the\n  fixed revision is a happy path with a name.\n  **The RUNNER behind a test claim needs the same treatment**: a generator that reports a\n  passing suite must be shown exiting NON-ZERO when the suite fails (point it at a target that\n  cannot exist, or at a deliberately broken copy) — otherwise the artifact proves the tests pass\n  today, not that the runner would notice tomorrow. Two ways that runner lies anyway: it exits with\n  the status of its LAST command (an `echo` printed after the probe returns 0 even when the probe\n  failed — capture the probe's own status immediately, before any other command, and `exit` that\n  value), and it never RAN at all because the interpreter it picked cannot import the test\n  framework. Select the interpreter that can run the probe, and refuse loudly (`COULD NOT VERIFY`,\n  non-zero) when it cannot — an artifact whose header names an interpreter that produced \"no module\n  named …\" is a transcript of nothing. Run that probe from the same directory as\n  the real invocation: a probe that fails because the project is missing proves nothing about the\n  suite. **An UNEXERCISED branch is the same finding in another shape** — a fallback the change\n  claims to handle with no execution behind it — and the fix is a committed test that drives the\n  branch with the dependency STUBBED, extracting the block by stable markers so the test fails if\n  the logic is edited away (recipe: `shell-scripting` → \"Testing a Script Block in Isolation\").\n- **When a finding says \"you claim X but the diff doesn't show it\", add the CHECK.**\n  The fix is not a paragraph of justification: make the tool verify X, then commit a\n  test that drives it in BOTH directions — a healthy input passes, and one thing broken\n  fails with the right remediation. That converts an argued claim into a checkable one\n  (and is reusable by every host, unlike a pasted transcript).\n- **FINDINGS → fix, then `rereview_change` with a NEW note.** An unchanged note is\n  refused: re-review exists to re-judge a FIXED change, not to re-roll a verdict.\n  Re-calling `end_change` on UNCHANGED material replays the stored verdict word-for-word\n  and says so (\"already recorded for exactly this material\") — that message means the\n  MATERIAL has to change, not the note: commit the artifact the finding asked for FIRST,\n  then call `rereview_change`. Re-submitting the same material a third time is not a\n  re-roll, it is a wasted cycle.\n  A refused cycle whose findings are a FALSE POSITIVE is cleared by the same move and needs NO code\n  change: re-review with a note carrying the measurement that refutes each one (a grep count at HEAD,\n  a line number, the covering test's name and its measured output). Measured in one session: an\n  `end_change` on unchanged material replays the stored verdict verbatim, while `rereview_change`\n  with the refutation re-judges at cycle level and returns CLEAN — twice, on the same cycle. Note the\n  asymmetry before you reach for an edit: a finding that is WRONG about the code but RIGHT about the\n  evidence is fixed by committing the evidence, and only a finding that is right about the code is\n  fixed by editing it. Editing working code purely to unblock a refuted finding is the habit this\n  avoids — the diff then carries a change nobody asked for and the note has to explain it.\n  **A CLEAN re-review does NOT mean the close will pass.** `rereview_change` re-judges at CYCLE level\n  (the `adversarial_reviews` row) while `end_change` then runs the PER-BLOB pass, whose verdicts are\n  keyed to blob content. Measured: a CLEAN `rereview_change` was followed immediately by an\n  `end_change` refusal on per-blob findings — expected, not a malfunction. Do not re-run the\n  re-review: change the blob (a new blob is judged fresh) or take the terminal exit.\n  **If `rereview_change` is not in the running daemon** (it answers `Unknown tool:`\n  because the MCP server predates the deploy — see Pitfalls), the recovery is the\n  same end state by the ordinary path: re-issue `feedback_accept` with the evidence\n  note (the verdict is fingerprinted on the material, so a NEW note is judged\n  afresh) and call `end_change` again. Do not re-explain in prose; add the output.\n  That fallback holds only while the cycle is still PENDING. Once the cycle has been\n  ACCEPTED — `feedback_accept` already returned MOVE_ON — a second `feedback_accept` is\n  refused with `No PENDING cycle found for task '\u003Ctask>' in this session`, which reads like\n  a lost lock and is neither: the cycle is scored, and `rereview_change` is the ONLY path\n  back, whatever the note. Do not score twice; re-review once with the new note.\n- **Put the evidence where the reviewer can SEE it — the note IS the material.**\n  The reviewer reads the note and the diff and cannot re-run a terminal, so a\n  load-bearing claim with no output behind it in the material is graded\n  `fabrication` no matter how true it is. Preferred: commit the proof as a runnable\n  test. When the fact cannot be committed — a doctor summary, a queue drain, a\n  delivery receipt, a process listing — PASTE the real output into the note (a short\n  transcript of the actual lines, not a restatement of them), and say plainly which\n  claims remain unverifiable and why. Saying \"no receipt is available for a bot's own\n  sent messages\" beats both silence and an inference dressed as an observation.\n- **\"Unverifiable\" is not \"fabricated\".** The reviewer cannot see a worker's terminal\n  by construction, so a true claim whose output existed only on a screen is an\n  evidence GAP; a fabrication finding has to name a contradiction the material\n  actually shows. Answer it with a committed test that reproduces the behaviour,\n  never with a re-explanation in prose.\n- **When a finding charges you with another agent's change,** check authorship before\n  editing anything: `git log --format='%h %an \u003C%ae>' \u003Cbase>..HEAD`. A lock window\n  spans whatever a pull or rebase brought in, so a peer's commits can sit in your\n  diff. Name YOUR OWN shas in the re-review note (the material states authorship, so\n  the reviewer can check them against git) and re-review — do not \"fix\" a peer's\n  change to appease a finding aimed at the wrong worker.\n  **Authorship ALONE cannot separate two sessions, and the close now scopes to the session.**\n  One host has ONE git identity, so a PEER SESSION's commits satisfy the author filter and their\n  diffs land in the material, the Diff stat and the tier — the shape where a close is refused on\n  a file you cannot see in `git status --short` and cannot fix. The discriminator is a\n  `FLEET-Session: \u003Cid>` commit trailer, written by the `prepare-commit-msg` hook from the LIVE\n  lock; commits carrying a DIFFERENT session's trailer leave the material and appear instead as\n  `[OTHER SESSIONS' COMMITS … DISCLOSED, NOT REVIEWED]` (names, subjects and changed paths —\n  never their diff). It is fail-CLOSED by construction: no trailer (a cron, or a session with no\n  lock), an ambiguous trailer, an empty own session id, or a git error leaves the commit IN\n  scope. So when a peer's file is still being reviewed, check the trailer before re-arguing\n  authorship — `git log --format='%h %s %(trailers:key=FLEET-Session,valueonly)' \u003Cbase>..HEAD` —\n  and never hand-write a trailer: the hook REPLACES whatever is there with the live lock's id,\n  and a body carrying two different trailers reads as ambiguous and is deliberately not excluded.\n  **Check the trailer VALUES, not just their presence — identical ids are not \"a different session\".**\n  Two live locks matching ONE repo means the hook cannot know which session is committing, so a hook\n  that PICKS one of them stamps every commit with that same id: the consumer's \"different session\"\n  filter goes inert and each session can read the other's commits as its own — a wrong attribution,\n  strictly worse than no trailer. A hook must therefore stamp only when EXACTLY ONE live lock matches\n  the repo, and write NOTHING when zero or several do (the window then fails closed). Read the range\n  before re-arguing authorship:\n  `git log --format='%h %s%(trailers:key=FLEET-Session,valueonly)' \u003Cbase>..HEAD` — when every commit\n  carries the SAME id across two sessions, no consumer or prompt change can separate them and the fix\n  is structural: stop sharing a lock namespace (one worktree per session,\n  `concurrent-session-isolation`). Never \"clean the range\" by stashing or reverting the peer's files:\n  committed files stay in the range regardless, and uncommitted ones are the other session's live work.\n  A lock whose `repo_path` is recorded in a different FORM than `git rev-parse --show-toplevel`\n  returns (a `\u002Fprivate\u002F...` vs `\u002FUsers\u002F...` checkout on macOS, or a symlinked checkout) matches\n  nothing, so the hook stamps NOTHING and every commit reads as untagged — compare `os.path.realpath`\n  on BOTH sides, and diagnose a silent no-stamp by diffing the lock's `repo_path` against the tree's\n  toplevel before touching the consumer.\n\n  **ONE lock is enough for the same symptom: a peer session that holds NO lock for the repo gets\n  stamped with YOURS.** Lock files are unique per SESSION (`.governance-\u003Csid>.json`), but the write\n  gate is per REPO — \"this repo has a lock\" is satisfied by anyone's — so a second session can\n  commit in the tree without ever calling `begin_change`. The hook then finds exactly ONE matching\n  lock, stamps that id on every commit, and the consumer's \"is it a different session?\" test passes\n  for both sessions' work at once. Diagnose from the lock inventory before re-arguing authorship:\n\n  ```bash\n  ls -1 \u003Cstate>\u002F.governance-*.json\n  grep -H -e '\"repo_path\"' -e '\"session_id\"' \u003Cstate>\u002F.governance-*.json\n  ```\n\n  Two locks for DIFFERENT repos means the hook faces no ambiguity — so an all-commits-one-id range\n  whose id belongs to the repo's single lock is the caller being judged on an ungoverned\n  neighbour's work, not a hook choosing badly. Fix shape, N-safe: stamp a commit only for the SINGLE\n  claimant whose lock was refreshed recently — the server rewrites the lock on every governed call,\n  so its mtime IS that session's last activity — and write NO trailer when zero or several claimants\n  are equally fresh. Never \"pick the matching lock\": an ABSENT trailer keeps the commit in scope for\n  everyone (fail-closed, visible), while a WRONG one silently credits it to one session and makes\n  the peer's files yours to answer for.\n\n  **The per-blob DEMAND is the whole UNPUSHED range — scope it to the session that WROTE each blob.**\n  The demand list is built from `push-base..HEAD`, so in a shared repo it asks you for a verdict on\n  a neighbour's committed files: a close refused on work you never touched, fixable only by editing\n  someone else's files or by an override. Scope it the way the diff's material is scoped — walk the\n  range NEWEST-FIRST, attribute each path to the commit that produced its CURRENT content, and leave\n  out the paths whose author is another session. The receipt then covers only your own blobs, so the\n  push gate still refuses that range until the OWNER of the work closes it: that is the honest\n  resolution, not \"review the neighbour's work for them\". Fail-closed as everywhere else — no own\n  session id, no trailer, or an ambiguous trailer ⇒ the path STAYS demanded.\n- **A fix that was merely REQUIRED to keep the tree green reads as `scope-drift` if it\n  rides in the same range.** When the change forced a side-fix (a generated file had to be\n  regenerated, a red suite had to go green), keep it in its OWN commit and state in one\n  line why the change required it. An unexplained unrelated commit in the audited range is\n  graded `scope-drift` at MEDIUM and blocks the close.\n- **A note cannot fix a DESCRIPTION that does not match the diff.** `begin_change`'s\n  description is frozen for the life of the cycle and the reviewer compares it against\n  the range: a description promising an artifact \"unchanged from what they staged\" beside\n  a diff that edits it is `scope-drift` at MEDIUM, and re-reviewing with a better note\n  cannot resolve it because the contradiction IS the description. Retiring the cycle does\n  not release the lock either — a cancelled task's `end_change` still runs the reviewer on\n  the current material — so the exits are an operator decision or the TTL. When the work\n  is going to exceed what the description promised, say so in the description UP FRONT\n  (\"land X, plus the minimum hardening the gate requires\") instead of discovering the\n  surplus under review.\n- **Keep execution claims out of the COMMIT MESSAGE — it is material too.** A message\n  line beginning `Verified here before landing: …` produced a HIGH `unverified-claim`\n  finding while the note beside it was clean. Describe what the commit DOES and point at\n  the committed artifact that proves it (`git show \u003Csha>:\u003Cpath>`); the recorded run\n  belongs in that artifact. See `references\u002Fadversarial-gate-material.md`, \"The commit\n  message is material too\".\n  **Write it about the PROBLEM, not about the review.** Naming a finding id, quoting what a\n  previous round said, or phrasing the message as an answer to the reviewer (\"a reviewer reading a\n  truncated diff could not see the test\") is graded `evaluation-awareness` however accurate it is —\n  the same rule that governs the note. State what was wrong and what the commit does about it; the\n  reviewer can see its own findings and does not need them narrated back.\n- **A `fabrication` finding can be about the MATERIAL, not about you.** The gate\n  builds the material's \"Diff stat\" from the complexity MEASUREMENT while it builds the\n  diff BODY from the cycle's COMMITS, and the measurement deliberately also counts your\n  own uncommitted work. When the checkout is dirty — a peer's files, or an earlier\n  task's WIP sitting in a shared tree — the stat names paths whose diff the material\n  never shows, and the reviewer reads N files beside an unchanged HEAD as a\n  contradiction. It IS one; nothing you wrote is false, and no rewrite of the note\n  fixes it. Diagnose before reworking the change: compare\n  `git diff --name-only \u003Cbase>..HEAD` (what the stat should count) with\n  `git status --porcelain` (what it did). The durable fix lives in the gate — build\n  the stat from the same range as the diff body, and DISCLOSE a counted working-tree\n  path the material cannot show as out of scope rather than naming it; failing that,\n  COMMIT the work so the two agree.\n- **A quoted PASS line without its warning count reads as a clean system — record the\n  exit code and the COUNTS.** A borderless artifact can say genuinely true things and still\n  mislead by omission: a dogfood\u002Fdoctor transcript showing `DOGFOOD PASSED` while omitting\n  `11 warn` and the unresolved drift block beside it, or a section tail with no `rc=`, is\n  judged (correctly) as a swallowed error — the reader cannot tell a clean run from a\n  noisy one. Every captured run carries its `rc=` AND its summary counts\n  (pass\u002Fwarn\u002Ffail). **When the run is genuinely NOT clean, say so with the numbers** and\n  state the decision — \"doctor rc=2, 14 warnings, the drift is pre-existing and recorded\n  as issue N; this cycle's claim is the narrower one verify-landed proves\" — because a\n  narrowed, measured claim survives review where an implied clean bill does not. Record\n  the re-run commands with their EXPECTED non-clean results so a later reader measures\n  instead of trusting a PASS line.\n- **Answer a false finding with a measurement, not with prose.** Findings can be\n  wrong. State the measurement that refutes one and leave the code alone rather than\n  \"fixing\" a non-defect.\n  **Refute it empirically, then remove the ambiguity that invited it.** Prove the refutation\n  with a command whose output is self-evident before asserting anything — for a claim about\n  shell statuses, `false | tail` followed by `${PIPESTATUS[@]}` shows index 0 belongs to the\n  LEFT command, which turns \"you misread it\" into a measurement. Then, where a CORRECT line is\n  what a reader misread, make it undeniable anyway: capture the status on its own line instead\n  of inside a pipeline (identical behaviour, nothing left to argue about), because a gate nobody\n  trusts is a gate nobody uses. Leave the code strictly alone only when no reasonable reading\n  of it was wrong.\n  **The corrective commit is the worst case: the diff SHOWS the text it removed.** A\n  commit that deletes a mistake (a traceback pasted into an artifact, a wrong claim)\n  reaches the reviewer as `- \u003Cthat text>`, and a finding can then assert the artifact\n  \"still shows\" it — the removed lines are the evidence it cites. The same shape hides\n  the GOOD news: a commit that leaves a section untouched contributes no lines, so a\n  capture sitting in an unchanged section reads as absent (\"contains the re-run command\n  but not the captured output\"). Before rewriting anything, measure at HEAD:\n  `grep -c '\u003Cflagged string>' \u003Cartifact>` (0 matches refutes the finding) and\n  `grep -n '\u003Cexpected evidence>' \u003Cartifact>` (line numbers prove what IS there). Put\n  those two numbers in the re-review note — a count and a line number, not an argument —\n  and change the code only if the grep agrees with the reviewer.\n  **Two such findings in a row, both refuted by grep at HEAD, means stop rewriting**: the\n  range is being read through its hunks rather than its content (see the superseded-hunk\n  rule above). Record the refutation, record the issue, and let the lock reach TTL —\n  re-rolling the note cannot fix a material-assembly problem, and the precedent for an\n  ops-only cycle trapped this way is an explicit recorded issue, never `force=True`.\n- **Copy every referenced filename EXACTLY — a one-character typo in a note-referenced\n  path is graded `fabrication`(HIGH).** The reviewer diffs the note's path against the\n  actual `diff --git` header, so `fix-landing-…` typed as `filland-…` anywhere in the note\n  (even describing a verifier you ran) is a self-inflicted contradiction. Copy the path\n  verbatim from `git status`\u002F`git diff --name-only` (or from read_file's resolved_path);do\n  not retype it from memory. A fabrication finding about YOUR OWN typo is the\n  ritual,not right about the code;ang it costs a full re-review round.{\n\n## Verifying the gate actually RAN — a pass is not evidence of a review\n\nA close that succeeds may mean the review passed, or that the review never ran.\nOnly the gate's own log separates those, and the gate writes **two** places:\n\n- **`~\u002F.steadfaste-fleet\u002Flogs\u002Floop-governance.log`** — the fleet-owned record\n  (bounded: rotates at 5 MB, 3 backups). **Read this one first**: it is ours, it\n  sits with the other fleet logs, and it does not depend on Hermes's rotation.\n- `~\u002F.hermes\u002Flogs\u002Fmcp-stderr.log` — stderr, captured by the harness. Useful for\n  live debugging, and it interleaves every gateway-spawned server, so prefer the\n  fleet log when asking \"what did the gate decide\".\n\n| Line | What actually happened |\n|---|---|\n| `self-adversarial review: cycle N simple (L lines, F files) — skip` | The change was BELOW the complexity threshold. No reviewer, no triage, no findings. A clean close here says **nothing** about review quality. |\n| `self-adversarial review: cycle N stored \u003Cverdict> but all LOW (n) — not blocking` | A review ran and every finding was classified administrative and lowered, so it annotated instead of blocking. |\n| `adversarial review: cycle N CLEAN` | The review RAN and PASSED. Note the wording: the pass line can arrive **without** the `self-` prefix, so a grep for `self-adversarial review:` alone returns zero hits on a review that ran. |\n| findings listed with severities | MEDIUM+ findings blocked the close. |\n\n**A refusal naming the reviewer UNAVAILABLE is an ENVIRONMENT fault, not a finding** —\nusually the reviewer's own credential (auth error). It is the gate correctly refusing to\nship unreviewed, so fix the credential path instead of reworking the change:\n`references\u002Freviewer-transport.md` has the probe that discriminates (an authenticated\ncall — a public catalog endpoint returns 200 for a revoked key and wastes the cycle) and\nthe resolution order to check.\n\nCheap check before claiming \"the gate passed\": search **both** logs (the fleet log AND\n`~\u002F.hermes\u002Flogs\u002Fmcp-stderr.log`) for the CYCLE ID and for **both** wordings —\n`adversarial review: cycle` (the verdict\u002Fpass line) and `self-adversarial review: cycle`\n(the skip\u002Fannotate lines) — plus `triage:`. A zero-hit grep on ONE wording is not\nevidence the review never ran: the emitted names differ by path and by the daemon's\ncode version, so search the ID, not the phrase you expect. The triage layer also logs\n`triage: judgement status=…` and `reviewer severities stand` when the judge is\nunreachable — silence there means triage never ran, not that it approved.\n\n**A skipped review is silent by design**, so the log is the only evidence. Never\nreport a gate as \"passed adversarial review\" without it.\n\n**A clean close is not evidence that the evidence SHIPPED.** The gate closes on the\ncycle and does not push for you, and a push can fail transiently while another session\nlands a commit in the same window (`failed to push some refs` after a fetch\u002Frebase). So a\nclose whose note cites a commit that never reached the remote is a self-report with extra\nsteps — the whole point of committing the proof was that someone else can inspect it.\nAfter closing, read the remote back:\n\n```bash\ngit log --oneline origin\u002Fmain..HEAD | wc -l      # must be 0 when you are done\n```\n\nVerify against `origin` (after a `git fetch`), never against the branch you think you\npushed. A push that failed is cheap to fix — fetch, confirm the local commit is a\nfast-forward over `origin\u002Fmain`, push — but only if you check, and the failure is silent\nbecause the commit itself succeeded locally and the tree looks clean.\n\n### Push order: PUSH BEFORE `end_change`, because the push gate needs the lock\n\nThe pre-push hook requires an ACTIVE lock — it refuses with *\"the lock file must exist at\n`~\u002F.steadfaste-fleet\u002Fstate\u002F.governance-*.json`\"*. `end_change` RELEASES that lock, so closing\nfirst strands the push and you need a fresh cycle just to publish work that is already\nreviewed. The operator's standing preference — **review precedes push** — lands the same\norder from the other side:\n\n```text\nwork → commit → review CLEAN → push (lock still held) → end_change\n```\n\nDo not treat \"push then close\" as the natural sequence. It is the shape that produces the\npush-then-review complaint, because the review is the CLOSE step and therefore lands after\nthe push by construction. Review first, push second, close last. If you have already closed,\nthat is not a dead end: the close WROTE the receipt, and the receipt alone authorises the\npush (check for `state\u002F.reviewed-\u003Cslug>-\u003Ctip>.json`). Take a fresh lock naming the original\ncycle only when the close said it could not write a receipt.\n\n**A range touching an always-review path needs the review RECEIPT before it may push**\n(the gate checks both): the push is also refused with *\"this range touches an\nalways-review path and carries no clean review receipt — close the cycle, then push\"*.\n`core\u002Fgovernance\u002F` (e.g. `loop_evaluator.py`) is one of those paths alongside `plugins\u002F`,\n`mcp-servers\u002F`, `fleet-update.sh` and `pre-commit-score`. The receipt is WRITTEN BY the\nreview, and the review runs inside the close — so on such a range the workable order is:\n\n```text\nwork → commit → close the review CLEAN (rereview_change while the lock is still held)\n     → push (lock still held) → end_change\n```\n\n**Closing FIRST is a supported order: the CLOSE writes the receipt — the close IS the\nauthorisation event.** `end_change` runs the review and writes the range's receipt (step 3c)\nBEFORE it releases the lock, so `commit → end_change (CLEAN) → push` works, and the push then\nprints `No active governance lock, but a CLEAN review receipt covers this range`. Closing first\nstrands a push only when the close itself REPORTS that it wrote no receipt\n(`⚠️ Review receipt NOT written — \u003Creason>`); that is the state that needs a carrier\n`begin_change`. So let the steps decide: close once the review is your last step, and push once\nthe receipt proves the range — never reorder because \"push must precede close\".\n**A commit made AFTER a close is NOT covered by that receipt.** The receipt is bound to the range\n(`base..HEAD`) it was minted for, so one more commit — including a docs or evidence commit, and\nincluding one the pre-commit hook itself created — leaves the tip unauthorised and the push gate\nanswers `this range touches an always-review path and carries no clean review receipt`, naming the\nexpected receipt path. That is not a lock problem: close AGAIN (a new cycle whose description says it\nauthorises the new tip, or `end_change` while the lock is still held) so the receipt names the current\nHEAD, then push. Batch the evidence commit INTO the reviewed range where the work allows, because the\nrange's per-file material share shrinks with every added file.\n\n**DEPLOY BEFORE the close whenever the range touches a deploy-synced file.** The pre-push doctor compares DEPLOYED state with repo source and fails the push on drift (`Checksum: \u003Cfile>`) until `fleet-dogfood.sh --force` has run — and that deploy is write-class, so it needs the very repo lock `end_change` RELEASES. Close first and the deploy is refused (`GOVERNANCE LOCK REQUIRED`), leaving a second, EMPTY cycle taken purely to hold a lock for a range already reviewed. So the order is:\n\n```text\ncommit → dogfood (lock still held) → end_change (CLEAN, receipt written) → push (receipt)\n```\n\nReach for a carrier cycle (`begin_change` whose DESCRIPTION says plainly that it is deploy-only and changes no source) only when the close itself reported it wrote no receipt, or when the deploy became necessary only AFTER the close (a peer's commit moved the deployed file). The carrier cycle is not an override — say in its description that it changes nothing, close it with the deploy's measured result, and expect `Review receipt NOT written — range … lists no files` when the range was already pushed; that warning is benign there.\n\n**Issue the push ALONE — a compound or piped push is refused by shape, not by lock.** The gate\nanswers any unprovable shape (compound, pipe, redirection, background job, separator around\n`git push`) with `GOVERNANCE LOCK REQUIRED` and its own instruction to *\"issue the push ALONE as\nits own command, with nothing after it (no `&& git rev-parse`, no `| tail`)\"* — even when a valid\nCLEAN receipt is sitting there. Read that as a SHAPE rule: re-taking a lock to \"fix\" it is wrong.\nRun `git push` as the entire command and inspect the result in a separate call.\n**A pipe or a trailing `; echo` is the same refusal, and the wrong repair is a carrier cycle.** The\nhabit to break: `git push origin main 2>&1 | tail -3; echo \"rc=$?\"` reads as write-class, so it is\nrefused for want of a lock — and taking a fresh cycle to \"get the lock for the push\" costs a whole\ncycle when the refusal was about SHAPE. A range already covered by a CLEAN receipt pushes with NO\nlock at all (it answers `No active governance lock, but a CLEAN review receipt covers this range`).\nSo try the BARE push first: if it refuses, read WHICH thing it named — a shape\u002Fsubprocess complaint\nmeans re-issue it alone, a missing receipt means close again, and only then is a carrier cycle the\nanswer.\n\n**Without a lock, READ intent is blocked too when the command is COMPOUND.** The same gate judges\nSHAPE: `echo hi; ls` is write-class, a `python3 -c` one-liner carrying `$()` or a newline is\nwrite-class, and `ls | grep foo` is not. **A metacharacter inside a QUOTED pattern counts too:**\n`grep -rln \"verify_slice\\|task_verify\" --include=*.py .` is refused as a compound however safe the\nquoting looks, because the classifier reads the shape, not the quoting. So when a search spans several\nalternatives or file types, use `search_files` (lock-free, and it groups matches by file) instead of\nre-quoting the pattern — and take `read_file` for one file. Never take a lock merely to inspect. So right after a close releases the lock, the tree looks\nunreadable as well as unwritable — use ONE pipeline of read primitives (`git log --oneline -3`,\n`git diff --numstat \u003Cbase>..HEAD | sort -k1 -n -r`), or the file tools (`read_file`,\n`search_files`), which stay lock-free. Never take a lock merely to inspect: the lock's lifetime is\nthe change's, and a carrier cycle exists to PUBLISH, not to read.\n\n### Verify an artifact is TRACKED before claiming it is committed\n\n`git add -A` does NOT mean the file was added: an ignore rule silently skips it, the commit\nsucceeds with a clean-looking message, and the reviewer — who sees only the diff —\ncorrectly files `fabrication` against a claim naming an artifact that IS on disk but is NOT\nin the commit. Confirmed the expensive way: an evidence log named `*.log` was skipped by\n`.gitignore`, so the note asserting it had been committed was simply false.\n\n```bash\ngit diff --cached --name-only                  # before committing\ngit ls-tree --name-only HEAD \u003Cartifact-dir>    # what the reviewer can actually see\n```\n\nThen let the repo's EXISTING convention choose the extension: artifacts already committed\nas `.txt` mean the ignored `.log` was the wrong filename, not a missing ignore rule.\n\n## Pitfalls\n\n- **A fix to the close-out path is not live until the MCP daemon restarts.** The\n  loop-governance MCP server is a LONG-LIVED process that loads\n  `~\u002F.steadfaste-fleet\u002Ftools\u002Floop-governance\u002Floop-gov-mcp.py` once — the same\n  \"deploy ≠ load\" trap as the gateway holding the old enforcer. The CLI\n  (`ops\u002Fscripts\u002Floop-gov.py`) imports the server module fresh on every call, so it\n  runs the repo code right now: use it to verify a close-out fix without waiting.\n  The decisive symptom: calling a tool that IS in the deployed file returns\n  `Unknown tool: \u003Cname>` from the running process. That means the daemon predates\n  the deploy — not that the tool is missing — so a restart is the whole fix, and\n  until then every newly deployed tool (e.g. `rereview_change`) is unavailable even\n  though it is present in the deployed path. Restarting the GATEWAY from inside a\n  session is blocked by design, but you rarely need to: kill the SERVER's own child\n  (`ps -eo pid,ppid,args --no-headers | grep '\u003Cserver>.py'`, then `kill \u003Cpid>`) and the\n  gateway respawns it on the next call. Confirm a NEW pid appeared before trusting the\n  reload, and expect the first call after the kill to answer *\"lost its stdio subprocess\n  … the operation may have completed\"* — that is the restart, not a failure. Re-issue a\n  read-only call (e.g. `check_lock`) to confirm the fresh process serves, then continue.\n  **So kill the child BEFORE you tell the operator a restart is needed.** \"Deployed but not loaded\"\n  is a condition you can clear yourself on this host — handing back \"please restart the gateway\"\n  when the respawn path exists leaves a reviewed fix inert for a whole session, and the next\n  session reads the same stale behaviour and re-diagnoses it from scratch. Verify by comparing the\n  child's start time against the deployed file's mtime (see the deploy-≠-load evidence block), then\n  respawn and state the new state.\n- **The CLI is a subprocess with no harness session.** Run from a plain shell it finds\n  no session and answers `No active governance lock`. Pass `session_id` explicitly in\n  the payload — the documented priority-0 override.\n- **One session's close can wedge the SHARED loop-gov server for every other session.**\n  ONE server process serves every session of its parent, and handlers used to run\n  inline on the event loop, so a single `end_change` blocked the server from answering\n  ANYONE while its adversarial reviewer ran for minutes — peer sessions then hit the\n  300 s MCP client ceiling on *every* call, so a session could not close its own cycle\n  because somebody else's close held the process (2026-10-06: the daemon was found\n  wedged in `poll_schedule_timeout` with the reviewer child still running). Symptoms\n  are exactly \"governance is broken\": every tool times out at ~300–420 s, `check_lock`\n  lies, and closing your OWN cycle is impossible. Distinguish it from a refused close\n  (findings) and from a lost lock (TTL): if *unrelated* calls also hang, the server is\n  wedged, not your cycle. The fix is `asyncio.to_thread(handler, args)` plus an\n  `RLock` around the shared-state primitives — deployed, but not LIVE until the daemon\n  restarts (see the daemon pitfall above), so a wedge can persist after the fix lands.\n- **A reviewer timeout at or above the client ceiling is a hang, not a wait.** The MCP\n  client gives up at 300 s, so `ADVERSARIAL_REVIEW_TIMEOUT=420` never returns a\n  verdict — the caller observes nothing and the close is neither confirmed nor refused,\n  and the lock stays held. Reviewer budgets must be clamped BELOW the client ceiling\n  (`REVIEWER_TIMEOUT_CEILING = 240`); prefer a short fail-closed refusal over an\n  unobservable hang.\n- **A reasoning reviewer needs an output budget that clears its THINKING, not its answer.**\n  A small `max_tokens` is not a tighter leash on a reasoning model: it spends the whole budget\n  on reasoning and emits EMPTY content with `finish_reason='length'`, which the gate reads as\n  \"reviewer unavailable\" and uses to refuse an otherwise valid close — a false negative, the one\n  failure mode this gate must never have (measured: the SAME prompt needed ~9000 completion\n  tokens on a long brief, ~1800 on a short one, and returned nothing at 900). Size the cap\n  against the reasoning, treat `length`-with-empty-content as a BUDGET failure and retry once at\n  a larger budget, and never fold it into the unavailable-reviewer message: one means \"ask again\n  with more room\", the other means the reviewer is down.\n  **Keep the cap a KNOB, not a constant.** Read it per call from the fleet `.env`\n  (`REVIEWER_MAX_TOKENS`) rather than as an import-time constant: a close blocked by a starved\n  reviewer must be clearable by setting one variable, because the alternative — a code change plus a\n  daemon restart — is not a knob anyone can turn at the moment the close is stuck. Validate the\n  override and fall back LOUDLY on junk, so a typo in the value cannot silently reinstate the cap.\n  **Bound it at BOTH ends.** A knob with no CEILING passes a typo straight to the provider, so a\n  value three orders of magnitude too large is a bill rather than a fix: clamp to a documented\n  ceiling (the largest context the reviewer's providers accept) and log the clamp as loudly as the\n  fallback. \"Validated rather than trusted\" is true only once the absurd value is rejected too.\n- **`end_change` must REFUSE on a degenerate reviewer return, never trace back — and the guard\n  belongs at the REPLY, not only inside the parse.** A reply of `None` (a reasoning model with no\n  output budget left hands back a null `content` field) has crashed the close in two shapes as the\n  code moved around it: `text.find(\"{\")` on `None`, and — once the parse was guarded — the review\n  row's own slice of the raw reply (`reviewer_text[:2000] + …`) with\n  `'NoneType' object is not subscriptable`. Either way the cycle stays PENDING with its lock HELD,\n  every retry crashes identically, and the session can neither close nor start. So guard the reply\n  ONCE, at the gate, BEFORE the parse and before every consumer of the raw text: one predicate on\n  \"is this a non-empty string\" that a silent reply fails. Put that check on the TRANSPORT side as\n  well: the helper that performs the call must RAISE on a null\u002Fempty reply instead of returning it,\n  since its own contract says it returns text. A gate-only guard protects the one caller that\n  remembered to check — a sibling consumer of the same helper, added later, crashes on its first\n  slice of the reply. Fix both layers, and carry the provider's own reason (`finish_reason`, the\n  effective cap) in the raised message so a starved budget is distinguishable from an outage.\n  **The naive fix is a BYPASS, not a fix.** Defaulting the text to `\"\"` lets an empty reply parse to\n  `FINDINGS` with an EMPTY findings list — which is the \"only LOW severity\" path, so it annotates\n  and lets the close THROUGH. A reviewer answering with silence would then PASS the gate. Silence is\n  an unavailable reviewer: REFUSE, and say which it was.\n  Already stuck that way, the exit is NOT `force=True`: `advance_task_state(\u003Ctask_id>,\n  new_state=\"cancelled\")` on the live session releases the lock — **a terminal task holds\n  nothing** — which is the sanctioned terminal release for a close that cannot complete.\n- **One lock per logical change.** `begin_change`'s description is fixed for the life\n  of the cycle and must NEVER be hand-edited (that is fabricated governance state).\n  The reviewer diffs the window from the lock's `started_at`, so stacking a second\n  unrelated change under one lock leaves the description not matching the diff: the\n  reviewer flags it, `rereview_change` cannot resolve it, and the cycle is unclosable.\n  Nothing clears such a cycle FOR you — there is no cycle-clearing capability anywhere,\n  for an orchestrator or anyone else (`reclaim_dead_locks` refuses a LIVE owner: its\n  predicate is the staleness rule the TTL purge uses). The owner releases the lock with\n  a terminal transition, or the TTL reaps it.\n\n  The way this happens in practice is a NEW concern arriving mid-cycle — a peer\n  reporting a bug in the code you just shipped, a fleet breakage, a follow-up you\n  notice while verifying. Fixing it immediately is exactly the trap: the description\n  was frozen when the lock was taken and the reviewer diffs from `started_at`, so the\n  the added change reads as the description not matching the diff. Score and `end_change`\n    the current cycle FIRST, then `begin_change` the new one — your own bug is not an\n    exception.\n\n    The lock is SESSION-SCOPED (one `.governance-\u003Csession>.json` per session), so\n    `begin_change` hard-REFUSES while any lock is held — *\"A governance session is\n    already active … Call end_change first, or use force=True\"* — and a refused close\n    keeps that lock for its full TTL. That leaves exactly three exits: fix and\n    re-review, release the lock yourself with a terminal transition\n    (`advance_task_state(task_id=…, new_state=\"cancelled\", reason=…)` — a terminal task\n    holds nothing, and the cycle being already scored leaves no lockless PENDING leak),\n    or let the TTL reap it. No orchestrator can do it for you: nothing in the system\n    clears a live owner's cycle.\n    `force=True` releases the held cycle to make room, so it is an override, not a\n    convenience — never take it to get past your own refusal.\n\n    **That holds when the FIX ITSELF needs the lock.** Diagnosing the gate from inside the stuck\n    session reads like the exception (\"I only need a lock to repair what is blocking me\") and it is\n    not one: an override to unblock your own repair is still an override. Land what the session can\n    still close, give the operator the ONE action that clears the stuck cycle (a daemon restart, or\n    an orchestrator clearing it), and let the next session's daemon pick the fix up — a day's delay\n    on a gate repair is cheaper than normalising `force`. If you do take it, report it as an\n    override in the same breath as the fix, never as procedure.\n\n- **A timed-out `end_change` may have SUCCEEDED — do not report it as a failure.** The\n    call can hit the MCP client's ~300 s ceiling while the reviewer is still working.\n    Retrying then answers `No governance session active. Nothing to release.` — the same\n    wording as an expired TTL, which reads like a lost close. Confirm from the gate's own\n    record before saying either way: `grep '\u003Ccycle id>' ~\u002F.steadfaste-fleet\u002Flogs\u002Floop-governance.log`\n    showing `\u003C…> review: cycle N CLEAN` plus the cycle's stored decision means the close\n    landed and the lock was released.\n\n    **A close can also fail because the LOCK EXPIRED, not because it was refused.** The\n    session TTL (one hour) is shorter than a long verification tail — deploying, waiting\n    on a suite, re-running it after a finding. `end_change` then answers `No governance\n    session active. Nothing to release.` while the cycle itself is already scored, so\n    nothing is blocked and no doctor FAIL appears: only the lock is gone, and the\n    remaining commit or push still needs one. Take a fresh lock for the leftover work\n    (`begin_change` with a description saying it finishes that commit), close it, and\n    name the original cycle in the note so the history stays legible. Score the cycle\n    BEFORE any long verification step and this never happens.\n\n    **A refusal blocks the LOCK RELEASE, not the work.** The cycle is already scored, so\n    there is no unscored-cycle gate, no doctor FAIL and no blocked push — the entire\n    cost is the held lock plus the findings on record, and the lock expires on its TTL.\n    Say that plainly instead of reaching for `force=True` to \"unblock\" work that was\n    never blocked.\n\n    A refusal is RECORDED ON THE LOCK (`close_refused`: cycle, verdict, blocking count,\n    finding ids, time) and a pre-commit advisory\n    (`governance-refused-close-advisory.sh`) prints it at the moment new work is\n    committed under it. Advisory only, always exit 0 — a blocking version could deadlock\n    an agent whose close is legitimately stuck, which is a worse failure than the one it\n    prevents. EVERY refusal path marks the lock: a MEDIUM+ verdict, a stored FINDINGS\n    verdict, an UNREACHABLE reviewer, and a missing reviewer prompt template. If a\n    refusal shows no marker, the daemon is running code that predates the marker —\n    restart and re-check; do not conclude the refusal was harmless.\n- **A close that hangs may be a WEDGED SERVER, not your cycle.** MCP servers are\n  spawned per PARENT process (one gateway owns one `loop-gov-mcp.py`), so a session\n  blocked inside `end_change`'s reviewer freezes the server for every session that\n  parent serves — including yours, which then cannot close its OWN already-scored\n  cycle. Do not rework the cycle and do not reach for `force=True`: prove the block\n  first (`ps -eo pid,wchan:22,args | grep loop-gov-mcp`; `poll_schedule_timeout`\n  means blocked in a `subprocess.run` on a reviewer child, `do_epoll_wait` means the\n  server is healthy and the cause is elsewhere). Full probe and the off-loop rule:\n  `concurrent-session-isolation` → \"A wedged shared MCP server\". The governance\n  STATE is already per-session; only the transport is shared.\n- **A cycle that will not close no matter what you change may be reviewing the WRONG\n  REPO.** A lock carries BOTH `repo_slug` (a NAME) and `repo_path` (an absolute path),\n  and `_adversarial_review_gate` resolves the tree it diffs from the lock's **`repo_path`**\n  (falling back to `HOME\u002F\u003Crepo_slug>` only for locks predating that field). When the two\n  describe DIFFERENT repos, the gate diffs a tree that cannot contain your work: the\n  reviewer returns FINDINGS every time, the close is refused forever, and each\n  `end_change` retry spawns another full review.\n\n  **The mixing is the defect, and it is diagnosable.** `_derive_repo_path` accepts the\n  enforcer's observed absolute path, but a slug resolver that validates the injected slug\n  only as `HOME\u002F\u003Cslug>` — which fails for any checkout nested deeper than a HOME child —\n  SKIPS it and falls back to the host-canonical repo. The lock then lands with a canonical\n  slug beside an observed path (observed: `repo_slug: \"steadfaste-fleet\"` + `repo_path:\n  \"~\u002F.hermes\u002Fhermes-agent\"`). The fix, when you own the resolver, is to derive the slug\n  FROM the same accepted path — one resolution, one repo — never a canonical slug beside an\n  observed path. A session repo-hint that merely DRIFTED (it records whichever repo the\n  session last touched a path in, so it can name one you are no longer working in) is the\n  is the same symptom from a different cause.\n\n    **A harness with NO identity injector at all is the third cause, and it hits EVERY\n    non-Hermes caller** (pi, Claude Code, Codex CLI): Hermes injects the session's repo through\n    the enforcer plugin, but a harness that merely spawns the MCP server injects nothing — so a\n    resolver that falls through to the host-canonical repo tags a PROJECT-repo session as the\n    shared fleet checkout. The close gate then refuses with *\"the lock's repo cannot contain\n    this session's work\"*, there is no injector to repair it, and every `end_change` retry\n    re-runs the whole review; in practice the OPERATOR deletes\n    `~\u002F.steadfaste-fleet\u002Fstate\u002F.governance-\u003Csession>.json` by hand. The rule: resolve the repo from\n    the CALLER's own evidence — an explicit env hint (`FLEET_SESSION_REPO`) first, else the MCP\n    child's cwd — and keep the Hermes path excluded from that fallback so an injected identity\n    still wins. Test the matrix both ways: a project-repo caller resolves its OWN tree, and a\n    Hermes caller is never re-tagged from the shared daemon's cwd.\n\n  **The tell is a finding that says the diff does not show your change while your own\n  `git log` plainly shows it** — including the extreme form where the material's\n  `Full diff:` is EMPTY or its file\u002Fline count matches a PEER's commit rather than yours.\n  Check the lock BEFORE reworking anything:\n\n  ```bash\n  python3 -c \"import glob,json;print([(json.load(open(p)).get('repo_slug'),json.load(open(p)).get('repo_path')) for p in glob.glob('$HOME\u002F.steadfaste-fleet\u002Fstate\u002F.governance-*.json')])\"\n  ```\n\n  Disagreeing values, or a `repo_path` that is not the tree you edited (`git rev-parse\n  --show-toplevel`), mean no rewrite of the note can fix it. Also available as a\n  guard read: the review refuses when the lock's repo holds none of YOUR commits in the\n  window — but a guard keyed on \"the lock's repo shows nothing\" is DEFEATED by a single\n  unrelated commit there (a peer's, a pipeline's), which is exactly how a wrong-repo\n  close gets as far as permanent findings. Key such a guard on AUTHORSHIP (does the\n  lock's repo hold any commit this session authored), never on an empty change count.\n- **The wrong-repo refusal is the MCP guard; the CORRECT tagging is the enforcer plugin — separate lifetimes, so seeing the NEW refusal text does NOT mean the injection is loaded.** The refusal you get on a wrong-repo close comes from `loop-gov-mcp.py`, which is spawned FRESH per call and therefore always runs current code. The thing that tags the lock with the session's real repo (`_inject_session_context` \u002F `_note_session_repo` in `plugins\u002Fgovernance-enforcer\u002F__init__.py`) is a PLUGIN loaded ONCE into the long-lived gateway process (`PluginManager.discover_and_load` at process start). So a host with current code on disk and current guard text can STILL produce an old `steadfaste-fleet`-tagged lock — the running gateway holds the pre-injection enforcer. The guard even says it: \"once that is deployed AND the gateway has reloaded it\". The fix for the affected host (dev macOS = Titus) is NOT another deploy; it is reloading the gateway so the enforcer rebuilds: `hermes gateway restart` (macOS launchctl; Linux systemd `hermes gateway restart`). There is also a hot control-socket verb `reload-plugins` (gateway\u002Frun_plugin_rewire.py) that rebuilds plugins WITHOUT a process restart — prefer it for a minimal blast radius. Do not keep re-deploying files; reload the loaded plugin.\n- **A wrong-repo lock could leave DEBRIS in the other repo, and that debris blocked the\n  push.** A mis-tagged lock wrote its secondary marker to\n  `\u003Crepo_path>\u002F.steadfaste-fleet\u002F.governance-lock`, dropping governance state into a repo it\n  did not govern — including the upstream Hermes checkout, which the pre-push dogfood gate\n  then fails on (`Fleet must not edit ~\u002F.hermes\u002Fhermes-agent`), blocking a push for a\n  change that is otherwise fine.\n\n  **The durable fix is that the marker is GONE: locks are runtime-only. Removing the\n  resolver bug alone was the wrong fix — a marker that can authorise against a repo the\n  session never touched is a liability, not a safety net.** `_secondary_lock_path` now\n  returns `None` on BOTH sides (the MCP server and the enforcer plugin), so nothing may\n  write governance state inside a repository; `plugins\u002Fgovernance-enforcer\u002FREADME.md`\n  documents the phase as removed. Both git hooks were unaffected either way — they scan\n  `~\u002F.steadfaste-fleet\u002Fstate\u002F.governance-*.json` directly — so dropping it cost no\n  enforcement. If you DO find stray debris, it predates the drop or the daemon still\n  holds pre-drop code (see the daemon pitfall: the reload is the fix, and until it\n  restarts a fresh `begin_change` can re-create the marker). Clearing it is DESTRUCTIVE\n  and needs operator consent, and you may not be able to clear it yourself — the enforcer\n  scopes your lock to the LOCK's repo, not the one holding the debris — so back it up,\n  report the exact path and command, and stop rather than routing around enforcement.\n\n  **Report it and take a fresh lock; do not fight it.** Re-pointing lock identity is a\n  fleet-wide change, not a local workaround. Note a long verification tail can outlive the\n  1-hour session TTL, so the lock may be GONE by the time you get here (see the expired-lock\n  pitfall) — take a new one for the leftover work and name the original cycle in its note.\n\n- **`rereview_change` requires an ACTIVE lock, so a mid-task deploy can strand the\n  documented FINDINGS → fix → rereview path.** It answers `Cannot re-review: No active\n  governance lock` once the lock FILE is gone — and re-taking a lock is itself refused\n  while the session is still live (\"a governance session is already active … call\n  end_change first\"). That three-way state (no lock file, live session, refused rereview)\n  has exactly one exit: `end_change(\u003Ctask_id>)` on the live session, which judges the\n  CURRENT material. Commit the artifact the finding asked for FIRST — that is the only\n  thing that makes the next verdict differ — then close; do not hunt for a way to re-take\n  the lock.\n- **The task state machine is not fully connected, so a parked cycle needs a two-step\n  resume.** `blocked` transitions only to `cancelled` or `planning`; `blocked →\n  executing` is refused with `Invalid transition: 'blocked' → 'executing'. Allowed:\n  cancelled, planning`. Step `blocked → planning → executing` before closing, or the\n  close refuses for a state reason that has nothing to do with the change.\n- **Score before you investigate.** A cycle left PENDING with no live lock is a doctor\n  FAIL that blocks every push, so scoring an orphaned cycle is the first move, not the\n  last.\n- **A cycle you opened and then did NOT work in still has to be closed.** When an\n  approval times out, the operator redirects, or you stand down mid-task, the cycle is\n  left PENDING and blocks the next push. Close it with `unscored_reason` stating that\n  nothing happened and why (\"cycle opened to restart the daemon; approval timed out,\n  no change made\") — an explicit unscored close is an accurate record, while walking\n  away from the cycle is a leak. Do not leave it for the reaper, and do not let the\n  abandoned cycle stop you from reporting which half of the work is still pending.\n- **A cycle whose work is NOT a repo commit cannot close — score it, then let the lock\n  lapse.** A pull+update, a service enable, an env\u002Fconfig change, a bus dispatch: the\n  window is the commits in the lock's repo, so a cycle that authored NONE draws the\n  wrong-repo refusal (*\"no commits in the window\"* → *\"the lock's repo cannot contain\n  this session's work\"*) however correct the lock and however real the work. There is\n  no fix to reach for: do NOT `force`, do NOT retry `end_change` in a loop, and never\n  author a throwaway commit to manufacture a window the work does not have. Run\n  `feedback_accept` anyway — a scored `MOVE_ON` cycle is not PENDING, so no doctor FAIL\n  lingers — then let the 1-hour TTL reap the lock. The work itself is finished and\n  verified; report the refusal as an administrative artifact, not a failure. (The\n  inverse trap is the guard's own weakness: it keys on an EMPTY change count, so a\n  single unrelated peer\u002Fpipeline commit in the lock's repo makes it pass — such a guard\n  must key on AUTHORSHIP, see the wrong-repo section.)\n- **Every tool that WRITES a lock must resolve the repo the way `begin_change` does — audit the\n  ones that create work FOR you.** A lock with no `repo_path`\u002F`repo_slug` yields a cycle that can\n  never close: `end_change` refuses with *\"no governed repo to measure complexity — self-adversarial\n  review cannot run\"*, and there is no diff to judge, so no retry can ever satisfy it. Found on the\n  promote path: turning a recorded issue into a tracked task wrote exactly such a lock, leaving an\n  unclosable cycle AND a repo write-blocked for the rest of the TTL. Two habits: read the lock FILE\n  (`grep repo_path ~\u002F.steadfaste-fleet\u002Fstate\u002F.governance-*.json`) after ANY tool other than\n  `begin_change` creates a cycle, not just after a suspicious refusal; and expect the STATE MACHINE\n  to be the exit rather than `end_change` — from `executing`, `advance_task_state(new_state=\"blocked\")`\n  is accepted and records the real reason, so the cycle stops being an unexplained PENDING one.\n  That does NOT release the file: `blocked` is NON-terminal (as is `planning`), so the lock persists\n  and keeps write-blocking the repo — and the TTL you would be waiting for does not arrive while the\n  same session keeps working, because every write-class call refreshes the lock's heartbeat. Use the\n  TERMINAL transition instead: `advance_task_state(new_state=\"cancelled\", reason=...)` reports *\"a\n  terminal task holds nothing\"* and releases the file immediately, because `_release_lock` does not\n  consult repo identity. `cancelled` is reachable straight from `executing`, so there is no need to\n  park a cycle you cannot close — parking it is how a stuck cycle becomes a stuck repo.\n- **A tool that RENAMES the lock's task must create that task's cycle FIRST — and fail\n  closed if it cannot.** An interruption suspends the parent and rewrites the lock's\n  `task_id` to `\u003Cparent>_subN`; with no cycle created for the new id, the session holds a\n  LIVE lock that nothing can score: `end_change` refuses (*\"no governance cycle found for\n  this task\"*), `begin_change` refuses (*\"a governance session is already active … use\n  force=True\"*), `feedback_accept` finds no PENDING cycle, and `resume_from_interrupt`\n  answers *\"No active governance lock\"* while the lock file is live. The instruction inside\n  the first refusal — that a cycle *\"must be created via any write tool under this lock\"* —\n  is FALSE as shipped: writes made under that lock create nothing, because cycles come from\n  `begin_change`. The only exit the system names is the override the operator rejects, so an\n  operator-directed interruption could be neither closed, superseded, nor resumed. Two\n  durable rules: (1) ONE shared create path, called by every entry point that starts a task,\n  ordered BEFORE the lock is written so a failed write cannot leave a task with no scorable\n  cycle; (2) if the cycle cannot be created, REFUSE the operation rather than half-create it\n  — a refused interruption costs a retry, a lock with no scorable cycle costs the session.\n  Diagnose the state from the lock's own `task_id` and query cycles for THAT id, not for the\n  session.\n- **`check_lock` can say `active: false` while `begin_change` refuses with \"a governance\n  session is already active\".** They read different things — the session\u002Flock registry vs\n  the lock file — so a lock the reaper has already reaped, or a session whose TTL has not\n  expired, makes them disagree. Trust the REFUSAL: it names the held `task_id`, its\n  `started_at` and the session id. The exits are `end_change(\u003Cthat task_id>)` or the TTL;\n  it is never a reason to reach for `force=True`, which releases someone else's cycle to\n  make room for yours.\n- **Probe the schema before you commit a query as evidence.** The governance DB's tables\n  are NOT named after their contents: cycles live in `loop_cycles`, and recorded issues\n  are rows in `task_events` (`id, timestamp, task_id, agent, event_type, from_state,\n  to_state, detail`) — there is no `events` table, and guessing one both fails and, when\n  the guess is committed into an artifact, publishes a traceback where proof was claimed.\n  One `SELECT name FROM sqlite_master WHERE type='table'` first; a query you intend to\n  quote belongs in an artifact only after it has returned a row.\n- **Test a verdict-recording helper BOTH ways.** One exercised only by re-recording an\n  existing row never runs its insert path — assert the first record into an EMPTY\n  cycle too, or the insert half can be silently broken while the suite is green.\n- **A test that models the lock WINDOW must open the window BEFORE creating the work.**\n  The gate measures the commits since `lock.started_at`, so a self-test that commits\n  first and computes the timestamp afterwards places its own fixture OUTSIDE the window\n  and fails for a reason that has nothing to do with the code under test. Capture the\n  window start, THEN create the work. Also point sandbox repos at an empty\n  `core.hooksPath`: otherwise the host's global git hooks fire on every fixture commit\n  and add seconds of latency between the two, which can push the work out of a narrow\n  window by itself. (Compare the window as EPOCH seconds, never `git log --since=` —\n  see `concurrent-session-isolation`.)\n\nSee `references\u002Fclose-loop-grind.md` for the full mechanics of driving a large\npush range through the `end_change` blob-close wave loop to a minted receipt:\nbudgeting the ~90-wave grind, the documentary-straggler refusals, why a\nsubagent cannot grind it, and refreshing re-review material every round.\n","## A window cannot demand another window's content\n\nA per-blob window shows ONE file, so \"commit the sibling's test bodies here\" and \"commit the\nimplementation here\" are unsatisfiable by construction — and the refusal count RISES as the worker\nanswers it. Fix the reviewer's CONSTITUTION (prompt template) and pair the rule with a structural fact\nthe window can show; never keep editing the judged files. A template edit also changes the rules\nrevision, which RE-SENDS the blobs the old rules refused — that is the unblock for a stuck range.\nTerminal exit, the pinning test, and the measure-before-you-build recipe:\n`references\u002Freviewer-policy-two-windows.md`.\n\n## No resolvable push range means GENERIC feedback, never a whole-history demand\n\nWhen the push base cannot be resolved — no repo, no remote, or a base that fell back to the root\ncommit — the range is NOT \"all history\". Enumerating it would list every path in the session opener\nand demand a verdict per blob for the entire repository. The gate instead treats the range as absent:\nno blobs are enumerated, the receipt binds by exact tip+base only (the STRICTER authorisation — the\nconsumer accepts a blob-less receipt only under that rule), and the session opener prints\n`NO RESOLVABLE PUSH RANGE` plus the generic expectations (operator rule, 2026-10-18: \"no repo data to\nwork with\" means generic feedback). Two traps when testing this: a fake repo path like `\u002Ftmp` has no\ngit, so the unresolvable branch fires in tests that meant to exercise the NORMAL path — stub the\nfallback predicate explicitly and say which case each test describes.\n\n## Coverage is \"judged and nothing outstanding\", not CLEAN\n\nA blob is COVERED when its stored verdict is CLEAN **or** its findings are all below blocking.\nDemanding a bare CLEAN made an `info`-only review uncoverable forever — the close reported\n\"0 blocking findings\" and \"carries no review verdict\" for the SAME blob at once, so the range could\nnever close. Widening coverage this way is not weaker severity gating: a blocking finding still\nrefuses the close, and an UNJUDGED blob is still uncovered. When a range looks unclosable, check\nwhether a judged blob is being held to CLEAN by mistake.\n\n## A path that does not exist at the tip is NOT reviewable — demanding it is a deadlock\n\n`range_blobs` records a path the range changed but that is ABSENT at the tip with the sentinel\n`\"deleted\"` — a deletion, or every old path of a file that was RENAMED while the stored base\npredates the rename. Such a path has no diff, so no verdict can EVER satisfy the demand, and a blob\nalready carrying a non-clean verdict is never re-sent. The result is a deadlock, not strictness:\n`reviewed this pass: 0` with the same paths pending on every close, for ever — and the reviewer's\nfinding form gives it away (\"prove, from within this file's diff, that …\" for a file with no diff).\nThe only exit is an override, so treat it as the bug it is. Two halves, and shipping one alone just\nmoves the deadlock:\n\n- the DEMAND excludes any path with no content at tip, and REPORTS the exclusion (count + sample) —\n  silently dropping it is the same defect class;\n- the RECEIPT still names each such path PER PATH (value = the sentinel), or the push gate — which\n  queries the same range, sentinel included — refuses that range for ever instead.\n\nDiagnose from the symptom pair: `reviewed this pass: 0` while paths stay pending, PLUS a stored base\nthat predates a rename. Confirm with `git log --oneline \u003Cbase>..HEAD` (find the rename commit) and\n`git log --diff-filter=D --name-only \u003Cbase>..HEAD` (list what vanished). A fresh base also clears it,\nbut the base is computed by `begin_change`, so it is not something the worker picks mid-cycle.\nNote the residual that this does NOT fix: a path that STILL EXISTS and whose recorded verdict is\nnon-clean keeps its verdict and stays pending — that is a JUDGEMENT problem, and its exits are a new\nblob (edit and re-commit) or a fresh base. `rereview_change` is now one of its exits too: a CLEAN\nre-review DELETES the per-blob verdicts for the range it just judged, so those blobs are re-judged\nlive on the next close instead of blocking on a row the range-level review has already overruled.\nNever a silent override.\n\n## `reviewed this pass: 0` with blobs pending is an ENGINE condition, not work to finish\n\nThe per-blob pass runs inside the SAME 240s client window as the whole-range review, and a range\ncall measures 180-220s — so the pass can be handed a remainder that no single blob call can fit\ninside. It then issued the wave anyway, every call was cut at the deadline, `calls` stayed 0, and\neach blob was reported as \"still carries no review verdict\": a statement about blob WORK that was\nreally a statement about the clock. Four closes in a row said the same thing, each ending \"fix the\nfile and commit it\" for a file already fixed.\n\nRead the two states apart before doing anything to your tree:\n\n- **the window was already spent** — the refusal now names it (`REVIEW_WINDOW_SPENT`), states that\n  ZERO blob calls were attempted, and says the remedy is to RETRY the close, not to edit: the range\n  verdict is stored, so the retry skips the range call and hands the pass the whole window. Editing\n  files cannot change this outcome.\n- **nothing was eligible** — every outstanding blob already carries a not-clean verdict for its\n  EXACT content. Then, and only then, the remedy is a CONTENT change (a new blob), because\n  re-sending identical bytes cannot produce a different verdict.\n\nA close refuses as `REVIEW_WINDOW_SPENT` only below `BLOB_REVIEW_MIN_CALL_S` (180s, the low end of\nthe measured band), so it never starts a call it knows will be abandoned. The refusal text and the\nreplay-safe distinction are pinned by\n`tests\u002Ftest_perblob_zero_work_is_engine_condition.py`; the floor's arithmetic by\n`tests\u002Ftest_close_budget_bounds.py`. When a close reports zero work, first ask WHICH of the two you\nare looking at — one is fixed by another close, the other by a commit, and confusing them is what\nturns a refusal into a loop.\n\n## An empty reviewer reply is the FIRST thing to check when a close hangs or refuses\n\n`REVIEWER_REASONING_EFFORT` is the lever, not `REVIEWER_MAX_TOKENS`. A reasoning model thinks to\nwhatever cap it is given and returns EMPTY content (`finish_reason=length`), so no blob is ever\ncredited and every close burns the whole client window: measured, effort `low` returned nothing at\ncaps 16k, 32k and 128k, while effort `none` returned a verdict in seconds on the same material. Both\nvalues are read at CALL time from the fleet `.env`, so no restart is needed to change them.\n\n## The reviewer's demands are scoped by claim type\n\nBehaviour a file controls → a committed, re-runnable test. A historical measurement or an operator\ndirective → a POINTER to its record (cycle id, event number, evidence path); neither can be a test\nfixture, because the measured behaviour is the one being replaced and a quoted instruction is a fact.\nA cited sibling → judged on its own blob, never as fabrication. A pre-existing helper used by new\ncode is context, not a claim. A repo-internal REFERENCE (`see CURRENT_STATE.md`, a cross-reference\nbetween docs) is a POINTER: its evidence is that the target exists at the reviewed tip, which the\nreviewer cannot see from the diff alone — so it is a PROMPT gap (flag only a target that does not\nexist), not a defect in the docs and never a case for an override. Answering it by editing every\nAnswering it by editing every referenced file is a loop: those files reference yet more files.\n\n**Bulk-recovered HISTORY is the case that breaks the claim classes: a record gets judged as a live\nclaim.** Landing many recovered documents in one range puts N prose files under the reviewer, each\njudged on its OWN blob — and a document that merely asserts something about code is `behaviour`, so\nthe demand is a committed, re-runnable test. Nobody can write that test for a past measurement, so\none such finding arrives per recovered file, at one pass per four files, and each fix commit widens\nthe range further. Diagnose it as a claim-class mismatch, not as a defect in the recovered text:\nthe policy above already makes a historical measurement a POINTER to its record, so the move is to\nhave the material declare what it is a record OF (as-of date, provenance line) instead of reading as\nspecification for the code today — and to land recovered prose in waves rather than as one\nhundred-file range. Do NOT answer the class by adding a test artifact per file: the range grows,\nevery file's share of the material shrinks, and the new files are judged too.\n\n## A blob's material now SHOWS the range siblings' added lines\n\nEvery per-blob material carries `sibling ADDED lines`: the *added* lines of the range's other files,\nbounded to 6 files \u002F 12 lines each \u002F 60 total. This exists because of the highest-cost churn measured\n(2026-10-18): a file whose evidence is proved in another file — \"the test that asserts this is in\ntests\u002F…\" — could not be cleared in one round trip. The reviewer saw the sibling's PATH and its verdict\nbut never its CONTENT, so it kept demanding the evidence be duplicated into the file under review or\nproduced as committed output; the only thing that satisfied it was TOUCHING the sibling too, which\nchanged a blob sha and nothing else. A 3-blob range cost ~10 closes that way.\n\nSo when a review asks where the proof is, check the material first — it is probably in that block — and\ndo **not** adopt \"when the fix is in another file, touch both\" as a habit: it codifies the symptom.\n\n**When the proof is a WHOLE sibling the block cannot carry — a test file, not a line — NAME the\ncoverage inside the file under review.** The block carries added LINES under a bound (6 files, 12\nlines each, 60 total), so a reviewer reading `mcp-servers\u002Fx.py` still cannot see that\n`tests\u002Ftest_x.py::test_\u003Cproperty>` exists. Measured: it demanded \"commit a test that injects a\nreviewer sleeping longer than the remaining budget\" while that exact test was already committed in\nthe same range — and because identical content is never re-judged, no note could clear it. The fix\nthat works is a comment in the judged file naming the covering tests beside the code they cover\n(`COVERED BY tests\u002Ftest_x.py::test_a, ::test_b`), which makes the demand answerable from the material\nalone. Prefer that to touching the sibling: touching it changes a blob sha and nothing else.\n\n**…and the pointer BACKFIRES when the complaint is that the window cannot see the other file at\nall.** Measured: adding `COVERED BY tests\u002F…::test_name` pointers to a judged file RAISED the blocking\ncount from 4 to 9, all of one class — the pointer handed the reviewer a test id to demand the BODY of,\nand the test file's own window demanded the implementation in return. When two files prove each other\n(an implementation and its test file), no single-blob window can hold both, so the demand is\nunsatisfiable BY CONSTRUCTION and no edit to either file can clear it. Read the CLASS as the defect,\nnot the pointer: the pointer works when the window can RESOLVE it (the sibling list names that test),\nand is useless when the complaint is that the other file is not visible at all.\n\n**Two rounds of the SAME class = stop editing the judged files.** Record the class with its\nmeasurement (`record_issue`), release the cycle terminally — `advance_task_state(new_state=\n\"cancelled\", reason=…)`; a terminal task holds nothing and an already-scored cycle leaves no PENDING\nleak — and fix the reviewer's constitution or the verdict schema in its OWN governed change. Every\nedit also buys a fresh review of a NEW blob, so the rounds are not free: a count that RISES while the\nclass stays the same is the signal, not a reason to try one more wording.\n\n## A blocking verdict is keyed to blob CONTENT — a file whose fix landed in a SIBLING must change\n\n`_blobs_with_recorded_verdict` skips content that already has a verdict, and the reasoning is sound\n(\"identical bytes cannot produce a different verdict\"). The consequence: a blob that came back with\nBLOCKING findings keeps that verdict, is reported in `remaining`, and is **never re-judged** — so if\nyou answered its finding by editing ANOTHER file, the blamed file still carries the old refusal and the\nrange cannot close. Touch **both** when the fix genuinely lives elsewhere (the sibling block above is\nwhat makes that rare). An `UNJUDGED` reply is deliberately NOT recorded, precisely so this cannot\nhappen to content nobody judged.\n\n## Tell the agent BEFORE the close, with content the reviewer expects\n\n`begin_change` prints the review scope (the paths that will be judged), the standing expectations,\nAND preflight advice computed from the range's own added lines (a cited measurement wants a pointer;\na recorded `rc=124` wants a completed run; a test calling into a sibling wants a dependency pointer).\nIt is silent when nothing is outstanding. The close names the unreviewed paths and reports the true\ncovered count — never a bare count, which forces a database query per round trip.\n\n## Requesting a review: read docs\u002Ftemplates\u002Fadversarial-review-brief.md first\n\nThat template is for whoever ASKS for a review. Its measured lesson: a brief that led with its\nauthor's five suspicions came back with six findings that merely restated them, so it now leads with\nopen questions and the code, and it carries a table of what a reviewer cannot see (siblings, your\nterminal, the store, the past, a helper present at both range ends) with what to supply instead.\n\n## Read a review's FINDINGS, not its verdict token\n\nA CLEAN from a review request is an approval only if its findings are empty or trivial. A CLEAN whose\nsingle finding is `info` `unverified-claim` saying the window held only a path is the tell of\n`--material \u003Cpath>` instead of the file's CONTENTS — it verified nothing, and citing it as an approval\nmeans quoting a paid pass on an empty review. Read the stored row before relying on it:\n\n```bash\nsqlite3 ~\u002F.steadfaste-fleet\u002Fdata\u002Floop-governance.db \\\n  \"SELECT reviewer_model, verdict, findings_json FROM adversarial_reviews WHERE cycle_id=\u003CN>\"\n```\n\nThe material and pass-off rules live in `adversarial-review-passoff`; this is the close-out side of the\nsame rule — and the same instinct that says \"the gate passed\" is the one to distrust here.\n\n# Governance Close-out\n\n**Class of task:** closing a governed change — `feedback_accept` then `end_change` —\nand everything that can refuse it: an unscored cycle, an unclosable cycle, an\nadversarial review returning FINDINGS, or a fix to the close-out path that is not live\nyet.\n\n> The normative governance rules live in the repo (AGENTS.md, the loop-governance\n> skill). This skill is the CLOSE-OUT procedure and the traps that cost time.\n\n## The procedure\n\n```text\ncycle_query(status=\"pending\")                  # every cycle for this session\nfeedback_accept(cycle_id=…, completeness=…, quality=…, progress=…, note=\"…\")\nend_change(task_id=…)                          # refuses while the cycle is unscored\n```\n\nA bare note is refused: pass scores, or an explicit `unscored_reason`.\n**Pass ALL THREE scores in the one call — a partial call is ACCEPTED and silently records zeros.**\n`feedback_accept` takes `completeness`, `quality` and `progress`; supplying one raises no error, so\nfinished, verified work is recorded as e.g. `completeness=10, quality=0, progress=0 → composite 4.0`.\nNothing downstream complains — the cycle closes and the bad number sits in the record for any later\nreader, and any metric over composites reads it as a poor cycle. So check the returned line names all\nthree values before moving on — **the RECORD is the evidence, not the call.** Measured: a call that\npassed all three was stored as `completeness=8, quality=0, progress=0 → composite 3.2`, and\nre-issuing the SAME cycle with the same values then reported `8.0\u002F8.0\u002F8.0 → composite 8.0`. So read\nthe returned line every time and re-issue when it disagrees with what you passed, rather than\nexplaining the number afterwards. It is CORRECTABLE while the session is live: re-issue\n`feedback_accept` for the SAME cycle id with all three (`MOVE_ON → MOVE_ON`, composite updated and\nreported). Do that rather than explaining the number afterwards — the reflection note cannot fix a\nwrong score, and re-scoring is cheaper than the confusion it prevents.\n\n**Score a deliberately PARTIAL change honestly, and NAME the gap.** A cycle whose scope was cut\nshort — the first of two items landed, a follow-up sweep deferred because it depends on the\narbiter this change introduces — is RECORDED, not hidden: pass the real numbers and state the\ndeferred item in one clause. Completeness 10 beside an unstated gap is a false record, and the\nnext session cannot tell a finished change from an abandoned one; a 9 with the gap named is what\nit actually needs. `unscored_reason` is for a cycle where NOTHING could be measured — an approval\ntimed out, no change made — never a substitute for scores you can defend. Decisions are\ncompared by CLASS, so a `LOOP` result still closes.\n\n## A close judges a WAVE of blobs per pass — count the passes before you start\n\nThe per-blob pass judges up to `CLOSE_BLOBS_PER_WINDOW` blobs per close, CONCURRENTLY, inside one\nbounded window (the window stays below the MCP client ceiling and is never raised). Verdicts are keyed\nby blob CONTENT, so each further `end_change` continues from the cache instead of redoing work: a\na 15-file range is a handful of passes, not 15 sequential reviews. Design for that budget — a range\nwhose every file needs its own verdict costs passes in proportion to its file count, so prefer ONE\ncommit per close and fold unpushed docs commits rather than growing the range.\n\n**Measure the RATE before planning around it — it is far below the window cap.** Measured: **4 blobs\nper pass**, not `CLOSE_BLOBS_PER_WINDOW`, because each blob is a real reviewer call and the window\nbounds how many fit; a 34-file range cost 9 sequential `end_change` calls. So a wide mechanical edit\nspread across N tiny files costs roughly N\u002F4 closes — price that in BEFORE deciding to land it as one\nrange (fewer, larger files is the lever when the edit allows it), and read the repeated `N blob(s)\nstill carry no review verdict` as PROGRESS rather than a malfunction: verdicts are cached by blob\ncontent, so every call re-sends only what is left and the count strictly falls. Do not re-derive the\nmechanism or reach for another cycle when a close returns that line — call `end_change` again.\n\nWhen a pass hits its window, the blobs it could not read are FAILED and reported in `remaining` —\nnever credited — so re-calling `end_change` is the correct move, not a re-roll. Concurrency does not\nchange the window: elapsed time is the SLOWEST call, not the sum, which is why N calls fit where N\nsequential ones would not. And the window must be ENFORCED, not merely checked before the wave: each\ncall is awaited only until the deadline the pass was given, the pool is not waited on, and a worker\nonly CALLS the reviewer (every write happens in the pass, for outcomes it collected), so a straggler\nleaves no trace.\n\n**A blob the reviewer never ANSWERED is not a blob it refused — but the pass counts it as a failure.**\nWhen a pass reports `reviewer timed out on: N blob(s) — not judged, so not credited` and the SAME path\nis named on every retry, nothing is being cached: the reviewer answered for every other blob and\nproduced nothing for that one, so re-calling `end_change` re-sends the same call. Count the passes before concluding anything: the\ncap that stops a pass (`BLOB_REVIEW_MAX_CONSECUTIVE_FAILURES`) counts consecutive failures inside\nONE pass and resets on the next close, so a lone straggler IS retried on every pass — the cap is not\nwhat blocks it, the call simply never fits the window. Diagnose with a TIMED direct call to the same\nreviewer on the same material: 191 s on a 5 KB diff is an ANSWER, not a refusal, which makes the pass\nWINDOW the binding constraint. **Do not then infer the material's SIZE — measure it.** The per-blob\nmaterial is the blob's own bounded diff plus at most 6 sibling files \u002F 12 lines each \u002F 60 lines\ntotal, so the blob that never answers can be the SMALLEST file in the range (measured: 2.7 KB of\ndiff, the least of eleven files) while its neighbours answer inside the same window: the binding\nconstraint is the reviewer's per-call LATENCY against a window the operator's rule never raises, not\nthe bytes. Then check the budget it must fit inside: a `ADVERSARIAL_REVIEW_TIMEOUT` ABOVE the pass\nwindow can never return a verdict. What the gate DOES with that outcome is part of the diagnosis: a\nwindow-exhausted call (`TimeoutError`) is an ABSENT ANSWER, not the reviewer being down — it is\nreported unjudged (`failed` + `remaining`, never credited) without tripping the outage cap, so a slow\nsibling no longer abandons the blobs the pass had not reached, and the wave consults `fut.done()`\nbefore stamping a later future as expired, so a call that already ANSWERED is credited instead of\nbeing reported unanswered and re-bought on the next pass. The reading is that a timeout is neither a\nfinding nor a re-roll: record an ISSUE carrying the measurement, file the investigation as its own\ntask, and release the lock terminally — `force` is never the answer, and an instructed next step\nbelongs in a NEW cycle, not this one.\n\n## The adversarial review gate\n\nA COMPLEX change cannot close without a CLEAN verdict. Complexity is MEASURED from the\ndiff (≥50 lines, ≥3 files, or any always-review path such as `plugins\u002F`,\n`mcp-servers\u002F`, `ops\u002Fscripts\u002Ffleet-update.sh`, `pre-commit-score`) — never\nself-reported, and uncommitted work counts.\n\n**Independence is CONTEXT ISOLATION, not a different model.** The design\n(`docs\u002Fdesign\u002Findependent-adversarial-verifier.md`) defines it as: its own\nprocess seeing only the output, a fixed orchestrator-owned prompt the worker\ncannot edit, and an orchestrator-owned trigger the worker cannot invoke. (The\ngate's reviewer also happens to use a different model, but that is not what makes\nit independent — so never argue independence from the model name.)\n\n**Scope of that trigger claim (2026-10-30, operator directive):** the\norchestrator-owned trigger described above holds for the CLOSE-TIME reviewer\n(loop-gov-mcp.py `end_change`) — a code review gating the close. The\nPLAN-REVIEW-before-slice gate changed: Luke's directive (\"adversarial review\nmust NOT be orchestrator gated; automatic for the agent; a review before\nbuilding is always better\") made the plan-review RECORD worker-invocable — a\nworker runs `python3 ~\u002F.steadfaste-fleet\u002Fscripts\u002Fadversarial-review.py --cycle-id N\n--material-file \u003Cplan> --review --reviewer-id plan-\u003Cslug>` (sanctioned lock-free\nwrite). Independence there is the fixed prompt + distinct model + recorded\nreviewer_id, NOT who runs the script. The close-time reviewer is unchanged.\n\nThat design point also names the trap: a review the WORKER invokes, in the\nworker's own session, is a self-report — so the two mechanisms are distinct and\nthey are named accordingly, in the artifacts rather than only in the design doc:\n\n| Name | Path | Independent? |\n|---|---|---|\n| `self-adversarial review` | loop-gov-mcp.py `end_change`, complexity-gated | **No** — worker-invoked, in-session |\n| `plan review` | adversarial-review.py `--cycle-id N --review` \u002F `--re-review` (worker-invocable for the plan gate, 2026-10-30, per operator directive) | Fixed prompt + distinct model + recorded reviewer_id; recorded by the worker for their own cycle; the code-review equivalent of the sweep — applies only to the plan-review gate, never to a close. `--re-review` supersedes the current verdict into append-only `adversarial_reviews_history` — never DELETE rows |\n\nName a mechanism by the property that DISTINGUISHES it from its lookalike, and\npropagate that name into everything it emits (log lines, verdict text, doctor\nresult names) — not just the design doc. Two mechanisms sharing one name is how a\nlater session merges the wrong one: sharing the CODE is fine (share the policy,\nkeep one implementation), but process, prompt and trigger are what carry\nindependence, and a name that hides the difference invites breaking it.\n**Resolve the reviewer's MODEL in one place, and state what the tier does to it.** ONE\nresolution must feed both the caller and the recorder, so what RUNS and what is WRITTEN\nDOWN cannot diverge. The depth tier decides TRANSPORT and how long the gate waits — **never\nWHO JUDGES**: a cheap judge is a weaker judge, and the light tier is the CATCH-ALL (every\ncomplex change that is not an always-review surface or unusually large), so a cheaper model\nthere silently judges ORDINARY work, not merely risky work. A downgrade is therefore an\nexplicit operator decision recorded in the environment (`ADVERSARIAL_REVIEW_LIGHT_MODEL`),\nnever a default; if the cheap tier ever waves something through, move that CLASS back up\ninstead of trusting the tier more.\n**And make the judge READABLE, or the default cannot be checked.** Every recorded verdict\nmust name the model that produced it — the per-blob store ships the column and the writer\nalready accepts it, so a call site that passes neither leaves every row blank and a wrong\ndefault survives indefinitely, because no query can show what judged a blob. When you change\na reviewer default, verify it in the RECORD (a stored row naming the model), never in the\nconstant; and a blocking verdict's judge matters most of all, because that is the finding a\nworker has to contest.\n**Verify the WIRING, not the constant.** A helper that returns the cheap model proves\nnothing about what the gate RUNS. Assert through the DISPATCH, with the configured backend\nset to its DEFAULT, that a light change actually reaches the cheap model: a condition that\nalso required a non-default backend left the cheap path unreachable while every unit test\nstayed green, because the tests asserted the tier's VALUE and never that anything consumed\nit. A constant being right is not a feature being on.\n\n**The verdict is durable, and the reviewer is a SAMPLING model** — re-running it on\nbyte-identical material can return the OPPOSITE verdict, so the verdict is stored\nonce per cycle and pinned by a fingerprint of the ARTIFACT it judged —\nrepo state, audited range, the task's description, the diff stat, and the diff:\n\n- `end_change` honours a stored verdict whose fingerprint matches the current\n  artifact — CLEAN proceeds, FINDINGS blocks with the recorded findings.\n- Material that moved after a review is judged again, so a CLEAN cannot be carried\n  over a later, unreviewed change.\n- A stored verdict with NO fingerprint is not reused.\n- **The worker's NOTE is deliberately outside the key.** It still travels inside the\n  material (the reviewer is told to treat it as a self-report and check it against the\n  diff), but re-wording it does not re-open judgment of an unchanged diff: keying on\n  note+diff meant every retry bought a whole fresh review of the same artifact, which\n  was the largest recurring review cost. When the note itself is what changed, the\n  explicit re-judge is `rereview_change(force=True)`.\n\n### Working the findings\n\n- **Keep the closing note FACTUAL and minimal — no self-assessment.** State what\n  changed, the commits, the files, and the raw output. Do NOT narrate your own\n  corrections, add an \"honest limits\" section, or pre-empt the reviewer's concerns in\n  prose: a reviewer reads that as evaluation-shaped framing (`evaluation-awareness`)\n  and it looks like shaping the verdict rather than informing it. The diff and the\n  committed tests are the argument; the note is a caption. Honesty is not the issue —\n  presentation is, and a factual note is also simply shorter. The ONE exception is a\n  finding that demands a retraction: retract the claim in one line and state what IS\n  verified in its place. Do not re-argue a claim the material cannot support.\n  **Never explain the gate's OWN mechanics in the note — its character budget, a finding\n  id, or what a previous round said.** Describing how the material is assembled or judged,\n  instead of the change and its evidence, is graded `injection`\u002Fevaluation-awareness even\n  when every word of it is true, and it blocks the close at MEDIUM. State the change, the\n  commit count, the evidence path and the raw output; nothing about the review process.\n  **Never write a sentence addressed TO the reviewer** — \"if the reviewer judges this a\n  process finding, I will split future ones\" is graded as an injection attempt however\n transparent it is. A conditional promise, or your own classification of your own\n finding, belongs in neither the note nor the artifact.\n **Do not write the note in the REVIEWER's format.** Labelling your own paragraphs\n `ADV-\u003Ccycle>-N (severity) — …`, i.e. assigning yourself finding ids and severities, is\n graded `evaluation-awareness`: you are role-playing the reviewer on your own work\n instead of describing it. Write plainly — what changed, why, and the evidence path —\n and let the reviewer produce findings.\n- **A refusal whose findings are ALL `unverified-claim` is an evidence gap, not a code\n  defect — commit the artifacts and CLOSE AGAIN.** Every such finding is a true claim\n  whose output lived only on a screen (a test count, a live-run result, a proof about a\n  scratch resource, a fix for a defect the diff does not demonstrate). The remedy is to\n  commit, in the SAME range, the verbatim run output and a re-runnable capture — not to\n  edit code nothing found fault with, and not to rewrite the note. A refusal keeps the\n  lock, so the retry is `end_change` on the SAME cycle: the material changed, so it is\n  judged afresh. Do NOT open a fresh cycle for it — a new cycle's window is empty, its\n  review is skipped as `simple`, and it authorises a range nothing reviewed.\n- **Evidence about an EPHEMERAL resource is captured while it exists, or re-created.**\n  A scratch unit or temporary process is deleted once the proof is taken, and a reading\n  captured as it went away prints `MainPID=0 \u002F NRestarts=0` — a contradiction sitting\n  inside your own artifact. Re-run the proof and capture the reading live, and inline the\n  resource definition and its probe IN the artifact so any host can reproduce it. The\n  unit's JOURNAL survives the cleanup (`journalctl -u \u003Cunit>`), which is what makes the\n  capture durable rather than a claim.\n- **A pasted transcript is NOT accepted evidence, however true it is.** When the\n  load-bearing claim is a measurement (the suite is green, the doctor is clean), the\n  finding will be that nobody can re-run a transcript. Commit a RUNNABLE generator — a\n  script that reproduces the measurement, writes an artifact, and exits non-zero on\n  failure — and commit its ARTIFACT too, not just the script. One command must reproduce\n  the claim.\n- **Lead the artifact with its ASSERTIONS, not with its transcript.** The material bound\n  cuts the artifact too, so a transcript whose proof lines sit in the omitted middle is\n  unreviewable: the reviewer reports the claims as unevidenced while the output proving\n  them sits on disk. Emit `RESULT: \u003Cn>\u002F\u003Cn> assertions PASS, exit \u003Ccode>` first, then the\n  assertion lines verbatim, then the load-state evidence, and only then the verbose\n  transcript. Same discipline for the note — it does NOT share the diff's character budget: the\n  gate appends it verbatim AFTER the bounded diff (`_build_review_material`), so a long note never\n  crowds the evidence out. What it adds is UNBOUNDED claim surface, graded sentence by sentence —\n  so name the artifact, the revision and the assertion count, and stop. Terse because each extra\n  sentence is a fresh claim, not because of a budget. **Split the evidence when it is longer than a\n  screen**: one SMALL answers file — the grep line numbers that show the code, the PASS\n  lines, each `rc=` — beside the long transcript it points to, named so it sorts BEFORE that\n  transcript in the diff, because the material keeps the head and tail of a range and proof\n  sitting in the omitted middle is reported as absent however true it is. **\"Small\" is\n  arithmetic, not a feeling: the per-file share is the range's budget divided by its FILE\n  COUNT** (measured: ~11 files in one docs-only range => ~500-600 characters each, less than\n  this bullet). Size each evidence file to that share, and remember the bound applies to a\n  standalone checksum\u002Fproof file too — a hash carrier must sit INSIDE the artifact it pins,\n  because a checksum list arrives truncated and its claim is filed as unverified.\n  **Never answer a completeness finding by adding an artifact**: the range grows, every\n  file's share shrinks, and the new file becomes the next truncation target — the only\n  moves that help REDUCE the range (push earlier commits so `base` advances, collapse\n  unpushed docs commits, fold the proof into the commit whose claim it supports). A\n  `DECISIVE LINES ONLY` label is honest and still scores as a summary, because the demand\n  was for the complete output. Full mechanics: `references\u002Fadversarial-gate-material.md`,\n  \"Answering a completeness finding\".\n- **The artifact must name the revision it ran against, and be run against the FINAL\n  revision of the change.** A green artifact produced at an intermediate commit is\n  exactly the finding it was meant to answer: the reviewer reads the revision field and\n  asks for the run at the head of the change's commits. Generate it after the last code\n  commit — the artifact's own commit may follow, since it is documentation. **Deploy LAST\n  when the claim is deploy-sync.** A doctor capture taken between the commit and the\n  deploy reads `Deploy sync — HEAD ahead of last deploy` and lands as a FAILING artifact\n  beside a note claiming the tree matches: deploy first, capture, and remember the\n  artifact's own commit moves the tree again — the push gate runs the mandatory dogfood,\n  so deploy is the last step before the push rather than a step before the commit. **The named\n  revision must also CONTAIN the generator that produced the artifact**: an artifact whose\n  revision field predates the script it claims to come from is `fabrication` on its face,\n  and the reviewer is right to file it. And never claim the run happened at the commit\n  CARRYING the artifact — the file is generated and then committed, so by construction it\n  can never name its own carrying commit. Say which revision it ran at, and that the\n  generator is committed, so any reviewer can re-run it at HEAD.\n- **The audited range is every commit since the lock, it is TRUNCATED, and it shows\n  SUPERSEDED hunks.** The gate budgets roughly 12k characters of diff for a normal\n  range and several times that for a docs-only range, and it allocates that budget PER\n  FILE across the range — so a ten-file range gives each file ~1200 chars, less than the\n  diff of one 50-line script, and every file arrives as a sliver. **Measure a candidate\n  range before closing it** rather than estimating: `scripts\u002Fmeasure-review-material.py`\n  imports the gate's own bounder, names each file as `whole` or `CUT`, and exits 1 when\n  the range is over budget (3 = could not verify, never read as \"no truncation\"). When it\n  says CUT, split the change into PUSHED waves — the range is `base..HEAD` and `base` is\n  what the remote already has, so a wave only shrinks the range once it is pushed\n  (`references\u002Fadversarial-gate-material.md`, \"Two budgets\" and \"Delivering a change\n  larger than one range\"). Either way a large range\n  reaches the reviewer with its middle omitted — and a range holding SEVERAL commits\n  contains the earlier commits' hunks as well as the final ones. The reviewer then reads\n  an intermediate state and files `fabrication` against a claim that is true of the\n  final state (\"the test still ages mtimes\" — when the second commit deleted exactly\n  that). Two things prevent it: **keep the audited range to ONE commit** wherever the\n  work allows, and when it cannot be, **say the commit count out loud, name HEAD, and\n  quote `git show HEAD:\u003Cpath>` for the files under dispute** — the note is the material,\n  so the final state has to be readable from it. Do not paste or commit the whole diff\n  in response: a 100 KB range is what truncated in the first place, and committing it as\n  an artifact duplicates git history and lands in the next range.\n  - **When the reviewer's own reasoning is \"the last commit does not touch \u003Cfile>, so the\n    earlier hunk stands\", give it a commit that DOES touch the file.** A note quoting\n    `git show HEAD:\u003Cpath>` is not enough while the visible diff still ends on the\n    superseded hunk. Fold a REAL improvement to that file into one more commit (a\n    stronger assertion, a persistence check) so the final state is the last hunk the\n    material shows — then the finding's premise is gone rather than argued with.\n  - **Read the range's BASE off the material and claim nothing at or before it.** The\n    range arrives named `\u003Cbase>..\u003Chead>`, and `\u003Cbase>` — normally the tip already on the\n    remote — is a boundary, not a detail: a file you fixed and pushed in a PREVIOUS cycle\n    is at the base, outside the window, so claiming it reads as `fabrication` even though\n    the claim is true of history. Scope the claim with `git diff --stat \u003Cbase>..HEAD`,\n    and describe genuinely-earlier work as out of range in one clause rather than as\n    evidence. A clean tree, a green suite or a dogfood pass is context the reviewer\n    cannot check — omit it or mark it, never paste it beside a narrow diff as proof.\n  - **When the range is more than one commit, make the NEWEST one the evidence commit.**\n    The window keeps the HEAD and TAIL of the diff text and omits the middle, and\n    `git log -p` emits newest-first — so the newest commit's diff is the part that is\n    always readable, while an older large commit falls into the omitted middle.\n    Evidence folded into the big EARLIER commit is unreviewable by construction; a\n    small commit made LAST is visible. Point at the committed artifact for the full\n    run rather than pasting it.\n  - **Collapse UNPUSHED documentation commits before you close.** The artifact's own\n    commit may follow the code commit, but a range of three or more commits is what\n    truncates: fold the docs commit back with `git reset --soft \u003Clast-code-commit>` and\n    re-commit once. Do this ONLY for commits you have not pushed — do not rewrite\n    published history on a shared repo, and never force-push to make a range smaller.\n  - **A \"your material is truncated\" finding that quotes NO exact marker is a GATE bug, not a\n    long range — and half the cure is in the reviewer's PROMPT.** The gate already exempts\n    window-only findings from blocking, but it matches the gate's OWN disclosure wording\n    (`chars omitted`, `bounded:`); a reviewer saying the same thing in its own words (\"the diffs\n    are truncated by the gate budget\") matches nothing, blocks, and cannot be cleared by ANY edit —\n    the complaint is about the window, not the change. Diagnose before shortening the range:\n\n    ```bash\n    sqlite3 ~\u002F.steadfaste-fleet\u002Fdata\u002Floop-governance.db \\\n      \"SELECT findings_json FROM adversarial_reviews WHERE cycle_id=\u003CN>\"\n    ```\n\n    then run the gate's own predicate over the stored dicts (`_is_material_limit_finding`,\n    imported from the deployed `loop-gov-mcp.py`). A finding whose marker hits are EMPTY while a\n    sibling's are not is the paraphrase case. Fix BOTH halves: tolerant matching (pattern as well\n    as exact string, keeping the guards — the recommendation must still be about SEEING the\n    content, and fabrication\u002Finjection\u002Fswallowed-error are never exempt) AND a rule in the\n    reviewer prompt telling it to report a bound as ONE finding at `info`, quoting the marker\n    verbatim. The prompt is the durable half: a reviewer with no verdict class for \"I could not see\n    it\" reaches for a blocking severity instead, and the predicate can only catch the wording after\n    it has been written. Pin it with a test built from the REAL stored text — an invented wording\n    tests your guess about the reviewer's phrasing, not the one it uses. **A stored verdict is\n    evaluated by the RUNNING daemon's predicate**, so an already-refused cycle keeps refusing until\n    that daemon restarts: the fix is live for the next session, never retroactively.\n  - **Same finding, same superseded hunk, two retries = stop re-writing the note.** It\n    means the range is too long for the budget, not that your note lacked evidence.\n    Shorten the range (one commit per close where the work allows) instead of\n    re-rolling the reviewer — it samples, so a lucky CLEAN on unreadable material is\n    not a fix.\n- **A per-run artifact is OVERWRITTEN by the next run, so a FAILING run's evidence\n  disappears the moment a later run passes.** Keep an append-only ledger beside it: one\n  line per run carrying timestamp, revision, measured summary and failure count, so a\n  failure cannot be erased by time. If you already overwrote one, commit the captured\n  output as a file with a provenance header stating it is NOT regenerable and why — do\n  not silently lose it, and do not re-run to reconstruct it.\n- **Scrub the artifact at the SOURCE, not in the committed copy.** An evidence artifact\n  carries host paths — the interpreter's bin dir, the checkout path, whatever the tests\n  printed — and the leak detector flags `\u002Fhome\u002F\u003Cuser>\u002F…` in anything committed to a\n  shared repo. Put the scrub INSIDE the generator (one function replacing the home dir,\n  the checkout path and the python bin dir with placeholders, applied to every emitted\n  line): a hand-sanitised copy is republished the moment anyone re-runs the generator,\n  which is exactly what the artifact invites.  The same guard reads a long digit run as a\n  phone number and will refuse a repo write carrying raw PIDs— describe a process by its\n  ROLE (\"the reviewer child\", \"the cron worker's server\") rather than its pid. **An email address\n  in a fixture counts as personal data unless its domain is the reserved placeholder** — a test\n  helper writing `someone@some-invalid-host` is refused outright and the whole file write fails, so\n  use `example.com` (or drop the address) and keep the fixture's SHAPE rather than a plausible\n  address. A large NUMBER in\n  a test fixture trips the same guard, and the fix is not to weaken the fixture: build the value\n  arithmetically (`\"1\" + \"0\" * 12`) so no bare digit run exists in the source for the guard to read,\n  which keeps the assertion's strength while the write goes through.\n  It ALSO fires on a `\\d{4}[-.]\\d{4}}` digit-dash-digit shape anywhere the guard scans —\n  including evidence FILENAMES. A name like `cycle-4907-2026...txt` (four-digit-dash-four-digit) is\n  reads as a phone number and the write is refused until you rename to a letter-safe form.\n  Prefer evidence names that use the commit sha or a dated-word form (`fix-landing-2026-10-10.txt`),\n  and never embed the NNNN-YYYY pattern in a committed path or prose.\n- **The committed artifact's SCOPE must equal the claim's scope — the SUMMARY\n  included, not just the files.** A capture that ran ONE test file cannot\n  substantiate \"41 tests pass\" across two — the reviewer checks the arithmetic\n  and the gap is the finding. Regenerate the artifact to cover exactly what the\n  note asserts: the run, not a slice of it. The same rule bites the per-test\n  OUTPUT: a generator that keeps only the last N lines of each test's output\n  truncates the `PASS (N):` block, so a 13-test harness reaches the reviewer\n  showing 4 names while the note claims 13 — and it files `fabrication` against a\n  claim that is completely true. The finding is then WRONG about the code and\n  RIGHT about the evidence, which is the expensive shape: fix the generator, not\n  the note. Size the tail to hold the whole summary (these harnesses print it\n  last, so a generous tail suffices), and have it re-emitted in full.\n- **When the load-bearing value is a personal identifier, commit the SHAPE and\n  claim the shape.** An evidence artifact is a committed file, so a real chat id,\n  hostname or key has to be redacted to its pattern (`fleet-\u003Cagent>-\u003Cchat>`) — but a\n  redacted artifact sitting beside a note that asserts the exact value is its own\n  finding. Assert the property the reader CAN check from committed material (the\n  key is per-chat, distinct, stable) and drop the value they cannot.\n- **A guard that passes on the broken revision is not a guard.** Prove it\n  discriminates before citing it: run it against the PRE-FIX revision\n  (`git show \u003Cpre-fix-sha>:\u003Cpath>` into a temp tree) and assert it FAILS there,\n  then record both directions in the evidence. A guard only ever run against the\n  fixed revision is a happy path with a name.\n  **The RUNNER behind a test claim needs the same treatment**: a generator that reports a\n  passing suite must be shown exiting NON-ZERO when the suite fails (point it at a target that\n  cannot exist, or at a deliberately broken copy) — otherwise the artifact proves the tests pass\n  today, not that the runner would notice tomorrow. Two ways that runner lies anyway: it exits with\n  the status of its LAST command (an `echo` printed after the probe returns 0 even when the probe\n  failed — capture the probe's own status immediately, before any other command, and `exit` that\n  value), and it never RAN at all because the interpreter it picked cannot import the test\n  framework. Select the interpreter that can run the probe, and refuse loudly (`COULD NOT VERIFY`,\n  non-zero) when it cannot — an artifact whose header names an interpreter that produced \"no module\n  named …\" is a transcript of nothing. Run that probe from the same directory as\n  the real invocation: a probe that fails because the project is missing proves nothing about the\n  suite. **An UNEXERCISED branch is the same finding in another shape** — a fallback the change\n  claims to handle with no execution behind it — and the fix is a committed test that drives the\n  branch with the dependency STUBBED, extracting the block by stable markers so the test fails if\n  the logic is edited away (recipe: `shell-scripting` → \"Testing a Script Block in Isolation\").\n- **When a finding says \"you claim X but the diff doesn't show it\", add the CHECK.**\n  The fix is not a paragraph of justification: make the tool verify X, then commit a\n  test that drives it in BOTH directions — a healthy input passes, and one thing broken\n  fails with the right remediation. That converts an argued claim into a checkable one\n  (and is reusable by every host, unlike a pasted transcript).\n- **FINDINGS → fix, then `rereview_change` with a NEW note.** An unchanged note is\n  refused: re-review exists to re-judge a FIXED change, not to re-roll a verdict.\n  Re-calling `end_change` on UNCHANGED material replays the stored verdict word-for-word\n  and says so (\"already recorded for exactly this material\") — that message means the\n  MATERIAL has to change, not the note: commit the artifact the finding asked for FIRST,\n  then call `rereview_change`. Re-submitting the same material a third time is not a\n  re-roll, it is a wasted cycle.\n  A refused cycle whose findings are a FALSE POSITIVE is cleared by the same move and needs NO code\n  change: re-review with a note carrying the measurement that refutes each one (a grep count at HEAD,\n  a line number, the covering test's name and its measured output). Measured in one session: an\n  `end_change` on unchanged material replays the stored verdict verbatim, while `rereview_change`\n  with the refutation re-judges at cycle level and returns CLEAN — twice, on the same cycle. Note the\n  asymmetry before you reach for an edit: a finding that is WRONG about the code but RIGHT about the\n  evidence is fixed by committing the evidence, and only a finding that is right about the code is\n  fixed by editing it. Editing working code purely to unblock a refuted finding is the habit this\n  avoids — the diff then carries a change nobody asked for and the note has to explain it.\n  **A CLEAN re-review does NOT mean the close will pass.** `rereview_change` re-judges at CYCLE level\n  (the `adversarial_reviews` row) while `end_change` then runs the PER-BLOB pass, whose verdicts are\n  keyed to blob content. Measured: a CLEAN `rereview_change` was followed immediately by an\n  `end_change` refusal on per-blob findings — expected, not a malfunction. Do not re-run the\n  re-review: change the blob (a new blob is judged fresh) or take the terminal exit.\n  **If `rereview_change` is not in the running daemon** (it answers `Unknown tool:`\n  because the MCP server predates the deploy — see Pitfalls), the recovery is the\n  same end state by the ordinary path: re-issue `feedback_accept` with the evidence\n  note (the verdict is fingerprinted on the material, so a NEW note is judged\n  afresh) and call `end_change` again. Do not re-explain in prose; add the output.\n  That fallback holds only while the cycle is still PENDING. Once the cycle has been\n  ACCEPTED — `feedback_accept` already returned MOVE_ON — a second `feedback_accept` is\n  refused with `No PENDING cycle found for task '\u003Ctask>' in this session`, which reads like\n  a lost lock and is neither: the cycle is scored, and `rereview_change` is the ONLY path\n  back, whatever the note. Do not score twice; re-review once with the new note.\n- **Put the evidence where the reviewer can SEE it — the note IS the material.**\n  The reviewer reads the note and the diff and cannot re-run a terminal, so a\n  load-bearing claim with no output behind it in the material is graded\n  `fabrication` no matter how true it is. Preferred: commit the proof as a runnable\n  test. When the fact cannot be committed — a doctor summary, a queue drain, a\n  delivery receipt, a process listing — PASTE the real output into the note (a short\n  transcript of the actual lines, not a restatement of them), and say plainly which\n  claims remain unverifiable and why. Saying \"no receipt is available for a bot's own\n  sent messages\" beats both silence and an inference dressed as an observation.\n- **\"Unverifiable\" is not \"fabricated\".** The reviewer cannot see a worker's terminal\n  by construction, so a true claim whose output existed only on a screen is an\n  evidence GAP; a fabrication finding has to name a contradiction the material\n  actually shows. Answer it with a committed test that reproduces the behaviour,\n  never with a re-explanation in prose.\n- **When a finding charges you with another agent's change,** check authorship before\n  editing anything: `git log --format='%h %an \u003C%ae>' \u003Cbase>..HEAD`. A lock window\n  spans whatever a pull or rebase brought in, so a peer's commits can sit in your\n  diff. Name YOUR OWN shas in the re-review note (the material states authorship, so\n  the reviewer can check them against git) and re-review — do not \"fix\" a peer's\n  change to appease a finding aimed at the wrong worker.\n  **Authorship ALONE cannot separate two sessions, and the close now scopes to the session.**\n  One host has ONE git identity, so a PEER SESSION's commits satisfy the author filter and their\n  diffs land in the material, the Diff stat and the tier — the shape where a close is refused on\n  a file you cannot see in `git status --short` and cannot fix. The discriminator is a\n  `FLEET-Session: \u003Cid>` commit trailer, written by the `prepare-commit-msg` hook from the LIVE\n  lock; commits carrying a DIFFERENT session's trailer leave the material and appear instead as\n  `[OTHER SESSIONS' COMMITS … DISCLOSED, NOT REVIEWED]` (names, subjects and changed paths —\n  never their diff). It is fail-CLOSED by construction: no trailer (a cron, or a session with no\n  lock), an ambiguous trailer, an empty own session id, or a git error leaves the commit IN\n  scope. So when a peer's file is still being reviewed, check the trailer before re-arguing\n  authorship — `git log --format='%h %s %(trailers:key=FLEET-Session,valueonly)' \u003Cbase>..HEAD` —\n  and never hand-write a trailer: the hook REPLACES whatever is there with the live lock's id,\n  and a body carrying two different trailers reads as ambiguous and is deliberately not excluded.\n  **Check the trailer VALUES, not just their presence — identical ids are not \"a different session\".**\n  Two live locks matching ONE repo means the hook cannot know which session is committing, so a hook\n  that PICKS one of them stamps every commit with that same id: the consumer's \"different session\"\n  filter goes inert and each session can read the other's commits as its own — a wrong attribution,\n  strictly worse than no trailer. A hook must therefore stamp only when EXACTLY ONE live lock matches\n  the repo, and write NOTHING when zero or several do (the window then fails closed). Read the range\n  before re-arguing authorship:\n  `git log --format='%h %s%(trailers:key=FLEET-Session,valueonly)' \u003Cbase>..HEAD` — when every commit\n  carries the SAME id across two sessions, no consumer or prompt change can separate them and the fix\n  is structural: stop sharing a lock namespace (one worktree per session,\n  `concurrent-session-isolation`). Never \"clean the range\" by stashing or reverting the peer's files:\n  committed files stay in the range regardless, and uncommitted ones are the other session's live work.\n  A lock whose `repo_path` is recorded in a different FORM than `git rev-parse --show-toplevel`\n  returns (a `\u002Fprivate\u002F...` vs `\u002FUsers\u002F...` checkout on macOS, or a symlinked checkout) matches\n  nothing, so the hook stamps NOTHING and every commit reads as untagged — compare `os.path.realpath`\n  on BOTH sides, and diagnose a silent no-stamp by diffing the lock's `repo_path` against the tree's\n  toplevel before touching the consumer.\n\n  **ONE lock is enough for the same symptom: a peer session that holds NO lock for the repo gets\n  stamped with YOURS.** Lock files are unique per SESSION (`.governance-\u003Csid>.json`), but the write\n  gate is per REPO — \"this repo has a lock\" is satisfied by anyone's — so a second session can\n  commit in the tree without ever calling `begin_change`. The hook then finds exactly ONE matching\n  lock, stamps that id on every commit, and the consumer's \"is it a different session?\" test passes\n  for both sessions' work at once. Diagnose from the lock inventory before re-arguing authorship:\n\n  ```bash\n  ls -1 \u003Cstate>\u002F.governance-*.json\n  grep -H -e '\"repo_path\"' -e '\"session_id\"' \u003Cstate>\u002F.governance-*.json\n  ```\n\n  Two locks for DIFFERENT repos means the hook faces no ambiguity — so an all-commits-one-id range\n  whose id belongs to the repo's single lock is the caller being judged on an ungoverned\n  neighbour's work, not a hook choosing badly. Fix shape, N-safe: stamp a commit only for the SINGLE\n  claimant whose lock was refreshed recently — the server rewrites the lock on every governed call,\n  so its mtime IS that session's last activity — and write NO trailer when zero or several claimants\n  are equally fresh. Never \"pick the matching lock\": an ABSENT trailer keeps the commit in scope for\n  everyone (fail-closed, visible), while a WRONG one silently credits it to one session and makes\n  the peer's files yours to answer for.\n\n  **The per-blob DEMAND is the whole UNPUSHED range — scope it to the session that WROTE each blob.**\n  The demand list is built from `push-base..HEAD`, so in a shared repo it asks you for a verdict on\n  a neighbour's committed files: a close refused on work you never touched, fixable only by editing\n  someone else's files or by an override. Scope it the way the diff's material is scoped — walk the\n  range NEWEST-FIRST, attribute each path to the commit that produced its CURRENT content, and leave\n  out the paths whose author is another session. The receipt then covers only your own blobs, so the\n  push gate still refuses that range until the OWNER of the work closes it: that is the honest\n  resolution, not \"review the neighbour's work for them\". Fail-closed as everywhere else — no own\n  session id, no trailer, or an ambiguous trailer ⇒ the path STAYS demanded.\n- **A fix that was merely REQUIRED to keep the tree green reads as `scope-drift` if it\n  rides in the same range.** When the change forced a side-fix (a generated file had to be\n  regenerated, a red suite had to go green), keep it in its OWN commit and state in one\n  line why the change required it. An unexplained unrelated commit in the audited range is\n  graded `scope-drift` at MEDIUM and blocks the close.\n- **A note cannot fix a DESCRIPTION that does not match the diff.** `begin_change`'s\n  description is frozen for the life of the cycle and the reviewer compares it against\n  the range: a description promising an artifact \"unchanged from what they staged\" beside\n  a diff that edits it is `scope-drift` at MEDIUM, and re-reviewing with a better note\n  cannot resolve it because the contradiction IS the description. Retiring the cycle does\n  not release the lock either — a cancelled task's `end_change` still runs the reviewer on\n  the current material — so the exits are an operator decision or the TTL. When the work\n  is going to exceed what the description promised, say so in the description UP FRONT\n  (\"land X, plus the minimum hardening the gate requires\") instead of discovering the\n  surplus under review.\n- **Keep execution claims out of the COMMIT MESSAGE — it is material too.** A message\n  line beginning `Verified here before landing: …` produced a HIGH `unverified-claim`\n  finding while the note beside it was clean. Describe what the commit DOES and point at\n  the committed artifact that proves it (`git show \u003Csha>:\u003Cpath>`); the recorded run\n  belongs in that artifact. See `references\u002Fadversarial-gate-material.md`, \"The commit\n  message is material too\".\n  **Write it about the PROBLEM, not about the review.** Naming a finding id, quoting what a\n  previous round said, or phrasing the message as an answer to the reviewer (\"a reviewer reading a\n  truncated diff could not see the test\") is graded `evaluation-awareness` however accurate it is —\n  the same rule that governs the note. State what was wrong and what the commit does about it; the\n  reviewer can see its own findings and does not need them narrated back.\n- **A `fabrication` finding can be about the MATERIAL, not about you.** The gate\n  builds the material's \"Diff stat\" from the complexity MEASUREMENT while it builds the\n  diff BODY from the cycle's COMMITS, and the measurement deliberately also counts your\n  own uncommitted work. When the checkout is dirty — a peer's files, or an earlier\n  task's WIP sitting in a shared tree — the stat names paths whose diff the material\n  never shows, and the reviewer reads N files beside an unchanged HEAD as a\n  contradiction. It IS one; nothing you wrote is false, and no rewrite of the note\n  fixes it. Diagnose before reworking the change: compare\n  `git diff --name-only \u003Cbase>..HEAD` (what the stat should count) with\n  `git status --porcelain` (what it did). The durable fix lives in the gate — build\n  the stat from the same range as the diff body, and DISCLOSE a counted working-tree\n  path the material cannot show as out of scope rather than naming it; failing that,\n  COMMIT the work so the two agree.\n- **A quoted PASS line without its warning count reads as a clean system — record the\n  exit code and the COUNTS.** A borderless artifact can say genuinely true things and still\n  mislead by omission: a dogfood\u002Fdoctor transcript showing `DOGFOOD PASSED` while omitting\n  `11 warn` and the unresolved drift block beside it, or a section tail with no `rc=`, is\n  judged (correctly) as a swallowed error — the reader cannot tell a clean run from a\n  noisy one. Every captured run carries its `rc=` AND its summary counts\n  (pass\u002Fwarn\u002Ffail). **When the run is genuinely NOT clean, say so with the numbers** and\n  state the decision — \"doctor rc=2, 14 warnings, the drift is pre-existing and recorded\n  as issue N; this cycle's claim is the narrower one verify-landed proves\" — because a\n  narrowed, measured claim survives review where an implied clean bill does not. Record\n  the re-run commands with their EXPECTED non-clean results so a later reader measures\n  instead of trusting a PASS line.\n- **Answer a false finding with a measurement, not with prose.** Findings can be\n  wrong. State the measurement that refutes one and leave the code alone rather than\n  \"fixing\" a non-defect.\n  **Refute it empirically, then remove the ambiguity that invited it.** Prove the refutation\n  with a command whose output is self-evident before asserting anything — for a claim about\n  shell statuses, `false | tail` followed by `${PIPESTATUS[@]}` shows index 0 belongs to the\n  LEFT command, which turns \"you misread it\" into a measurement. Then, where a CORRECT line is\n  what a reader misread, make it undeniable anyway: capture the status on its own line instead\n  of inside a pipeline (identical behaviour, nothing left to argue about), because a gate nobody\n  trusts is a gate nobody uses. Leave the code strictly alone only when no reasonable reading\n  of it was wrong.\n  **The corrective commit is the worst case: the diff SHOWS the text it removed.** A\n  commit that deletes a mistake (a traceback pasted into an artifact, a wrong claim)\n  reaches the reviewer as `- \u003Cthat text>`, and a finding can then assert the artifact\n  \"still shows\" it — the removed lines are the evidence it cites. The same shape hides\n  the GOOD news: a commit that leaves a section untouched contributes no lines, so a\n  capture sitting in an unchanged section reads as absent (\"contains the re-run command\n  but not the captured output\"). Before rewriting anything, measure at HEAD:\n  `grep -c '\u003Cflagged string>' \u003Cartifact>` (0 matches refutes the finding) and\n  `grep -n '\u003Cexpected evidence>' \u003Cartifact>` (line numbers prove what IS there). Put\n  those two numbers in the re-review note — a count and a line number, not an argument —\n  and change the code only if the grep agrees with the reviewer.\n  **Two such findings in a row, both refuted by grep at HEAD, means stop rewriting**: the\n  range is being read through its hunks rather than its content (see the superseded-hunk\n  rule above). Record the refutation, record the issue, and let the lock reach TTL —\n  re-rolling the note cannot fix a material-assembly problem, and the precedent for an\n  ops-only cycle trapped this way is an explicit recorded issue, never `force=True`.\n- **Copy every referenced filename EXACTLY — a one-character typo in a note-referenced\n  path is graded `fabrication`(HIGH).** The reviewer diffs the note's path against the\n  actual `diff --git` header, so `fix-landing-…` typed as `filland-…` anywhere in the note\n  (even describing a verifier you ran) is a self-inflicted contradiction. Copy the path\n  verbatim from `git status`\u002F`git diff --name-only` (or from read_file's resolved_path);do\n  not retype it from memory. A fabrication finding about YOUR OWN typo is the\n  ritual,not right about the code;ang it costs a full re-review round.{\n\n## Verifying the gate actually RAN — a pass is not evidence of a review\n\nA close that succeeds may mean the review passed, or that the review never ran.\nOnly the gate's own log separates those, and the gate writes **two** places:\n\n- **`~\u002F.steadfaste-fleet\u002Flogs\u002Floop-governance.log`** — the fleet-owned record\n  (bounded: rotates at 5 MB, 3 backups). **Read this one first**: it is ours, it\n  sits with the other fleet logs, and it does not depend on Hermes's rotation.\n- `~\u002F.hermes\u002Flogs\u002Fmcp-stderr.log` — stderr, captured by the harness. Useful for\n  live debugging, and it interleaves every gateway-spawned server, so prefer the\n  fleet log when asking \"what did the gate decide\".\n\n| Line | What actually happened |\n|---|---|\n| `self-adversarial review: cycle N simple (L lines, F files) — skip` | The change was BELOW the complexity threshold. No reviewer, no triage, no findings. A clean close here says **nothing** about review quality. |\n| `self-adversarial review: cycle N stored \u003Cverdict> but all LOW (n) — not blocking` | A review ran and every finding was classified administrative and lowered, so it annotated instead of blocking. |\n| `adversarial review: cycle N CLEAN` | The review RAN and PASSED. Note the wording: the pass line can arrive **without** the `self-` prefix, so a grep for `self-adversarial review:` alone returns zero hits on a review that ran. |\n| findings listed with severities | MEDIUM+ findings blocked the close. |\n\n**A refusal naming the reviewer UNAVAILABLE is an ENVIRONMENT fault, not a finding** —\nusually the reviewer's own credential (auth error). It is the gate correctly refusing to\nship unreviewed, so fix the credential path instead of reworking the change:\n`references\u002Freviewer-transport.md` has the probe that discriminates (an authenticated\ncall — a public catalog endpoint returns 200 for a revoked key and wastes the cycle) and\nthe resolution order to check.\n\nCheap check before claiming \"the gate passed\": search **both** logs (the fleet log AND\n`~\u002F.hermes\u002Flogs\u002Fmcp-stderr.log`) for the CYCLE ID and for **both** wordings —\n`adversarial review: cycle` (the verdict\u002Fpass line) and `self-adversarial review: cycle`\n(the skip\u002Fannotate lines) — plus `triage:`. A zero-hit grep on ONE wording is not\nevidence the review never ran: the emitted names differ by path and by the daemon's\ncode version, so search the ID, not the phrase you expect. The triage layer also logs\n`triage: judgement status=…` and `reviewer severities stand` when the judge is\nunreachable — silence there means triage never ran, not that it approved.\n\n**A skipped review is silent by design**, so the log is the only evidence. Never\nreport a gate as \"passed adversarial review\" without it.\n\n**A clean close is not evidence that the evidence SHIPPED.** The gate closes on the\ncycle and does not push for you, and a push can fail transiently while another session\nlands a commit in the same window (`failed to push some refs` after a fetch\u002Frebase). So a\nclose whose note cites a commit that never reached the remote is a self-report with extra\nsteps — the whole point of committing the proof was that someone else can inspect it.\nAfter closing, read the remote back:\n\n```bash\ngit log --oneline origin\u002Fmain..HEAD | wc -l      # must be 0 when you are done\n```\n\nVerify against `origin` (after a `git fetch`), never against the branch you think you\npushed. A push that failed is cheap to fix — fetch, confirm the local commit is a\nfast-forward over `origin\u002Fmain`, push — but only if you check, and the failure is silent\nbecause the commit itself succeeded locally and the tree looks clean.\n\n### Push order: PUSH BEFORE `end_change`, because the push gate needs the lock\n\nThe pre-push hook requires an ACTIVE lock — it refuses with *\"the lock file must exist at\n`~\u002F.steadfaste-fleet\u002Fstate\u002F.governance-*.json`\"*. `end_change` RELEASES that lock, so closing\nfirst strands the push and you need a fresh cycle just to publish work that is already\nreviewed. The operator's standing preference — **review precedes push** — lands the same\norder from the other side:\n\n```text\nwork → commit → review CLEAN → push (lock still held) → end_change\n```\n\nDo not treat \"push then close\" as the natural sequence. It is the shape that produces the\npush-then-review complaint, because the review is the CLOSE step and therefore lands after\nthe push by construction. Review first, push second, close last. If you have already closed,\nthat is not a dead end: the close WROTE the receipt, and the receipt alone authorises the\npush (check for `state\u002F.reviewed-\u003Cslug>-\u003Ctip>.json`). Take a fresh lock naming the original\ncycle only when the close said it could not write a receipt.\n\n**A range touching an always-review path needs the review RECEIPT before it may push**\n(the gate checks both): the push is also refused with *\"this range touches an\nalways-review path and carries no clean review receipt — close the cycle, then push\"*.\n`core\u002Fgovernance\u002F` (e.g. `loop_evaluator.py`) is one of those paths alongside `plugins\u002F`,\n`mcp-servers\u002F`, `fleet-update.sh` and `pre-commit-score`. The receipt is WRITTEN BY the\nreview, and the review runs inside the close — so on such a range the workable order is:\n\n```text\nwork → commit → close the review CLEAN (rereview_change while the lock is still held)\n     → push (lock still held) → end_change\n```\n\n**Closing FIRST is a supported order: the CLOSE writes the receipt — the close IS the\nauthorisation event.** `end_change` runs the review and writes the range's receipt (step 3c)\nBEFORE it releases the lock, so `commit → end_change (CLEAN) → push` works, and the push then\nprints `No active governance lock, but a CLEAN review receipt covers this range`. Closing first\nstrands a push only when the close itself REPORTS that it wrote no receipt\n(`⚠️ Review receipt NOT written — \u003Creason>`); that is the state that needs a carrier\n`begin_change`. So let the steps decide: close once the review is your last step, and push once\nthe receipt proves the range — never reorder because \"push must precede close\".\n**A commit made AFTER a close is NOT covered by that receipt.** The receipt is bound to the range\n(`base..HEAD`) it was minted for, so one more commit — including a docs or evidence commit, and\nincluding one the pre-commit hook itself created — leaves the tip unauthorised and the push gate\nanswers `this range touches an always-review path and carries no clean review receipt`, naming the\nexpected receipt path. That is not a lock problem: close AGAIN (a new cycle whose description says it\nauthorises the new tip, or `end_change` while the lock is still held) so the receipt names the current\nHEAD, then push. Batch the evidence commit INTO the reviewed range where the work allows, because the\nrange's per-file material share shrinks with every added file.\n\n**DEPLOY BEFORE the close whenever the range touches a deploy-synced file.** The pre-push doctor compares DEPLOYED state with repo source and fails the push on drift (`Checksum: \u003Cfile>`) until `fleet-dogfood.sh --force` has run — and that deploy is write-class, so it needs the very repo lock `end_change` RELEASES. Close first and the deploy is refused (`GOVERNANCE LOCK REQUIRED`), leaving a second, EMPTY cycle taken purely to hold a lock for a range already reviewed. So the order is:\n\n```text\ncommit → dogfood (lock still held) → end_change (CLEAN, receipt written) → push (receipt)\n```\n\nReach for a carrier cycle (`begin_change` whose DESCRIPTION says plainly that it is deploy-only and changes no source) only when the close itself reported it wrote no receipt, or when the deploy became necessary only AFTER the close (a peer's commit moved the deployed file). The carrier cycle is not an override — say in its description that it changes nothing, close it with the deploy's measured result, and expect `Review receipt NOT written — range … lists no files` when the range was already pushed; that warning is benign there.\n\n**Issue the push ALONE — a compound or piped push is refused by shape, not by lock.** The gate\nanswers any unprovable shape (compound, pipe, redirection, background job, separator around\n`git push`) with `GOVERNANCE LOCK REQUIRED` and its own instruction to *\"issue the push ALONE as\nits own command, with nothing after it (no `&& git rev-parse`, no `| tail`)\"* — even when a valid\nCLEAN receipt is sitting there. Read that as a SHAPE rule: re-taking a lock to \"fix\" it is wrong.\nRun `git push` as the entire command and inspect the result in a separate call.\n**A pipe or a trailing `; echo` is the same refusal, and the wrong repair is a carrier cycle.** The\nhabit to break: `git push origin main 2>&1 | tail -3; echo \"rc=$?\"` reads as write-class, so it is\nrefused for want of a lock — and taking a fresh cycle to \"get the lock for the push\" costs a whole\ncycle when the refusal was about SHAPE. A range already covered by a CLEAN receipt pushes with NO\nlock at all (it answers `No active governance lock, but a CLEAN review receipt covers this range`).\nSo try the BARE push first: if it refuses, read WHICH thing it named — a shape\u002Fsubprocess complaint\nmeans re-issue it alone, a missing receipt means close again, and only then is a carrier cycle the\nanswer.\n\n**Without a lock, READ intent is blocked too when the command is COMPOUND.** The same gate judges\nSHAPE: `echo hi; ls` is write-class, a `python3 -c` one-liner carrying `$()` or a newline is\nwrite-class, and `ls | grep foo` is not. **A metacharacter inside a QUOTED pattern counts too:**\n`grep -rln \"verify_slice\\|task_verify\" --include=*.py .` is refused as a compound however safe the\nquoting looks, because the classifier reads the shape, not the quoting. So when a search spans several\nalternatives or file types, use `search_files` (lock-free, and it groups matches by file) instead of\nre-quoting the pattern — and take `read_file` for one file. Never take a lock merely to inspect. So right after a close releases the lock, the tree looks\nunreadable as well as unwritable — use ONE pipeline of read primitives (`git log --oneline -3`,\n`git diff --numstat \u003Cbase>..HEAD | sort -k1 -n -r`), or the file tools (`read_file`,\n`search_files`), which stay lock-free. Never take a lock merely to inspect: the lock's lifetime is\nthe change's, and a carrier cycle exists to PUBLISH, not to read.\n\n### Verify an artifact is TRACKED before claiming it is committed\n\n`git add -A` does NOT mean the file was added: an ignore rule silently skips it, the commit\nsucceeds with a clean-looking message, and the reviewer — who sees only the diff —\ncorrectly files `fabrication` against a claim naming an artifact that IS on disk but is NOT\nin the commit. Confirmed the expensive way: an evidence log named `*.log` was skipped by\n`.gitignore`, so the note asserting it had been committed was simply false.\n\n```bash\ngit diff --cached --name-only                  # before committing\ngit ls-tree --name-only HEAD \u003Cartifact-dir>    # what the reviewer can actually see\n```\n\nThen let the repo's EXISTING convention choose the extension: artifacts already committed\nas `.txt` mean the ignored `.log` was the wrong filename, not a missing ignore rule.\n\n## Pitfalls\n\n- **A fix to the close-out path is not live until the MCP daemon restarts.** The\n  loop-governance MCP server is a LONG-LIVED process that loads\n  `~\u002F.steadfaste-fleet\u002Ftools\u002Floop-governance\u002Floop-gov-mcp.py` once — the same\n  \"deploy ≠ load\" trap as the gateway holding the old enforcer. The CLI\n  (`ops\u002Fscripts\u002Floop-gov.py`) imports the server module fresh on every call, so it\n  runs the repo code right now: use it to verify a close-out fix without waiting.\n  The decisive symptom: calling a tool that IS in the deployed file returns\n  `Unknown tool: \u003Cname>` from the running process. That means the daemon predates\n  the deploy — not that the tool is missing — so a restart is the whole fix, and\n  until then every newly deployed tool (e.g. `rereview_change`) is unavailable even\n  though it is present in the deployed path. Restarting the GATEWAY from inside a\n  session is blocked by design, but you rarely need to: kill the SERVER's own child\n  (`ps -eo pid,ppid,args --no-headers | grep '\u003Cserver>.py'`, then `kill \u003Cpid>`) and the\n  gateway respawns it on the next call. Confirm a NEW pid appeared before trusting the\n  reload, and expect the first call after the kill to answer *\"lost its stdio subprocess\n  … the operation may have completed\"* — that is the restart, not a failure. Re-issue a\n  read-only call (e.g. `check_lock`) to confirm the fresh process serves, then continue.\n  **So kill the child BEFORE you tell the operator a restart is needed.** \"Deployed but not loaded\"\n  is a condition you can clear yourself on this host — handing back \"please restart the gateway\"\n  when the respawn path exists leaves a reviewed fix inert for a whole session, and the next\n  session reads the same stale behaviour and re-diagnoses it from scratch. Verify by comparing the\n  child's start time against the deployed file's mtime (see the deploy-≠-load evidence block), then\n  respawn and state the new state.\n- **The CLI is a subprocess with no harness session.** Run from a plain shell it finds\n  no session and answers `No active governance lock`. Pass `session_id` explicitly in\n  the payload — the documented priority-0 override.\n- **One session's close can wedge the SHARED loop-gov server for every other session.**\n  ONE server process serves every session of its parent, and handlers used to run\n  inline on the event loop, so a single `end_change` blocked the server from answering\n  ANYONE while its adversarial reviewer ran for minutes — peer sessions then hit the\n  300 s MCP client ceiling on *every* call, so a session could not close its own cycle\n  because somebody else's close held the process (2026-10-06: the daemon was found\n  wedged in `poll_schedule_timeout` with the reviewer child still running). Symptoms\n  are exactly \"governance is broken\": every tool times out at ~300–420 s, `check_lock`\n  lies, and closing your OWN cycle is impossible. Distinguish it from a refused close\n  (findings) and from a lost lock (TTL): if *unrelated* calls also hang, the server is\n  wedged, not your cycle. The fix is `asyncio.to_thread(handler, args)` plus an\n  `RLock` around the shared-state primitives — deployed, but not LIVE until the daemon\n  restarts (see the daemon pitfall above), so a wedge can persist after the fix lands.\n- **A reviewer timeout at or above the client ceiling is a hang, not a wait.** The MCP\n  client gives up at 300 s, so `ADVERSARIAL_REVIEW_TIMEOUT=420` never returns a\n  verdict — the caller observes nothing and the close is neither confirmed nor refused,\n  and the lock stays held. Reviewer budgets must be clamped BELOW the client ceiling\n  (`REVIEWER_TIMEOUT_CEILING = 240`); prefer a short fail-closed refusal over an\n  unobservable hang.\n- **A reasoning reviewer needs an output budget that clears its THINKING, not its answer.**\n  A small `max_tokens` is not a tighter leash on a reasoning model: it spends the whole budget\n  on reasoning and emits EMPTY content with `finish_reason='length'`, which the gate reads as\n  \"reviewer unavailable\" and uses to refuse an otherwise valid close — a false negative, the one\n  failure mode this gate must never have (measured: the SAME prompt needed ~9000 completion\n  tokens on a long brief, ~1800 on a short one, and returned nothing at 900). Size the cap\n  against the reasoning, treat `length`-with-empty-content as a BUDGET failure and retry once at\n  a larger budget, and never fold it into the unavailable-reviewer message: one means \"ask again\n  with more room\", the other means the reviewer is down.\n  **Keep the cap a KNOB, not a constant.** Read it per call from the fleet `.env`\n  (`REVIEWER_MAX_TOKENS`) rather than as an import-time constant: a close blocked by a starved\n  reviewer must be clearable by setting one variable, because the alternative — a code change plus a\n  daemon restart — is not a knob anyone can turn at the moment the close is stuck. Validate the\n  override and fall back LOUDLY on junk, so a typo in the value cannot silently reinstate the cap.\n  **Bound it at BOTH ends.** A knob with no CEILING passes a typo straight to the provider, so a\n  value three orders of magnitude too large is a bill rather than a fix: clamp to a documented\n  ceiling (the largest context the reviewer's providers accept) and log the clamp as loudly as the\n  fallback. \"Validated rather than trusted\" is true only once the absurd value is rejected too.\n- **`end_change` must REFUSE on a degenerate reviewer return, never trace back — and the guard\n  belongs at the REPLY, not only inside the parse.** A reply of `None` (a reasoning model with no\n  output budget left hands back a null `content` field) has crashed the close in two shapes as the\n  code moved around it: `text.find(\"{\")` on `None`, and — once the parse was guarded — the review\n  row's own slice of the raw reply (`reviewer_text[:2000] + …`) with\n  `'NoneType' object is not subscriptable`. Either way the cycle stays PENDING with its lock HELD,\n  every retry crashes identically, and the session can neither close nor start. So guard the reply\n  ONCE, at the gate, BEFORE the parse and before every consumer of the raw text: one predicate on\n  \"is this a non-empty string\" that a silent reply fails. Put that check on the TRANSPORT side as\n  well: the helper that performs the call must RAISE on a null\u002Fempty reply instead of returning it,\n  since its own contract says it returns text. A gate-only guard protects the one caller that\n  remembered to check — a sibling consumer of the same helper, added later, crashes on its first\n  slice of the reply. Fix both layers, and carry the provider's own reason (`finish_reason`, the\n  effective cap) in the raised message so a starved budget is distinguishable from an outage.\n  **The naive fix is a BYPASS, not a fix.** Defaulting the text to `\"\"` lets an empty reply parse to\n  `FINDINGS` with an EMPTY findings list — which is the \"only LOW severity\" path, so it annotates\n  and lets the close THROUGH. A reviewer answering with silence would then PASS the gate. Silence is\n  an unavailable reviewer: REFUSE, and say which it was.\n  Already stuck that way, the exit is NOT `force=True`: `advance_task_state(\u003Ctask_id>,\n  new_state=\"cancelled\")` on the live session releases the lock — **a terminal task holds\n  nothing** — which is the sanctioned terminal release for a close that cannot complete.\n- **One lock per logical change.** `begin_change`'s description is fixed for the life\n  of the cycle and must NEVER be hand-edited (that is fabricated governance state).\n  The reviewer diffs the window from the lock's `started_at`, so stacking a second\n  unrelated change under one lock leaves the description not matching the diff: the\n  reviewer flags it, `rereview_change` cannot resolve it, and the cycle is unclosable.\n  Nothing clears such a cycle FOR you — there is no cycle-clearing capability anywhere,\n  for an orchestrator or anyone else (`reclaim_dead_locks` refuses a LIVE owner: its\n  predicate is the staleness rule the TTL purge uses). The owner releases the lock with\n  a terminal transition, or the TTL reaps it.\n\n  The way this happens in practice is a NEW concern arriving mid-cycle — a peer\n  reporting a bug in the code you just shipped, a fleet breakage, a follow-up you\n  notice while verifying. Fixing it immediately is exactly the trap: the description\n  was frozen when the lock was taken and the reviewer diffs from `started_at`, so the\n  the added change reads as the description not matching the diff. Score and `end_change`\n    the current cycle FIRST, then `begin_change` the new one — your own bug is not an\n    exception.\n\n    The lock is SESSION-SCOPED (one `.governance-\u003Csession>.json` per session), so\n    `begin_change` hard-REFUSES while any lock is held — *\"A governance session is\n    already active … Call end_change first, or use force=True\"* — and a refused close\n    keeps that lock for its full TTL. That leaves exactly three exits: fix and\n    re-review, release the lock yourself with a terminal transition\n    (`advance_task_state(task_id=…, new_state=\"cancelled\", reason=…)` — a terminal task\n    holds nothing, and the cycle being already scored leaves no lockless PENDING leak),\n    or let the TTL reap it. No orchestrator can do it for you: nothing in the system\n    clears a live owner's cycle.\n    `force=True` releases the held cycle to make room, so it is an override, not a\n    convenience — never take it to get past your own refusal.\n\n    **That holds when the FIX ITSELF needs the lock.** Diagnosing the gate from inside the stuck\n    session reads like the exception (\"I only need a lock to repair what is blocking me\") and it is\n    not one: an override to unblock your own repair is still an override. Land what the session can\n    still close, give the operator the ONE action that clears the stuck cycle (a daemon restart, or\n    an orchestrator clearing it), and let the next session's daemon pick the fix up — a day's delay\n    on a gate repair is cheaper than normalising `force`. If you do take it, report it as an\n    override in the same breath as the fix, never as procedure.\n\n- **A timed-out `end_change` may have SUCCEEDED — do not report it as a failure.** The\n    call can hit the MCP client's ~300 s ceiling while the reviewer is still working.\n    Retrying then answers `No governance session active. Nothing to release.` — the same\n    wording as an expired TTL, which reads like a lost close. Confirm from the gate's own\n    record before saying either way: `grep '\u003Ccycle id>' ~\u002F.steadfaste-fleet\u002Flogs\u002Floop-governance.log`\n    showing `\u003C…> review: cycle N CLEAN` plus the cycle's stored decision means the close\n    landed and the lock was released.\n\n    **A close can also fail because the LOCK EXPIRED, not because it was refused.** The\n    session TTL (one hour) is shorter than a long verification tail — deploying, waiting\n    on a suite, re-running it after a finding. `end_change` then answers `No governance\n    session active. Nothing to release.` while the cycle itself is already scored, so\n    nothing is blocked and no doctor FAIL appears: only the lock is gone, and the\n    remaining commit or push still needs one. Take a fresh lock for the leftover work\n    (`begin_change` with a description saying it finishes that commit), close it, and\n    name the original cycle in the note so the history stays legible. Score the cycle\n    BEFORE any long verification step and this never happens.\n\n    **A refusal blocks the LOCK RELEASE, not the work.** The cycle is already scored, so\n    there is no unscored-cycle gate, no doctor FAIL and no blocked push — the entire\n    cost is the held lock plus the findings on record, and the lock expires on its TTL.\n    Say that plainly instead of reaching for `force=True` to \"unblock\" work that was\n    never blocked.\n\n    A refusal is RECORDED ON THE LOCK (`close_refused`: cycle, verdict, blocking count,\n    finding ids, time) and a pre-commit advisory\n    (`governance-refused-close-advisory.sh`) prints it at the moment new work is\n    committed under it. Advisory only, always exit 0 — a blocking version could deadlock\n    an agent whose close is legitimately stuck, which is a worse failure than the one it\n    prevents. EVERY refusal path marks the lock: a MEDIUM+ verdict, a stored FINDINGS\n    verdict, an UNREACHABLE reviewer, and a missing reviewer prompt template. If a\n    refusal shows no marker, the daemon is running code that predates the marker —\n    restart and re-check; do not conclude the refusal was harmless.\n- **A close that hangs may be a WEDGED SERVER, not your cycle.** MCP servers are\n  spawned per PARENT process (one gateway owns one `loop-gov-mcp.py`), so a session\n  blocked inside `end_change`'s reviewer freezes the server for every session that\n  parent serves — including yours, which then cannot close its OWN already-scored\n  cycle. Do not rework the cycle and do not reach for `force=True`: prove the block\n  first (`ps -eo pid,wchan:22,args | grep loop-gov-mcp`; `poll_schedule_timeout`\n  means blocked in a `subprocess.run` on a reviewer child, `do_epoll_wait` means the\n  server is healthy and the cause is elsewhere). Full probe and the off-loop rule:\n  `concurrent-session-isolation` → \"A wedged shared MCP server\". The governance\n  STATE is already per-session; only the transport is shared.\n- **A cycle that will not close no matter what you change may be reviewing the WRONG\n  REPO.** A lock carries BOTH `repo_slug` (a NAME) and `repo_path` (an absolute path),\n  and `_adversarial_review_gate` resolves the tree it diffs from the lock's **`repo_path`**\n  (falling back to `HOME\u002F\u003Crepo_slug>` only for locks predating that field). When the two\n  describe DIFFERENT repos, the gate diffs a tree that cannot contain your work: the\n  reviewer returns FINDINGS every time, the close is refused forever, and each\n  `end_change` retry spawns another full review.\n\n  **The mixing is the defect, and it is diagnosable.** `_derive_repo_path` accepts the\n  enforcer's observed absolute path, but a slug resolver that validates the injected slug\n  only as `HOME\u002F\u003Cslug>` — which fails for any checkout nested deeper than a HOME child —\n  SKIPS it and falls back to the host-canonical repo. The lock then lands with a canonical\n  slug beside an observed path (observed: `repo_slug: \"steadfaste-fleet\"` + `repo_path:\n  \"~\u002F.hermes\u002Fhermes-agent\"`). The fix, when you own the resolver, is to derive the slug\n  FROM the same accepted path — one resolution, one repo — never a canonical slug beside an\n  observed path. A session repo-hint that merely DRIFTED (it records whichever repo the\n  session last touched a path in, so it can name one you are no longer working in) is the\n  is the same symptom from a different cause.\n\n    **A harness with NO identity injector at all is the third cause, and it hits EVERY\n    non-Hermes caller** (pi, Claude Code, Codex CLI): Hermes injects the session's repo through\n    the enforcer plugin, but a harness that merely spawns the MCP server injects nothing — so a\n    resolver that falls through to the host-canonical repo tags a PROJECT-repo session as the\n    shared fleet checkout. The close gate then refuses with *\"the lock's repo cannot contain\n    this session's work\"*, there is no injector to repair it, and every `end_change` retry\n    re-runs the whole review; in practice the OPERATOR deletes\n    `~\u002F.steadfaste-fleet\u002Fstate\u002F.governance-\u003Csession>.json` by hand. The rule: resolve the repo from\n    the CALLER's own evidence — an explicit env hint (`FLEET_SESSION_REPO`) first, else the MCP\n    child's cwd — and keep the Hermes path excluded from that fallback so an injected identity\n    still wins. Test the matrix both ways: a project-repo caller resolves its OWN tree, and a\n    Hermes caller is never re-tagged from the shared daemon's cwd.\n\n  **The tell is a finding that says the diff does not show your change while your own\n  `git log` plainly shows it** — including the extreme form where the material's\n  `Full diff:` is EMPTY or its file\u002Fline count matches a PEER's commit rather than yours.\n  Check the lock BEFORE reworking anything:\n\n  ```bash\n  python3 -c \"import glob,json;print([(json.load(open(p)).get('repo_slug'),json.load(open(p)).get('repo_path')) for p in glob.glob('$HOME\u002F.steadfaste-fleet\u002Fstate\u002F.governance-*.json')])\"\n  ```\n\n  Disagreeing values, or a `repo_path` that is not the tree you edited (`git rev-parse\n  --show-toplevel`), mean no rewrite of the note can fix it. Also available as a\n  guard read: the review refuses when the lock's repo holds none of YOUR commits in the\n  window — but a guard keyed on \"the lock's repo shows nothing\" is DEFEATED by a single\n  unrelated commit there (a peer's, a pipeline's), which is exactly how a wrong-repo\n  close gets as far as permanent findings. Key such a guard on AUTHORSHIP (does the\n  lock's repo hold any commit this session authored), never on an empty change count.\n- **The wrong-repo refusal is the MCP guard; the CORRECT tagging is the enforcer plugin — separate lifetimes, so seeing the NEW refusal text does NOT mean the injection is loaded.** The refusal you get on a wrong-repo close comes from `loop-gov-mcp.py`, which is spawned FRESH per call and therefore always runs current code. The thing that tags the lock with the session's real repo (`_inject_session_context` \u002F `_note_session_repo` in `plugins\u002Fgovernance-enforcer\u002F__init__.py`) is a PLUGIN loaded ONCE into the long-lived gateway process (`PluginManager.discover_and_load` at process start). So a host with current code on disk and current guard text can STILL produce an old `steadfaste-fleet`-tagged lock — the running gateway holds the pre-injection enforcer. The guard even says it: \"once that is deployed AND the gateway has reloaded it\". The fix for the affected host (dev macOS = Titus) is NOT another deploy; it is reloading the gateway so the enforcer rebuilds: `hermes gateway restart` (macOS launchctl; Linux systemd `hermes gateway restart`). There is also a hot control-socket verb `reload-plugins` (gateway\u002Frun_plugin_rewire.py) that rebuilds plugins WITHOUT a process restart — prefer it for a minimal blast radius. Do not keep re-deploying files; reload the loaded plugin.\n- **A wrong-repo lock could leave DEBRIS in the other repo, and that debris blocked the\n  push.** A mis-tagged lock wrote its secondary marker to\n  `\u003Crepo_path>\u002F.steadfaste-fleet\u002F.governance-lock`, dropping governance state into a repo it\n  did not govern — including the upstream Hermes checkout, which the pre-push dogfood gate\n  then fails on (`Fleet must not edit ~\u002F.hermes\u002Fhermes-agent`), blocking a push for a\n  change that is otherwise fine.\n\n  **The durable fix is that the marker is GONE: locks are runtime-only. Removing the\n  resolver bug alone was the wrong fix — a marker that can authorise against a repo the\n  session never touched is a liability, not a safety net.** `_secondary_lock_path` now\n  returns `None` on BOTH sides (the MCP server and the enforcer plugin), so nothing may\n  write governance state inside a repository; `plugins\u002Fgovernance-enforcer\u002FREADME.md`\n  documents the phase as removed. Both git hooks were unaffected either way — they scan\n  `~\u002F.steadfaste-fleet\u002Fstate\u002F.governance-*.json` directly — so dropping it cost no\n  enforcement. If you DO find stray debris, it predates the drop or the daemon still\n  holds pre-drop code (see the daemon pitfall: the reload is the fix, and until it\n  restarts a fresh `begin_change` can re-create the marker). Clearing it is DESTRUCTIVE\n  and needs operator consent, and you may not be able to clear it yourself — the enforcer\n  scopes your lock to the LOCK's repo, not the one holding the debris — so back it up,\n  report the exact path and command, and stop rather than routing around enforcement.\n\n  **Report it and take a fresh lock; do not fight it.** Re-pointing lock identity is a\n  fleet-wide change, not a local workaround. Note a long verification tail can outlive the\n  1-hour session TTL, so the lock may be GONE by the time you get here (see the expired-lock\n  pitfall) — take a new one for the leftover work and name the original cycle in its note.\n\n- **`rereview_change` requires an ACTIVE lock, so a mid-task deploy can strand the\n  documented FINDINGS → fix → rereview path.** It answers `Cannot re-review: No active\n  governance lock` once the lock FILE is gone — and re-taking a lock is itself refused\n  while the session is still live (\"a governance session is already active … call\n  end_change first\"). That three-way state (no lock file, live session, refused rereview)\n  has exactly one exit: `end_change(\u003Ctask_id>)` on the live session, which judges the\n  CURRENT material. Commit the artifact the finding asked for FIRST — that is the only\n  thing that makes the next verdict differ — then close; do not hunt for a way to re-take\n  the lock.\n- **The task state machine is not fully connected, so a parked cycle needs a two-step\n  resume.** `blocked` transitions only to `cancelled` or `planning`; `blocked →\n  executing` is refused with `Invalid transition: 'blocked' → 'executing'. Allowed:\n  cancelled, planning`. Step `blocked → planning → executing` before closing, or the\n  close refuses for a state reason that has nothing to do with the change.\n- **Score before you investigate.** A cycle left PENDING with no live lock is a doctor\n  FAIL that blocks every push, so scoring an orphaned cycle is the first move, not the\n  last.\n- **A cycle you opened and then did NOT work in still has to be closed.** When an\n  approval times out, the operator redirects, or you stand down mid-task, the cycle is\n  left PENDING and blocks the next push. Close it with `unscored_reason` stating that\n  nothing happened and why (\"cycle opened to restart the daemon; approval timed out,\n  no change made\") — an explicit unscored close is an accurate record, while walking\n  away from the cycle is a leak. Do not leave it for the reaper, and do not let the\n  abandoned cycle stop you from reporting which half of the work is still pending.\n- **A cycle whose work is NOT a repo commit cannot close — score it, then let the lock\n  lapse.** A pull+update, a service enable, an env\u002Fconfig change, a bus dispatch: the\n  window is the commits in the lock's repo, so a cycle that authored NONE draws the\n  wrong-repo refusal (*\"no commits in the window\"* → *\"the lock's repo cannot contain\n  this session's work\"*) however correct the lock and however real the work. There is\n  no fix to reach for: do NOT `force`, do NOT retry `end_change` in a loop, and never\n  author a throwaway commit to manufacture a window the work does not have. Run\n  `feedback_accept` anyway — a scored `MOVE_ON` cycle is not PENDING, so no doctor FAIL\n  lingers — then let the 1-hour TTL reap the lock. The work itself is finished and\n  verified; report the refusal as an administrative artifact, not a failure. (The\n  inverse trap is the guard's own weakness: it keys on an EMPTY change count, so a\n  single unrelated peer\u002Fpipeline commit in the lock's repo makes it pass — such a guard\n  must key on AUTHORSHIP, see the wrong-repo section.)\n- **Every tool that WRITES a lock must resolve the repo the way `begin_change` does — audit the\n  ones that create work FOR you.** A lock with no `repo_path`\u002F`repo_slug` yields a cycle that can\n  never close: `end_change` refuses with *\"no governed repo to measure complexity — self-adversarial\n  review cannot run\"*, and there is no diff to judge, so no retry can ever satisfy it. Found on the\n  promote path: turning a recorded issue into a tracked task wrote exactly such a lock, leaving an\n  unclosable cycle AND a repo write-blocked for the rest of the TTL. Two habits: read the lock FILE\n  (`grep repo_path ~\u002F.steadfaste-fleet\u002Fstate\u002F.governance-*.json`) after ANY tool other than\n  `begin_change` creates a cycle, not just after a suspicious refusal; and expect the STATE MACHINE\n  to be the exit rather than `end_change` — from `executing`, `advance_task_state(new_state=\"blocked\")`\n  is accepted and records the real reason, so the cycle stops being an unexplained PENDING one.\n  That does NOT release the file: `blocked` is NON-terminal (as is `planning`), so the lock persists\n  and keeps write-blocking the repo — and the TTL you would be waiting for does not arrive while the\n  same session keeps working, because every write-class call refreshes the lock's heartbeat. Use the\n  TERMINAL transition instead: `advance_task_state(new_state=\"cancelled\", reason=...)` reports *\"a\n  terminal task holds nothing\"* and releases the file immediately, because `_release_lock` does not\n  consult repo identity. `cancelled` is reachable straight from `executing`, so there is no need to\n  park a cycle you cannot close — parking it is how a stuck cycle becomes a stuck repo.\n- **A tool that RENAMES the lock's task must create that task's cycle FIRST — and fail\n  closed if it cannot.** An interruption suspends the parent and rewrites the lock's\n  `task_id` to `\u003Cparent>_subN`; with no cycle created for the new id, the session holds a\n  LIVE lock that nothing can score: `end_change` refuses (*\"no governance cycle found for\n  this task\"*), `begin_change` refuses (*\"a governance session is already active … use\n  force=True\"*), `feedback_accept` finds no PENDING cycle, and `resume_from_interrupt`\n  answers *\"No active governance lock\"* while the lock file is live. The instruction inside\n  the first refusal — that a cycle *\"must be created via any write tool under this lock\"* —\n  is FALSE as shipped: writes made under that lock create nothing, because cycles come from\n  `begin_change`. The only exit the system names is the override the operator rejects, so an\n  operator-directed interruption could be neither closed, superseded, nor resumed. Two\n  durable rules: (1) ONE shared create path, called by every entry point that starts a task,\n  ordered BEFORE the lock is written so a failed write cannot leave a task with no scorable\n  cycle; (2) if the cycle cannot be created, REFUSE the operation rather than half-create it\n  — a refused interruption costs a retry, a lock with no scorable cycle costs the session.\n  Diagnose the state from the lock's own `task_id` and query cycles for THAT id, not for the\n  session.\n- **`check_lock` can say `active: false` while `begin_change` refuses with \"a governance\n  session is already active\".** They read different things — the session\u002Flock registry vs\n  the lock file — so a lock the reaper has already reaped, or a session whose TTL has not\n  expired, makes them disagree. Trust the REFUSAL: it names the held `task_id`, its\n  `started_at` and the session id. The exits are `end_change(\u003Cthat task_id>)` or the TTL;\n  it is never a reason to reach for `force=True`, which releases someone else's cycle to\n  make room for yours.\n- **Probe the schema before you commit a query as evidence.** The governance DB's tables\n  are NOT named after their contents: cycles live in `loop_cycles`, and recorded issues\n  are rows in `task_events` (`id, timestamp, task_id, agent, event_type, from_state,\n  to_state, detail`) — there is no `events` table, and guessing one both fails and, when\n  the guess is committed into an artifact, publishes a traceback where proof was claimed.\n  One `SELECT name FROM sqlite_master WHERE type='table'` first; a query you intend to\n  quote belongs in an artifact only after it has returned a row.\n- **Test a verdict-recording helper BOTH ways.** One exercised only by re-recording an\n  existing row never runs its insert path — assert the first record into an EMPTY\n  cycle too, or the insert half can be silently broken while the suite is green.\n- **A test that models the lock WINDOW must open the window BEFORE creating the work.**\n  The gate measures the commits since `lock.started_at`, so a self-test that commits\n  first and computes the timestamp afterwards places its own fixture OUTSIDE the window\n  and fails for a reason that has nothing to do with the code under test. Capture the\n  window start, THEN create the work. Also point sandbox repos at an empty\n  `core.hooksPath`: otherwise the host's global git hooks fire on every fixture commit\n  and add seconds of latency between the two, which can push the work out of a narrow\n  window by itself. (Compare the window as EPOCH seconds, never `git log --since=` —\n  see `concurrent-session-isolation`.)\n\nSee `references\u002Fclose-loop-grind.md` for the full mechanics of driving a large\npush range through the `end_change` blob-close wave loop to a minted receipt:\nbudgeting the ~90-wave grind, the documentary-straggler refusals, why a\nsubagent cannot grind it, and refreshing re-review material every round.\n",{"name":5,"author":24,"license":15,"version":25,"category":26,"metadata":27,"platforms":38,"description":7},"Steadfaste Fleet curator","1.0.0","devops",{"hermes":28},{"tags":29,"related_skills":35},[30,31,32,33,34],"governance","loop-governance","adversarial-review","lock","close-out",[31,36,37],"governance-lock-lifecycle","two-hard-rules",[39,40],"linux","macos","main","9dc0e92c5fa81d4db5292b205716e8ea0c00d10e","skills\u002Fdevops\u002Fgovernance-closeout",1,"https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet","steadfaste.com","https:\u002F\u002Fgithub.com\u002Flukemcqueen","AI Architect | Building Hermes Cortex: governed multi-agent AI for autonomous software engineering | Enterprise Tech Consultant","2026-11-14 22:33:34",{"source":8,"skillName":5,"commands":51,"prompt":61,"zipAvailable":62},[52,55,58],{"tool":53,"command":54},"npx","npx skills add lukemcqueen\u002Fsteadfaste-fleet --skill governance-closeout",{"tool":56,"command":57},"bunx","bunx skills add lukemcqueen\u002Fsteadfaste-fleet --skill governance-closeout",{"tool":59,"command":60},"pnpm","pnpm dlx skills add lukemcqueen\u002Fsteadfaste-fleet --skill governance-closeout","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet\u002Fblob\u002Fmain\u002Fskills\u002Fdevops\u002Fgovernance-closeout\u002FSKILL.md",true,[64,70,74,78,82,86,90,94,98,102,108],{"path":65,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":68,"sourceHtmlUrl":69},"references\u002Fadversarial-gate-material.md","REFERENCE","参考文档",11127,"https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet\u002Fblob\u002Fmain\u002Fskills\u002Fdevops\u002Fgovernance-closeout\u002Freferences\u002Fadversarial-gate-material.md",{"path":71,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":72,"sourceHtmlUrl":73},"references\u002Fclose-gate-budgeted-passes.md",2264,"https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet\u002Fblob\u002Fmain\u002Fskills\u002Fdevops\u002Fgovernance-closeout\u002Freferences\u002Fclose-gate-budgeted-passes.md",{"path":75,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":76,"sourceHtmlUrl":77},"references\u002Fclose-loop-grind.md",2660,"https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet\u002Fblob\u002Fmain\u002Fskills\u002Fdevops\u002Fgovernance-closeout\u002Freferences\u002Fclose-loop-grind.md",{"path":79,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":80,"sourceHtmlUrl":81},"references\u002Fmechanical-sweep-regressions.md",3566,"https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet\u002Fblob\u002Fmain\u002Fskills\u002Fdevops\u002Fgovernance-closeout\u002Freferences\u002Fmechanical-sweep-regressions.md",{"path":83,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":84,"sourceHtmlUrl":85},"references\u002Freviewer-policy-scoping.md",7923,"https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet\u002Fblob\u002Fmain\u002Fskills\u002Fdevops\u002Fgovernance-closeout\u002Freferences\u002Freviewer-policy-scoping.md",{"path":87,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":88,"sourceHtmlUrl":89},"references\u002Freviewer-policy-two-windows.md",5421,"https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet\u002Fblob\u002Fmain\u002Fskills\u002Fdevops\u002Fgovernance-closeout\u002Freferences\u002Freviewer-policy-two-windows.md",{"path":91,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":92,"sourceHtmlUrl":93},"references\u002Freviewer-transport.md",12987,"https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet\u002Fblob\u002Fmain\u002Fskills\u002Fdevops\u002Fgovernance-closeout\u002Freferences\u002Freviewer-transport.md",{"path":95,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":96,"sourceHtmlUrl":97},"references\u002Fverdict-store-diagnostics.md",5662,"https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet\u002Fblob\u002Fmain\u002Fskills\u002Fdevops\u002Fgovernance-closeout\u002Freferences\u002Fverdict-store-diagnostics.md",{"path":99,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":100,"sourceHtmlUrl":101},"references\u002Fwide-range-close-grind.md",3156,"https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet\u002Fblob\u002Fmain\u002Fskills\u002Fdevops\u002Fgovernance-closeout\u002Freferences\u002Fwide-range-close-grind.md",{"path":103,"resourceType":104,"resourceTypeDesc":105,"sizeBytes":106,"sourceHtmlUrl":107},"scripts\u002Fmeasure-review-material.py","SCRIPT","脚本",5523,"https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet\u002Fblob\u002Fmain\u002Fskills\u002Fdevops\u002Fgovernance-closeout\u002Fscripts\u002Fmeasure-review-material.py",{"path":109,"resourceType":104,"resourceTypeDesc":105,"sizeBytes":110,"sourceHtmlUrl":111},"templates\u002Freviewer-policy-guard.py",2541,"https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet\u002Fblob\u002Fmain\u002Fskills\u002Fdevops\u002Fgovernance-closeout\u002Ftemplates\u002Freviewer-policy-guard.py",[113,121,128,135,142,149],{"skillNo":114,"name":115,"nameZh":6,"description":116,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":117,"categories":118,"keywords":119,"publishedAt":120},"01M7DXY4G8NSVB59K8B6S2AQNP","macbook-linux-maintenance","Legacy MacBook Linux fixes: GPU wedge, reboot hang, thermal.","https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet\u002Fblob\u002Fmain\u002Fskills\u002Fdevops\u002Fmacbook-linux-maintenance\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":122,"name":123,"nameZh":6,"description":124,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":125,"categories":126,"keywords":127,"publishedAt":120},"01M7DXXYJCXFJ3TGB84ZQ8KFE6","governance-regression-triage","Triage a host's governance issues: what changed.","https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet\u002Fblob\u002Fmain\u002Fskills\u002Fdevops\u002Fgovernance-regression-triage\u002FSKILL.md",[],[],{"skillNo":129,"name":130,"nameZh":6,"description":131,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":132,"categories":133,"keywords":134,"publishedAt":120},"01M7DXXSAP1G8FDRJAMXQGBBMK","enforcement-immutability","Use when enforcement files lose their immutable flag.","https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet\u002Fblob\u002Fmain\u002Fskills\u002Fdevops\u002Fenforcement-immutability\u002FSKILL.md",[],[],{"skillNo":136,"name":137,"nameZh":6,"description":138,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":139,"categories":140,"keywords":141,"publishedAt":120},"01M78SSDQVRYX64Y16X32TC0NS","steadfaste-fleet-repo-deploy","Use when committing to the steadfaste-fleet repo.","https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet\u002Fblob\u002Fmain\u002Fskills\u002Fdevops\u002Fsteadfaste-fleet-repo-deploy\u002FSKILL.md",[],[],{"skillNo":143,"name":144,"nameZh":6,"description":145,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":146,"categories":147,"keywords":148,"publishedAt":120},"01M78SS928F3R2RJAYVW4E30CE","steadfaste-fleet-maintenance","Maintain an installed Steadfaste Fleet instance — update both the upstream Hermes Agent and the fleet repo layer, merge diverged histories, sync skills safely, and troubleshoot common issues. Covers the dual-update workflow (hermes update + fleet-update.sh), encrypted brain data backup, mycortex import, and recovery techniques.","https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet\u002Fblob\u002Fmain\u002Fskills\u002Fdevops\u002Fsteadfaste-fleet-maintenance\u002FSKILL.md",[],[],{"skillNo":150,"name":151,"nameZh":6,"description":152,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":153,"categories":154,"keywords":155,"publishedAt":120},"01M78SP1CHW0T0BWE5ZT6JBPX8","fleet-preflight","DEPRECATED alias — merged into survey-before-action (2026-08-20). Load survey-before-action instead; its \"Repo-Specific Pre-Flight\" section covers git search, Hermes boundary, and deployment verification.","https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet\u002Fblob\u002Fmain\u002Fskills\u002Fdevops\u002Ffleet-preflight\u002FSKILL.md",[],[]]