[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75C0KHJ010RWR7N9F4WB93X":3,"skill-same:01M75C0KHJ010RWR7N9F4WB93X":46},{"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":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":6,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":31,"updatedAt":32,"install":33,"resources":45},"01M75C0KHJ010RWR7N9F4WB93X","showrunner-resume",null,"First action in a new, restarted, or compacted showrunner advisor seat — no arguments; with or without handoff. Reads durable state only and brings every lane back under watch. Not checkpoint or handoff.","zwrose\u002Fsuperheroes","zwrose","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F4790575?v=4","01M75BY6XGBZAMPTCT9R25XXC6","Zach Rose","01M75BY6Y519H0CAD79EFWSW3N",1,"MIT","https:\u002F\u002Fgithub.com\u002Fzwrose\u002Fsuperheroes\u002Fblob\u002Fmain\u002Fplugins\u002Fsuperheroes\u002Fskills\u002Fshowrunner-resume\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: showrunner-resume\ndescription: \"First action in a new, restarted, or compacted showrunner advisor seat — no arguments; with or without handoff. Reads durable state only and brings every lane back under watch. Not checkpoint or handoff.\"\nuser-invocable: true\n---\n\nThis skill speaks in host-neutral actions. Resolve them to your runtime's tools by reading the host tool map at `${CLAUDE_PLUGIN_ROOT}\u002Fhosts\u002F\u003Cyour-host>-tools.md` (the leading variable is this plugin's root directory) — `claude-tools.md` on Claude Code, `codex-tools.md` on Codex.\n\n# showrunner-resume — pick the advisor seat back up\n\nRun this as the **first action** of any new, restarted, or compacted showrunner advisor seat. It takes **no arguments**. It works **with or without a deliberate handoff** — seat death is the common case, and that is why this is the primary command of the pair.\n\nIt reads durable state and **never asks the owner to paste anything**.\n\n## Invocation\n\n| Form | Behavior |\n| --- | --- |\n| `\u002Fsuperheroes:showrunner-resume` | Load the showrunner charter, pin this seat's configuration directory on every launch, read durable state, classify each lane, record terminal outcomes where needed, arm batch watches, and report in three lines. |\n\n## Step 1 — load the charter\n\nLoad the showrunner charter itself (`skills\u002Fshowrunner\u002FSKILL.md` under this plugin's root) so this seat is the advisor before it acts as one.\n\n## Step 2 — pin the instance you are running in\n\nEvery launcher, watch, and canary call this seat makes carries **this** session's own configuration directory, never the previous seat's.\n\n1. **The rule:** each launch pins the calling seat's own `CLAUDE_CONFIG_DIR` (or the host's equivalent configuration root) on the child it spawns and on the ledger record.\n2. **The backstop:** the launcher refuses a launch whose pinned configuration directory is not the calling seat's own, naming both directories in the refusal. Read `${CLAUDE_PLUGIN_ROOT}\u002Flib\u002Flauncher.py` for the refusal tokens (`launch-foreign-instance-pin`, `launch-seat-instance-undetermined`, `premise-stack-fields-incomplete`, `premise-stack-field-invalid`, `premise-stack-layers-planned-incomplete`, `premise-stack-layers-planned-invalid`, `premise-stack-layers-planned-under-position`, `premise-dependency-invalid`, `base-not-layer-head`, `stack-read-unavailable`, `order-mismatch`, `layer-position-occupied`, `premise-adopts-without-stack`, `premise-adopts-invalid`, `premise-adopts-bottom-layer`, `adopts-occupant-missing`, `adopts-branch-mismatch`, `premise-adopts-head-not-on-base`, `premise-continues-pr-without-adoption`, `premise-continues-pr-unread`, `dependency-closed-unmerged`, `dependency-open-ready-pr`, `dependency-read-unavailable`) and the deliberate-override flag (`--allow-foreign-instance`). Do not re-implement the check in this skill.\n3. **The override rule:** pass `--allow-foreign-instance` **only on the owner's instruction, naming the instance — never on the advisor's own judgment.**\n\nOn a host that does not expose the calling session's own process identity, the launcher cannot make that comparison and does not run the pin gate — on such a host the rule is the advisor's alone.\n\n## Step 3 — read durable state, and only these sources\n\nRead **no other source when choosing a row**, and in particular read **no handed-over text as fact**:\n\n1. the resume point at the top of this session's ledger, if one exists;\n2. the launch ledger — the live launches, and a batch's tallies;\n3. the builder-liveness heartbeat sweep;\n4. each lane's recorded leader process, probed for liveness;\n5. each lane's issue and pull request: any **park record** on either, with its stated blocker and any owner or advisor ruling to resume; whether the pull request exists, whether it is still a draft, whether a durable review receipt stands on it (the receipt `skills\u002Fworkhorse\u002FSKILL.md` § 10. Review before handback requires — that section is the term's one definition, and every later use here means that receipt), the **remote** head commit, and the continuous integration conclusion for **that exact commit**, selected by workflow name **plus** head commit — never by \"the newest run\";\n6. each lane's own session transcript — the one named by the **session identifier recorded on that lane's own launch record**, looked up under **the configuration root that launch record itself recorded** — never the seat's own root, and never \"the newest transcript\"; exactly one file may match. Whether the transcript resolved is evidence for the decision table's row 2; the table decides. The reader **stats the file only** and never reads its contents.\n\nWhen row 4 is the candidate for a lane, also read that lane's dead worktrees, local branches, and pushed tip — **only** as the unpushed-work sweep `${CLAUDE_PLUGIN_ROOT}\u002Frubric\u002Flaunch-doctrine.md` § Sweep for unpushed work before adopting defines. Do not re-describe that sweep here.\n\nShell forms for 1–4:\n\n```bash\nROOT_DIR=\"${CLAUDE_PLUGIN_ROOT}\"\nREPO_ROOT=\"\u003Cabsolute path to the project repository>\"\n```\n\nRead the resume point from this session's ledger when one exists at the top — the same pointer checkpoint names, not its contents copied here.\n\n```bash\npython3 -B \"$ROOT_DIR\u002Flib\u002Flauncher.py\" count --repo-root \"$REPO_ROOT\" --batch \"$BATCH_ID\"\n```\n\n```bash\npython3 -B \"$ROOT_DIR\u002Flib\u002Fheartbeat.py\" sweep --repo-root \"$REPO_ROOT\"\n```\n\nProbe each lane's recorded leader pid from the ledger's `started` record — a double-confirmed process check, never a global process match. Detail: `${CLAUDE_PLUGIN_ROOT}\u002Frubric\u002Flaunch-doctrine.md` § Recovery.\n\nFor 5, read each lane's issue and pull request through the host-neutral actions your forge exposes — park records, existence, draft state, durable review receipt, remote head sha, and the integration run for that workflow name on that sha. Do not pin a particular forge's command syntax here.\n\n## Step 4 — choose per lane from the decision table\n\nRead rows **top to bottom**; the **first row whose required evidence holds** decides the lane. **A read that failed, was ambiguous, or was not made satisfies no row's requirement** — a failed read can only push a lane down the table, never select a row that needed that read. The \"evidence required\" column is **required**, not indicative.\n\n| Row | Evidence required | Action |\n| --- | --- | --- |\n| **1. parked** | A park record on the lane's issue or pull request (read completed) whose stated blocker is **not** cleared, and no owner or advisor ruling to resume it. This row needs no process, heartbeat, or transcript read — which is why a park record outranks a failed transcript read. | Report the lane as parked, awaiting a decision; nothing is relaunched, armed, or recorded. |\n| **2. re-arm** | **All** of: the recorded leader process is **positively live** (the double-confirmed probe in Step 3); the lane's heartbeat sweep does **not** classify the lane **terminal** (`parked` or `handback`); the lane's session transcript **resolved** (Step 3, source 6: exactly one file found by the identity rule, not dated into the future) **and** written within `LIVENESS_QUIET_WINDOW_SECONDS` (`lib\u002Fheartbeat.py`, bound in `lib\u002Fwave_watch.py`) of the read. **A transcript alone never re-arms.** | Nothing is relaunched and no outcome recorded; the lane's batch is a candidate for Step 6 arming. |\n| **3. vet** | **All** of: the pull request exists, is **not** a draft, carries a durable review receipt, its **remote** head is the commit that receipt names, and CI concluded success on that exact commit (selected by workflow name plus head commit). | If the ledger carries no terminal outcome, record `handback` first (Step 5); **never relaunched**. |\n| **4. adopt** | **All** of: the recorded leader process is **positively not live** (the probe completed and found it dead); the pull-request read (Step 3, source 5) completed and found the lane's pull request **absent or a draft** — a ready (non-draft) pull request never satisfies this row; the park-record read completed and found either no park record, or a park whose stated blocker is cleared or which the owner or advisor has ruled should resume; and the unpushed-work sweep of `${CLAUDE_PLUGIN_ROOT}\u002Frubric\u002Flaunch-doctrine.md` § Sweep for unpushed work before adopting has run for this lane and its residue is durable. | Record the lane's terminal outcome first (Step 5), then adopt by that section's procedure (cite `${CLAUDE_PLUGIN_ROOT}\u002Frubric\u002Flaunch-doctrine.md` § Sweep for unpushed work before adopting). A stack-layer lane's adoption premise keeps its `stack` and `layerPosition`, and adds `adopts: \u003CPR number>` only when a pull request already holds that position above the bottom layer (`${CLAUDE_PLUGIN_ROOT}\u002Frubric\u002Flaunch-doctrine.md` § Recovery). |\n| **5. unresolved** | None — the last row, for any lane no earlier row could establish. | The lane is named in the report with the read that failed or the evidence that is missing; nothing is relaunched, armed, or recorded. |\n\n**A cloud lane** (its launch record says it runs in the cloud) has no leader process or session transcript to read. Its evidence is the session's state in the host's session listing and its GitHub activity age from the wave watch's `cloudLanes` entry (`activityAgeSeconds`; an absent age is unknown), given to `cloud_recover.py assess`. That answer stands in only for row 2's process, heartbeat and transcript evidence and for row 4's process-liveness and unpushed-work-sweep evidence; every other predicate of those rows still applies, so row 4 still needs the pull-request read to find the pull request absent or a draft, and the park-record read. `working` satisfies row 2. `stopped` satisfies row 4, and the adoption is the cloud recovery in `${CLAUDE_PLUGIN_ROOT}\u002Fskills\u002Fshowrunner\u002Freference\u002Forchestration.md` § Adoption mechanics, which replaces the sweep with the ask to push. `ask-to-push` and `awaiting-handover` are actionable: for `ask-to-push`, run that section's ask steps (`ask`, then `asked`); for both, keep the lane's batch watched (Step 6 arms it as for row 2) and reassess on the next resume. A cloud lane whose outcome is `refusal` and that `relaunch-refusal` still accepts (no later launch has started) is relaunched by that section's relaunch step (`relaunch-refusal`, then `launcher.py launch --place cloud`) before the generic `ended` rule; a refusal from `relaunch-refusal` satisfies no row. Any other answer (`unresolved`, `ended`) satisfies no row.\n\nA finished lane is never spent again as a fresh launch, and an unreadable lane is never treated as a dead one.\n\n## Step 5 — record terminal outcomes\n\nApplies to lanes the decision table sent to **row 3** (when the ledger lacks an outcome) and **row 4**.\n\nBefore its successor launches, record the lane's terminal outcome using the vocabulary the ledger spells exactly: **`handback`**, **`park`**, **`refusal`**, **`died`**.\n\nIn the foreground, call the outcome verb **only with a zero wait for the child to exit** (`--await-exit 0`). Any positive wait is a background task — a live child is a legitimate refusal to be re-attempted later, never something to wait out in the foreground.\n\n```bash\npython3 -B \"$ROOT_DIR\u002Flib\u002Flauncher.py\" record-outcome \\\n  --repo-root \"$REPO_ROOT\" --launch-id \"$LAUNCH_ID\" \\\n  --outcome died --evidence \"\u003Cone line>\" --await-exit 0\n```\n\n## Step 6 — arm one watch loop per live batch, after checking none is already running for it\n\nArming applies to batches holding a **row-2** lane.\n\n**The check comes first.** Its authoritative form is a **read-only process listing** for a wave-watch loop naming that batch. Where the host also offers an inventory of this session's own background tasks, read that too. **Nothing is ever killed on either reading.**\n\nThe check is **fail-closed:** a hit, an ambiguous reading, an unavailable listing, or a failed one all mean **do not arm this batch**; name it in the report instead. Arming happens only on a listing that completed and found nothing.\n\n\u003C!-- WORKAROUND: duplicate-loop check via process listing before background arming\n     delete-when: a durable batch watcher makes the duplicate-loop check and this arming shape unnecessary -->\n\n**Arming is a background task, always.** Cite `${CLAUDE_PLUGIN_ROOT}\u002Fskills\u002Fshowrunner\u002Freference\u002Fwave-watch.md` for the arming pattern and its flags rather than restating them.\n\nThe reference's one-off check returns at once and is safe to run before arming, but a mistyped batch id reads as a quiet batch (`timer`), so check the batch id against the launch record rather than trusting the check.\n\n**Residual:** the check and the arm are two steps, so two advisor seats resuming the same project at the same moment could both find nothing and both arm; `loop` itself also refuses a second live loop on the same batch (`loop-already-live`), so two seats racing to arm end with one watcher and one refusal, not two watchers. This skill rests on there being one advisor seat per project; do not imply the check is atomic.\n\n## Step 7 — report in three lines\n\nExactly three lines:\n\n1. **Seat and reads** — which seat this is, which configuration directory it pinned, and what durable sources it read.\n2. **Lanes by branch** — counts and lane identifiers grouped by parked, re-arm, vet, adopt, and unresolved.\n3. **Watches and owner items** — watches armed, batches not armed and why, and anything owed to the owner.\n\n### Worked example (row 3 vet and row 2 re-arm)\n\n```text\nSeat: showrunner advisor, instance ~\u002F.claude. Read resume point, ledger batch wave-a, heartbeat sweep, process probes, PR #220 and #221 CI by workflow+sha, session transcripts (stat only).\nLanes: vet 1 (#220 — PR exists, non-draft, durable review receipt, remote head = receipt commit, CI success on that sha by workflow name); re-arm 1 (#221 — leader positively live, heartbeat nonterminal, transcript resolved and written within `LIVENESS_QUIET_WINDOW_SECONDS`); adopt 0; parked 0; unresolved 0.\nWatches: armed loop for wave-a. None skipped. Owner: none.\n```\n\n### Worked example (row 5 unresolved, row 2 re-arm, batch not armed)\n\n```text\nSeat: showrunner advisor, instance ~\u002F.claude-two. Read ledger batch wave-b; heartbeat sweep; process probes, session transcripts (stat only); PR #305 head read failed.\nLanes: vet 0; re-arm 1 (#306 — leader positively live, heartbeat nonterminal, transcript resolved and written within `LIVENESS_QUIET_WINDOW_SECONDS`); adopt 0; parked 0; unresolved 1 (#305 — row 5: remote head read failed).\nWatches: wave-b not armed — process listing ambiguous (two wave_watch.py matches). Owner: re-run resume after clearing duplicate watcher or name which batch is canonical.\n```\n\n### Worked example (row 1 parked despite unresolvable transcript)\n\n```text\nSeat: showrunner advisor, instance ~\u002F.claude. Read ledger batch wave-c, park record on #330 issue, session transcript lookup for #330 failed (no file).\nLanes: vet 0; re-arm 0; adopt 0; parked 1 (#330 — row 1: park record read completed, blocker not cleared, no advisor ruling to resume); unresolved 0.\nWatches: wave-c not armed — no row-2 lane in the batch. Owner: decision on #330 park blocker.\n```\n\n### Worked example (row 4 adopt after the unpushed-work sweep)\n\n```text\nSeat: showrunner advisor, instance ~\u002F.claude. Read resume point, ledger batch wave-d, heartbeat sweep, process probes, PR #340 (draft), park-record read (none), unpushed-work sweep per launch-doctrine § Sweep for unpushed work before adopting.\nLanes: vet 0; re-arm 0; adopt 1 (#340 — row 4: leader positively not live, pull-request read completed, PR a draft, park-record read completed no park record, unpushed-work sweep ran and residue durable — one unpushed commit pushed to branch wh\u002F340-fix at abc1234; terminal outcome died recorded before adoption); parked 0; unresolved 0.\nWatches: wave-d not armed — no row-2 lane in the batch. Owner: none.\n```\n\n### Worked example (row 5 for a lane that handed back before the seat died)\n\n```text\nSeat: showrunner advisor, instance ~\u002F.claude. Read resume point, ledger batch wave-e, heartbeat sweep, process probes, PR #350 (read completed: ready, non-draft), durable review receipt on #350 (not establishable), CI by workflow+sha.\nLanes: vet 0; re-arm 0; adopt 0; parked 0; unresolved 1 (#350 — row 5: leader positively not live, PR ready (non-draft), durable review receipt not establishable — not relaunched).\nWatches: wave-e not armed — no row-2 lane in the batch. Owner: #350 is ready but its durable review receipt could not be established.\n```\n\n## No foreground step waits on a live lane\n\nA seat that blocks in the foreground is a seat the owner cannot reach.\n\nThree instances: the one-off watch verb returns at once and never waits; the terminal-outcome verb runs in the foreground only with a zero wait; arming is a background task only.\n\n## Failure modes\n\n| Failure | Outcome |\n| --- | --- |\n| The ledger is missing or unreadable | Preserve every lane as unresolved. Stop the transition. |\n| The ledger fold fails (a live-launch read that cannot fold returns an empty list) | Never read an empty list as \"no live lanes.\" Preserve as unresolved. Stop. |\n| A per-lane read fails or is ambiguous (heartbeat not-ok\u002Funknown class — blocks only rows that require a heartbeat read; uncertain process probe; pull-request\u002Freceipt\u002Fhead\u002FCI read failure; no session identifier on the launch record; session transcript unresolvable or outside the quiet window; the unpushed-work sweep for a row-4 candidate cannot be completed) | That read satisfies no row; the decision table decides (Step 4). |\n| The process listing for the duplicate check fails or is ambiguous | Do not arm that batch. Name it in the report. |\n| The outcome verb or the amendment verb refuses | Stop the transition for that lane and name it in the report. |\n| Arming fails | Name the batch in the report. Do not claim the watch is running. |\n| The instance pin cannot be determined on this host | The pin rule is yours alone; if you cannot determine the instance, name that in line 1 and do not launch until you can. |\n\n## Common mistakes\n\n| Mistake | Fix |\n| --- | --- |\n| Skipping this on a restarted or compacted seat | This is the first action — run it before dispatching or vetting. |\n| Treating handed-over chat text as fact | Read only the sources Step 3 names. |\n| Relaunching a lane whose PR already vets | → the decision table decides; row 3 is never relaunched. |\n| Treating a missing heartbeat as a dead builder | → a missing read satisfies no row; see Step 4. |\n| Using the newest CI run instead of workflow+sha | Select the run for the remote head commit the receipt names. |\n| Killing a duplicate watcher before arming | The duplicate check is read-only; never kill on either reading. |\n| Passing `--allow-foreign-instance` on your own judgment | Only on the owner's instruction, naming the instance. |\n| Waiting in the foreground for a live child to exit | Use `--await-exit 0` in the foreground; positive waits are background tasks. |\n","This skill speaks in host-neutral actions. Resolve them to your runtime's tools by reading the host tool map at `${CLAUDE_PLUGIN_ROOT}\u002Fhosts\u002F\u003Cyour-host>-tools.md` (the leading variable is this plugin's root directory) — `claude-tools.md` on Claude Code, `codex-tools.md` on Codex.\n\n# showrunner-resume — pick the advisor seat back up\n\nRun this as the **first action** of any new, restarted, or compacted showrunner advisor seat. It takes **no arguments**. It works **with or without a deliberate handoff** — seat death is the common case, and that is why this is the primary command of the pair.\n\nIt reads durable state and **never asks the owner to paste anything**.\n\n## Invocation\n\n| Form | Behavior |\n| --- | --- |\n| `\u002Fsuperheroes:showrunner-resume` | Load the showrunner charter, pin this seat's configuration directory on every launch, read durable state, classify each lane, record terminal outcomes where needed, arm batch watches, and report in three lines. |\n\n## Step 1 — load the charter\n\nLoad the showrunner charter itself (`skills\u002Fshowrunner\u002FSKILL.md` under this plugin's root) so this seat is the advisor before it acts as one.\n\n## Step 2 — pin the instance you are running in\n\nEvery launcher, watch, and canary call this seat makes carries **this** session's own configuration directory, never the previous seat's.\n\n1. **The rule:** each launch pins the calling seat's own `CLAUDE_CONFIG_DIR` (or the host's equivalent configuration root) on the child it spawns and on the ledger record.\n2. **The backstop:** the launcher refuses a launch whose pinned configuration directory is not the calling seat's own, naming both directories in the refusal. Read `${CLAUDE_PLUGIN_ROOT}\u002Flib\u002Flauncher.py` for the refusal tokens (`launch-foreign-instance-pin`, `launch-seat-instance-undetermined`, `premise-stack-fields-incomplete`, `premise-stack-field-invalid`, `premise-stack-layers-planned-incomplete`, `premise-stack-layers-planned-invalid`, `premise-stack-layers-planned-under-position`, `premise-dependency-invalid`, `base-not-layer-head`, `stack-read-unavailable`, `order-mismatch`, `layer-position-occupied`, `premise-adopts-without-stack`, `premise-adopts-invalid`, `premise-adopts-bottom-layer`, `adopts-occupant-missing`, `adopts-branch-mismatch`, `premise-adopts-head-not-on-base`, `premise-continues-pr-without-adoption`, `premise-continues-pr-unread`, `dependency-closed-unmerged`, `dependency-open-ready-pr`, `dependency-read-unavailable`) and the deliberate-override flag (`--allow-foreign-instance`). Do not re-implement the check in this skill.\n3. **The override rule:** pass `--allow-foreign-instance` **only on the owner's instruction, naming the instance — never on the advisor's own judgment.**\n\nOn a host that does not expose the calling session's own process identity, the launcher cannot make that comparison and does not run the pin gate — on such a host the rule is the advisor's alone.\n\n## Step 3 — read durable state, and only these sources\n\nRead **no other source when choosing a row**, and in particular read **no handed-over text as fact**:\n\n1. the resume point at the top of this session's ledger, if one exists;\n2. the launch ledger — the live launches, and a batch's tallies;\n3. the builder-liveness heartbeat sweep;\n4. each lane's recorded leader process, probed for liveness;\n5. each lane's issue and pull request: any **park record** on either, with its stated blocker and any owner or advisor ruling to resume; whether the pull request exists, whether it is still a draft, whether a durable review receipt stands on it (the receipt `skills\u002Fworkhorse\u002FSKILL.md` § 10. Review before handback requires — that section is the term's one definition, and every later use here means that receipt), the **remote** head commit, and the continuous integration conclusion for **that exact commit**, selected by workflow name **plus** head commit — never by \"the newest run\";\n6. each lane's own session transcript — the one named by the **session identifier recorded on that lane's own launch record**, looked up under **the configuration root that launch record itself recorded** — never the seat's own root, and never \"the newest transcript\"; exactly one file may match. Whether the transcript resolved is evidence for the decision table's row 2; the table decides. The reader **stats the file only** and never reads its contents.\n\nWhen row 4 is the candidate for a lane, also read that lane's dead worktrees, local branches, and pushed tip — **only** as the unpushed-work sweep `${CLAUDE_PLUGIN_ROOT}\u002Frubric\u002Flaunch-doctrine.md` § Sweep for unpushed work before adopting defines. Do not re-describe that sweep here.\n\nShell forms for 1–4:\n\n```bash\nROOT_DIR=\"${CLAUDE_PLUGIN_ROOT}\"\nREPO_ROOT=\"\u003Cabsolute path to the project repository>\"\n```\n\nRead the resume point from this session's ledger when one exists at the top — the same pointer checkpoint names, not its contents copied here.\n\n```bash\npython3 -B \"$ROOT_DIR\u002Flib\u002Flauncher.py\" count --repo-root \"$REPO_ROOT\" --batch \"$BATCH_ID\"\n```\n\n```bash\npython3 -B \"$ROOT_DIR\u002Flib\u002Fheartbeat.py\" sweep --repo-root \"$REPO_ROOT\"\n```\n\nProbe each lane's recorded leader pid from the ledger's `started` record — a double-confirmed process check, never a global process match. Detail: `${CLAUDE_PLUGIN_ROOT}\u002Frubric\u002Flaunch-doctrine.md` § Recovery.\n\nFor 5, read each lane's issue and pull request through the host-neutral actions your forge exposes — park records, existence, draft state, durable review receipt, remote head sha, and the integration run for that workflow name on that sha. Do not pin a particular forge's command syntax here.\n\n## Step 4 — choose per lane from the decision table\n\nRead rows **top to bottom**; the **first row whose required evidence holds** decides the lane. **A read that failed, was ambiguous, or was not made satisfies no row's requirement** — a failed read can only push a lane down the table, never select a row that needed that read. The \"evidence required\" column is **required**, not indicative.\n\n| Row | Evidence required | Action |\n| --- | --- | --- |\n| **1. parked** | A park record on the lane's issue or pull request (read completed) whose stated blocker is **not** cleared, and no owner or advisor ruling to resume it. This row needs no process, heartbeat, or transcript read — which is why a park record outranks a failed transcript read. | Report the lane as parked, awaiting a decision; nothing is relaunched, armed, or recorded. |\n| **2. re-arm** | **All** of: the recorded leader process is **positively live** (the double-confirmed probe in Step 3); the lane's heartbeat sweep does **not** classify the lane **terminal** (`parked` or `handback`); the lane's session transcript **resolved** (Step 3, source 6: exactly one file found by the identity rule, not dated into the future) **and** written within `LIVENESS_QUIET_WINDOW_SECONDS` (`lib\u002Fheartbeat.py`, bound in `lib\u002Fwave_watch.py`) of the read. **A transcript alone never re-arms.** | Nothing is relaunched and no outcome recorded; the lane's batch is a candidate for Step 6 arming. |\n| **3. vet** | **All** of: the pull request exists, is **not** a draft, carries a durable review receipt, its **remote** head is the commit that receipt names, and CI concluded success on that exact commit (selected by workflow name plus head commit). | If the ledger carries no terminal outcome, record `handback` first (Step 5); **never relaunched**. |\n| **4. adopt** | **All** of: the recorded leader process is **positively not live** (the probe completed and found it dead); the pull-request read (Step 3, source 5) completed and found the lane's pull request **absent or a draft** — a ready (non-draft) pull request never satisfies this row; the park-record read completed and found either no park record, or a park whose stated blocker is cleared or which the owner or advisor has ruled should resume; and the unpushed-work sweep of `${CLAUDE_PLUGIN_ROOT}\u002Frubric\u002Flaunch-doctrine.md` § Sweep for unpushed work before adopting has run for this lane and its residue is durable. | Record the lane's terminal outcome first (Step 5), then adopt by that section's procedure (cite `${CLAUDE_PLUGIN_ROOT}\u002Frubric\u002Flaunch-doctrine.md` § Sweep for unpushed work before adopting). A stack-layer lane's adoption premise keeps its `stack` and `layerPosition`, and adds `adopts: \u003CPR number>` only when a pull request already holds that position above the bottom layer (`${CLAUDE_PLUGIN_ROOT}\u002Frubric\u002Flaunch-doctrine.md` § Recovery). |\n| **5. unresolved** | None — the last row, for any lane no earlier row could establish. | The lane is named in the report with the read that failed or the evidence that is missing; nothing is relaunched, armed, or recorded. |\n\n**A cloud lane** (its launch record says it runs in the cloud) has no leader process or session transcript to read. Its evidence is the session's state in the host's session listing and its GitHub activity age from the wave watch's `cloudLanes` entry (`activityAgeSeconds`; an absent age is unknown), given to `cloud_recover.py assess`. That answer stands in only for row 2's process, heartbeat and transcript evidence and for row 4's process-liveness and unpushed-work-sweep evidence; every other predicate of those rows still applies, so row 4 still needs the pull-request read to find the pull request absent or a draft, and the park-record read. `working` satisfies row 2. `stopped` satisfies row 4, and the adoption is the cloud recovery in `${CLAUDE_PLUGIN_ROOT}\u002Fskills\u002Fshowrunner\u002Freference\u002Forchestration.md` § Adoption mechanics, which replaces the sweep with the ask to push. `ask-to-push` and `awaiting-handover` are actionable: for `ask-to-push`, run that section's ask steps (`ask`, then `asked`); for both, keep the lane's batch watched (Step 6 arms it as for row 2) and reassess on the next resume. A cloud lane whose outcome is `refusal` and that `relaunch-refusal` still accepts (no later launch has started) is relaunched by that section's relaunch step (`relaunch-refusal`, then `launcher.py launch --place cloud`) before the generic `ended` rule; a refusal from `relaunch-refusal` satisfies no row. Any other answer (`unresolved`, `ended`) satisfies no row.\n\nA finished lane is never spent again as a fresh launch, and an unreadable lane is never treated as a dead one.\n\n## Step 5 — record terminal outcomes\n\nApplies to lanes the decision table sent to **row 3** (when the ledger lacks an outcome) and **row 4**.\n\nBefore its successor launches, record the lane's terminal outcome using the vocabulary the ledger spells exactly: **`handback`**, **`park`**, **`refusal`**, **`died`**.\n\nIn the foreground, call the outcome verb **only with a zero wait for the child to exit** (`--await-exit 0`). Any positive wait is a background task — a live child is a legitimate refusal to be re-attempted later, never something to wait out in the foreground.\n\n```bash\npython3 -B \"$ROOT_DIR\u002Flib\u002Flauncher.py\" record-outcome \\\n  --repo-root \"$REPO_ROOT\" --launch-id \"$LAUNCH_ID\" \\\n  --outcome died --evidence \"\u003Cone line>\" --await-exit 0\n```\n\n## Step 6 — arm one watch loop per live batch, after checking none is already running for it\n\nArming applies to batches holding a **row-2** lane.\n\n**The check comes first.** Its authoritative form is a **read-only process listing** for a wave-watch loop naming that batch. Where the host also offers an inventory of this session's own background tasks, read that too. **Nothing is ever killed on either reading.**\n\nThe check is **fail-closed:** a hit, an ambiguous reading, an unavailable listing, or a failed one all mean **do not arm this batch**; name it in the report instead. Arming happens only on a listing that completed and found nothing.\n\n\u003C!-- WORKAROUND: duplicate-loop check via process listing before background arming\n     delete-when: a durable batch watcher makes the duplicate-loop check and this arming shape unnecessary -->\n\n**Arming is a background task, always.** Cite `${CLAUDE_PLUGIN_ROOT}\u002Fskills\u002Fshowrunner\u002Freference\u002Fwave-watch.md` for the arming pattern and its flags rather than restating them.\n\nThe reference's one-off check returns at once and is safe to run before arming, but a mistyped batch id reads as a quiet batch (`timer`), so check the batch id against the launch record rather than trusting the check.\n\n**Residual:** the check and the arm are two steps, so two advisor seats resuming the same project at the same moment could both find nothing and both arm; `loop` itself also refuses a second live loop on the same batch (`loop-already-live`), so two seats racing to arm end with one watcher and one refusal, not two watchers. This skill rests on there being one advisor seat per project; do not imply the check is atomic.\n\n## Step 7 — report in three lines\n\nExactly three lines:\n\n1. **Seat and reads** — which seat this is, which configuration directory it pinned, and what durable sources it read.\n2. **Lanes by branch** — counts and lane identifiers grouped by parked, re-arm, vet, adopt, and unresolved.\n3. **Watches and owner items** — watches armed, batches not armed and why, and anything owed to the owner.\n\n### Worked example (row 3 vet and row 2 re-arm)\n\n```text\nSeat: showrunner advisor, instance ~\u002F.claude. Read resume point, ledger batch wave-a, heartbeat sweep, process probes, PR #220 and #221 CI by workflow+sha, session transcripts (stat only).\nLanes: vet 1 (#220 — PR exists, non-draft, durable review receipt, remote head = receipt commit, CI success on that sha by workflow name); re-arm 1 (#221 — leader positively live, heartbeat nonterminal, transcript resolved and written within `LIVENESS_QUIET_WINDOW_SECONDS`); adopt 0; parked 0; unresolved 0.\nWatches: armed loop for wave-a. None skipped. Owner: none.\n```\n\n### Worked example (row 5 unresolved, row 2 re-arm, batch not armed)\n\n```text\nSeat: showrunner advisor, instance ~\u002F.claude-two. Read ledger batch wave-b; heartbeat sweep; process probes, session transcripts (stat only); PR #305 head read failed.\nLanes: vet 0; re-arm 1 (#306 — leader positively live, heartbeat nonterminal, transcript resolved and written within `LIVENESS_QUIET_WINDOW_SECONDS`); adopt 0; parked 0; unresolved 1 (#305 — row 5: remote head read failed).\nWatches: wave-b not armed — process listing ambiguous (two wave_watch.py matches). Owner: re-run resume after clearing duplicate watcher or name which batch is canonical.\n```\n\n### Worked example (row 1 parked despite unresolvable transcript)\n\n```text\nSeat: showrunner advisor, instance ~\u002F.claude. Read ledger batch wave-c, park record on #330 issue, session transcript lookup for #330 failed (no file).\nLanes: vet 0; re-arm 0; adopt 0; parked 1 (#330 — row 1: park record read completed, blocker not cleared, no advisor ruling to resume); unresolved 0.\nWatches: wave-c not armed — no row-2 lane in the batch. Owner: decision on #330 park blocker.\n```\n\n### Worked example (row 4 adopt after the unpushed-work sweep)\n\n```text\nSeat: showrunner advisor, instance ~\u002F.claude. Read resume point, ledger batch wave-d, heartbeat sweep, process probes, PR #340 (draft), park-record read (none), unpushed-work sweep per launch-doctrine § Sweep for unpushed work before adopting.\nLanes: vet 0; re-arm 0; adopt 1 (#340 — row 4: leader positively not live, pull-request read completed, PR a draft, park-record read completed no park record, unpushed-work sweep ran and residue durable — one unpushed commit pushed to branch wh\u002F340-fix at abc1234; terminal outcome died recorded before adoption); parked 0; unresolved 0.\nWatches: wave-d not armed — no row-2 lane in the batch. Owner: none.\n```\n\n### Worked example (row 5 for a lane that handed back before the seat died)\n\n```text\nSeat: showrunner advisor, instance ~\u002F.claude. Read resume point, ledger batch wave-e, heartbeat sweep, process probes, PR #350 (read completed: ready, non-draft), durable review receipt on #350 (not establishable), CI by workflow+sha.\nLanes: vet 0; re-arm 0; adopt 0; parked 0; unresolved 1 (#350 — row 5: leader positively not live, PR ready (non-draft), durable review receipt not establishable — not relaunched).\nWatches: wave-e not armed — no row-2 lane in the batch. Owner: #350 is ready but its durable review receipt could not be established.\n```\n\n## No foreground step waits on a live lane\n\nA seat that blocks in the foreground is a seat the owner cannot reach.\n\nThree instances: the one-off watch verb returns at once and never waits; the terminal-outcome verb runs in the foreground only with a zero wait; arming is a background task only.\n\n## Failure modes\n\n| Failure | Outcome |\n| --- | --- |\n| The ledger is missing or unreadable | Preserve every lane as unresolved. Stop the transition. |\n| The ledger fold fails (a live-launch read that cannot fold returns an empty list) | Never read an empty list as \"no live lanes.\" Preserve as unresolved. Stop. |\n| A per-lane read fails or is ambiguous (heartbeat not-ok\u002Funknown class — blocks only rows that require a heartbeat read; uncertain process probe; pull-request\u002Freceipt\u002Fhead\u002FCI read failure; no session identifier on the launch record; session transcript unresolvable or outside the quiet window; the unpushed-work sweep for a row-4 candidate cannot be completed) | That read satisfies no row; the decision table decides (Step 4). |\n| The process listing for the duplicate check fails or is ambiguous | Do not arm that batch. Name it in the report. |\n| The outcome verb or the amendment verb refuses | Stop the transition for that lane and name it in the report. |\n| Arming fails | Name the batch in the report. Do not claim the watch is running. |\n| The instance pin cannot be determined on this host | The pin rule is yours alone; if you cannot determine the instance, name that in line 1 and do not launch until you can. |\n\n## Common mistakes\n\n| Mistake | Fix |\n| --- | --- |\n| Skipping this on a restarted or compacted seat | This is the first action — run it before dispatching or vetting. |\n| Treating handed-over chat text as fact | Read only the sources Step 3 names. |\n| Relaunching a lane whose PR already vets | → the decision table decides; row 3 is never relaunched. |\n| Treating a missing heartbeat as a dead builder | → a missing read satisfies no row; see Step 4. |\n| Using the newest CI run instead of workflow+sha | Select the run for the remote head commit the receipt names. |\n| Killing a duplicate watcher before arming | The duplicate check is read-only; never kill on either reading. |\n| Passing `--allow-foreign-instance` on your own judgment | Only on the owner's instruction, naming the instance. |\n| Waiting in the foreground for a live child to exit | Use `--await-exit 0` in the foreground; positive waits are background tasks. |\n",{"name":5,"description":7,"user-invocable":24},true,"main","8558c28e0835eb952532ba4bd4369c1df3a43ddf","plugins\u002Fsuperheroes\u002Fskills\u002Fshowrunner-resume",0,"https:\u002F\u002Fgithub.com\u002Fzwrose\u002Fsuperheroes","https:\u002F\u002Fgithub.com\u002Fzwrose","Learning, tinkering, and other such stuff. ","2026-11-15 04:46:57",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":24},[35,38,41],{"tool":36,"command":37},"npx","npx skills add zwrose\u002Fsuperheroes --skill showrunner-resume",{"tool":39,"command":40},"bunx","bunx skills add zwrose\u002Fsuperheroes --skill showrunner-resume",{"tool":42,"command":43},"pnpm","pnpm dlx skills add zwrose\u002Fsuperheroes --skill showrunner-resume","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fzwrose\u002Fsuperheroes\u002Fblob\u002Fmain\u002Fplugins\u002Fsuperheroes\u002Fskills\u002Fshowrunner-resume\u002FSKILL.md",[],[47,54,61,68,75,82],{"skillNo":48,"name":49,"nameZh":6,"description":50,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":51,"categories":52,"keywords":53,"publishedAt":19},"01M75C14YXJ1W26N03VHRDP38K","test-pilot-plan","Use when a PR\u002Fbranch needs a manual test plan with seeded data — \"write a test plan\", \"seed test data for this PR\", \"set up manual testing\". Seeds scenarios via the test-pilot engine and posts a checkbox plan to the PR. Does NOT execute the plan (that is test-pilot-execute).","https:\u002F\u002Fgithub.com\u002Fzwrose\u002Fsuperheroes\u002Fblob\u002Fmain\u002Fplugins\u002Fsuperheroes\u002Fskills\u002Ftest-pilot-plan\u002FSKILL.md",[],[],{"skillNo":55,"name":56,"nameZh":6,"description":57,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":19},"01M75C11VXVBT356RSPSYFHM2W","test-pilot-init","Internal helper reached from `superheroes:configure` to refresh test-pilot's profile, seeding blocks, and browser tooling layer. Not a front door; owners run `superheroes:configure` instead.","https:\u002F\u002Fgithub.com\u002Fzwrose\u002Fsuperheroes\u002Fblob\u002Fmain\u002Fplugins\u002Fsuperheroes\u002Fskills\u002Ftest-pilot-init\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":19},"01M75C0YKSEDN9TQCSA2MY01WQ","test-pilot-execute","Use when a test-pilot plan should be exercised before human spot-check — \"run the test plan\", \"pilot this PR\", \"verify the branch in the browser\". Drives the app via a browser MCP, or the lane's simulated iPhone, and posts a results comment. Observe-and-report only — a bug it finds is a finding, never an edit.","https:\u002F\u002Fgithub.com\u002Fzwrose\u002Fsuperheroes\u002Fblob\u002Fmain\u002Fplugins\u002Fsuperheroes\u002Fskills\u002Ftest-pilot-execute\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M75C0FC2AADQP6HR4XC94NV0","showrunner-handoff","Use in the showrunner advisor seat you are leaving while it is still alive — deliberate handover before the seat goes dark. Leaves durable state for the incoming seat. Emits no paste block. Not checkpoint (`\u002Fcompact`); not showrunner-resume (incoming seat).","https:\u002F\u002Fgithub.com\u002Fzwrose\u002Fsuperheroes\u002Fblob\u002Fmain\u002Fplugins\u002Fsuperheroes\u002Fskills\u002Fshowrunner-handoff\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M75C0C5908SMD71067S8JJGR","review-init","Internal helper reached from `superheroes:configure` to refresh review-crew's calibration layer for a project. Not a front door; owners run `superheroes:configure` instead.","https:\u002F\u002Fgithub.com\u002Fzwrose\u002Fsuperheroes\u002Fblob\u002Fmain\u002Fplugins\u002Fsuperheroes\u002Fskills\u002Freview-init\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M75C08CZA02HRPRJ1TFJSS9H","review-code","Use when reviewing code changes on a local branch or an open pull request before merging — including when you want the review's findings auto-fixed locally. Gives a multi-specialist review with a fix-and-re-review loop. Not a whole-repo debt sweep (that is guardian).","https:\u002F\u002Fgithub.com\u002Fzwrose\u002Fsuperheroes\u002Fblob\u002Fmain\u002Fplugins\u002Fsuperheroes\u002Fskills\u002Freview-code\u002FSKILL.md",[],[]]