open-pstack 0.0.0-stage → 0.9.150
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +22 -0
- package/LICENSE-cursor-team-kit +21 -0
- package/LICENSE-thermos +21 -0
- package/NOTICE-skills.md +13 -0
- package/NOTICE.md +62 -0
- package/bin/open-pstack.mjs +4 -0
- package/lib/bundle.mjs +42 -0
- package/lib/cli.mjs +211 -0
- package/lib/detect.mjs +28 -0
- package/lib/harnesses.mjs +136 -0
- package/lib/steps.mjs +93 -0
- package/package.json +30 -4
- package/plugin/.antigravity-plugin/plugin.json +8 -0
- package/plugin/.claude-plugin/icon.png +0 -0
- package/plugin/.claude-plugin/plugin.json +31 -0
- package/plugin/.codex-plugin/plugin.json +52 -0
- package/plugin/.github/plugin/plugin.json +15 -0
- package/plugin/.grok-plugin/plugin.json +9 -0
- package/plugin/.muse-plugin/plugin.json +381 -0
- package/plugin/LICENSE +22 -0
- package/plugin/README.md +27 -0
- package/plugin/agents/comment-sicko.md +34 -0
- package/plugin/agents/poteto-agent.md +8 -0
- package/plugin/agents/thermo-nuclear-code-quality-review-subagent.md +23 -0
- package/plugin/agents/thermo-nuclear-review-subagent.md +28 -0
- package/plugin/assets/pstack-icon.png +0 -0
- package/plugin/assets/pstack-icon.prompt.txt +8 -0
- package/plugin/grok/skills/pstack-routing/SKILL.md +8 -0
- package/plugin/hooks/agy-context.awk +9 -0
- package/plugin/hooks/codex-hooks.json +17 -0
- package/plugin/hooks/copilot-context.awk +44 -0
- package/plugin/hooks/copilot-hooks.json +29 -0
- package/plugin/hooks/hooks.json +16 -0
- package/plugin/hooks/json.awk +164 -0
- package/plugin/hooks/kimi-instructions.md +17 -0
- package/plugin/hooks/muse-context.awk +31 -0
- package/plugin/hooks/pre-tool-use.awk +152 -0
- package/plugin/hooks/pre-tool-use.sh +16 -0
- package/plugin/hooks/script-contracts.awk +53 -0
- package/plugin/hooks/session-start-agy.md +17 -0
- package/plugin/hooks/session-start-context.md +15 -0
- package/plugin/hooks/session-start-copilot-setup.md +1 -0
- package/plugin/hooks/session-start-copilot-sheet.md +1 -0
- package/plugin/hooks/session-start-copilot.md +3 -0
- package/plugin/hooks/session-start-minimax.md +17 -0
- package/plugin/hooks/session-start-muse-sheet.md +1 -0
- package/plugin/hooks/session-start-muse.md +17 -0
- package/plugin/hooks/session-start-opencode.md +17 -0
- package/plugin/hooks/session-start.ps1 +169 -0
- package/plugin/hooks/session-start.sh +107 -0
- package/plugin/hooks.json +10 -0
- package/plugin/models.json +60 -0
- package/plugin/omp/index.mjs +34 -0
- package/plugin/opencode/index.js +49 -0
- package/plugin/package.json +8 -0
- package/plugin/pi/agent-files.ts +117 -0
- package/plugin/pi/agent-text.ts +99 -0
- package/plugin/pi/agent-tools.ts +148 -0
- package/plugin/pi/agents.ts +510 -0
- package/plugin/pi/ask.ts +87 -0
- package/plugin/pi/child.ts +313 -0
- package/plugin/pi/config.ts +208 -0
- package/plugin/pi/hc-child.ts +210 -0
- package/plugin/pi/index.ts +45 -0
- package/plugin/pi/one-shot.ts +90 -0
- package/plugin/pi/path-skills.ts +54 -0
- package/plugin/pi/prompt.ts +39 -0
- package/plugin/pi/schedule.ts +254 -0
- package/plugin/pi/slash.ts +106 -0
- package/plugin/pi/sleep-wait.ts +76 -0
- package/plugin/pi/worktree.ts +87 -0
- package/plugin/skills/architect/SKILL.md +20 -0
- package/plugin/skills/arena/SKILL.md +66 -0
- package/plugin/skills/automate-me/SKILL.md +111 -0
- package/plugin/skills/babysit/SKILL.md +68 -0
- package/plugin/skills/benchmark-checklist/SKILL.md +38 -0
- package/plugin/skills/blast-radius/SKILL.md +49 -0
- package/plugin/skills/bro/SKILL.md +6 -0
- package/plugin/skills/correct/SKILL.md +31 -0
- package/plugin/skills/create-formal-verification-skill/SKILL.md +50 -0
- package/plugin/skills/create-verification-skill/SKILL.md +51 -0
- package/plugin/skills/create-verification-skill/references/feature-map-example/README.md +47 -0
- package/plugin/skills/create-verification-skill/references/feature-map-example/create-note.md +39 -0
- package/plugin/skills/create-verification-skill/references/feature-map-example/search.md +45 -0
- package/plugin/skills/deslop/SKILL.md +24 -0
- package/plugin/skills/figure-it-out/SKILL.md +51 -0
- package/plugin/skills/fix-ci/SKILL.md +29 -0
- package/plugin/skills/fix-merge-conflicts/SKILL.md +32 -0
- package/plugin/skills/get-pr-comments/SKILL.md +23 -0
- package/plugin/skills/how/SKILL.md +28 -0
- package/plugin/skills/in-your-own-words/SKILL.md +6 -0
- package/plugin/skills/interrogate/SKILL.md +48 -0
- package/plugin/skills/ketchup/SKILL.md +42 -0
- package/plugin/skills/ketchup-video/SKILL.md +28 -0
- package/plugin/skills/maintain-formal-verification-skill/SKILL.md +65 -0
- package/plugin/skills/maintain-verification-skill/SKILL.md +46 -0
- package/plugin/skills/make-pr-easy-to-review/SKILL.md +59 -0
- package/plugin/skills/no-comments/SKILL.md +45 -0
- package/plugin/skills/poteto-help/SKILL.md +148 -0
- package/plugin/skills/poteto-help/references/prompting.md +51 -0
- package/plugin/skills/poteto-help/references/recipes.md +51 -0
- package/plugin/skills/poteto-mode/SKILL.md +132 -0
- package/plugin/skills/poteto-mode/playbooks/authoring-a-skill.md +12 -0
- package/plugin/skills/poteto-mode/playbooks/autonomous-run.md +13 -0
- package/plugin/skills/poteto-mode/playbooks/autopilot-full.md +31 -0
- package/plugin/skills/poteto-mode/playbooks/autopilot-stack.md +8 -0
- package/plugin/skills/poteto-mode/playbooks/babysit.md +10 -0
- package/plugin/skills/poteto-mode/playbooks/bug-fix.md +32 -0
- package/plugin/skills/poteto-mode/playbooks/eval.md +25 -0
- package/plugin/skills/poteto-mode/playbooks/feature.md +21 -0
- package/plugin/skills/poteto-mode/playbooks/hillclimb.md +21 -0
- package/plugin/skills/poteto-mode/playbooks/investigation.md +14 -0
- package/plugin/skills/poteto-mode/playbooks/multi-phase-plan.md +13 -0
- package/plugin/skills/poteto-mode/playbooks/opening-a-pr.md +9 -0
- package/plugin/skills/poteto-mode/playbooks/pause-safely.md +11 -0
- package/plugin/skills/poteto-mode/playbooks/perf-issue.md +25 -0
- package/plugin/skills/poteto-mode/playbooks/prototype.md +14 -0
- package/plugin/skills/poteto-mode/playbooks/refactoring.md +18 -0
- package/plugin/skills/poteto-mode/playbooks/runtime-forensics.md +11 -0
- package/plugin/skills/poteto-mode/playbooks/session-pickup.md +11 -0
- package/plugin/skills/poteto-mode/playbooks/shipping.md +16 -0
- package/plugin/skills/poteto-mode/playbooks/trace-forensics.md +14 -0
- package/plugin/skills/poteto-mode/playbooks/visual-parity.md +11 -0
- package/plugin/skills/poteto-mode/playbooks/worktree-cleanup.md +12 -0
- package/plugin/skills/poteto-mode/references/agents/comment-sicko.md +34 -0
- package/plugin/skills/poteto-mode/references/agy-tools.md +100 -0
- package/plugin/skills/poteto-mode/references/bugbot-triage.md +142 -0
- package/plugin/skills/poteto-mode/references/cloud-session-pr-reads.md +29 -0
- package/plugin/skills/poteto-mode/references/codex-tools.md +110 -0
- package/plugin/skills/poteto-mode/references/copilot-tools.md +144 -0
- package/plugin/skills/poteto-mode/references/dsh-tools.md +51 -0
- package/plugin/skills/poteto-mode/references/grok.md +50 -0
- package/plugin/skills/poteto-mode/references/kimi-tools.md +40 -0
- package/plugin/skills/poteto-mode/references/licenses/LICENSE +22 -0
- package/plugin/skills/poteto-mode/references/licenses/LICENSE-cursor-team-kit +21 -0
- package/plugin/skills/poteto-mode/references/licenses/LICENSE-thermos +21 -0
- package/plugin/skills/poteto-mode/references/licenses/NOTICE.md +13 -0
- package/plugin/skills/poteto-mode/references/merge-safety.md +43 -0
- package/plugin/skills/poteto-mode/references/minimax-tools.md +93 -0
- package/plugin/skills/poteto-mode/references/muse-tools.md +105 -0
- package/plugin/skills/poteto-mode/references/omp-tools.md +45 -0
- package/plugin/skills/poteto-mode/references/opencode-tools.md +30 -0
- package/plugin/skills/poteto-mode/references/pi-tools.md +120 -0
- package/plugin/skills/poteto-mode/references/resume-storage.md +20 -0
- package/plugin/skills/poteto-mode/scripts/.prettierignore +19 -0
- package/plugin/skills/poteto-mode/scripts/.prettierrc.json +3 -0
- package/plugin/skills/poteto-mode/scripts/bootstrap.ts +71 -0
- package/plugin/skills/poteto-mode/scripts/bun.lock +67 -0
- package/plugin/skills/poteto-mode/scripts/check-playbooks.mjs +165 -0
- package/plugin/skills/poteto-mode/scripts/codex-session-effort.mjs +94 -0
- package/plugin/skills/poteto-mode/scripts/package.json +16 -0
- package/plugin/skills/poteto-mode/scripts/resume.mjs +139 -0
- package/plugin/skills/poteto-mode/scripts/tsconfig.json +14 -0
- package/plugin/skills/poteto-mode/scripts/watch-pr/check-suites.ts +203 -0
- package/plugin/skills/poteto-mode/scripts/watch-pr/cli.port.test.ts +88 -0
- package/plugin/skills/poteto-mode/scripts/watch-pr/cli.test.ts +383 -0
- package/plugin/skills/poteto-mode/scripts/watch-pr/cli.ts +283 -0
- package/plugin/skills/poteto-mode/scripts/watch-pr/deadline.ts +20 -0
- package/plugin/skills/poteto-mode/scripts/watch-pr/fakes.test-helper.ts +163 -0
- package/plugin/skills/poteto-mode/scripts/watch-pr/fresh-install.test.ts +35 -0
- package/plugin/skills/poteto-mode/scripts/watch-pr/github.port.test.ts +1119 -0
- package/plugin/skills/poteto-mode/scripts/watch-pr/github.test.ts +506 -0
- package/plugin/skills/poteto-mode/scripts/watch-pr/github.ts +979 -0
- package/plugin/skills/poteto-mode/scripts/watch-pr/head-checks.ts +37 -0
- package/plugin/skills/poteto-mode/scripts/watch-pr/integrity.test.ts +887 -0
- package/plugin/skills/poteto-mode/scripts/watch-pr/landing.ts +92 -0
- package/plugin/skills/poteto-mode/scripts/watch-pr/live-merge-safety.mjs +142 -0
- package/plugin/skills/poteto-mode/scripts/watch-pr/policy.port.test.ts +945 -0
- package/plugin/skills/poteto-mode/scripts/watch-pr/policy.test.ts +492 -0
- package/plugin/skills/poteto-mode/scripts/watch-pr/policy.ts +966 -0
- package/plugin/skills/poteto-mode/scripts/watch-pr/query-error.ts +36 -0
- package/plugin/skills/poteto-mode/scripts/watch-pr/render.ts +211 -0
- package/plugin/skills/poteto-mode/scripts/watch-pr/ship-pr +6 -0
- package/plugin/skills/poteto-mode/scripts/watch-pr/shipping-cli.test.ts +159 -0
- package/plugin/skills/poteto-mode/scripts/watch-pr/shipping-cli.ts +65 -0
- package/plugin/skills/poteto-mode/scripts/watch-pr/shipping.test-helper.ts +48 -0
- package/plugin/skills/poteto-mode/scripts/watch-pr/shipping.test.ts +360 -0
- package/plugin/skills/poteto-mode/scripts/watch-pr/shipping.ts +235 -0
- package/plugin/skills/poteto-mode/scripts/watch-pr/transport.test.ts +588 -0
- package/plugin/skills/poteto-mode/scripts/watch-pr/tsconfig.json +13 -0
- package/plugin/skills/poteto-mode/scripts/watch-pr/types.compile.ts +109 -0
- package/plugin/skills/poteto-mode/scripts/watch-pr/types.ts +502 -0
- package/plugin/skills/poteto-mode/scripts/watch-pr/watch-pr +6 -0
- package/plugin/skills/poteto-mode/scripts/watch-pr/workflow-runs.ts +217 -0
- package/plugin/skills/poteto-mode/scripts/watch-pr/wrapper.test.ts +20 -0
- package/plugin/skills/poteto-mode/scripts/worktree-audit.mjs +492 -0
- package/plugin/skills/poteto-mode/worker.md +11 -0
- package/plugin/skills/principle-attack-the-premise/SKILL.md +15 -0
- package/plugin/skills/principle-boundary-discipline/SKILL.md +11 -0
- package/plugin/skills/principle-build-the-lever/SKILL.md +15 -0
- package/plugin/skills/principle-encode-lessons-in-structure/SKILL.md +11 -0
- package/plugin/skills/principle-exhaust-the-design-space/SKILL.md +9 -0
- package/plugin/skills/principle-experience-first/SKILL.md +19 -0
- package/plugin/skills/principle-explain-the-number/SKILL.md +14 -0
- package/plugin/skills/principle-fix-root-causes/SKILL.md +14 -0
- package/plugin/skills/principle-foundational-thinking/SKILL.md +13 -0
- package/plugin/skills/principle-guard-the-context-window/SKILL.md +12 -0
- package/plugin/skills/principle-laziness-protocol/SKILL.md +10 -0
- package/plugin/skills/principle-make-operations-idempotent/SKILL.md +15 -0
- package/plugin/skills/principle-migrate-callers-then-delete-legacy-apis/SKILL.md +14 -0
- package/plugin/skills/principle-minimize-reader-load/SKILL.md +15 -0
- package/plugin/skills/principle-model-the-domain/SKILL.md +15 -0
- package/plugin/skills/principle-never-block-on-the-human/SKILL.md +15 -0
- package/plugin/skills/principle-outcome-oriented-execution/SKILL.md +21 -0
- package/plugin/skills/principle-prove-it-works/SKILL.md +17 -0
- package/plugin/skills/principle-redesign-from-first-principles/SKILL.md +16 -0
- package/plugin/skills/principle-separate-before-serializing-shared-state/SKILL.md +11 -0
- package/plugin/skills/principle-sequence-verifiable-units/SKILL.md +13 -0
- package/plugin/skills/principle-subtract-before-you-add/SKILL.md +18 -0
- package/plugin/skills/principle-test-behavior-not-implementation/SKILL.md +16 -0
- package/plugin/skills/principle-type-system-discipline/SKILL.md +15 -0
- package/plugin/skills/recall/SKILL.md +43 -0
- package/plugin/skills/reflect/SKILL.md +33 -0
- package/plugin/skills/reflect/scripts/claude-project-dir.mjs +121 -0
- package/plugin/skills/reflect/scripts/find-transcript.mjs +218 -0
- package/plugin/skills/setup-pstack/SKILL.md +104 -0
- package/plugin/skills/setup-pstack/copilot.md +88 -0
- package/plugin/skills/setup-pstack/references/runtimes.md +77 -0
- package/plugin/skills/setup-pstack/scripts/check-sheet.awk +10 -0
- package/plugin/skills/setup-pstack/scripts/check-sheet.sh +20 -0
- package/plugin/skills/setup-pstack/scripts/read-sheet.sh +24 -0
- package/plugin/skills/setup-pstack/scripts/sheet.awk +152 -0
- package/plugin/skills/sharpen/SKILL.md +15 -0
- package/plugin/skills/show-me-your-work/SKILL.md +89 -0
- package/plugin/skills/show-me-your-work/references/decision-log-template.tsv +1 -0
- package/plugin/skills/show-me-your-work/scripts/log.sh +58 -0
- package/plugin/skills/statechart/SKILL.md +81 -0
- package/plugin/skills/statechart/references/render.md +93 -0
- package/plugin/skills/statechart/scripts/backends/cfg.ts +33 -0
- package/plugin/skills/statechart/scripts/backends/mermaid.ts +249 -0
- package/plugin/skills/statechart/scripts/backends/plain-text.ts +72 -0
- package/plugin/skills/statechart/scripts/backends/report.ts +177 -0
- package/plugin/skills/statechart/scripts/bun.lock +17 -0
- package/plugin/skills/statechart/scripts/frontends/config.ts +276 -0
- package/plugin/skills/statechart/scripts/frontends/dot.ts +77 -0
- package/plugin/skills/statechart/scripts/frontends/marks.ts +93 -0
- package/plugin/skills/statechart/scripts/frontends/messages.ts +52 -0
- package/plugin/skills/statechart/scripts/frontends/spec.ts +114 -0
- package/plugin/skills/statechart/scripts/frontends/trace.ts +24 -0
- package/plugin/skills/statechart/scripts/frontends/value.ts +166 -0
- package/plugin/skills/statechart/scripts/frontends/verdict.ts +40 -0
- package/plugin/skills/statechart/scripts/frontends/view.ts +119 -0
- package/plugin/skills/statechart/scripts/ir.ts +547 -0
- package/plugin/skills/statechart/scripts/janitor.ts +13 -0
- package/plugin/skills/statechart/scripts/kill.ts +15 -0
- package/plugin/skills/statechart/scripts/package.json +11 -0
- package/plugin/skills/statechart/scripts/passes/annotate.ts +128 -0
- package/plugin/skills/statechart/scripts/passes/label.ts +269 -0
- package/plugin/skills/statechart/scripts/passes/lift.ts +85 -0
- package/plugin/skills/statechart/scripts/passes/loop-check.ts +68 -0
- package/plugin/skills/statechart/scripts/passes/paths.ts +60 -0
- package/plugin/skills/statechart/scripts/passes/reach.ts +135 -0
- package/plugin/skills/statechart/scripts/passes/region-check.ts +97 -0
- package/plugin/skills/statechart/scripts/passes/regions.ts +295 -0
- package/plugin/skills/statechart/scripts/pipeline.ts +76 -0
- package/plugin/skills/statechart/scripts/run.ts +545 -0
- package/plugin/skills/statechart/scripts/statechart +29 -0
- package/plugin/skills/statechart/scripts/statechart.ts +166 -0
- package/plugin/skills/statechart/scripts/test/ConfigOracle.java +63 -0
- package/plugin/skills/statechart/scripts/test/chart.test.ts +1253 -0
- package/plugin/skills/statechart/scripts/test/charts/Braces.mmd +7 -0
- package/plugin/skills/statechart/scripts/test/charts/Escapes.mmd +11 -0
- package/plugin/skills/statechart/scripts/test/charts/Phases.mmd +29 -0
- package/plugin/skills/statechart/scripts/test/child-env.test.ts +15 -0
- package/plugin/skills/statechart/scripts/test/cli.test.ts +1353 -0
- package/plugin/skills/statechart/scripts/test/config-fuzz.test.ts +263 -0
- package/plugin/skills/statechart/scripts/test/corpus/Counter/ChartRun.out +57 -0
- package/plugin/skills/statechart/scripts/test/corpus/Counter/Counter.cfg +3 -0
- package/plugin/skills/statechart/scripts/test/corpus/Counter/Counter.tla +10 -0
- package/plugin/skills/statechart/scripts/test/corpus/Counter/chart.mmd +9 -0
- package/plugin/skills/statechart/scripts/test/corpus/Counter/graph.dot +16 -0
- package/plugin/skills/statechart/scripts/test/corpus/Counter/report.md +7 -0
- package/plugin/skills/statechart/scripts/test/corpus/Counter/sany.out +2 -0
- package/plugin/skills/statechart/scripts/test/corpus/Counter/verdict-1.out +49 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterAction/ChartRun.out +60 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterAction/CounterAction.cfg +4 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterAction/CounterAction.tla +22 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterAction/chart.mmd +26 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterAction/graph.dot +19 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterAction/report.md +20 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterAction/sany.out +2 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterAction/verdict-1.exit +1 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterAction/verdict-1.out +56 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterAction/verdict-2.exit +1 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterAction/verdict-2.out +82 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterAction/verdict-3.out +57 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterDeadlock/ChartRun.out +59 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterDeadlock/CounterDeadlock.cfg +3 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterDeadlock/CounterDeadlock.tla +11 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterDeadlock/chart.mmd +22 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterDeadlock/graph.dot +16 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterDeadlock/report.md +17 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterDeadlock/sany.out +2 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterDeadlock/verdict-1.exit +1 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterDeadlock/verdict-1.out +56 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterDeadlock/verdict-2.exit +1 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterDeadlock/verdict-2.out +77 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterFan/ChartRun.out +69 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterFan/CounterFan.cfg +2 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterFan/CounterFan.tla +11 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterFan/chart.mmd +85 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterFan/graph.dot +70 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterFan/report.md +12 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterFan/sany.out +2 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterFan/verdict-1.exit +1 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterFan/verdict-1.out +67 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterFan/verdict-2.out +57 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterGuard/ChartRun.exit +1 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterGuard/ChartRun.out +85 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterGuard/CounterGuard.cfg +6 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterGuard/CounterGuard.tla +13 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterGuard/chart.mmd +5 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterGuard/graph.dot +10 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterGuard/report.md +31 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterGuard/sany.out +2 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterGuard/verdict-1.exit +1 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterGuard/verdict-1.out +64 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterGuard/verdict-2.exit +1 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterGuard/verdict-2.out +77 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterInitPast/ChartRun.out +55 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterInitPast/CounterInitPast.cfg +3 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterInitPast/CounterInitPast.tla +10 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterInitPast/chart.mmd +12 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterInitPast/graph.dot +6 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterInitPast/report.md +12 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterInitPast/sany.out +2 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterInitPast/verdict-1.exit +1 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterInitPast/verdict-1.out +33 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterInitPast/verdict-2.out +54 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterInitPastHolds/ChartRun.out +54 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterInitPastHolds/CounterInitPastHolds.cfg +3 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterInitPastHolds/CounterInitPastHolds.tla +10 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterInitPastHolds/chart.mmd +1 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterInitPastHolds/graph.dot +6 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterInitPastHolds/report.md +7 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterInitPastHolds/sany.out +2 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterInitPastHolds/verdict-1.out +46 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterInstance/ChartRun.out +59 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterInstance/CounterInstance.cfg +2 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterInstance/CounterInstance.tla +10 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterInstance/CounterSteps.tla +6 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterInstance/chart.mmd +17 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterInstance/graph.dot +15 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterInstance/report.md +14 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterInstance/sany.out +3 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterInstance/verdict-1.exit +1 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterInstance/verdict-1.out +78 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterJump/ChartRun.out +59 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterJump/CounterJump.cfg +3 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterJump/CounterJump.tla +19 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterJump/chart.mmd +26 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterJump/graph.dot +22 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterJump/report.md +12 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterJump/sany.out +2 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterJump/verdict-1.exit +1 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterJump/verdict-1.out +58 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterJump/verdict-2.out +57 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterLoop/ChartRun.out +57 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterLoop/CounterLoop.cfg +2 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterLoop/CounterLoop.tla +11 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterLoop/chart.mmd +17 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterLoop/graph.dot +15 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterLoop/report.md +14 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterLoop/sany.out +2 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterLoop/verdict-1.exit +1 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterLoop/verdict-1.out +76 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterOrder/ChartRun.out +59 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterOrder/CounterOrder.cfg +3 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterOrder/CounterOrder.tla +11 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterOrder/chart.mmd +19 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterOrder/graph.dot +10 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterOrder/report.md +15 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterOrder/sany.out +2 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterOrder/verdict-1.exit +1 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterOrder/verdict-1.out +56 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterOrder/verdict-2.exit +1 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterOrder/verdict-2.out +67 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterRules/ChartRun.out +62 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterRules/CounterRules.cfg +6 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterRules/CounterRules.tla +24 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterRules/Moves.tla +5 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterRules/chart.mmd +22 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterRules/graph.dot +10 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterRules/report.md +23 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterRules/sany.out +3 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterRules/verdict-1.exit +1 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterRules/verdict-1.out +58 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterRules/verdict-2.exit +1 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterRules/verdict-2.out +66 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterRules/verdict-3.exit +1 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterRules/verdict-3.out +74 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterRules/verdict-4.out +59 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterStart/ChartRun.out +58 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterStart/CounterStart.cfg +3 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterStart/CounterStart.tla +15 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterStart/chart.mmd +18 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterStart/graph.dot +13 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterStart/report.md +11 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterStart/sany.out +2 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterStart/verdict-1.exit +1 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterStart/verdict-1.out +33 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterStart/verdict-2.out +57 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterStop/ChartRun.out +57 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterStop/CounterStop.cfg +3 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterStop/CounterStop.tla +15 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterStop/chart.mmd +7 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterStop/graph.dot +13 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterStop/report.md +6 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterStop/sany.out +2 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterStop/verdict-1.out +49 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterTie/ChartRun.out +61 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterTie/CounterTie.cfg +4 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterTie/CounterTie.tla +14 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterTie/chart.mmd +30 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterTie/graph.dot +19 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterTie/report.md +27 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterTie/sany.out +2 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterTie/verdict-1.exit +1 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterTie/verdict-1.out +56 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterTie/verdict-2.exit +1 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterTie/verdict-2.out +64 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterTie/verdict-3.exit +1 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterTie/verdict-3.out +87 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterTie/verdict-4.out +57 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterTieInGraph/ChartRun.out +60 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterTieInGraph/CounterTieInGraph.cfg +3 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterTieInGraph/CounterTieInGraph.tla +12 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterTieInGraph/chart.mmd +23 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterTieInGraph/graph.dot +19 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterTieInGraph/report.md +11 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterTieInGraph/sany.out +2 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterTieInGraph/verdict-1.exit +1 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterTieInGraph/verdict-1.out +56 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterTieInGraph/verdict-2.out +57 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterView/ChartRun.out +61 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterView/CounterView.cfg +4 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterView/CounterView.tla +14 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterView/chart.mmd +23 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterView/graph.dot +19 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterView/report.md +27 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterView/sany.out +2 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterView/verdict-1.exit +1 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterView/verdict-1.out +56 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterView/verdict-2.exit +1 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterView/verdict-2.out +64 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterView/verdict-3.exit +1 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterView/verdict-3.out +87 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterView/verdict-4.out +57 -0
- package/plugin/skills/statechart/scripts/test/corpus/CounterView/view.mjs +1 -0
- package/plugin/skills/statechart/scripts/test/corpus/DieHard/ChartRun.out +59 -0
- package/plugin/skills/statechart/scripts/test/corpus/DieHard/DieHard.cfg +4 -0
- package/plugin/skills/statechart/scripts/test/corpus/DieHard/DieHard.tla +38 -0
- package/plugin/skills/statechart/scripts/test/corpus/DieHard/chart.mmd +92 -0
- package/plugin/skills/statechart/scripts/test/corpus/DieHard/graph.dot +126 -0
- package/plugin/skills/statechart/scripts/test/corpus/DieHard/report.md +17 -0
- package/plugin/skills/statechart/scripts/test/corpus/DieHard/sany.out +2 -0
- package/plugin/skills/statechart/scripts/test/corpus/DieHard/verdict-1.exit +1 -0
- package/plugin/skills/statechart/scripts/test/corpus/DieHard/verdict-1.out +91 -0
- package/plugin/skills/statechart/scripts/test/corpus/DieHard/verdict-2.out +57 -0
- package/plugin/skills/statechart/scripts/test/corpus/FirstRule/ChartRun.out +61 -0
- package/plugin/skills/statechart/scripts/test/corpus/FirstRule/FirstRule.cfg +6 -0
- package/plugin/skills/statechart/scripts/test/corpus/FirstRule/FirstRule.tla +11 -0
- package/plugin/skills/statechart/scripts/test/corpus/FirstRule/chart.mmd +22 -0
- package/plugin/skills/statechart/scripts/test/corpus/FirstRule/graph.dot +16 -0
- package/plugin/skills/statechart/scripts/test/corpus/FirstRule/report.md +25 -0
- package/plugin/skills/statechart/scripts/test/corpus/FirstRule/sany.out +2 -0
- package/plugin/skills/statechart/scripts/test/corpus/FirstRule/verdict-1.exit +1 -0
- package/plugin/skills/statechart/scripts/test/corpus/FirstRule/verdict-1.out +56 -0
- package/plugin/skills/statechart/scripts/test/corpus/FirstRule/verdict-2.exit +1 -0
- package/plugin/skills/statechart/scripts/test/corpus/FirstRule/verdict-2.out +64 -0
- package/plugin/skills/statechart/scripts/test/corpus/FirstRule/verdict-3.exit +1 -0
- package/plugin/skills/statechart/scripts/test/corpus/FirstRule/verdict-3.out +64 -0
- package/plugin/skills/statechart/scripts/test/corpus/FirstRule/verdict-4.exit +1 -0
- package/plugin/skills/statechart/scripts/test/corpus/FirstRule/verdict-4.out +77 -0
- package/plugin/skills/statechart/scripts/test/corpus/HiddenClock/ChartRun.out +57 -0
- package/plugin/skills/statechart/scripts/test/corpus/HiddenClock/HiddenClock.cfg +4 -0
- package/plugin/skills/statechart/scripts/test/corpus/HiddenClock/HiddenClock.tla +11 -0
- package/plugin/skills/statechart/scripts/test/corpus/HiddenClock/chart.mmd +13 -0
- package/plugin/skills/statechart/scripts/test/corpus/HiddenClock/graph.dot +12 -0
- package/plugin/skills/statechart/scripts/test/corpus/HiddenClock/report.md +11 -0
- package/plugin/skills/statechart/scripts/test/corpus/HiddenClock/sany.out +2 -0
- package/plugin/skills/statechart/scripts/test/corpus/HiddenClock/verdict-1.exit +1 -0
- package/plugin/skills/statechart/scripts/test/corpus/HiddenClock/verdict-1.out +72 -0
- package/plugin/skills/statechart/scripts/test/corpus/Login/ChartRun.out +57 -0
- package/plugin/skills/statechart/scripts/test/corpus/Login/Login.cfg +3 -0
- package/plugin/skills/statechart/scripts/test/corpus/Login/Login.tla +62 -0
- package/plugin/skills/statechart/scripts/test/corpus/Login/chart.mmd +28 -0
- package/plugin/skills/statechart/scripts/test/corpus/Login/graph.dot +40 -0
- package/plugin/skills/statechart/scripts/test/corpus/Login/report.md +7 -0
- package/plugin/skills/statechart/scripts/test/corpus/Login/sany.out +1 -0
- package/plugin/skills/statechart/scripts/test/corpus/Login/verdict-1.out +47 -0
- package/plugin/skills/statechart/scripts/test/corpus/Login/view.mjs +1 -0
- package/plugin/skills/statechart/scripts/test/corpus/LoginGuarded/ChartRun.out +57 -0
- package/plugin/skills/statechart/scripts/test/corpus/LoginGuarded/LoginGuarded.cfg +2 -0
- package/plugin/skills/statechart/scripts/test/corpus/LoginGuarded/LoginGuarded.tla +64 -0
- package/plugin/skills/statechart/scripts/test/corpus/LoginGuarded/chart.mmd +28 -0
- package/plugin/skills/statechart/scripts/test/corpus/LoginGuarded/graph.dot +37 -0
- package/plugin/skills/statechart/scripts/test/corpus/LoginGuarded/report.md +8 -0
- package/plugin/skills/statechart/scripts/test/corpus/LoginGuarded/sany.out +1 -0
- package/plugin/skills/statechart/scripts/test/corpus/LoginGuarded/verdict-1.out +47 -0
- package/plugin/skills/statechart/scripts/test/corpus/LoginGuarded/view.mjs +1 -0
- package/plugin/skills/statechart/scripts/test/corpus/LoginParallel/ChartRun.out +60 -0
- package/plugin/skills/statechart/scripts/test/corpus/LoginParallel/LoginParallel.cfg +3 -0
- package/plugin/skills/statechart/scripts/test/corpus/LoginParallel/LoginParallel.tla +64 -0
- package/plugin/skills/statechart/scripts/test/corpus/LoginParallel/chart.mmd +44 -0
- package/plugin/skills/statechart/scripts/test/corpus/LoginParallel/graph.dot +58 -0
- package/plugin/skills/statechart/scripts/test/corpus/LoginParallel/report.md +17 -0
- package/plugin/skills/statechart/scripts/test/corpus/LoginParallel/sany.out +1 -0
- package/plugin/skills/statechart/scripts/test/corpus/LoginParallel/verdict-1.exit +1 -0
- package/plugin/skills/statechart/scripts/test/corpus/LoginParallel/verdict-1.out +83 -0
- package/plugin/skills/statechart/scripts/test/corpus/LoginParallel/verdict-2.out +57 -0
- package/plugin/skills/statechart/scripts/test/corpus/LoginParallel/view.mjs +1 -0
- package/plugin/skills/statechart/scripts/test/corpus/MediaPlayer/ChartRun.out +60 -0
- package/plugin/skills/statechart/scripts/test/corpus/MediaPlayer/MediaPlayer.cfg +3 -0
- package/plugin/skills/statechart/scripts/test/corpus/MediaPlayer/MediaPlayer.tla +103 -0
- package/plugin/skills/statechart/scripts/test/corpus/MediaPlayer/chart.mmd +43 -0
- package/plugin/skills/statechart/scripts/test/corpus/MediaPlayer/graph.dot +93 -0
- package/plugin/skills/statechart/scripts/test/corpus/MediaPlayer/report.md +14 -0
- package/plugin/skills/statechart/scripts/test/corpus/MediaPlayer/sany.out +1 -0
- package/plugin/skills/statechart/scripts/test/corpus/MediaPlayer/verdict-1.exit +1 -0
- package/plugin/skills/statechart/scripts/test/corpus/MediaPlayer/verdict-1.out +59 -0
- package/plugin/skills/statechart/scripts/test/corpus/MediaPlayer/verdict-2.out +72 -0
- package/plugin/skills/statechart/scripts/test/corpus/MediaPlayer/view.mjs +3 -0
- package/plugin/skills/statechart/scripts/test/corpus/MediaPlayerFixed/ChartRun.out +57 -0
- package/plugin/skills/statechart/scripts/test/corpus/MediaPlayerFixed/MediaPlayerFixed.cfg +2 -0
- package/plugin/skills/statechart/scripts/test/corpus/MediaPlayerFixed/MediaPlayerFixed.tla +100 -0
- package/plugin/skills/statechart/scripts/test/corpus/MediaPlayerFixed/chart.mmd +31 -0
- package/plugin/skills/statechart/scripts/test/corpus/MediaPlayerFixed/graph.dot +85 -0
- package/plugin/skills/statechart/scripts/test/corpus/MediaPlayerFixed/report.md +9 -0
- package/plugin/skills/statechart/scripts/test/corpus/MediaPlayerFixed/sany.out +1 -0
- package/plugin/skills/statechart/scripts/test/corpus/MediaPlayerFixed/verdict-1.out +47 -0
- package/plugin/skills/statechart/scripts/test/corpus/MediaPlayerFixed/view.mjs +3 -0
- package/plugin/skills/statechart/scripts/test/corpus/MediaPlayerProps/ChartRun.out +59 -0
- package/plugin/skills/statechart/scripts/test/corpus/MediaPlayerProps/MediaPlayer.tla +103 -0
- package/plugin/skills/statechart/scripts/test/corpus/MediaPlayerProps/MediaPlayerProps.cfg +3 -0
- package/plugin/skills/statechart/scripts/test/corpus/MediaPlayerProps/MediaPlayerProps.tla +6 -0
- package/plugin/skills/statechart/scripts/test/corpus/MediaPlayerProps/chart.mmd +42 -0
- package/plugin/skills/statechart/scripts/test/corpus/MediaPlayerProps/graph.dot +93 -0
- package/plugin/skills/statechart/scripts/test/corpus/MediaPlayerProps/report.md +19 -0
- package/plugin/skills/statechart/scripts/test/corpus/MediaPlayerProps/sany.out +2 -0
- package/plugin/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-1.exit +1 -0
- package/plugin/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-1.out +61 -0
- package/plugin/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-2.out +59 -0
- package/plugin/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-3.out +61 -0
- package/plugin/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-4.exit +1 -0
- package/plugin/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-4.out +66 -0
- package/plugin/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-5.exit +1 -0
- package/plugin/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-5.out +58 -0
- package/plugin/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-6.out +49 -0
- package/plugin/skills/statechart/scripts/test/corpus/MediaPlayerProps/view.mjs +3 -0
- package/plugin/skills/statechart/scripts/test/corpus/PickWorker/ChartRun.out +57 -0
- package/plugin/skills/statechart/scripts/test/corpus/PickWorker/PickWorker.cfg +6 -0
- package/plugin/skills/statechart/scripts/test/corpus/PickWorker/PickWorker.tla +11 -0
- package/plugin/skills/statechart/scripts/test/corpus/PickWorker/chart.mmd +5 -0
- package/plugin/skills/statechart/scripts/test/corpus/PickWorker/graph.dot +11 -0
- package/plugin/skills/statechart/scripts/test/corpus/PickWorker/report.md +7 -0
- package/plugin/skills/statechart/scripts/test/corpus/PickWorker/sany.out +5 -0
- package/plugin/skills/statechart/scripts/test/corpus/PickWorker/verdict-1.out +70 -0
- package/plugin/skills/statechart/scripts/test/corpus/Shadow/ChartRun.out +61 -0
- package/plugin/skills/statechart/scripts/test/corpus/Shadow/Shadow.cfg +4 -0
- package/plugin/skills/statechart/scripts/test/corpus/Shadow/Shadow.tla +11 -0
- package/plugin/skills/statechart/scripts/test/corpus/Shadow/ShadowLib.tla +6 -0
- package/plugin/skills/statechart/scripts/test/corpus/Shadow/ShadowSub.tla +3 -0
- package/plugin/skills/statechart/scripts/test/corpus/Shadow/chart.mmd +9 -0
- package/plugin/skills/statechart/scripts/test/corpus/Shadow/graph.dot +16 -0
- package/plugin/skills/statechart/scripts/test/corpus/Shadow/report.md +8 -0
- package/plugin/skills/statechart/scripts/test/corpus/Shadow/sany.out +4 -0
- package/plugin/skills/statechart/scripts/test/corpus/Shadow/verdict-1.out +65 -0
- package/plugin/skills/statechart/scripts/test/corpus/SpacedNames/ChartRun.out +59 -0
- package/plugin/skills/statechart/scripts/test/corpus/SpacedNames/SpacedNames.cfg +2 -0
- package/plugin/skills/statechart/scripts/test/corpus/SpacedNames/SpacedNames.tla +9 -0
- package/plugin/skills/statechart/scripts/test/corpus/SpacedNames/chart.mmd +23 -0
- package/plugin/skills/statechart/scripts/test/corpus/SpacedNames/graph.dot +17 -0
- package/plugin/skills/statechart/scripts/test/corpus/SpacedNames/report.md +15 -0
- package/plugin/skills/statechart/scripts/test/corpus/SpacedNames/sany.out +1 -0
- package/plugin/skills/statechart/scripts/test/corpus/SpacedNames/verdict-1.exit +1 -0
- package/plugin/skills/statechart/scripts/test/corpus/SpacedNames/verdict-1.out +65 -0
- package/plugin/skills/statechart/scripts/test/corpus/SpacedNames/verdict-2.exit +1 -0
- package/plugin/skills/statechart/scripts/test/corpus/SpacedNames/verdict-2.out +75 -0
- package/plugin/skills/statechart/scripts/test/corpus/TwoPhase/ChartRun.out +69 -0
- package/plugin/skills/statechart/scripts/test/corpus/TwoPhase/TwoPhase.cfg +3 -0
- package/plugin/skills/statechart/scripts/test/corpus/TwoPhase/TwoPhase.tla +75 -0
- package/plugin/skills/statechart/scripts/test/corpus/TwoPhase/chart.mmd +60 -0
- package/plugin/skills/statechart/scripts/test/corpus/TwoPhase/graph.dot +297 -0
- package/plugin/skills/statechart/scripts/test/corpus/TwoPhase/report.md +20 -0
- package/plugin/skills/statechart/scripts/test/corpus/TwoPhase/sany.out +1 -0
- package/plugin/skills/statechart/scripts/test/corpus/TwoPhase/verdict-1.exit +1 -0
- package/plugin/skills/statechart/scripts/test/corpus/TwoPhase/verdict-1.out +95 -0
- package/plugin/skills/statechart/scripts/test/corpus/TwoPhase/verdict-2.out +57 -0
- package/plugin/skills/statechart/scripts/test/corpus/TwoPhase/view.mjs +1 -0
- package/plugin/skills/statechart/scripts/test/corpus/TwoPhaseFixed/ChartRun.out +57 -0
- package/plugin/skills/statechart/scripts/test/corpus/TwoPhaseFixed/TwoPhaseFixed.cfg +3 -0
- package/plugin/skills/statechart/scripts/test/corpus/TwoPhaseFixed/TwoPhaseFixed.tla +75 -0
- package/plugin/skills/statechart/scripts/test/corpus/TwoPhaseFixed/chart.mmd +37 -0
- package/plugin/skills/statechart/scripts/test/corpus/TwoPhaseFixed/graph.dot +223 -0
- package/plugin/skills/statechart/scripts/test/corpus/TwoPhaseFixed/report.md +11 -0
- package/plugin/skills/statechart/scripts/test/corpus/TwoPhaseFixed/sany.out +1 -0
- package/plugin/skills/statechart/scripts/test/corpus/TwoPhaseFixed/verdict-1.out +47 -0
- package/plugin/skills/statechart/scripts/test/corpus/TwoPhaseFixed/view.mjs +1 -0
- package/plugin/skills/statechart/scripts/test/corpus/TypeGuard/ChartRun.exit +1 -0
- package/plugin/skills/statechart/scripts/test/corpus/TypeGuard/ChartRun.out +75 -0
- package/plugin/skills/statechart/scripts/test/corpus/TypeGuard/TypeGuard.cfg +5 -0
- package/plugin/skills/statechart/scripts/test/corpus/TypeGuard/TypeGuard.tla +11 -0
- package/plugin/skills/statechart/scripts/test/corpus/TypeGuard/chart.mmd +18 -0
- package/plugin/skills/statechart/scripts/test/corpus/TypeGuard/graph.dot +14 -0
- package/plugin/skills/statechart/scripts/test/corpus/TypeGuard/report.md +29 -0
- package/plugin/skills/statechart/scripts/test/corpus/TypeGuard/sany.out +2 -0
- package/plugin/skills/statechart/scripts/test/corpus/TypeGuard/verdict-1.exit +1 -0
- package/plugin/skills/statechart/scripts/test/corpus/TypeGuard/verdict-1.out +64 -0
- package/plugin/skills/statechart/scripts/test/corpus/TypeGuard/verdict-2.exit +1 -0
- package/plugin/skills/statechart/scripts/test/corpus/TypeGuard/verdict-2.out +75 -0
- package/plugin/skills/statechart/scripts/test/corpus/UserNoDeadlock/ChartRun.out +58 -0
- package/plugin/skills/statechart/scripts/test/corpus/UserNoDeadlock/UserNoDeadlock.cfg +2 -0
- package/plugin/skills/statechart/scripts/test/corpus/UserNoDeadlock/UserNoDeadlock.tla +8 -0
- package/plugin/skills/statechart/scripts/test/corpus/UserNoDeadlock/chart.mmd +22 -0
- package/plugin/skills/statechart/scripts/test/corpus/UserNoDeadlock/graph.dot +16 -0
- package/plugin/skills/statechart/scripts/test/corpus/UserNoDeadlock/report.md +15 -0
- package/plugin/skills/statechart/scripts/test/corpus/UserNoDeadlock/sany.out +2 -0
- package/plugin/skills/statechart/scripts/test/corpus/UserNoDeadlock/verdict-1.exit +1 -0
- package/plugin/skills/statechart/scripts/test/corpus/UserNoDeadlock/verdict-1.out +56 -0
- package/plugin/skills/statechart/scripts/test/corpus/UserNoDeadlock/verdict-2.exit +1 -0
- package/plugin/skills/statechart/scripts/test/corpus/UserNoDeadlock/verdict-2.out +77 -0
- package/plugin/skills/statechart/scripts/test/corpus.test.ts +453 -0
- package/plugin/skills/statechart/scripts/test/differential.test.ts +565 -0
- package/plugin/skills/statechart/scripts/test/drawn.ts +20 -0
- package/plugin/skills/statechart/scripts/test/grid/Grid.cfg +2 -0
- package/plugin/skills/statechart/scripts/test/grid/Grid.tla +9 -0
- package/plugin/skills/statechart/scripts/test/grid/sany.out +2 -0
- package/plugin/skills/statechart/scripts/test/java.ts +63 -0
- package/plugin/skills/statechart/scripts/test/labels.ts +648 -0
- package/plugin/skills/statechart/scripts/test/messages.test.ts +226 -0
- package/plugin/skills/statechart/scripts/test/pipeline.test.ts +270 -0
- package/plugin/skills/statechart/scripts/test/plain-tlc.test.ts +255 -0
- package/plugin/skills/statechart/scripts/test/render.test.ts +145 -0
- package/plugin/skills/statechart/scripts/test/tlc-out.test.ts +90 -0
- package/plugin/skills/statechart/scripts/test/tlc.ts +158 -0
- package/plugin/skills/statechart/scripts/tsconfig.json +11 -0
- package/plugin/skills/statechart/scripts/worker.ts +35 -0
- package/plugin/skills/swarm/SKILL.md +58 -0
- package/plugin/skills/tdd/SKILL.md +41 -0
- package/plugin/skills/teach/SKILL.md +28 -0
- package/plugin/skills/technical-writing/SKILL.md +69 -0
- package/plugin/skills/thermo-nuclear-code-quality-review/SKILL.md +201 -0
- package/plugin/skills/thermo-nuclear-review/SKILL.md +50 -0
- package/plugin/skills/thermos/SKILL.md +40 -0
- package/plugin/skills/typescript-best-practices/SKILL.md +32 -0
- package/plugin/skills/typescript-best-practices/references/patterns.md +328 -0
- package/plugin/skills/unslop/SKILL.md +39 -0
- package/plugin/skills/what-did-i-get-done/SKILL.md +31 -0
- package/plugin/skills/why/SKILL.md +16 -0
- package/README.md +0 -3
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
# Codex tool mapping for pstack
|
|
2
|
+
|
|
3
|
+
pstack skills are written in Claude Code tool language (the `Skill` tool, the `Agent` tool, `AskUserQuestion`, Claude model names). On Codex the skills are the same files; only the tool names resolve differently. Read this when a pstack skill names a Claude tool, a driver or bundled skill, or a Claude model. This file is Codex-specific. Gemini CLI, opencode, Prime Agent, and other runtimes must use their own concrete tools, model names, and configuration paths.
|
|
4
|
+
|
|
5
|
+
## Tool actions
|
|
6
|
+
|
|
7
|
+
| pstack / Claude action | Codex equivalent |
|
|
8
|
+
|------------------------|------------------|
|
|
9
|
+
| Read a file | `shell` (`cat`, `head`, `tail`) |
|
|
10
|
+
| Create / edit / delete a file | `apply_patch` |
|
|
11
|
+
| Run a shell command | `shell` |
|
|
12
|
+
| Search file contents / find files | `shell` (`rg`, `grep`, `find`, `ls`) |
|
|
13
|
+
| Fetch a URL | `shell` with `curl` / `wget` |
|
|
14
|
+
| Search the web | `web_search` |
|
|
15
|
+
| Invoke a skill (the `Skill` tool, `/command`) | Skills load natively. Follow the instructions presented. |
|
|
16
|
+
| Dispatch a subagent (the `Agent`/`Task` tool) | `spawn_agent` |
|
|
17
|
+
| Dispatch N parallel subagents in one turn | N `spawn_agent` calls in one response |
|
|
18
|
+
| Wait for a subagent result | `wait_agent` |
|
|
19
|
+
| Free a finished subagent slot | `close_agent`, when the session exposes it. Some Codex hosts don't. |
|
|
20
|
+
| Track tasks (the todolist; `TaskCreate` / `TaskUpdate`, or `TodoWrite` on Claude Code) | `update_plan` |
|
|
21
|
+
| Ask the human a fixed-choice question (`AskUserQuestion`) | Ask in plain text and let the user answer. Codex has no structured-choice tool. |
|
|
22
|
+
| Read this workspace's session transcripts (Claude Code's `${CLAUDE_CONFIG_DIR:-$HOME/.claude}/projects/<encoded-cwd>/`) | Codex sessions live in `${CODEX_HOME:-~/.codex}/sessions/YYYY/MM/DD/`. Ordinary names end in `-<thread-id>.jsonl`; replacements after `thread/revert` end in `-<thread-id>_<rollout-id>.jsonl`. Revert keeps the old files. Resolve the current path from the state database's `threads.rollout_path`, matched by thread ID, rather than filename order or modification time. Archived sessions are in `${CODEX_HOME:-~/.codex}/archived_sessions/`. Older rollouts in both directories can end in `.jsonl.zst`; read those with `zstd -dc`. The first line of each rollout is a `session_meta` record. Keep only rollouts whose `payload.cwd` is the workspace or one of its worktrees. Never read other projects' sessions. |
|
|
23
|
+
|
|
24
|
+
Subagent dispatch needs `multi_agent` enabled. Add to `~/.codex/config.toml`:
|
|
25
|
+
|
|
26
|
+
```toml
|
|
27
|
+
[features]
|
|
28
|
+
multi_agent = true
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
Without it, `spawn_agent` is unavailable and the fan-out skills (`interrogate`, `why`, `how`, `arena`, `reflect`) degrade to a single sequential pass. A required independent review does not degrade. It stays blocked, as poteto-mode's [Subagents](../SKILL.md#subagents) section says.
|
|
32
|
+
|
|
33
|
+
Enabling `multi_agent` does not lift the host's thread limit. A thread-limit error from `spawn_agent` is a capacity error, not a rejected model slug, so the skills' fallback to another model does not apply. After the first capacity rejection, stop spawning. Close a finished agent with `close_agent` before you try again, and where the session has no `close_agent`, do not assume a finished agent's slot is free.
|
|
34
|
+
|
|
35
|
+
## Subagent policy
|
|
36
|
+
|
|
37
|
+
poteto-mode's Subagents section sets Claude-specific defaults (`subagent_type: "pstack:poteto-agent"`, `run_in_background: true`). On Codex:
|
|
38
|
+
|
|
39
|
+
- There is no `poteto-agent` subagent type. Route an ad-hoc subagent through poteto-mode's style by dispatching a `spawn_agent` whose instructions tell it to read the `poteto-mode` skill in full first.
|
|
40
|
+
- `spawn_agent` calls already run concurrently with your turn, so `run_in_background: true` has no separate flag. Issue the dispatch and continue.
|
|
41
|
+
- For `session`, run `node <poteto-mode-dir>/scripts/codex-session-effort.mjs` before dispatching, with `<poteto-mode-dir>` resolved to this skill's directory. The [helper](../scripts/codex-session-effort.mjs) reads the active turn's effort from the exact runtime log identified by `CODEX_THREAD_ID`, under `$CODEX_HOME/sessions` (default `~/.codex/sessions`). It prints only the effort. Run it again on each turn; a UI effort change must not reuse the previous turn's value.
|
|
42
|
+
- The helper finds the current log through `threads.rollout_path` in `$CODEX_HOME/state_*.sqlite`, or a single `-<thread-id>.jsonl` log when no indexed path is available and no replacement exists; anything else makes effort unavailable.
|
|
43
|
+
- Apply poteto-mode's task adjustment to that starting level, or to the explicit role/default effort, then pass the final level as `reasoning_effort` on `spawn_agent`, including when a model is selected explicitly. An omitted effort can use a configured subagent effort or, when a model is selected, that model's default instead of the parent's level.
|
|
44
|
+
- Do not guess the session's effort from the model, a config default, or a previous turn. If the helper cannot identify the active turn's effort, ask for an explicit role or `default effort` level before dispatching. Do not substitute an omitted `reasoning_effort` for the missing starting level. Automatic `session` resolution depends on the host exposing the current thread's runtime log; it is not available on every Codex host.
|
|
45
|
+
- There is no `comment-sicko` subagent type either. The **no-comments** skill spawns it on Claude Code; on Codex dispatch a `spawn_agent` whose instructions tell it to read `poteto-mode/references/agents/comment-sicko.md` in full first.
|
|
46
|
+
- There are no `thermo-nuclear-review-subagent` or `thermo-nuclear-code-quality-review-subagent` types. The **thermos** skill spawns both on Claude Code; on Codex dispatch two `spawn_agent` calls whose instructions tell each to read the `thermo-nuclear-review` or `thermo-nuclear-code-quality-review` skill in full first and review only the diff and file contents in its prompt.
|
|
47
|
+
- Claude Code runs every subagent on this machine, so the **swarm** skill's workers and the fan-out playbooks (`autopilot-full`, `autopilot-stack`) isolate writers with worktrees. The same holds on Codex.
|
|
48
|
+
- Keep the rest of the policy unchanged. Pass file pointers not inlined context, give each worker its own worktree or branch when they write, review every subagent's diff yourself.
|
|
49
|
+
|
|
50
|
+
## Model names
|
|
51
|
+
|
|
52
|
+
Skills name Claude defaults (a single-role default for code/prose/judgment, a worker model for feature and refactoring code, plus a diverse-model panel for diverse-model panels; each model-consuming skill lists its own in a Models section). These slugs do not resolve on Codex. Substitute your configured Codex models:
|
|
53
|
+
|
|
54
|
+
- Single-model roles: your primary Codex model (for example `gpt-6.2-sol`).
|
|
55
|
+
- Roles that default to the Claude worker model (`feature, refactoring`): your fast Codex code model (for example `gpt-6.2-sol`).
|
|
56
|
+
- Roles that default to the strongest Claude model (`strongest judgment`): your strongest Codex model (for example `gpt-6.2-astra`).
|
|
57
|
+
- Diverse-model panels (`arena`, `interrogate`): the adversarial signal comes from model diversity, so use the distinct Codex models available to you. A good default panel on ChatGPT is `gpt-6.2-astra`, `gpt-6.2-sol`, `gpt-6.1-terra`, `gpt-6-luna`. If only one model family is reachable, vary reasoning effort and note in the verdict that diversity was reduced.
|
|
58
|
+
|
|
59
|
+
`/setup-pstack` writes the configured model list. On Codex, set it to your Codex model slugs.
|
|
60
|
+
|
|
61
|
+
## Session routing hook
|
|
62
|
+
|
|
63
|
+
The native pstack plugin bundles the same `SessionStart` routing instruction as the Claude Code plugin, through `session-start.sh` on macOS and Linux and `session-start.ps1` on Windows. Codex runs the hook on startup, resume, clear, and compact after the user trusts the hook through `/hooks`. The hook reads `session hook` from the Codex sheet, at the path in [setup-pstack's runtime table](../../setup-pstack/references/runtimes.md); `session hook: off` disables injection.
|
|
64
|
+
|
|
65
|
+
A skills-only installation does not include plugin hooks. Request `poteto-mode` explicitly or add a standing instruction to `AGENTS.md` in that case.
|
|
66
|
+
|
|
67
|
+
## Driver and bundled skills pstack references
|
|
68
|
+
|
|
69
|
+
The [driver policy](../SKILL.md#non-negotiables) selects the app driver. For skills and drivers named by these workflows, use these Codex equivalents:
|
|
70
|
+
|
|
71
|
+
| Skill or driver named in pstack | On Codex |
|
|
72
|
+
|---------------------------------|----------|
|
|
73
|
+
| `run` (drive a CLI/TUI to see a change work) | Run the app yourself via `shell` and observe the real output. |
|
|
74
|
+
| Project UI driver | Drive the UI with whatever automation you have, or hand the user a concrete manual check. Do not claim done without observing the artifact. |
|
|
75
|
+
| `plugin-dev:skill-development` (Claude's SKILL.md authoring guidance) | Follow your platform's skill-authoring guidance; the `writing-skills` skill if present. Keep `name` + `description` frontmatter and progressive disclosure. |
|
|
76
|
+
| `loop` (recurring/self-paced re-invocation, used by `babysit`) | Codex has no `loop` skill. Re-run the step yourself on a cadence, or use a Codex scheduled task if available. |
|
|
77
|
+
|
|
78
|
+
## Per-skill notes
|
|
79
|
+
|
|
80
|
+
Affected skill entry points point here. Most skills need only the tables above. These need one more mapping:
|
|
81
|
+
|
|
82
|
+
| Skill | On Codex |
|
|
83
|
+
|-------|----------|
|
|
84
|
+
| `interrogate` | The `subagent_type`/`model` dispatch fields map to `spawn_agent`; substitute your configured Codex models and keep the adversary panel model-diverse. |
|
|
85
|
+
| `setup-pstack` | The skill's [Other runtimes](../../setup-pstack/references/runtimes.md) table names the Codex sheet path and how it loads; the slugs are your Codex models (see Model names above). The role rows are identical. |
|
|
86
|
+
| `no-comments` | There is no `comment-sicko` subagent type; see Subagent policy above. |
|
|
87
|
+
| `thermos` | There are no thermo-nuclear subagent types; see Subagent policy above. |
|
|
88
|
+
| `teach` | Running `how` and `why` in parallel maps to `spawn_agent` fan-out; image generation uses the configured Codex equivalent. |
|
|
89
|
+
| `create-verification-skill` | The generated skill lands under `.claude/skills/verify/` on Claude Code; write it to Codex's project-skill location instead. The app-driving harness is platform-neutral. |
|
|
90
|
+
| `maintain-verification-skill` | The parallel per-feature source readers map to `spawn_agent` fan-out; the project-local skill lives under Codex's skills location, not `.claude/skills/`. |
|
|
91
|
+
| `create-formal-verification-skill` | Write the generated skill to Codex's project-skill location, named for the area it verifies. The verifier and its run command are platform-neutral. |
|
|
92
|
+
| `maintain-formal-verification-skill` | Project skills, the formal verification skill among them, live under Codex's project-skill location. |
|
|
93
|
+
| `babysit` | `loop` and `AskUserQuestion` resolve through the tables above. |
|
|
94
|
+
| `automate-me` | `plugin-dev:skill-development` resolves through the skills table above. |
|
|
95
|
+
| `architect` | A large or contested design goes through the **arena** skill, so its `spawn_agent` fan-out and model substitution apply here too. |
|
|
96
|
+
| `arena` | The parallel candidates and the cross-judge map to `spawn_agent`; substitute your configured Codex models for the runners and the cross-judge pool (see Model names above). |
|
|
97
|
+
| `how` | The one read-only subagent maps to `spawn_agent`. |
|
|
98
|
+
| `reflect` | The transcript finder reads Claude Code's layout under `${CLAUDE_CONFIG_DIR:-$HOME/.claude}/projects/`, so work from the conversation in your context, as the skill allows when the finder finds nothing. For a pstack skill, never edit the installed plugin under `${CODEX_HOME:-~/.codex}/plugins/cache/`. Codex does not discover `.claude/skills/` or Claude Code's personal skills folder, so before approval show the destination in Codex's skill folders, and after approval copy the skill folder there: the repository's `.agents/skills/<skill>/` for a project copy, or `${CODEX_HOME:-~/.codex}/skills/<skill>/` for a personal one. In a skills-only install `~/.agents/skills/<skill>` is a link into a pstack checkout, so do not copy to or edit through it. Edit a project or personal skill where it already lives. Codex lists the plugin's copy as `pstack:<skill>` and the edited copy as `<skill>`, both enabled, and does not merge them. |
|
|
99
|
+
| `recall` | Search this workspace's Codex rollouts (see Tool actions). Do not list or read `${CLAUDE_CONFIG_DIR:-$HOME/.claude}/projects/`. It holds Claude Code transcripts, not this session's history. In a rollout, chat messages are the `response_item` records whose `payload.type` is `message`, with the speaker in `payload.role`. Skip `developer` records, which are injected instructions. |
|
|
100
|
+
| `show-me-your-work` | Check the log against this run's current Codex rollout, using `CODEX_THREAD_ID` and the state index as described in Tool actions. A filename suffix alone cannot select the current file after revert. If the current path is unavailable or ambiguous, report that the audit could not run instead of guessing a rollout. Do not read Claude Code's projects directory. |
|
|
101
|
+
| `swarm` | Each worker is a `spawn_agent` call on your configured Codex model, and those calls already run concurrently; give each writing worker its own worktree or output directory (see Subagent policy above). |
|
|
102
|
+
| `why` | List MCP servers from the tools Codex exposes to the session, not from `.mcp.json` or `claude mcp list`. |
|
|
103
|
+
|
|
104
|
+
## Vendored scripts
|
|
105
|
+
|
|
106
|
+
`skills/poteto-mode/scripts/` ships the `watch-pr` PR watcher and `worktree-audit.mjs`. The `watch-pr/ship-pr` command owns pending-merge inspection and cancellation; `resume.mjs` owns the shared checkpoint locator described in [Resume storage](resume-storage.md). These scripts use bun and Node.js and run the same on Codex; invoke them through `shell`. They need `bun` and `gh`, or `origin` when the forge is Origin. Run `worktree-audit.mjs` with `node`, as its shebang does. The audit follows each link in a worktree's ancestor directories with `stat` and matches it by the directory it lands on, under bun and node alike. A worktree whose own path bun cannot resolve loses its last chat and lands in `review`. A dangling or looping link is ignored. Any other link that `stat` cannot follow puts every worktree under the link's directory in `review`, with a warning that names the link. `worktree-audit.mjs` scans Codex sessions under `$CODEX_HOME/sessions` and `$CODEX_HOME/archived_sessions` (default `~/.codex`), along with any Claude Code or Pi transcript directory that exists. It imports the transcript walker from `skills/reflect/scripts/find-transcript.mjs`, so keep the `reflect` skill installed beside `poteto-mode`.
|
|
107
|
+
|
|
108
|
+
## Instructions file
|
|
109
|
+
|
|
110
|
+
Where a pstack skill says "your instructions file", on Codex that is `AGENTS.md` (project root, plus `~/.codex/AGENTS.md` global). On Claude Code it is `CLAUDE.md`.
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
# GitHub Copilot tool mapping for pstack
|
|
2
|
+
|
|
3
|
+
pstack skills are written in Claude Code tool language (the `Skill` tool, the `Agent` tool, `AskUserQuestion`, Claude model names, `${CLAUDE_CONFIG_DIR:-$HOME/.claude}/` and `~/.claude/orchestrate/` paths). On GitHub Copilot the skills are the same files; only the tool names, model IDs, and paths resolve differently. Read this when a pstack skill names a Claude tool, a driver or bundled skill, a Claude model, or a Claude Code path. It covers both the Copilot CLI and the Copilot app, which load the same plugin. This file is Copilot-specific; other runtimes use their own equivalents.
|
|
4
|
+
|
|
5
|
+
## Tool actions
|
|
6
|
+
|
|
7
|
+
| pstack / Claude action | GitHub Copilot equivalent |
|
|
8
|
+
|------------------------|---------------------------|
|
|
9
|
+
| Read a file (`Read`) | `view` |
|
|
10
|
+
| Create a file | `create` |
|
|
11
|
+
| Edit a file | `edit` |
|
|
12
|
+
| Run a shell command | `bash` |
|
|
13
|
+
| Search file contents / find files | `grep` / `glob` |
|
|
14
|
+
| Fetch a URL | `web_fetch` |
|
|
15
|
+
| Search the web | `web_search` |
|
|
16
|
+
| Invoke a skill (the `Skill` tool, `/command`, `pstack:<skill>`) | The `skill` tool with the bare skill name (`poteto-mode`, not `pstack:poteto-mode`). A user types `/pstack:<skill>` in the CLI prompt; on CLI 1.0.89 a bare `/<skill>` reports an unknown command for a plugin skill. Copilot's prompt lists only part of a large plugin's skills (a character budget cuts the alphabetical tail); a skill missing from that list still loads by name. |
|
|
17
|
+
| Dispatch a subagent (the `Agent`/`Task` tool) | The `task` tool: `agent_type`, `model`, `mode`, `name`, `prompt`. |
|
|
18
|
+
| Dispatch N parallel subagents in one turn | N `task` calls in one response. |
|
|
19
|
+
| Background subagent (`run_in_background: true`) | `task` with `mode: "background"`; you are notified when it finishes. |
|
|
20
|
+
| Read a subagent's result / message a running one | `read_agent` / `write_agent`; `list_agents` finds IDs you lost. |
|
|
21
|
+
| Track tasks (the todolist; `TaskCreate` / `TaskUpdate`, or `TodoWrite` on Claude Code) | The `sql` tool against the session database's built-in `todos` table (plus `todo_deps` for ordering). |
|
|
22
|
+
| Ask the human a fixed-choice question (`AskUserQuestion`) | `ask_user` with a `choices` list, one question per call. Where `ask_user` takes an elicitation form instead (`message` and a `requestedSchema`, as on Copilot CLI 1.0.89), one `oneOf` string property is the choice list. Treat it as single-select only, because the Copilot app's `ask_user` has no multi-select, and the UI adds a free-text option on its own. Emulate multi-select with sequential questions. |
|
|
23
|
+
| Search Claude Code transcripts under `${CLAUDE_CONFIG_DIR:-$HOME/.claude}/projects/` | Copilot session state, scoped to the current workspace; see Transcripts below. |
|
|
24
|
+
|
|
25
|
+
## Subagent policy
|
|
26
|
+
|
|
27
|
+
poteto-mode's Subagents section sets Claude-specific defaults (`subagent_type: "pstack:poteto-agent"`, `run_in_background: true`). On GitHub Copilot:
|
|
28
|
+
|
|
29
|
+
- The plugin's agents load as `task` agent types under their namespaced names, `pstack:poteto-agent`, `pstack:comment-sicko`, `pstack:thermo-nuclear-review-subagent`, and `pstack:thermo-nuclear-code-quality-review-subagent`. Pass the skill's `subagent_type` as `agent_type` unchanged.
|
|
30
|
+
- The VS Code agents window rejects those agent types as unknown. There, dispatch `agent_type: "general-purpose"` and tell it in the prompt to read its instructions in full first: the `poteto-mode` skill for `pstack:poteto-agent`, `poteto-mode/references/agents/comment-sicko.md` for `pstack:comment-sicko`, and the `thermo-nuclear-review` or `thermo-nuclear-code-quality-review` skill for the two reviewers.
|
|
31
|
+
- `subagent_type: "general-purpose"` maps to `agent_type: "general-purpose"`. Where a skill leaves the type unset, use `pstack:poteto-agent`.
|
|
32
|
+
- `readonly: true` (reviewers, explorers, critics) maps to a read-only agent type: `explore` for code reading, `code-review` for diff review. When a read-only role must run commands or reach MCP tools, use `general-purpose` and tell it in the prompt not to write files; review its diff anyway.
|
|
33
|
+
- `readonly: false`, or a role that needs MCP tools, maps to `general-purpose` or `pstack:poteto-agent`.
|
|
34
|
+
- Reasoning effort maps to `task`'s `reasoning_effort`. Pass a role value's `@<level>` suffix, or else the sheet's `default effort` level, as `reasoning_effort`; `session` omits it.
|
|
35
|
+
- `run_in_background: true` maps to `mode: "background"`. `mode: "sync"` blocks your turn; use it only when the next step needs the result.
|
|
36
|
+
- A model a skill states for a role (its Models section, an `Agent` call's `model`, or the user's sheet line) is an explicit model instruction, so pass it as `task`'s `model`. A role with no configured model omits `model`. See Model names below for how a Claude default resolves.
|
|
37
|
+
- Workers that write share this machine on the CLI, so the **swarm** skill's workers and the fan-out playbooks (`autopilot-full`, `autopilot-stack`) isolate writers with worktrees, as on Claude Code. In the Copilot app, `create_session` gives each writer its own worktree session instead; see App and CLI below.
|
|
38
|
+
- Keep the rest of the policy unchanged. Pass file pointers not inlined context, give each worker its own worktree or branch when they write, review every subagent's diff yourself.
|
|
39
|
+
|
|
40
|
+
## Model names
|
|
41
|
+
|
|
42
|
+
Skills name Claude Code model aliases in their Models sections. Those aliases are not Copilot model IDs, and the Copilot build ships no default model IDs: the models an account can reach depend on its plan and policy, so the user picks them once.
|
|
43
|
+
|
|
44
|
+
- The model sheet is `${COPILOT_HOME:-~/.copilot}/pstack-models.md`. It sits outside the workspace, so reading it asks for path access. The plugin's SessionStart hook reads it, checks it, and adds its role lines to the session context as the user's saved pstack model choices. Take role models from that block and do not `view` the sheet. A role line names the model for that role.
|
|
45
|
+
- Read the sheet only when that block and the hook's `sheet invalid` or no-sheet note are all missing, as in a skills-only install with no hook. `view`, `create`, and `edit` take literal paths and expand neither `~` nor `$COPILOT_HOME`, so print the sheet's absolute path with `bash` first (`echo "${COPILOT_HOME:-$HOME/.copilot}/pstack-models.md"`) and read and write exactly that path; do not append `.copilot` or any other segment to it. A session with its own `COPILOT_HOME` then never touches `~/.copilot`.
|
|
46
|
+
- No sheet, or the hook reports `sheet invalid`: before a skill that needs a role model (`arena`, `interrogate`, `no-comments`, `poteto-mode`, `swarm`, `thermos`), stop, load `setup-pstack` with the `skill` tool, and finish it first. In that same session, use the values it just wrote; later sessions get them from the hook. Do not ask again on later runs.
|
|
47
|
+
- A role line in the sheet is the user's explicit model instruction, so pass it as the `task` tool's `model` parameter. `inherit-parent` or `auto` omits `model`.
|
|
48
|
+
- The plugin's `PreToolUse` hook enforces this for pstack agents. While the sheet is valid, it denies a `task` call whose `agent_type` starts with `pstack:` and whose `model` is not one of the sheet's values, and its reason lists the saved IDs. Retry with the role's saved model; never retry on another unsaved model. It leaves calls with no `model` and other agent types alone.
|
|
49
|
+
- Roles that default to the worker model (`feature, refactoring`): the worker model the user chose.
|
|
50
|
+
- Roles that default to the strongest model (`strongest judgment`): the strongest model the user chose.
|
|
51
|
+
- Diverse-model panels (`arena`, `interrogate`): the adversarial signal comes from model diversity, so fill a panel from distinct vendors in the `task` tool's `model` list (Claude, GPT, Gemini, Grok, and so on). pstack ships no default Copilot panel. If only one vendor is reachable, vary reasoning effort and note in the verdict that diversity was reduced.
|
|
52
|
+
|
|
53
|
+
`setup-pstack` lists the models from the `model` enum of the `task` tool and writes only IDs it saw there. After it writes the sheet, it runs its `check-sheet.sh` script, which applies the hook's checks.
|
|
54
|
+
|
|
55
|
+
Run `setup-pstack`, and the parent session that orchestrates a panel, on a model at least as strong as gpt-5.4-mini or a Sonnet-class Claude model. On a Haiku-class model, setup picked models the user never chose in about half of the smoke runs.
|
|
56
|
+
|
|
57
|
+
## Session routing hook
|
|
58
|
+
|
|
59
|
+
The plugin's `SessionStart` hook runs on the Copilot CLI and in the Copilot app. Copilot loads the plugin through its own Copilot manifest and hook file, not the Claude Code ones. The hook prints the routing mandate as the `additionalContext` JSON Copilot injects. It reads `${COPILOT_HOME:-~/.copilot}/pstack-models.md`, which the session itself cannot read without a path-access prompt. `session hook: off` disables injection. When the sheet passes the checks `check-sheet.sh` applies, the injected context ends with one line per role, rebuilt from the checked values; no other sheet text reaches the context. When it fails them, the context says `sheet invalid` and names each problem. With no sheet, it says so. Either way it tells the session to run `setup-pstack` before the first skill that dispatches on role models. The mandate names skills as `pstack:<skill>`; on Copilot load them by bare name.
|
|
60
|
+
|
|
61
|
+
If the mandate is missing from a session (a skills-only install, a Copilot version that drops plugin hook context, or another plugin's hook replacing it), add the standing instruction `setup-pstack` describes to `~/.copilot/copilot-instructions.md`, or request `poteto-mode` explicitly.
|
|
62
|
+
|
|
63
|
+
## Plugin file access
|
|
64
|
+
|
|
65
|
+
Copilot limits file access to the workspace and the system temporary directory, so reading a playbook, reference, or script from the installed plugin would ask for path access on every session, and a `-p` run without `--allow-all-paths` would deny it. The plugin's `PreToolUse` hook approves two kinds of call.
|
|
66
|
+
|
|
67
|
+
- `view` of a path inside `COPILOT_PLUGIN_ROOT` that has no `.` or `..` segment.
|
|
68
|
+
- `bash` that runs a registered script by its absolute path under `COPILOT_PLUGIN_ROOT/skills/`, using its documented arguments. The registered scripts are `log.sh` (run with `bash`), `check-sheet.sh` (run with `sh` or `bash`), and `find-transcript.mjs`, `resume.mjs`, `check-playbooks.mjs`, and `worktree-audit.mjs` (run with `node`). Direct execution is also accepted. The hook checks each script's argument contract: for example, only the first of `log.sh`'s six arguments is a filename; the others are prose. Resume accepts its operation first, then `--project`, `--note`, and repeated `--artifact` paths as applicable, using either `--option=value` or `--option value`.
|
|
69
|
+
|
|
70
|
+
Each argument is a plain word of letters, digits, and `_ . / : = @ % + , -`, or a single-quoted string with no quote inside. Path operands may not climb with `..` and must resolve inside the workspace after following directory symlinks; a path in the plugin takes the normal permission flow, so no approved script can rewrite the context every session loads. File and dangling symlinks take the normal permission flow. The command holds none of `; | & $`, a backtick, `< > ( ) \`, a double quote, or a newline. Run one command per call, with no pipe or redirect. Unknown scripts, unrecognized argument forms, and mismatched interpreters take the normal permission flow.
|
|
71
|
+
|
|
72
|
+
Every other call, including a script run in any other form and `grep` or `glob` in the plugin's tree, takes the normal permission flow. So does a command that asks to bypass the sandbox, because Copilot prompts for a bypass whatever a hook answers. The hook does not approve scripts when the plugin sits inside the workspace or the workspace inside the plugin, since a session could edit a script and then run it. Where that hook does not run (a skills-only install, or hooks disabled), start the CLI with `--add-dir <plugin directory>` or run `/add-dir <plugin directory>` in the session; a GitHub marketplace install lives under `${COPILOT_HOME:-~/.copilot}/installed-plugins/<marketplace>/pstack`.
|
|
73
|
+
|
|
74
|
+
## App and CLI
|
|
75
|
+
|
|
76
|
+
The Copilot app loads the same plugin as the CLI and adds session-level tools. Use the app primitive when it is present in your tool list; otherwise use the CLI fallback.
|
|
77
|
+
|
|
78
|
+
| pstack need | Copilot app | Copilot CLI |
|
|
79
|
+
|-------------|-------------|-------------|
|
|
80
|
+
| Isolated writer (swarm worker, stack layer, autopilot owner) | `create_session`, one worktree session per writer | `git worktree add` per writer, then `task` workers pointed at it |
|
|
81
|
+
| Recurring wake-up (`loop`, the `/loop` audit tick, babysit's cadence) | `save_session_automation` on this session | Re-run the step yourself each turn, or ask the user to re-invoke; state the cadence in the decision trail |
|
|
82
|
+
| Coordinate several sessions or repos (`autopilot-full`) | The app's `orchestrate` skill plus `send_session_message` | `task` fan-out with worktrees; `/fleet` for parallel subagents |
|
|
83
|
+
| Stacked PRs (`autopilot-stack`, shipping a stack) | The app's `pr-stack` skill, one child session per layer | `gh` or `origin`, one worktree per layer |
|
|
84
|
+
| Watch a PR to merge (`babysit`, `watch-pr`) | Agent merge on the session, or `babysit` with `save_session_automation` | `babysit` with the vendored `watch-pr` script and `gh` |
|
|
85
|
+
| Drive a UI | The `browser` canvas, or your browser automation | Your browser automation, or a concrete manual check for the user |
|
|
86
|
+
|
|
87
|
+
## Transcripts
|
|
88
|
+
|
|
89
|
+
Claude Code keeps one directory per project under `${CLAUDE_CONFIG_DIR:-$HOME/.claude}/projects/<encoded-cwd>/`. Copilot keeps one directory per session under `${COPILOT_HOME:-~/.copilot}/session-state/<session-id>/`, for every project together:
|
|
90
|
+
|
|
91
|
+
- `events.jsonl` is the transcript. The first record is `session.start` with `data.context.cwd`; user turns are `{"type":"user.message","data":{"content":...}}`.
|
|
92
|
+
- `workspace.yaml` names the session's `cwd`. Scope every transcript search to the current workspace: keep only session directories whose `cwd` is the workspace path (or a worktree of it), then read their `events.jsonl`. Never read other projects' sessions.
|
|
93
|
+
- When a skill says "this session's transcript", it is the newest matching session directory whose `events.jsonl` contains the opening prompt.
|
|
94
|
+
|
|
95
|
+
In poteto-mode's playbooks, the Eval playbook reads candidate transcripts from Copilot session state, and `session-pickup` and `worktree-cleanup` search it scoped to the workspace. `autopilot-full` keeps its store under `${COPILOT_HOME:-~/.copilot}/orchestrate/` instead of `~/.claude/orchestrate/`.
|
|
96
|
+
|
|
97
|
+
## Driver and bundled skills pstack references
|
|
98
|
+
|
|
99
|
+
The [driver policy](../SKILL.md#non-negotiables) selects the app driver. For skills and drivers named by these workflows, use these Copilot equivalents:
|
|
100
|
+
|
|
101
|
+
| Skill or driver named in pstack | On GitHub Copilot |
|
|
102
|
+
|---------------------------------|-------------------|
|
|
103
|
+
| `run` (drive a CLI/TUI to see a change work) | Run the app yourself via `bash` and observe the real output. |
|
|
104
|
+
| Project UI driver | Drive the UI with whatever automation you have (the app's `browser` canvas, a browser skill), or hand the user a concrete manual check. Do not claim done without observing the artifact. |
|
|
105
|
+
| `plugin-dev:skill-development` (Claude's SKILL.md authoring guidance) | Follow the Agent Skills conventions: a `SKILL.md` with `name` + `description` frontmatter, progressive disclosure into `references/`, and poteto-mode's [authoring-a-skill playbook](../playbooks/authoring-a-skill.md). |
|
|
106
|
+
| `loop` (recurring/self-paced re-invocation, used by `babysit`) | Copilot has no `loop` skill. In the app use `save_session_automation`; on the CLI re-run the step yourself on a cadence. |
|
|
107
|
+
|
|
108
|
+
## Per-skill notes
|
|
109
|
+
|
|
110
|
+
Affected skill entry points point here. Most skills need only the tables above. These need one more mapping:
|
|
111
|
+
|
|
112
|
+
| Skill | On GitHub Copilot |
|
|
113
|
+
|-------|-------------------|
|
|
114
|
+
| `interrogate` | Each adversary is a `task` call: `subagent_type` becomes `agent_type`, and `model` comes from the sheet. Keep the panel's vendors distinct. |
|
|
115
|
+
| `setup-pstack` | The skill's [Other runtimes](../../setup-pstack/references/runtimes.md) table names the Copilot sheet path and how it loads. Its [Copilot setup questions](../../setup-pstack/copilot.md) list models from the `task` tool's `model` enum and ask one `ask_user` question per tier and panel slot, grouped by vendor, with no recommended model; a first question lets a plan with one model, or anyone who wants no per-role choices, run every role on the session's model. The role rows are identical; the `session hook` line also controls the Copilot hook. |
|
|
116
|
+
| `architect` | A large or contested design goes through the **arena** skill: one `task` per runner, each with a model from the sheet's `arena runners` line. |
|
|
117
|
+
| `how` | The one subagent is a `task` call with a read-only agent type (see Subagent policy). |
|
|
118
|
+
| `arena` | Runners and the cross-judge pool come from the sheet's panel lines; pick the cross-judge from a different vendor than the candidate it grades. |
|
|
119
|
+
| `no-comments` | Dispatch `task` with `agent_type: "pstack:comment-sicko"`. |
|
|
120
|
+
| `thermos` | Dispatch two `task` calls with `mode: "background"`, `agent_type: "pstack:thermo-nuclear-review-subagent"` and `agent_type: "pstack:thermo-nuclear-code-quality-review-subagent"`, each with the same diff and file contents in its prompt. |
|
|
121
|
+
| `swarm` | Workers are `task` calls with `mode: "background"`, each on its own worktree; in the app, `create_session` per worker. |
|
|
122
|
+
| `teach` | Running `how` and `why` in parallel maps to `task` fan-out; image generation uses whatever image tool you have, or skip it and say so. |
|
|
123
|
+
| `why` | Available MCP servers appear in your tool list; there is no `mcp__` prefix convention to scan for. |
|
|
124
|
+
| `reflect` | Run `find-transcript.mjs <session-state directory> '<opening prompt fragment>' <workspace directory>` with the absolute session-state path under `${COPILOT_HOME:-~/.copilot}`. That directory is outside the workspace, so the call takes the normal permission flow. The workspace defaults to the current directory when omitted. The finder checks the session header's `cwd` against that workspace before reading Copilot's `user.message` records, so matching prompts in other projects are skipped. For a conversation in a related worktree, pass that worktree's directory explicitly. Skill paths under `.claude/skills/` and `${CLAUDE_CONFIG_DIR:-$HOME/.claude}/` mean the Copilot skill locations below. |
|
|
125
|
+
| `recall` | Search Copilot session state scoped to the current workspace (Transcripts above), not `${CLAUDE_CONFIG_DIR:-$HOME/.claude}/projects/`. |
|
|
126
|
+
| `show-me-your-work` | The end-of-run check reads this session's `events.jsonl` (Transcripts above). |
|
|
127
|
+
| `automate-me` | Mode skills live in the Copilot skill locations below; transcripts come from Transcripts above; `plugin-dev:skill-development` resolves through the skills table. |
|
|
128
|
+
| `create-verification-skill` | The generated skill lands under `.claude/skills/verify/` on Claude Code; on Copilot write it to `.github/skills/verify/`. The app-driving harness is platform-neutral. |
|
|
129
|
+
| `maintain-verification-skill` | The parallel per-feature source readers map to `task` fan-out; the project-local skill lives under `.github/skills/`, not `.claude/skills/`. |
|
|
130
|
+
| `create-formal-verification-skill` | On Copilot write the generated skill to `.github/skills/<area>/`, named for the area it verifies. The verifier and its run command are platform-neutral. |
|
|
131
|
+
| `maintain-formal-verification-skill` | Project skills, the formal verification skill among them, live under `.github/skills/`. |
|
|
132
|
+
| `babysit` | `loop` and `AskUserQuestion` resolve through the tables above; in the app, `save_session_automation` is the cadence. |
|
|
133
|
+
|
|
134
|
+
## Vendored scripts
|
|
135
|
+
|
|
136
|
+
`skills/poteto-mode/scripts/` ships the `watch-pr` PR watcher, `resume.mjs`, and `worktree-audit.mjs`. They use bun and Node.js and run the same on Copilot; invoke them through `bash` in the form Plugin file access above describes. They need `bun` and `gh`, or `origin` when the forge is Origin. `worktree-audit.mjs` finds each worktree's last chat in Claude Code transcripts under `${CLAUDE_CONFIG_DIR:-$HOME/.claude}/projects/`, in Codex and Pi sessions, and in Copilot sessions under `${COPILOT_HOME:-~/.copilot}/session-state`. Pass transcript directories after the repo path to scan others instead. It imports the transcript walker from `skills/reflect/scripts/find-transcript.mjs`, so keep the `reflect` skill installed beside `poteto-mode`.
|
|
137
|
+
|
|
138
|
+
## Instructions file
|
|
139
|
+
|
|
140
|
+
Where a pstack skill says "your instructions file" or `CLAUDE.md`, on Copilot that is `AGENTS.md` or `.github/copilot-instructions.md` in the repository, and `~/.copilot/copilot-instructions.md` for every repository. Copilot also reads a repository's `CLAUDE.md`. Copilot does not expand `@~/` includes in user-level instructions, so the plugin hook injects the model sheet's role lines instead, as Model names above describes.
|
|
141
|
+
|
|
142
|
+
## Skill locations
|
|
143
|
+
|
|
144
|
+
Where a pstack skill names `.claude/skills/`, on Copilot project skills live under `.github/skills/` (Copilot also reads `.claude/skills/` and `.agents/skills/`), and personal skills under `~/.copilot/skills/` or `~/.agents/skills/`.
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# DeepSeek Harness tool mapping for pstack
|
|
2
|
+
|
|
3
|
+
DeepSeek Harness (DSH) uses this mapping regardless of its model provider. This is a skills-only integration, with no native pstack bundle, Pi extension, or routing hook. Check the current session's tool schemas: presets, executor modes, and delegation depth can change the exposed interfaces.
|
|
4
|
+
|
|
5
|
+
## Tool actions
|
|
6
|
+
|
|
7
|
+
| pstack / Claude action | DSH equivalent and boundary |
|
|
8
|
+
| --- | --- |
|
|
9
|
+
| Read a file (`Read`) | `read`, with path and line bounds. |
|
|
10
|
+
| Create a file (`Write`) | `write`. |
|
|
11
|
+
| Edit a file (`Edit`) | `edit`, with a literal replacement. |
|
|
12
|
+
| Find files (`Glob`) | `glob`. |
|
|
13
|
+
| Search contents (`Grep`) | `grep`. |
|
|
14
|
+
| Run a shell command (`Bash`) | `bash`, or the deployment's platform-specific shell tool. |
|
|
15
|
+
| Fetch a URL (`WebFetch`) | `web_fetch`. |
|
|
16
|
+
| Search the web (`WebSearch`) | Use an exposed web-search tool; there is no fixed name in this mapping. |
|
|
17
|
+
| Invoke a skill (`Skill`) | `skill` by its catalog name. Request `poteto-mode` by name; Claude slash-command syntax is not assumed. |
|
|
18
|
+
| Dispatch a subagent (`Agent` / `Task`) | `subagent` for a self-contained brief; `subagent_fork` for conversation context. |
|
|
19
|
+
| Continue or steer a subagent (`SendMessage`) | `send_message`, with the returned agent ID. |
|
|
20
|
+
| List subagents | `list_agents`. |
|
|
21
|
+
| Stop a subagent | `interrupt_agent` requests a stop; observe completion before reusing its worktree. |
|
|
22
|
+
| Track tasks (`TaskCreate`, `TaskUpdate`, `TodoWrite`) | `todo_write` replaces the complete list. If absent, use poteto-mode's checklist fallback. |
|
|
23
|
+
| Ask the human (`AskUserQuestion`) | `ask_user_question`. |
|
|
24
|
+
| Wait for shell output | `job_output`, with the background job ID and `wait: true` when blocked. |
|
|
25
|
+
| Cancel a background job | `job_kill`, for a job rather than an agent or Host. |
|
|
26
|
+
| Long-running objective | `create_goal`, only for a direct human long-running objective under DSH's goal contract. |
|
|
27
|
+
| `ScheduleWakeup` / recurring `loop` | No one-to-one equivalent. Use `schedule_create` only for an explicit scheduling request, with its time-zone and recurrence fields. |
|
|
28
|
+
|
|
29
|
+
## Subagent policy
|
|
30
|
+
|
|
31
|
+
- `subagent` takes a short `description` and a complete `prompt`, plus `cwd` for a different working directory. `subagent_fork` inherits conversation context and uses its own schema; use `subagent` for independent reviews.
|
|
32
|
+
- Neither tool takes Claude Code's `subagent_type`, `readonly`, `isolation`, or `run_in_background`. Both return an agent ID immediately and run asynchronously.
|
|
33
|
+
- Names such as `pstack:poteto-agent` and `pstack:comment-sicko` are role instructions, not DSH agent types. Put the role, task boundary, skill paths, and expected result in the prompt.
|
|
34
|
+
- For a read-only reviewer, include that restriction in the brief; DSH has no `readonly` dispatch field. Report when filesystem enforcement is unavailable.
|
|
35
|
+
- For separate writing worktrees, prepare them before dispatch and pass each verified directory through `cwd`; there is no automatic `isolation` field.
|
|
36
|
+
- Model overrides belong on `subagent` only when its live schema accepts them. Supply `provider` and `model` together, and select `reasoning_effort` from the catalog for that pair. Do not attach these fields to `subagent_fork` when its schema omits them.
|
|
37
|
+
- Delegation depth can remove child tools. A required independent review remains unverified when no child level is available.
|
|
38
|
+
- Completion arrives through the runtime. `send_message` confirms delivery, not findings; `interrupt_agent` confirms a stop request, not completion. `job_output` waits for shell jobs, not agents.
|
|
39
|
+
|
|
40
|
+
| Skill | On DeepSeek Harness |
|
|
41
|
+
| --- | --- |
|
|
42
|
+
| `setup-pstack` | Use `list_subagent_models` when exposed and native delegation defaults; no role sheet is installed. |
|
|
43
|
+
| `swarm` | Pass each worker's prepared worktree through `cwd`. |
|
|
44
|
+
|
|
45
|
+
## Model names
|
|
46
|
+
|
|
47
|
+
DSH selects providers, models, and reasoning efforts through its current deployment. Do not pass Claude Code model aliases to DSH or use the Pi/Copilot mapping merely because the parent model comes from that provider. Use `list_subagent_models` when exposed: first list providers, then models for a provider, then efforts for the exact provider/model pair. Without that tool, use the deployment's model settings or omit unsupported selectors. Pass `provider`, `model`, and `reasoning_effort` only when the live delegation schema accepts them; omit all selectors to use its documented defaults.
|
|
48
|
+
|
|
49
|
+
Roles used by `arena`, `interrogate`, `no-comments`, `poteto-mode`, `swarm`, `thermos` are prompt responsibilities, not DSH model IDs or built-in agent types. Diverse-model panels (`arena`, `interrogate`) require distinct available model families; report when that is unavailable. Do not manufacture diversity by relabeling the same model.
|
|
50
|
+
|
|
51
|
+
This skills-only integration has no automatic per-role sheet reader. `setup-pstack` uses the native delegation defaults, as its Other runtimes table describes.
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# Grok Build tool mapping for pstack
|
|
2
|
+
|
|
3
|
+
Grok Build loads the pstack plugin's skills. It does not translate Claude Code tool names in those skills. Use the tools the session exposes; availability and permissions can differ.
|
|
4
|
+
|
|
5
|
+
## Tool actions
|
|
6
|
+
|
|
7
|
+
| pstack / Claude action | Grok Build equivalent |
|
|
8
|
+
| --- | --- |
|
|
9
|
+
| Read (`Read`) | `read_file` with `target_file` set to the path in the session's skills list |
|
|
10
|
+
| Write (`Write`) / edit (`Edit`) | `write` / `search_replace` |
|
|
11
|
+
| Shell (`Bash`) | `run_terminal_command` |
|
|
12
|
+
| Search (`Grep` / `Glob`) | `grep` / `list_dir` |
|
|
13
|
+
| Web (`WebSearch` / `WebFetch`) | `web_search` / `run_terminal_command` with `curl` |
|
|
14
|
+
| Skill (`Skill`) | Read the path from the session's skills list with `read_file`; `/poteto-mode` also expands the skill |
|
|
15
|
+
| Subagent (`Agent` / `Task`) | `spawn_subagent` with `prompt` and `description`; `run_in_background` defaults to `true`; use `isolation: "worktree"` where needed |
|
|
16
|
+
| Wait for a subagent (`TaskOutput`) | `get_command_or_subagent_output` with its task ID |
|
|
17
|
+
| Send to a subagent (`SendMessage`) | `send_subagent_message`, off by default; `GROK_ACTIVE_AGENT_MESSAGES` or `[features] active_agent_messages` enables it. Without the tool, do not claim to have sent an update |
|
|
18
|
+
| Stop a subagent (`TaskStop`) | `kill_command_or_subagent` |
|
|
19
|
+
| Tasks (`TaskCreate` / `TaskUpdate` / `TodoWrite`) | `todo_write` |
|
|
20
|
+
| Questions (`AskUserQuestion`) | `ask_user_question` |
|
|
21
|
+
| MCP (`mcp__<server>__<tool>`) | `search_tool`, then `use_tool` |
|
|
22
|
+
| Wake-up (`ScheduleWakeup`) | For user-authorized recurring work, `scheduler_create` schedules a background subagent while the session is open; `scheduler_list` and `scheduler_delete` inspect or remove it. It is not a one-shot wake-up. |
|
|
23
|
+
| Claude transcript search | Grok stores sessions under `${GROK_HOME:-~/.grok}/sessions`; inspect the relevant session there rather than Claude's projects directory |
|
|
24
|
+
|
|
25
|
+
Grok does not inject the Claude SessionStart hook output. The Grok-only routing skill asks the model to read poteto-mode through its description; this is a model-followed hint, not guaranteed injection. The pstack `session hook: off` setting does not suppress it. Disable the plugin to remove the hint and its other skills.
|
|
26
|
+
|
|
27
|
+
## Subagent policy
|
|
28
|
+
|
|
29
|
+
poteto-mode's Subagents section dispatches `subagent_type: "pstack:poteto-agent"`, and other skills name `general-purpose`. The Grok build ships skills and no agent definitions.
|
|
30
|
+
|
|
31
|
+
- For `pstack:poteto-agent` or `general-purpose`, omit `subagent_type`. Grok cannot select a built-in type by name and runs an omitted type as `general-purpose`.
|
|
32
|
+
- Put the absolute path of `poteto-mode`'s `SKILL.md` in every brief that stands in for `pstack:poteto-agent`, as poteto-mode asks.
|
|
33
|
+
|
|
34
|
+
## Model names
|
|
35
|
+
|
|
36
|
+
Skills name Claude Code model aliases in their Models sections. Grok Build's available models depend on the user's configuration; do not pass a Claude alias as a Grok model.
|
|
37
|
+
|
|
38
|
+
- The model sheet is `${GROK_HOME:-~/.grok}/pstack-models.md`. Before a skill that needs a role model (`arena`, `interrogate`, `no-comments`, `poteto-mode`, `swarm`, `thermos`), read it. With no sheet, use the runtime default; run `setup-pstack` only when the user asks to configure roles.
|
|
39
|
+
- The `spawn_subagent` tool says to omit `model` unless the user explicitly requests one. It has no effort parameter; when it cannot apply a sheet choice, report that limitation instead of claiming model diversity.
|
|
40
|
+
- Roles that default to the worker model (`feature, refactoring`): the worker model the user chose.
|
|
41
|
+
- Roles that default to the strongest model (`strongest judgment`): the strongest model the user chose.
|
|
42
|
+
- Diverse-model panels (`arena`, `interrogate`) require distinct models. Report when the available dispatch cannot provide that diversity.
|
|
43
|
+
|
|
44
|
+
`/setup-pstack` writes the sheet. Choose only models the session exposes.
|
|
45
|
+
|
|
46
|
+
## Per-skill notes
|
|
47
|
+
|
|
48
|
+
| Skill | On Grok Build |
|
|
49
|
+
| --- | --- |
|
|
50
|
+
| `why` | List MCP servers with `search_tool`, not from Claude Code's MCP files. |
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# Kimi Code CLI tool mapping for pstack
|
|
2
|
+
|
|
3
|
+
Kimi Code CLI loads pstack as a native plugin. Its tools differ from Claude Code's. Use the tools and parameters available in the current session if they differ from this guide.
|
|
4
|
+
|
|
5
|
+
| Claude Code action | Kimi Code CLI action |
|
|
6
|
+
| --- | --- |
|
|
7
|
+
| Read, write, edit, and search files | `Read`, `Write`, `Edit`, `Grep`, and `Glob` |
|
|
8
|
+
| Run a shell command | `Bash` |
|
|
9
|
+
| Fetch a URL or search the web | `FetchURL` or `WebSearch`, when available |
|
|
10
|
+
| Invoke a skill with the `Skill` tool | `Skill` with the qualified name, for example `pstack:poteto-mode` |
|
|
11
|
+
| Dispatch a subagent with the `Agent`/`Task` tool and `subagent_type` | `Agent` with `prompt`, `description`, and `subagent_type`. `general-purpose` maps to `coder`, and `readonly: true` maps to `explore`, which never modifies files. Use `plan` for planning. |
|
|
12
|
+
| `run_in_background: true` | `Agent` with `run_in_background: true`. Read progress with `TaskOutput` and wait for the result with `WaitFor`. |
|
|
13
|
+
| Track tasks with `TaskCreate` / `TaskUpdate`, or `TodoWrite` | `TodoList` with `todos`, each with a `title` and `status` |
|
|
14
|
+
| `AskUserQuestion` | `AskUserQuestion`, or ask in the reply when the host cannot show questions |
|
|
15
|
+
| `SendMessage` | Kimi has no tool to message a running agent. Wait for it with `WaitFor`, or stop it with `TaskStop` and continue it with `Agent`, setting `resume` to its ID. |
|
|
16
|
+
| `ScheduleWakeup` and the `loop` skill | `CronCreate` with `cron`, `prompt`, and `recurring: false` for a one-time wake-up. When `KIMI_DISABLE_CRON=1` turns scheduled tasks off, say that scheduling is unavailable. |
|
|
17
|
+
| `CLAUDE.md` | Follow Kimi's `AGENTS.md` instructions and any project instructions the user supplies. |
|
|
18
|
+
| Search Claude Code transcripts under `${CLAUDE_CONFIG_DIR:-$HOME/.claude}/projects/` | `<KIMI_CODE_HOME>/session_index.jsonl` lists each session's `sessionDir` and `workDir`, and the session's transcript is `agents/main/wire.jsonl` in that `sessionDir`. Do not read Claude Code's projects directory, which holds Claude Code history, not this session's. |
|
|
19
|
+
| `plugin-dev:skill-development` | Kimi ships no skill-authoring skill. Write a `SKILL.md` with the `name` and `description` frontmatter Kimi requires. |
|
|
20
|
+
| Project skills under `.claude/skills/` | Kimi loads project skills from `.kimi-code/skills/` and `.agents/skills/`. |
|
|
21
|
+
|
|
22
|
+
Kimi's built-in subagents do not themselves spawn children. When a pstack skill names a plugin agent such as `pstack:poteto-agent`, which Kimi does not load, give the matching built-in agent its instructions in the prompt. `isolation: "worktree"` has no `Agent` parameter, so create a separate worktree for each concurrent writer.
|
|
23
|
+
|
|
24
|
+
Kimi's `AgentSwarm` runs only while the user has enabled swarm mode. When it is off, use separate `Agent` calls where the current tool contract permits them. The `Skill` tool has a maximum nesting depth of three; if a workflow exceeds it, read the next skill file directly and follow it.
|
|
25
|
+
|
|
26
|
+
The plugin contributes routing instructions to the system prompt while enabled. A custom agent prompt must include `${plugin_sections}` or the effective default prompt to receive them. Disable the plugin with `/plugins disable pstack` to stop both routing and its skills, then reload or start a new session. Unlike pstack's shell hooks, this static contribution does not read the `session hook` setting. A resumed session can retain its previous prompt until Kimi rebuilds it.
|
|
27
|
+
|
|
28
|
+
Kimi does not load Claude Code plugin agent definitions through this package. Kimi's skill parser does not document Claude Code's `user-invocable` flag, so principle skills may appear in its picker; this has not been tested in a session. These limitations and any unverified tool behavior must be reported rather than treated as equivalent to Claude Code.
|
|
29
|
+
|
|
30
|
+
## Model names
|
|
31
|
+
|
|
32
|
+
Skills name Claude model aliases; do not assume they are available on Kimi. Use only models advertised by the current `Agent` tool; if it has no `model` parameter, omit `model`. Omitting it uses the configured subagent default when present, otherwise the parent's model. Kimi does not expose a per-call effort parameter.
|
|
33
|
+
|
|
34
|
+
Read `<KIMI_CODE_HOME>/pstack-models.md` before a skill that needs a role model (`arena`, `interrogate`, `no-comments`, `poteto-mode`, `swarm`, `thermos`). KIMI_CODE_HOME defaults to `~/.kimi-code`. If the sheet is absent, omit `model`. For diverse-model panels, use available distinct models and report if diversity is unavailable. `setup-pstack` writes the model choices; `inherit-parent` and `auto` both omit `model`.
|
|
35
|
+
|
|
36
|
+
## Per-skill notes
|
|
37
|
+
|
|
38
|
+
| Skill | On Kimi Code CLI |
|
|
39
|
+
| --- | --- |
|
|
40
|
+
| `why` | Answer from the commits and PR discussions you can read, and say what the record does not answer. |
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Lauren Tan
|
|
4
|
+
Copyright (c) 2026 Michael Denyer
|
|
5
|
+
|
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
8
|
+
in the Software without restriction, including without limitation the rights
|
|
9
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
furnished to do so, subject to the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be included in all
|
|
14
|
+
copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
+
SOFTWARE.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Cursor
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Cursor
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# NOTICE for the skills-only distribution
|
|
2
|
+
|
|
3
|
+
This distribution contains MIT-licensed work from three upstream sources. The copyright notices and license terms travel beside this file.
|
|
4
|
+
|
|
5
|
+
## Upstream sources
|
|
6
|
+
|
|
7
|
+
| Included work | Upstream | Copyright | License |
|
|
8
|
+
| --- | --- | --- | --- |
|
|
9
|
+
| pstack-derived skills, principles, scripts, and the `comment-sicko` definition | [cursor/plugins/pstack](https://github.com/cursor/plugins/tree/e46364b8be46000b7df0f260550cd712afbb8d36/pstack), with later additions from [3fe2823](https://github.com/cursor/plugins/tree/3fe2823ce17c1656c222d4b7c59d3f82fbf20143/pstack) , [4612556](https://github.com/cursor/plugins/tree/4612556/pstack), and [7314f72](https://github.com/cursor/plugins/tree/7314f72/pstack) | (c) 2026 Lauren Tan | [MIT](LICENSE) |
|
|
10
|
+
| `deslop`, `make-pr-easy-to-review`, `fix-ci`, `fix-merge-conflicts`, `get-pr-comments`, and `what-did-i-get-done` | [cursor/plugins/cursor-team-kit](https://github.com/cursor/plugins/tree/e46364b8be46000b7df0f260550cd712afbb8d36/cursor-team-kit) | (c) 2026 Cursor | [MIT](LICENSE-cursor-team-kit) |
|
|
11
|
+
| `thermos`, `thermo-nuclear-review`, `thermo-nuclear-code-quality-review`, and the `thermo-nuclear-review-subagent` and `thermo-nuclear-code-quality-review-subagent` definitions | [cursor/plugins/thermos](https://github.com/cursor/plugins/tree/118e73b0e196e4d49d5aade7ce6dd8985a621f68/thermos) | (c) 2026 Cursor | [MIT](LICENSE-thermos) |
|
|
12
|
+
|
|
13
|
+
The pstack-claude port changes runtime names, tool calls, model defaults, and supporting prose. The port's modifications and additions are (c) 2026 Michael Denyer under the same [MIT license](LICENSE). The [repository notice](https://github.com/michael-denyer/pstack-claude/blob/main/NOTICE.md) records full provenance. The [change log](https://github.com/michael-denyer/pstack-claude/blob/main/CHANGES.md) records each release, and [`tools/forks.json`](https://github.com/michael-denyer/pstack-claude/blob/main/tools/forks.json) names each file the port forks and why.
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# Merge and restack safety
|
|
2
|
+
|
|
3
|
+
Use this reference with [Shipping](../playbooks/shipping.md) and before topology changes in [Autopilot-stack](../playbooks/autopilot-stack.md). Keep the existing watcher responsible for CI and blocker classification. These operations add revision and destination checks; they do not grant merge authority.
|
|
4
|
+
|
|
5
|
+
## Read both pending mechanisms
|
|
6
|
+
|
|
7
|
+
Use `ship-pr` under the installed plugin's `skills/poteto-mode/scripts/watch-pr/` directory. It owns GitHub transport, parsing, cancellation order, and readback. The watcher and this command share one `LandingRevision` containing the repository, PR number, head OID, base branch, and base OID.
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
ship-pr inspect --repo "$owner/$repo" --pr "$pr" > "$record_file"
|
|
11
|
+
ship-pr cancel-pending --record "$record_file"
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
Run the installed command by its full path when it is not on PATH. Inspect emits `kind: inspected` with a parsed landing record, including both pending mechanisms and the merge commit when present. Save that record with the verification evidence. Cancellation accepts the saved record, rereads current state, disables auto-merge when present, rereads queue membership, dequeues when needed, and verifies both mechanisms are absent on the same open landing revision. It does not merge, push, retarget, or grant landing authority.
|
|
15
|
+
|
|
16
|
+
Only exit 0 with `kind: cancelled` permits the planned topology operation. `changed`, `not-open`, and `still-pending` return exit 1 with the observed record. `unavailable` returns exit 1 with the read or mutation failure. Missing fields and unsupported APIs never mean an absent request. Reconcile those outcomes before rewriting; do not replace the saved record merely to bypass a mismatch.
|
|
17
|
+
|
|
18
|
+
Establish the affected dependency chain and coordinate with the owner of each branch the operation rewrites first. Inspect and cancel each affected PR, including descendants whose context will change; leave unrelated PRs alone. Cancellation is an observed condition, not a lock against another actor rearming afterward. If state changes, stop and reconcile. Origin must supply an equivalent validated operation through its installed service; this command is GitHub-specific and must not be presented as Origin support.
|
|
19
|
+
|
|
20
|
+
## Preserve concurrent writes and child changes
|
|
21
|
+
|
|
22
|
+
Capture the remote branch SHA before rewriting with `git ls-remote --exit-code origin "refs/heads/$branch"`, and validate that exactly the intended ref was returned. Keep that SHA in the operation record. An implicit lease or a prior read alone is insufficient; a background fetch can move a tracking ref.
|
|
23
|
+
|
|
24
|
+
After confirming the parent squash landed in the intended destination, fetch trunk and identify the recorded old parent tip on which this child was built. Verify it is an ancestor of the child and inspect `old-parent..child` to confirm the range contains only child work. If it does not, reconstruct the boundary before proceeding. Never infer it from the parent's new squash commit.
|
|
25
|
+
|
|
26
|
+
```sh
|
|
27
|
+
git merge-base --is-ancestor "$old_parent_tip" "$child"
|
|
28
|
+
git rebase --onto "$trunk_tip" "$old_parent_tip" "$child"
|
|
29
|
+
git push --force-with-lease="refs/heads/$child:$captured_remote_head" \
|
|
30
|
+
origin "HEAD:refs/heads/$child"
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Run the rebase in the child's clean worktree, where `HEAD` is the prepared child. This excludes the parent's old commits. Inspect the resulting diff and content, reassess review applicability, and run checks at the new head. If the lease refuses the push, fetch and reconcile the concurrent work; do not refresh the lease and retry the overwrite blindly. Retarget only after cancellation has been verified. Keep the recorded boundary for each remaining child when preparing later levels.
|
|
34
|
+
|
|
35
|
+
## What the service guards
|
|
36
|
+
|
|
37
|
+
GitHub's immediate merge head condition is `--match-head-commit` in `gh`, `expectedHeadOid` in GraphQL `mergePullRequest`, or `sha` in the REST merge endpoint. Use one, carrying the exact verified SHA. None of these supplies an expected base-branch condition. Observe the base immediately before and after and coordinate retargeting; do not call those observations atomic.
|
|
38
|
+
|
|
39
|
+
A queue or automatic request may outlive its admission revision. Use it only when existing repository rules enforce the required verification for the eventual revision and merge context. A prose verdict or a green check on an older head is not such a gate. If those guarantees cannot be established, keep watching for an immediate guarded merge. If the repository requires a queue, stop at that unmet gate rather than bypassing protection.
|
|
40
|
+
|
|
41
|
+
After a merge, confirm state `MERGED`, the approved final head, the intended base, and a non-null merge commit. Fetch the destination and run `git merge-base --is-ancestor "$merge_commit" "$destination_tip"`; then check resulting content before advancing. If the service cannot report the relevant facts, the outcome remains unconfirmed.
|
|
42
|
+
|
|
43
|
+
Service references: [GitHub CLI merge flags](https://cli.github.com/manual/gh_pr_merge), [GraphQL pull requests and queue mutations](https://docs.github.com/en/graphql/reference/pulls), and [REST merge endpoint](https://docs.github.com/en/rest/pulls/pulls#merge-a-pull-request). Recheck installed service capabilities when these differ. Test service behavior in a disposable repository, never with production PRs.
|