Changes to the Pi adaptation are recorded here. Upstream pstack remains pinned to the revision documented in sources.
- Sync the unified upstream snapshot (
516archived files), source lists, and LF-normalized sha256 manifest (925items) from0.15.36(c742dd61) to0.15.48(9e278fe4). Record per-file deltas in the 0.15.48 plan and the 0.15.48 validation record. - Adopt
0.15.42–0.15.44upstream updates: single-filehowandwhy, concisearchitect,reflect,poteto-mode,babysit,multi-phase-plan,opening-a-pr,technical-writing,unslop, and principle skills; addpoteto-mode/worker.md; remove retiredorchestrate,check-plan, and dropped reference prompts. - Add
/skill:reframe(skills/reframe/SKILL.md, body inherited verbatim viainherit-bodyfrom upstream0.15.48with generatedlicense: MITfrontmatter) and link it frompoteto-help's skill table (U48-2). - Align the Pi
statechartadapter and test plan with0.15.42(sany-errors, parent-statedrawnEdges) and0.15.46(janitor.ts,kill.ts,\r\noutput parsing,messages.test.ts), and unify POSIX/Windows execution guidance onentry.mjs(U48-3). - Document in integration-decisions.md that
setup-pstack(0.15.42–0.15.48),poteto-mode, andarenaCursor model/budget changes do not apply to Pi's/setup-pstackextension andpstack.jsonrole contract; fixskills/how/SKILL.mdsingle-file fidelity above 70% and record the open0.15.48overall-threshold denominator issue (U48-4). - Preserve POSIX executable bits (
100755) from upstream sources inscripts/generate-pi-resources.mjsforskills/statechart/scripts/statechartandskills/statechart/scripts/test/java.ts(U48-5). - Add
--record-overalltoscripts/check-upstream-fidelity.mjsand enable it in release and CI gates while keeping the 70% per-file threshold and defaultnpm run check:fidelityfailure behavior intact (U48-6).
- Sync the unified upstream snapshot to cursor/plugins@c742dd61 (pstack 0.15.36, #986 and #1043), clear partial source pins, and add an LF-normalized sha256 manifest covering 941 verbatim files.
- Replace the Orchestrate CLI with agentic coordination; move interrogate to arena adversaries in isolated writable worktrees; align cross-family judges, Autopilot-stack delivery without merging, and decision-before-measurement guidance. Keep Pi model, writer, and publication authorization gates.
- Sync ketchup-video subtitled slides, burned-in captions, hold timing, font checks, and explicit rendering fallback.
- Remove 17 retired files: two local orchestration scripts, four interrogate reference documents and their four source templates, and seven upstream snapshot files. The complete deletion list preserves every path.
- Fix git_read log counts (
-n N,-nN,-N) and resolve default ranges through origin/HEAD, main, then master; require an explicit range when none exists. On the default branch, or when HEAD is an ancestor of it, git_read no longer injects an emptybase...HEADrange, sogit log -1shows the latest commit andgit diff --statshows working-tree changes. - Lock development Pi packages to 1.5.0 and test the registered tool schemas with pi-schema, including missing commands, array coercion, and TLC option rejection. Keep the package version and declared compatibility ranges unchanged.
- Sync statechart to cursor/plugins@519d36aa (v0.15.34) TypeScript compiler, with its package, tests, and corpus packaged verbatim.
- Enforce the Pi execution boundary for statechart: adapt the CLI entry with Node 22 native TS execution, inject
--import hook.mjsinto worker processes to fail-closed against unauthorizedmiseinstallation of TLC and Java, and route Mermaid output to Pele 1.9.0 themeable SVG. - Reject removed statechart commands (
from-spec,from-chart,render,--cover,--fixed,--against,--png) with actionable migration guidance. - Align
poteto-helpandcreate-formal-verification-skillwith upstream 519d36aa, linking/statechartfor invariant bug-path visualization and documenting the Piverification_execdistinction. - Add
/skill:ketchup-videoadaptation for Pi with local MP4 path delivery and explicit failure fallback; protectreflectskill editing against cache overwrite. - Align upstream fidelity report with the updated statechart test corpus and resources (94.32% overall, 0 errors).
- Sync only statechart to cursor/plugins@076f4b2f for #40, retaining upstream scripts and tests byte-for-byte.
--coveris explicit and reports omitted states/transitions; remove the retired OutputFolder example. - Add a Pi execution adapter that never installs TLC/Java/mise and preserves
.mmdoutput when PNG rendering is unavailable. Pele/resvg remain optional downloads in the upstream user cache, outside the npm package. - Route generated statechart help and command examples through the Pi entry, replace the upstream automatic installation instructions, and clarify how to interpret upstream help.
- Verify real PNG rendering on Node 22/24 across Linux and macOS in CI.
- Fix #35 (part 2): formal verification gate triggers on read tool calls only when upgraded in the same turn by write/edit to workspace skill directories (
.pi/skills/**or.agents/skills/**); read alone no longer triggers the gate (read 单独不再触发). - Remove standalone workspace dirty skill fallback trigger: uncommitted skills in workspace cannot trigger the gate on their own or upgrade read calls without current-round skill writes (单独脏技能、read 加脏技能但本轮未写入均不触发). The workspace state is only used to identify the target skill and kind once triggered by current-round evidence.
- Prevent out-of-workspace wandering: when triggered without a formal verification target skill in the current workspace, inject a single reminder restricting inspection to the current workspace and stop continuation (没有目标时不再自动继续), avoiding multi-turn attempts across unrelated repositories. All injected reminders specify workspace scope and target skill relative path.
- Fix #35: activate the formal verification completion gate only from explicit parameters, leading
/skill:create-formal-verification-skillor/skill:maintain-formal-verification-skillcommands, actual Pi skill-loading wrappers, recorded read calls, or modified workspace verification skills containing## Run it. Help text, ordinary mentions, negations, recommendations and paths in tool output no longer trigger verification. Use the latest invocation evidence to select create/maintain and report its actual source. - Resolve #34: use
/poteto on|off|statusfor persistent mode;/potetowithout arguments shows status. Keep/skill:poteto-modeunchanged and preserve stored state, branch restoration and on/off behavior without migration. Update current docs and regenerate the affected skills from their Pi adaptation sources. - Deprecate
/poteto-mode: retain the alias throughout 0.3.x and 0.4.x, warn before every invocation, and remove it in 0.5.0. Its description begins with[已弃用]. Pi 1.4.0 has no public API to hide one command from completion, so the old alias remains visible during this period. Invalid-argument usage points to/poteto. - Add trigger, lifecycle, command, alias and state compatibility regressions; validate the help/explicit-formal trigger behavior and new completion entries in real Pi TUI sessions with isolated configuration. Compare discovered skill commands against the generation manifest instead of a stale fixed count.
- Accept Chinese coverage and unverified-scope labels in formal completion reports, plus Chinese tool-version, sync-commit, bounds/assumption, and exclusion fields in Record. Exclusion-only text cannot establish positive coverage. Add Chinese-report unit and production registration regressions.
- Recognize
Break cycle N,cycle N, and Chinese numbered round labels in formal breakage evidence; count distinct cycle numbers and accept common nonzero exit-code notation. - Fall back to breakage evidence in the generated skill's Record section, including nested headings, when the final report omits the cycle details. Keep deliberate mutation failures separate from the restored Run it commands' expected successful exit. Add unit and production registration regressions.
- Connect the production formal gate to real shell execution from the generated skill's repository root, with a 30-second command timeout; route explicit
verification_execTLC requests through the existing restricted TLC backend. - Share Run it parsing between execution and completion checks: accept
sh/bashblocks and explicit tool invocations, exclude output examples, and match execution receipts by the complete command. - Bound formal retries with
autoContinue.maxTurns(default 3); stop on two identical missing-item lists, request one final report listing unverified items, and suppress further automatic continuation until a new user message. - Accept and preserve autoContinue settings in user/project configuration. Add production registration and real Pi host tests for successful execution, failed checks, budget exhaustion, and reset.
- Fix formal verification gate lifecycle in
-pmode whenevent.entriesis empty (extensions/pstack/formal-verification-gate.mjs):- Merge historical session entries from
branchwith pending turn entries, ensuring trigger detection and completion evaluation inspect session history. - Safe handling of empty or missing entries in
auto-continue.mjsrunCheck.
- Merge historical session entries from
- Fix untracked skill file discovery in workspace git status (
extensions/pstack/formal-verification-gate.mjs):- Pass
-uall(--untracked-files=all) togit status --porcelainto prevent untracked directories like.pi/from being collapsed into?? .pi/.
- Pass
- Fix skill kind misclassification between
createandmaintain(extensions/pstack/formal-verification-gate.mjs):- Distinguish loaded skill declarations and user prompt requests from cross-reference links in skill body text, preventing
create-formal-verification-skillfrom being misclassified asmaintain.
- Distinguish loaded skill declarations and user prompt requests from cross-reference links in skill body text, preventing
- Broaden continuation intent detection and prevent false positive delivery stops (
extensions/pstack/auto-continue.mjs):- Generalize sentence-initial
Let me <verb>intent detection while strictly excluding non-continuation pleasantries likeLet me know. - Tighten
Next step:regex to prevent completed handovers likeDone... Next step: you can review the PR at ...from falsely triggering continuation.
- Generalize sentence-initial
- Update
THIRD_PARTY_NOTICES.mdto current pinned upstream baselineeb4db2b5(v0.15.30) with 55 adapted skills.
- Formal verification completion judgment transitions from regex patterns to artifact self-check and command re-run verification (
extensions/pstack/formal-verification-gate.mjs, #32):- Detects activation via create/maintain-formal-verification-skill invocation in session or modified
.pi/skills/*/SKILL.md(and.agents/skills/*/SKILL.md) containing## Run it. - Re-runs every command in
## Run itfrom the target directory and parses actual execution metrics (exit coderc,distinctstates,depth, totalstates,steps,members, andscenarios). - Itemizes exact differences when output metrics mismatch descriptions in
SKILL.md, and includes discrepancies in continuation prompts. - Requires satisfied command metrics, complete Record section, and final delivery report with deliberate breakage evidence (2 break/restore cycles for create, 1 for maintain) before marking completion.
- Registers
registerFormalVerificationGateinto hostagent_before_settlelifecycle.
- Detects activation via create/maintain-formal-verification-skill invocation in session or modified
- Narrow
auto-continueactivation scope and user-facing turn bounds (extensions/pstack/auto-continue.mjs, #33):- Default activation scoped to sessions where poteto-mode is active, remaining inactive by default in plain sessions unless explicitly enabled in
pstack.jsonviaautoContinue. - Halts auto-continuation whenever assistant text contains questions (
?,?), approval requests (approve,approval), multi-choice queries (which), user decisions (你决定,是否), or authorization gate keywords. - Removes
waiting for approval to proceedfrom waiting continuation signals. - Appends mandatory caution to
renderAutoContinuePrompt: "不要越过任何待用户确认的授权门;如果上一条是在等用户,就原样停下。". - Ignores checklist items marked with
(optional)or[optional]from triggering incomplete task continuation.
- Default activation scoped to sessions where poteto-mode is active, remaining inactive by default in plain sessions unless explicitly enabled in
- Session state reset on new user messages and continuation intent fixes (
extensions/pstack/auto-continue.mjs, #33):- Resets continuation state and turn budget upon receiving subsequent user messages, preventing previous terminal states (
completed,stopped) from blocking later turns in the session. - Extends continuation intent detection to recognize action-verb leads such as
"Let me fix those and add the missing timer updates.". - Adds unit test suite with 6 regression cases (5 false-positive user gate cases + 1 true-positive continuation case) and comprehensive lifecycle tests.
- Resets continuation state and turn budget upon receiving subsequent user messages, preventing previous terminal states (
- Add pre-completion self-check protocol to formal verification skill templates (
/create-formal-verification-skilland/maintain-formal-verification-skill): requires all "Run it" commands in generated SKILL.md to be re-executed, output counts and conclusions to match skill description, complete Record section, and final report delivery. - Implement unified auto-continue and unfinished expression detection mechanism (
extensions/pstack/auto-continue.mjs): inspects assistant messages for forward-looking unfinished intent (e.g. "Now let me...", "接下来要做...", uncompleted task lists) and automatically triggers continuation underautoContinueconfiguration with strict max turn limits. - Wire auto-continue lifecycle into
extensions/pstack/index.tsand add full unit test suitescripts/auto-continue.test.mjstorun-checks.mjs. - Document verified TLC2 version recommendations and note upstream
statechart.test.mjstest #55 sensitivity to TLC2 standard module extraction path formatting inREADME.mdanddocs/validation-statechart-outputfolder.md.
-
Pinned upstream pstack baseline to
eb4db2b55b2b7dec3d9282754cddf0a56bf4ff10(pstack 0.15.30). -
Support restricted TLA+/TLC model checking in
verification_exec: sandboxed OS execution, strict jar binding, whitelisted flags,.tla/.cfgpath restriction, output classification with invariant violation detection (exit 12), and explicit fallback reporting未做形式化验证,原因是缺少 TLCwith generated-input real code tests (never claimed as a formal pass). -
Port formal verification skills:
/create-formal-verification-skill(formal invariant verification with real code checks),/maintain-formal-verification-skill(specification maintenance and drift triage), and/statechart(Mermaid statecharts from specs/code, TLC model generation, and diagram rendering via OutputFolder). -
Add step 8 to
/setup-pstack: prompt once per project for formal verification skill setup, adaptively guided by host TLC capability probe, with persistent decision recording in project-local state. -
Reverse
/skill:sharpenbehavior to deepen instead of widen tasks, returning strictly the rewritten prompt. -
Update
/skill:ketchupto itemize all pending user decisions with complete context while strictly preserving conversation boundary against past sessions. -
Enforce strict type guard patterns over
astype assertions inskills/typescript-best-practices. -
Add
docs-vs-treeverification inscripts/check-package.mjsensuring all skills and slash commands mentioned in documentation exist. -
Standardize all skill frontmatter names to kebab-case matching folder names.
-
Declare
subagentOnlyExtensions: ../extensions/pstack/index.tsinpstack.verifierandpstack.comment-sickoagent definitions and templates so foreground child sessions (which never load ambient parent extensions) receiveverification_execandgit_read. -
Preserve ambient extension loading in background child sessions without disabling ambient provider extensions, keeping third-party provider models resolvable.
-
Add foreground child verification in
scripts/verifier-child.test.mjscovering both foreground and detached background execution under sandbox constraints. -
Validate
subagentOnlyExtensionsin generation checks and reject read-only agents missing required extension paths.
- Include this changelog in the npm package and require a release heading for the current package version in the package check.
- Require exact upstream fidelity of at least 94%, with a regression for the former score that rounded to 94% but did not meet that threshold. Restore two applicable upstream sentences while keeping the existing authorization boundaries.
- Add a real Pi CLI check of immediate poteto-mode persistence status, without a model request.
- Bound every npm check with a process-tree timeout; close SDK/SSE fixtures with a five-second cleanup budget, preserve failure exits, and stop detached checks on interruption.
- Preserve ambient provider extensions in child fixtures and prefer the locked repository-local pi-subagents dependency.
- Execute verification in a temporary Git workspace when no OS sandbox is usable; expose degraded execution, limitations, and responsibility in tool results and status commands. This fallback does not enforce network or filesystem isolation.
- Require verifier evidence or a named responsible verifier before PR publication. Add read-only Git/PR completion checks and preserve bounded-loop stop controls.
- Separate ketchup current-conversation recaps from recall history; preserve the original 46 routing cases and add two ketchup cases. A single branch-level live run passed 48/48; full external PR workflow acceptance remains pending.
Published by GitHub Actions on 2026-10-21. Local and CI validation passed; evidence is in docs/validation-032-release.md.
- Fix
/poteto-mode statusafteronbefore the first chat: report the durable mode-state file instead of requiring a transcript. Persistedoffalso reportspersistent: true. - Track
package-lock.jsonso clean clones can usenpm ci; explicitly install dev dependencies in CI, including the existingjitidependency. - Bound CI test execution to 180 seconds and update the clean-clone check to measure install plus test time, then check generated resources and upstream fidelity.
- Publish from GitHub Actions using the repository NPM_TOKEN secret configured from the operator’s existing npm authentication. OIDC support is available, but Trusted Publisher registration is not used for this release.
- Shut down the extension runtime before disposing reviewer fixture sessions, and assert that watcher intervals are cleared. Discover the locked local pi-subagents dependency in clean CI.
- Mechanically check Conventional commit/PR titles, required ordered PR headings and the latest recorded test counts; reject common shell wrapper, alias and API bypasses.
- Add verifier execution under an OS sandbox with real exit codes, write/network denial, timeouts and output bounds; validate the production detached verifier child and require sandbox checks before CI publishing.
- Restore recall/TDD/sharpen/correct routing and replace obsolete substitute routes. Add a reconstructed 46-case live routing suite, skill-reference checks and exact current-workspace session guidance.
- Require shipped worktree-audit and watch-pr invocations in their playbooks, with explicit package-root paths and read-only defaults.
- Restore show-me-your-work to 96.92% and why to 93.75% text fidelity; swarm improves to 84.38% and its remaining gap is recorded. Remove the three lost-sentence allowlist entries.
- Persist poteto-mode by session ID before the transcript is created.
- Preserve ambient model-provider extensions in background reviewer sessions and add restricted Git inspection for comment-sicko.
- Port recall, automate-me, eval and authoring-a-skill to Pi workspace sessions.
- Add Node implementations of PR watching, worktree auditing and local orchestration.
- Restore playbook text and add the supplied upstream-fidelity analyzer to check and publish workflows.
- Bundle the TypeScript patterns reference and declare pi-subagents as an optional peer dependency.
- Integrate playbook role selection and persistent mode state.
- Restore upstream wording in engineering playbooks and review skills, including feature and bug-fix delegation guidance.
- Align PR body guidance and generated templates and record upstream fidelity comparisons.
- Standardize the repository's GitHub Issues workflow for parallel development.