PRISM roadmap (directive §13–§16)
13. Roadmap
Ordered so that a working app exists as early as possible and each milestone adds one link to the golden journey. Every milestone ends with compilable code, passing tests, an updated STATUS.md, and the session report from §3. A milestone may take several sessions.
| # | Milestone | Exit criteria |
|---|---|---|
| M0 | Reconnaissance | Environment report; this document split per §0; ADRs 0001–0003 drafted; threat model v0; scripts/verify.sh runs |
| M1 | Native shell | App builds and launches; welcome composer, sidebar, settings shell, shortcuts, theme tokens, accessibility baseline. Submitting a prompt creates a persisted project and shows an honest "builder not available yet" state |
| M2 | Walking skeleton | A hand-written blueprint JSON is validated and rendered as a live preview with about 8 components and a SQLite-backed table; data survives relaunch |
| M3 | Golden app by hand | Full V1 catalog slice with registry and search; the expense tracker (CSV import, category filter, record edit, monthly chart, persistence) works from a hand-written blueprint and is covered by an automated test |
| M4 | Project store hardening | Sessions, snapshots, undo/redo, crash recovery, export/import |
| M5 | Claude adapter | Keychain setup, model discovery, streaming, tool use, cancellation, token/cost accounting, fixture-based tests, invalid-key and offline handling |
| M6 | Builder agent | Prompt → blueprint through the tool contract; live progress from real events; bounded repair loop; budgets; evaluation set. Golden journey steps 3–4 pass |
| M7 | Evolve | Conversational patches with diff, approval, snapshot, migration, rollback; deterministic edits without model calls. Steps 6, 7, 10 pass |
| M8 | Satellite host and publisher | ADRs 0005–0007 settled; separate host app; publish, launch verification, update, rollback, uninstall. Steps 8–9 pass |
| M9 | Visual design studio | Canvas, tree, inspector, drag-and-drop, live property edits, undo/redo on the real preview |
| M10 | V1 release candidate | Full golden journey automated; accessibility audit; measured performance baseline; failure-mode tests from §14; user guide, component SDK docs, known limitations |
After V1, in this order unless the user reprioritizes: catalog expansion toward 100+ with recipes; isolated Python workers and scientific components; cross-app connections; Tier C export; demo apps (§15); voice dictation.
14. Acceptance
Golden journey (must be automated by M10; Claude calls mockable in CI):
- Fresh install; launch PRISM.
- Enter an Anthropic API key and verify the connection.
- Prompt: "Build a local expense tracker with CSV import, category filters, monthly chart and persistent storage."
- The agent selects catalog components and produces a real working preview.
- Import a sample CSV, filter transactions, edit a record, relaunch, verify persistence.
- Ask: "Add a budget alert and a new chart."
- Inspect the proposed changes, run tests, approve, verify both features work.
- Publish a desktop satellite; verify its own icon, window, and Dock entry, launched independently of PRISM's main window.
- Restart the session (or simulate recovery); verify app data and project state.
- Roll back an update; verify no data loss.
Failure modes that must be handled and tested: offline use of catalog apps; Claude unavailable; invalid API key; tool cancellation; malformed component manifest; malicious imported content (including prompt injection in a CSV); rejected permission; build failure; disk full; version migration; missing runtime; satellite uninstall.
Definition of done for any feature: implemented, covered by automated tests, smoke-tested by hand where automation cannot reach, documented, and marked working in STATUS.md.
15. Demo apps (post-V1)
All of them use the shared catalog and runtime; none is a custom one-off.
- Finance Studio: CSV imports, transactions, budgets, charts, forecast, PDF report.
- Project HQ: tasks, Kanban, calendar, notes, notifications.
- Research Lab: data import, Python worker, statistics, reproducible plots, notebook-like interface.
- Market Monitor: user-authorized data provider, watchlists, charts, alerts. Never fabricate live data.
- Media Annotator: video/audio import, timeline annotations, export.
16. First session: start here
- Inspect the repository,
git status, OS, Xcode and Swift versions, entitlements, existing assets, licenses, and CI. Report what you found in a few lines. - Complete M0: split this document per §0, draft ADRs 0001–0003, write the threat model v0, create
docs/STATUS.mdandscripts/verify.sh. - Continue straight into M1, then begin M2 if the session allows. Stop when a milestone's exit criteria are met and verified, or when you hit something on the ask-first list.
- End with the session report from §3.