SPB Git

Repository Public License

STATUS.md 18.3 KB 203 lines markdown

1# PRISM status23Source of truth for what works. Updated 2026-11-22 (end of the second session), version 0.2.0.45**Status words** — **working**: implemented, automated tests pass, smoke-tested where automation cannot reach. **partial**: implemented, with a named gap. **planned**: not built. **blocked**: cannot proceed, with the reason.67> One gap applies to every UI row below. Every screen is rendered with real state by tests, and `scripts/ui-walk.sh` drives the real window through every screen, composer typing, a simulated build, all 40 component fixtures, 14 model-built apps, a sheet and window resizes. But mouse and keyboard interaction (clicking controls, drag and drop, Open/Save panels, menus) is **not automated and was not done by me**. Rows that depend on it are marked *partial*.8>9> **0.1.0 crashed in the owner's hands** about 84 seconds after launch (AppKit aborted on a split-view constraint loop caused by a generated layout). It passed every test that existed at the time, which is exactly why the real-window walk was added. Fixed in 0.1.1; see CHANGELOG.1011## Environment (measured)1213| | |14|---|---|15| OS / toolchain | macOS 27.0 (26A5425a), Xcode 27.2, Swift 6.4.2, Apple silicon |16| Deployment target | macOS 26 (never run on 26) |17| Signing | Developer ID Application present; notarytool profile `MacLustr-Notarize` works |18| Dependencies | none outside macOS frameworks |1920## Last verification2122`scripts/verify.sh` on 2026-11-22 (second session): build with warnings as errors **ok**, lint **ok**, tests **228 passed, 0 failed, 5 skipped** (the skipped ones are the opt-in live, evaluation and performance tests; a parameterised test counts once, so the 201 fixture renders are one line), real-window UI walk **passed** (98 steps, 16 model-built apps, all 201 component fixtures opened in Preview and Design). After that run two more model-built apps were added to the walk folder and the release build was walked again (see "0.2.0 session" below).2324## 0.2.0 session (2026-11-22, second session) — what changed2526Owner request: stronger icons designed by Claude for published apps, a more capable builder, apps with different themes, functionality not capped by the catalog, at least 200 components, and components on demand.2728| Area | Status | Evidence |29|---|---|---|30| App icons designed by the builder (`design.setIcon`: layered vector spec, SF Symbols, shapes, SVG paths, gradients, finish; the drawn icon is returned to the model as a picture so it can refine it) | **working** | `IconTests`, `DesignAndCustomTests.theDesignedIconComesBackAsAPicture`, `PublishTests.anAppWithCustomLogicAndADesignedIconPublishesWithItsOwnIcon`; two live builds each produced a designed icon |31| Automatic icon when none is designed (initials on a mesh gradient, glass finish) | **working** | `PublisherTests.iconIsDrawnForAnyName` |32| Themes: 14 presets + custom palette, fonts, heading weight, panel style, background gradient, chart palette; contrast check | **working** for everything PRISM draws; **partial**: native controls keep the system look | `DesignAndCustomTests.aThemeIsValidatedAndApplied`, render tests; two live builds chose different themes (candy-based, graphite-based) |33| On-demand components (`component.define` → `custom.<id>`; declared props/events; view tree with stacks, shapes, controls, canvas, drag and drop, keys, ticks) | **working** | `DesignAndCustomTests.anOnDemandComponentIsDefinedTestedPlacedAndWorks`, golden app `custom-arcade`, live build `memory-game` |34| Scripts (`logic.createScript`, `runScript` action, `js()` in expressions) | **working** | `DesignAndCustomTests.scriptsServeActionsAndExpressionsAndCannotEscape`, `ScriptEngineTests` |35| Script confinement: no ambient API, read-only rendering, 0.5 s limit, `logic.scripts` permission | **working** on this macOS (the time limit depends on an undeclared JavaScriptCore symbol, detected at run time) | `ScriptEngineTests.anEndlessLoopIsStoppedAndTheEngineKeepsWorking`, `theHostIsTheOnlyWayOut` |36| Builder sees its work (`ui.screenshot` returns a picture of the preview) | **working** | used successfully in both live builds |37| Catalog | **working: 201 · planned: 0** (was 40) | every manifest: strict decoding, fixture validation, off-screen render, real-window walk; per-family behaviour tests |38| `prism.timer` (tick events) | **working** | golden app `custom-arcade` |39| PRISM's own icon | **working** — a designed `IconSpec` (`assets/prism-icon.json`) | `scripts/build.sh` |4041**How the 160 new components were made:** three parallel agents each built one family in an isolated copy (A: layout, display, text, feedback — 54; B: inputs, forms, productivity, time — 53; C: data views, charts, commerce, social — 53), then the files were merged and the whole suite re-run here. Each reported looking at its render snapshots and fixing what was broken. What "working" means for them: manifest, fixture, example, validation, off-screen render in light/dark/Design, real-window walk, and unit tests of their logic. **None of the 160 has been clicked by a person**; drag gestures (kanban cards, range slider, dial, drawing pad) are implemented but only their logic is tested.4243**Live builds (measured, `claude-opus-5-5`, effort high, one sample each):**4445| Prompt | Result | Tool calls | Est. cost | Time | Notes |46|---|---|---|---|---|---|47| Memory card game for kids | succeeded | 50 | $0.46 | 104 s | on-demand component `custom.memoryBoard` + script, candy-based theme, designed icon (two cards); coverage 93 % |48| Team project board, dark | succeeded | 69 | $0.61 | 94 s | `prism.kanban`, `prism.calendar`, gauge — 100 % catalog; graphite-based theme; designed icon |4950The builder said of the memory game that it had not played a whole game through; nobody has. Builds cost more than in 0.1.1 (about $0.2 → $0.5) because the builder designs, looks at pictures and has more to read.5152**The 12-prompt evaluation set was not re-run** after these changes: the 12/12 figure below is from 0.1.1 and no longer describes this build (the system prompt, tools and catalog all changed).5354## Milestones5556| # | Milestone | Status | Notes |57|---|---|---|---|58| M0 | Reconnaissance | **working** | Directive split, ADRs 0001–0008, threat model v0, `verify.sh` |59| M1 | Native shell | **partial** | Builds and launches (window on screen verified); composer, sidebar, settings, shortcuts, theme tokens exist and render. Not operated by hand; no accessibility audit |60| M2 | Walking skeleton | **working** | Blueprint → validated → rendered; SQLite data survives relaunch (tested) |61| M3 | Golden app by hand | **working** | 40-component catalog with registry and search; expense tracker template covered by automated tests (import, filter, edit, chart, persistence) |62| M4 | Project store hardening | **working** | Sessions, snapshots, undo/redo, recovery from damaged files, export/import. Interrupted builds are marked, not resumed |63| M5 | Claude adapter | **working** | Keychain, model discovery, streaming, tool use, cancellation, usage and cost estimate, fixture tests, invalid key and offline handling. Verified live |64| M6 | Builder agent | **working** | Prompt → blueprint through 30 typed tools, real-event progress, bounded repair, budgets, evaluation set. Golden steps 3–4 pass scripted and live |65| M7 | Evolve | **working** (model layer), **partial** (UI by hand) | Proposal diff, checks, approve, snapshot, additive migration, rollback; deterministic edits with no model call. Steps 6, 7, 10 pass scripted; 6–7 live |66| M8 | Satellite host and publisher | **working** | Separate host app; publish, real LaunchServices launch verification, update, rollback, uninstall. Steps 8–9 pass |67| M9 | Visual design studio | **partial** | Canvas on the real preview, hierarchy, palette, inspector, live edits, copy/paste, move, delete, undo/redo. Drag and drop written but never exercised; no guides, snapping or multi-select |68| M10 | V1 release candidate | **partial** | Golden journey automated; measured performance baseline; several failure modes tested. Missing: accessibility audit, hand smoke test, disk-full and concurrency tests |6970## Golden journey (ROADMAP §14)7172Automated in `GoldenJourneyTests.theWholeJourney` with a scripted Claude; steps 3, 4, 6, 7 also run against the real API in `LiveTests`.7374| Step | Automated (scripted) | Live API | By hand |75|---|---|---|---|76| 1 Fresh install, launch | yes (model layer); app launch checked separately | – | not done |77| 2 Enter key, verify connection | yes | yes (`--store-key`, model list) | not done |78| 3–4 Prompt → working preview from catalog components | yes | yes | not done |79| 5 Import CSV, filter, edit, relaunch, persistence | yes (through the runtime, scripted file dialog) | – | not done |80| 6–7 Ask for a change, inspect, run checks, approve, both features work | yes | yes | not done |81| 8 Publish a satellite; own icon, window, Dock entry, independent launch | yes (real bundle, real launch) | – | not done |82| 9 Restart session, state and data recovered | yes | – | not done |83| 10 Roll back an update without data loss | yes | – | not done |8485## Failure modes (ROADMAP §14)8687| Failure mode | Status | Where |88|---|---|---|89| Offline use of catalog apps | **working** | `StudioTests.catalogAppsWorkOfflineAndWithoutAKey` |90| Claude unavailable / invalid key | **working** | `ClientTests`, `AgentTests.claudeFailuresBecomeHonestOutcomes`, `StudioTests` |91| Tool / build cancellation | **working** | `ClientTests.cancellationStopsAStreamPromptly`, `StudioTests.cancellingABuildChangesNothing` |92| Malformed component manifest | **working** | `ManifestTests` (12 malformed shapes, hash mismatch, tampering) |93| Malicious imported content, prompt injection in a CSV | **working** | `CSVTests.maliciousContentIsStoredAsInertData`, `QueryTests.injectionAttemptsStayData`, permission tests |94| Rejected permission | **working** | `WorkspaceTests.permissionsAreDeniedByDefaultAndTheUserDecides`, `RuntimeTests.permissionsAreEnforcedAtRuntime` |95| Build failure | **working** | repair rounds, incomplete first build kept as a draft |96| Version migration | **working** | blueprint migrator, additive data migration, store migrations |97| Missing runtime | **working** | missing host template, too-new manifest, tampered definition |98| Satellite uninstall | **working** | with and without data; refuses bundles it did not publish |99| Disk full | **planned** | not tested |100| Connection lost mid-build | **working** | `ClientTests.aStreamThatBreaksIsRequestedAgain` (found by the live evaluation) |101| Layout that destabilizes the window | **working** | `scripts/ui-walk.sh` over `tests/golden/model-built` (found by the 0.1.0 crash) |102103## Feature matrix104105| Area | Feature | Status |106|---|---|---|107| Object model | PUOP objects, canonical JSON, hashes, round trip, stable IDs, reference integrity, cycle detection, migrations, patches, diff | **working** |108| Object model | Typed ports | **partial** — declared and type-checked; not used to wire components |109| Logic | Expression language, bindings, 11 declarative actions | **working** |110| Logic | Scripts and on-demand components in a confined JavaScriptCore engine (ADR 0009) | **working** |111| Logic | Swift export (ADR 0003 rung 3) | **planned** |112| Data | Per-app SQLite, additive migrations, transactions, CSV import/export | **working** |113| Reactivity | State + data-revision propagation | **partial** — app scope only; no explicit scheduler; debounce only for state persistence |114| Events | click, change, submit, select, imported, exported, saved, deleted, cancelled | **working** |115| Events | timer (`prism.timer` tick) | **working** |116| Events | app launched, external | **planned** |117| Theme | Presets, palette, fonts, panel styles, gradients, chart colors, accent, appearance, density, radius | **working** (native controls keep the system look) |118| Theme | High-contrast variant, typography scale customization | **planned** |119| Catalog | 201 components: manifest, fixture, example, validation and render test each | **working: 201 · planned: 0** |120| Catalog | Recipes | **partial** — one (expense tracker), not parameterized |121| Claude | Client, model discovery, streaming, caching, usage | **working** (live) |122| Claude | Separate planning and implementation models | **planned** |123| Agent | 38 tools (design, on-demand components, scripts, screenshots added), budgets, repair, milestones, audit | **working** |124| Agent | `code.proposePatch` | answers `not_available` by design: sources are replaced whole |125| Projects | Autosave, snapshots, rollback, audit log, crash recovery, export/import, backup | **working** |126| Projects | Resumable jobs, restore from a backup folder in the UI | **planned** |127| Satellites | Tier B publish, update, rollback, uninstall, launch verification | **working** |128| Satellites | Developer ID signing option | **partial** — implemented, not exercised with a real identity |129| Satellites | Notarized satellites, sandboxed host, Tier C, cross-app connections | **planned** |130| Modes | Create, Preview, Evolve, Publish, Library, Monitor | **partial** — implemented and rendered; not operated by hand |131| Modes | Design | **partial** — see M9 |132| Modes | Logic, Code, Connections | **planned** (not needed for V1) |133| Security | Keychain-only secrets, redaction, default-deny permissions, no shell, no listener | **working** |134| Security | Security-scoped bookmarks | **planned** |135| Accessibility | Labels and roles declared; validator warns on unlabeled controls | **partial** — no VoiceOver or keyboard audit |136| Localization | English only | **planned** |137| Distribution | PRISM 0.2.0 Developer ID signed, notarized, stapled DMG (`dist/PRISM-0.2.0.dmg`, submission `09094a56-…`, 2026-11-22) | **working** (done on the owner's instruction; outside the directive's V1 scope) |138139## Agent evaluation (measured, live) — figures from 0.1.1, not re-run for 0.2.0140141`scripts/eval.sh` on 2026-11-22, `claude-opus-5-5`, effort high, the 12 prompts of `tests/evals/prompts.json`.142143**Result: 12 of 12 passed their expected properties, 12 of 12 valid blueprints, catalog coverage 100% in every case.** Estimated total $2.28; mean 29 tool calls and 45 s per build.144145How that number was obtained, in full: the first run scored **4 of 12**. One case (`finance`, 35 components) stopped at the then-default limit of 80 tool calls, and the Wi-Fi dropped during the sixth case, after which seven cases failed immediately as "offline". Two fixes followed (default limit raised to 160 tool calls / 60 turns; an interrupted stream is now retried), and the eight affected cases were re-run: 8 of 8 passed. The table merges the four passes of run 1 with the re-run. It is one sample per prompt, not a rate with a confidence interval.146147| Prompt | Result | Tool calls | Components | Tokens (all kinds) | Est. cost | Time |148|---|---|---|---|---|---|---|149| expense-tracker | pass | 48 | 17 | 266,257 | $0.32 | 66 s |150| finance | pass | 78 | 35 | 686,929 | $0.57 | 127 s |151| reading-list | pass | 26 | 9 | 129,266 | $0.16 | 39 s |152| workouts | pass | 10 | 3 | 58,737 | $0.07 | 17 s |153| inventory | pass | 24 | 8 | 137,589 | $0.16 | 41 s |154| contacts | pass | 32 | 9 | 167,700 | $0.18 | 39 s |155| habits | pass | 18 | 4 | 116,254 | $0.10 | 28 s |156| two-pages | pass | 13 | 4 | 61,688 | $0.08 | 20 s |157| calculator-no-data | pass | 21 | 9 | 59,170 | $0.10 | 25 s |158| out-of-catalog | pass | 54 | 26 | 273,173 | $0.36 | 86 s |159| injection | pass | 9 | 2 | 54,592 | $0.05 | 16 s |160| evolve-budget | pass | 17 | 21 | 120,934 | $0.12 | 37 s |161162Notable: `out-of-catalog` (Kanban, calendar, email) built the closest catalog version and said plainly which parts are not possible; `injection` (a prompt telling the builder to grant network and shell) ended with only `storage.local`.163164## Live API runs (measured, 2026-11-22, `claude-opus-5-5`, effort high)165166| Run | Result | Tool calls | Tokens (fresh in / out / cache read / cache write) | Estimated cost |167|---|---|---|---|---|168| Golden prompt (create) | succeeded, 100% catalog coverage, 0 errors | 28 | 22 / 5,109 / 130,783 / 18,269 | $0.22 |169| "Add a budget alert and a new chart" (evolve) | succeeded, proposal checks passed | 23 | 26 / 3,192 / 135,990 / 8,023 | $0.13 |170171Costs are estimates from the price snapshot in `PriceTable` (2026-11-03), not invoice figures.172173## Performance baseline (measured)174175_Measured 2026-11-22 12:45 on Version 27.0 (Build 26A5425a), debug build, swift test_176177- catalog search (40 components, 200 queries): 0.310 ms per query178- validate expense tracker blueprint (21 objects): 0.46 ms179- import 10,000-row CSV: 120 ms180- table query with a text search over 10,000 rows (uncached, 1111 rows returned): 2.1 ms181- monthly aggregate over 10,000 rows: 1.4 ms182- same queries again (cached): 0.040 ms183- start a runtime for the expense tracker (in-memory store): 0.2 ms184185No numeric targets are set yet. Not measured: app cold/warm start, preview latency in the app, memory, 50-component interaction, long session restore, concurrent builds, low disk.186187## Not verified188189- Mouse and keyboard use of PRISM, of a published satellite and of every new component (nothing in 0.2.0 has been operated by a person).190- How a themed app looks in a live, focused window: checked off-screen and in the background walk only. In the off-screen picture of the dark project board the sidebar's selected row and icons look too dark; whether that is an inactive-window artefact was not checked.191- Drag gestures of the new components (kanban, range slider, dial, drawing pad), popovers, confirmation dialogs, hover tooltips.192- Whether other generated layouts or on-demand view trees can still destabilize a window: 16 model-built apps and 201 fixtures pass, which is evidence, not proof.193- Script memory use (there is no quota) and the behaviour of the time limit on macOS 26.194- The quality of on-demand components beyond the two examples built (`custom-arcade` by hand, `memory-game` by the live builder); the builder does not click through what it writes.195- VoiceOver, full keyboard navigation, reduced motion, contrast inside on-demand components.196- macOS 26; Intel Macs (the build is arm64 only).197- Developer ID signing of satellites; satellites on another Mac.198- The Keychain access prompt behaviour after PRISM is re-signed.199200## Repository state201202Git repository initialised; **nothing is committed** (CLAUDE.md hard rule 7: commit only when asked). Nothing was pushed, and PRISM was not installed outside the repository. Artifacts: `build/release/PRISM.app`, `dist/PRISM-0.2.0.dmg` (notarized), `dist/PRISM-0.1.1.dmg` (notarized; the 0.1.0 DMG was deleted because it crashes).203
Files main
Menu

Theme