[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6CF79JR67J1G9Z0A1DWPC6D":3,"skill-same:01M6CF79JR67J1G9Z0A1DWPC6D":96},{"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":38,"linkOnly":39,"markdownContent":40,"markdownBody":41,"frontMatter":42,"refName":62,"commitSha":63,"skillDirectory":64,"forksCount":65,"repositoryHtmlUrl":66,"repositoryHomepageUrl":6,"ownerHtmlUrl":67,"ownerBlogUrl":6,"ownerDescription":68,"updatedAt":69,"install":70,"resources":83},"01M6CF79JR67J1G9Z0A1DWPC6D","troubleshoot",null,"Diagnose and resolve active environmental, runtime, process, or tool failures while work is blocked.","usurobor\u002Fcnos","usurobor","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F182342826?v=4","01M6CEXJCRMYD8HB2315FGB1Q8","Peter Lisovin","01M6CEXJH2RW04GQ2SNXY40F5S",9,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fusurobor\u002Fcnos\u002Fblob\u002Fmain\u002Fsrc\u002Fpackages\u002Fcnos.eng\u002Fskills\u002Feng\u002Ftroubleshoot\u002FSKILL.md",[],[5,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37],"how","exit","evidence","process","behavior","results","work","model","troubleshooting","tool","rca","risk","hypothesis","logs","state","debugging","diagnose","change","triage","2026-11-10 10:12:30",false,"---\nname: troubleshoot\ndescription: Diagnose and resolve active environmental, runtime, process, or tool failures while work is blocked.\nartifact_class: skill\nkata_surface: embedded\ngoverning_question: How do you isolate an active failure through the cheapest discriminating hypothesis before speculating about application or model behavior?\ntriggers:\n  - troubleshoot\n  - live failure\n  - process died\n  - silent exit\n  - tool error\n  - OOM\n  - diagnosis\n  - debugging\nscope: task-local\ninputs:\n  - blocked task context\n  - symptom description\n  - available evidence (logs, stream output, exit codes, process state)\noutputs:\n  - resolved symptom or blocked\u002Fescalated troubleshooting record\n  - triage record (hypotheses tested, results, change made)\n  - RCA handoff trigger (if recurrence risk or systemic root cause)\n---\n\n# Troubleshoot\n\nThis skill teaches how to isolate an active failure through the cheapest discriminating hypothesis before speculating about application or model behavior.\n\n## Core Principle\n\n**Coherent live troubleshooting preserves evidence first, tests the cheapest discriminating hypothesis, accounts for each cheaper failure class, makes one controlled change, and verifies against the original symptom.**\n\nThe failure mode is **premature hypothesis**: jumping to application-layer or model-layer speculation before ruling out process state, external kill, tool error, resource pressure, and lifecycle failures. Every dispatch-test failure in 2026-04-30 shared this pattern.\n\nLive troubleshooting ends when the original symptom is resolved, or when the agent returns a blocked\u002Fescalated troubleshooting record because further action would exceed evidence, authority, or safety boundaries. Root cause analysis (`eng\u002Frca`) begins after the live issue is stable enough to analyze.\n\n## Algorithm\n\n1. **Define** — name the symptom, the evidence at hand, and the failure class under investigation.\n2. **Unfold** — triage cheapest-to-most-expensive; test one hypothesis at a time; make one change.\n3. **Rules** — preserve evidence, state hypotheses before tests, verify the original symptom.\n\n---\n\n## 1. Define\n\n### 1.0. Classify the artifact\n\nThis is a **skill**, not a runbook:\n\n- It teaches judgment — what to check first, how to form a hypothesis, what counts as verification.\n- Platform-specific diagnostic commands belong in runbooks that reference this skill.\n- Reference pages listing diagnostic commands are lookup material, not live diagnosis.\n\nA runbook is appropriate when the steps are fully ordered and platform-specific. This skill is appropriate when the judgment of *which step first* is the problem.\n\n### 1.1. Identify the parts\n\nLive troubleshooting has six parts:\n\n- **Symptom** — the observable failure that blocked work\n- **Evidence** — what is already available without touching the system (logs, stream output, exit codes, process state)\n- **Hypothesis** — a testable claim about the failure class\n- **Discriminating test** — the cheapest test that rules the hypothesis in or out\n- **Change** — one controlled modification to address the confirmed hypothesis\n- **Verification** — proof that the original symptom is gone after the change\n\n- ❌ \"Something broke, let me try things\"\n- ✅ \"Symptom: silent exit. Evidence: no stderr. Hypothesis: OOM kill. Test: dmesg.\"\n\n### 1.2. Articulate how they fit\n\nThe six parts work in sequence: preserve evidence → describe symptom → form hypothesis → test cheapest discriminating → make one change → verify.\n\nIf the symptom returns after a change, the hypothesis was wrong or incomplete. Record the negative result and advance to the next hypothesis in triage order.\n\n### 1.3. Name the failure mode\n\nTroubleshooting fails through **premature hypothesis**:\n\n- Jumping from symptom to application-layer explanation without checking process, kernel, tool, resource, or lifecycle evidence\n- Testing the most expensive hypothesis first (model behavior, token budget) when cheaper tests (dmesg, stderr, process state) would have discriminated immediately\n- Making multiple simultaneous changes and losing the signal\n- Restarting the system before preserving evidence\n\n- ❌ \"Process disappeared → token limit exceeded\"\n- ✅ \"Process disappeared → check process state → check dmesg → OOM kill confirmed\"\n\n---\n\n## 2. Unfold\n\n### 2.1. Preserve evidence first\n\nBefore any action, record: timestamp, symptom text, all available output, environment state, and process identifiers. Evidence that exists now may not exist after touching the system.\n\n- ❌ Restart the process immediately to see if it reproduces\n- ✅ Read logs, capture stderr, check process state before restarting anything\n\n### 2.2. Describe the symptom precisely\n\nState the symptom as a complete problem description before forming a hypothesis. A complete description eliminates an entire class of wrong hypotheses.\n\nRequired fields (drawn from IBM troubleshooting problem-description practice):\n\n- **What** is failing (process, command, tool call, stream)\n- **Where** does the failure appear (which surface, which output stream)\n- **When** did it start (after what action, at what step in the sequence)\n- **Conditions** — what changed before the failure appeared\n- **Reproducibility** — fails every time, or intermittently\n- **Error messages** — exact text (not paraphrased)\n- **Effect** — what work is blocked\n- **Environment** — host, OS, memory, parent process, network state\n\n- ❌ \"The agent died\"\n- ✅ \"Beta process exited after 9 stream events. No stderr. No result event. tool_result is_error: true, message: 'GraphQL field deprecated'. Reproducible every run. Host: 2GB VPS. Parent: foreground shell.\"\n\n### 2.3. Triage order\n\nTest in this order. Each class is cheaper and faster to eliminate than the next. Do not skip a cheaper class without accounting for it (see §3.8).\n\n1. **Process state** — is the process running? Check exit code, PID, process list.\n2. **External kill \u002F kernel log** — was the process killed externally? Check dmesg, kernel log, OOM killer output.\n3. **Command \u002F tool output** — what did the failed command or tool return? Read stderr, stdout, tool_result, or event stream for the exact error message.\n4. **Resource pressure** — memory headroom, swap availability, disk space, open file descriptors, CPU saturation.\n5. **Lifecycle \u002F parent process** — was the parent process still alive? Was the process backgrounded? Did the shell session end?\n6. **Application \u002F model behavior** — only after 1–5 are ruled out: application logic, model configuration, token budget, API behavior.\n\n*Triage order derived from: Google SRE effective troubleshooting (hypothesis-driven process), CompTIA sequence (identify → theory → test → plan → implement\u002Fescalate → verify → document), and three root-cause classes from the 2026-04-30 dispatch test.*\n\n- ❌ Check model token budget before checking process state\n- ✅ Work down the triage order; stop at the first class that produces discriminating evidence\n\n### 2.4. Hypothesis discipline\n\nForm one hypothesis at a time, test it, record the result, and advance.\n\nRequired steps per hypothesis:\n\n1. **State the hypothesis** before running any test: \"I believe the process was OOM-killed.\"\n2. **State the oracle**: \"If true, dmesg will show an OOM event for this PID or process name.\"\n3. **Run the cheapest discriminating test** — the test that most cheaply confirms or rules out this hypothesis.\n4. **Record the result** — positive or negative. A negative result is data, not failure.\n5. **Advance** to the next hypothesis only after the current one is confirmed or ruled out.\n\n*Derived from: Red Hat one-change discipline (one variable at a time, test original symptoms), Google SRE hypothesis-driven troubleshooting.*\n\n- ❌ \"Let me add swap, switch to foreground, and reduce workers simultaneously\"\n- ✅ \"Hypothesis: OOM kill. Oracle: dmesg shows OOM for this PID. Test. Confirmed. One change: add swap. Verify.\"\n\n### 2.5. One controlled change\n\nWhen a hypothesis is confirmed, make exactly one change. Then verify.\n\nIf the symptom persists, the hypothesis was wrong or incomplete. Record the result and advance to the next hypothesis in triage order.\n\n- ❌ Two changes at once to \"fix faster\"\n- ✅ One change, verify original symptom gone, then consider whether a second change is needed\n\n### 2.6. Verify against the original symptom\n\nAfter the change, re-run the original failing scenario. Confirmation means the original symptom no longer occurs under the same conditions — not \"it seems better.\"\n\n*Derived from: Red Hat problem-solving — always test original symptoms after any change.*\n\n- ❌ \"Added swap, looks good\"\n- ✅ \"Re-ran β review cycle under same conditions; process completed without OOM; no silent exit\"\n\n### 2.7. RCA handoff\n\nHand off to `eng\u002Frca` when the live symptom is resolved and any of these apply:\n\n- Recurrence risk remains (the fix is a workaround, not structural prevention)\n- Multi-step incident affected dispatch, release, or runtime\n- Root cause is systemic, not one-off\n- Prevention action is needed\n- Evidence should be preserved for future agents\n\nDo not start an RCA while still diagnosing. `eng\u002Frca` requires a stable system.\n\n- ❌ Starting Five Whys while the process is still failing\n- ✅ Resolve the live symptom; then trigger RCA if recurrence risk or systemic cause applies\n\n### 2.8. Escalate or close blocked\n\nIf no hypothesis can be safely tested, no confirmed fix is available, or the required action exceeds current authority, stop live troubleshooting and return a blocked troubleshooting record.\n\nThe record must include:\n- Original symptom\n- Evidence preserved\n- Hypotheses tested\n- Negative results\n- Current best hypothesis, if any\n- Reason live troubleshooting cannot continue\n- Required next authority, resource, tool, or operator action\n\nDo not keep poking after the evidence or authority boundary is exhausted.\n\n- ❌ Trying increasingly risky fixes because \"something has to work\"\n- ✅ \"Cannot test further without root SSH access. Best hypothesis: filesystem full on host. Escalating to operator with evidence.\"\n\n---\n\n## 3. Rules\n\n### 3.1. Preserve evidence before touching anything\n\nA restart or a change can destroy the evidence you need. Capture it first.\n\n### 3.2. State the hypothesis before the test\n\nIf you cannot state the hypothesis before running the test, you are not testing — you are poking.\n\n- ❌ Run dmesg and see what it says\n- ✅ Hypothesis: OOM kill. Oracle: dmesg shows OOM event for this PID. Test: `dmesg | grep -i \"killed process\"`.\n\n### 3.3. Test the cheapest discriminating hypothesis first\n\nThe triage order in §2.3 is not optional. Process state and kernel log are cheaper than API debug logs. API debug logs are cheaper than model behavior speculation. But evidence already in hand can satisfy a class without a dedicated test (see §3.8).\n\n- ❌ \"Let me check if the token budget was exceeded\" (before checking process state)\n- ✅ \"Process state first. No process running, no exit code. Step 2: kernel log.\"\n\n### 3.4. Make one change at a time\n\nMultiple simultaneous changes make it impossible to attribute the fix.\n\n- ❌ Add swap, switch to foreground, and reduce workers in the same action\n- ✅ Add swap. Verify. If symptom recurs, then investigate the next confirmed hypothesis.\n\n### 3.5. Record negative results\n\nA hypothesis tested and ruled out is evidence. Record it. Future agents should not re-test a ruled-out hypothesis.\n\n### 3.6. Verify against the original symptom\n\nProxy verification is not verification. Run the same scenario that originally failed.\n\n- ❌ \"Process ran for 30 seconds without crashing — must be fixed\"\n- ✅ \"Re-ran the full beta review scenario; process reached a result event; symptom does not recur\"\n\n### 3.7. Do not start RCA during live diagnosis\n\nRCA and live diagnosis are distinct processes. Mixing them produces noise in both.\n\n### 3.8. Do not skip triage steps without accounting for them\n\nDo not skip a cheaper class without accounting for it. For each earlier class, either:\n- Test it\n- Mark it already satisfied by preserved evidence\n- Mark it not applicable with reason\n- Record why testing it would destroy evidence or exceed authority\n\nThis preserves discipline while avoiding ritual checks when discriminating evidence is already in hand.\n\n- ❌ \"Tool error is obvious — skip process\u002Fkernel\u002Fresource checks entirely\"\n- ✅ \"Process: alive (ps confirms). Kernel: no kill (dmesg clean). Tool: error message says 'deprecated GraphQL field' — this is the discriminating evidence. Remaining classes: not tested, not needed.\"\n\n---\n\n## 4. Worked Examples\n\nThe following examples are from the 2026-04-30 identity-rotation dispatch test: five β dispatch failures, three root-cause classes, each diagnosed ad-hoc with a wrong first hypothesis. Each example shows: symptom → wrong first hypothesis → better triage path → root cause → corrective action → verification.\n\n### Example 1 — OOM kill\n\n**Symptom:** β process disappeared mid-review. No output, no error, no result event.\n\n**Wrong first hypothesis:** Token limit exceeded.\n\n**Better triage path:**\n1. Process state: no process running, no exit code available\n2. Kernel log: `dmesg` → `Out of memory: Kill process \u003CPID> (node) score \u003CN> or sacrifice child`\n\n**Root cause:** 2 GB VPS, no swap, two Node processes (OpenClaw gateway + Claude CLI) competing for memory. Kernel OOM-killed the largest.\n\n**Corrective action:** Add 2 GB swap.\n\n**Verification:** Re-ran β review under same conditions. Process completed without OOM kill. Original symptom gone.\n\n**What this skill forces:** \"Process disappeared silently → check process state (step 1) → check kernel log for OOM before assuming application-level failure (step 2).\"\n\n---\n\n### Example 2 — `gh` GraphQL error\n\n**Symptom:** Session died after 9 stream events. tool_result showed `is_error: true`.\n\n**Wrong first hypothesis:** GitHub API rate limit.\n\n**Better triage path:**\n1. Process state: process exited cleanly with exit code 0\n2. Kernel log: no kill event\n3. Tool output: tool_result `is_error: true`, message: `\"GitHub Projects Classic deprecated GraphQL field\"`\n\n**Root cause:** `gh issue view` without `--json` hits a deprecated GraphQL field. Tool error, not rate limit.\n\n**Corrective action:** Use `gh issue view N --json title,body,state,comments` in all dispatch prompts.\n\n**Verification:** Subsequent `gh issue view --json` calls return data without error.\n\n**What this skill forces:** \"Tool call returned an error → read the error message before assuming surrounding context (step 3: tool output). Rate limit is a step-6 application hypothesis; step-3 tool output was the discriminating evidence.\"\n\n---\n\n### Example 3 — Background process kill\n\n**Symptom:** Process exited silently. Partial stream-json output, no result event, no error. Same pattern as OOM but dmesg was clean.\n\n**Wrong first hypothesis:** Rate limit \u002F token budget.\n\n**Better triage path:**\n1. Process state: no process running\n2. Kernel log: no OOM event\n3. Tool output: no tool_result error\n4. Resources: memory normal\n5. Lifecycle \u002F parent process: parent exec session ended → background process (launched with `&`) was cleaned up by shell when parent exited\n\n**Root cause:** Shell backgrounding (`&`) attaches the process to the parent's session. When the parent exec session ends, the shell cleans up the process tree.\n\n**Corrective action:** Run `claude -p` as a foreground direct child process only. Never background the session process with `&`.\n\n**Verification:** Subsequent foreground runs complete without silent exit. Original symptom gone.\n\n**What this skill forces:** \"Silent exit, no error, no OOM → work down the triage order through lifecycle\u002Fparent (step 5) before reaching application\u002Fmodel behavior (step 6). Each step-1–4 ruling out is recorded.\"\n\n---\n\n## 5. Kata\n\n### Scenario\n\nAn agent running a long beta review goes silent. The stream stops mid-output. No error appears. No result event is emitted. The operator sees partial output and no final status. Host: 2 GB RAM, no swap.\n\n### Symptoms\n\n- Stream output stops after N events\n- No result event\n- No stderr output\n- No error visible in the last tool_result\n\n### Available evidence\n\n- Partial stream-json log\n- Host: 1.8 GB used \u002F 2.0 GB total RAM, no swap configured\n- `dmesg` access available\n- Process list available\n\n### Wrong tempting hypothesis\n\n\"The agent hit its token limit or the model stopped generating.\"\n\n### Expected triage path\n\n1. **Process state:** confirm the process is no longer running\n2. **Kernel log:** check dmesg for OOM kill event matching the process PID or name\n3. **Tool output:** read the last few stream events for error signals in tool_result\n4. **Resources:** confirm memory headroom and absence of swap\n5. **Lifecycle:** confirm whether the process was foreground or backgrounded\n6. **Application\u002Fmodel:** (only if 1–5 yield nothing — skip here given the evidence)\n\n### Expected root cause\n\nOOM kill: host memory exhausted, no swap, kernel killed the largest process.\n\n### Corrective action\n\nAdd swap or reduce concurrent memory pressure. Verify the process completes the same scenario without OOM.\n\n### Verification\n\nRe-run the same beta review scenario. Process reaches a result event. Original symptom (silent exit mid-stream) does not recur.\n\n### Common failures\n\n- Jumping to step 6 (application\u002Fmodel) before step 2 (kernel log) — the most repeated pattern from the dispatch test\n- Restarting the process before capturing dmesg — evidence is gone\n- Making multiple changes simultaneously (add swap + switch foreground + reduce workers) — cannot isolate which change fixed it\n- Verifying \"process ran longer\" instead of verifying \"process completed the original scenario\"\n\n### Reflection\n\n- Did the triage order force you to check process state and kernel log before reaching application-layer explanations?\n- Did you state your hypothesis before running each test?\n- Did you make exactly one change and verify against the original symptom, not a proxy?\n- Did you record negative results as evidence for future agents?\n\n---\n\n## 6. Sources\n\nThis skill adapts:\n\n- **Google SRE, _Effective Troubleshooting_** — hypothesis-driven troubleshooting, telemetry\u002Flog examination, test-and-treat loop, and common pitfalls.\n- **IBM troubleshooting techniques** — complete problem description, conditions, reproducibility, and environment questions.\n- **Red Hat problem-solving** — symptom vs problem, one change at a time, and retesting the original symptom.\n- **CompTIA troubleshooting methodology** — identify, form theory, test, plan, implement\u002Fescalate, verify, document.\n","# Troubleshoot\n\nThis skill teaches how to isolate an active failure through the cheapest discriminating hypothesis before speculating about application or model behavior.\n\n## Core Principle\n\n**Coherent live troubleshooting preserves evidence first, tests the cheapest discriminating hypothesis, accounts for each cheaper failure class, makes one controlled change, and verifies against the original symptom.**\n\nThe failure mode is **premature hypothesis**: jumping to application-layer or model-layer speculation before ruling out process state, external kill, tool error, resource pressure, and lifecycle failures. Every dispatch-test failure in 2026-04-30 shared this pattern.\n\nLive troubleshooting ends when the original symptom is resolved, or when the agent returns a blocked\u002Fescalated troubleshooting record because further action would exceed evidence, authority, or safety boundaries. Root cause analysis (`eng\u002Frca`) begins after the live issue is stable enough to analyze.\n\n## Algorithm\n\n1. **Define** — name the symptom, the evidence at hand, and the failure class under investigation.\n2. **Unfold** — triage cheapest-to-most-expensive; test one hypothesis at a time; make one change.\n3. **Rules** — preserve evidence, state hypotheses before tests, verify the original symptom.\n\n---\n\n## 1. Define\n\n### 1.0. Classify the artifact\n\nThis is a **skill**, not a runbook:\n\n- It teaches judgment — what to check first, how to form a hypothesis, what counts as verification.\n- Platform-specific diagnostic commands belong in runbooks that reference this skill.\n- Reference pages listing diagnostic commands are lookup material, not live diagnosis.\n\nA runbook is appropriate when the steps are fully ordered and platform-specific. This skill is appropriate when the judgment of *which step first* is the problem.\n\n### 1.1. Identify the parts\n\nLive troubleshooting has six parts:\n\n- **Symptom** — the observable failure that blocked work\n- **Evidence** — what is already available without touching the system (logs, stream output, exit codes, process state)\n- **Hypothesis** — a testable claim about the failure class\n- **Discriminating test** — the cheapest test that rules the hypothesis in or out\n- **Change** — one controlled modification to address the confirmed hypothesis\n- **Verification** — proof that the original symptom is gone after the change\n\n- ❌ \"Something broke, let me try things\"\n- ✅ \"Symptom: silent exit. Evidence: no stderr. Hypothesis: OOM kill. Test: dmesg.\"\n\n### 1.2. Articulate how they fit\n\nThe six parts work in sequence: preserve evidence → describe symptom → form hypothesis → test cheapest discriminating → make one change → verify.\n\nIf the symptom returns after a change, the hypothesis was wrong or incomplete. Record the negative result and advance to the next hypothesis in triage order.\n\n### 1.3. Name the failure mode\n\nTroubleshooting fails through **premature hypothesis**:\n\n- Jumping from symptom to application-layer explanation without checking process, kernel, tool, resource, or lifecycle evidence\n- Testing the most expensive hypothesis first (model behavior, token budget) when cheaper tests (dmesg, stderr, process state) would have discriminated immediately\n- Making multiple simultaneous changes and losing the signal\n- Restarting the system before preserving evidence\n\n- ❌ \"Process disappeared → token limit exceeded\"\n- ✅ \"Process disappeared → check process state → check dmesg → OOM kill confirmed\"\n\n---\n\n## 2. Unfold\n\n### 2.1. Preserve evidence first\n\nBefore any action, record: timestamp, symptom text, all available output, environment state, and process identifiers. Evidence that exists now may not exist after touching the system.\n\n- ❌ Restart the process immediately to see if it reproduces\n- ✅ Read logs, capture stderr, check process state before restarting anything\n\n### 2.2. Describe the symptom precisely\n\nState the symptom as a complete problem description before forming a hypothesis. A complete description eliminates an entire class of wrong hypotheses.\n\nRequired fields (drawn from IBM troubleshooting problem-description practice):\n\n- **What** is failing (process, command, tool call, stream)\n- **Where** does the failure appear (which surface, which output stream)\n- **When** did it start (after what action, at what step in the sequence)\n- **Conditions** — what changed before the failure appeared\n- **Reproducibility** — fails every time, or intermittently\n- **Error messages** — exact text (not paraphrased)\n- **Effect** — what work is blocked\n- **Environment** — host, OS, memory, parent process, network state\n\n- ❌ \"The agent died\"\n- ✅ \"Beta process exited after 9 stream events. No stderr. No result event. tool_result is_error: true, message: 'GraphQL field deprecated'. Reproducible every run. Host: 2GB VPS. Parent: foreground shell.\"\n\n### 2.3. Triage order\n\nTest in this order. Each class is cheaper and faster to eliminate than the next. Do not skip a cheaper class without accounting for it (see §3.8).\n\n1. **Process state** — is the process running? Check exit code, PID, process list.\n2. **External kill \u002F kernel log** — was the process killed externally? Check dmesg, kernel log, OOM killer output.\n3. **Command \u002F tool output** — what did the failed command or tool return? Read stderr, stdout, tool_result, or event stream for the exact error message.\n4. **Resource pressure** — memory headroom, swap availability, disk space, open file descriptors, CPU saturation.\n5. **Lifecycle \u002F parent process** — was the parent process still alive? Was the process backgrounded? Did the shell session end?\n6. **Application \u002F model behavior** — only after 1–5 are ruled out: application logic, model configuration, token budget, API behavior.\n\n*Triage order derived from: Google SRE effective troubleshooting (hypothesis-driven process), CompTIA sequence (identify → theory → test → plan → implement\u002Fescalate → verify → document), and three root-cause classes from the 2026-04-30 dispatch test.*\n\n- ❌ Check model token budget before checking process state\n- ✅ Work down the triage order; stop at the first class that produces discriminating evidence\n\n### 2.4. Hypothesis discipline\n\nForm one hypothesis at a time, test it, record the result, and advance.\n\nRequired steps per hypothesis:\n\n1. **State the hypothesis** before running any test: \"I believe the process was OOM-killed.\"\n2. **State the oracle**: \"If true, dmesg will show an OOM event for this PID or process name.\"\n3. **Run the cheapest discriminating test** — the test that most cheaply confirms or rules out this hypothesis.\n4. **Record the result** — positive or negative. A negative result is data, not failure.\n5. **Advance** to the next hypothesis only after the current one is confirmed or ruled out.\n\n*Derived from: Red Hat one-change discipline (one variable at a time, test original symptoms), Google SRE hypothesis-driven troubleshooting.*\n\n- ❌ \"Let me add swap, switch to foreground, and reduce workers simultaneously\"\n- ✅ \"Hypothesis: OOM kill. Oracle: dmesg shows OOM for this PID. Test. Confirmed. One change: add swap. Verify.\"\n\n### 2.5. One controlled change\n\nWhen a hypothesis is confirmed, make exactly one change. Then verify.\n\nIf the symptom persists, the hypothesis was wrong or incomplete. Record the result and advance to the next hypothesis in triage order.\n\n- ❌ Two changes at once to \"fix faster\"\n- ✅ One change, verify original symptom gone, then consider whether a second change is needed\n\n### 2.6. Verify against the original symptom\n\nAfter the change, re-run the original failing scenario. Confirmation means the original symptom no longer occurs under the same conditions — not \"it seems better.\"\n\n*Derived from: Red Hat problem-solving — always test original symptoms after any change.*\n\n- ❌ \"Added swap, looks good\"\n- ✅ \"Re-ran β review cycle under same conditions; process completed without OOM; no silent exit\"\n\n### 2.7. RCA handoff\n\nHand off to `eng\u002Frca` when the live symptom is resolved and any of these apply:\n\n- Recurrence risk remains (the fix is a workaround, not structural prevention)\n- Multi-step incident affected dispatch, release, or runtime\n- Root cause is systemic, not one-off\n- Prevention action is needed\n- Evidence should be preserved for future agents\n\nDo not start an RCA while still diagnosing. `eng\u002Frca` requires a stable system.\n\n- ❌ Starting Five Whys while the process is still failing\n- ✅ Resolve the live symptom; then trigger RCA if recurrence risk or systemic cause applies\n\n### 2.8. Escalate or close blocked\n\nIf no hypothesis can be safely tested, no confirmed fix is available, or the required action exceeds current authority, stop live troubleshooting and return a blocked troubleshooting record.\n\nThe record must include:\n- Original symptom\n- Evidence preserved\n- Hypotheses tested\n- Negative results\n- Current best hypothesis, if any\n- Reason live troubleshooting cannot continue\n- Required next authority, resource, tool, or operator action\n\nDo not keep poking after the evidence or authority boundary is exhausted.\n\n- ❌ Trying increasingly risky fixes because \"something has to work\"\n- ✅ \"Cannot test further without root SSH access. Best hypothesis: filesystem full on host. Escalating to operator with evidence.\"\n\n---\n\n## 3. Rules\n\n### 3.1. Preserve evidence before touching anything\n\nA restart or a change can destroy the evidence you need. Capture it first.\n\n### 3.2. State the hypothesis before the test\n\nIf you cannot state the hypothesis before running the test, you are not testing — you are poking.\n\n- ❌ Run dmesg and see what it says\n- ✅ Hypothesis: OOM kill. Oracle: dmesg shows OOM event for this PID. Test: `dmesg | grep -i \"killed process\"`.\n\n### 3.3. Test the cheapest discriminating hypothesis first\n\nThe triage order in §2.3 is not optional. Process state and kernel log are cheaper than API debug logs. API debug logs are cheaper than model behavior speculation. But evidence already in hand can satisfy a class without a dedicated test (see §3.8).\n\n- ❌ \"Let me check if the token budget was exceeded\" (before checking process state)\n- ✅ \"Process state first. No process running, no exit code. Step 2: kernel log.\"\n\n### 3.4. Make one change at a time\n\nMultiple simultaneous changes make it impossible to attribute the fix.\n\n- ❌ Add swap, switch to foreground, and reduce workers in the same action\n- ✅ Add swap. Verify. If symptom recurs, then investigate the next confirmed hypothesis.\n\n### 3.5. Record negative results\n\nA hypothesis tested and ruled out is evidence. Record it. Future agents should not re-test a ruled-out hypothesis.\n\n### 3.6. Verify against the original symptom\n\nProxy verification is not verification. Run the same scenario that originally failed.\n\n- ❌ \"Process ran for 30 seconds without crashing — must be fixed\"\n- ✅ \"Re-ran the full beta review scenario; process reached a result event; symptom does not recur\"\n\n### 3.7. Do not start RCA during live diagnosis\n\nRCA and live diagnosis are distinct processes. Mixing them produces noise in both.\n\n### 3.8. Do not skip triage steps without accounting for them\n\nDo not skip a cheaper class without accounting for it. For each earlier class, either:\n- Test it\n- Mark it already satisfied by preserved evidence\n- Mark it not applicable with reason\n- Record why testing it would destroy evidence or exceed authority\n\nThis preserves discipline while avoiding ritual checks when discriminating evidence is already in hand.\n\n- ❌ \"Tool error is obvious — skip process\u002Fkernel\u002Fresource checks entirely\"\n- ✅ \"Process: alive (ps confirms). Kernel: no kill (dmesg clean). Tool: error message says 'deprecated GraphQL field' — this is the discriminating evidence. Remaining classes: not tested, not needed.\"\n\n---\n\n## 4. Worked Examples\n\nThe following examples are from the 2026-04-30 identity-rotation dispatch test: five β dispatch failures, three root-cause classes, each diagnosed ad-hoc with a wrong first hypothesis. Each example shows: symptom → wrong first hypothesis → better triage path → root cause → corrective action → verification.\n\n### Example 1 — OOM kill\n\n**Symptom:** β process disappeared mid-review. No output, no error, no result event.\n\n**Wrong first hypothesis:** Token limit exceeded.\n\n**Better triage path:**\n1. Process state: no process running, no exit code available\n2. Kernel log: `dmesg` → `Out of memory: Kill process \u003CPID> (node) score \u003CN> or sacrifice child`\n\n**Root cause:** 2 GB VPS, no swap, two Node processes (OpenClaw gateway + Claude CLI) competing for memory. Kernel OOM-killed the largest.\n\n**Corrective action:** Add 2 GB swap.\n\n**Verification:** Re-ran β review under same conditions. Process completed without OOM kill. Original symptom gone.\n\n**What this skill forces:** \"Process disappeared silently → check process state (step 1) → check kernel log for OOM before assuming application-level failure (step 2).\"\n\n---\n\n### Example 2 — `gh` GraphQL error\n\n**Symptom:** Session died after 9 stream events. tool_result showed `is_error: true`.\n\n**Wrong first hypothesis:** GitHub API rate limit.\n\n**Better triage path:**\n1. Process state: process exited cleanly with exit code 0\n2. Kernel log: no kill event\n3. Tool output: tool_result `is_error: true`, message: `\"GitHub Projects Classic deprecated GraphQL field\"`\n\n**Root cause:** `gh issue view` without `--json` hits a deprecated GraphQL field. Tool error, not rate limit.\n\n**Corrective action:** Use `gh issue view N --json title,body,state,comments` in all dispatch prompts.\n\n**Verification:** Subsequent `gh issue view --json` calls return data without error.\n\n**What this skill forces:** \"Tool call returned an error → read the error message before assuming surrounding context (step 3: tool output). Rate limit is a step-6 application hypothesis; step-3 tool output was the discriminating evidence.\"\n\n---\n\n### Example 3 — Background process kill\n\n**Symptom:** Process exited silently. Partial stream-json output, no result event, no error. Same pattern as OOM but dmesg was clean.\n\n**Wrong first hypothesis:** Rate limit \u002F token budget.\n\n**Better triage path:**\n1. Process state: no process running\n2. Kernel log: no OOM event\n3. Tool output: no tool_result error\n4. Resources: memory normal\n5. Lifecycle \u002F parent process: parent exec session ended → background process (launched with `&`) was cleaned up by shell when parent exited\n\n**Root cause:** Shell backgrounding (`&`) attaches the process to the parent's session. When the parent exec session ends, the shell cleans up the process tree.\n\n**Corrective action:** Run `claude -p` as a foreground direct child process only. Never background the session process with `&`.\n\n**Verification:** Subsequent foreground runs complete without silent exit. Original symptom gone.\n\n**What this skill forces:** \"Silent exit, no error, no OOM → work down the triage order through lifecycle\u002Fparent (step 5) before reaching application\u002Fmodel behavior (step 6). Each step-1–4 ruling out is recorded.\"\n\n---\n\n## 5. Kata\n\n### Scenario\n\nAn agent running a long beta review goes silent. The stream stops mid-output. No error appears. No result event is emitted. The operator sees partial output and no final status. Host: 2 GB RAM, no swap.\n\n### Symptoms\n\n- Stream output stops after N events\n- No result event\n- No stderr output\n- No error visible in the last tool_result\n\n### Available evidence\n\n- Partial stream-json log\n- Host: 1.8 GB used \u002F 2.0 GB total RAM, no swap configured\n- `dmesg` access available\n- Process list available\n\n### Wrong tempting hypothesis\n\n\"The agent hit its token limit or the model stopped generating.\"\n\n### Expected triage path\n\n1. **Process state:** confirm the process is no longer running\n2. **Kernel log:** check dmesg for OOM kill event matching the process PID or name\n3. **Tool output:** read the last few stream events for error signals in tool_result\n4. **Resources:** confirm memory headroom and absence of swap\n5. **Lifecycle:** confirm whether the process was foreground or backgrounded\n6. **Application\u002Fmodel:** (only if 1–5 yield nothing — skip here given the evidence)\n\n### Expected root cause\n\nOOM kill: host memory exhausted, no swap, kernel killed the largest process.\n\n### Corrective action\n\nAdd swap or reduce concurrent memory pressure. Verify the process completes the same scenario without OOM.\n\n### Verification\n\nRe-run the same beta review scenario. Process reaches a result event. Original symptom (silent exit mid-stream) does not recur.\n\n### Common failures\n\n- Jumping to step 6 (application\u002Fmodel) before step 2 (kernel log) — the most repeated pattern from the dispatch test\n- Restarting the process before capturing dmesg — evidence is gone\n- Making multiple changes simultaneously (add swap + switch foreground + reduce workers) — cannot isolate which change fixed it\n- Verifying \"process ran longer\" instead of verifying \"process completed the original scenario\"\n\n### Reflection\n\n- Did the triage order force you to check process state and kernel log before reaching application-layer explanations?\n- Did you state your hypothesis before running each test?\n- Did you make exactly one change and verify against the original symptom, not a proxy?\n- Did you record negative results as evidence for future agents?\n\n---\n\n## 6. Sources\n\nThis skill adapts:\n\n- **Google SRE, _Effective Troubleshooting_** — hypothesis-driven troubleshooting, telemetry\u002Flog examination, test-and-treat loop, and common pitfalls.\n- **IBM troubleshooting techniques** — complete problem description, conditions, reproducibility, and environment questions.\n- **Red Hat problem-solving** — symptom vs problem, one change at a time, and retesting the original symptom.\n- **CompTIA troubleshooting methodology** — identify, form theory, test, plan, implement\u002Fescalate, verify, document.\n",{"name":5,"scope":43,"inputs":44,"outputs":48,"triggers":52,"description":7,"kata_surface":59,"artifact_class":60,"governing_question":61},"task-local",[45,46,47],"blocked task context","symptom description","available evidence (logs, stream output, exit codes, process state)",[49,50,51],"resolved symptom or blocked\u002Fescalated troubleshooting record","triage record (hypotheses tested, results, change made)","RCA handoff trigger (if recurrence risk or systemic root cause)",[5,53,54,55,56,57,58,34],"live failure","process died","silent exit","tool error","OOM","diagnosis","embedded","skill","How do you isolate an active failure through the cheapest discriminating hypothesis before speculating about application or model behavior?","main","fb527e6c4bfb75c71fa75d6471b3aa3da32106d4","src\u002Fpackages\u002Fcnos.eng\u002Fskills\u002Feng\u002Ftroubleshoot",0,"https:\u002F\u002Fgithub.com\u002Fusurobor\u002Fcnos","https:\u002F\u002Fgithub.com\u002Fusurobor","Coherence engineer. Building git-CN.","2026-11-07 14:25:44",{"source":8,"skillName":5,"commands":71,"prompt":81,"zipAvailable":82},[72,75,78],{"tool":73,"command":74},"npx","npx skills add usurobor\u002Fcnos --skill troubleshoot",{"tool":76,"command":77},"bunx","bunx skills add usurobor\u002Fcnos --skill troubleshoot",{"tool":79,"command":80},"pnpm","pnpm dlx skills add usurobor\u002Fcnos --skill troubleshoot","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fusurobor\u002Fcnos\u002Fblob\u002Fmain\u002Fsrc\u002Fpackages\u002Fcnos.eng\u002Fskills\u002Feng\u002Ftroubleshoot\u002FSKILL.md",true,[84,90],{"path":85,"resourceType":86,"resourceTypeDesc":87,"sizeBytes":88,"sourceHtmlUrl":89},"references\u002Fllms-txt-spec.md","REFERENCE","参考文档",1571,"https:\u002F\u002Fgithub.com\u002Fngocsangyem\u002FMeowKit\u002Fblob\u002Fmain\u002Fpackages\u002Fmewkit\u002Fsrc\u002Fmigrate\u002Fmodules\u002Fcursor\u002Froot\u002F.cursor\u002Fskills\u002Fmk-llms\u002Freferences\u002Fllms-txt-spec.md",{"path":91,"resourceType":92,"resourceTypeDesc":93,"sizeBytes":94,"sourceHtmlUrl":95},"scripts\u002Fgenerate-llms-txt.py","SCRIPT","脚本",10286,"https:\u002F\u002Fgithub.com\u002Fngocsangyem\u002FMeowKit\u002Fblob\u002Fmain\u002Fpackages\u002Fmewkit\u002Fsrc\u002Fmigrate\u002Fmodules\u002Fcursor\u002Froot\u002F.cursor\u002Fskills\u002Fmk-llms\u002Fscripts\u002Fgenerate-llms-txt.py",[97,126,146,164,180,200],{"skillNo":98,"name":99,"nameZh":100,"description":101,"descriptionZh":102,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":115,"publishedAt":38},"01M6CF8RWQPM0VXZG06XMR0FFX","issues\u002Ftriage","Issue 分诊与判定","Issue triage doctrine pointer. Use when classifying a new issue, deciding dispatch eligibility, or deciding whether to close\u002Fsupersede\u002Fdefer.","Issue 分诊规则指引。在对新 issue 进行分类、判定其是否符合派发条件，或决定将其关闭\u002F取代\u002F延后时使用。","https:\u002F\u002Fgithub.com\u002Fusurobor\u002Fcnos\u002Fblob\u002Fmain\u002Fsrc\u002Fpackages\u002Fcnos.issues\u002Fskills\u002Ftriage\u002FSKILL.md",[105,110],{"categoryNo":106,"categoryName":107,"taxonomyType":108,"taxonomyTypeDesc":109},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师","PROFESSION","适用职业",{"categoryNo":111,"categoryName":112,"taxonomyType":113,"taxonomyTypeDesc":114},"01M8C2MZSDTE56BDKER3VPW2JM","工单与问题跟踪管理","SCENARIO","使用场景",[37,116,117,118,119,19,120,121,122,123,124,125],"issues","issues triage","issue triage","SET","decision","public","use","dispatch","issue","doctrine",{"skillNo":127,"name":128,"nameZh":129,"description":130,"descriptionZh":131,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":132,"categories":133,"keywords":136,"publishedAt":38},"01M6CF8PJ812DD4APZ3WE8X67B","issues\u002Ftaxonomy","Issue 标签分类体系","Issue label taxonomy pointer. Use when classifying an issue's kind\u002Farea\u002Fpriority\u002Feffort\u002Fstatus\u002Fprotocol\u002Fdispatch labels, or when the board needs to interpret them.","Issue 标签分类体系指引。在对 issue 的 kind\u002Farea\u002Fpriority\u002Feffort\u002Fstatus\u002Fprotocol\u002Fdispatch 标签进行分类，或看板需要解读这些标签时使用。","https:\u002F\u002Fgithub.com\u002Fusurobor\u002Fcnos\u002Fblob\u002Fmain\u002Fsrc\u002Fpackages\u002Fcnos.issues\u002Fskills\u002Ftaxonomy\u002FSKILL.md",[134,135],{"categoryNo":106,"categoryName":107,"taxonomyType":108,"taxonomyTypeDesc":109},{"categoryNo":111,"categoryName":112,"taxonomyType":113,"taxonomyTypeDesc":114},[116,137,138,139,140,141,119,142,121,143,122,123,144,124,145],"taxonomy","issues taxonomy","github","status","protocol","open","board","github issue","issue labels",{"skillNo":147,"name":148,"nameZh":6,"description":149,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":150,"categories":151,"keywords":152,"publishedAt":38},"01M6CF8KBMZ4D0CDJQ3PF1YVTP","issues\u002Fmap","Issue-board (Issue Pivot) generation domain. Use when reasoning about `cn issues map`'s fetch, taxonomy-parse, effort-computation, and render pipeline, or about the board's JSON\u002FHTML output contract.","https:\u002F\u002Fgithub.com\u002Fusurobor\u002Fcnos\u002Fblob\u002Fmain\u002Fsrc\u002Fpackages\u002Fcnos.issues\u002Fskills\u002Fmap\u002FSKILL.md",[],[116,153,139,154,155,156,119,157,137,142,19,158,159,143,160,161,162,163,122,124],"issues map","reasoning","data","pipeline","api","json","README","edit","interactive","fetch","generated",{"skillNo":165,"name":116,"nameZh":6,"description":166,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":167,"categories":168,"keywords":169,"publishedAt":38},"01M6CF8CZQH7G7B7RZPANQWR4G","cnos.issues package entrypoint. Use when reasoning about issue taxonomy, the Issue Pivot \u002F issue-board (`cn issues map`), the read-only CDS issue-state evaluator (`cn issues fsm evaluate`), or the current command-dispatch disposition of issue tooling.","https:\u002F\u002Fgithub.com\u002Fusurobor\u002Fcnos\u002Fblob\u002Fmain\u002Fsrc\u002Fpackages\u002Fcnos.issues\u002FSKILL.md",[],[116,139,170,171,172,173,33,174,175,137,142,19,120,176,159,177,122,178,123,179],"pr","current state","run","artifacts","package","boundary","branch","command","only","cds",{"skillNo":181,"name":182,"nameZh":6,"description":183,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":184,"categories":185,"keywords":186,"publishedAt":38},"01M6CF896XKSRQVB1CSHY8GSXB","receipt-stream","Cross-cycle receipt-stream doctrine for protocol-iteration. Use when γ closes a cycle and writes the per-cycle iteration artifact (`cdd-iteration.md`), when γ updates the cross-cycle aggregator at `.cdd\u002Fiterations\u002FINDEX.md`, when ε reads the receipt stream across cycles to surface protocol-gap patterns, when a finding's disposition lands a cross-repo patch and the cross-repo trace bundle attaches, or when a courtesy empty-findings stub is written for a `protocol_gap_count == 0` cycle.","https:\u002F\u002Fgithub.com\u002Fusurobor\u002Fcnos\u002Fblob\u002Fmain\u002Fsrc\u002Fpackages\u002Fcnos.handoff\u002Fskills\u002Fhandoff\u002Freceipt-stream\u002FSKILL.md",[],[187,188,173,141,189,19,190,191,192,121,193,194,195,196,122,59,197,198,199,125],"receipt stream","handoff","index","learning","format","trace","repo","closeout","read","channel","patch","shape","cdd",{"skillNo":201,"name":202,"nameZh":6,"description":203,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":204,"categories":205,"keywords":206,"publishedAt":38},"01M6CF84VCBME6RK8V6HAVDM8Z","mid-flight","Mid-flight γ→in-flight-α rescue channel. Use when γ needs to change a load-bearing fact (pinned axis, scope, AC, blocker) after α has begun coding, when γ edits the cycle's GitHub issue body mid-cycle, or when a spec change lands on origin\u002Fmain while α\u002Fβ polling sessions are in-flight.","https:\u002F\u002Fgithub.com\u002Fusurobor\u002Fcnos\u002Fblob\u002Fmain\u002Fsrc\u002Fpackages\u002Fcnos.handoff\u002Fskills\u002Fhandoff\u002Fmid-flight\u002FSKILL.md",[],[207,139,36,208,209,210,19,211,212,176,193,195,122,178,123,213,144,214,215,216],"mid flight","sessions","file","cache","pin","coordination","up","Legacy","gamma","artifact channel"]