pi: add persistent /goal controller extension to Mosaic framework #1150

Closed
opened 2026-08-10 21:13:34 +00:00 by mos-dt-0 · 2 comments
Collaborator

Implement and locally validate a Mosaic-owned Pi extension under runtime/pi that provides a stateful /goal command and persistent goal loop.

Acceptance criteria:

  • Extension source ships in packages/mosaic/framework/runtime/pi and deploys under ~/.config/mosaic/runtime/pi, never ~/.pi.
  • Mosaic Pi launcher loads the deployed extension alongside mosaic-extension.ts.
  • /goal can start, inspect, pause, resume, and cancel a branch-aware goal.
  • Active goal context is injected for every model turn and remains effective after compaction.
  • Progress is checked after each turn and successful compaction; unmet goals continue only at safe lifecycle boundaries.
  • State survives session reload/resume and tree navigation.
  • Loop has cancellation, bounded retries/no-progress protection, and does not claim arbitrary semantic completion without evidence.
  • Unit/acceptance tests and user/developer documentation cover deployment and lifecycle behavior.
Implement and locally validate a Mosaic-owned Pi extension under runtime/pi that provides a stateful /goal command and persistent goal loop. Acceptance criteria: - Extension source ships in packages/mosaic/framework/runtime/pi and deploys under ~/.config/mosaic/runtime/pi, never ~/.pi. - Mosaic Pi launcher loads the deployed extension alongside mosaic-extension.ts. - /goal can start, inspect, pause, resume, and cancel a branch-aware goal. - Active goal context is injected for every model turn and remains effective after compaction. - Progress is checked after each turn and successful compaction; unmet goals continue only at safe lifecycle boundaries. - State survives session reload/resume and tree navigation. - Loop has cancellation, bounded retries/no-progress protection, and does not claim arbitrary semantic completion without evidence. - Unit/acceptance tests and user/developer documentation cover deployment and lifecycle behavior.
Author
Collaborator

Implementation is available in PR #1152 at head 873e7a95f8fb79b69de983a2e20d2e6bd38cbcbc (short 873e7a9).

Review status: independent code review approved; security re-review reports risk none / zero findings; focused remediation and tmux-fixture reviews approved.

Local evidence: 67 focused tests; 99.17% statement/line and 93.78% branch coverage for the extension; 1,539 Mosaic Vitest tests; full framework shell harness; 24 installer migration checks; standalone Pi 0.84.1 type check; live exact-path RPC goal reached achieved with 2/2 passes and zero extension errors. Source/deployed SHA-256: 1f0a3806e0948ad5f49684273a7e535e9880c148f7fd16d13ee487fcd601f637.

Awaiting terminal-green PR CI and required squash merge.

Implementation is available in PR #1152 at head `873e7a95f8fb79b69de983a2e20d2e6bd38cbcbc` (short `873e7a9`). Review status: independent code review approved; security re-review reports risk none / zero findings; focused remediation and tmux-fixture reviews approved. Local evidence: 67 focused tests; 99.17% statement/line and 93.78% branch coverage for the extension; 1,539 Mosaic Vitest tests; full framework shell harness; 24 installer migration checks; standalone Pi 0.84.1 type check; live exact-path RPC goal reached achieved with 2/2 passes and zero extension errors. Source/deployed SHA-256: `1f0a3806e0948ad5f49684273a7e535e9880c148f7fd16d13ee487fcd601f637`. Awaiting terminal-green PR CI and required squash merge.
Author
Collaborator

Delivered via squash merge PR #1152.

  • Main commit: 722163671f32bc52a9ab77a7a3ca2685062bbf61
  • Exact-head PR pipeline #2314: terminal green (9/9 steps)
  • Post-merge main pipeline #2315: terminal green (13/13 steps)
  • Squash tree matches the approved PR head exactly; issue auto-closed on merge.
  • The locally deployed Mosaic /goal extension remains byte-identical to the shipped source (SHA-256 1f0a3806e0948ad5f49684273a7e535e9880c148f7fd16d13ee487fcd601f637).
Delivered via squash merge PR #1152. - Main commit: `722163671f32bc52a9ab77a7a3ca2685062bbf61` - Exact-head PR pipeline #2314: terminal green (9/9 steps) - Post-merge main pipeline #2315: terminal green (13/13 steps) - Squash tree matches the approved PR head exactly; issue auto-closed on merge. - The locally deployed Mosaic `/goal` extension remains byte-identical to the shipped source (SHA-256 `1f0a3806e0948ad5f49684273a7e535e9880c148f7fd16d13ee487fcd601f637`).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mosaicstack/stack#1150