[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6DJJBVW33Q4NFQKDJM4W402":3,"skill-same:01M6DJJBVW33Q4NFQKDJM4W402":67},{"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":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":44,"commitSha":45,"skillDirectory":46,"forksCount":47,"repositoryHtmlUrl":48,"repositoryHomepageUrl":6,"ownerHtmlUrl":49,"ownerBlogUrl":50,"ownerDescription":51,"updatedAt":52,"install":53,"resources":66},"01M6DJJBVW33Q4NFQKDJM4W402","post-mortem",null,"Write the canonical engineering record of a fixed bug — root cause, mechanism, fix, validation, and how it slipped through. Engineer-audience, code identifiers welcome. Use after a debug session lands a fix, before closing the ticket. Trigger on \u002Fpost-mortem, when the user says \"write the post-mortem \u002F postmortem \u002F RCA \u002F root cause analysis\", \"document this fix\", \"write up the root cause\", \"close out this bug with a writeup\", or hands you a fixed-and-validated bug and asks for the writeup.","danchamorro\u002Fpi-agent-toolkit","danchamorro","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F19739839?v=4","01M6DJG9M33RM5P1GFCFG9DSJE","Dan Chamorro","01M6DJG9QYKDT43HSTFG1JPK82",17,"MIT","https:\u002F\u002Fgithub.com\u002Fdanchamorro\u002Fpi-agent-toolkit\u002Fblob\u002Fmain\u002Fdotfiles\u002Fpersonal-skills\u002Fengineering\u002Fpost-mortem\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"post mortem","ticket","rca","trigger","record","document","bug","engineer","up","use","session","fix","write","postmortem","how","analysis","validation","code","welcome","debug","2026-11-10 10:12:30",false,"---\nname: post-mortem\ndescription: Write the canonical engineering record of a fixed bug — root cause, mechanism, fix, validation, and how it slipped through. Engineer-audience, code identifiers welcome. Use after a debug session lands a fix, before closing the ticket. Trigger on \u002Fpost-mortem, when the user says \"write the post-mortem \u002F postmortem \u002F RCA \u002F root cause analysis\", \"document this fix\", \"write up the root cause\", \"close out this bug with a writeup\", or hands you a fixed-and-validated bug and asks for the writeup.\n---\n\n# Post-mortem\n\nThe canonical engineering record of a bug fix. Written **after** debugging lands a real fix, **for** other engineers (and future-you, who will have forgotten everything in 6 months). Code identifiers are welcome here — this is the artifact that lets the next person recover the mental model fast.\n\nFor the up-the-org version of this same content, hand the finished post-mortem to [`management-talk`](..\u002F..\u002Fdocs-communication\u002Fmanagement-talk\u002FSKILL.md). They compose: post-mortem owns the engineering truth, management-talk reframes it for leadership.\n\n## When to invoke\n\n- \"\u002Fpost-mortem\"\n- \"write the post-mortem \u002F postmortem \u002F RCA \u002F root-cause analysis\"\n- \"document this fix\" \u002F \"write up the root cause\" \u002F \"close out this bug with a writeup\"\n- After a debug session has clearly landed a fix, proactively offer to draft one.\n\n## When NOT to use\n\n- **Bug not fixed yet, or fix not validated.** A post-mortem of a hypothesis is misleading. Refuse and tell the user what's missing.\n- **Customer-visible outage \u002F incident.** Those need a separate incident report (timeline, blast radius, paging history, comms). This skill is bug-fix scope. Flag and confirm before producing one.\n- **Trivial fix** (typo, obvious one-liner). The PR description is the record. Don't manufacture ceremony.\n\n## Required inputs — refuse to draft without these\n\nBefore writing a single line, confirm all four. If any are missing, list what's missing and stop:\n\n- [ ] **Reliable repro** exists (not \"happens sometimes\" — a deterministic or high-rate-flake repro the next person can run).\n- [ ] **Root cause is known** (the mechanism is identified, not a hypothesis).\n- [ ] **Fix is identified** (PR \u002F commit \u002F branch pointer).\n- [ ] **Fix is validated** (the original repro now passes; the customer workload \u002F failing test now succeeds).\n\nThese map directly to `debug-mantra` steps 1–4. If you came in via `debug-mantra`, the breadcrumb ledger from step 4 is your raw material — pull from it.\n\n## Structure\n\nUse these blocks in this order. **Summary, Root cause, Fix, and Validation are mandatory.** The rest are conditional but usually present.\n\n### 1. Summary _(mandatory)_\nOne paragraph. What broke, in user\u002Fworkload terms. What fixed it, in one sentence. JIRA key, PR number, owner. A reader who stops here should have the right answer.\n\n### 2. Symptom\nWhat was actually observed. Test output, error message, log line, perf number, customer report. Concrete identifiers — don't paraphrase the failure mode.\n\n### 3. Root cause _(mandatory)_\nThe actual bug mechanism. **Code identifiers welcome and expected** — function names, file paths, struct fields, branch conditions, commit SHAs of the offending change. Walk the cause chain end-to-end. This is the most expensive section and the reason the post-mortem exists at all. Future-you will live or die by how clearly you write this.\n\n### 4. Why it produced the symptom\nLink the root cause to the symptom. Often non-obvious — the bug is in `tadaLaunchPrepare` but the visible failure is a customer training run hanging hours later. Walk the chain so a reader who only knows the symptom can connect it back to the cause without re-deriving it.\n\n### 5. Fix _(mandatory)_\nWhat changed and **why this change addresses the root cause** rather than hiding the symptom. Link to PR \u002F commit. If a previous fix attempt papered over the symptom, name it and explain what was wrong with it — that history is part of the cause.\n\n### 6. How it was found\nShort. The debugging path:\n- What repro made it deterministic.\n- What tools cracked it (debugger, source tracing, knob enumeration, in-code instrumentation — the `debug-mantra` step 2 cascade).\n- Hypotheses tried and rejected, with the one-line reason each was rejected. (Pull from the breadcrumb ledger.)\n- The single experiment that confirmed the cause.\n\nThis section is for the next debugger — make it learnable.\n\n### 7. Why it slipped through\nWhat allowed this bug to reach the branch \u002F release \u002F customer. Pick the real reason:\n- CI gap (no test exercises this path \u002F configuration).\n- Latent code (correct when written, broken by a later change in a different file).\n- Workload gap (no real workload reached this code path until now).\n- Incomplete prior fix (defensive check hid the symptom; root cause untouched).\n- Review miss (the change was reviewable; the implication wasn't).\n\nIf the honest answer is \"no good reason — we should have caught this,\" say so. **Blameless** — describe the gap, not the person.\n\n### 8. Validation _(mandatory)_\nHow we know the fix works. Concrete:\n- Original failing test now passes (test name, link).\n- Customer workload now completes (workload identifier, run link).\n- Perf regression resolved (number before, number after).\n- Stress \u002F soak \u002F fuzz run completed clean (duration, scale).\n- Other affected configurations \u002F workloads also tested.\n\nIf you only validated one configuration, say so explicitly — *\"validated on Llama-2-70B \u002F 8 GPUs \u002F DeepSpeed; not retested on other workloads.\"* Don't imply broader coverage than you actually have.\n\n### 9. Action items \u002F follow-ups\nConcrete next-steps that aren't in the fix PR itself. Each item: what + owner + tracking artifact.\n\n- Regression test added at \\\u003Cseam\\>. (Owner, test name.)\n- Refactor to prevent class of bug. (Owner, ticket.)\n- CI gap closed: \\\u003Cnew check\\>. (Owner, PR.)\n- Doc \u002F runbook updated. (Owner, link.)\n- Related ticket filed for \\\u003Cadjacent issue you noticed\\>. (Owner, key.)\n\nIf there are no action items, write *\"None — the fix is sufficient and no class-of-bug follow-up is warranted.\"* Don't manufacture action items to look thorough.\n\n## Tone\n\nThis is engineer-to-engineer. Different from `management-talk`:\n\n- **Code identifiers are first-class.** `tadaLaunchPrepare`, `tada\u002Fprim.h::syncWaitPeer`, `scratchBuf`, commit SHAs, line numbers — keep them. The whole point is that future engineers can grep their way back to the change.\n- **Mechanism over narrative.** Walk the actual cause chain. Don't soften it into \"a synchronization issue\" — say which function skipped which event under which gate.\n- **Active voice, concrete subjects, short paragraphs.** Same rule as everywhere else.\n- **No hedging.** \"We believe\" \u002F \"appears to\" \u002F \"may have\" — drop. State it or don't write it.\n- **Blameless.** Describe the bug, the gap, and the fix. Never \"X should have caught this.\" The CI gap is the failure mode, not the person.\n- **No advocacy.** A post-mortem records what happened and what's next. If you want to argue for a refactor, that's a separate proposal — link to it from the action items.\n\n## Output flow\n\n1. **Confirm all four required inputs are satisfied.** If any are missing, list them and stop. Do not draft.\n2. **Confirm where it goes** (default: JIRA comment on the source ticket). Other valid destinations: PR description, `docs\u002Fpostmortems\u002F\u003Cticket>.md`, internal wiki page. The shape is the same — only the wrapping changes.\n3. **Produce the draft** as a single chat block.\n4. **Sign-off before posting.** If posting back to JIRA, show the exact ADF payload, wait for explicit *\"post it\"* \u002F *\"go ahead\"* \u002F *\"yes,\"* then `POST \u002Frest\u002Fapi\u002F3\u002Fissue\u002F\u003CKEY>\u002Fcomment`. Print-only output needs no approval.\n5. **Offer the management-talk handoff:** *\"Want a leadership-flavored version? I can hand this to `management-talk`.\"* Don't do it automatically.\n\n## Worked example — Tada hang in dumbModel (JIRA-12345)\n\n> **Summary.** Tada's single-stream fast-path skipped a required cross-stream synchronization, causing kernels to launch before scratch-buffer writes were visible. Triggered reliably by dumbModel on LLM-7B fine-tuning, hanging the workload at every eval step. Fixed by removing the unsafe fast-path and tightening a device-side check. JIRA-12345, PR org\u002Fplatform#5751, owner Alex (Tada team).\n>\n> **Symptom.** 8-GPU LLM-7B fine-tuning under dumbModel hung indefinitely at the first eval step. No error, no timeout — busy-spin in `tadaKernel_AllReduce_f32_RING`. Reproduced on every run.\n>\n> **Root cause.** The single-stream fast-path in `tadaLaunchPrepare` \u002F `tadaLaunchKernel` \u002F `tadaLaunchFinish` (gated on `scheduler->numStreams == 1 && !plan->persistent`) skipped the cross-stream event between `launchStream` and `handle->shared->deviceStream`. dumbModel hits this gate exactly. The kernel was launched before the IPC publish \u002F scratch-buffer writes on `deviceStream` (which populate `scratchBuf`) were visible to `launchStream`. In the kernel: `scratchBuf == NULL` → stray pointer dereference → ring ready-flag read from garbage memory → thread spins forever waiting for a ready signal that will never arrive.\n>\n> **Why it produced the symptom.** The hang lives in the all-reduce ring waitloop, which is the last visible thing in the call stack — but the actual bug is at launch-prep, several frames earlier. The skipped sync is silent until a workload triggers the exact gate (single-stream, non-persistent), and dumbModel's reduce-scatter pattern hits it at every eval step.\n>\n> **Fix.** PR #5751 removes the single-stream fast-path entirely (the saving was negligible vs. the safety it bypassed) and adds a device-side null check on `scratchBuf` before dereference, so the same class of bug fails loudly instead of silently spinning. A previous attempt (PR #5612) added a host-side defensive check after IPC publish that hid the symptom in some paths but left the underlying race in place — that change is also reverted.\n>\n> **How it was found.** Reproducer narrowed from \"8-GPU LLM-7B hangs sometimes\" to a deterministic 30s repro by pinning to a single eval step on a 2-GPU subset. Initial hypothesis: kernel launch ordering on `launchStream`. Disproved by the debugger — the kernel was correctly enqueued. Second hypothesis: scratch-buffer init race. Confirmed by adding `[DBG-7af3]` instrumentation in `tadaLaunchPrepare` printing `scratchBuf` and a `deviceStream` event-record timestamp; the launch happened before the publish completed. Single experiment that nailed it: forcing `numStreams = 2` made the bug disappear, isolating the gate.\n>\n> **Why it slipped through.** Latent code path. The single-stream fast-path was added in March under the assumption that dumbModel paths always took the multi-stream route. That assumption was true at the time. A May change to dumbModel's launcher began collapsing eval steps to a single stream — at which point the gate flipped. Tada's CI did not exercise the single-stream + IPC + scratch-buffer combination; the customer workload was the first to hit it.\n>\n> **Validation.** Original LLM-7B \u002F 8-GPU \u002F dumbModel workload now completes a full eval pass cleanly (3 consecutive 2-hour runs). `tada-tests` `all_reduce_perf` regression suite green. Soak run: 6 hours on 8 GPUs, no hang. Not retested on other model sizes or non-dumbModel workloads — both go through the multi-stream path and were never affected.\n>\n> **Action items.**\n> - Regression test added: `tests\u002Fsingle_stream_ipc_publish_test.cpp` exercising the previously-uncovered gate. (Alex, merged in PR #5751.)\n> - CI gap: add a single-stream + IPC matrix entry to nightly. (Alex, JIRA-12346.)\n> - Doc update: Tada launch-fast-path invariants documented in `docs\u002Flaunch_synchronization.md`. (Alex, PR #5752.)\n> - Related: audit other `numStreams == 1` fast-paths for the same class of bug. (Filed as JIRA-12347.)\n\nWhat this post-mortem does that the management-talk version didn't:\n\n- Names every code identifier (`tadaLaunchPrepare`, `scratchBuf`, `numStreams`, `handle->shared->deviceStream`).\n- Walks the cause chain end-to-end so the reader can grep their way to the offending lines.\n- Names the *prior fix attempt* (PR #5612) and what was wrong with it.\n- Documents the *exact experiment* that nailed the cause (`numStreams = 2` made it disappear).\n- States validation coverage honestly — \"not retested on other model sizes\" is information, not a hole.\n- Action items have owners and tracking artifacts.\n\n## Rules\n\n- **Refuse to draft without all four required inputs.** A post-mortem of a hypothesis is worse than no post-mortem.\n- **Never invent root cause, owner, validation runs, or action items.** If a section's facts aren't there, ask. Don't fill the gap with plausible prose.\n- **Never strip code identifiers** in the engineering record. They are the index. The leadership reframe is `management-talk`'s job, not yours.\n- **Blameless.** Describe gaps and bugs, never people.\n- **State validation coverage honestly.** If you only tested one config, say so. Implying broader coverage is the failure mode that breeds repeat regressions.\n- **Get sign-off before posting to JIRA.** Print-only output needs no approval. Never post to non-JIRA destinations from this skill.\n- **One iteration is normal, three is a smell.** If the user is still revising on the third pass, ask what specific section is wrong — don't keep tweaking blindly.\n","# Post-mortem\n\nThe canonical engineering record of a bug fix. Written **after** debugging lands a real fix, **for** other engineers (and future-you, who will have forgotten everything in 6 months). Code identifiers are welcome here — this is the artifact that lets the next person recover the mental model fast.\n\nFor the up-the-org version of this same content, hand the finished post-mortem to [`management-talk`](..\u002F..\u002Fdocs-communication\u002Fmanagement-talk\u002FSKILL.md). They compose: post-mortem owns the engineering truth, management-talk reframes it for leadership.\n\n## When to invoke\n\n- \"\u002Fpost-mortem\"\n- \"write the post-mortem \u002F postmortem \u002F RCA \u002F root-cause analysis\"\n- \"document this fix\" \u002F \"write up the root cause\" \u002F \"close out this bug with a writeup\"\n- After a debug session has clearly landed a fix, proactively offer to draft one.\n\n## When NOT to use\n\n- **Bug not fixed yet, or fix not validated.** A post-mortem of a hypothesis is misleading. Refuse and tell the user what's missing.\n- **Customer-visible outage \u002F incident.** Those need a separate incident report (timeline, blast radius, paging history, comms). This skill is bug-fix scope. Flag and confirm before producing one.\n- **Trivial fix** (typo, obvious one-liner). The PR description is the record. Don't manufacture ceremony.\n\n## Required inputs — refuse to draft without these\n\nBefore writing a single line, confirm all four. If any are missing, list what's missing and stop:\n\n- [ ] **Reliable repro** exists (not \"happens sometimes\" — a deterministic or high-rate-flake repro the next person can run).\n- [ ] **Root cause is known** (the mechanism is identified, not a hypothesis).\n- [ ] **Fix is identified** (PR \u002F commit \u002F branch pointer).\n- [ ] **Fix is validated** (the original repro now passes; the customer workload \u002F failing test now succeeds).\n\nThese map directly to `debug-mantra` steps 1–4. If you came in via `debug-mantra`, the breadcrumb ledger from step 4 is your raw material — pull from it.\n\n## Structure\n\nUse these blocks in this order. **Summary, Root cause, Fix, and Validation are mandatory.** The rest are conditional but usually present.\n\n### 1. Summary _(mandatory)_\nOne paragraph. What broke, in user\u002Fworkload terms. What fixed it, in one sentence. JIRA key, PR number, owner. A reader who stops here should have the right answer.\n\n### 2. Symptom\nWhat was actually observed. Test output, error message, log line, perf number, customer report. Concrete identifiers — don't paraphrase the failure mode.\n\n### 3. Root cause _(mandatory)_\nThe actual bug mechanism. **Code identifiers welcome and expected** — function names, file paths, struct fields, branch conditions, commit SHAs of the offending change. Walk the cause chain end-to-end. This is the most expensive section and the reason the post-mortem exists at all. Future-you will live or die by how clearly you write this.\n\n### 4. Why it produced the symptom\nLink the root cause to the symptom. Often non-obvious — the bug is in `tadaLaunchPrepare` but the visible failure is a customer training run hanging hours later. Walk the chain so a reader who only knows the symptom can connect it back to the cause without re-deriving it.\n\n### 5. Fix _(mandatory)_\nWhat changed and **why this change addresses the root cause** rather than hiding the symptom. Link to PR \u002F commit. If a previous fix attempt papered over the symptom, name it and explain what was wrong with it — that history is part of the cause.\n\n### 6. How it was found\nShort. The debugging path:\n- What repro made it deterministic.\n- What tools cracked it (debugger, source tracing, knob enumeration, in-code instrumentation — the `debug-mantra` step 2 cascade).\n- Hypotheses tried and rejected, with the one-line reason each was rejected. (Pull from the breadcrumb ledger.)\n- The single experiment that confirmed the cause.\n\nThis section is for the next debugger — make it learnable.\n\n### 7. Why it slipped through\nWhat allowed this bug to reach the branch \u002F release \u002F customer. Pick the real reason:\n- CI gap (no test exercises this path \u002F configuration).\n- Latent code (correct when written, broken by a later change in a different file).\n- Workload gap (no real workload reached this code path until now).\n- Incomplete prior fix (defensive check hid the symptom; root cause untouched).\n- Review miss (the change was reviewable; the implication wasn't).\n\nIf the honest answer is \"no good reason — we should have caught this,\" say so. **Blameless** — describe the gap, not the person.\n\n### 8. Validation _(mandatory)_\nHow we know the fix works. Concrete:\n- Original failing test now passes (test name, link).\n- Customer workload now completes (workload identifier, run link).\n- Perf regression resolved (number before, number after).\n- Stress \u002F soak \u002F fuzz run completed clean (duration, scale).\n- Other affected configurations \u002F workloads also tested.\n\nIf you only validated one configuration, say so explicitly — *\"validated on Llama-2-70B \u002F 8 GPUs \u002F DeepSpeed; not retested on other workloads.\"* Don't imply broader coverage than you actually have.\n\n### 9. Action items \u002F follow-ups\nConcrete next-steps that aren't in the fix PR itself. Each item: what + owner + tracking artifact.\n\n- Regression test added at \\\u003Cseam\\>. (Owner, test name.)\n- Refactor to prevent class of bug. (Owner, ticket.)\n- CI gap closed: \\\u003Cnew check\\>. (Owner, PR.)\n- Doc \u002F runbook updated. (Owner, link.)\n- Related ticket filed for \\\u003Cadjacent issue you noticed\\>. (Owner, key.)\n\nIf there are no action items, write *\"None — the fix is sufficient and no class-of-bug follow-up is warranted.\"* Don't manufacture action items to look thorough.\n\n## Tone\n\nThis is engineer-to-engineer. Different from `management-talk`:\n\n- **Code identifiers are first-class.** `tadaLaunchPrepare`, `tada\u002Fprim.h::syncWaitPeer`, `scratchBuf`, commit SHAs, line numbers — keep them. The whole point is that future engineers can grep their way back to the change.\n- **Mechanism over narrative.** Walk the actual cause chain. Don't soften it into \"a synchronization issue\" — say which function skipped which event under which gate.\n- **Active voice, concrete subjects, short paragraphs.** Same rule as everywhere else.\n- **No hedging.** \"We believe\" \u002F \"appears to\" \u002F \"may have\" — drop. State it or don't write it.\n- **Blameless.** Describe the bug, the gap, and the fix. Never \"X should have caught this.\" The CI gap is the failure mode, not the person.\n- **No advocacy.** A post-mortem records what happened and what's next. If you want to argue for a refactor, that's a separate proposal — link to it from the action items.\n\n## Output flow\n\n1. **Confirm all four required inputs are satisfied.** If any are missing, list them and stop. Do not draft.\n2. **Confirm where it goes** (default: JIRA comment on the source ticket). Other valid destinations: PR description, `docs\u002Fpostmortems\u002F\u003Cticket>.md`, internal wiki page. The shape is the same — only the wrapping changes.\n3. **Produce the draft** as a single chat block.\n4. **Sign-off before posting.** If posting back to JIRA, show the exact ADF payload, wait for explicit *\"post it\"* \u002F *\"go ahead\"* \u002F *\"yes,\"* then `POST \u002Frest\u002Fapi\u002F3\u002Fissue\u002F\u003CKEY>\u002Fcomment`. Print-only output needs no approval.\n5. **Offer the management-talk handoff:** *\"Want a leadership-flavored version? I can hand this to `management-talk`.\"* Don't do it automatically.\n\n## Worked example — Tada hang in dumbModel (JIRA-12345)\n\n> **Summary.** Tada's single-stream fast-path skipped a required cross-stream synchronization, causing kernels to launch before scratch-buffer writes were visible. Triggered reliably by dumbModel on LLM-7B fine-tuning, hanging the workload at every eval step. Fixed by removing the unsafe fast-path and tightening a device-side check. JIRA-12345, PR org\u002Fplatform#5751, owner Alex (Tada team).\n>\n> **Symptom.** 8-GPU LLM-7B fine-tuning under dumbModel hung indefinitely at the first eval step. No error, no timeout — busy-spin in `tadaKernel_AllReduce_f32_RING`. Reproduced on every run.\n>\n> **Root cause.** The single-stream fast-path in `tadaLaunchPrepare` \u002F `tadaLaunchKernel` \u002F `tadaLaunchFinish` (gated on `scheduler->numStreams == 1 && !plan->persistent`) skipped the cross-stream event between `launchStream` and `handle->shared->deviceStream`. dumbModel hits this gate exactly. The kernel was launched before the IPC publish \u002F scratch-buffer writes on `deviceStream` (which populate `scratchBuf`) were visible to `launchStream`. In the kernel: `scratchBuf == NULL` → stray pointer dereference → ring ready-flag read from garbage memory → thread spins forever waiting for a ready signal that will never arrive.\n>\n> **Why it produced the symptom.** The hang lives in the all-reduce ring waitloop, which is the last visible thing in the call stack — but the actual bug is at launch-prep, several frames earlier. The skipped sync is silent until a workload triggers the exact gate (single-stream, non-persistent), and dumbModel's reduce-scatter pattern hits it at every eval step.\n>\n> **Fix.** PR #5751 removes the single-stream fast-path entirely (the saving was negligible vs. the safety it bypassed) and adds a device-side null check on `scratchBuf` before dereference, so the same class of bug fails loudly instead of silently spinning. A previous attempt (PR #5612) added a host-side defensive check after IPC publish that hid the symptom in some paths but left the underlying race in place — that change is also reverted.\n>\n> **How it was found.** Reproducer narrowed from \"8-GPU LLM-7B hangs sometimes\" to a deterministic 30s repro by pinning to a single eval step on a 2-GPU subset. Initial hypothesis: kernel launch ordering on `launchStream`. Disproved by the debugger — the kernel was correctly enqueued. Second hypothesis: scratch-buffer init race. Confirmed by adding `[DBG-7af3]` instrumentation in `tadaLaunchPrepare` printing `scratchBuf` and a `deviceStream` event-record timestamp; the launch happened before the publish completed. Single experiment that nailed it: forcing `numStreams = 2` made the bug disappear, isolating the gate.\n>\n> **Why it slipped through.** Latent code path. The single-stream fast-path was added in March under the assumption that dumbModel paths always took the multi-stream route. That assumption was true at the time. A May change to dumbModel's launcher began collapsing eval steps to a single stream — at which point the gate flipped. Tada's CI did not exercise the single-stream + IPC + scratch-buffer combination; the customer workload was the first to hit it.\n>\n> **Validation.** Original LLM-7B \u002F 8-GPU \u002F dumbModel workload now completes a full eval pass cleanly (3 consecutive 2-hour runs). `tada-tests` `all_reduce_perf` regression suite green. Soak run: 6 hours on 8 GPUs, no hang. Not retested on other model sizes or non-dumbModel workloads — both go through the multi-stream path and were never affected.\n>\n> **Action items.**\n> - Regression test added: `tests\u002Fsingle_stream_ipc_publish_test.cpp` exercising the previously-uncovered gate. (Alex, merged in PR #5751.)\n> - CI gap: add a single-stream + IPC matrix entry to nightly. (Alex, JIRA-12346.)\n> - Doc update: Tada launch-fast-path invariants documented in `docs\u002Flaunch_synchronization.md`. (Alex, PR #5752.)\n> - Related: audit other `numStreams == 1` fast-paths for the same class of bug. (Filed as JIRA-12347.)\n\nWhat this post-mortem does that the management-talk version didn't:\n\n- Names every code identifier (`tadaLaunchPrepare`, `scratchBuf`, `numStreams`, `handle->shared->deviceStream`).\n- Walks the cause chain end-to-end so the reader can grep their way to the offending lines.\n- Names the *prior fix attempt* (PR #5612) and what was wrong with it.\n- Documents the *exact experiment* that nailed the cause (`numStreams = 2` made it disappear).\n- States validation coverage honestly — \"not retested on other model sizes\" is information, not a hole.\n- Action items have owners and tracking artifacts.\n\n## Rules\n\n- **Refuse to draft without all four required inputs.** A post-mortem of a hypothesis is worse than no post-mortem.\n- **Never invent root cause, owner, validation runs, or action items.** If a section's facts aren't there, ask. Don't fill the gap with plausible prose.\n- **Never strip code identifiers** in the engineering record. They are the index. The leadership reframe is `management-talk`'s job, not yours.\n- **Blameless.** Describe gaps and bugs, never people.\n- **State validation coverage honestly.** If you only tested one config, say so. Implying broader coverage is the failure mode that breeds repeat regressions.\n- **Get sign-off before posting to JIRA.** Print-only output needs no approval. Never post to non-JIRA destinations from this skill.\n- **One iteration is normal, three is a smell.** If the user is still revising on the third pass, ask what specific section is wrong — don't keep tweaking blindly.\n",{"name":5,"description":7},"main","b762a116c343f012c9b23009a7f2d9af217b8b00","dotfiles\u002Fpersonal-skills\u002Fengineering\u002Fpost-mortem",1,"https:\u002F\u002Fgithub.com\u002Fdanchamorro\u002Fpi-agent-toolkit","https:\u002F\u002Fgithub.com\u002Fdanchamorro","https:\u002F\u002Fdanchamorro.com","Python engineer by day, SaaS founder by night","2026-08-24 04:44:54",{"source":8,"skillName":5,"commands":54,"prompt":64,"zipAvailable":65},[55,58,61],{"tool":56,"command":57},"npx","npx skills add danchamorro\u002Fpi-agent-toolkit --skill post-mortem",{"tool":59,"command":60},"bunx","bunx skills add danchamorro\u002Fpi-agent-toolkit --skill post-mortem",{"tool":62,"command":63},"pnpm","pnpm dlx skills add danchamorro\u002Fpi-agent-toolkit --skill post-mortem","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fdanchamorro\u002Fpi-agent-toolkit\u002Fblob\u002Fmain\u002Fdotfiles\u002Fpersonal-skills\u002Fengineering\u002Fpost-mortem\u002FSKILL.md",true,[],[68,93,112,128,154,168],{"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":39},"01M6DJKPTTD68WF0YJRZ4XNRVH","1password-developer","Work with 1Password developer features including SSH key management, the SSH agent, 1Password Environments for secrets injection, and the op CLI. Use this skill whenever the user mentions 1Password, op CLI, 1Password SSH agent, 1Password Environments, secret references, op run, op inject, or wants to manage SSH keys through 1Password, secure .env files with 1Password, or inject secrets at runtime. Also trigger when the user wants to stop storing plaintext secrets on disk or asks about securing developer credentials.","https:\u002F\u002Fgithub.com\u002Fdanchamorro\u002Fpi-agent-toolkit\u002Fblob\u002Fmain\u002Fdotfiles\u002Fpersonal-skills\u002Fsecurity-environment\u002F1password-developer\u002FSKILL.md",[],[75,76,77,78,79,22,80,81,82,83,84,28,85,86,87,88,89,90,91,92],"1password developer","developer","1password","cli","work","env","runtime","references","manage","files","management","disk","secrets","credentials","ssh","injection","run","secure",{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":39},"01M6DJKJ8FW4D1R7009DBJAN0Z","plan-reviewer","Use when creating, refining, or reviewing implementation plans, migration plans, refactoring proposals, feature plans, implementation trackers, or committable phase plans; especially when turning a rough plan into executable phases or checking whether a plan is concrete, testable, safe, dependency-aware, and suitable for parallel work.","https:\u002F\u002Fgithub.com\u002Fdanchamorro\u002Fpi-agent-toolkit\u002Fblob\u002Fmain\u002Fdotfiles\u002Fpersonal-skills\u002Fplanning\u002Fplan-reviewer\u002FSKILL.md",[],[100,101,102,103,104,105,106,107,28,108,79,109,110,111],"plan reviewer","reviewer","plan","plans","feature","implementation","migration","dependency","proposals","parallel","refactoring","safe",{"skillNo":113,"name":114,"nameZh":6,"description":115,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":116,"categories":117,"keywords":118,"publishedAt":39},"01M6DJKC1N9DDSGDNE8AZJ4NZ0","brainstorm","Interview the user relentlessly about a plan or design until reaching shared understanding, resolving each branch of the decision tree. Use when user wants to stress-test a plan, get grilled on their design, or mentions \"brainstorm\".","https:\u002F\u002Fgithub.com\u002Fdanchamorro\u002Fpi-agent-toolkit\u002Fblob\u002Fmain\u002Fdotfiles\u002Fpersonal-skills\u002Fplanning\u002Fbrainstorm\u002FSKILL.md",[],[114,119,120,121,28,122,123,124,102,125,126,127],"get","shared","stress-test","interview","branch","decision","test","design","user",{"skillNo":129,"name":130,"nameZh":6,"description":131,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":132,"categories":133,"keywords":134,"publishedAt":39},"01M6DJK7Z2833PKW7PHQR7P956","youtube-video-context","Use this skill whenever the user gives a YouTube URL and asks to summarize, digest, analyze, extract transcript\u002Fcontext, decide whether a video is worth watching, or understand what a video is about. Prefer the summarize CLI for YouTube\u002Fvideo context instead of web search. Use Codex as the default summarize backend when possible, and use the local Whisper large-v3 model for transcription fallback. Do not use this for ordinary web pages; use the installed web-access tools for webpage research.","https:\u002F\u002Fgithub.com\u002Fdanchamorro\u002Fpi-agent-toolkit\u002Fblob\u002Fmain\u002Fdotfiles\u002Fpersonal-skills\u002Fmedia\u002Fyoutube-video-context\u002FSKILL.md",[],[135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,28,153],"youtube video context","youtube","context","Video","web search","access","dlp","search","cpp","model","local","as","v3","pages","yt-dlp","local whisper","do","default","decide",{"skillNo":155,"name":156,"nameZh":6,"description":157,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":158,"categories":159,"keywords":160,"publishedAt":39},"01M6DJK3RXFZP1M42D0MEG19D8","thermos","Launch both thermo-nuclear review subagents in parallel. Use for thermos, double thermo review, or combined bug\u002Fsecurity and code-quality branch audits.","https:\u002F\u002Fgithub.com\u002Fdanchamorro\u002Fpi-agent-toolkit\u002Fblob\u002Fmain\u002Fdotfiles\u002Fpersonal-skills\u002Fengineering\u002Fthermos\u002FSKILL.md",[],[156,161,162,25,28,123,163,109,164,36,165,166,167],"subagents","nuclear","quality","code-quality","launch","security","review",{"skillNo":169,"name":170,"nameZh":6,"description":171,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":172,"categories":173,"keywords":174,"publishedAt":39},"01M6DJK0D7GN2THPKEYQTXSAYM","thermo-nuclear-review","Comprehensive security and correctness audit of a branch's changes. Use for thermo nuclear, thermonuclear, or deep review requests, or branch\u002FPR diff audits focused on bugs, breaking changes, security issues, devex regressions, and feature-gate leaks.","https:\u002F\u002Fgithub.com\u002Fdanchamorro\u002Fpi-agent-toolkit\u002Fblob\u002Fmain\u002Fdotfiles\u002Fpersonal-skills\u002Fengineering\u002Fthermo-nuclear-review\u002FSKILL.md",[],[167,162,175,176,177,123,166,178,179,180,104,28,181,182,183],"thermo nuclear review","audit","deep review","pr","issues","deep","diff","thermonuclear","gate"]