[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M70SHSJ5A2XV5SXBXM96RH7P":3,"skill-same:01M70SHSJ5A2XV5SXBXM96RH7P":69},{"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":41,"linkOnly":42,"markdownContent":43,"markdownBody":44,"frontMatter":45,"refName":46,"commitSha":47,"skillDirectory":48,"forksCount":49,"repositoryHtmlUrl":50,"repositoryHomepageUrl":51,"ownerHtmlUrl":52,"ownerBlogUrl":6,"ownerDescription":53,"updatedAt":54,"install":55,"resources":68},"01M70SHSJ5A2XV5SXBXM96RH7P","verify-goal-loop",null,"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.","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-goal-loop\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],"verify goal loop","verify goal","verify","goal","goal loop","loop","stop","it","Tools","tui","go","automatic","you","when","use","cycle","editing","2026-11-10 10:12:30",false,"---\nname: verify-goal-loop\ndescription: 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.\n---\n\n# Verify the \u002Fgoal loop\n\nThe `\u002Fgoal` loop is a state machine spread over four files, and its interesting\nbug is an ordering one: which of two things `beginGoalCycle` reads first. Nothing\nin a single-unit test can see a state that only a sequence produces, which is why\nthis model exists.\n\nThe property: **a completion reported under one objective can never close a\ndifferent one**, and the cycle budget bounds the automatic turns.\n\n## Does my change touch the verified code\n\nRun this; empty output means the model still describes the code.\n\n```bash\ngit diff --stat \u003Csync-commit>..HEAD -- \\\n  internal\u002Ftui\u002Fgoal.go internal\u002Ftui\u002Fagent_loop.go internal\u002Ftools\u002Fgoal.go \\\n  internal\u002Fsession\u002Fstore.go internal\u002Ftui\u002Ftui.go\n```\n\n**Model covers** (each model step names the function it stands for):\n\n| Model action | Code |\n|---|---|\n| `SetGoalIdle` | `setGoal` + `beginGoalCycle` first cycle, `goal.go:63-93, 270-296` |\n| `SetGoalBusy` | `setGoal` then the early return on `m.running`, `goal.go:392-399` |\n| `Pause` | `pauseGoal`, `goal.go:158-180` |\n| `Stop` | `cancelAgent`'s goal branch, `agent_loop.go:835-842` |\n| `ResumeClose` \u002F `ResumeStopped` \u002F `ResumeRenew` | `resumeGoal`, `goal.go:190-225` |\n| `Clear` | `clearGoal`, `goal.go:144-157` |\n| `TurnEndQueued` \u002F `TurnEndRefuse` \u002F `TurnEndSteer` \u002F `TurnEndNoCycle` | `handleAgentDone` → `continueGoalLoop`, `agent_loop.go:2013-2075`, `goal.go:445-460` |\n| `BeginCycle` | `beginGoalCycle`'s slot read then budget check, `goal.go:245-296` |\n| `ToolComplete` | `GoalController.Complete`, `internal\u002Ftools\u002Fgoal.go:135-182` |\n| `Steer` | `steerPrompt`, `agent_loop.go:963` |\n| `ManualTurn` | an ordinary prompt with no cycle behind it |\n\n**Not modelled, and why:** the TUI event loop and its goroutines (the model\nassumes a step completes before the next starts); `persistGoal` and session\nrestore; `AppendActiveGoal`'s prompt text; the wall-clock `UpdatedAt` stamps;\n`plan` mode; and the `turn_complete`\u002F`user_input_required` lifecycle hooks.\nA bug in any of those is invisible to this check.\n\n## Run it\n\n```bash\nhack\u002Fformal\u002Fcheck.sh goal           # all rules hold, or the first one that breaks\nhack\u002Fformal\u002Fcheck.sh goal --chart   # also draw the statechart into hack\u002Fformal\u002Fgoal\u002Fout\nhack\u002Fformal\u002Fcheck.sh all            # every model under hack\u002Fformal\n```\n\nTLC and a JDK are found, not installed: the script probes `JAVA`, then `java` on\n`PATH`, then Homebrew's keg-only `openjdk`, then\n`\u002FLibrary\u002FJava\u002FJavaVirtualMachines\u002F*`. Override with `JAVA=\u002Fpath\u002Fto\u002Fjava` and\n`TLA2TOOLS=\u002Fpath\u002Fto\u002Ftla2tools.jar`. Without `TLA2TOOLS` it downloads the pinned\n`tla2tools` 1.7.4 into `~\u002F.cache\u002Fpi-go-formal` **and verifies its sha256**, so a\nrun cannot silently use a different checker.\n\nRuntime is well under a second at the current constants. Exit codes: `0` every\nrule holds, `1` a rule broke, `2` TLC or the environment failed — a `2` is never a\nverdict about the code.\n\n## Read a result\n\n**Every rule holds.** The model still describes the code within the scope above.\n\n**A rule broke.** TLC names the rule and the shortest step sequence. Read that\nsequence as function calls, in order. Then decide which of three things happened:\n\n1. **A real bug.** The sequence is reachable in the product. Replay it against\n   the real code as a Go test in `internal\u002Ftui` — the pattern is\n   `goal_loop_e2e_test.go`'s `runTurns`, which drives `beginGoalCycle` and\n   `handleAgentDone` through a real agent. Report it with the sequence; do not\n   weaken the rule and do not change product code unless asked.\n2. **A modelling error.** The sequence turns on something the model made\n   indivisible that the code does not, or on a variable that does not mean what\n   the rule assumes. Fix the model, never the rule.\n3. **A rule that is stronger than the code promises.** Check the comment the\n   rule cites. If the code does not claim it, the rule is wrong and must be\n   restated or removed. This happened twice while building this model\n   (`turn \u002F= 0` does not mean \"a cycle is in flight\", because `pauseGoal` leaves\n   `Turn` stamped; and \"the goal is finished\" does not mean \"no turn may run\").\n\n**TLC cannot run.** Exit `2`. Read the message: a missing variable means an\naction does not assign it, which TLA+ reports as `Successor state is not\ncompletely specified`.\n\n## Rules, and the harm each one names\n\n| Rule | The promise | What breaking it means for a user |\n|---|---|---|\n| `OnlyActiveRuns` | a cycle never runs for a goal that is not active | a paused goal keeps spending billed turns |\n| `CompleteIsTerminal` | no cycle begins after Complete | `\u002Fgoal resume` restarts finished work, the loop the comment forbids |\n| `BudgetBounded` | `cycles \u003C= budget` | a runaway loop bills without end |\n| `InFlightCycleIsCurrent` | a running cycle was actually spent | the budget under-counts and the cap is not a cap |\n| `SlotAttributable` | a report in the slot names the running cycle | a stale report is read as a fresh one |\n| `CompletionMatchesObjective` | a closure is based on a report about *this* objective | the previous objective's \"done\" closes the new one |\n\n## Two traps this model has already fallen into\n\n**A top-level assignment plus a branch assignment is a conjunction.** Writing\n`\u002F\\ canceled' = FALSE` and then, in a nested `IF` branch, `\u002F\\ canceled' = TRUE`\nmakes that branch unsatisfiable, and the action silently never fires. It cost a\nfalse pass on the very property this model is for. Write such actions as\ndisjoint alternatives (see `ResumeClose`\u002F`ResumeStopped`\u002F`ResumeRenew`), and\nafter any edit run the lint, which reports that and three more defect classes:\n\n```bash\ngo run .\u002Fhack\u002Fformal\u002Flint\u002Fmain hack\u002Fformal\u002Fgoal\n```\n\n`hack\u002Fformal\u002Flint` is a Go package with a test per defect it catches\n(`hack\u002Fformal\u002Flint\u002Flint_test.go`), so every check has been seen to fire on the\nshape it is meant to catch.\n\n**A small state count can mean the model never ran.** An early version reported\n\"all rules hold\" on 16 distinct states because `SetGoalIdle` never started a\ncycle, so no loop ever existed. Check the count is in the hundreds and that a\ndeliberately broken model **fails**:\n\n```bash\n# In a scratch copy, delete setGoal's drain (goal.go:87) -- set pending' = pending\n# instead of pending' = 0 in SetGoalIdle. CompletionMatchesObjective must break.\n```\n\nIf a break does not reproduce, the model is wrong and its passing result means\nnothing.\n\n## After confirming the model is still true\n\nMove the sync commit forward only once you have confirmed the model describes the\ncode at the new commit:\n\n```bash\ngit log -1 --format=%H    # the commit you verified\n```\n\nRecord it below, replacing the old value. Do not move it because the diff looked\nunrelated.\n\n- **Sync commit:** `cc79aceb43df31012e9e5c1f69a7ba1231c32470`\n- **Constants:** `MaxCycles = 1`, `MaxBudget = 3` (chosen to stay under the\n  chart budget of 500 states; `MaxCycles = 2, MaxBudget = 4` gives 556 states and\n  the same verdicts, and is what to use when you want the wider bound without a\n  chart).\n\n## Draw the chart\n\n`hack\u002Fformal\u002Fcheck.sh goal --chart` writes `hack\u002Fformal\u002Fgoal\u002Fout\u002Freport.md` and\n`chart.mmd`, and runs the pstack `\u002Fstatechart` skill. Read every TLA+ result with\n`\u002Fstatechart`: it turns each violation into the shortest path in the user's\nwords and, when nothing breaks, draws how the system moves between states. When\nthe chart hides steps, the report says how many.\n","# Verify the \u002Fgoal loop\n\nThe `\u002Fgoal` loop is a state machine spread over four files, and its interesting\nbug is an ordering one: which of two things `beginGoalCycle` reads first. Nothing\nin a single-unit test can see a state that only a sequence produces, which is why\nthis model exists.\n\nThe property: **a completion reported under one objective can never close a\ndifferent one**, and the cycle budget bounds the automatic turns.\n\n## Does my change touch the verified code\n\nRun this; empty output means the model still describes the code.\n\n```bash\ngit diff --stat \u003Csync-commit>..HEAD -- \\\n  internal\u002Ftui\u002Fgoal.go internal\u002Ftui\u002Fagent_loop.go internal\u002Ftools\u002Fgoal.go \\\n  internal\u002Fsession\u002Fstore.go internal\u002Ftui\u002Ftui.go\n```\n\n**Model covers** (each model step names the function it stands for):\n\n| Model action | Code |\n|---|---|\n| `SetGoalIdle` | `setGoal` + `beginGoalCycle` first cycle, `goal.go:63-93, 270-296` |\n| `SetGoalBusy` | `setGoal` then the early return on `m.running`, `goal.go:392-399` |\n| `Pause` | `pauseGoal`, `goal.go:158-180` |\n| `Stop` | `cancelAgent`'s goal branch, `agent_loop.go:835-842` |\n| `ResumeClose` \u002F `ResumeStopped` \u002F `ResumeRenew` | `resumeGoal`, `goal.go:190-225` |\n| `Clear` | `clearGoal`, `goal.go:144-157` |\n| `TurnEndQueued` \u002F `TurnEndRefuse` \u002F `TurnEndSteer` \u002F `TurnEndNoCycle` | `handleAgentDone` → `continueGoalLoop`, `agent_loop.go:2013-2075`, `goal.go:445-460` |\n| `BeginCycle` | `beginGoalCycle`'s slot read then budget check, `goal.go:245-296` |\n| `ToolComplete` | `GoalController.Complete`, `internal\u002Ftools\u002Fgoal.go:135-182` |\n| `Steer` | `steerPrompt`, `agent_loop.go:963` |\n| `ManualTurn` | an ordinary prompt with no cycle behind it |\n\n**Not modelled, and why:** the TUI event loop and its goroutines (the model\nassumes a step completes before the next starts); `persistGoal` and session\nrestore; `AppendActiveGoal`'s prompt text; the wall-clock `UpdatedAt` stamps;\n`plan` mode; and the `turn_complete`\u002F`user_input_required` lifecycle hooks.\nA bug in any of those is invisible to this check.\n\n## Run it\n\n```bash\nhack\u002Fformal\u002Fcheck.sh goal           # all rules hold, or the first one that breaks\nhack\u002Fformal\u002Fcheck.sh goal --chart   # also draw the statechart into hack\u002Fformal\u002Fgoal\u002Fout\nhack\u002Fformal\u002Fcheck.sh all            # every model under hack\u002Fformal\n```\n\nTLC and a JDK are found, not installed: the script probes `JAVA`, then `java` on\n`PATH`, then Homebrew's keg-only `openjdk`, then\n`\u002FLibrary\u002FJava\u002FJavaVirtualMachines\u002F*`. Override with `JAVA=\u002Fpath\u002Fto\u002Fjava` and\n`TLA2TOOLS=\u002Fpath\u002Fto\u002Ftla2tools.jar`. Without `TLA2TOOLS` it downloads the pinned\n`tla2tools` 1.7.4 into `~\u002F.cache\u002Fpi-go-formal` **and verifies its sha256**, so a\nrun cannot silently use a different checker.\n\nRuntime is well under a second at the current constants. Exit codes: `0` every\nrule holds, `1` a rule broke, `2` TLC or the environment failed — a `2` is never a\nverdict about the code.\n\n## Read a result\n\n**Every rule holds.** The model still describes the code within the scope above.\n\n**A rule broke.** TLC names the rule and the shortest step sequence. Read that\nsequence as function calls, in order. Then decide which of three things happened:\n\n1. **A real bug.** The sequence is reachable in the product. Replay it against\n   the real code as a Go test in `internal\u002Ftui` — the pattern is\n   `goal_loop_e2e_test.go`'s `runTurns`, which drives `beginGoalCycle` and\n   `handleAgentDone` through a real agent. Report it with the sequence; do not\n   weaken the rule and do not change product code unless asked.\n2. **A modelling error.** The sequence turns on something the model made\n   indivisible that the code does not, or on a variable that does not mean what\n   the rule assumes. Fix the model, never the rule.\n3. **A rule that is stronger than the code promises.** Check the comment the\n   rule cites. If the code does not claim it, the rule is wrong and must be\n   restated or removed. This happened twice while building this model\n   (`turn \u002F= 0` does not mean \"a cycle is in flight\", because `pauseGoal` leaves\n   `Turn` stamped; and \"the goal is finished\" does not mean \"no turn may run\").\n\n**TLC cannot run.** Exit `2`. Read the message: a missing variable means an\naction does not assign it, which TLA+ reports as `Successor state is not\ncompletely specified`.\n\n## Rules, and the harm each one names\n\n| Rule | The promise | What breaking it means for a user |\n|---|---|---|\n| `OnlyActiveRuns` | a cycle never runs for a goal that is not active | a paused goal keeps spending billed turns |\n| `CompleteIsTerminal` | no cycle begins after Complete | `\u002Fgoal resume` restarts finished work, the loop the comment forbids |\n| `BudgetBounded` | `cycles \u003C= budget` | a runaway loop bills without end |\n| `InFlightCycleIsCurrent` | a running cycle was actually spent | the budget under-counts and the cap is not a cap |\n| `SlotAttributable` | a report in the slot names the running cycle | a stale report is read as a fresh one |\n| `CompletionMatchesObjective` | a closure is based on a report about *this* objective | the previous objective's \"done\" closes the new one |\n\n## Two traps this model has already fallen into\n\n**A top-level assignment plus a branch assignment is a conjunction.** Writing\n`\u002F\\ canceled' = FALSE` and then, in a nested `IF` branch, `\u002F\\ canceled' = TRUE`\nmakes that branch unsatisfiable, and the action silently never fires. It cost a\nfalse pass on the very property this model is for. Write such actions as\ndisjoint alternatives (see `ResumeClose`\u002F`ResumeStopped`\u002F`ResumeRenew`), and\nafter any edit run the lint, which reports that and three more defect classes:\n\n```bash\ngo run .\u002Fhack\u002Fformal\u002Flint\u002Fmain hack\u002Fformal\u002Fgoal\n```\n\n`hack\u002Fformal\u002Flint` is a Go package with a test per defect it catches\n(`hack\u002Fformal\u002Flint\u002Flint_test.go`), so every check has been seen to fire on the\nshape it is meant to catch.\n\n**A small state count can mean the model never ran.** An early version reported\n\"all rules hold\" on 16 distinct states because `SetGoalIdle` never started a\ncycle, so no loop ever existed. Check the count is in the hundreds and that a\ndeliberately broken model **fails**:\n\n```bash\n# In a scratch copy, delete setGoal's drain (goal.go:87) -- set pending' = pending\n# instead of pending' = 0 in SetGoalIdle. CompletionMatchesObjective must break.\n```\n\nIf a break does not reproduce, the model is wrong and its passing result means\nnothing.\n\n## After confirming the model is still true\n\nMove the sync commit forward only once you have confirmed the model describes the\ncode at the new commit:\n\n```bash\ngit log -1 --format=%H    # the commit you verified\n```\n\nRecord it below, replacing the old value. Do not move it because the diff looked\nunrelated.\n\n- **Sync commit:** `cc79aceb43df31012e9e5c1f69a7ba1231c32470`\n- **Constants:** `MaxCycles = 1`, `MaxBudget = 3` (chosen to stay under the\n  chart budget of 500 states; `MaxCycles = 2, MaxBudget = 4` gives 556 states and\n  the same verdicts, and is what to use when you want the wider bound without a\n  chart).\n\n## Draw the chart\n\n`hack\u002Fformal\u002Fcheck.sh goal --chart` writes `hack\u002Fformal\u002Fgoal\u002Fout\u002Freport.md` and\n`chart.mmd`, and runs the pstack `\u002Fstatechart` skill. Read every TLA+ result with\n`\u002Fstatechart`: it turns each violation into the shortest path in the user's\nwords and, when nothing breaks, draws how the system moves between states. When\nthe chart hides steps, the report says how many.\n",{"name":5,"description":7},"main","29fdab7a38eef7b4e1ef4101155eb2708f86fa5d","internal\u002Fextension\u002Fbundled_skills\u002Fverify-goal-loop",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":56,"prompt":66,"zipAvailable":67},[57,60,63],{"tool":58,"command":59},"npx","npx skills add dimetron\u002Fpi-go --skill verify-goal-loop",{"tool":61,"command":62},"bunx","bunx skills add dimetron\u002Fpi-go --skill verify-goal-loop",{"tool":64,"command":65},"pnpm","pnpm dlx skills add dimetron\u002Fpi-go --skill verify-goal-loop","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fdimetron\u002Fpi-go\u002Fblob\u002Fmain\u002Finternal\u002Fextension\u002Fbundled_skills\u002Fverify-goal-loop\u002FSKILL.md",true,[],[70,90,112,131,152,166],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":77,"publishedAt":41},"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",[76],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},[78,79,26,80,33,27,81,34,82,83,84,40,85,38,29,86,37,87,88,89],"session","verify session flow","flow","spinner","clear","CTRL","submit","init","prompt","interactive","reports","first",{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":41},"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",[],[97,98,26,99,100,37,101,102,103,104,105,106,39,38,107,108,109,110,111,40],"run pipeline","run","verify run pipeline","pipeline","result","transitions","verdict","work","refresh","phase","machine","run phase","merge","sop","retry",{"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":119,"publishedAt":41},"01M70SHWJV9N3PQWRAMCQE9C2E","verify-history-rewrite","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.","https:\u002F\u002Fgithub.com\u002Fdimetron\u002Fpi-go\u002Fblob\u002Fmain\u002Finternal\u002Fextension\u002Fbundled_skills\u002Fverify-history-rewrite\u002FSKILL.md",[118],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},[26,120,121,122,123,37,33,34,124,98,101,125,126,127,38,128,129,78,40,130],"verify history rewrite","rewrite","history","get","commands","gauge","store","compact","call","tool","model",{"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":41},"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,141,26,142,143,31,34,144,145,146,147,103,148,149,150,37,38,40,151],"lifecycle","verify agent lifecycle","agent lifecycle","with","pool","list","release","spawn","orchestrator","can","subagent","cancel","as",{"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":41},"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":41},"01M6E37T9PQ6Q8NGVGFHR7QDFN","ponytail","https:\u002F\u002Fgithub.com\u002Fdimetron\u002Fpi-go\u002Fblob\u002Fmain\u002Finternal\u002Fextension\u002Fbundled_skills\u002Fponytail\u002FSKILL.md",[],[168]]