[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M70SHWJV9N3PQWRAMCQE9C2E":3,"skill-same:01M70SHWJV9N3PQWRAMCQE9C2E":72},{"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":23,"publishedAt":44,"linkOnly":45,"markdownContent":46,"markdownBody":47,"frontMatter":48,"refName":49,"commitSha":50,"skillDirectory":51,"forksCount":52,"repositoryHtmlUrl":53,"repositoryHomepageUrl":54,"ownerHtmlUrl":55,"ownerBlogUrl":6,"ownerDescription":56,"updatedAt":57,"install":58,"resources":71},"01M70SHWJV9N3PQWRAMCQE9C2E","verify-history-rewrite",null,"Formally verify the session-history rewrite path before or after changing it. Use when editing internal\u002Fsession\u002Fautocompact.go, internal\u002Fsession\u002Fcompaction*.go, internal\u002Fsession\u002Fstore.go's Compact\u002FClearEvents\u002FrewriteEvents, internal\u002Fagent\u002Fagent.go's Run\u002FRunStreaming\u002FrunPreTurn, or internal\u002Ftui\u002Fcommands.go's clearConversation\u002FclearSessionContext and the context gauge — or when a turn is canceled mid-flight, a tool call and its result get separated, a session's history disappears while the agent is still working, or the model is sent a tool result whose call was compacted away.","dimetron\u002Fpi-go","dimetron","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F877433?v=4","01M6E34QX9HKYKMWJVZQEPR2Q3","Dmytro Rashko","01M6E34R2A6563XM0PTZE8KPGG",224,"MIT","https:\u002F\u002Fgithub.com\u002Fdimetron\u002Fpi-go\u002Fblob\u002Fmain\u002Finternal\u002Fextension\u002Fbundled_skills\u002Fverify-history-rewrite\u002FSKILL.md",[18],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000023","Skill与智能体开发","SCENARIO","使用场景",[24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43],"rewrite","verify history rewrite","verify","history","tui","go","commands","run","result","gauge","store","when","compact","use","call","tool","session","editing","model","get","2026-11-10 10:12:30",false,"---\nname: verify-history-rewrite\ndescription: Formally verify the session-history rewrite path before or after changing it. Use when editing internal\u002Fsession\u002Fautocompact.go, internal\u002Fsession\u002Fcompaction*.go, internal\u002Fsession\u002Fstore.go's Compact\u002FClearEvents\u002FrewriteEvents, internal\u002Fagent\u002Fagent.go's Run\u002FRunStreaming\u002FrunPreTurn, or internal\u002Ftui\u002Fcommands.go's clearConversation\u002FclearSessionContext and the context gauge — or when a turn is canceled mid-flight, a tool call and its result get separated, a session's history disappears while the agent is still working, or the model is sent a tool result whose call was compacted away.\n---\n\n# Verify the history-rewrite path\n\nA session's event list is rewritten from four places. One of them is not gated on\nwhether a turn is running, and one of them cuts without checking that a tool call\nand its result stay on the same side. Both are reachable by a user today; neither\nis caught by a test, because a test cannot easily produce the interleaving.\n\nThe properties: **history is only rewritten between turns**, and **a compaction\ncut never separates a tool call from its result**.\n\n**This model reports two findings that were real and are now fixed.** Both rules\nbroke on the shipped code when the model was written; both are green now because\nthe code was changed, not because a rule was weakened. See\n[Findings](#findings) for each, the path that reached it, and the test that now\nholds it.\n\nThe model was changed with the fixes: `SlashCompact` now rounds its cut and\n`GaugeClearsMidTurn` ends the turn instead of leaving it running. That is the only\nlegitimate way to make a broken rule green — change the model to match the code,\nthen confirm the break still reproduces. The regression check at the bottom of this\nskill is what keeps it honest.\n\nIf a finding is real and *not yet* fixed, declare the rule in\n`hack\u002Fformal\u002Fhistory\u002Fknown-findings.txt` (one rule name per line). `check.sh`\nthen prints `BROKE history: \u003Crule>` \u002F `known finding, declared in ...` and exits\n`0`; an undeclared break still exits `1`. Remove the line when the fix lands — if\nthe rule keeps reproducing, the fix is not covered by the model.\n\n## Does my change touch the verified code\n\n```bash\ngit diff --stat \u003Csync-commit>..HEAD -- \\\n  internal\u002Fsession\u002Fautocompact.go internal\u002Fsession\u002Fcompaction.go \\\n  internal\u002Fsession\u002Fcompaction_shed.go internal\u002Fsession\u002Fstore.go \\\n  internal\u002Fagent\u002Fagent.go internal\u002Ftui\u002Fcommands.go internal\u002Ftui\u002Fcontext_rule.go \\\n  internal\u002Ftui\u002Ftui.go internal\u002Ftui\u002Fagent_loop.go\n```\n\n**Model covers** (each model step names the call it stands for):\n\n| Model action | Code |\n|---|---|\n| `RunTurn` | a turn appends its call and its result together; `agent.go:801-823` |\n| `BeginTurn` \u002F `FinishTurn` | a turn starts and settles; `agent_loop.go:2013-2075` |\n| `AutoCompacts` | `runPreTurn` → `AutoCompact` → `advanceToCleanBoundary`; `autocompact.go:60-140, 148-161` |\n| `SlashCompact` | `\u002Fcompact` → `FileService.Compact`; `store.go:1306-1352` |\n| `GaugeClearsMidTurn` | gauge `[x]` → `clearConversation` → `ClearEvents`; `tui.go:994-996`, `commands.go:291-333` |\n\n**Not modelled, and why:** `rewriteEvents`' temp-file collision when two rewriters\nrun at once (`store.go:1447` uses a fixed `.tmp` name); the `\\E`-quantified retry\nin `agent\u002Fretry.go` that re-runs `runPreTurn` on a transient error; the summarizer\ncall itself; `FileService.mu` ordering beyond the fact that the *decision* happens\noutside it; the shed path's superseded-result selection; anything about branches\nor `merge.go`. A bug in those is invisible here.\n\n## Run it\n\n```bash\nJAVA=\u002Fopt\u002Fhomebrew\u002Fopt\u002Fopenjdk\u002Fbin\u002Fjava hack\u002Fformal\u002Fcheck.sh history\n```\n\nExit `0` every rule holds, `1` a rule broke, `2` TLC or the toolchain failed. A\n`2` is never a verdict about the code. To see the failing steps in the reader's\nwords, use the pstack `\u002Fstatechart` skill:\n\n```bash\nTLA2TOOLS=\"$HOME\u002F.cache\u002Fpi-go-formal\u002Ftla2tools-1.7.4.jar\" \\\nJAVA=\u002Fopt\u002Fhomebrew\u002Fopt\u002Fopenjdk\u002Fbin\u002Fjava \\\nbun run \u003Cskills>\u002Fstatechart\u002Fscripts\u002Fstatechart.ts \\\n  hack\u002Fformal\u002Fhistory\u002FHistoryRewrite.tla \\\n  --config hack\u002Fformal\u002Fhistory\u002FHistoryRewrite.cfg \\\n  --view hack\u002Fformal\u002Fhistory\u002Fhistory.view.ts --out \u002Ftmp\u002Fhistory-chart\n```\n\n`check.sh history --chart` draws the chart only when every rule holds; while these\nfindings are open it exits before drawing, which is why the command above calls\n`\u002Fstatechart` directly.\n\n## Findings\n\nBoth are reported with the shortest path TLC found. Replay them against the code\nbefore acting — the model is a claim about the code, not a substitute for reading\nit.\n\nBoth findings below are **fixed**. Their guards are named so a regression is\nrecognisable, and each guard is held by a test as well as by this model.\n\n### 1. The context gauge's `[x]` rewrote history mid-turn — fixed\n\n**Rule:** `NoRewriteMidTurn` — history is rewritten only between turns\n(`internal\u002Fagent\u002Fagent.go:384-387`).\n\n**Path:** a turn runs → you click the context gauge's `[x]` while it works.\n\n**What went wrong.** `hitContextClear` (`context_rule.go:311-320`) checks only the\nlayout row and `ShowClear`, and `ShowClear` depends on terminal width alone\n(`context_rule.go:192-197`) — it never consulted `m.running`. So unlike `\u002Fclear`,\nwhich returns early while a turn runs (`tui.go:773`), the mouse path proceeded.\n`clearConversation` then set `m.running = false` (`commands.go:299`) and called\n`clearSessionContext` → `ClearEvents`, without cancelling `m.agentCancel` or\ndraining `m.agentCh`.\n\n**Harm (had it shipped):** the in-flight turn's tool calls lose their results — the\norphaning the pre-turn hook placement exists to prevent. `m.running = false` also\nremoved the keyboard path that could stop the still-running turn.\n\n**The guard now.** `handleMouseClick` calls `m.cancelAgent()` before\n`clearConversation` (`tui.go:994-1006`), so the click stops the turn the way Esc\ndoes and the rewrite lands between turns. `GaugeClearsMidTurn` ends the turn in the\nmodel, and it can no longer reach a mid-turn rewrite. Held by\n`TestContextGaugeClearStopsTheRunningTurnFirst`, which drives\n`handleMouseClick` rather than the helper — the missing guard *was* the bug.\n\n### 2. `\u002Fcompact` cut between a tool call and its result — fixed\n\n**Rule:** `CutIsClean` — a cut never separates a `FunctionCall` from its\n`FunctionResponse` (`internal\u002Fsession\u002Fautocompact.go:110-114`).\n\n**Path:** a turn runs and its tool call is answered → you run `\u002Fcompact`.\n\n**What went wrong.** `advanceToCleanBoundary` had exactly one caller,\n`autocompact.go:115`, on the automatic path. `FileService.Compact` cut at\n`splitIdx := len(sess.events) - cfg.KeepRecent` (`store.go:1322`) and never\nconsulted it, so an odd split point kept a result whose call was compacted.\n`KeepRecent` defaults to 10 (`store.go:1283`) — even, so the shipped default rarely\nlanded on an odd index, but the value is caller-supplied and `\u002Fcompact` is not its\nonly caller.\n\n**Harm (had it shipped):** the model is sent a tool result with no matching call.\nProviders that validate pairing reject the request, and ADK's own history loader\ndrops such results, so the turn either fails or silently loses tool output.\n\n**The guard now.** `Compact` calls `advanceToCleanBoundary` on its split point and\nreturns early if the rounded index leaves nothing to summarize\n(`store.go:1322-1330`). `SlashCompact` rounds its cut in the model. Held by\n`TestCompactKeepsCallAndResultTogether`, which asserts the surviving tail does not\nbegin with an orphaned result.\n\n## Telling a bug from a modelling error\n\nRead the counterexample. Every model state names a variable that exists in the\ncode, and every action names a function or a UI event. If the shortest path\ncontains a step a user cannot perform, or the state it reaches does not correspond\nto a real `events` list, the model is wrong — fix the model, and say so in the\ncommit. If the path is reachable, it is a bug: report it and leave the rule alone.\n\n## Keeping this in step with the code\n\n- **Sync commit:** `5702a08`, plus the two fixes and their tests (uncommitted at the\n  time of writing; move this forward to the commit that lands them).\n- **Confirmed against:** that tree, with every file:line citation above re-read\n  after the fixes changed `store.go:1322-1330` and `tui.go:994-1006`.\n\nMove the sync commit forward only after confirming that the verification still\ndescribes the code at the new commit — run it, and re-read the file:line citations\nin `HistoryRewrite.tla`, which are what a reviewer follows to check the model\nagainst the code. If a citation has drifted, fix the citation before moving the\ncommit.\n\n## Proving the check can still fail\n\nBefore trusting a green run, break each guard in a scratch copy and confirm the\nnamed rule fires. Both directions were confirmed when this model was written:\n\n| Regress this | Rule that must fire |\n|---|---|\n| let `GaugeClearsMidTurn` fire while `phase = \"busy\"` | `NoRewriteMidTurn` |\n| make `SlashCompact` cut at any index again | `CutIsClean` |\n\nBoth were confirmed: with the code unfixed the model reported each rule; with the\nfixes in place it holds `11 distinct states`. Re-confirm the `CutIsClean` direction\nafter any change to `Compact` — reverting the boundary call is a one-line\nregression that the model catches in under a second.\n\n## Related\n\n- `\u002Fmaintain-formal-verification-skill` — bring this back in line after a change\n  that did not recheck it.\n- The other models in `hack\u002Fformal\u002F` cover different subsystems; this one covers\n  only the events list. `verify-session-flow` covers the TUI's turn and Ctrl+C\n  states, which is where a fix for finding 1 touches.\n","# Verify the history-rewrite path\n\nA session's event list is rewritten from four places. One of them is not gated on\nwhether a turn is running, and one of them cuts without checking that a tool call\nand its result stay on the same side. Both are reachable by a user today; neither\nis caught by a test, because a test cannot easily produce the interleaving.\n\nThe properties: **history is only rewritten between turns**, and **a compaction\ncut never separates a tool call from its result**.\n\n**This model reports two findings that were real and are now fixed.** Both rules\nbroke on the shipped code when the model was written; both are green now because\nthe code was changed, not because a rule was weakened. See\n[Findings](#findings) for each, the path that reached it, and the test that now\nholds it.\n\nThe model was changed with the fixes: `SlashCompact` now rounds its cut and\n`GaugeClearsMidTurn` ends the turn instead of leaving it running. That is the only\nlegitimate way to make a broken rule green — change the model to match the code,\nthen confirm the break still reproduces. The regression check at the bottom of this\nskill is what keeps it honest.\n\nIf a finding is real and *not yet* fixed, declare the rule in\n`hack\u002Fformal\u002Fhistory\u002Fknown-findings.txt` (one rule name per line). `check.sh`\nthen prints `BROKE history: \u003Crule>` \u002F `known finding, declared in ...` and exits\n`0`; an undeclared break still exits `1`. Remove the line when the fix lands — if\nthe rule keeps reproducing, the fix is not covered by the model.\n\n## Does my change touch the verified code\n\n```bash\ngit diff --stat \u003Csync-commit>..HEAD -- \\\n  internal\u002Fsession\u002Fautocompact.go internal\u002Fsession\u002Fcompaction.go \\\n  internal\u002Fsession\u002Fcompaction_shed.go internal\u002Fsession\u002Fstore.go \\\n  internal\u002Fagent\u002Fagent.go internal\u002Ftui\u002Fcommands.go internal\u002Ftui\u002Fcontext_rule.go \\\n  internal\u002Ftui\u002Ftui.go internal\u002Ftui\u002Fagent_loop.go\n```\n\n**Model covers** (each model step names the call it stands for):\n\n| Model action | Code |\n|---|---|\n| `RunTurn` | a turn appends its call and its result together; `agent.go:801-823` |\n| `BeginTurn` \u002F `FinishTurn` | a turn starts and settles; `agent_loop.go:2013-2075` |\n| `AutoCompacts` | `runPreTurn` → `AutoCompact` → `advanceToCleanBoundary`; `autocompact.go:60-140, 148-161` |\n| `SlashCompact` | `\u002Fcompact` → `FileService.Compact`; `store.go:1306-1352` |\n| `GaugeClearsMidTurn` | gauge `[x]` → `clearConversation` → `ClearEvents`; `tui.go:994-996`, `commands.go:291-333` |\n\n**Not modelled, and why:** `rewriteEvents`' temp-file collision when two rewriters\nrun at once (`store.go:1447` uses a fixed `.tmp` name); the `\\E`-quantified retry\nin `agent\u002Fretry.go` that re-runs `runPreTurn` on a transient error; the summarizer\ncall itself; `FileService.mu` ordering beyond the fact that the *decision* happens\noutside it; the shed path's superseded-result selection; anything about branches\nor `merge.go`. A bug in those is invisible here.\n\n## Run it\n\n```bash\nJAVA=\u002Fopt\u002Fhomebrew\u002Fopt\u002Fopenjdk\u002Fbin\u002Fjava hack\u002Fformal\u002Fcheck.sh history\n```\n\nExit `0` every rule holds, `1` a rule broke, `2` TLC or the toolchain failed. A\n`2` is never a verdict about the code. To see the failing steps in the reader's\nwords, use the pstack `\u002Fstatechart` skill:\n\n```bash\nTLA2TOOLS=\"$HOME\u002F.cache\u002Fpi-go-formal\u002Ftla2tools-1.7.4.jar\" \\\nJAVA=\u002Fopt\u002Fhomebrew\u002Fopt\u002Fopenjdk\u002Fbin\u002Fjava \\\nbun run \u003Cskills>\u002Fstatechart\u002Fscripts\u002Fstatechart.ts \\\n  hack\u002Fformal\u002Fhistory\u002FHistoryRewrite.tla \\\n  --config hack\u002Fformal\u002Fhistory\u002FHistoryRewrite.cfg \\\n  --view hack\u002Fformal\u002Fhistory\u002Fhistory.view.ts --out \u002Ftmp\u002Fhistory-chart\n```\n\n`check.sh history --chart` draws the chart only when every rule holds; while these\nfindings are open it exits before drawing, which is why the command above calls\n`\u002Fstatechart` directly.\n\n## Findings\n\nBoth are reported with the shortest path TLC found. Replay them against the code\nbefore acting — the model is a claim about the code, not a substitute for reading\nit.\n\nBoth findings below are **fixed**. Their guards are named so a regression is\nrecognisable, and each guard is held by a test as well as by this model.\n\n### 1. The context gauge's `[x]` rewrote history mid-turn — fixed\n\n**Rule:** `NoRewriteMidTurn` — history is rewritten only between turns\n(`internal\u002Fagent\u002Fagent.go:384-387`).\n\n**Path:** a turn runs → you click the context gauge's `[x]` while it works.\n\n**What went wrong.** `hitContextClear` (`context_rule.go:311-320`) checks only the\nlayout row and `ShowClear`, and `ShowClear` depends on terminal width alone\n(`context_rule.go:192-197`) — it never consulted `m.running`. So unlike `\u002Fclear`,\nwhich returns early while a turn runs (`tui.go:773`), the mouse path proceeded.\n`clearConversation` then set `m.running = false` (`commands.go:299`) and called\n`clearSessionContext` → `ClearEvents`, without cancelling `m.agentCancel` or\ndraining `m.agentCh`.\n\n**Harm (had it shipped):** the in-flight turn's tool calls lose their results — the\norphaning the pre-turn hook placement exists to prevent. `m.running = false` also\nremoved the keyboard path that could stop the still-running turn.\n\n**The guard now.** `handleMouseClick` calls `m.cancelAgent()` before\n`clearConversation` (`tui.go:994-1006`), so the click stops the turn the way Esc\ndoes and the rewrite lands between turns. `GaugeClearsMidTurn` ends the turn in the\nmodel, and it can no longer reach a mid-turn rewrite. Held by\n`TestContextGaugeClearStopsTheRunningTurnFirst`, which drives\n`handleMouseClick` rather than the helper — the missing guard *was* the bug.\n\n### 2. `\u002Fcompact` cut between a tool call and its result — fixed\n\n**Rule:** `CutIsClean` — a cut never separates a `FunctionCall` from its\n`FunctionResponse` (`internal\u002Fsession\u002Fautocompact.go:110-114`).\n\n**Path:** a turn runs and its tool call is answered → you run `\u002Fcompact`.\n\n**What went wrong.** `advanceToCleanBoundary` had exactly one caller,\n`autocompact.go:115`, on the automatic path. `FileService.Compact` cut at\n`splitIdx := len(sess.events) - cfg.KeepRecent` (`store.go:1322`) and never\nconsulted it, so an odd split point kept a result whose call was compacted.\n`KeepRecent` defaults to 10 (`store.go:1283`) — even, so the shipped default rarely\nlanded on an odd index, but the value is caller-supplied and `\u002Fcompact` is not its\nonly caller.\n\n**Harm (had it shipped):** the model is sent a tool result with no matching call.\nProviders that validate pairing reject the request, and ADK's own history loader\ndrops such results, so the turn either fails or silently loses tool output.\n\n**The guard now.** `Compact` calls `advanceToCleanBoundary` on its split point and\nreturns early if the rounded index leaves nothing to summarize\n(`store.go:1322-1330`). `SlashCompact` rounds its cut in the model. Held by\n`TestCompactKeepsCallAndResultTogether`, which asserts the surviving tail does not\nbegin with an orphaned result.\n\n## Telling a bug from a modelling error\n\nRead the counterexample. Every model state names a variable that exists in the\ncode, and every action names a function or a UI event. If the shortest path\ncontains a step a user cannot perform, or the state it reaches does not correspond\nto a real `events` list, the model is wrong — fix the model, and say so in the\ncommit. If the path is reachable, it is a bug: report it and leave the rule alone.\n\n## Keeping this in step with the code\n\n- **Sync commit:** `5702a08`, plus the two fixes and their tests (uncommitted at the\n  time of writing; move this forward to the commit that lands them).\n- **Confirmed against:** that tree, with every file:line citation above re-read\n  after the fixes changed `store.go:1322-1330` and `tui.go:994-1006`.\n\nMove the sync commit forward only after confirming that the verification still\ndescribes the code at the new commit — run it, and re-read the file:line citations\nin `HistoryRewrite.tla`, which are what a reviewer follows to check the model\nagainst the code. If a citation has drifted, fix the citation before moving the\ncommit.\n\n## Proving the check can still fail\n\nBefore trusting a green run, break each guard in a scratch copy and confirm the\nnamed rule fires. Both directions were confirmed when this model was written:\n\n| Regress this | Rule that must fire |\n|---|---|\n| let `GaugeClearsMidTurn` fire while `phase = \"busy\"` | `NoRewriteMidTurn` |\n| make `SlashCompact` cut at any index again | `CutIsClean` |\n\nBoth were confirmed: with the code unfixed the model reported each rule; with the\nfixes in place it holds `11 distinct states`. Re-confirm the `CutIsClean` direction\nafter any change to `Compact` — reverting the boundary call is a one-line\nregression that the model catches in under a second.\n\n## Related\n\n- `\u002Fmaintain-formal-verification-skill` — bring this back in line after a change\n  that did not recheck it.\n- The other models in `hack\u002Fformal\u002F` cover different subsystems; this one covers\n  only the events list. `verify-session-flow` covers the TUI's turn and Ctrl+C\n  states, which is where a fix for finding 1 touches.\n",{"name":5,"description":7},"main","29fdab7a38eef7b4e1ef4101155eb2708f86fa5d","internal\u002Fextension\u002Fbundled_skills\u002Fverify-history-rewrite",34,"https:\u002F\u002Fgithub.com\u002Fdimetron\u002Fpi-go","https:\u002F\u002Fpi-go.sh","https:\u002F\u002Fgithub.com\u002Fdimetron","🎸💻 🚧🦞","2026-11-15 03:48:24",{"source":8,"skillName":5,"commands":59,"prompt":69,"zipAvailable":70},[60,63,66],{"tool":61,"command":62},"npx","npx skills add dimetron\u002Fpi-go --skill verify-history-rewrite",{"tool":64,"command":65},"bunx","bunx skills add dimetron\u002Fpi-go --skill verify-history-rewrite",{"tool":67,"command":68},"pnpm","pnpm dlx skills add dimetron\u002Fpi-go --skill verify-history-rewrite","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fdimetron\u002Fpi-go\u002Fblob\u002Fmain\u002Finternal\u002Fextension\u002Fbundled_skills\u002Fverify-history-rewrite\u002FSKILL.md",true,[],[73,94,115,131,152,166],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":80,"publishedAt":44},"01M70SJ3216A0Y2NXYJJ2MVER0","verify-session-flow","Formally verify the interactive session flow before or after changing it. Use when editing internal\u002Ftui\u002Ftui.go's handleKey, handleInterruptKey, handleInputSubmit, ctrlCCount or quitting, internal\u002Ftui\u002Fagent_loop.go's enqueuePrompt, submit, steerPrompt, cancelAgent or handleAgentDone, or the deferred-init splash — or when a user reports that Ctrl+C quit on the first press, that Esc did not stop a turn or a goal loop, that a queued prompt was lost when they canceled, or that the TUI hung on a spinner nothing could clear.","https:\u002F\u002Fgithub.com\u002Fdimetron\u002Fpi-go\u002Fblob\u002Fmain\u002Finternal\u002Fextension\u002Fbundled_skills\u002Fverify-session-flow\u002FSKILL.md",[79],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},[40,81,26,82,28,83,84,29,85,86,87,88,89,41,90,37,91,92,35,93],"verify session flow","flow","reports","spinner","clear","CTRL","goal","first","submit","init","loop","prompt","interactive",{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":44},"01M70SJ02CTB40V2VFGAF80SBG","verify-run-pipeline","Formally verify the \u002Frun phase machine before or after changing it. Use when editing internal\u002Ftui\u002Frun.go's phase transitions (handleRunAgentDone, runGates result handling, verifyRunComplete, retryRun, reportGateHang, merge), internal\u002Fsop\u002Fverdict.go's Passed, or the checklist refresh — or when a run merged work it should not have, retried a hung gate, lost a cycle at the retry budget, or merged on a stale PASS.","https:\u002F\u002Fgithub.com\u002Fdimetron\u002Fpi-go\u002Fblob\u002Fmain\u002Finternal\u002Fextension\u002Fbundled_skills\u002Fverify-run-pipeline\u002FSKILL.md",[],[101,31,26,102,103,104,105,32,106,107,108,109,110,35,37,111,112,113,41,114],"run pipeline","verify run pipeline","pipeline","refresh","merge","transitions","verdict","work","machine","phase","sop","run phase","retry","cycle",{"skillNo":116,"name":117,"nameZh":6,"description":118,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":119,"categories":120,"keywords":122,"publishedAt":44},"01M70SHSJ5A2XV5SXBXM96RH7P","verify-goal-loop","Formally verify the \u002Fgoal automatic loop before or after changing it. Use when editing internal\u002Ftui\u002Fgoal.go, internal\u002Ftui\u002Fagent_loop.go's handleAgentDone\u002FcancelAgent\u002FsteerPrompt, or internal\u002Ftools\u002Fgoal.go's GoalController — or when a goal loop will not stop, stops one cycle early, closes a goal that is not met, or restarts a goal you finished.","https:\u002F\u002Fgithub.com\u002Fdimetron\u002Fpi-go\u002Fblob\u002Fmain\u002Finternal\u002Fextension\u002Fbundled_skills\u002Fverify-goal-loop\u002FSKILL.md",[121],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},[123,87,26,124,125,91,41,114,37,35,126,127,29,28,128,129,130],"goal loop","verify goal","verify goal loop","you","automatic","Tools","it","stop",{"skillNo":132,"name":133,"nameZh":6,"description":134,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":135,"categories":136,"keywords":138,"publishedAt":44},"01M70SHPYN1AS6D6RJ8HN270RZ","verify-agent-lifecycle","Formally verify the subagent lifecycle before or after changing it. Use when editing internal\u002Fsubagent\u002Forchestrator.go's Spawn, trackAgent, forwardAgentEvents, terminalStatus, Cancel, ShutdownWithTimeout or evictCompletedAgentsLocked, or internal\u002Fsubagent\u002Fpool.go — or when a canceled agent is reported as failed, an agent vanishes from the list with no verdict, the orchestrator panics on a pool release, or an agent can be canceled twice.","https:\u002F\u002Fgithub.com\u002Fdimetron\u002Fpi-go\u002Fblob\u002Fmain\u002Finternal\u002Fextension\u002Fbundled_skills\u002Fverify-agent-lifecycle\u002FSKILL.md",[137],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},[139,140,26,141,142,143,41,37,35,144,145,146,147,107,148,149,150,151,29,129],"verify agent lifecycle","agent lifecycle","lifecycle","pool","as","cancel","subagent","can","with","orchestrator","spawn","release","list",{"skillNo":153,"name":154,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":155,"categories":156,"keywords":161,"publishedAt":44},"01M6E37WZM8ZF36DRYQGZDGP7M","test-new-skill","https:\u002F\u002Fgithub.com\u002Fdimetron\u002Fpi-go\u002Fblob\u002Fmain\u002Finternal\u002Ftui\u002F.pi-go\u002Fskills\u002Ftest-new-skill\u002FSKILL.md",[157,160],{"categoryNo":158,"categoryName":159,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000008","测试与质量",{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},[162,163,164,165],"test","new skill","test new skill","new",{"skillNo":167,"name":168,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":169,"categories":170,"keywords":171,"publishedAt":44},"01M6E37T9PQ6Q8NGVGFHR7QDFN","ponytail","https:\u002F\u002Fgithub.com\u002Fdimetron\u002Fpi-go\u002Fblob\u002Fmain\u002Finternal\u002Fextension\u002Fbundled_skills\u002Fponytail\u002FSKILL.md",[],[168]]