[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M758GP370DGT2D5FMW3DQK8Y":3,"skill-same:01M758GP370DGT2D5FMW3DQK8Y":80},{"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":43,"commitSha":44,"skillDirectory":45,"forksCount":46,"repositoryHtmlUrl":47,"repositoryHomepageUrl":48,"ownerHtmlUrl":49,"ownerBlogUrl":6,"ownerDescription":50,"updatedAt":51,"install":52,"resources":65},"01M758GP370DGT2D5FMW3DQK8Y","shared-repo-push-gates",null,"Shared-repo push blocked? Know the gates that block you.","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\u002Fshared-repo-push-gates\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: shared-repo-push-gates\ndescription: \"Shared-repo push blocked? Know the gates that block you.\"\nversion: 1.2.0\nauthor: Steadfaste Fleet (Esther)\nlicense: MIT\nplatforms: [linux, macos]\nmetadata:\n  hermes:\n    tags: [git, push, governance, dogfood, concurrent, pii, enforcement]\n    related_skills: [change-checklist, survey-before-action, git-deployment-workflow]\n---\n\n# Shared-Repo Push Gates\n\n## Two gates that block AFTER a clean close — each names its own remedy\n\n**A rebase invalidates the receipt.** The receipt binds tip+base, so any history rewrite\n(`git pull --rebase`, an amend) moves both and the gate answers \"no clean review receipt for THIS\nrange\". Re-close the cycle after the rebase: per-blob verdicts are keyed by CONTENT, so they survive\nand only the blobs the rebase brought in need judging. An index conflict (`docs\u002F*INDEX*`) is usually\ntwo sides adding rows — resolve to the UNION, then `GIT_EDITOR=true git rebase --continue`.\n\n**The deploy-sync check runs before the push.** `Deploy sync ❌` with several `Checksum: \u003Cfile>`\nlines means the deployed tree is behind the repo — typical after a rebase pulled in a peer's edits.\nThe gate prints its own remedy (`bash ~\u002F.steadfaste-fleet\u002Fscripts\u002Ffleet-dogfood.sh --force`); run it,\nnever hand-copy files into the deploy tree.\n\n**ORDER: close, then push BARE — do not open a cycle to \"hold the lock\" while you push.**\n`end_change` releases the lock and a CLEAN receipt bound to the tip authorises the push on its own,\nso the bare `git push` right after the close is the normal order and usually succeeds with no lock\nat all. Open a publish cycle only if that bare push actually REFUSES, and then diagnose the RANGE\nbefore assuming the missing lock is the cause — a cycle opened on the assumption costs a cycle plus\na close, and its own close answers `No review receipt — HEAD is already origin\u002Fmain … nothing to\npush`, which is the tell that the push had already gone through on the receipt alone. Full rule and\nthe carve-out's own output line are under *A lock is required to `git push`* below.\n\n**A stale MCP daemon answers closes with OLD rules.** Compare its start time against the deployed\nmodule's mtime:\n\n    ps -o lstart= -p $(pgrep -f tools\u002Floop-governance\u002Floop-gov-mcp.py)\n    stat -c %y ~\u002F.steadfaste-fleet\u002Ftools\u002Floop-governance\u002Floop-gov-mcp.py 2>\u002Fdev\u002Fnull \\\n      || stat -f '%Sm' ~\u002F.steadfaste-fleet\u002Ftools\u002Floop-governance\u002Floop-gov-mcp.py   # GNU, else BSD\n\nA daemon started BEFORE your deploy keeps refusing on rules you have already fixed, and the refusal\nreads as authoritative. Only a gateway restart replaces it, and you cannot restart the gateway from\ninside it. `ops\u002Fscripts\u002Floop-gov.py` is NOT a substitute: it resolves its own session id and answers\n\"No governance session active\".\n\nThe shared fleet repo enforces commit\u002Fpush gates. Know how they behave\nBEFORE pushing — most rejections are environmental (another session's\nworking tree), not a problem with your diff.\n\n## When to Use\n\n- Any git commit\u002Fpush in `~\u002Fsteadfaste-fleet` (the shared fleet repo)\n- A push or commit was rejected and the cause isn't obvious\n- Writing docs or scripts to the shared surface (repo or `~\u002F.hermes\u002Fskills`)\n\n## The Gates (verified behavior, 2026-08-24; review-receipt gate added 2026-10-07)\n\n**Review receipt gate.** A push whose range touches an always-review path needs\na CLEAN review receipt for THAT range (tip AND base must match). Ordinary commits\nare exempt. The receipt is written automatically when a cycle closes\nsuccessfully — including a cycle that changed no code (its review is skipped as\n\"simple\", but the close still writes the receipt). Every new commit moves the tip\nand invalidates the receipt, so push immediately after closing. Full detail:\n`docs\u002Freview-receipt-gate.md`.\n\n- **Read the receipt's BASE off the file — it is the PUSH range's base,\n  `git merge-base origin\u002Fmain HEAD`, not the closing cycle's own start.** So one\n  close authorises every unpushed commit behind it, and a run of cycles closed one\n  after another needs only the LAST close before the push; you do not need one\n  receipt per cycle. Confirm what a receipt actually covers before citing it:\n  `python3 -c \"import json,sys;d=json.load(open(sys.argv[1]));print(d['verdict'],d['base_sha'][:8],d['tip_sha'][:8])\" \u003Creceipt>`.\n- **Integrating a peer's commits moves the tip, so the receipt must be RE-MINTED by\n  another close before the push.** After a rejected push: fetch, confirm your local\n  commit is a fast-forward over `origin\u002Fmain`, integrate, then take a fresh lock and\n  close a cycle — an empty one is fine, its review is skipped as `simple` and the\n  close still writes the receipt for the new tip — deploy, push. Skipping the\n  re-close leaves a CLEAN receipt that no longer matches, and the gate refuses with\n  no obvious cause.\n- **A receipt is bound to ONE tip, and the gate re-reads `HEAD` on every attempt** — so\n  a peer committing between your close and your push invalidates a receipt that was\n  valid a minute ago, and the refusal names the tip it now wants. Do not answer that by\n  minting receipts in a loop: check whether the peer is still committing\n  (`git log -3 --format='%h %ad %s' --date=iso`) and, if so, stop — your commit is\n  already an ancestor of whatever they push, so it publishes with their push. Report\n  \"committed + deployed locally, push rides the peer's next push\" with your SHA rather\n  than looping or claiming a push that did not land.\n- **Look for a receipt on the CURRENT tip BEFORE minting one — a peer's recent close may\n  already authorise your push.** A close writes the receipt with BASE = `git merge-base\n  origin\u002Fmain HEAD`, so a peer session that just closed its own cycle has written a CLEAN\n  receipt covering every unpushed commit behind it, yours included, even though they have\n  not pushed yet. Check before looping: `ls ~\u002F.steadfaste-fleet\u002Fstate\u002F.reviewed-steadfaste-fleet-\u003Ctip>*.json`\n  and read its `verdict`\u002F`base_sha`\u002F`tip_sha`. A receipt found this way can let the push\n  through with no new cycle at all.\n- **A PERMITTED close that writes NO receipt means the lock had no repo identity — re-take\n  the lock in the SAME session and close again.** The receipt writer bails silently when the\n  lock's `repo_path` is empty, which is what the FIRST `begin_change()` of an interactive\n  agent session produces; a LATER `begin_change()` in that same session resolves the repo\n  from cwd. Symptom: `end_change` reports success and releases the lock, the push refuses\n  with \"touches an always-review path and carries no clean review receipt\", and NO\n  `.reviewed-\u003Cslug>-\u003Ctip>.json` exists for the tip. Diagnose before looping on the push: read\n  the lock file (`repo_slug` \u002F `repo_path`) and the `adversarial_reviews` row for the closing\n  cycle — a review that RAN and returned only `info` findings is a permitted close, so the\n  range was reviewed and only the receipt is missing. Recovery: `begin_change()` again (the\n  new lock carries the repo), close, then check the receipt exists before pushing. Re-taking\n  a lock to make a missing receipt WRITE is legitimate; it is NOT the prohibited \"empty cycle\n  after the work is done\" trick, which manufactures coverage for a range no cycle ever\n  reviewed — say which of the two you are doing in the cycle note, and name the plumbing bug\n  in an issue record instead of pushing around it.\n- **A `CLEAN` receipt can be HOLLOW — prove the review RAN before trusting it.** When the range's\n  commits predate your lock (an earlier session authored them and ended, or the work was already\n  committed), the close measures the WINDOW rather than the range as a few lines, SKIPS the review,\n  and still writes `verdict: CLEAN` bound to `base..tip`. The gate then accepts a whole unpushed\n  range nobody judged — and on an always-review path that is the entire point of the binding thrown\n  away. Two cheap reads separate a real receipt from a hollow one: the gate log\n  (`grep -e '\u003Ccycle id>' -e 'simple' ~\u002F.steadfaste-fleet\u002Flogs\u002Floop-governance.log`; a line reading\n  `self-adversarial review: cycle N simple (L lines, F files) — skip` means NOTHING was judged, and\n  `L`\u002F`F` are the WINDOW's numbers, never the range's) and the receipt's own `reviewed_blobs` — an\n  empty map beside a `reviewed_files` list naming every file of the range is the tell, because the\n  writer records the file list whether or not anything was reviewed. Remedy, in this order: submit\n  the range's real material to the RECORDED reviewer — `python3\n  ops\u002Fscripts\u002Forch-bus\u002Fadversarial-review.py --cycle-id \u003Ccycle> --review --material \"$(cat\n  \u003Cmaterial-file>)\"` — with the material file carrying a factual provenance block (range, commit\n  subjects, diffstat, the per-commit static gate, the committed evidence path) plus the FULL\n  `git diff \u003Cbase>..HEAD`; it judges the merged range the window never saw. Act on its findings,\n  then close AGAIN over the commits carrying the fixes — the window is finally non-empty, so the\n  per-blob pass runs and the receipt it writes is backed by a real review. Never push merely because\n  the gate accepted the hollow one: a gate that accepts is exactly the thing the receipt exists to\n  make meaningful.\n  **A SECOND hollow shape, and it is the one a WIDE RANGE hits.** When the range is too wide for one\n  whole-range call the gate logs `splitting to REQUIRED per-blob coverage instead of one range call`\n  and then `close refused for cycle N (REVIEW_INCOMPLETE) — marker written to the lock`, and on THAT\n  path the lock is RELEASED and a receipt is still minted for the tip with an empty `reviewed_blobs`.\n  So the documented wide-range retry loop (the one that prints `Cannot close yet: N blob(s) of the\n  push range still carry no review verdict`) is NOT available to you here: there is no live session\n  left to re-call. Same remedy, same order as above — submit the range's material to the recorded\n  reviewer, act on its findings, commit the fixes, then close a NEW cycle so the receipt binds the\n  new tip — and say in that cycle's note which review covers which commits. Grep the gate log for the\n  cycle id and read WHICH refusal you got before deciding which receipt shape you are holding.\n- **Prefer MERGE over rebase when a peer's commits land under your unpushed work\n  and the checkout carries a foreign WIP you may not stash.** `git pull --rebase`\n  refuses outright on a dirty tree (*\"cannot pull with rebase: You have unstaged\n  changes\"*), and every stash variant moves files that are not yours (SOUL P9). A\n  merge needs neither and leaves your commits' identities intact. Check for\n  collisions FIRST — `git diff --name-only HEAD...origin\u002Fmain` against your own\n  changed paths — because a merge only avoids the WIP it does not touch.\n  **A merge is still REFUSED by a peer's STAGED files, and collision checking does not\n  predict it**: `git merge origin\u002Fmain` stops with *\"Your local changes to the following\n  files would be overwritten by merge\"* when another session has entries in the INDEX on\n  any path the merge updates — the INDEX is what blocks it, not the worktree, and it\n  blocks paths a plain `git diff HEAD...origin\u002Fmain` shows no collision in. The only\n  sanctioned moves are to wait for that session to land its own work, or to report the\n  blocking paths and ask; never unstage, stash or commit theirs to clear it.\n  **Prove the diagnosis before you touch anything: the paths it names need not exist in\n  `origin\u002Fmain` AT ALL.** `git ls-tree --name-only origin\u002Fmain -- \u003Cthose paths>` printing\n  nothing (while `git status --short` shows them ` A`) is the proof the INDEX is the cause and\n  there is no real collision — do not go looking for an incoming edit that does not exist, and\n  do not read it as a worktree problem.\n  **With the operator's EXPLICIT authorisation to take the peer's work over, the clear is\n  `git reset -q -- \u003Cpaths>` — index only.** It leaves the worktree content byte-identical (so\n  nothing is lost, unlike a stash) and the paths become untracked, which no longer blocks a\n  merge that does not touch them; verify with `git status --short` that they read `??` and the\n  files are still on disk before merging. Keep the unattended default above (wait or ask): this\n  carve-out needs a human saying the work is theirs to land, and it does not license a stash,\n  a `checkout`, or committing someone else's content.\n  **Publishing meanwhile is a LANDING BRANCH, which never touches the blocked checkout:**\n  `git worktree add --detach \u002Ftmp\u002Fland origin\u002Fmain`, cherry-pick your own SHAs onto it in\n  order, run the suites THERE, then `git push origin HEAD:main` from that clean tree. Give\n  the landing tip a durable ref the moment it exists (`git branch \u003Cname> \u003Csha>`) — a\n  detached worktree's commits are reachable only through the reflog, so a `git worktree\n  prune` plus reflog expiry is enough to lose a landing nobody pushed. Check first that\n  your files are untouched upstream (`git log \u003Cbase>..origin\u002Fmain -- \u003Cyour paths>` empty):\n  if a peer edited them the cherry-pick conflicts and the landing branch is the wrong tool.\n  **A merge TIMEOUT can still have COMMITTED — the message file vanished, not the merge.**\n  `git merge origin\u002Fmain -m \"…\"` that hits the caller's timeout may have already produced the\n  merge commit (the post-merge hook — a full fleet deploy + doctor — is what kept running past\n  the deadline), leaving `.git\u002FMERGE_HEAD` stale while `HEAD` shows the 2-parent commit.\n  Diagnose before concluding you must restart: `git show -s --format=\"%H %P\" HEAD` (TWO parents\n  = the merge landed) and `git merge-base --is-ancestor \u003Corigin-tip> HEAD` (origin already\n  inside). If both hold, the state is clean except the leftover marker: `git merge --quit`\n  clears exactly that (never a `git reset`, which would drop the landed merge). The merge commit\n  itself needs NO second commit — the merge created it; just verify `git status` reads clean and\n  continue to deploy\u002Fclose\u002Fpush.\n- **A GENERATED file that both sides regenerated resolves by REGENERATING, never by\n  hand-merging the conflict.** Git can auto-merge such a file into a state that looks\n  merged and is inconsistent — one side's row beside the other side's count. Run the\n  generator over the MERGED source, then confirm with the generator's own `--check`:\n  an auto-merge that reports no conflict is not evidence the file is correct.\n\n- **A MERGE COMMIT is HUMAN-ONLY — an agent can prepare it fully but never commit it.** The bare-commit guard (pre-commit-score `_commit_scope_guard`) refuses a bare commit from an AGENT ancestry (a `hermes` process in the parent chain), and git refuses a partial commit during a merge (\"cannot do a partial commit during a merge\"), so no agent-shaped merge commit exists. The workflow that lands one:\n  1. begin_change an integration cycle and keep the lock LIVE through the operator's commit — the reflexion gate verifies the repo's ACTIVE lock's session loaded the ritual skills, so a human commit made while YOUR lock is held passes (a no-session commit in the HC repo is refused). If the TTL expires first, re-acquire before the operator commits.\n  2. git fetch + git merge origin\u002Fmain --no-edit; resolve every conflict (a generated file both sides regenerated resolves by taking the newer side while KEEPING your swept prose — `git checkout --theirs` re-imports the stale tokens the other side never swept, count them first); `git add` everything.\n  3. Verify the staged set (`git diff --cached --name-status`) and PRE-RUN the adversarial gate on each staged file — the operator's commit runs the hook's gates (it scans every staged file, human or not), so prove they pass first.\n  4. Hand the operator ONE command: `cd ~\u002Fsteadfaste-fleet && git commit --no-edit` (an ssh\u002Flogin session is spared by the guard, and the merge's staged files were already adversarial-passed). The merge then completes and the push range is fast-forwardable.\n  5. Score + close the cycle yourself (the close judges the resolved blobs), then bare `git push`.\n- **Size the remaining close loop from the FIRST `end_change` output, never from the begin_change scope advisory or a handoff's blob count.** The begin_change \"REVIEW SCOPE — N file(s) carry no verdict\" advisory lists the whole range formulaically (it printed 929 then 927 for a range whose actual pending set was 4+1). Verdicts are cached by blob CONTENT, so a range reviewed across earlier sessions and cycles closes in far fewer calls than N\u002F4 predicts; the first end_change's \"still need a verdict\" list IS the actual loop size.\n- **Issue `git push` BARE — a pipe or any compound makes it unprovable.** The carve-out\n  recognises only a lone `git push`: `git push origin main 2>&1 | tail -3` is classified as\n  write-capable needing a lock. Do not\n  append a follow-up command (`&& git log`, a redirect) to the same line; run the push alone and\n  read its output in the next call. **CHECK THE COMMAND SHAPE BEFORE YOU DIAGNOSE A LOCK BUG: the\n  refusal for a compound push is the GENERIC gate-2 text (\"GOVERNANCE LOCK REQUIRED\"), with no\n  mention of the compound, so a piped push is indistinguishable from a genuinely missing lock.**\n  Read your own command's shape first — that check takes seconds, while trusting the message\n  sends you to edit the enforcer for a bug it never had (and every attempted fix is measured\n  against a push that keeps failing for the unchanged reason).\n  **The classifier reads SHAPE, not intent, so READ-ONLY probes get refused the same way.** Any\n  interpreter one-liner (`python3 -c \"…\"`, `bash -c …`), a redirect or `$( )`, a bare newline, and\n  — easily missed — an alternation metacharacter inside a QUOTED pattern (`grep -rln \"a\\|b\" …`)\n  all classify as write-capable, with the same generic gate-2 text and no mention of why. When a\n  read probe is refused with no lock held, switch TOOL rather than rewording it: `read_file` and\n  `search_files` are lock-free and cover the same ground (a grep over file contents, a listing that\n  includes dotfiles). Rewording the same probe burns the call twice and teaches nothing.\n  **The sanctioned lock-free carve-outs match the BARE command only** — the enforcer's own\n  DOGFOOD-REQUIRED remedy (`bash ~\u002Fsteadfaste-fleet\u002Fops\u002Fscripts\u002Ffleet-update.sh`) runs without a\n  lock, but `… | tail -5` or any compound is classified write-capable and refused with the generic\n  gate-2 text, which reads like a missing lock. Run the sanctioned command ALONE, then read its\n  output in the next call.\n- **A refusal naming `reviewed_blobs` means the receipt carries no blob list.** The receipt\n  writer loads a range-blob helper by a repo-relative path resolved against the DEPLOYED root; if\n  that file was never registered for deploy it is absent there, the receipt is written without\n  `reviewed_blobs`, and the gate refuses because the blob list cannot cover the range. A file\n  present in the repo proves nothing about the deployed tree — make the helper deployable, then\n  re-close so a fresh receipt lists the range's files. **Resolve the helper across candidate\n  roots** (the repo layout, the configured repo, the deploy root) and LOG which one won: a single\n  guessed root is right in the repo and wrong deployed (the module sits under\n  `\u003Cdeploy>\u002Ftools\u002F\u003Cserver>\u002F`, so a repo-relative path resolves to a directory that never exists),\n  and an absent helper is then indistinguishable from a working one.\n- **A null blob list is the STRICTER authorisation, not a bypass — read the CONSUMER before\n  calling it a hole.** `review-receipt-check.py` is the one implementation both gates call, and its\n  contract is: authorise by EXACT `tip_sha`+`base_sha` first, and by content coverage only when\n  `reviewed_blobs` exist — \"a receipt with no reviewed_blobs is only ever accepted by rule 1\", and\n  every other case prints 0. So a degraded blob list costs REBASE-TOLERANCE (a rewritten tip stops\n  matching), never enforcement. A review that reads the WRITER and reports its degraded output as a\n  push bypass is a claim about a consumer it never opened; check the acceptance path before\n  believing it, and never \"fix\" a fail-closed gate into a weaker one to answer it.\n- **A \"refusal\" whose text is a payload FIELD NAME is a false refusal — grep the payload for which\n  marker matched before touching any code.** `loop-gov.py`'s `is_refusal()` enumerates phrasings\n  across the whole serialized result, so a lock record carrying a `close_refused` field makes a\n  SUCCESSFUL read-only `check_lock` exit 1 — and a caller gating on that code (the Pi write gate)\n  reads an availability check that succeeded as a governance refusal. Print the matching marker and\n  its neighbourhood before writing anything up; the fix belongs in `is_refusal()` (match refusal\n  PHRASES in content strings, never across data keys). The trigger is usually a SYNTHETIC lock left\n  in the LIVE state dir by a test run: a lock file whose name carries an EMPTY session id, with\n  `repo_slug: no-such-repo` and an epoch `started_at`, is test junk the doctor reports as a legacy\n  lock — remove it via the `rm -f` line the doctor prints, and fix the test to redirect its state dir.\n\n**The review material is BOUNDED, and that is what makes a big cycle unshippable.** The\nself-adversarial review sees at most 12,000 characters of the range's diff — 60,000 only\nwhen EVERY path is `.md`\u002F`.txt`\u002F`.rst` AND no path is always-review, and that relaxation is\nCOMPUTED from the diff headers, never granted by a note claiming \"docs only\". Past the\nbudget the omitted middle is reported as unverifiable, which is a MEDIUM-or-above finding,\nwhich REFUSES the close. The close is also what releases the lock, and a lock is required to\nrun `git push` at all — so a refused close blocks the push even when the receipt gate itself\ndoes not apply.\n\n- **Close a cycle per slice WHILE the work is happening.** The review window is the commits\n  since the cycle started, so work accumulated across many turns lands in ONE oversized\n  window that no reviewer can see and no close can accept. Plan large changes as reviewable\n  slices from the start; once every commit already exists, no new cycle can cover them.\n- **Never \"fix\" an oversized range by opening a fresh cycle after the work is done.** The\n  new window is empty, the review is skipped as `simple`, and the close writes a CLEAN\n  receipt for a range no cycle ever reviewed — a hollow authorisation, which is exactly what\n  binding a receipt to base AND tip exists to prevent. The documented answer to an\n  unreviewable range is to SPLIT it; if it can no longer be split, report the blocker (and\n  the local SHAs) to the operator instead of manufacturing the receipt.\n- **A range too wide for the whole-range review still closes — by RE-CALLING `end_change`, not by\n  re-opening a cycle.** The refusal reads `⏳ Cannot close yet: N blob(s) of the push range still\n  carry no review verdict`, and it names the unreviewed paths plus the per-close budget (15 blobs \u002F\n  240s). Each call judges another handful — measured 11 → 7 → 3 → closed in four calls on a SMALL range.\n  The per-call credit is small and roughly FIXED, about 4 blobs, so the cost scales with the\n  RANGE'S FILE COUNT rather than with the size of the change: a 115-file range took ~29 calls of\n  four apiece, and the stated 15\u002F240s budget is not what one call achieves. That is the arithmetic\n  behind \"close per slice\" — a wide range costs an MCP round-trip per four files, so land a bulk\n  recovery in WAVES sized to that budget. Verdicts are\n  keyed by blob CONTENT, so a retry CONTINUES rather than redoing, and `Cannot close yet` does NOT\n  release the lock. Keep calling the same `end_change(task_id=…)` until it prints `🔓 … closed`; the\n  receipt is written by THAT call. Never escape the loop by opening a fresh cycle — its window is\n  empty and its receipt hollow (the rule directly above).\n- **The close review's own SCOPE NOTE is a pre-close checklist — satisfy it BEFORE calling\n  `end_change`, because it tells you what the per-blob pass will ask for.** Read it as a to-do\n  list, not as commentary: a blob that CITES a measurement must point at its record (the cycle\n  id, the evidence path) instead of asserting the number; a blob that NAMES another file must\n  state that sibling's CONTRACT in place, because the sibling is judged in its own window and the\n  reviewer cannot follow a reference; a blob that CARRIES A DATE must say where the fact is\n  recorded. Answering these first costs one edit; answering them after a refusal costs a\n  round-trip per blob and re-runs the whole pass.\n  **Add the CONTRACT line by REGENERATING the transcript, never by hand-editing it** — re-run the\n  battery\u002Femitter with the added header so the file is still the run's own output; a hand-edited\n  transcript is a transcription, and byte-identity with the run is the whole of its evidential\n  value. Regeneration is cheap and the numbers come out the same.\n- **A claim the reviewer cannot check from the window is a HIGH `unverified-claim` finding\n  that refuses the close — commit the ARTIFACT, never cite it in prose.** The reviewer sees\n  the range's diff plus your note, and nothing else: \"ran the suite (N passed)\", \"dogfood\n  PASSED\", \"proven on the live unit\" are all unverifiable there, and each one comes back as\n  a finding. Put the evidence INSIDE the range as a file — the test-output log, the journal\n  capture, the acceptance transcript — and cite that path. Adding the artifact as a NEW\n  commit to the SAME already-open cycle is the cheapest fix and is NOT the hollow-receipt\n  trick above: the next close re-reads the window with the evidence now in it. Claims about\n  a tool RUN (a deploy, a doctor, a dogfood script) need a committed transcript for the same\n  reason — the reviewer cannot see your terminal.\n  - **A script's SCOPE or EXEMPTION claim must be implemented IN the script, not only in the\n    calling hook — hook-level scoping is invisible to the close reviewer (it flags the\n    docstring's claim as HIGH `unverified-claim`) and to direct invocation.** When a close\n    finding flags a docstring that declares an exemption (\"this repo is covered elsewhere\"),\n    implement the check in the script itself (early-return PASS for the exempted slug), then\n    regenerate any test asserting it; editing the comment alone cannot clear a per-blob\n    verdict — the changed script IS the new blob judged next round.\n  - **A REFUSED close releases the lock, so the artifact lands in a NEW cycle — and that\n    cycle's receipt covers the commit the review refused. Say so in the note.** You cannot\n    re-open the refused window: `end_change` refused, the lock is gone, and a fresh\n    `begin_change()` starts a window that excludes the commit under review. Push the\n    artifacts there anyway — the receipt it writes is bound to `git merge-base\n    origin\u002Fmain HEAD`, so it authorises the WHOLE unpushed range, refused commit included.\n    That is precisely the case where silence would read as laundering, so state it\n    explicitly: name the refused commit, the cycle id and its findings, and say the\n    artifacts are its remedy. Done that way it is a fixed finding, not a manufactured\n    receipt; done silently it is the trick the gate exists to stop.\n  - **Ship the artifacts as a re-runnable CAPTURE SCRIPT plus the transcript it emits**, not\n    as a hand-written log: print each command immediately above its own output, record the\n    command's OWN `rc` (measured bare — a piped `rc=$?` reports the pipe's last stage), and\n    let the reviewer re-run one line to reproduce one block. Include the blocks every claim\n    needs — the doctor run, the checks called directly, the live-vs-committed comparison, the\n    test runs (the file alone AND in the wider selection), one adversarial gate per changed\n    file, and any deploy-vs-load fact. When a block carries a self-inflicted warning (a\n    `Repo clean` warn that is the uncommitted artifact itself), say so in the artifact's\n    header instead of re-capturing to hide it — a re-capture only moves the same warn to the\n    next run, and the disclosure is what makes the rest of the transcript credible.\n    - **An evidence emitter that cannot FAIL is a false-green generator — prove it can fail.**\n      Two ways one lies silently: every line is piped through the redactor and the status is read\n      AFTER the pipe, so `ownership rc=0` reports the redactor's rc for a check that failed; and\n      the script ends on an `echo` (always rc 0), so the transcript exists and the exit code looks\n      clean whatever the checks said. Capture output into a variable, read `$?` \u002F\n      `${PIPESTATUS[0]}` BEFORE running anything else, and end on an explicit verdict block that\n      exits non-zero when any check failed. Then DISCRIMINATE it: run the emitter once against a\n      deliberately broken input (a bogus `$HOME`, an absent path) and show the non-zero rc. A\n      generator that has never failed on bad input has not been tested, and it is the artifact the\n      reviewer is asked to trust.\n    - **The emitter's interpreter must be able to RUN what it invokes.** A PATH `python3` may be a\n      venv without pytest, and the transcript then records `No module named pytest` while the\n      script exits 0 — an artifact proving nothing about the suite. Resolve it explicitly (the\n      fleet venv, or an env override) and refuse with the could-not-verify code when the runner\n      is not importable, rather than emitting a confident empty transcript.\n- **A peer's commits landing inside your cycle's window are attributed to YOU.** A\n  push\u002Fverify cycle whose window picked up a peer's new file is refused as `scope-drift`\n  (\"a push-only cycle should not add new test code\"), and its diff stat will describe THEIR\n  file as your change. Name the peer's SHAs in the note and state plainly that your cycle\n  changed no source — or wait for the peer's stream to pause so the window holds only your\n  own commit.\n  **A peer SESSION on the same host is not separable by authorship** (one host, one git\n  identity), so the close scopes by a `FLEET-Session:` commit trailer instead: commits\n  carrying a DIFFERENT session's trailer stay out of the material and are disclosed as\n  `[OTHER SESSIONS' COMMITS … DISCLOSED, NOT REVIEWED]`. Check the trailer before re-arguing\n  authorship — `git log --format='%h %s %(trailers:key=FLEET-Session,valueonly)' \u003Cbase>..HEAD`\n  — and note it fails CLOSED: a commit with no trailer (a cron, an ungoverned committer) is\n  still judged as yours.\n  **The trailer's PRODUCER must read the LIVE lock, never an env var the agent can export** — a\n  value settable from prose is not a discriminator. The `prepare-commit-msg` hook resolves the\n  session from the repo's live lock file, REPLACES any hand-written trailer (so a forged one\n  cannot survive a governed commit), and exits 0 on every path: it runs in EVERY repo on the\n  host, so a hook that can block a commit is a fleet-wide outage.\n- **The reviewer reads the cycle's DIFF, so a CORRECTIVE commit is judged as ADDING the text\n  it removed.** Deleting an offending passage to fix a finding comes back as the SAME finding\n  (\"the file still shows \u003Cthe removed text>\"): the material is the range's diff, so removed\n  lines are in it and the file's UNCHANGED sections — a transcript captured earlier, a count\n  on another line — are invisible to the reviewer. Before burning another round, test the\n  finding against the file rather than the diff: `grep -c '\u003Cflagged string>' \u003Cfile>` (0\n  matches at HEAD while the diff shows the removal = the reviewer is reading the removal),\n  and confirm the evidence it says is missing is actually present (`grep -n '\u003Ccommand>' \u003Cfile>`\n  shows the captured transcript and its `rc=`).\n- **When findings are demonstrably false, STOP re-reviewing — record the blocker and let the\n  lock expire.** Each re-review returns a variation of the same finding at full cost; the\n  sanctioned exit is to record the issue with the measurement that refutes it, leave the lock\n  to TTL-release, and report the substantive state (committed, deployed, pushed, verified)\n  with SHAs. Never `feedback_override` to get past it and never re-mint a receipt to hide it —\n  an ops\u002Fverify cycle whose window is ANOTHER session's commit can be uncloseable by\n  construction, and a TTL-released lock is the documented outcome, not a failure to try\n  harder. Say which commits are yours and which are the peer's in the issue record.\n- **Splitting a deploy\u002Finstaller file into its own later commit is legitimate**, not\n  gaming: `ops\u002Fscripts\u002Ffleet-update.sh` and friends force a receipt for the WHOLE range\n  they sit in, so moving that one file (and its one line) into its own small commit removes\n  the requirement and gives it a range a reviewer can actually read.\n- **A deploy purges the session lock, and without a lock EVERY terminal call fails closed**\n  — including `git status`, `git log` and `systemctl is-active`, which are otherwise\n  lock-free read primitives. So run all read-only verification BEFORE the deploy.\n  - **`end_change()` releases the lock too, so capture the doctor\u002Fverify transcripts BEFORE\n    closing** — immediately after a close, commands that look read-only are refused as\n    write-capable: `python3 \u003Cscript>` (even a pure reporter like the doctor), anything\n    compound (`cd \u003Cdir> && …`), and `git log` with a `-C \u003Cdir>` prefix. The push itself is\n    the    exception (the receipt authorises it), so land the push FIRST and treat the\n    post-push state as unverifiable from the session rather than re-acquiring a lock just\n    to re-read it.\n  - **Inspecting state after a close: `read_file`\u002F`search_files` still work with no lock —\n    but `search_files` does NOT match a glob whose pattern starts with `.`.** Query the name\n    WITHOUT the dot (`*governance*`, not `.governance-*`) or it returns zero files, which\n    reads as \"no state exists\" rather than \"the probe cannot see it\". And keep the call a\n    SINGLE clean command: `ls \u003Cdir>; echo ---; ls \u003Cother>` is a compound and is refused as\n    write-capable, so combine nothing. **The dotfiles in that dir are also invisible to a\n    shell listing** — `ls` omits dotfiles, so a `grep` over plain `ls` output prints NOTHING\n    and reads as \"no receipt exists\", which sends you to mint one you did not need. Use\n    `search_files(target=\"files\", pattern=\"*\u003Cname>*\")`, which lists absolutely; if you must\n    probe from the shell, `ls -a` and keep any leading dot OUT of the grep pattern.\n  - **Do not assume `begin_change()` is the way back from a purge.** The purge removes the\n    lock FILE while the governance SESSION can still be live in loop-governance's own\n    state, so the two disagree: `check_lock` answers `active: false`, and `begin_change`\n    then REFUSES — \"a governance session is already active … call end_change first\". Read\n    that refusal instead of retrying the re-acquire: the exit is `end_change(\u003Ctask_id>)`\n    on the live session, which is also what runs its self-adversarial review.\n  - **A lock is required to `git push` at all** (the pre-push hook refuses without one),\n    and `end_change` RELEASES it — so decide the push BEFORE closing. Closing first\n    strands an already-reviewed commit and costs a fresh cycle just to publish it; full\n    order and the refusal semantics live in `governance-closeout`.\n    - **A CLEAN receipt authorises the push on its own, so close-then-push is the normal\n      order for a cycle that closed once.** After `end_change` the push succeeds with NO\n      active lock — it prints `✅ No active governance lock, but a CLEAN review receipt\n      covers this range: .reviewed-\u003Cslug>-\u003Ctip>.json`. Do not re-take a lock just to push.\n      **Test that first: issue the BARE `git push` immediately after the close.** The enforcer\n      blocks write-class commands without a lock, and a bare push carrying a covering receipt is\n      the carve-out — so a publish cycle opened \"to hold the lock while I push\" is usually wasted\n      work: it costs a cycle and a close, and that close answers `No review receipt — HEAD is\n      already origin\u002Fmain … nothing to push`, which is the tell that the push had already\n      succeeded on the receipt alone. Only take a lock when the bare push actually refuses, and\n      then check the push range rather than assuming the missing lock is the cause.\n    - **Pushing from outside the repo: use the terminal tool's `workdir`, never `cd … &&`.**\n      `cd \u002Fpath\u002Fto\u002Frepo && git push` is refused as a compound (write-class) command, and the\n      refusal is the generic gate-2 text, so it reads like a missing lock. Set the tool's\n      `workdir` to the repo and issue a BARE `git push` — that is the shape the carve-out\n      recognises.\n  - **`end_change` refused as REVIEWER-UNAVAILABLE is infrastructure, not a finding — fix the\n    cause and RETRY `end_change`, do not open a new cycle.** The tell is a refusal that says\n    the reviewer returned no usable content (`finish_reason=length`, `max_tokens=16000`): a\n    reasoning model spent the whole output budget thinking. The documented knob is\n    `REVIEWER_MAX_TOKENS`, read at CALL time (never at import), so raising it takes effect on\n    the retry with no restart: append `REVIEWER_MAX_TOKENS=\u003Cn>` to the fleet `.env`\n    (`$HOME\u002Fsteadfaste-fleet\u002F.env`, or `$FLEET_ENV_FILE`; the reader also checks the deploy\n    root and `~\u002F.hermes\u002F.env`). Ceiling is 128000 — a value above it is clamped and warned.\n    Then call `end_change` again on the SAME session: the refused close leaves the lock FILE\n    removed while the governance SESSION stays live, so `begin_change` refuses with \"A\n    governance session is already active … call end_change first\" — that refusal names the\n    exit, it does not mean the close was lost.    Retrying on the live session closed the cycle\n    and wrote a CLEAN receipt covering the whole unpushed range.\n  - **A TIMEOUT on `end_change` is NOT a failure — the close may have completed.**\n    The call can exceed the MCP client's deadline while the server is still running the\n    review; the lock is released and the receipt written on the server side. Do not\n    re-call it, and do not assume the close was lost. Determine the OUTCOME instead: if\n    the session lock file is gone the lock was released, and the decisive test is a bare\n    `git push` — a receipt written by that close authorises the range and prints\n    `✅ No active governance lock, but a CLEAN review receipt covers this range`.\n\n1. **Pre-push dogfood gate diffs the WORKING TREE, not the push range.**\n   The hook runs `git diff HEAD --name-only`, so a concurrent session's\n   unstaged\u002Funtracked files (e.g. a peer's in-flight script in\n   `ops\u002Fscripts\u002F`) trip \"code changes without docs\" + \"doctor reports N\n   failure\" and block even a clean docs-only push. The dogfood run it\n   triggers then fails its own `git pull --rebase` step on those same\n   unstaged changes.\n2. **PII gate blocks unknown public URL hosts** on shared-surface writes\n   (`write_file`\u002F`skill_manage` into the repo or `~\u002F.hermes\u002Fskills`). A\n   legitimate public site not on the allowlist gets flagged (2026-08-24: a\n   doc referencing a new public site was blocked as \"non-public server URL\n   host\"). Workaround: reference the site in prose without the scheme, and\n   use allowlisted hosts (github.com) for real links. Never try to bypass\n   the gate. The guard is PATTERN-based, so it also fires on digit-dense\n   identifiers that are not personal data at all — a session key or UUID\n   (`20261008_152408_ab12cd34`) reads as a phone number. Generalize it in the\n   text (`\u003Ca real session>`, `10:49Z`) instead of arguing with the gate: a\n   wall-clock time is fine, a long unbroken digit run is not. **A row of\n   LINE-NUMBER references trips it identically** — the guard ignores separators\n   (colons, dashes, commas), so `path:L-NNN` entries cited back to back\n   concatenate into one long digit run and the write is refused as a phone\n   number. Cite code by SYMBOL or function name rather than by line: it reads\n   better, and it does not rot when the file shifts.\n3. **`adversarial-verifier` skill required for commits** while any\n   `ops\u002Fscripts\u002F` working-tree change exists — even for docs-only commits.\n   Load the skill, run\n   `python3 ~\u002F.steadfaste-fleet\u002Fscripts\u002Fadversarial-verify.py --file \u003Cyour-staged-files> --level A2 --gate`,\n   then commit.\n   - **The scan judges the whole FILE, so an OLD file's pre-existing findings block a one-line\n     change to it — attribute before you edit.** Measured on a 1,300-line CLI: adding a single\n     subcommand was refused by 1 High (`cheat-detection` pattern count — empty `except` blocks\n     anywhere in the file) plus 4 Medium fuzz findings against two functions the change never\n     touched. Check attribution FIRST: re-run with `--json` and look at each finding's shape — a\n     fuzz finding carries `target` as `path:function()` and names someone else's symbol, while a\n     pattern finding carries only `pattern`\u002F`detail` and is FILE-WIDE, so it cannot be fixed at\n     your call site at all. If no finding names your symbol, the choice is to clear the file's\n     existing debt in the same change (fix the swallowed exceptions, add the input guards) or to\n     expect the block and report it with that attribution — never to bypass it, and never to\n     report it as a problem your change introduced.\n   - **A TEST file is scanned at A4 too, and dynamic code in it BLOCKS the commit.** A test that\n     loads the module under test by building its source (`exec(compile(...))`, a string-eval seam)\n     comes back as Medium findings and the commit is refused with a bare `❌ Adversarial scan\n     blocked: 1 file(s) have findings` — the *file-level* `--gate` run can pass while the hook's\n     staged-file scan still blocks, so a green explicit run is not the hook's verdict. Assert\n     against the real source instead of executing it\n     (`ast.parse` + `ast.get_source_segment` for the properties you care about; note in the\n     docstring that the helper is pinned by source assertions because importing the server needs a\n     live session), or drive an importable seam. Do not answer it with a bypass flag — the scan is\n     right, and a test that executes generated code is the thing it exists to catch.\n4. **Orphaned PENDING cycles block push** (verified 2026-08-27, again 2026-09-02). The doctor\n   FAILs on PENDING cycles from FINISHED tasks (no active lock) — e.g. a\n   cycle created by `begin_change` in a session whose lock was later purged\n   by restart\u002Ffleet-update, OR a cycle created by a BACKGROUND\u002Fdelegation\n   session (`bg_*` session id) that finished without scoring.\n   - **A THIRD source is your OWN test suite: a test that calls the real `begin_change` \u002F\n     `feedback_accept` writes a row into the LIVE store.** Tests are run casually and\n     repeatedly, and because the doctor counts an unscored PENDING cycle as a FAILURE the\n     leak blocks the push for EVERY agent on the host until someone finds the row and scores\n     it. Point such a test at a temp state dir (and assert what the tool wrote THERE) or drive\n     the extracted helper, never the tool; a fixture written to a path the reader does not\n     read is exactly how the live store gets written while the test still looks hermetic. Symptom: push blocked with \"doctor reports N\n   failure\" + `❌ PENDING cycles`, even after dogfood passes. Fix: query\n   `mcp__review__cycle_query(unreviewed=true)`, `feedback_accept`\n   (or `feedback_override`) every orphaned PENDING cycle, re-run doctor to\n   0 fail, then push. The current task's own cycle (lock held) is INFO, not\n   a blocker.\n   - **Score a foreign row BY ID, not by task id.** `feedback_accept(task_id='\u003Canother task>')`\n     is REFUSED — the resolver only reaches YOUR session's own PENDING cycle, so the row the\n     doctor named looks unreachable. Read the id from the doctor's own line\n     (`\u003Ctask>#\u003Ccycle_num>`) or from `cycle_query`, then pass `cycle_id=\u003Cid>` plus an\n     `unscored_reason` that says where the row came from and why it holds no work. Without that\n     you loop on the same FAIL, and the push stays blocked for every agent on the host.\n     **This task's OWN earlier cycle is the other orphan source, and it looks unreachable.** A lock\n     that EXPIRES at its TTL mid-session leaves its cycle PENDING with no lock file; the next\n     `begin_change()` for that task SUCCEEDS (unlike the deploy-purge case above) and mints a SECOND\n     pending cycle — so one piece of work owns two ids. Score the EARLIER one by `cycle_id` with a\n     note saying the work continued under the later cycle, or the doctor's `❌ Orphan-cycle\n     resolution` FAILs and blocks every push on the host. Confirm in the DB rather than by task id:\n     `SELECT id, task_id, decision FROM loop_cycles WHERE task_id='\u003Ctask>' ORDER BY id`.\n   - **Per-task `cycle_query(task_id=...)` does NOT show other tasks' leaked\n     cycles** — if the doctor still reports PENDING after scoring your own,\n     find the leak directly:\n     `python3 -c \"import sqlite3; c=sqlite3.connect('$HOME\u002F.steadfaste-fleet\u002Fdata\u002Floop-governance.db'); [print(r) for r in c.execute(\\\"SELECT id, task_id, session_id FROM loop_cycles WHERE decision='PENDING'\\\")]\"`\n     (DB table is `loop_cycles`, not `cycles`.) 2026-09-02: the blocker was\n     `bus-poison-filter` from bg session `bg_090100_065b51` — an async\n     delegation's cycle never scored.\n   - **When the MCP bridge mangles a long governance write, use the CLI — not raw SQL.** Build the\n     payload with `json.dumps` in a script and invoke the SAME implementation the MCP calls:\n     `loop-gov.py feedback_accept '\u003Cjson>'`, `record_issue '\u003Cjson>'`, `end_change '\u003Cjson>'` — the CLI\n     exec_modules loop-governance's own handlers, so the ledger entry is identical and no SQL is\n     hand-written. LONG PROSE ARGUMENTS are what break the bridge; a short one-key call is reliable.\n     The raw `UPDATE` below is the LAST resort, only after the CLI refuses too.\n   - **Scoring fallback when the loop-governance MCP bridge drops its\n     arguments** (repeated \"cycle_id or task_id is required\"): write the\n     score the MCP would have —\n     `UPDATE loop_cycles SET completeness=1, quality=1, progress=1,\n     composite=1, decision='STOP', outcome_note='\u003Cverification evidence>'\n     WHERE id=\u003Ccycle_id>;` then delete the session lock\n     `~\u002F.steadfaste-fleet\u002Fstate\u002F.governance-\u003Csession>.json`. Last resort only\n     (3 MCP retries max) — it writes the same fields feedback_accept writes;\n     never skip the score, and state the workaround in your report.\n5. **Deploy-sync gate fires before push.** The push gate requires deployed\n   state == repo source — it surfaces as `❌ Deploy sync`, `❌ \u003Cplugin>\n   content`, or the checksum form `❌ Checksum: \u003Cfile>` right after\n   committing a changed installer or deployable (install-crons.sh,\n   install-orch-crons.sh, registered scripts). The fix is the same for\n   every form: run `bash ops\u002Fscripts\u002Ffleet-update.sh` (deploy), then push.\n   Order is always commit → fleet-update → push. For the full dogfood\n   (pull → deploy → doctor → verify):\n   `bash ~\u002F.steadfaste-fleet\u002Fscripts\u002Ffleet-dogfood.sh --force`.\n   (Its own pull step SKIPS itself when unpushed local commits exist — it prints\n   `(unpushed local commits present — skipping pull; local work is what we verify)` — so the\n   deploy+doctor run against YOUR tree with no peer merge; read that line rather than reporting a\n   pull that did not happen.)\n   - **Deploy yourself — a push that LANDED is not evidence the deploy ran.** A push\n     made with an active lock went through with no deploy at all: the output was only\n     the ref update, and the deployed copy of a changed skill was still the previous\n     revision afterwards (deployed != repo, content compared with the deploy banner\n     stripped from both sides). The gate's dogfood step is not guaranteed for every\n     push shape, and the omission surfaces later as `❌ Deploy sync — HEAD ahead of\n     last deploy` on the NEXT push. So after any push that touches a deploy-map file,\n     compare the deployed copy against repo source and run\n     `bash ops\u002Fscripts\u002Ffleet-update.sh` when they differ — report the deployed state\n     from that comparison, never from the push having succeeded.\n   - **A tracked GENERATED file that keeps getting rewritten is committed as its OWN\n     commit, naming the generator in the message.** This is what keeps the tree clean\n     for the doctor and for the gate's working-tree diff while keeping generated churn\n     out of the change under review. Leaving it dirty is not neutral: the doctor's\n     `Repo clean` warning fires, the dogfood gate diffs the working tree, and its pull\n     step can refuse on an unstaged file. Say which generator wrote it and that it is\n     not part of the cycle's diff, so a reviewer does not read it as scope drift.\n   - **A merge\u002Fpull IS a deploy in this repo, so do not deploy twice.** `git pull --no-rebase`\n     fires the `post-merge` hook, which runs the deploy and then the doctor — its output (framed\n     `post-merge: auto-deploying to match new HEAD` … `post-merge: deploy complete`) is your\n     Deploy-sync evidence, and a further dogfood run on top of it is redundant. Redirect that\n     pull to a file: the doctor's overall line inside it is what tells you whether the gate will\n     pass, and re-reading a 3-line summary beats a second 30-minute deploy.\n   A mid-push deploy may itself report cost-tracking marker FAILs inside\n   scheduler\u002Fcronjob files; re-run `fleet-dogfood.sh` — if it ends with\n   `✅ DOGFOOD PASSED`, the deploy is clean and the push succeeds on retry.\n   - **A `❌ Deploy sync` with NO code change you can account for is usually\n     SKILL DRIFT: a deployed skill copy is newer than its repo source, because\n     `skill_manage` — and the skill\u002Flesson pipeline, with you running nothing at all — writes ONLY the deployed copy (`$HOME\u002F.hermes\u002Fskills\u002F...`; confirm the root from the doctor's own paths rather than assuming, some builds use `~\u002F.steadfaste-fleet\u002Fskills`) and leaves the repo\n     file untouched — so a lesson that is not copied back and committed stays on one host, and a commit\n     message claiming it rode along is false while the diff shows nothing. Verify with\n     `diff skills\u002F\u003Ccat>\u002F\u003Cname>\u002FSKILL.md ~\u002F.steadfaste-fleet\u002Fskills\u002F\u003Ccat>\u002F\u003Cname>\u002FSKILL.md` before believing\n     a lesson shipped.** The deploy's own\n     `⚠ SKILL DRIFT: \u003Cskill>` warning is the tell, and the cure is to `cp` the\n     deployed SKILL.md back to `skills\u002F\u003Ccat>\u002F\u003Cname>\u002FSKILL.md` and commit it\n     BEFORE the deploy+push — never to re-deploy on top of it. Symptom, fix and\n     the standing habit are in `references\u002Fskill-drift-gate-2026-08-27.md`:\n     after ANY `skill_manage` patch in this repo, sync the deployed copy back to\n     repo source in the same cycle. The full two-class recovery walkthrough\n     (SKILL.md supersets vs parity-absent references\u002Ftemplates, with the\n     delete-vs-commit decision for each) is `references\u002Fskill-drift-recovery.md`. Treating it as \"pre-existing drift I cannot\n     explain\" wastes the cycle — it is always the skill you just edited, OR a\n     peer's in-flight skill work (never `cp` over a skill another session is\n     mid-edit on — it is theirs to land, and its diff is the tell).\n     **A THIRD source writes skills NOBODY touched: a background lesson\u002Fcuration pipeline writes\n     the DEPLOYED copies while you work.** Drift then appears on skills outside your change and\n     REAPPEARS after you reconcile them — the same two skills drifted three times in one session,\n     the last time mid-deploy. Treat it as routine maintenance, not as a failure of your change, and\n     KNOW that the pure-superset class now recovers ITSELF: the `agent-skill-drift-reconcile` no_agent\n     cron (every 2h, systemd bridge) runs `reconcile-stranded-skills.py --apply` and commits+pulls the\n     supersets, so a pure-superset strand usually resolves within two hours without you touching it.\n     Your remaining duty when the doctor still shows skill drift: (a) the need-review\u002FDROP class — the\n     reconciler REFUSES it, so a deployed copy that REPLACES lines must be merged by hand (check the\n     DROP by PHRASE before merging); and (b) verify the reconciler is running, not silently failing —\n     grep its run log for a surfaced `reconcile-stranded-skills.py --apply failed` or a stuck git state\n     before you hand-reconcile something the cron would have done. Only hand-run\n     `python3 ops\u002Fscripts\u002Fmanage\u002Freconcile-stranded-skills.py --apply` when you need the recovery NOW\n     or the reconciler is down. When you DO run it, remember it applies\n     the pure-superset class only and NAMES any file needing a real merge — a file whose deployed\n     side REPLACES lines must be merged by hand, after reading the removals to confirm each is a\n     stale lesson being rewritten rather than information being dropped. Then re-run\n     **The NAMED `DROP` is usually a FALSE POSITIVE — check it by PHRASE before you hand-merge.**\n     A deployed copy that REWROTE a paragraph reports as a line REMOVAL, so grep the deployed file\n     for a distinctive phrase from the dropped line rather than comparing lines:\n     `grep -n '\u003Cdistinctive phrase>' \u003Cdeployed copy>`. Phrase present — reflowed, and typically\n     EXTENDED with the newer rule — means the deployed side is the superset and you take it; only\n     a phrase that is genuinely ABSENT is information being dropped, and only that file needs a\n     real merge. Copy the accepted side and assert the result (`sha256sum` equality) in the same\n     pass — a copy you did not verify is a claim, not a fix.\n     **Two classes the `--apply` summary does NOT cover, so read the parity report for them.** A\n     path that exists ONLY deployed while a repo SKILL.md ROUTES to it (the report lists these as\n     `never-committed`) is a dangling route the fleet can never follow — recover it too, even\n     though the tool's own counters may read `missing=0`. And the end-to-end proof that the\n     guardrail is clear is the DEPLOY's own line: `Skills: 0 updated, N unchanged, 0 stale\n     removed, 0 preserved (deployed-only, not auto-deleted)` — that last number is exactly where\n     the stranded files sat, so it going to 0, plus `check-skill-drift-parity.py` exiting 0 with\n     the report's stranded\u002Fabsent rows at 0, is the verification. The tool's own claim is not.\n     `check-skill-drift-parity.py` to regenerate the committed table and `--check` to confirm:\n     `STALE artifact - regenerate` means the recorded table no longer matches the live derivation,\n     and the checker refuses a stale artifact — so regenerate it in the SAME cycle as the deploy\n     that invalidated it.\n     Quantify it before diagnosing: `python3 ops\u002Fscripts\u002Fmanage\u002Fcheck-skill-drift-parity.py`\n     prints a verdict plus the DEPLOYED-ONLY (\"stranded\") file list — content that exists\n     only on the deployed copy because a lesson was written there and never copied back —\n     and the doctor exits non-zero while any remain, which blocks every push on the host\n     until it is resolved or explicitly recorded as its own task.\n     **Before editing ANY skill in this repo, check the target is currently IN SYNC** —\n     pick a skill whose deployed and repo copies already match, or reconcile the drift\n     first in its own cycle. Editing an already-DRIFTED skill compounds the strand: the\n     repo copy falls further behind, and a plain deploy cannot repair it (the drift\n     guardrail skips a deployed file that is newer than its source), so the lesson never\n     reaches the fleet. Run `check-skill-drift-parity.py` and choose your target from its\n     output before writing.\n   - **The strand\u002Fparity tools only see a file the repo LACKS ENTIRELY — they are BLIND to the\n     common case, where both copies exist and the deployed one is a SUPERSET.** Measured: the tool\n     the doctor's own hint names printed `Detector verdict: FAIL · stranded: 0 — Nothing stranded:\n     repo and deployed trees agree on content` while the doctor simultaneously reported 14 drifted\n     skills. That all-clear reads as \"nothing to do\", so the operator stops, and every lesson stays\n     on one host until a deploy overwrites it. The doctor's check is CONTENT-based (it compares file\n     hashes; direction — deployed-newer vs repo-newer — comes from mtime with a ~1-minute tolerance),\n     so when the two disagree, believe the DOCTOR, not the tool its hint points at. Diagnose the\n     doctor's list yourself, one skill at a time:\n     `cmp -s skills\u002F\u003Ccat>\u002F\u003Cn>\u002FSKILL.md \"$HOME\u002F.hermes\u002Fskills\u002F\u003Ccat>\u002F\u003Cn>\u002FSKILL.md\"`. Then propagate\n     DEPLOYED → repo (that is the direction the doctor prescribes, \"commit the repo source before\n     fleet-update overwrites it\"), and VERIFY each copy in the same pass by comparing `sha256sum`\n     of both sides — a copy you did not verify is a claim, not a fix. A deploy cannot repair this\n     drift: the deploy itself runs repo → deployed.\n   - **Diff a superset before copying it; its removals are usually REWRITES, not losses.** A\n     deployed copy that is larger still REPLACES lines — the pipeline consolidates as it appends.\n     Read the removals (`difflib`\u002F`diff` on the two files) and confirm each is a stale lesson being\n     replaced, not information being dropped. The ones worth catching are substantive corrections: a\n     skill still teaching a rule the operator has since overturned, or a rule dropped from one file\n     in favour of a better home. Say which removals were rewrites in the commit message, so a\n     reviewer reading a `-30` diff does not read it as loss.\n     **A pipeline-written lesson is a SUMMARY, and its forward references may dangle — make them\n     self-contained when you backport.** The deployed addition can cite `see \u003Cskill> pitfall N`\n     (or \"full diagnostic in \u003Cskill>\") where the target does not exist — the pipeline wrote the\n     lesson but not the pitfall it points at (a deployed lesson once cited a non-existent pitfall\n     12 in a skill that had 11). Copying it verbatim bakes a dead cross-reference into the fleet's\n     docs. When a backported lesson carries such a reference, either write the missing target in\n     the SAME pass (if it is yours to author) or drop\u002Frepoint the pointer — never ship the\n     dangling link, and never duplicate the full text into the second skill purely to resolve a\n     numbering habit: make the reference name the skill, not a pitfall number that shifts.\n   - **A `❌ Checksum: \u003Cfile>` you did not cause by committing late is a RACE:\n     you edited a registered file while the deploy was still copying it.** The\n     doctor compares repo source to the deployed copy, so an edit that lands\n     mid-copy makes them disagree and the deploy ends FAIL — then the push is\n     rejected even though nothing is broken. Do not diagnose it as drift and do\n     not re-deploy on top of another edit: finish and COMMIT the edits, confirm\n     the running deploy has exited (it is a background process — poll it), then\n     deploy once more and push. Rule: never patch a file the deploy is about to\n     copy.\n7. **DOCS AUDIT blocks a new doc that is not in `docs\u002FDOCS-INDEX.md`.** Adding\n   (or moving) a file under `docs\u002F` fails the commit with `\u003Cfile> changed but\n   docs\u002FDOCS-INDEX.md was not updated`. Add the index row in the SAME commit; the\n   index also dictates WHICH directory a doc belongs in (cycle\u002Fdecommission\n   evidence goes under `docs\u002Fevidence\u002F`, not a scratch or reports path). Two more\n   gates hit on the same writes: a hardcoded `\u002Fhome\u002F\u003Cuser>\u002F` path in a new doc or\n   test (use `$HOME` \u002F `Path.home()`), and a GENERATED file edited by hand — such a\n   file carries a \"do NOT edit by hand\" banner plus its own `--check` test\n   (`generate-harnesses.py --check`, `gen-skills-manifest.py`), so fix the source it\n   is generated from and re-run the generator.\n   - **Editing ANY skill fires the audit for `docs\u002FSKILLS-MANIFEST.md`.** The\n     manifest is generated from the skills tree, so a skill edit makes the committed\n     copy stale and the commit reports it (`DOCS AUDIT: skills\u002F changed but\n     docs\u002FSKILLS-MANIFEST.md is stale`). Regenerate with the WRAPPER, never a bare\n     `python3`: the wrapper picks an interpreter that has PyYAML, and the raw\n     generator on a host whose PATH `python3` lacks it exits non-zero, which the\n     audit reads as CHECK-FAILED rather than stale — `bash\n     ops\u002Fscripts\u002Fmanage\u002Fgen-skills-manifest.sh`. Commit the result as its OWN commit\n     naming the generator (same rule as the generated-file note under the deploy-sync\n     gate). **Prove the regeneration is reproducible before committing: a second run\n     must print `fresh` and change nothing.** A big diff of reordered rows and\n     re-truncated descriptions is what a manifest predating the generator's current\n     logic looks like — the audit is reporting pre-existing drift, not something your\n     edit caused, so do not hand-merge it back.\n6. **Removing an INDEXED resource trips the expectation checks — fix the\n   expectation side in the SAME change.** Every health check that holds a list\n   of \"what should exist\" (the cron manifest, the doctor's expected-cron\n   arrays, a register\u002FMAP of deployed files) FAILs the push the moment you\n   remove the thing it declares, surfacing as `❌ Cron manifest missing\n   (\u003Cname>)`, `\u003Cthing> missing`, or a bare `❌ Deploy sync`. The REMOVAL is\n   usually correct; the stale EXPECTATION is the bug. Teach the check the new\n   owner\u002Fstate (e.g. skip names now hosted by another scheduler) rather than\n   restoring the resource — restoring re-creates the duplicate the removal was\n   fixing.\n\n   **Corollary — before removing a resource, make its CREATE path aware.** A\n   removal on its own is a trap whenever something recreates what is missing:\n   `create_cron` in the installers recreates any absent cron, so a removal\n   without a guard silently resurrects a second owner and the job then runs\n   twice. Guard the create path first (skip anything already owned elsewhere),\n   then remove — and prove it by running the installer and asserting the count\n   did not grow.\n\n## Building a NEW deployable instrument: measure first, then ship it fleet-wide\n\nWhen a question needs data that only EXISTS on other hosts' local state (cost, review volume, doctor output), the answer is never a guess and never a one-off message to the peer: ship a small READ-ONLY instrument through the register map, then EXEC it on every host. The cost4 crew proved the pattern with `cron-cost-metrics.py`; a sibling for governance review volume is `review-volume-metrics.py` (2026-11-10). The full sequence, with the traps each step carries:\n\n1. **Write the script mirroring `cron-cost-metrics.py`'s shape**: host-derived identity from `agent.env` (AGENT_NAME — the bus EXEC passes no `--agent`), read-only sqlite (`mode=ro`), and an unreadable store reported as an ERROR (exit 2), never as a zero. Empty tables on an older host = `absent`, not `0`.\n2. **Register it in `fleet-update.sh`** beside its sibling (`register \"ops\u002Fscripts\u002Fmanage\u002F\u003Cname>.py\" \"${FLEET_DEPLOY_HOME}\u002Fscripts\u002F\u003Cname>.py\"`). A new shared file is NOT deployed unless registered.\n3. **Deploy the repo copy** (`bash ops\u002Fscripts\u002Ffleet-update.sh`), then verify the DEPLOYED copy runs and matches the repo copy modulo the SOURCE header: `diff` shows only the 3 header lines the deploy prepends.\n4. **Write a test** — the TDD gate refuses production code without one. The file name carries DASHES (deploy convention), so a plain `import review_volume_metrics` fails: load by `importlib.util.spec_from_file_location` like `dogfood-reviewer-tiering.py` does, expose the module as a pytest fixture.\n5. **Commit, then close the governed cycle (end_change) to mint the receipt, then push** — the full push gate sequence applies like any other change.\n6. **Dispatch UPDATE_REQUEST to the worker hosts** (they pull the new script via their fleet-update), then `fleet exec \u003Chost> \u003Cscript>.py --json-summary` (the deployed-copy path on THEIR host; round-trip can be 150s+ on macOS workers). The script must exist under `~\u002F.steadfaste-fleet\u002Fscripts\u002F` on the TARGET.\n\n**The commit message file belongs in `$HOME\u002F.hermes\u002Fcache\u002Fscratch\u002F`, not `\u002Ftmp`.** The scratch dir is what the environment keeps for the session; `\u002Ftmp` gets cleaned mid-session and the message file vanishes between the message-write and the commit, failing the commit with an opaque `fatal: could not read log file`. Write it once into scratch and reuse the same path for retries.\n\n**Two LAYERS refuse a bare commit — diagnose WHICH before editing anything.** The enforcer PLUGIN (`~\u002F.hermes\u002Fplugins\u002Fgovernance-enforcer\u002F__init__.py`, `_check_commit_scope_gate`) judges the COMMAND TEXT your terminal tool issues and refuses a bare `git commit` (or a message that reads bare after splitting); the git HOOK (`pre-commit-score`, `_commit_scope_guard`) judges PROCESS ANCESTRY and the deployed index. A refusal that names \"BARE COMMIT REFUSED — name the paths\" at terminal-tool time is the ENFORCER's text classifier, and the fix for a misjudged multi-line `-m` lives in the enforcer source (then deploy + gateway restart), NOT in pre-commit-score — editing the hook does nothing for a command-text reading. A pre-commit hook refusal is ancestry\u002Fpartial-index based and reads differently. Attribute the refusal to its layer before patching; patching the wrong one costs a session of `BARE REFUSED` that never clears for the unchanged reason.\n\n**The commit-scope guard splits on top-level separators, so a separator INSIDE quotes no longer reads as BARE.** Since 2026-11-12 the enforcer's splitter tracks single\u002Fdouble quotes (with backslash escapes), so a multi-line `-m` body keeps its newline and the `-- \u003Cpaths>` spec stays readable on the same segment. A pathspec commit with a multi-line message or a `;`\u002F`|` inside the message now PASSES (covered by `TestCommitScopeGate`). The genuinely bare form — a `git commit` with NO `-- \u003Cpaths>` anywhere, even beside a scoped sibling in a compound — is still refused. Best practice for a long message remains `git commit -F \u003Cmessage-file> -- \u003Cpaths>` (put the message in a file, not the command line); `--only`\u002F`--git-dir=.git` are fallbacks only while the running gateway still holds the pre-fix enforcer (restart the gateway to load the quote-aware splitter).\n\n## Fleet-Active Push Races (verified 2026-09-01)\n\nOn a busy fleet, other agents push between your fetch and your push.\nSignature: dogfood prints `✅ DOGFOOD PASSED` then\n`error: failed to push some refs` — repeatedly, with no diff problem on\nyour side. The dogfood run is fine; the REF UPDATE lost the race.\n\n```bash\ngit fetch origin main\ngit log --oneline HEAD..origin\u002Fmain        # who won while you worked\ngit pull --rebase --autostash origin main  # rebase onto the new head\ngit push origin main\n```\nMay need several rounds on active days; each round's dogfood re-runs clean.\n\n- **Autostash is the sanctioned way to rebase over a peer's unstaged\n  change** — `git pull --rebase --autostash` shelves the foreign file\n  (autostash ref), rebases, and restores it. Verify `git status` after\n  that the foreign file is back (` M ops\u002F...` present). A MANUAL\n  `git stash push \u003Ctheir-file>` is the prohibited variant — autostash is\n  git-managed and restores automatically. Manual stash push\u002Fpop is only\n  acceptable when autostash is unavailable (plain `git rebase origin\u002Fmain`\n  on an already-fetched ref), and then ONLY on files whose diff you\n  inspected and confirmed unrelated to your change.\n- **A peer's COMPLETED, intentional change that blocks you** (mtime old,\n  coherent diff, matches known design): commit it as its OWN commit with\n  clear attribution in the message (\"Completed \u003Cdate> session, committed\n  now to unblock the push gate\") rather than looping on the race — then\n  the tree is clean and the gate passes. Only for finished work, never\n  a mid-edit file.\n  - **An uncommitted edit is UNVERIFIED work, so RUN ITS TESTS before landing it — \"coherent\n    diff\" is not \"finished\".** A change can be half-applied in the way a line-based diff never\n    shows: the edit changed a function's RETURN SHAPE while the test file still asserts the old\n    one, so committing it as it stood turns a clean tree into a RED suite and attributes the\n    failures to your commit. Find the consumers and the test file for the changed symbol\n    (`grep -rln \u003Csymbol>`), run them, and FINISH the edit in the same commit when the gap is\n    mechanical — update the stale assertions, add the case for the capability the edit actually\n    added — saying in the message that you completed a taken-over edit and which contract the\n    assertions now pin. Run the tests in the interpreter that can run them (the fleet venv, not\n    a bare PATH `python3`), and re-run a LONE failure once before attributing it: a test that\n    passes on the retry was a race with the previous run, not a consequence of your change.\n- **`❌ Deploy sync` after a successful dogfood race-recovery**: if you\n  commit AGAIN after a deploy ran (the raced push deployed your first\n  commit; the second commit is now undeployed), the gate flips to\n  Deploy-sync. Run `bash ~\u002Fsteadfaste-fleet\u002Fops\u002Fscripts\u002Ffleet-update.sh`\n  (deploy), confirm `Updated: \u003Csha> → \u003Csha>`, then push. Order is always\n  commit → deploy → push.\n- **Deploy-sync can LIVELOCK against a peer's commit stream.** On a host where\n  another session keeps committing, every `fleet-update.sh` is invalidated by the\n  next peer commit and the gate reports `❌ Deploy sync — HEAD (\u003Csha>) ahead of last\n  deploy (\u003Csha>)` round after round. Before spending another deploy, check whether\n  the peer is still active (`git log -3 --format='%h %ad %s' --date=iso`) — your\n  commits sit on the SAME branch, so the peer's own push publishes yours; confirm\n  with `git log --oneline -1 origin\u002Fmain` instead of looping. While the peer is\n  mid-stream, report \"committed + deployed locally, push rides the peer's next\n  push\" with the SHA rather than claiming a push that did not land.\n- **Every NEW deployable file needs its own `register` line in\n  `fleet-update.sh`** — a new shared module imported by an already-\n  registered script (e.g. a doctor helper module) is NOT deployed unless\n  registered itself. The deploy \"succeeds\" on your host only because the\n  untracked file already exists in the deployed dir; the next host or the\n  doctor then fails with `ModuleNotFoundError`. After adding any file to a\n  deployed package, grep its package siblings in the register block.\n  - **A NEW HOOK also needs its SYMLINK, and the hooks dir is IMMUTABLE.** Registering the\n    source script is only half the deploy: the global `core.hooksPath` directory carries\n    `chattr +i`, so `ln -sf` into it fails (*Operation not permitted*) while the deploy still\n    reports success for the script — the file lands in `scripts\u002F` and is NEVER invoked. Create\n    the link in the same deploy step as unlock → link → relock, and resolve the lock helper the\n    way the rest of the deploy does (`command -v hermes-plugin-lock` first, the deploy-home copy\n    only as a fallback — they are different paths and are not equally permitted to unlock).\n    VERIFY the resulting link (`readlink`, not the command's exit status), and report a failed\n    unlock and a failed RELOCK as separate warnings: a left-open hooks dir weakens every hook on\n    the host, and a missing link silently leaves the fleet without the new behaviour. Nothing in\n    a no-op branch will catch this — the other hooks are already correct, so only a NEW one ever\n    exercises it.\n\n## Concurrent-Session Discipline\n\n- Before pushing: `git status --short`. Foreign unstaged\u002Funtracked files\n  present → expect the gate to block; plan for a later push.\n- Do NOT stash, clean, or commit a peer's in-flight files (SOUL P9 — don't\n  race a peer's in-flight update). Stand down, state the block in your\n  delivery, push after the tree clears.\n- Stage only YOUR files (`git add \u003Cyours>`) — never `git add -A` in a\n  shared tree. A generated file that a cron or peer writes into the tree is swept in by `-A`,\n  lands in your commit and in the reviewed range, and then conflicts when the peer's own version\n  arrives: the resolution is to take the UPSTREAM side for a file that is not yours — in a REBASE\n  `--ours` means the branch being rebased ONTO, so `git checkout --ours -- \u003Cpath>` keeps theirs and\n  drops your unintended edit — then `git add` it and `GIT_EDITOR=true git rebase --continue`. Read\n  what `-A` staged BEFORE committing (`git diff --cached --name-only`): an evidence directory full\n  of generated files is exactly where a foreign file hides.\n- **Verify the file set that actually LANDED, not the one you staged.** Even\n  with an explicit `git add \u003Cyours>`, a gated commit can sweep a file a peer\n  session had modified into your commit. Run `git show --stat HEAD` and confirm\n  it matches your intended paths. If a peer's file is present, do not rewrite\n  history to drop it (that discards real work) — record whose change it is and\n  continue; the owning session's own commit normally lands on origin anyway.\n- **To land another agent's staged work (a cross-host proposal to \"commit, push, deploy\"), ship the BYTES, never a re-implementation of a forwarded summary.** A summary — even one that calls the work \"staged and verified \u002F tested both ways\" — is not the diff, and reconstructing from it diverges from what they actually tested and muddies attribution (SOUL P8). Get the exact staged diff (`git diff --cached -- \u003Cpaths>` plus `git status --short`) or the files themselves, apply them verbatim, then RE-PROBE BOTH WAYS on THIS host before committing — \"tested on their box\" is not \"tested here\": a peer's host-local check can carry an environment defect that only your session's contaminated environment surfaces (e.g. an inherited `PYTHONPATH` making a healthy entry report BROKEN), which you find only by running its healthy AND refusal branches locally. Add a hermetic test for a new guard\u002Fcheck script in the same landing (a config-sourced interpreter needs its branches pinned, not just its happy path). If you cannot obtain the bytes, state that honestly and offer to re-implement from the agreed plan rather than silently recreating their file. When your re-probe changes their file, say so plainly in the commit (a hardening, not a rewrite of authorship).\n- **Tag your work while a concurrent session is active** (`git tag -f \u003Cname>\n  \u003Csha>`) so a later `reset --hard` or rebase-rewrite in the other session\n  cannot orphan your commits. Report \"committed locally + deployed, not yet\n  pushed\" with that SHA — never claim a push that did not land.\n- **A peer's rebase-rewrite shows up as non-fast-forward with identical\n  messages.** When origin's tip has the same subject as your local HEAD under a\n  different SHA, the other session rewrote shared history; fetch and rebase onto\n  it rather than force-pushing anything.\n\n## Drift-Resolution Direction for a Peer's Unstaged Change\n\nWhen a peer's unstaged change blocks the gate, resolve by EVIDENCE, not by\nage:\n\n1. `git diff \u003Cfile>` and compare against the DEPLOYED copy plus the live\n   runtime the script patches (`diff deployed repo`, grep the deployed\n   upstream for the symbol).\n2. If the unstaged change MATCHES deployed\u002Flive truth (e.g. a marker string\n   aligned to the running code), commit it as its own commit with clear\n   attribution — that is drift resolution, not racing.\n3. If it matches nothing verifiable, leave it unstaged; use `git fetch` +\n   push-only instead of `pull --rebase --autostash` on a tree you can't\n   characterize.\n4. If the doctor's only FAIL is `HEAD ahead of last deploy`, just run\n   `fleet-update.sh` and push again — commits must be deployed before the\n   gate accepts them.\n\nHeader pollution trap: after `cp` from a DEPLOYED file into the repo, strip\nthe `# SOURCE:` \u002F `# Do NOT edit this file` deploy header (first 2 lines)\nbefore committing — the doctor hashes repo source WITHOUT the header, so a\nheadered repo copy fails every checksum\u002Fscript-content check.\n\n## Pitfalls\n\n**Review receipt gate: deploy ≠ load.** The receipt is written by the MCP server\n(`loop-gov-mcp.py`). A running MCP child started before that file changed holds\nthe old revision and CANNOT write receipts — so the gate refuses and nothing says\nwhy. After deploying `loop-gov-mcp.py` the gateway must restart; agents cannot do\nit (lifecycle guard), so the deploy banner is the signal. Related trap: the writer\nresolves the lock from tool-call args, and an early version called\n`_read_lock(None)` — which resolves nothing, silently, so no receipt was ever\nwritten while every code path looked correct.\n\n- **A commit message must not cite a number the artifact it touches contradicts.** A\n  reviewer reads the commit SUBJECT and the diff together: \"regenerate the suite results (N\n  passing)\" beside a file whose own `measured:` line says something else is a fabrication\n  finding, and while it stands the cycle cannot close. Before writing a count into a commit\n  message, read the number OUT of the file being committed.\n- **A measured count inside a generated artifact must carry its SCOPE.** A \"126 passed\" line\n  with no scope reads as the total for whatever the artifact is about; the next reader (or\n  reviewer) will disagree with your summary and neither of you is wrong. Label it in the\n  artifact (`parity suites: N`, `whole surface: M`), have the generator measure both, and\n  assert one can never exceed the other so the two lists cannot drift apart.\n- **Editing an always-skill mid-cycle invalidates the skills-loaded marker.**\n  The enforcer's marker pins a fingerprint of the 7 always-skill CONTENTS\n  (content hash since 2026-09-23; mtimes before that, which fired on\n  redeploys that changed nothing) — any `skill_manage`\u002F`patch` on one of them\n  (e.g. a conciseness trim) makes the stored fingerprint stale. The NEXT write\n  tool call fails with \"session skills not fully loaded\" even though all 7\n  show ✅ loaded (the ✅ reflects the in-memory set, the block reflects the\n  stale marker). The block message now names the skills whose content changed:\n  re-load THOSE via `skill_view()` (serial; the 7th of a full set regenerates\n  the marker) BEFORE continuing the push sequence. A deploy (fleet-update)\n  only has this effect when the deployed skill CONTENT actually changed.\n  Verified 2026-09-02 (change-checklist trim → push gate blocked\n  mid-sequence); mechanism corrected 2026-09-23.\n- \"Push blocked\" after a clean commit is usually the OTHER session's tree,\n  not your diff. Check `git status --short` before debugging your commit.\n- **ANY doctor FAIL blocks push, not just Deploy sync** — e.g.\n  `❌ Systemd stale units` from failed units. Fix the host debt, then\n  re-push; do not retry past a FAIL. For failed VENDOR\u002Fstatic units\n  (loaded from `\u002Fusr\u002Flib`, no user override file — check\n  `ls ~\u002F.config\u002Fsystemd\u002Fuser\u002F` first), `systemctl --user reset-failed \u003Cunit>`\n  clears the state; the doctor's `disable --now && rm\n  ~\u002F.config\u002Fsystemd\u002Fuser\u002F\u003Cunit>` suggestion only applies when a user unit\n  file actually exists.\n  The FAIL need not touch your diff, or even this repo: a doc-freshness FAIL on a\n  DIFFERENT repo on the same host (`❌ AGENTS.md (\u003Cother repo>)`) blocks every push on\n  that host until it clears — read WHICH check failed before debugging your commit, and\n  re-run the deploy gate first, since deploying your own change is what usually retires\n  a stale `❌ Deploy sync`. Clearing such a FAIL can be outside your authority — an\n  `AGENTS.md` or `CLAUDE.md` refresh is an approval-gated write to an agent-instruction\n  file, and a TIMED-OUT approval prompt is NO consent: the block states the user has NOT\n  consented and forbids re-attempting the edit via another path (terminal,\n  execute_code, a fresh begin_change). So commit the rest locally, report the blocking\n  check plus the local SHA (\"committed locally, not yet pushed\"), and wait for the\n  operator's explicit authorization — the doctor's `CLAUDE.md (dev repos)` reconcile\n  stays WARN until then. Never bypass the gate or delete the check to silence it.\n- The dogfood gate auto-runs fleet-update; its pull step failing with\n  \"cannot pull with rebase: You have unstaged changes\" is a second\n  fingerprint of the concurrent tree.\n- **Stash-and-restore is the repeatable pattern for rebase-with-peer-changes** when\n  `--autostash` is unavailable (plain `git rebase origin\u002Fmain` after a fetch).\n  Same session, repeated rounds: `git stash push -m '\u003Clabel>' \u003Cthe-3-foreign-files>`\n  → rebase → push → `git stash pop`, verify `git status` shows the foreign files\n  back unstaged. Confirmed safe for files whose diffs were inspected and are\n  unrelated; keep the same file list every round and never add files to it.\n- **A new sub-patch to an already-deployed import can surface as MULTIPLE\n  checksum failures at once** (`Checksum: \u003Cnew-module>` alongside checksums of\n  peer-modified files) — after deploy, re-check the doctor output for which\n  failures REMAIN before assuming your fix was incomplete.\n- Docs-only changes are deploy-exempt (fleet-update does not deploy\n  docs\u002F) — no deploy step needed after a docs push.\n- **Never pass a multi-line or backtick-bearing body to `git commit -m`.** A\n  shell-quoted `-m \"...\"` is expanded by the shell BEFORE git sees it, so\n  backticks in the body run as COMMAND SUBSTITUTION: a message that merely\n  mentions `code`, a log line, or a filename can truncate itself, corrupt the\n  rest of the command line (observed: a chained deploy invocation that then\n  exited 127 with no output at all), or create a stray file named after the\n  fragment — which a later commit then sweeps in as scope drift. Write the\n  message to a temp file and use `git commit -F \u003Cfile>`; `-m` is safe only for a\n  one-line subject carrying no shell metacharacters. After a malformed-commit\n  cleanup, `git status --short` before the next `git add` and look for junk\n  paths (a bare `=`, a fragment word) at the repo root.\n- **A gate-blocked `git commit -F \u003Cfile>` commits with a STALE subject on retry.**\n  The enforcer rejects the WHOLE compound command —\n  `printf \"...msg\" > \u002Ftmp\u002Fmsg && git commit -F \u002Ftmp\u002Fmsg` is blocked before the\n  `printf` runs, so `\u002Ftmp\u002Fmsg` still holds the PREVIOUS task's message. After\n  you satisfy the gate (load `adversarial-verifier`, etc.) and re-run the bare\n  `git commit -F \u002Ftmp\u002Fmsg`, the commit lands with the wrong subject and the\n  pre-commit hook scores it under a misleading task name. Use a UNIQUE temp\n  message file per commit, and after any gated commit verify\n  `git log -1 --format=%s` matches what you meant — `git commit --amend -F\n  \u003Ccorrect-file>` if it does not. **A blocked compound ran NONE of its stages**, so the retry fails\n  for a reason that looks unrelated: `git add \u003Cpath> && git commit …` refused for a missing skill\n  (or any gate) leaves the path UNSTAGED, and the next `git commit -- \u003Cpath>` answers\n  `error: pathspec '\u003Cpath>' did not match any file(s) known to git` — which reads like a missing\n  file rather than a stage that never ran. After clearing a block, re-issue the stages one at a time\n  and confirm with `git diff --cached --name-only` before committing.\n  **The SAME pathspec error has a second cause: the path is UNTRACKED.** A bare `git commit` in a\n  shared tree is refused outright (`❌ BARE COMMIT REFUSED — it would commit whatever is staged …\n  name the paths you changed`), so every commit carries an explicit path list — and a NEW path\n  cannot appear in that list until it is staged: `git add \u003Cnew path>` first, then commit naming the\n  full list. Name the files INDIVIDUALLY rather than passing a directory: a directory pathspec\n  sweeps in whatever else is staged, which is exactly what the bare-commit gate exists to prevent.\n  An empty `git diff --cached --name-only` right after a refused commit means the index is clean —\n  re-stage rather than re-diagnosing, since a peer session sharing the tree can reset it too.\n  **A SEMICOLON (or `|`, `&&`, or newline) IN THE COMMIT MESSAGE makes a correctly-scoped commit read\n  as BARE, and the refusal then looks like a staging problem.** The gate judges the raw command TEXT\n  and splits it on `;`, `|`, `||`, `&&` and newlines BEFORE looking for the `-- \u003Cpaths>` separator, so\n  a message containing any of those cuts the command at the punctuation and the scan of the tail\n  segment — the one carrying `-- path` — never runs the pathspec match\n  (measured 2026-10-23: `git commit -m '…parity can regress same-day; fleet-update.sh lives at\n  ops\u002Fscripts' -- \u003Cpath>` was refused twice, identically, while the same command with a `+` instead of\n  the `;` committed on the first try). Removing the punctuation from the message is the fix; do NOT\n  re-stage or re-diagnose the index, and do not reach for `-o\u002F--only` — the message is what is wrong.\n  **A MULTI-LINE `-m` BODY is the same trap, and `--only` is the correct escape there** — a\n  newline-bearing body (normal for a subject+body message) splits the command text the same way, so\n  the scoped form `git commit -m '\u003Csubject>\\n\\n\u003Cbody>' -- \u003Cpaths>` is refused as BARE even though\n  the pathspec is right. `git commit --only -m … -- \u003Cpaths>` forces git to build the temporary\n  index the guard's \"partial\" verdict requires, so it passes without mutating the message; then\n  verify `git log -1 --format=%s` shows the intended subject. Prefer `-F \u003Cmessage-file>` for any\n  body you control, but when a multi-line `-m` is the shape, `--only` is the structural fix, not a\n  bypass.\n  **`git --git-dir=.git commit … -- \u003Cpaths>` is the verified working shape for a multi-line body on\n  this host.** When even a correctly-separated `git commit -m '\u003Csubject>\\n\\n\u003Cbody>' -- \u003Cpaths>` is\n  refused as BARE (the newline in the body splits the command text into a no-paths tail), prefix\n  `--git-dir=.git`: it makes the scope guard resolve the temp index as \"partial\" and passes, with\n  the pathspec on the same segment. Confirmed 2026-11-10; the plain `-m`-with-paths form was refused\n  twice before `--git-dir=.git` produced the commit. Verify subject with `git log -1 --format=%s`.\n  Prefer `-F \u003Cmessage-file>` whenever you control the file, but `--git-dir=.git` + pathspec is the\n  reliable fallback when a multi-line body is already composed.\n  **A pathspec built from `git diff --cached --name-only --no-renames` COLLAPSES renames and\n  silently drops the sibling content edits.** The `--no-renames` list shows a rename as one\n  added path, so `git commit -F \u003Cmsg> -- $(…)` lands the rename ('1 file changed') and leaves\n  the edited content files UNSTAGED — measured twice in one session. After ANY commit that used\n  a generated pathspec, `git status --short` must be EMPTY; when edits remain, commit them with\n  explicit paths (same message file) rather than re-running the generator.\n\n## Verification\n\n- Blocked push: confirm the working tree is clear of foreign changes, then\n  `git push origin main` succeeds unchanged.\n- PII-blocked write: retry with prose references (no scheme) — the write\n  lands.\n","# Shared-Repo Push Gates\n\n## Two gates that block AFTER a clean close — each names its own remedy\n\n**A rebase invalidates the receipt.** The receipt binds tip+base, so any history rewrite\n(`git pull --rebase`, an amend) moves both and the gate answers \"no clean review receipt for THIS\nrange\". Re-close the cycle after the rebase: per-blob verdicts are keyed by CONTENT, so they survive\nand only the blobs the rebase brought in need judging. An index conflict (`docs\u002F*INDEX*`) is usually\ntwo sides adding rows — resolve to the UNION, then `GIT_EDITOR=true git rebase --continue`.\n\n**The deploy-sync check runs before the push.** `Deploy sync ❌` with several `Checksum: \u003Cfile>`\nlines means the deployed tree is behind the repo — typical after a rebase pulled in a peer's edits.\nThe gate prints its own remedy (`bash ~\u002F.steadfaste-fleet\u002Fscripts\u002Ffleet-dogfood.sh --force`); run it,\nnever hand-copy files into the deploy tree.\n\n**ORDER: close, then push BARE — do not open a cycle to \"hold the lock\" while you push.**\n`end_change` releases the lock and a CLEAN receipt bound to the tip authorises the push on its own,\nso the bare `git push` right after the close is the normal order and usually succeeds with no lock\nat all. Open a publish cycle only if that bare push actually REFUSES, and then diagnose the RANGE\nbefore assuming the missing lock is the cause — a cycle opened on the assumption costs a cycle plus\na close, and its own close answers `No review receipt — HEAD is already origin\u002Fmain … nothing to\npush`, which is the tell that the push had already gone through on the receipt alone. Full rule and\nthe carve-out's own output line are under *A lock is required to `git push`* below.\n\n**A stale MCP daemon answers closes with OLD rules.** Compare its start time against the deployed\nmodule's mtime:\n\n    ps -o lstart= -p $(pgrep -f tools\u002Floop-governance\u002Floop-gov-mcp.py)\n    stat -c %y ~\u002F.steadfaste-fleet\u002Ftools\u002Floop-governance\u002Floop-gov-mcp.py 2>\u002Fdev\u002Fnull \\\n      || stat -f '%Sm' ~\u002F.steadfaste-fleet\u002Ftools\u002Floop-governance\u002Floop-gov-mcp.py   # GNU, else BSD\n\nA daemon started BEFORE your deploy keeps refusing on rules you have already fixed, and the refusal\nreads as authoritative. Only a gateway restart replaces it, and you cannot restart the gateway from\ninside it. `ops\u002Fscripts\u002Floop-gov.py` is NOT a substitute: it resolves its own session id and answers\n\"No governance session active\".\n\nThe shared fleet repo enforces commit\u002Fpush gates. Know how they behave\nBEFORE pushing — most rejections are environmental (another session's\nworking tree), not a problem with your diff.\n\n## When to Use\n\n- Any git commit\u002Fpush in `~\u002Fsteadfaste-fleet` (the shared fleet repo)\n- A push or commit was rejected and the cause isn't obvious\n- Writing docs or scripts to the shared surface (repo or `~\u002F.hermes\u002Fskills`)\n\n## The Gates (verified behavior, 2026-08-24; review-receipt gate added 2026-10-07)\n\n**Review receipt gate.** A push whose range touches an always-review path needs\na CLEAN review receipt for THAT range (tip AND base must match). Ordinary commits\nare exempt. The receipt is written automatically when a cycle closes\nsuccessfully — including a cycle that changed no code (its review is skipped as\n\"simple\", but the close still writes the receipt). Every new commit moves the tip\nand invalidates the receipt, so push immediately after closing. Full detail:\n`docs\u002Freview-receipt-gate.md`.\n\n- **Read the receipt's BASE off the file — it is the PUSH range's base,\n  `git merge-base origin\u002Fmain HEAD`, not the closing cycle's own start.** So one\n  close authorises every unpushed commit behind it, and a run of cycles closed one\n  after another needs only the LAST close before the push; you do not need one\n  receipt per cycle. Confirm what a receipt actually covers before citing it:\n  `python3 -c \"import json,sys;d=json.load(open(sys.argv[1]));print(d['verdict'],d['base_sha'][:8],d['tip_sha'][:8])\" \u003Creceipt>`.\n- **Integrating a peer's commits moves the tip, so the receipt must be RE-MINTED by\n  another close before the push.** After a rejected push: fetch, confirm your local\n  commit is a fast-forward over `origin\u002Fmain`, integrate, then take a fresh lock and\n  close a cycle — an empty one is fine, its review is skipped as `simple` and the\n  close still writes the receipt for the new tip — deploy, push. Skipping the\n  re-close leaves a CLEAN receipt that no longer matches, and the gate refuses with\n  no obvious cause.\n- **A receipt is bound to ONE tip, and the gate re-reads `HEAD` on every attempt** — so\n  a peer committing between your close and your push invalidates a receipt that was\n  valid a minute ago, and the refusal names the tip it now wants. Do not answer that by\n  minting receipts in a loop: check whether the peer is still committing\n  (`git log -3 --format='%h %ad %s' --date=iso`) and, if so, stop — your commit is\n  already an ancestor of whatever they push, so it publishes with their push. Report\n  \"committed + deployed locally, push rides the peer's next push\" with your SHA rather\n  than looping or claiming a push that did not land.\n- **Look for a receipt on the CURRENT tip BEFORE minting one — a peer's recent close may\n  already authorise your push.** A close writes the receipt with BASE = `git merge-base\n  origin\u002Fmain HEAD`, so a peer session that just closed its own cycle has written a CLEAN\n  receipt covering every unpushed commit behind it, yours included, even though they have\n  not pushed yet. Check before looping: `ls ~\u002F.steadfaste-fleet\u002Fstate\u002F.reviewed-steadfaste-fleet-\u003Ctip>*.json`\n  and read its `verdict`\u002F`base_sha`\u002F`tip_sha`. A receipt found this way can let the push\n  through with no new cycle at all.\n- **A PERMITTED close that writes NO receipt means the lock had no repo identity — re-take\n  the lock in the SAME session and close again.** The receipt writer bails silently when the\n  lock's `repo_path` is empty, which is what the FIRST `begin_change()` of an interactive\n  agent session produces; a LATER `begin_change()` in that same session resolves the repo\n  from cwd. Symptom: `end_change` reports success and releases the lock, the push refuses\n  with \"touches an always-review path and carries no clean review receipt\", and NO\n  `.reviewed-\u003Cslug>-\u003Ctip>.json` exists for the tip. Diagnose before looping on the push: read\n  the lock file (`repo_slug` \u002F `repo_path`) and the `adversarial_reviews` row for the closing\n  cycle — a review that RAN and returned only `info` findings is a permitted close, so the\n  range was reviewed and only the receipt is missing. Recovery: `begin_change()` again (the\n  new lock carries the repo), close, then check the receipt exists before pushing. Re-taking\n  a lock to make a missing receipt WRITE is legitimate; it is NOT the prohibited \"empty cycle\n  after the work is done\" trick, which manufactures coverage for a range no cycle ever\n  reviewed — say which of the two you are doing in the cycle note, and name the plumbing bug\n  in an issue record instead of pushing around it.\n- **A `CLEAN` receipt can be HOLLOW — prove the review RAN before trusting it.** When the range's\n  commits predate your lock (an earlier session authored them and ended, or the work was already\n  committed), the close measures the WINDOW rather than the range as a few lines, SKIPS the review,\n  and still writes `verdict: CLEAN` bound to `base..tip`. The gate then accepts a whole unpushed\n  range nobody judged — and on an always-review path that is the entire point of the binding thrown\n  away. Two cheap reads separate a real receipt from a hollow one: the gate log\n  (`grep -e '\u003Ccycle id>' -e 'simple' ~\u002F.steadfaste-fleet\u002Flogs\u002Floop-governance.log`; a line reading\n  `self-adversarial review: cycle N simple (L lines, F files) — skip` means NOTHING was judged, and\n  `L`\u002F`F` are the WINDOW's numbers, never the range's) and the receipt's own `reviewed_blobs` — an\n  empty map beside a `reviewed_files` list naming every file of the range is the tell, because the\n  writer records the file list whether or not anything was reviewed. Remedy, in this order: submit\n  the range's real material to the RECORDED reviewer — `python3\n  ops\u002Fscripts\u002Forch-bus\u002Fadversarial-review.py --cycle-id \u003Ccycle> --review --material \"$(cat\n  \u003Cmaterial-file>)\"` — with the material file carrying a factual provenance block (range, commit\n  subjects, diffstat, the per-commit static gate, the committed evidence path) plus the FULL\n  `git diff \u003Cbase>..HEAD`; it judges the merged range the window never saw. Act on its findings,\n  then close AGAIN over the commits carrying the fixes — the window is finally non-empty, so the\n  per-blob pass runs and the receipt it writes is backed by a real review. Never push merely because\n  the gate accepted the hollow one: a gate that accepts is exactly the thing the receipt exists to\n  make meaningful.\n  **A SECOND hollow shape, and it is the one a WIDE RANGE hits.** When the range is too wide for one\n  whole-range call the gate logs `splitting to REQUIRED per-blob coverage instead of one range call`\n  and then `close refused for cycle N (REVIEW_INCOMPLETE) — marker written to the lock`, and on THAT\n  path the lock is RELEASED and a receipt is still minted for the tip with an empty `reviewed_blobs`.\n  So the documented wide-range retry loop (the one that prints `Cannot close yet: N blob(s) of the\n  push range still carry no review verdict`) is NOT available to you here: there is no live session\n  left to re-call. Same remedy, same order as above — submit the range's material to the recorded\n  reviewer, act on its findings, commit the fixes, then close a NEW cycle so the receipt binds the\n  new tip — and say in that cycle's note which review covers which commits. Grep the gate log for the\n  cycle id and read WHICH refusal you got before deciding which receipt shape you are holding.\n- **Prefer MERGE over rebase when a peer's commits land under your unpushed work\n  and the checkout carries a foreign WIP you may not stash.** `git pull --rebase`\n  refuses outright on a dirty tree (*\"cannot pull with rebase: You have unstaged\n  changes\"*), and every stash variant moves files that are not yours (SOUL P9). A\n  merge needs neither and leaves your commits' identities intact. Check for\n  collisions FIRST — `git diff --name-only HEAD...origin\u002Fmain` against your own\n  changed paths — because a merge only avoids the WIP it does not touch.\n  **A merge is still REFUSED by a peer's STAGED files, and collision checking does not\n  predict it**: `git merge origin\u002Fmain` stops with *\"Your local changes to the following\n  files would be overwritten by merge\"* when another session has entries in the INDEX on\n  any path the merge updates — the INDEX is what blocks it, not the worktree, and it\n  blocks paths a plain `git diff HEAD...origin\u002Fmain` shows no collision in. The only\n  sanctioned moves are to wait for that session to land its own work, or to report the\n  blocking paths and ask; never unstage, stash or commit theirs to clear it.\n  **Prove the diagnosis before you touch anything: the paths it names need not exist in\n  `origin\u002Fmain` AT ALL.** `git ls-tree --name-only origin\u002Fmain -- \u003Cthose paths>` printing\n  nothing (while `git status --short` shows them ` A`) is the proof the INDEX is the cause and\n  there is no real collision — do not go looking for an incoming edit that does not exist, and\n  do not read it as a worktree problem.\n  **With the operator's EXPLICIT authorisation to take the peer's work over, the clear is\n  `git reset -q -- \u003Cpaths>` — index only.** It leaves the worktree content byte-identical (so\n  nothing is lost, unlike a stash) and the paths become untracked, which no longer blocks a\n  merge that does not touch them; verify with `git status --short` that they read `??` and the\n  files are still on disk before merging. Keep the unattended default above (wait or ask): this\n  carve-out needs a human saying the work is theirs to land, and it does not license a stash,\n  a `checkout`, or committing someone else's content.\n  **Publishing meanwhile is a LANDING BRANCH, which never touches the blocked checkout:**\n  `git worktree add --detach \u002Ftmp\u002Fland origin\u002Fmain`, cherry-pick your own SHAs onto it in\n  order, run the suites THERE, then `git push origin HEAD:main` from that clean tree. Give\n  the landing tip a durable ref the moment it exists (`git branch \u003Cname> \u003Csha>`) — a\n  detached worktree's commits are reachable only through the reflog, so a `git worktree\n  prune` plus reflog expiry is enough to lose a landing nobody pushed. Check first that\n  your files are untouched upstream (`git log \u003Cbase>..origin\u002Fmain -- \u003Cyour paths>` empty):\n  if a peer edited them the cherry-pick conflicts and the landing branch is the wrong tool.\n  **A merge TIMEOUT can still have COMMITTED — the message file vanished, not the merge.**\n  `git merge origin\u002Fmain -m \"…\"` that hits the caller's timeout may have already produced the\n  merge commit (the post-merge hook — a full fleet deploy + doctor — is what kept running past\n  the deadline), leaving `.git\u002FMERGE_HEAD` stale while `HEAD` shows the 2-parent commit.\n  Diagnose before concluding you must restart: `git show -s --format=\"%H %P\" HEAD` (TWO parents\n  = the merge landed) and `git merge-base --is-ancestor \u003Corigin-tip> HEAD` (origin already\n  inside). If both hold, the state is clean except the leftover marker: `git merge --quit`\n  clears exactly that (never a `git reset`, which would drop the landed merge). The merge commit\n  itself needs NO second commit — the merge created it; just verify `git status` reads clean and\n  continue to deploy\u002Fclose\u002Fpush.\n- **A GENERATED file that both sides regenerated resolves by REGENERATING, never by\n  hand-merging the conflict.** Git can auto-merge such a file into a state that looks\n  merged and is inconsistent — one side's row beside the other side's count. Run the\n  generator over the MERGED source, then confirm with the generator's own `--check`:\n  an auto-merge that reports no conflict is not evidence the file is correct.\n\n- **A MERGE COMMIT is HUMAN-ONLY — an agent can prepare it fully but never commit it.** The bare-commit guard (pre-commit-score `_commit_scope_guard`) refuses a bare commit from an AGENT ancestry (a `hermes` process in the parent chain), and git refuses a partial commit during a merge (\"cannot do a partial commit during a merge\"), so no agent-shaped merge commit exists. The workflow that lands one:\n  1. begin_change an integration cycle and keep the lock LIVE through the operator's commit — the reflexion gate verifies the repo's ACTIVE lock's session loaded the ritual skills, so a human commit made while YOUR lock is held passes (a no-session commit in the HC repo is refused). If the TTL expires first, re-acquire before the operator commits.\n  2. git fetch + git merge origin\u002Fmain --no-edit; resolve every conflict (a generated file both sides regenerated resolves by taking the newer side while KEEPING your swept prose — `git checkout --theirs` re-imports the stale tokens the other side never swept, count them first); `git add` everything.\n  3. Verify the staged set (`git diff --cached --name-status`) and PRE-RUN the adversarial gate on each staged file — the operator's commit runs the hook's gates (it scans every staged file, human or not), so prove they pass first.\n  4. Hand the operator ONE command: `cd ~\u002Fsteadfaste-fleet && git commit --no-edit` (an ssh\u002Flogin session is spared by the guard, and the merge's staged files were already adversarial-passed). The merge then completes and the push range is fast-forwardable.\n  5. Score + close the cycle yourself (the close judges the resolved blobs), then bare `git push`.\n- **Size the remaining close loop from the FIRST `end_change` output, never from the begin_change scope advisory or a handoff's blob count.** The begin_change \"REVIEW SCOPE — N file(s) carry no verdict\" advisory lists the whole range formulaically (it printed 929 then 927 for a range whose actual pending set was 4+1). Verdicts are cached by blob CONTENT, so a range reviewed across earlier sessions and cycles closes in far fewer calls than N\u002F4 predicts; the first end_change's \"still need a verdict\" list IS the actual loop size.\n- **Issue `git push` BARE — a pipe or any compound makes it unprovable.** The carve-out\n  recognises only a lone `git push`: `git push origin main 2>&1 | tail -3` is classified as\n  write-capable needing a lock. Do not\n  append a follow-up command (`&& git log`, a redirect) to the same line; run the push alone and\n  read its output in the next call. **CHECK THE COMMAND SHAPE BEFORE YOU DIAGNOSE A LOCK BUG: the\n  refusal for a compound push is the GENERIC gate-2 text (\"GOVERNANCE LOCK REQUIRED\"), with no\n  mention of the compound, so a piped push is indistinguishable from a genuinely missing lock.**\n  Read your own command's shape first — that check takes seconds, while trusting the message\n  sends you to edit the enforcer for a bug it never had (and every attempted fix is measured\n  against a push that keeps failing for the unchanged reason).\n  **The classifier reads SHAPE, not intent, so READ-ONLY probes get refused the same way.** Any\n  interpreter one-liner (`python3 -c \"…\"`, `bash -c …`), a redirect or `$( )`, a bare newline, and\n  — easily missed — an alternation metacharacter inside a QUOTED pattern (`grep -rln \"a\\|b\" …`)\n  all classify as write-capable, with the same generic gate-2 text and no mention of why. When a\n  read probe is refused with no lock held, switch TOOL rather than rewording it: `read_file` and\n  `search_files` are lock-free and cover the same ground (a grep over file contents, a listing that\n  includes dotfiles). Rewording the same probe burns the call twice and teaches nothing.\n  **The sanctioned lock-free carve-outs match the BARE command only** — the enforcer's own\n  DOGFOOD-REQUIRED remedy (`bash ~\u002Fsteadfaste-fleet\u002Fops\u002Fscripts\u002Ffleet-update.sh`) runs without a\n  lock, but `… | tail -5` or any compound is classified write-capable and refused with the generic\n  gate-2 text, which reads like a missing lock. Run the sanctioned command ALONE, then read its\n  output in the next call.\n- **A refusal naming `reviewed_blobs` means the receipt carries no blob list.** The receipt\n  writer loads a range-blob helper by a repo-relative path resolved against the DEPLOYED root; if\n  that file was never registered for deploy it is absent there, the receipt is written without\n  `reviewed_blobs`, and the gate refuses because the blob list cannot cover the range. A file\n  present in the repo proves nothing about the deployed tree — make the helper deployable, then\n  re-close so a fresh receipt lists the range's files. **Resolve the helper across candidate\n  roots** (the repo layout, the configured repo, the deploy root) and LOG which one won: a single\n  guessed root is right in the repo and wrong deployed (the module sits under\n  `\u003Cdeploy>\u002Ftools\u002F\u003Cserver>\u002F`, so a repo-relative path resolves to a directory that never exists),\n  and an absent helper is then indistinguishable from a working one.\n- **A null blob list is the STRICTER authorisation, not a bypass — read the CONSUMER before\n  calling it a hole.** `review-receipt-check.py` is the one implementation both gates call, and its\n  contract is: authorise by EXACT `tip_sha`+`base_sha` first, and by content coverage only when\n  `reviewed_blobs` exist — \"a receipt with no reviewed_blobs is only ever accepted by rule 1\", and\n  every other case prints 0. So a degraded blob list costs REBASE-TOLERANCE (a rewritten tip stops\n  matching), never enforcement. A review that reads the WRITER and reports its degraded output as a\n  push bypass is a claim about a consumer it never opened; check the acceptance path before\n  believing it, and never \"fix\" a fail-closed gate into a weaker one to answer it.\n- **A \"refusal\" whose text is a payload FIELD NAME is a false refusal — grep the payload for which\n  marker matched before touching any code.** `loop-gov.py`'s `is_refusal()` enumerates phrasings\n  across the whole serialized result, so a lock record carrying a `close_refused` field makes a\n  SUCCESSFUL read-only `check_lock` exit 1 — and a caller gating on that code (the Pi write gate)\n  reads an availability check that succeeded as a governance refusal. Print the matching marker and\n  its neighbourhood before writing anything up; the fix belongs in `is_refusal()` (match refusal\n  PHRASES in content strings, never across data keys). The trigger is usually a SYNTHETIC lock left\n  in the LIVE state dir by a test run: a lock file whose name carries an EMPTY session id, with\n  `repo_slug: no-such-repo` and an epoch `started_at`, is test junk the doctor reports as a legacy\n  lock — remove it via the `rm -f` line the doctor prints, and fix the test to redirect its state dir.\n\n**The review material is BOUNDED, and that is what makes a big cycle unshippable.** The\nself-adversarial review sees at most 12,000 characters of the range's diff — 60,000 only\nwhen EVERY path is `.md`\u002F`.txt`\u002F`.rst` AND no path is always-review, and that relaxation is\nCOMPUTED from the diff headers, never granted by a note claiming \"docs only\". Past the\nbudget the omitted middle is reported as unverifiable, which is a MEDIUM-or-above finding,\nwhich REFUSES the close. The close is also what releases the lock, and a lock is required to\nrun `git push` at all — so a refused close blocks the push even when the receipt gate itself\ndoes not apply.\n\n- **Close a cycle per slice WHILE the work is happening.** The review window is the commits\n  since the cycle started, so work accumulated across many turns lands in ONE oversized\n  window that no reviewer can see and no close can accept. Plan large changes as reviewable\n  slices from the start; once every commit already exists, no new cycle can cover them.\n- **Never \"fix\" an oversized range by opening a fresh cycle after the work is done.** The\n  new window is empty, the review is skipped as `simple`, and the close writes a CLEAN\n  receipt for a range no cycle ever reviewed — a hollow authorisation, which is exactly what\n  binding a receipt to base AND tip exists to prevent. The documented answer to an\n  unreviewable range is to SPLIT it; if it can no longer be split, report the blocker (and\n  the local SHAs) to the operator instead of manufacturing the receipt.\n- **A range too wide for the whole-range review still closes — by RE-CALLING `end_change`, not by\n  re-opening a cycle.** The refusal reads `⏳ Cannot close yet: N blob(s) of the push range still\n  carry no review verdict`, and it names the unreviewed paths plus the per-close budget (15 blobs \u002F\n  240s). Each call judges another handful — measured 11 → 7 → 3 → closed in four calls on a SMALL range.\n  The per-call credit is small and roughly FIXED, about 4 blobs, so the cost scales with the\n  RANGE'S FILE COUNT rather than with the size of the change: a 115-file range took ~29 calls of\n  four apiece, and the stated 15\u002F240s budget is not what one call achieves. That is the arithmetic\n  behind \"close per slice\" — a wide range costs an MCP round-trip per four files, so land a bulk\n  recovery in WAVES sized to that budget. Verdicts are\n  keyed by blob CONTENT, so a retry CONTINUES rather than redoing, and `Cannot close yet` does NOT\n  release the lock. Keep calling the same `end_change(task_id=…)` until it prints `🔓 … closed`; the\n  receipt is written by THAT call. Never escape the loop by opening a fresh cycle — its window is\n  empty and its receipt hollow (the rule directly above).\n- **The close review's own SCOPE NOTE is a pre-close checklist — satisfy it BEFORE calling\n  `end_change`, because it tells you what the per-blob pass will ask for.** Read it as a to-do\n  list, not as commentary: a blob that CITES a measurement must point at its record (the cycle\n  id, the evidence path) instead of asserting the number; a blob that NAMES another file must\n  state that sibling's CONTRACT in place, because the sibling is judged in its own window and the\n  reviewer cannot follow a reference; a blob that CARRIES A DATE must say where the fact is\n  recorded. Answering these first costs one edit; answering them after a refusal costs a\n  round-trip per blob and re-runs the whole pass.\n  **Add the CONTRACT line by REGENERATING the transcript, never by hand-editing it** — re-run the\n  battery\u002Femitter with the added header so the file is still the run's own output; a hand-edited\n  transcript is a transcription, and byte-identity with the run is the whole of its evidential\n  value. Regeneration is cheap and the numbers come out the same.\n- **A claim the reviewer cannot check from the window is a HIGH `unverified-claim` finding\n  that refuses the close — commit the ARTIFACT, never cite it in prose.** The reviewer sees\n  the range's diff plus your note, and nothing else: \"ran the suite (N passed)\", \"dogfood\n  PASSED\", \"proven on the live unit\" are all unverifiable there, and each one comes back as\n  a finding. Put the evidence INSIDE the range as a file — the test-output log, the journal\n  capture, the acceptance transcript — and cite that path. Adding the artifact as a NEW\n  commit to the SAME already-open cycle is the cheapest fix and is NOT the hollow-receipt\n  trick above: the next close re-reads the window with the evidence now in it. Claims about\n  a tool RUN (a deploy, a doctor, a dogfood script) need a committed transcript for the same\n  reason — the reviewer cannot see your terminal.\n  - **A script's SCOPE or EXEMPTION claim must be implemented IN the script, not only in the\n    calling hook — hook-level scoping is invisible to the close reviewer (it flags the\n    docstring's claim as HIGH `unverified-claim`) and to direct invocation.** When a close\n    finding flags a docstring that declares an exemption (\"this repo is covered elsewhere\"),\n    implement the check in the script itself (early-return PASS for the exempted slug), then\n    regenerate any test asserting it; editing the comment alone cannot clear a per-blob\n    verdict — the changed script IS the new blob judged next round.\n  - **A REFUSED close releases the lock, so the artifact lands in a NEW cycle — and that\n    cycle's receipt covers the commit the review refused. Say so in the note.** You cannot\n    re-open the refused window: `end_change` refused, the lock is gone, and a fresh\n    `begin_change()` starts a window that excludes the commit under review. Push the\n    artifacts there anyway — the receipt it writes is bound to `git merge-base\n    origin\u002Fmain HEAD`, so it authorises the WHOLE unpushed range, refused commit included.\n    That is precisely the case where silence would read as laundering, so state it\n    explicitly: name the refused commit, the cycle id and its findings, and say the\n    artifacts are its remedy. Done that way it is a fixed finding, not a manufactured\n    receipt; done silently it is the trick the gate exists to stop.\n  - **Ship the artifacts as a re-runnable CAPTURE SCRIPT plus the transcript it emits**, not\n    as a hand-written log: print each command immediately above its own output, record the\n    command's OWN `rc` (measured bare — a piped `rc=$?` reports the pipe's last stage), and\n    let the reviewer re-run one line to reproduce one block. Include the blocks every claim\n    needs — the doctor run, the checks called directly, the live-vs-committed comparison, the\n    test runs (the file alone AND in the wider selection), one adversarial gate per changed\n    file, and any deploy-vs-load fact. When a block carries a self-inflicted warning (a\n    `Repo clean` warn that is the uncommitted artifact itself), say so in the artifact's\n    header instead of re-capturing to hide it — a re-capture only moves the same warn to the\n    next run, and the disclosure is what makes the rest of the transcript credible.\n    - **An evidence emitter that cannot FAIL is a false-green generator — prove it can fail.**\n      Two ways one lies silently: every line is piped through the redactor and the status is read\n      AFTER the pipe, so `ownership rc=0` reports the redactor's rc for a check that failed; and\n      the script ends on an `echo` (always rc 0), so the transcript exists and the exit code looks\n      clean whatever the checks said. Capture output into a variable, read `$?` \u002F\n      `${PIPESTATUS[0]}` BEFORE running anything else, and end on an explicit verdict block that\n      exits non-zero when any check failed. Then DISCRIMINATE it: run the emitter once against a\n      deliberately broken input (a bogus `$HOME`, an absent path) and show the non-zero rc. A\n      generator that has never failed on bad input has not been tested, and it is the artifact the\n      reviewer is asked to trust.\n    - **The emitter's interpreter must be able to RUN what it invokes.** A PATH `python3` may be a\n      venv without pytest, and the transcript then records `No module named pytest` while the\n      script exits 0 — an artifact proving nothing about the suite. Resolve it explicitly (the\n      fleet venv, or an env override) and refuse with the could-not-verify code when the runner\n      is not importable, rather than emitting a confident empty transcript.\n- **A peer's commits landing inside your cycle's window are attributed to YOU.** A\n  push\u002Fverify cycle whose window picked up a peer's new file is refused as `scope-drift`\n  (\"a push-only cycle should not add new test code\"), and its diff stat will describe THEIR\n  file as your change. Name the peer's SHAs in the note and state plainly that your cycle\n  changed no source — or wait for the peer's stream to pause so the window holds only your\n  own commit.\n  **A peer SESSION on the same host is not separable by authorship** (one host, one git\n  identity), so the close scopes by a `FLEET-Session:` commit trailer instead: commits\n  carrying a DIFFERENT session's trailer stay out of the material and are disclosed as\n  `[OTHER SESSIONS' COMMITS … DISCLOSED, NOT REVIEWED]`. Check the trailer before re-arguing\n  authorship — `git log --format='%h %s %(trailers:key=FLEET-Session,valueonly)' \u003Cbase>..HEAD`\n  — and note it fails CLOSED: a commit with no trailer (a cron, an ungoverned committer) is\n  still judged as yours.\n  **The trailer's PRODUCER must read the LIVE lock, never an env var the agent can export** — a\n  value settable from prose is not a discriminator. The `prepare-commit-msg` hook resolves the\n  session from the repo's live lock file, REPLACES any hand-written trailer (so a forged one\n  cannot survive a governed commit), and exits 0 on every path: it runs in EVERY repo on the\n  host, so a hook that can block a commit is a fleet-wide outage.\n- **The reviewer reads the cycle's DIFF, so a CORRECTIVE commit is judged as ADDING the text\n  it removed.** Deleting an offending passage to fix a finding comes back as the SAME finding\n  (\"the file still shows \u003Cthe removed text>\"): the material is the range's diff, so removed\n  lines are in it and the file's UNCHANGED sections — a transcript captured earlier, a count\n  on another line — are invisible to the reviewer. Before burning another round, test the\n  finding against the file rather than the diff: `grep -c '\u003Cflagged string>' \u003Cfile>` (0\n  matches at HEAD while the diff shows the removal = the reviewer is reading the removal),\n  and confirm the evidence it says is missing is actually present (`grep -n '\u003Ccommand>' \u003Cfile>`\n  shows the captured transcript and its `rc=`).\n- **When findings are demonstrably false, STOP re-reviewing — record the blocker and let the\n  lock expire.** Each re-review returns a variation of the same finding at full cost; the\n  sanctioned exit is to record the issue with the measurement that refutes it, leave the lock\n  to TTL-release, and report the substantive state (committed, deployed, pushed, verified)\n  with SHAs. Never `feedback_override` to get past it and never re-mint a receipt to hide it —\n  an ops\u002Fverify cycle whose window is ANOTHER session's commit can be uncloseable by\n  construction, and a TTL-released lock is the documented outcome, not a failure to try\n  harder. Say which commits are yours and which are the peer's in the issue record.\n- **Splitting a deploy\u002Finstaller file into its own later commit is legitimate**, not\n  gaming: `ops\u002Fscripts\u002Ffleet-update.sh` and friends force a receipt for the WHOLE range\n  they sit in, so moving that one file (and its one line) into its own small commit removes\n  the requirement and gives it a range a reviewer can actually read.\n- **A deploy purges the session lock, and without a lock EVERY terminal call fails closed**\n  — including `git status`, `git log` and `systemctl is-active`, which are otherwise\n  lock-free read primitives. So run all read-only verification BEFORE the deploy.\n  - **`end_change()` releases the lock too, so capture the doctor\u002Fverify transcripts BEFORE\n    closing** — immediately after a close, commands that look read-only are refused as\n    write-capable: `python3 \u003Cscript>` (even a pure reporter like the doctor), anything\n    compound (`cd \u003Cdir> && …`), and `git log` with a `-C \u003Cdir>` prefix. The push itself is\n    the    exception (the receipt authorises it), so land the push FIRST and treat the\n    post-push state as unverifiable from the session rather than re-acquiring a lock just\n    to re-read it.\n  - **Inspecting state after a close: `read_file`\u002F`search_files` still work with no lock —\n    but `search_files` does NOT match a glob whose pattern starts with `.`.** Query the name\n    WITHOUT the dot (`*governance*`, not `.governance-*`) or it returns zero files, which\n    reads as \"no state exists\" rather than \"the probe cannot see it\". And keep the call a\n    SINGLE clean command: `ls \u003Cdir>; echo ---; ls \u003Cother>` is a compound and is refused as\n    write-capable, so combine nothing. **The dotfiles in that dir are also invisible to a\n    shell listing** — `ls` omits dotfiles, so a `grep` over plain `ls` output prints NOTHING\n    and reads as \"no receipt exists\", which sends you to mint one you did not need. Use\n    `search_files(target=\"files\", pattern=\"*\u003Cname>*\")`, which lists absolutely; if you must\n    probe from the shell, `ls -a` and keep any leading dot OUT of the grep pattern.\n  - **Do not assume `begin_change()` is the way back from a purge.** The purge removes the\n    lock FILE while the governance SESSION can still be live in loop-governance's own\n    state, so the two disagree: `check_lock` answers `active: false`, and `begin_change`\n    then REFUSES — \"a governance session is already active … call end_change first\". Read\n    that refusal instead of retrying the re-acquire: the exit is `end_change(\u003Ctask_id>)`\n    on the live session, which is also what runs its self-adversarial review.\n  - **A lock is required to `git push` at all** (the pre-push hook refuses without one),\n    and `end_change` RELEASES it — so decide the push BEFORE closing. Closing first\n    strands an already-reviewed commit and costs a fresh cycle just to publish it; full\n    order and the refusal semantics live in `governance-closeout`.\n    - **A CLEAN receipt authorises the push on its own, so close-then-push is the normal\n      order for a cycle that closed once.** After `end_change` the push succeeds with NO\n      active lock — it prints `✅ No active governance lock, but a CLEAN review receipt\n      covers this range: .reviewed-\u003Cslug>-\u003Ctip>.json`. Do not re-take a lock just to push.\n      **Test that first: issue the BARE `git push` immediately after the close.** The enforcer\n      blocks write-class commands without a lock, and a bare push carrying a covering receipt is\n      the carve-out — so a publish cycle opened \"to hold the lock while I push\" is usually wasted\n      work: it costs a cycle and a close, and that close answers `No review receipt — HEAD is\n      already origin\u002Fmain … nothing to push`, which is the tell that the push had already\n      succeeded on the receipt alone. Only take a lock when the bare push actually refuses, and\n      then check the push range rather than assuming the missing lock is the cause.\n    - **Pushing from outside the repo: use the terminal tool's `workdir`, never `cd … &&`.**\n      `cd \u002Fpath\u002Fto\u002Frepo && git push` is refused as a compound (write-class) command, and the\n      refusal is the generic gate-2 text, so it reads like a missing lock. Set the tool's\n      `workdir` to the repo and issue a BARE `git push` — that is the shape the carve-out\n      recognises.\n  - **`end_change` refused as REVIEWER-UNAVAILABLE is infrastructure, not a finding — fix the\n    cause and RETRY `end_change`, do not open a new cycle.** The tell is a refusal that says\n    the reviewer returned no usable content (`finish_reason=length`, `max_tokens=16000`): a\n    reasoning model spent the whole output budget thinking. The documented knob is\n    `REVIEWER_MAX_TOKENS`, read at CALL time (never at import), so raising it takes effect on\n    the retry with no restart: append `REVIEWER_MAX_TOKENS=\u003Cn>` to the fleet `.env`\n    (`$HOME\u002Fsteadfaste-fleet\u002F.env`, or `$FLEET_ENV_FILE`; the reader also checks the deploy\n    root and `~\u002F.hermes\u002F.env`). Ceiling is 128000 — a value above it is clamped and warned.\n    Then call `end_change` again on the SAME session: the refused close leaves the lock FILE\n    removed while the governance SESSION stays live, so `begin_change` refuses with \"A\n    governance session is already active … call end_change first\" — that refusal names the\n    exit, it does not mean the close was lost.    Retrying on the live session closed the cycle\n    and wrote a CLEAN receipt covering the whole unpushed range.\n  - **A TIMEOUT on `end_change` is NOT a failure — the close may have completed.**\n    The call can exceed the MCP client's deadline while the server is still running the\n    review; the lock is released and the receipt written on the server side. Do not\n    re-call it, and do not assume the close was lost. Determine the OUTCOME instead: if\n    the session lock file is gone the lock was released, and the decisive test is a bare\n    `git push` — a receipt written by that close authorises the range and prints\n    `✅ No active governance lock, but a CLEAN review receipt covers this range`.\n\n1. **Pre-push dogfood gate diffs the WORKING TREE, not the push range.**\n   The hook runs `git diff HEAD --name-only`, so a concurrent session's\n   unstaged\u002Funtracked files (e.g. a peer's in-flight script in\n   `ops\u002Fscripts\u002F`) trip \"code changes without docs\" + \"doctor reports N\n   failure\" and block even a clean docs-only push. The dogfood run it\n   triggers then fails its own `git pull --rebase` step on those same\n   unstaged changes.\n2. **PII gate blocks unknown public URL hosts** on shared-surface writes\n   (`write_file`\u002F`skill_manage` into the repo or `~\u002F.hermes\u002Fskills`). A\n   legitimate public site not on the allowlist gets flagged (2026-08-24: a\n   doc referencing a new public site was blocked as \"non-public server URL\n   host\"). Workaround: reference the site in prose without the scheme, and\n   use allowlisted hosts (github.com) for real links. Never try to bypass\n   the gate. The guard is PATTERN-based, so it also fires on digit-dense\n   identifiers that are not personal data at all — a session key or UUID\n   (`20261008_152408_ab12cd34`) reads as a phone number. Generalize it in the\n   text (`\u003Ca real session>`, `10:49Z`) instead of arguing with the gate: a\n   wall-clock time is fine, a long unbroken digit run is not. **A row of\n   LINE-NUMBER references trips it identically** — the guard ignores separators\n   (colons, dashes, commas), so `path:L-NNN` entries cited back to back\n   concatenate into one long digit run and the write is refused as a phone\n   number. Cite code by SYMBOL or function name rather than by line: it reads\n   better, and it does not rot when the file shifts.\n3. **`adversarial-verifier` skill required for commits** while any\n   `ops\u002Fscripts\u002F` working-tree change exists — even for docs-only commits.\n   Load the skill, run\n   `python3 ~\u002F.steadfaste-fleet\u002Fscripts\u002Fadversarial-verify.py --file \u003Cyour-staged-files> --level A2 --gate`,\n   then commit.\n   - **The scan judges the whole FILE, so an OLD file's pre-existing findings block a one-line\n     change to it — attribute before you edit.** Measured on a 1,300-line CLI: adding a single\n     subcommand was refused by 1 High (`cheat-detection` pattern count — empty `except` blocks\n     anywhere in the file) plus 4 Medium fuzz findings against two functions the change never\n     touched. Check attribution FIRST: re-run with `--json` and look at each finding's shape — a\n     fuzz finding carries `target` as `path:function()` and names someone else's symbol, while a\n     pattern finding carries only `pattern`\u002F`detail` and is FILE-WIDE, so it cannot be fixed at\n     your call site at all. If no finding names your symbol, the choice is to clear the file's\n     existing debt in the same change (fix the swallowed exceptions, add the input guards) or to\n     expect the block and report it with that attribution — never to bypass it, and never to\n     report it as a problem your change introduced.\n   - **A TEST file is scanned at A4 too, and dynamic code in it BLOCKS the commit.** A test that\n     loads the module under test by building its source (`exec(compile(...))`, a string-eval seam)\n     comes back as Medium findings and the commit is refused with a bare `❌ Adversarial scan\n     blocked: 1 file(s) have findings` — the *file-level* `--gate` run can pass while the hook's\n     staged-file scan still blocks, so a green explicit run is not the hook's verdict. Assert\n     against the real source instead of executing it\n     (`ast.parse` + `ast.get_source_segment` for the properties you care about; note in the\n     docstring that the helper is pinned by source assertions because importing the server needs a\n     live session), or drive an importable seam. Do not answer it with a bypass flag — the scan is\n     right, and a test that executes generated code is the thing it exists to catch.\n4. **Orphaned PENDING cycles block push** (verified 2026-08-27, again 2026-09-02). The doctor\n   FAILs on PENDING cycles from FINISHED tasks (no active lock) — e.g. a\n   cycle created by `begin_change` in a session whose lock was later purged\n   by restart\u002Ffleet-update, OR a cycle created by a BACKGROUND\u002Fdelegation\n   session (`bg_*` session id) that finished without scoring.\n   - **A THIRD source is your OWN test suite: a test that calls the real `begin_change` \u002F\n     `feedback_accept` writes a row into the LIVE store.** Tests are run casually and\n     repeatedly, and because the doctor counts an unscored PENDING cycle as a FAILURE the\n     leak blocks the push for EVERY agent on the host until someone finds the row and scores\n     it. Point such a test at a temp state dir (and assert what the tool wrote THERE) or drive\n     the extracted helper, never the tool; a fixture written to a path the reader does not\n     read is exactly how the live store gets written while the test still looks hermetic. Symptom: push blocked with \"doctor reports N\n   failure\" + `❌ PENDING cycles`, even after dogfood passes. Fix: query\n   `mcp__review__cycle_query(unreviewed=true)`, `feedback_accept`\n   (or `feedback_override`) every orphaned PENDING cycle, re-run doctor to\n   0 fail, then push. The current task's own cycle (lock held) is INFO, not\n   a blocker.\n   - **Score a foreign row BY ID, not by task id.** `feedback_accept(task_id='\u003Canother task>')`\n     is REFUSED — the resolver only reaches YOUR session's own PENDING cycle, so the row the\n     doctor named looks unreachable. Read the id from the doctor's own line\n     (`\u003Ctask>#\u003Ccycle_num>`) or from `cycle_query`, then pass `cycle_id=\u003Cid>` plus an\n     `unscored_reason` that says where the row came from and why it holds no work. Without that\n     you loop on the same FAIL, and the push stays blocked for every agent on the host.\n     **This task's OWN earlier cycle is the other orphan source, and it looks unreachable.** A lock\n     that EXPIRES at its TTL mid-session leaves its cycle PENDING with no lock file; the next\n     `begin_change()` for that task SUCCEEDS (unlike the deploy-purge case above) and mints a SECOND\n     pending cycle — so one piece of work owns two ids. Score the EARLIER one by `cycle_id` with a\n     note saying the work continued under the later cycle, or the doctor's `❌ Orphan-cycle\n     resolution` FAILs and blocks every push on the host. Confirm in the DB rather than by task id:\n     `SELECT id, task_id, decision FROM loop_cycles WHERE task_id='\u003Ctask>' ORDER BY id`.\n   - **Per-task `cycle_query(task_id=...)` does NOT show other tasks' leaked\n     cycles** — if the doctor still reports PENDING after scoring your own,\n     find the leak directly:\n     `python3 -c \"import sqlite3; c=sqlite3.connect('$HOME\u002F.steadfaste-fleet\u002Fdata\u002Floop-governance.db'); [print(r) for r in c.execute(\\\"SELECT id, task_id, session_id FROM loop_cycles WHERE decision='PENDING'\\\")]\"`\n     (DB table is `loop_cycles`, not `cycles`.) 2026-09-02: the blocker was\n     `bus-poison-filter` from bg session `bg_090100_065b51` — an async\n     delegation's cycle never scored.\n   - **When the MCP bridge mangles a long governance write, use the CLI — not raw SQL.** Build the\n     payload with `json.dumps` in a script and invoke the SAME implementation the MCP calls:\n     `loop-gov.py feedback_accept '\u003Cjson>'`, `record_issue '\u003Cjson>'`, `end_change '\u003Cjson>'` — the CLI\n     exec_modules loop-governance's own handlers, so the ledger entry is identical and no SQL is\n     hand-written. LONG PROSE ARGUMENTS are what break the bridge; a short one-key call is reliable.\n     The raw `UPDATE` below is the LAST resort, only after the CLI refuses too.\n   - **Scoring fallback when the loop-governance MCP bridge drops its\n     arguments** (repeated \"cycle_id or task_id is required\"): write the\n     score the MCP would have —\n     `UPDATE loop_cycles SET completeness=1, quality=1, progress=1,\n     composite=1, decision='STOP', outcome_note='\u003Cverification evidence>'\n     WHERE id=\u003Ccycle_id>;` then delete the session lock\n     `~\u002F.steadfaste-fleet\u002Fstate\u002F.governance-\u003Csession>.json`. Last resort only\n     (3 MCP retries max) — it writes the same fields feedback_accept writes;\n     never skip the score, and state the workaround in your report.\n5. **Deploy-sync gate fires before push.** The push gate requires deployed\n   state == repo source — it surfaces as `❌ Deploy sync`, `❌ \u003Cplugin>\n   content`, or the checksum form `❌ Checksum: \u003Cfile>` right after\n   committing a changed installer or deployable (install-crons.sh,\n   install-orch-crons.sh, registered scripts). The fix is the same for\n   every form: run `bash ops\u002Fscripts\u002Ffleet-update.sh` (deploy), then push.\n   Order is always commit → fleet-update → push. For the full dogfood\n   (pull → deploy → doctor → verify):\n   `bash ~\u002F.steadfaste-fleet\u002Fscripts\u002Ffleet-dogfood.sh --force`.\n   (Its own pull step SKIPS itself when unpushed local commits exist — it prints\n   `(unpushed local commits present — skipping pull; local work is what we verify)` — so the\n   deploy+doctor run against YOUR tree with no peer merge; read that line rather than reporting a\n   pull that did not happen.)\n   - **Deploy yourself — a push that LANDED is not evidence the deploy ran.** A push\n     made with an active lock went through with no deploy at all: the output was only\n     the ref update, and the deployed copy of a changed skill was still the previous\n     revision afterwards (deployed != repo, content compared with the deploy banner\n     stripped from both sides). The gate's dogfood step is not guaranteed for every\n     push shape, and the omission surfaces later as `❌ Deploy sync — HEAD ahead of\n     last deploy` on the NEXT push. So after any push that touches a deploy-map file,\n     compare the deployed copy against repo source and run\n     `bash ops\u002Fscripts\u002Ffleet-update.sh` when they differ — report the deployed state\n     from that comparison, never from the push having succeeded.\n   - **A tracked GENERATED file that keeps getting rewritten is committed as its OWN\n     commit, naming the generator in the message.** This is what keeps the tree clean\n     for the doctor and for the gate's working-tree diff while keeping generated churn\n     out of the change under review. Leaving it dirty is not neutral: the doctor's\n     `Repo clean` warning fires, the dogfood gate diffs the working tree, and its pull\n     step can refuse on an unstaged file. Say which generator wrote it and that it is\n     not part of the cycle's diff, so a reviewer does not read it as scope drift.\n   - **A merge\u002Fpull IS a deploy in this repo, so do not deploy twice.** `git pull --no-rebase`\n     fires the `post-merge` hook, which runs the deploy and then the doctor — its output (framed\n     `post-merge: auto-deploying to match new HEAD` … `post-merge: deploy complete`) is your\n     Deploy-sync evidence, and a further dogfood run on top of it is redundant. Redirect that\n     pull to a file: the doctor's overall line inside it is what tells you whether the gate will\n     pass, and re-reading a 3-line summary beats a second 30-minute deploy.\n   A mid-push deploy may itself report cost-tracking marker FAILs inside\n   scheduler\u002Fcronjob files; re-run `fleet-dogfood.sh` — if it ends with\n   `✅ DOGFOOD PASSED`, the deploy is clean and the push succeeds on retry.\n   - **A `❌ Deploy sync` with NO code change you can account for is usually\n     SKILL DRIFT: a deployed skill copy is newer than its repo source, because\n     `skill_manage` — and the skill\u002Flesson pipeline, with you running nothing at all — writes ONLY the deployed copy (`$HOME\u002F.hermes\u002Fskills\u002F...`; confirm the root from the doctor's own paths rather than assuming, some builds use `~\u002F.steadfaste-fleet\u002Fskills`) and leaves the repo\n     file untouched — so a lesson that is not copied back and committed stays on one host, and a commit\n     message claiming it rode along is false while the diff shows nothing. Verify with\n     `diff skills\u002F\u003Ccat>\u002F\u003Cname>\u002FSKILL.md ~\u002F.steadfaste-fleet\u002Fskills\u002F\u003Ccat>\u002F\u003Cname>\u002FSKILL.md` before believing\n     a lesson shipped.** The deploy's own\n     `⚠ SKILL DRIFT: \u003Cskill>` warning is the tell, and the cure is to `cp` the\n     deployed SKILL.md back to `skills\u002F\u003Ccat>\u002F\u003Cname>\u002FSKILL.md` and commit it\n     BEFORE the deploy+push — never to re-deploy on top of it. Symptom, fix and\n     the standing habit are in `references\u002Fskill-drift-gate-2026-08-27.md`:\n     after ANY `skill_manage` patch in this repo, sync the deployed copy back to\n     repo source in the same cycle. The full two-class recovery walkthrough\n     (SKILL.md supersets vs parity-absent references\u002Ftemplates, with the\n     delete-vs-commit decision for each) is `references\u002Fskill-drift-recovery.md`. Treating it as \"pre-existing drift I cannot\n     explain\" wastes the cycle — it is always the skill you just edited, OR a\n     peer's in-flight skill work (never `cp` over a skill another session is\n     mid-edit on — it is theirs to land, and its diff is the tell).\n     **A THIRD source writes skills NOBODY touched: a background lesson\u002Fcuration pipeline writes\n     the DEPLOYED copies while you work.** Drift then appears on skills outside your change and\n     REAPPEARS after you reconcile them — the same two skills drifted three times in one session,\n     the last time mid-deploy. Treat it as routine maintenance, not as a failure of your change, and\n     KNOW that the pure-superset class now recovers ITSELF: the `agent-skill-drift-reconcile` no_agent\n     cron (every 2h, systemd bridge) runs `reconcile-stranded-skills.py --apply` and commits+pulls the\n     supersets, so a pure-superset strand usually resolves within two hours without you touching it.\n     Your remaining duty when the doctor still shows skill drift: (a) the need-review\u002FDROP class — the\n     reconciler REFUSES it, so a deployed copy that REPLACES lines must be merged by hand (check the\n     DROP by PHRASE before merging); and (b) verify the reconciler is running, not silently failing —\n     grep its run log for a surfaced `reconcile-stranded-skills.py --apply failed` or a stuck git state\n     before you hand-reconcile something the cron would have done. Only hand-run\n     `python3 ops\u002Fscripts\u002Fmanage\u002Freconcile-stranded-skills.py --apply` when you need the recovery NOW\n     or the reconciler is down. When you DO run it, remember it applies\n     the pure-superset class only and NAMES any file needing a real merge — a file whose deployed\n     side REPLACES lines must be merged by hand, after reading the removals to confirm each is a\n     stale lesson being rewritten rather than information being dropped. Then re-run\n     **The NAMED `DROP` is usually a FALSE POSITIVE — check it by PHRASE before you hand-merge.**\n     A deployed copy that REWROTE a paragraph reports as a line REMOVAL, so grep the deployed file\n     for a distinctive phrase from the dropped line rather than comparing lines:\n     `grep -n '\u003Cdistinctive phrase>' \u003Cdeployed copy>`. Phrase present — reflowed, and typically\n     EXTENDED with the newer rule — means the deployed side is the superset and you take it; only\n     a phrase that is genuinely ABSENT is information being dropped, and only that file needs a\n     real merge. Copy the accepted side and assert the result (`sha256sum` equality) in the same\n     pass — a copy you did not verify is a claim, not a fix.\n     **Two classes the `--apply` summary does NOT cover, so read the parity report for them.** A\n     path that exists ONLY deployed while a repo SKILL.md ROUTES to it (the report lists these as\n     `never-committed`) is a dangling route the fleet can never follow — recover it too, even\n     though the tool's own counters may read `missing=0`. And the end-to-end proof that the\n     guardrail is clear is the DEPLOY's own line: `Skills: 0 updated, N unchanged, 0 stale\n     removed, 0 preserved (deployed-only, not auto-deleted)` — that last number is exactly where\n     the stranded files sat, so it going to 0, plus `check-skill-drift-parity.py` exiting 0 with\n     the report's stranded\u002Fabsent rows at 0, is the verification. The tool's own claim is not.\n     `check-skill-drift-parity.py` to regenerate the committed table and `--check` to confirm:\n     `STALE artifact - regenerate` means the recorded table no longer matches the live derivation,\n     and the checker refuses a stale artifact — so regenerate it in the SAME cycle as the deploy\n     that invalidated it.\n     Quantify it before diagnosing: `python3 ops\u002Fscripts\u002Fmanage\u002Fcheck-skill-drift-parity.py`\n     prints a verdict plus the DEPLOYED-ONLY (\"stranded\") file list — content that exists\n     only on the deployed copy because a lesson was written there and never copied back —\n     and the doctor exits non-zero while any remain, which blocks every push on the host\n     until it is resolved or explicitly recorded as its own task.\n     **Before editing ANY skill in this repo, check the target is currently IN SYNC** —\n     pick a skill whose deployed and repo copies already match, or reconcile the drift\n     first in its own cycle. Editing an already-DRIFTED skill compounds the strand: the\n     repo copy falls further behind, and a plain deploy cannot repair it (the drift\n     guardrail skips a deployed file that is newer than its source), so the lesson never\n     reaches the fleet. Run `check-skill-drift-parity.py` and choose your target from its\n     output before writing.\n   - **The strand\u002Fparity tools only see a file the repo LACKS ENTIRELY — they are BLIND to the\n     common case, where both copies exist and the deployed one is a SUPERSET.** Measured: the tool\n     the doctor's own hint names printed `Detector verdict: FAIL · stranded: 0 — Nothing stranded:\n     repo and deployed trees agree on content` while the doctor simultaneously reported 14 drifted\n     skills. That all-clear reads as \"nothing to do\", so the operator stops, and every lesson stays\n     on one host until a deploy overwrites it. The doctor's check is CONTENT-based (it compares file\n     hashes; direction — deployed-newer vs repo-newer — comes from mtime with a ~1-minute tolerance),\n     so when the two disagree, believe the DOCTOR, not the tool its hint points at. Diagnose the\n     doctor's list yourself, one skill at a time:\n     `cmp -s skills\u002F\u003Ccat>\u002F\u003Cn>\u002FSKILL.md \"$HOME\u002F.hermes\u002Fskills\u002F\u003Ccat>\u002F\u003Cn>\u002FSKILL.md\"`. Then propagate\n     DEPLOYED → repo (that is the direction the doctor prescribes, \"commit the repo source before\n     fleet-update overwrites it\"), and VERIFY each copy in the same pass by comparing `sha256sum`\n     of both sides — a copy you did not verify is a claim, not a fix. A deploy cannot repair this\n     drift: the deploy itself runs repo → deployed.\n   - **Diff a superset before copying it; its removals are usually REWRITES, not losses.** A\n     deployed copy that is larger still REPLACES lines — the pipeline consolidates as it appends.\n     Read the removals (`difflib`\u002F`diff` on the two files) and confirm each is a stale lesson being\n     replaced, not information being dropped. The ones worth catching are substantive corrections: a\n     skill still teaching a rule the operator has since overturned, or a rule dropped from one file\n     in favour of a better home. Say which removals were rewrites in the commit message, so a\n     reviewer reading a `-30` diff does not read it as loss.\n     **A pipeline-written lesson is a SUMMARY, and its forward references may dangle — make them\n     self-contained when you backport.** The deployed addition can cite `see \u003Cskill> pitfall N`\n     (or \"full diagnostic in \u003Cskill>\") where the target does not exist — the pipeline wrote the\n     lesson but not the pitfall it points at (a deployed lesson once cited a non-existent pitfall\n     12 in a skill that had 11). Copying it verbatim bakes a dead cross-reference into the fleet's\n     docs. When a backported lesson carries such a reference, either write the missing target in\n     the SAME pass (if it is yours to author) or drop\u002Frepoint the pointer — never ship the\n     dangling link, and never duplicate the full text into the second skill purely to resolve a\n     numbering habit: make the reference name the skill, not a pitfall number that shifts.\n   - **A `❌ Checksum: \u003Cfile>` you did not cause by committing late is a RACE:\n     you edited a registered file while the deploy was still copying it.** The\n     doctor compares repo source to the deployed copy, so an edit that lands\n     mid-copy makes them disagree and the deploy ends FAIL — then the push is\n     rejected even though nothing is broken. Do not diagnose it as drift and do\n     not re-deploy on top of another edit: finish and COMMIT the edits, confirm\n     the running deploy has exited (it is a background process — poll it), then\n     deploy once more and push. Rule: never patch a file the deploy is about to\n     copy.\n7. **DOCS AUDIT blocks a new doc that is not in `docs\u002FDOCS-INDEX.md`.** Adding\n   (or moving) a file under `docs\u002F` fails the commit with `\u003Cfile> changed but\n   docs\u002FDOCS-INDEX.md was not updated`. Add the index row in the SAME commit; the\n   index also dictates WHICH directory a doc belongs in (cycle\u002Fdecommission\n   evidence goes under `docs\u002Fevidence\u002F`, not a scratch or reports path). Two more\n   gates hit on the same writes: a hardcoded `\u002Fhome\u002F\u003Cuser>\u002F` path in a new doc or\n   test (use `$HOME` \u002F `Path.home()`), and a GENERATED file edited by hand — such a\n   file carries a \"do NOT edit by hand\" banner plus its own `--check` test\n   (`generate-harnesses.py --check`, `gen-skills-manifest.py`), so fix the source it\n   is generated from and re-run the generator.\n   - **Editing ANY skill fires the audit for `docs\u002FSKILLS-MANIFEST.md`.** The\n     manifest is generated from the skills tree, so a skill edit makes the committed\n     copy stale and the commit reports it (`DOCS AUDIT: skills\u002F changed but\n     docs\u002FSKILLS-MANIFEST.md is stale`). Regenerate with the WRAPPER, never a bare\n     `python3`: the wrapper picks an interpreter that has PyYAML, and the raw\n     generator on a host whose PATH `python3` lacks it exits non-zero, which the\n     audit reads as CHECK-FAILED rather than stale — `bash\n     ops\u002Fscripts\u002Fmanage\u002Fgen-skills-manifest.sh`. Commit the result as its OWN commit\n     naming the generator (same rule as the generated-file note under the deploy-sync\n     gate). **Prove the regeneration is reproducible before committing: a second run\n     must print `fresh` and change nothing.** A big diff of reordered rows and\n     re-truncated descriptions is what a manifest predating the generator's current\n     logic looks like — the audit is reporting pre-existing drift, not something your\n     edit caused, so do not hand-merge it back.\n6. **Removing an INDEXED resource trips the expectation checks — fix the\n   expectation side in the SAME change.** Every health check that holds a list\n   of \"what should exist\" (the cron manifest, the doctor's expected-cron\n   arrays, a register\u002FMAP of deployed files) FAILs the push the moment you\n   remove the thing it declares, surfacing as `❌ Cron manifest missing\n   (\u003Cname>)`, `\u003Cthing> missing`, or a bare `❌ Deploy sync`. The REMOVAL is\n   usually correct; the stale EXPECTATION is the bug. Teach the check the new\n   owner\u002Fstate (e.g. skip names now hosted by another scheduler) rather than\n   restoring the resource — restoring re-creates the duplicate the removal was\n   fixing.\n\n   **Corollary — before removing a resource, make its CREATE path aware.** A\n   removal on its own is a trap whenever something recreates what is missing:\n   `create_cron` in the installers recreates any absent cron, so a removal\n   without a guard silently resurrects a second owner and the job then runs\n   twice. Guard the create path first (skip anything already owned elsewhere),\n   then remove — and prove it by running the installer and asserting the count\n   did not grow.\n\n## Building a NEW deployable instrument: measure first, then ship it fleet-wide\n\nWhen a question needs data that only EXISTS on other hosts' local state (cost, review volume, doctor output), the answer is never a guess and never a one-off message to the peer: ship a small READ-ONLY instrument through the register map, then EXEC it on every host. The cost4 crew proved the pattern with `cron-cost-metrics.py`; a sibling for governance review volume is `review-volume-metrics.py` (2026-11-10). The full sequence, with the traps each step carries:\n\n1. **Write the script mirroring `cron-cost-metrics.py`'s shape**: host-derived identity from `agent.env` (AGENT_NAME — the bus EXEC passes no `--agent`), read-only sqlite (`mode=ro`), and an unreadable store reported as an ERROR (exit 2), never as a zero. Empty tables on an older host = `absent`, not `0`.\n2. **Register it in `fleet-update.sh`** beside its sibling (`register \"ops\u002Fscripts\u002Fmanage\u002F\u003Cname>.py\" \"${FLEET_DEPLOY_HOME}\u002Fscripts\u002F\u003Cname>.py\"`). A new shared file is NOT deployed unless registered.\n3. **Deploy the repo copy** (`bash ops\u002Fscripts\u002Ffleet-update.sh`), then verify the DEPLOYED copy runs and matches the repo copy modulo the SOURCE header: `diff` shows only the 3 header lines the deploy prepends.\n4. **Write a test** — the TDD gate refuses production code without one. The file name carries DASHES (deploy convention), so a plain `import review_volume_metrics` fails: load by `importlib.util.spec_from_file_location` like `dogfood-reviewer-tiering.py` does, expose the module as a pytest fixture.\n5. **Commit, then close the governed cycle (end_change) to mint the receipt, then push** — the full push gate sequence applies like any other change.\n6. **Dispatch UPDATE_REQUEST to the worker hosts** (they pull the new script via their fleet-update), then `fleet exec \u003Chost> \u003Cscript>.py --json-summary` (the deployed-copy path on THEIR host; round-trip can be 150s+ on macOS workers). The script must exist under `~\u002F.steadfaste-fleet\u002Fscripts\u002F` on the TARGET.\n\n**The commit message file belongs in `$HOME\u002F.hermes\u002Fcache\u002Fscratch\u002F`, not `\u002Ftmp`.** The scratch dir is what the environment keeps for the session; `\u002Ftmp` gets cleaned mid-session and the message file vanishes between the message-write and the commit, failing the commit with an opaque `fatal: could not read log file`. Write it once into scratch and reuse the same path for retries.\n\n**Two LAYERS refuse a bare commit — diagnose WHICH before editing anything.** The enforcer PLUGIN (`~\u002F.hermes\u002Fplugins\u002Fgovernance-enforcer\u002F__init__.py`, `_check_commit_scope_gate`) judges the COMMAND TEXT your terminal tool issues and refuses a bare `git commit` (or a message that reads bare after splitting); the git HOOK (`pre-commit-score`, `_commit_scope_guard`) judges PROCESS ANCESTRY and the deployed index. A refusal that names \"BARE COMMIT REFUSED — name the paths\" at terminal-tool time is the ENFORCER's text classifier, and the fix for a misjudged multi-line `-m` lives in the enforcer source (then deploy + gateway restart), NOT in pre-commit-score — editing the hook does nothing for a command-text reading. A pre-commit hook refusal is ancestry\u002Fpartial-index based and reads differently. Attribute the refusal to its layer before patching; patching the wrong one costs a session of `BARE REFUSED` that never clears for the unchanged reason.\n\n**The commit-scope guard splits on top-level separators, so a separator INSIDE quotes no longer reads as BARE.** Since 2026-11-12 the enforcer's splitter tracks single\u002Fdouble quotes (with backslash escapes), so a multi-line `-m` body keeps its newline and the `-- \u003Cpaths>` spec stays readable on the same segment. A pathspec commit with a multi-line message or a `;`\u002F`|` inside the message now PASSES (covered by `TestCommitScopeGate`). The genuinely bare form — a `git commit` with NO `-- \u003Cpaths>` anywhere, even beside a scoped sibling in a compound — is still refused. Best practice for a long message remains `git commit -F \u003Cmessage-file> -- \u003Cpaths>` (put the message in a file, not the command line); `--only`\u002F`--git-dir=.git` are fallbacks only while the running gateway still holds the pre-fix enforcer (restart the gateway to load the quote-aware splitter).\n\n## Fleet-Active Push Races (verified 2026-09-01)\n\nOn a busy fleet, other agents push between your fetch and your push.\nSignature: dogfood prints `✅ DOGFOOD PASSED` then\n`error: failed to push some refs` — repeatedly, with no diff problem on\nyour side. The dogfood run is fine; the REF UPDATE lost the race.\n\n```bash\ngit fetch origin main\ngit log --oneline HEAD..origin\u002Fmain        # who won while you worked\ngit pull --rebase --autostash origin main  # rebase onto the new head\ngit push origin main\n```\nMay need several rounds on active days; each round's dogfood re-runs clean.\n\n- **Autostash is the sanctioned way to rebase over a peer's unstaged\n  change** — `git pull --rebase --autostash` shelves the foreign file\n  (autostash ref), rebases, and restores it. Verify `git status` after\n  that the foreign file is back (` M ops\u002F...` present). A MANUAL\n  `git stash push \u003Ctheir-file>` is the prohibited variant — autostash is\n  git-managed and restores automatically. Manual stash push\u002Fpop is only\n  acceptable when autostash is unavailable (plain `git rebase origin\u002Fmain`\n  on an already-fetched ref), and then ONLY on files whose diff you\n  inspected and confirmed unrelated to your change.\n- **A peer's COMPLETED, intentional change that blocks you** (mtime old,\n  coherent diff, matches known design): commit it as its OWN commit with\n  clear attribution in the message (\"Completed \u003Cdate> session, committed\n  now to unblock the push gate\") rather than looping on the race — then\n  the tree is clean and the gate passes. Only for finished work, never\n  a mid-edit file.\n  - **An uncommitted edit is UNVERIFIED work, so RUN ITS TESTS before landing it — \"coherent\n    diff\" is not \"finished\".** A change can be half-applied in the way a line-based diff never\n    shows: the edit changed a function's RETURN SHAPE while the test file still asserts the old\n    one, so committing it as it stood turns a clean tree into a RED suite and attributes the\n    failures to your commit. Find the consumers and the test file for the changed symbol\n    (`grep -rln \u003Csymbol>`), run them, and FINISH the edit in the same commit when the gap is\n    mechanical — update the stale assertions, add the case for the capability the edit actually\n    added — saying in the message that you completed a taken-over edit and which contract the\n    assertions now pin. Run the tests in the interpreter that can run them (the fleet venv, not\n    a bare PATH `python3`), and re-run a LONE failure once before attributing it: a test that\n    passes on the retry was a race with the previous run, not a consequence of your change.\n- **`❌ Deploy sync` after a successful dogfood race-recovery**: if you\n  commit AGAIN after a deploy ran (the raced push deployed your first\n  commit; the second commit is now undeployed), the gate flips to\n  Deploy-sync. Run `bash ~\u002Fsteadfaste-fleet\u002Fops\u002Fscripts\u002Ffleet-update.sh`\n  (deploy), confirm `Updated: \u003Csha> → \u003Csha>`, then push. Order is always\n  commit → deploy → push.\n- **Deploy-sync can LIVELOCK against a peer's commit stream.** On a host where\n  another session keeps committing, every `fleet-update.sh` is invalidated by the\n  next peer commit and the gate reports `❌ Deploy sync — HEAD (\u003Csha>) ahead of last\n  deploy (\u003Csha>)` round after round. Before spending another deploy, check whether\n  the peer is still active (`git log -3 --format='%h %ad %s' --date=iso`) — your\n  commits sit on the SAME branch, so the peer's own push publishes yours; confirm\n  with `git log --oneline -1 origin\u002Fmain` instead of looping. While the peer is\n  mid-stream, report \"committed + deployed locally, push rides the peer's next\n  push\" with the SHA rather than claiming a push that did not land.\n- **Every NEW deployable file needs its own `register` line in\n  `fleet-update.sh`** — a new shared module imported by an already-\n  registered script (e.g. a doctor helper module) is NOT deployed unless\n  registered itself. The deploy \"succeeds\" on your host only because the\n  untracked file already exists in the deployed dir; the next host or the\n  doctor then fails with `ModuleNotFoundError`. After adding any file to a\n  deployed package, grep its package siblings in the register block.\n  - **A NEW HOOK also needs its SYMLINK, and the hooks dir is IMMUTABLE.** Registering the\n    source script is only half the deploy: the global `core.hooksPath` directory carries\n    `chattr +i`, so `ln -sf` into it fails (*Operation not permitted*) while the deploy still\n    reports success for the script — the file lands in `scripts\u002F` and is NEVER invoked. Create\n    the link in the same deploy step as unlock → link → relock, and resolve the lock helper the\n    way the rest of the deploy does (`command -v hermes-plugin-lock` first, the deploy-home copy\n    only as a fallback — they are different paths and are not equally permitted to unlock).\n    VERIFY the resulting link (`readlink`, not the command's exit status), and report a failed\n    unlock and a failed RELOCK as separate warnings: a left-open hooks dir weakens every hook on\n    the host, and a missing link silently leaves the fleet without the new behaviour. Nothing in\n    a no-op branch will catch this — the other hooks are already correct, so only a NEW one ever\n    exercises it.\n\n## Concurrent-Session Discipline\n\n- Before pushing: `git status --short`. Foreign unstaged\u002Funtracked files\n  present → expect the gate to block; plan for a later push.\n- Do NOT stash, clean, or commit a peer's in-flight files (SOUL P9 — don't\n  race a peer's in-flight update). Stand down, state the block in your\n  delivery, push after the tree clears.\n- Stage only YOUR files (`git add \u003Cyours>`) — never `git add -A` in a\n  shared tree. A generated file that a cron or peer writes into the tree is swept in by `-A`,\n  lands in your commit and in the reviewed range, and then conflicts when the peer's own version\n  arrives: the resolution is to take the UPSTREAM side for a file that is not yours — in a REBASE\n  `--ours` means the branch being rebased ONTO, so `git checkout --ours -- \u003Cpath>` keeps theirs and\n  drops your unintended edit — then `git add` it and `GIT_EDITOR=true git rebase --continue`. Read\n  what `-A` staged BEFORE committing (`git diff --cached --name-only`): an evidence directory full\n  of generated files is exactly where a foreign file hides.\n- **Verify the file set that actually LANDED, not the one you staged.** Even\n  with an explicit `git add \u003Cyours>`, a gated commit can sweep a file a peer\n  session had modified into your commit. Run `git show --stat HEAD` and confirm\n  it matches your intended paths. If a peer's file is present, do not rewrite\n  history to drop it (that discards real work) — record whose change it is and\n  continue; the owning session's own commit normally lands on origin anyway.\n- **To land another agent's staged work (a cross-host proposal to \"commit, push, deploy\"), ship the BYTES, never a re-implementation of a forwarded summary.** A summary — even one that calls the work \"staged and verified \u002F tested both ways\" — is not the diff, and reconstructing from it diverges from what they actually tested and muddies attribution (SOUL P8). Get the exact staged diff (`git diff --cached -- \u003Cpaths>` plus `git status --short`) or the files themselves, apply them verbatim, then RE-PROBE BOTH WAYS on THIS host before committing — \"tested on their box\" is not \"tested here\": a peer's host-local check can carry an environment defect that only your session's contaminated environment surfaces (e.g. an inherited `PYTHONPATH` making a healthy entry report BROKEN), which you find only by running its healthy AND refusal branches locally. Add a hermetic test for a new guard\u002Fcheck script in the same landing (a config-sourced interpreter needs its branches pinned, not just its happy path). If you cannot obtain the bytes, state that honestly and offer to re-implement from the agreed plan rather than silently recreating their file. When your re-probe changes their file, say so plainly in the commit (a hardening, not a rewrite of authorship).\n- **Tag your work while a concurrent session is active** (`git tag -f \u003Cname>\n  \u003Csha>`) so a later `reset --hard` or rebase-rewrite in the other session\n  cannot orphan your commits. Report \"committed locally + deployed, not yet\n  pushed\" with that SHA — never claim a push that did not land.\n- **A peer's rebase-rewrite shows up as non-fast-forward with identical\n  messages.** When origin's tip has the same subject as your local HEAD under a\n  different SHA, the other session rewrote shared history; fetch and rebase onto\n  it rather than force-pushing anything.\n\n## Drift-Resolution Direction for a Peer's Unstaged Change\n\nWhen a peer's unstaged change blocks the gate, resolve by EVIDENCE, not by\nage:\n\n1. `git diff \u003Cfile>` and compare against the DEPLOYED copy plus the live\n   runtime the script patches (`diff deployed repo`, grep the deployed\n   upstream for the symbol).\n2. If the unstaged change MATCHES deployed\u002Flive truth (e.g. a marker string\n   aligned to the running code), commit it as its own commit with clear\n   attribution — that is drift resolution, not racing.\n3. If it matches nothing verifiable, leave it unstaged; use `git fetch` +\n   push-only instead of `pull --rebase --autostash` on a tree you can't\n   characterize.\n4. If the doctor's only FAIL is `HEAD ahead of last deploy`, just run\n   `fleet-update.sh` and push again — commits must be deployed before the\n   gate accepts them.\n\nHeader pollution trap: after `cp` from a DEPLOYED file into the repo, strip\nthe `# SOURCE:` \u002F `# Do NOT edit this file` deploy header (first 2 lines)\nbefore committing — the doctor hashes repo source WITHOUT the header, so a\nheadered repo copy fails every checksum\u002Fscript-content check.\n\n## Pitfalls\n\n**Review receipt gate: deploy ≠ load.** The receipt is written by the MCP server\n(`loop-gov-mcp.py`). A running MCP child started before that file changed holds\nthe old revision and CANNOT write receipts — so the gate refuses and nothing says\nwhy. After deploying `loop-gov-mcp.py` the gateway must restart; agents cannot do\nit (lifecycle guard), so the deploy banner is the signal. Related trap: the writer\nresolves the lock from tool-call args, and an early version called\n`_read_lock(None)` — which resolves nothing, silently, so no receipt was ever\nwritten while every code path looked correct.\n\n- **A commit message must not cite a number the artifact it touches contradicts.** A\n  reviewer reads the commit SUBJECT and the diff together: \"regenerate the suite results (N\n  passing)\" beside a file whose own `measured:` line says something else is a fabrication\n  finding, and while it stands the cycle cannot close. Before writing a count into a commit\n  message, read the number OUT of the file being committed.\n- **A measured count inside a generated artifact must carry its SCOPE.** A \"126 passed\" line\n  with no scope reads as the total for whatever the artifact is about; the next reader (or\n  reviewer) will disagree with your summary and neither of you is wrong. Label it in the\n  artifact (`parity suites: N`, `whole surface: M`), have the generator measure both, and\n  assert one can never exceed the other so the two lists cannot drift apart.\n- **Editing an always-skill mid-cycle invalidates the skills-loaded marker.**\n  The enforcer's marker pins a fingerprint of the 7 always-skill CONTENTS\n  (content hash since 2026-09-23; mtimes before that, which fired on\n  redeploys that changed nothing) — any `skill_manage`\u002F`patch` on one of them\n  (e.g. a conciseness trim) makes the stored fingerprint stale. The NEXT write\n  tool call fails with \"session skills not fully loaded\" even though all 7\n  show ✅ loaded (the ✅ reflects the in-memory set, the block reflects the\n  stale marker). The block message now names the skills whose content changed:\n  re-load THOSE via `skill_view()` (serial; the 7th of a full set regenerates\n  the marker) BEFORE continuing the push sequence. A deploy (fleet-update)\n  only has this effect when the deployed skill CONTENT actually changed.\n  Verified 2026-09-02 (change-checklist trim → push gate blocked\n  mid-sequence); mechanism corrected 2026-09-23.\n- \"Push blocked\" after a clean commit is usually the OTHER session's tree,\n  not your diff. Check `git status --short` before debugging your commit.\n- **ANY doctor FAIL blocks push, not just Deploy sync** — e.g.\n  `❌ Systemd stale units` from failed units. Fix the host debt, then\n  re-push; do not retry past a FAIL. For failed VENDOR\u002Fstatic units\n  (loaded from `\u002Fusr\u002Flib`, no user override file — check\n  `ls ~\u002F.config\u002Fsystemd\u002Fuser\u002F` first), `systemctl --user reset-failed \u003Cunit>`\n  clears the state; the doctor's `disable --now && rm\n  ~\u002F.config\u002Fsystemd\u002Fuser\u002F\u003Cunit>` suggestion only applies when a user unit\n  file actually exists.\n  The FAIL need not touch your diff, or even this repo: a doc-freshness FAIL on a\n  DIFFERENT repo on the same host (`❌ AGENTS.md (\u003Cother repo>)`) blocks every push on\n  that host until it clears — read WHICH check failed before debugging your commit, and\n  re-run the deploy gate first, since deploying your own change is what usually retires\n  a stale `❌ Deploy sync`. Clearing such a FAIL can be outside your authority — an\n  `AGENTS.md` or `CLAUDE.md` refresh is an approval-gated write to an agent-instruction\n  file, and a TIMED-OUT approval prompt is NO consent: the block states the user has NOT\n  consented and forbids re-attempting the edit via another path (terminal,\n  execute_code, a fresh begin_change). So commit the rest locally, report the blocking\n  check plus the local SHA (\"committed locally, not yet pushed\"), and wait for the\n  operator's explicit authorization — the doctor's `CLAUDE.md (dev repos)` reconcile\n  stays WARN until then. Never bypass the gate or delete the check to silence it.\n- The dogfood gate auto-runs fleet-update; its pull step failing with\n  \"cannot pull with rebase: You have unstaged changes\" is a second\n  fingerprint of the concurrent tree.\n- **Stash-and-restore is the repeatable pattern for rebase-with-peer-changes** when\n  `--autostash` is unavailable (plain `git rebase origin\u002Fmain` after a fetch).\n  Same session, repeated rounds: `git stash push -m '\u003Clabel>' \u003Cthe-3-foreign-files>`\n  → rebase → push → `git stash pop`, verify `git status` shows the foreign files\n  back unstaged. Confirmed safe for files whose diffs were inspected and are\n  unrelated; keep the same file list every round and never add files to it.\n- **A new sub-patch to an already-deployed import can surface as MULTIPLE\n  checksum failures at once** (`Checksum: \u003Cnew-module>` alongside checksums of\n  peer-modified files) — after deploy, re-check the doctor output for which\n  failures REMAIN before assuming your fix was incomplete.\n- Docs-only changes are deploy-exempt (fleet-update does not deploy\n  docs\u002F) — no deploy step needed after a docs push.\n- **Never pass a multi-line or backtick-bearing body to `git commit -m`.** A\n  shell-quoted `-m \"...\"` is expanded by the shell BEFORE git sees it, so\n  backticks in the body run as COMMAND SUBSTITUTION: a message that merely\n  mentions `code`, a log line, or a filename can truncate itself, corrupt the\n  rest of the command line (observed: a chained deploy invocation that then\n  exited 127 with no output at all), or create a stray file named after the\n  fragment — which a later commit then sweeps in as scope drift. Write the\n  message to a temp file and use `git commit -F \u003Cfile>`; `-m` is safe only for a\n  one-line subject carrying no shell metacharacters. After a malformed-commit\n  cleanup, `git status --short` before the next `git add` and look for junk\n  paths (a bare `=`, a fragment word) at the repo root.\n- **A gate-blocked `git commit -F \u003Cfile>` commits with a STALE subject on retry.**\n  The enforcer rejects the WHOLE compound command —\n  `printf \"...msg\" > \u002Ftmp\u002Fmsg && git commit -F \u002Ftmp\u002Fmsg` is blocked before the\n  `printf` runs, so `\u002Ftmp\u002Fmsg` still holds the PREVIOUS task's message. After\n  you satisfy the gate (load `adversarial-verifier`, etc.) and re-run the bare\n  `git commit -F \u002Ftmp\u002Fmsg`, the commit lands with the wrong subject and the\n  pre-commit hook scores it under a misleading task name. Use a UNIQUE temp\n  message file per commit, and after any gated commit verify\n  `git log -1 --format=%s` matches what you meant — `git commit --amend -F\n  \u003Ccorrect-file>` if it does not. **A blocked compound ran NONE of its stages**, so the retry fails\n  for a reason that looks unrelated: `git add \u003Cpath> && git commit …` refused for a missing skill\n  (or any gate) leaves the path UNSTAGED, and the next `git commit -- \u003Cpath>` answers\n  `error: pathspec '\u003Cpath>' did not match any file(s) known to git` — which reads like a missing\n  file rather than a stage that never ran. After clearing a block, re-issue the stages one at a time\n  and confirm with `git diff --cached --name-only` before committing.\n  **The SAME pathspec error has a second cause: the path is UNTRACKED.** A bare `git commit` in a\n  shared tree is refused outright (`❌ BARE COMMIT REFUSED — it would commit whatever is staged …\n  name the paths you changed`), so every commit carries an explicit path list — and a NEW path\n  cannot appear in that list until it is staged: `git add \u003Cnew path>` first, then commit naming the\n  full list. Name the files INDIVIDUALLY rather than passing a directory: a directory pathspec\n  sweeps in whatever else is staged, which is exactly what the bare-commit gate exists to prevent.\n  An empty `git diff --cached --name-only` right after a refused commit means the index is clean —\n  re-stage rather than re-diagnosing, since a peer session sharing the tree can reset it too.\n  **A SEMICOLON (or `|`, `&&`, or newline) IN THE COMMIT MESSAGE makes a correctly-scoped commit read\n  as BARE, and the refusal then looks like a staging problem.** The gate judges the raw command TEXT\n  and splits it on `;`, `|`, `||`, `&&` and newlines BEFORE looking for the `-- \u003Cpaths>` separator, so\n  a message containing any of those cuts the command at the punctuation and the scan of the tail\n  segment — the one carrying `-- path` — never runs the pathspec match\n  (measured 2026-10-23: `git commit -m '…parity can regress same-day; fleet-update.sh lives at\n  ops\u002Fscripts' -- \u003Cpath>` was refused twice, identically, while the same command with a `+` instead of\n  the `;` committed on the first try). Removing the punctuation from the message is the fix; do NOT\n  re-stage or re-diagnose the index, and do not reach for `-o\u002F--only` — the message is what is wrong.\n  **A MULTI-LINE `-m` BODY is the same trap, and `--only` is the correct escape there** — a\n  newline-bearing body (normal for a subject+body message) splits the command text the same way, so\n  the scoped form `git commit -m '\u003Csubject>\\n\\n\u003Cbody>' -- \u003Cpaths>` is refused as BARE even though\n  the pathspec is right. `git commit --only -m … -- \u003Cpaths>` forces git to build the temporary\n  index the guard's \"partial\" verdict requires, so it passes without mutating the message; then\n  verify `git log -1 --format=%s` shows the intended subject. Prefer `-F \u003Cmessage-file>` for any\n  body you control, but when a multi-line `-m` is the shape, `--only` is the structural fix, not a\n  bypass.\n  **`git --git-dir=.git commit … -- \u003Cpaths>` is the verified working shape for a multi-line body on\n  this host.** When even a correctly-separated `git commit -m '\u003Csubject>\\n\\n\u003Cbody>' -- \u003Cpaths>` is\n  refused as BARE (the newline in the body splits the command text into a no-paths tail), prefix\n  `--git-dir=.git`: it makes the scope guard resolve the temp index as \"partial\" and passes, with\n  the pathspec on the same segment. Confirmed 2026-11-10; the plain `-m`-with-paths form was refused\n  twice before `--git-dir=.git` produced the commit. Verify subject with `git log -1 --format=%s`.\n  Prefer `-F \u003Cmessage-file>` whenever you control the file, but `--git-dir=.git` + pathspec is the\n  reliable fallback when a multi-line body is already composed.\n  **A pathspec built from `git diff --cached --name-only --no-renames` COLLAPSES renames and\n  silently drops the sibling content edits.** The `--no-renames` list shows a rename as one\n  added path, so `git commit -F \u003Cmsg> -- $(…)` lands the rename ('1 file changed') and leaves\n  the edited content files UNSTAGED — measured twice in one session. After ANY commit that used\n  a generated pathspec, `git status --short` must be EMPTY; when edits remain, commit them with\n  explicit paths (same message file) rather than re-running the generator.\n\n## Verification\n\n- Blocked push: confirm the working tree is clear of foreign changes, then\n  `git push origin main` succeeds unchanged.\n- PII-blocked write: retry with prose references (no scheme) — the write\n  lands.\n",{"name":5,"author":24,"license":15,"version":25,"metadata":26,"platforms":40,"description":7},"Steadfaste Fleet (Esther)","1.2.0",{"hermes":27},{"tags":28,"related_skills":36},[29,30,31,32,33,34,35],"git","push","governance","dogfood","concurrent","pii","enforcement",[37,38,39],"change-checklist","survey-before-action","git-deployment-workflow",[41,42],"linux","macos","main","9dc0e92c5fa81d4db5292b205716e8ea0c00d10e","skills\u002Fdevops\u002Fshared-repo-push-gates",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":53,"prompt":63,"zipAvailable":64},[54,57,60],{"tool":55,"command":56},"npx","npx skills add lukemcqueen\u002Fsteadfaste-fleet --skill shared-repo-push-gates",{"tool":58,"command":59},"bunx","bunx skills add lukemcqueen\u002Fsteadfaste-fleet --skill shared-repo-push-gates",{"tool":61,"command":62},"pnpm","pnpm dlx skills add lukemcqueen\u002Fsteadfaste-fleet --skill shared-repo-push-gates","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet\u002Fblob\u002Fmain\u002Fskills\u002Fdevops\u002Fshared-repo-push-gates\u002FSKILL.md",true,[66,72,76],{"path":67,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":70,"sourceHtmlUrl":71},"references\u002Fclose-review-bounds.md","REFERENCE","参考文档",14989,"https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet\u002Fblob\u002Fmain\u002Fskills\u002Fdevops\u002Fshared-repo-push-gates\u002Freferences\u002Fclose-review-bounds.md",{"path":73,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":74,"sourceHtmlUrl":75},"references\u002Fskill-drift-gate-2026-08-27.md",1800,"https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet\u002Fblob\u002Fmain\u002Fskills\u002Fdevops\u002Fshared-repo-push-gates\u002Freferences\u002Fskill-drift-gate-2026-08-27.md",{"path":77,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":78,"sourceHtmlUrl":79},"references\u002Fskill-drift-recovery.md",3098,"https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet\u002Fblob\u002Fmain\u002Fskills\u002Fdevops\u002Fshared-repo-push-gates\u002Freferences\u002Fskill-drift-recovery.md",[81,89,96,103,110,117],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":88},"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":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":88},"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":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":88},"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":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":88},"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":111,"name":112,"nameZh":6,"description":113,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":114,"categories":115,"keywords":116,"publishedAt":88},"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":118,"name":119,"nameZh":6,"description":120,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":121,"categories":122,"keywords":123,"publishedAt":88},"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",[],[]]