Skip to content

Latest commit

 

History

History
167 lines (129 loc) · 20.7 KB

CHANGELOG.md

File metadata and controls

167 lines (129 loc) · 20.7 KB

Changelog

Changes to the Pi adaptation are recorded here. Upstream pstack remains pinned to the revision documented in sources.

0.4.0

  • Sync the unified upstream snapshot (516 archived files), source lists, and LF-normalized sha256 manifest (925 items) from 0.15.36 (c742dd61) to 0.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.44 upstream updates: single-file how and why, concise architect, reflect, poteto-mode, babysit, multi-phase-plan, opening-a-pr, technical-writing, unslop, and principle skills; add poteto-mode/worker.md; remove retired orchestrate, check-plan, and dropped reference prompts.
  • Add /skill:reframe (skills/reframe/SKILL.md, body inherited verbatim via inherit-body from upstream 0.15.48 with generated license: MIT frontmatter) and link it from poteto-help's skill table (U48-2).
  • Align the Pi statechart adapter and test plan with 0.15.42 (sany-errors, parent-state drawnEdges) and 0.15.46 (janitor.ts, kill.ts, \r\n output parsing, messages.test.ts), and unify POSIX/Windows execution guidance on entry.mjs (U48-3).
  • Document in integration-decisions.md that setup-pstack (0.15.42–0.15.48), poteto-mode, and arena Cursor model/budget changes do not apply to Pi's /setup-pstack extension and pstack.json role contract; fix skills/how/SKILL.md single-file fidelity above 70% and record the open 0.15.48 overall-threshold denominator issue (U48-4).
  • Preserve POSIX executable bits (100755) from upstream sources in scripts/generate-pi-resources.mjs for skills/statechart/scripts/statechart and skills/statechart/scripts/test/java.ts (U48-5).
  • Add --record-overall to scripts/check-upstream-fidelity.mjs and enable it in release and CI gates while keeping the 70% per-file threshold and default npm run check:fidelity failure behavior intact (U48-6).

0.3.16

  • 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 empty base...HEAD range, so git log -1 shows the latest commit and git diff --stat shows 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.

0.3.15

  • 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.mjs into worker processes to fail-closed against unauthorized mise installation 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-help and create-formal-verification-skill with upstream 519d36aa, linking /statechart for invariant bug-path visualization and documenting the Pi verification_exec distinction.
  • Add /skill:ketchup-video adaptation for Pi with local MP4 path delivery and explicit failure fallback; protect reflect skill editing against cache overwrite.
  • Align upstream fidelity report with the updated statechart test corpus and resources (94.32% overall, 0 errors).

0.3.14

  • Sync only statechart to cursor/plugins@076f4b2f for #40, retaining upstream scripts and tests byte-for-byte. --cover is explicit and reports omitted states/transitions; remove the retired OutputFolder example.
  • Add a Pi execution adapter that never installs TLC/Java/mise and preserves .mmd output 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.

0.3.13

  • 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.

0.3.12

  • Fix #35: activate the formal verification completion gate only from explicit parameters, leading /skill:create-formal-verification-skill or /skill:maintain-formal-verification-skill commands, 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|status for persistent mode; /poteto without arguments shows status. Keep /skill:poteto-mode unchanged 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.

0.3.11

  • 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.

0.3.10

  • 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.

0.3.9

  • 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_exec TLC requests through the existing restricted TLC backend.
  • Share Run it parsing between execution and completion checks: accept sh/bash blocks 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.

0.3.8

  • Fix formal verification gate lifecycle in -p mode when event.entries is empty (extensions/pstack/formal-verification-gate.mjs):
    • Merge historical session entries from branch with pending turn entries, ensuring trigger detection and completion evaluation inspect session history.
    • Safe handling of empty or missing entries in auto-continue.mjs runCheck.
  • Fix untracked skill file discovery in workspace git status (extensions/pstack/formal-verification-gate.mjs):
    • Pass -uall (--untracked-files=all) to git status --porcelain to prevent untracked directories like .pi/ from being collapsed into ?? .pi/.
  • Fix skill kind misclassification between create and maintain (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-skill from being misclassified as maintain.
  • 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 like Let me know.
    • Tighten Next step: regex to prevent completed handovers like Done... Next step: you can review the PR at ... from falsely triggering continuation.
  • Update THIRD_PARTY_NOTICES.md to current pinned upstream baseline eb4db2b5 (v0.15.30) with 55 adapted skills.

0.3.7

  • 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 it from the target directory and parses actual execution metrics (exit code rc, distinct states, depth, total states, steps, members, and scenarios).
    • 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 registerFormalVerificationGate into host agent_before_settle lifecycle.
  • Narrow auto-continue activation 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.json via autoContinue.
    • 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 proceed from waiting continuation signals.
    • Appends mandatory caution to renderAutoContinuePrompt: "不要越过任何待用户确认的授权门;如果上一条是在等用户,就原样停下。".
    • Ignores checklist items marked with (optional) or [optional] from triggering incomplete task continuation.
  • 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.

0.3.6

  • Add pre-completion self-check protocol to formal verification skill templates (/create-formal-verification-skill and /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 under autoContinue configuration with strict max turn limits.
  • Wire auto-continue lifecycle into extensions/pstack/index.ts and add full unit test suite scripts/auto-continue.test.mjs to run-checks.mjs.
  • Document verified TLC2 version recommendations and note upstream statechart.test.mjs test #55 sensitivity to TLC2 standard module extraction path formatting in README.md and docs/validation-statechart-outputfolder.md.

0.3.5

  • 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/.cfg path restriction, output classification with invariant violation detection (exit 12), and explicit fallback reporting 未做形式化验证,原因是缺少 TLC with 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:sharpen behavior to deepen instead of widen tasks, returning strictly the rewritten prompt.

  • Update /skill:ketchup to itemize all pending user decisions with complete context while strictly preserving conversation boundary against past sessions.

  • Enforce strict type guard patterns over as type assertions in skills/typescript-best-practices.

  • Add docs-vs-tree verification in scripts/check-package.mjs ensuring 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.ts in pstack.verifier and pstack.comment-sicko agent definitions and templates so foreground child sessions (which never load ambient parent extensions) receive verification_exec and git_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.mjs covering both foreground and detached background execution under sandbox constraints.

  • Validate subagentOnlyExtensions in generation checks and reject read-only agents missing required extension paths.

0.3.3

  • 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.

0.3.2

Published by GitHub Actions on 2026-10-21. Local and CI validation passed; evidence is in docs/validation-032-release.md.

  • Fix /poteto-mode status after on before the first chat: report the durable mode-state file instead of requiring a transcript. Persisted off also reports persistent: true.
  • Track package-lock.json so clean clones can use npm ci; explicitly install dev dependencies in CI, including the existing jiti dependency.
  • 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.

0.3.1

  • 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.

0.3.0

  • 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.