[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7DH4B8JFZTJRYMRC695MEK0":3,"skill-same:01M7DH4B8JFZTJRYMRC695MEK0":47},{"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":31,"ownerDescription":6,"updatedAt":32,"install":33,"resources":46},"01M7DH4B8JFZTJRYMRC695MEK0","run-spec-error-handling",null,"What \u002Frun-spec does when a task goes wrong — classify real versus bookkeeping-only failures, the three-attempt retry ladder with failure digests, lost and stalled workers, blocked and maintainer tasks, deadlock and cycles, and when the run stops","turbokast\u002Fmythhelm","turbokast","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F335585049?v=4","01M7DGYYSHNA1BW1Y9GJFN6DVC","TurboKast","01M7DGYYT6GTPCFADDKS5ZXM1Y",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fturbokast\u002Fmythhelm\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frun-spec-error-handling\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: run-spec-error-handling\ndescription: What \u002Frun-spec does when a task goes wrong — classify real versus bookkeeping-only failures, the three-attempt retry ladder with failure digests, lost and stalled workers, blocked and maintainer tasks, deadlock and cycles, and when the run stops\nargument-hint: \"\u003Cspec-name> --task N\"\n---\n\n# Run Spec — Error Handling\n\nA failed task is classified before anything is re-dispatched, because the cheapest correct response differs by class, and a wrong class wastes an attempt or merges broken work.\n\n## Input\n\n`$ARGUMENTS`: the spec and the task. `\u002Frun-spec` reads this page inline.\n\n## Invocation contexts\n\n- **Slash command**: classifies the named task's last result and prints the next action.\n- **Model-invoked**: the same.\n- **Non-interactive**: the same. Every escalation stops the run with the stop report (`\u002Frun-spec-completion`); nothing waits for an answer.\n\n## Classes\n\n| Class | Signal | Response | Costs an attempt |\n|---|---|---|---|\n| Real failure | acceptance re-run fails, gates red, code absent, or the worker reported `blocked` on its own defect | retry ladder | yes |\n| Bookkeeping-only | code, tests and acceptance verified; only the entry, hand-off, report or markers are wrong | fix it through the worker (below) | no |\n| Lost | the Agent call returned nothing, or no report and no branch | look before retrying (below) | yes, once confirmed |\n| Stalled | the worker says it is waiting on something | resume it with the evidence (below) | no |\n| Blocked on a decision | `blocked` with a question the spec does not answer | stop: escalation | no |\n| Not-ready after review | three review rounds (`\u002Frun-spec-worktree-merge`) | stop: escalation | no |\n\nRecord each classification: `python3 scripts\u002Fharness\u002Frunspec.py event --spec \u003Cspec> --kind fail --task \u003CN> --attempt \u003CK> --detail \"\u003Cclass>: \u003Cone line>\"`.\n\n## Retry ladder\n\nAt most three attempts per task, each a fresh agent of the same `Domain\u002Fagent`:\n\n1. **Attempt 1**: the first-attempt template.\n2. **Attempt 2**: the retry template with the attempt-1 digest.\n3. **Attempt 3**: the retry template with both digests.\n\nThe digest is at most ten lines: the error class, the failing check with its exact failing lines (at most three), what was tried, the pull request and branch if any, and a one-line hypothesis. It comes from the verification output and the `fail` event, never from pasted logs. A pull request an earlier attempt opened is continued, not duplicated. After the third failure the run stops: escalation. Budgets never grow on retry; a task that keeps overrunning is re-tiered in `tasks.md` by a spec change.\n\n## Bookkeeping-only\n\nThe work is right; only its record is not. First, `SendMessage` the same worker with the bookkeeping-fix template (`\u002Frun-spec-dispatch`): it has the context to write the entry and hand-off correctly. When the worker cannot be resumed:\n\n1. Dispatch `completion-clerk` (no `effort`) with the worktree path, the task number and the facts it may not recompute: the pull request number, the commit SHAs, the files the pull request changes (`gh pr view \u003Cpr> --json files`), the deviations and the gate lines you observed. It edits only the task's entry.\n2. Fill the hand-off section yourself from the verified diff, or mark it `- No hand-off recorded; see the pull request.` when there is nothing a dependent needs.\n3. In the worktree, refresh and commit: `(cd \u003Cworktree> && scripts\u002Fharness\u002Fgate.sh all)`, then `git -C \u003Cworktree> commit -s -m \"docs(spec): \u003Calias> task \u003CN> completion entry\" -- specs\u002Fin-progress\u002F\u003Cspec>\u002Ftasks.md specs\u002Fin-progress\u002F\u003Cspec>\u002Fhandoff.md` and `git -C \u003Cworktree> push origin \u003Cbranch>`.\n\nAt most one bookkeeping fix per task; a second means a real failure.\n\n## Lost and stalled workers\n\n- **Lost.** A dispatch that came back empty is unknown, not failed. Before retrying, look: `gh pr list --state all --search '\"\u003Calias> task \u003CN>\" in:title' --json number,title,headRefName --jq '.[] | select(.title | endswith(\"(\u003Calias> task \u003CN>)\"))'` and `git ls-remote origin '\u003Ctype>\u002F\u003Calias>-t\u003CN>'`. A pull request or branch means the work happened: verify it as a return (`\u002Frun-spec` Phase 2 step 3) and record `return`. Nothing at all: record `lost`, then retry.\n- **Stalled.** A worker that ends its turn \"waiting for\" a command, CI or a notification is not failed. A subagent is never notified when its own background command ends. Check the evidence (the branch, the pull request's checks, the gate markers in its worktree), then `SendMessage` the same worker with what you found and the remaining steps, restating that every command runs in the foreground. Never dispatch a duplicate while the first worker can still be resumed.\n- **Long-running.** The Agent tool cannot abort a worker. One that has not returned an hour after dispatch is checked the same way; if it is still working, let it finish and report the overrun.\n\n## Blocked and maintainer tasks\n\n- A task with a `Blocked` field is skipped and listed in the report; its dependants cannot start.\n- A `maintainer` task is the operator's. Hand it over with its acceptance criteria when it becomes ready, and continue with every task that does not depend on it.\n\n## Deadlock and cycles\n\n`runspec.py status` reports `deadlock: true` when tasks remain, none is ready and none is in flight, and `cycle: true` for a dependency cycle. Either stops the run. The report names each stuck task with the dependencies it waits on and why each is not complete (blocked, maintainer, failed, not merged). Pass every task with an open pull request as `--in-flight`: a pull request waiting on review or bookkeeping is progress, and must never read as a deadlock.\n\n## Output\n\nThe class, the event recorded and the next action: `retry attempt K`, `resume worker \u003Cid>`, `bookkeeping fix`, or `STOP: \u003Cescalation> — \u003Creason>`.\n","# Run Spec — Error Handling\n\nA failed task is classified before anything is re-dispatched, because the cheapest correct response differs by class, and a wrong class wastes an attempt or merges broken work.\n\n## Input\n\n`$ARGUMENTS`: the spec and the task. `\u002Frun-spec` reads this page inline.\n\n## Invocation contexts\n\n- **Slash command**: classifies the named task's last result and prints the next action.\n- **Model-invoked**: the same.\n- **Non-interactive**: the same. Every escalation stops the run with the stop report (`\u002Frun-spec-completion`); nothing waits for an answer.\n\n## Classes\n\n| Class | Signal | Response | Costs an attempt |\n|---|---|---|---|\n| Real failure | acceptance re-run fails, gates red, code absent, or the worker reported `blocked` on its own defect | retry ladder | yes |\n| Bookkeeping-only | code, tests and acceptance verified; only the entry, hand-off, report or markers are wrong | fix it through the worker (below) | no |\n| Lost | the Agent call returned nothing, or no report and no branch | look before retrying (below) | yes, once confirmed |\n| Stalled | the worker says it is waiting on something | resume it with the evidence (below) | no |\n| Blocked on a decision | `blocked` with a question the spec does not answer | stop: escalation | no |\n| Not-ready after review | three review rounds (`\u002Frun-spec-worktree-merge`) | stop: escalation | no |\n\nRecord each classification: `python3 scripts\u002Fharness\u002Frunspec.py event --spec \u003Cspec> --kind fail --task \u003CN> --attempt \u003CK> --detail \"\u003Cclass>: \u003Cone line>\"`.\n\n## Retry ladder\n\nAt most three attempts per task, each a fresh agent of the same `Domain\u002Fagent`:\n\n1. **Attempt 1**: the first-attempt template.\n2. **Attempt 2**: the retry template with the attempt-1 digest.\n3. **Attempt 3**: the retry template with both digests.\n\nThe digest is at most ten lines: the error class, the failing check with its exact failing lines (at most three), what was tried, the pull request and branch if any, and a one-line hypothesis. It comes from the verification output and the `fail` event, never from pasted logs. A pull request an earlier attempt opened is continued, not duplicated. After the third failure the run stops: escalation. Budgets never grow on retry; a task that keeps overrunning is re-tiered in `tasks.md` by a spec change.\n\n## Bookkeeping-only\n\nThe work is right; only its record is not. First, `SendMessage` the same worker with the bookkeeping-fix template (`\u002Frun-spec-dispatch`): it has the context to write the entry and hand-off correctly. When the worker cannot be resumed:\n\n1. Dispatch `completion-clerk` (no `effort`) with the worktree path, the task number and the facts it may not recompute: the pull request number, the commit SHAs, the files the pull request changes (`gh pr view \u003Cpr> --json files`), the deviations and the gate lines you observed. It edits only the task's entry.\n2. Fill the hand-off section yourself from the verified diff, or mark it `- No hand-off recorded; see the pull request.` when there is nothing a dependent needs.\n3. In the worktree, refresh and commit: `(cd \u003Cworktree> && scripts\u002Fharness\u002Fgate.sh all)`, then `git -C \u003Cworktree> commit -s -m \"docs(spec): \u003Calias> task \u003CN> completion entry\" -- specs\u002Fin-progress\u002F\u003Cspec>\u002Ftasks.md specs\u002Fin-progress\u002F\u003Cspec>\u002Fhandoff.md` and `git -C \u003Cworktree> push origin \u003Cbranch>`.\n\nAt most one bookkeeping fix per task; a second means a real failure.\n\n## Lost and stalled workers\n\n- **Lost.** A dispatch that came back empty is unknown, not failed. Before retrying, look: `gh pr list --state all --search '\"\u003Calias> task \u003CN>\" in:title' --json number,title,headRefName --jq '.[] | select(.title | endswith(\"(\u003Calias> task \u003CN>)\"))'` and `git ls-remote origin '\u003Ctype>\u002F\u003Calias>-t\u003CN>'`. A pull request or branch means the work happened: verify it as a return (`\u002Frun-spec` Phase 2 step 3) and record `return`. Nothing at all: record `lost`, then retry.\n- **Stalled.** A worker that ends its turn \"waiting for\" a command, CI or a notification is not failed. A subagent is never notified when its own background command ends. Check the evidence (the branch, the pull request's checks, the gate markers in its worktree), then `SendMessage` the same worker with what you found and the remaining steps, restating that every command runs in the foreground. Never dispatch a duplicate while the first worker can still be resumed.\n- **Long-running.** The Agent tool cannot abort a worker. One that has not returned an hour after dispatch is checked the same way; if it is still working, let it finish and report the overrun.\n\n## Blocked and maintainer tasks\n\n- A task with a `Blocked` field is skipped and listed in the report; its dependants cannot start.\n- A `maintainer` task is the operator's. Hand it over with its acceptance criteria when it becomes ready, and continue with every task that does not depend on it.\n\n## Deadlock and cycles\n\n`runspec.py status` reports `deadlock: true` when tasks remain, none is ready and none is in flight, and `cycle: true` for a dependency cycle. Either stops the run. The report names each stuck task with the dependencies it waits on and why each is not complete (blocked, maintainer, failed, not merged). Pass every task with an open pull request as `--in-flight`: a pull request waiting on review or bookkeeping is progress, and must never read as a deadlock.\n\n## Output\n\nThe class, the event recorded and the next action: `retry attempt K`, `resume worker \u003Cid>`, `bookkeeping fix`, or `STOP: \u003Cescalation> — \u003Creason>`.\n",{"name":5,"description":7,"argument-hint":24},"\u003Cspec-name> --task N","main","6e250ec86158119da148ddc017b960ed3b2bee2b",".claude\u002Fskills\u002Frun-spec-error-handling",1,"https:\u002F\u002Fgithub.com\u002Fturbokast\u002Fmythhelm","https:\u002F\u002Fgithub.com\u002Fturbokast","https:\u002F\u002Fturbokast.com","2026-11-10 17:37:03",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add turbokast\u002Fmythhelm --skill run-spec-error-handling",{"tool":39,"command":40},"bunx","bunx skills add turbokast\u002Fmythhelm --skill run-spec-error-handling",{"tool":42,"command":43},"pnpm","pnpm dlx skills add turbokast\u002Fmythhelm --skill run-spec-error-handling","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fturbokast\u002Fmythhelm\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frun-spec-error-handling\u002FSKILL.md",true,[],[48,55,62,69,76,83],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":19},"01M7DH77QH78C95S7A5V1GFKKF","mythhelm-deliver-backlog","Coordinate a MYTHHELM backlog run with the shared stage checks and maintainer checkpoints.","https:\u002F\u002Fgithub.com\u002Fturbokast\u002Fmythhelm\u002Fblob\u002Fmain\u002F.grok\u002Fskills\u002Fmythhelm-deliver-backlog\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M7DH748EXYG9RVBWPBJ73M27","mythhelm-bootstrap","Orient a Grok Build session in the MYTHHELM repository before task or spec work.","https:\u002F\u002Fgithub.com\u002Fturbokast\u002Fmythhelm\u002Fblob\u002Fmain\u002F.grok\u002Fskills\u002Fmythhelm-bootstrap\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M7DH70XJE0DZA4T5DYR1TWKZ","vendor-consult","Run one advisory stage consult (premise-ground, spec-validate, task-review, change-review, stuck-oracle, dossier) with an optional external vendor, then adjudicate the answer at its anchors","https:\u002F\u002Fgithub.com\u002Fturbokast\u002Fmythhelm\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fvendor-consult\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M7DH6X9HSQ308P5FNDSKYR5R","update-docs","Bring README, docs\u002F, knowledge\u002F, WORKFLOW.md and CLAUDE.md in line with what a shipped spec or a merged change actually did — find every statement the change made stale, fix it where readers look, and add only the new facts they need","https:\u002F\u002Fgithub.com\u002Fturbokast\u002Fmythhelm\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fupdate-docs\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M7DH6T82XR40XQFNRTN4AHGN","triage","Score an idea or a GitHub issue against the master spec's stages, gates and commitments, check it for duplicates, and recommend whether it becomes a backlog card; read-only","https:\u002F\u002Fgithub.com\u002Fturbokast\u002Fmythhelm\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Ftriage\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M7DH6Q17PM4ESX978QYFV6H6","test-driven-development","Red-green-refactor for Go — use when implementing any feature, bug fix or behaviour change, before writing implementation code","https:\u002F\u002Fgithub.com\u002Fturbokast\u002Fmythhelm\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Ftest-driven-development\u002FSKILL.md",[],[]]