feat(pi): add persistent Mosaic /goal controller #1152

Merged
mos-dt-0 merged 2 commits from feat/1150-pi-goal-extension into main 2026-08-10 22:54:44 +00:00
Collaborator

Summary

  • ship a framework-owned Pi /goal controller under runtime/pi/ with branch-persisted state, per-turn/compaction checks, safe continuation, two-pass evidence verification, and bounded stop states
  • load Mosaic Pi extensions deterministically from ~/.config/mosaic/runtime/pi/ without installing extension assets under ~/.pi
  • add credential-pattern defense-in-depth, framework installer/adapter/launcher coverage, operator/developer docs, and a deterministic tmux fixture readiness barrier discovered during baseline testing

Verification

  • focused controller/launcher/adapter: 67 passed; extension coverage 99.17% statements/lines, 93.78% branches, 100% functions
  • Mosaic Vitest: 1,539 passed; full framework shell harness passed
  • installer migration: 24 passed
  • gateway safe baseline excluding the prohibited PostgreSQL-only fixture: 600 passed
  • preflight, typecheck (45/45), lint (25/25), format, build, and standalone Pi 0.84.1 type check passed
  • live RPC smoke loaded the exact Mosaic path and reached achieved with 2/2 verification passes and zero extension errors

Review

  • independent code review approved
  • OWASP/security re-review: risk none, zero findings
  • focused remediation and tmux-race re-reviews approved

Local database constraint

Root pnpm test cannot safely run the unchanged PostgreSQL-only cross-user fixture in this checkout; local PostgreSQL access/startup is explicitly prohibited. All changed-package tests and the gateway suite excluding that fixture passed; terminal-green PR CI remains the merge gate.

Closes #1150

Fixes #1150

## Summary - ship a framework-owned Pi `/goal` controller under `runtime/pi/` with branch-persisted state, per-turn/compaction checks, safe continuation, two-pass evidence verification, and bounded stop states - load Mosaic Pi extensions deterministically from `~/.config/mosaic/runtime/pi/` without installing extension assets under `~/.pi` - add credential-pattern defense-in-depth, framework installer/adapter/launcher coverage, operator/developer docs, and a deterministic tmux fixture readiness barrier discovered during baseline testing ## Verification - focused controller/launcher/adapter: 67 passed; extension coverage 99.17% statements/lines, 93.78% branches, 100% functions - Mosaic Vitest: 1,539 passed; full framework shell harness passed - installer migration: 24 passed - gateway safe baseline excluding the prohibited PostgreSQL-only fixture: 600 passed - preflight, typecheck (45/45), lint (25/25), format, build, and standalone Pi 0.84.1 type check passed - live RPC smoke loaded the exact Mosaic path and reached `achieved` with 2/2 verification passes and zero extension errors ## Review - independent code review approved - OWASP/security re-review: risk none, zero findings - focused remediation and tmux-race re-reviews approved ## Local database constraint Root `pnpm test` cannot safely run the unchanged PostgreSQL-only cross-user fixture in this checkout; local PostgreSQL access/startup is explicitly prohibited. All changed-package tests and the gateway suite excluding that fixture passed; terminal-green PR CI remains the merge gate. Closes #1150 Fixes #1150
mos-dt-0 added 1 commit 2026-08-10 22:34:56 +00:00
mos-dt-0 added 1 commit 2026-08-10 22:40:51 +00:00
fix(docs): fit Pi runtime resident budget
ci/woodpecker/pr/ci Pipeline was successful
cd373b4b10
mos-dt-0 merged commit 722163671f into main 2026-08-10 22:54:44 +00:00
Sign in to join this conversation.