Current product and execution plan

Migrate Gym Log, prove one Keep and one Discard from a phone in 72 hours, then compound existing JARVIS records into JARVIS Results.

Open canonical source page · GENERATIVE_APPLICATIONS_PLAN.md
On this page

JARVIS Home — generative applications plan

Status: approved by Phil Dressler and executing from 2026-08-12.

TODO.md is the only live work list. This document fixes the product boundary, mechanism, order, acceptance evidence, and stop conditions. The prior reservation-and-channel release target remains recoverable from Git commit ff68263dbcd5ef49b8d2a994cf04349266754561.

TL;DR

Build one narrow product:

JARVIS Home turns a person's data and completed JARVIS work into persistent applications they can use and revise through one Ask JARVIS bar.

Start from an application JARVIS already generated, not from new infrastructure. Within 72 hours, that application must appear in Home and complete two sequential real-phone edits through Edit this app → candidate → Preview: one candidate is Kept and the later candidate is Discarded. Before use counts, its browser-only storage is migrated to the trusted broker without weakening the sandbox. Only the four records that this real app and edit loop prove necessary are added.

Next, build JARVIS Build Room from records that already exist—Tasks, Attempts, progress events, and verified outcomes. Add semantic object selection only after application-wide editing works. Add one read-only calendar and a Today application only after repeated use justifies them.

Replit, Lovable, and Base44 already provide generic prompt-based building, visual selection, previews, versions, and publishing. JARVIS will not recreate that category. Its owned value is the private Home library, owner-scoped JARVIS records, durable Application history across linked coding Tasks, one persistent composer, and a literal promotion step where nothing becomes live until the user chooses Keep.

Reservations and unfinished channel parity are parked until the owner decision at the end of this trial. They receive no parallel build lane during the trial.

The product promise

JARVIS Home contains a small library of persistent applications. Every application has:

  • one owner;
  • one durable identity, one owner-scoped canonical Conversation, originating Task provenance, and linked edit Tasks;
  • one live immutable version;
  • one persistent Ask JARVIS bar;
  • an explicit application-edit destination;
  • isolated candidates with Preview, Keep, and Discard; Undo follows after the first value proof;
  • optional owner-scoped typed data access;
  • a visible history of edits and outcomes.

An immutable version is a source-and-build snapshot that is never modified after creation. An edit creates another version; it does not rewrite the live one.

The first adopted application is Gym Log, which JARVIS already generated unattended from an iMessage and published as a verified Task artifact on 2026-08-12. It is chosen over Table for Two because its sandbox migration is narrower: replace local browser storage with typed broker reads and append-only session events. Its HTML form is replaced with ordinary input controls and explicit buttons before adoption; relying on a blocked form submission would prevent its current JavaScript handler from running. Table for Two also needs external SMS/OpenTable intent mediation and remains a later artifact.

The first application backed by pre-existing JARVIS records is JARVIS Build Room. It answers the problem Phil feels now: what is running, why, what changed, what is blocked, and what outcome was actually delivered. It uses existing Task, Attempt, event, and outcome records, so it requires no new personal-data connector.

Build Test and adoption decision

The Build Test asks what a user would notice if owned code were deleted and the best maintained product were used instead.

Official product documentation shows:

  • Replit Agent already offers prompt-based code changes, live Preview, Canvas annotations, checkpoints, and rollback.
  • Lovable already anchors comments to selected elements and sends the page, element, and thread to its agent; its MCP server can create, inspect, iterate, and deploy projects programmatically.
  • Base44 already offers AI chat, exact element selection, visual editing, preview, version history, restore, and private-app controls.

Therefore JARVIS does not build a generic AI editor, generic visual canvas, generic version-control product, or generic hosting platform.

The existing JARVIS Task artifact pipeline remains the first builder because it already produced two real applications from JARVIS messages, retains Task and Attempt provenance, and does not require sending personal records to a new third-party account. If that exact seam blocks the 72-hour loop, spend at most four hours comparing one maintained builder on four gates: private artifact handling, API reachability, source portability, and total cost. No personal data enters that comparison.

Exact mechanism

Trusted Home and isolated generated code

The authenticated JARVIS Home shell owns navigation, the composer, data access, Preview controls, and promotion. Generated application code never shares that authority.

Generated code runs in an opaque-origin sandbox—a browser frame treated as an unrelated origin even when JARVIS supplied its bytes—with:

  • no access to the parent page or its login state;
  • no subresource or API network access, form submission, top navigation, pop-ups, browser storage, service workers, or nested frames; ordinary inputs and buttons may use JavaScript and the typed broker;
  • a restrictive Content Security Policy, which is a browser-enforced list of permitted resource types;
  • an admission check that rejects forms, links, meta refresh, and direct navigation APIs, plus a browser test whose observer attaches before the trusted shell sets the frame source, allows only the one expected document request for the admitted content-addressed URL, and then fails the Version on every other request or later frame navigation; this is the alpha egress boundary for JARVIS-generated, reviewed code, not a claim that arbitrary hostile code is safe to upload;
  • one version-bound postMessage broker, which passes only schema-checked requests and responses between the frame and trusted Home.

Only trusted Home can perform Keep, Discard, Undo, deletion, or data queries. Keep requires a current authenticated session, a CSRF token—a secret request token that prevents another page from submitting the action—and a real user gesture in the trusted shell. Generated content cannot draw over or replace the Home bar or promotion controls.

Minimum durable records

The first loop adds only:

RecordPurposeRequired invariant
ApplicationOwner, canonical Conversation, name, originating Task provenance, and live-version pointerOne owner and Conversation; at most one live version
ApplicationVersionParent/base, producer kind and reference, source manifest hash, build hash, routes, immutable Binding Set, runtime profile, and evidenceImmutable after creation
ApplicationEditBase Version, source Message and Interaction, new coding Task and Attempt, exact instruction, optional semantic anchor, idempotency key, state, and candidateCannot silently apply to a different base
ApplicationEventApplication, owner, family, typed event, schema-valid payload, authorizing Version or trusted actor, predecessor or superseded event, idempotency key, and timeAppend-only; projections derive data state and lifecycle history

A Binding Set is the exact, immutable list of typed queries and fields one version may request. Code, API-schema version, and Binding Set are promoted or undone together. The fourth record, ApplicationEvent, stores both data.* events issued through allowed application commands and trusted lifecycle.* events such as register, preview-ready, keep, discard, undo, revoke, and delete. Large source, build, and screenshot bytes remain in content-addressed storage, where the file name derives from its cryptographic hash. Gym Log's session_added and session_removed events replace localStorage; no generic personal-data ontology is introduced.

Each Application binds exactly one existing owner-scoped Conversation. Both Ask JARVIS and accepted Edit this app submissions are canonical Messages in that Conversation. Every linked coding Task stores that Conversation as its origin return address. Home reopens the Conversation plus linked Task history through the Application; two Applications never share a Conversation.

The Binding Set separates read queries from write commands. Gym Log's live Version may request gym.list_people and gym.list_sessions and issue only gym.add_session or gym.remove_session. People arrive as opaque IDs, display names, and initials through the broker; those personal values never appear in generated source or a coding Task. The trusted broker derives owner, Application, source Version, event type, and server time; validates the command payload and stable idempotency key; and appends the corresponding data.session_added or data.session_removed ApplicationEvent. Generated code cannot supply those authority fields or name promotion, deletion, version, or lifecycle events. Trusted Home alone writes lifecycle.* events. A candidate Preview receives synthetic data and has no write commands until Keep makes that Version live.

The trusted shell counts messages from each frame before JSON parsing or any server call. More than 120 messages in ten seconds, or ten protocol violations in ten seconds, revokes and removes that frame; excess messages never reach the coordinator. The broker rejects before work when serialized request bytes exceed 16 KiB, JSON nesting exceeds eight levels, a response would exceed 256 KiB, or one frame has four requests in flight. Queries return at most 100 rows and use a cursor for more. A durable owner-plus-Application rate bucket allows 60 reads and 20 commands per minute across all tabs and Versions; excess requests return rate_limited without a store write. One event payload is at most 8 KiB; one Application stops accepting commands at 10,000 data events or 16 MiB of stored personal payload and returns data_limit_reached. Each query or command has a five-second absolute deadline; the SQLite busy timeout is 250 milliseconds. Cancellation is checked before the append transaction and immediately before commit, a timed-out command cannot append later, and a finally path always releases the frame's in-flight slot. These are product errors, not coordinator failures.

Every data.* event carries a data-schema version. Each Application Version names the projector version and event-schema versions it can read. Candidate verification, Keep, and Undo must successfully project every retained event at the current data head before promotion; otherwise the operation refuses and names the first unsupported event. No promotion rewrites old events.

Composer and edit routing

The existing bottom Ask JARVIS bar gains an explicit two-state switch:

  1. Ask JARVIS sends one normal Personal JARVIS interaction and produces exactly one Interaction Outcome.
  2. Edit this app deterministically selects delegate_task without calling the Foreground Model Adapter, then stores one canonical user Message and one Interaction and creates one Application Edit and one normal new coding Task linked to the Application.

When semantic selection ships, tapping Select part of app chooses a stable data-jarvis-id and automatically changes the visible destination to Edit selected part. One submission reaches one destination; there is no hidden dual send.

The original Gym Log Task and Attempt remain immutable provenance. GA1 runs one app-specific, deterministic adoption transform owned by the serving release: it replaces localStorage; rewrites submit, reportValidity, FormData, and reset behavior as ordinary inputs and explicit button handlers; and replaces window.confirm deletion with an in-frame confirmation state. It also replaces every hard-coded owner or collaborator label with the typed gym.list_people binding and synthetic build fixtures. The first Version records producer_kind=adoption_migration, the original Task, Attempt, and source-manifest hash, the serving release commit, the transform version, the output manifest, and verification evidence. It is not falsely attributed to the original Attempt and no generic migration framework is added. That immutable Version begins as a private candidate while the Application has no live pointer. Trusted Home shows its synthetic-data Preview; the user's first Keep compare-and-sets a null live pointer to that Version. Adoption never makes changed bytes live merely because the transform completed.

For each later edit, one transaction writes the canonical Message, Interaction, Application Edit, normal personal_jarvis Task Input with action=create, new Task, first Attempt, Context Pack, and Application linkage. The existing Task Input enums and terminal-Task guards do not widen. Retrying the same stable idempotency key under the same owner and Application returns that same Message, Interaction, Edit, Task, and Attempt only when requester, source submission, base Version, destination, anchor, and instruction match byte for byte. Any changed field returns idempotency_conflict without exposing prior row IDs. A store-derived claim query—not only an in-process notification—makes the new Attempt worker-claimable. Home presents all linked Tasks as one continuous Application history; it does not claim one native Harness session persists.

Admission checks single-flight before persisting the submission. When another edit is active, the API returns edit_active, preserves the visible composer text, and creates no Message, Interaction, Application Edit, Task Input, Task, Attempt, or Context Pack. An accepted edit exposes its normal authenticated Task Agent Chat URL; steering that Task remains normal Task control and creates neither a second Application Edit nor work in another Application.

Before launching the Harness, Task Control verifies the base manifest and materializes its exact source, tests, Binding Set, API schema, and synthetic fixtures into the new Task workspace. The Context Pack also carries the ordered Application edit instructions, Keep/Discard decisions, objective evidence, and relevant outcomes from earlier linked Tasks. The adopted source contains typed person bindings rather than personal names, so coding Tasks still receive synthetic values only. Application Tasks are pinned to Codex; dedicated admission and worker guards refuse Claude or any other Harness even though the generic selector supports both. The Task receives a private candidate contract and must return .jarvis-application-candidate.json, not the public-artifact contract. On terminal success, JARVIS verifies the manifest and creates an immutable private candidate Version. One terminal transaction marks the Attempt and Task complete, creates that Version and its Preview receipt, appends lifecycle.preview_ready, and queues one idempotent application-specific candidate_ready return to the Application Conversation. That return contains only the private Preview locator and evidence; it does not call the public publisher, create a public URL or provider publication receipt, or emit the ordinary public-artifact completion outbox. Keep and Discard are later user decisions, not Task completion. This absence is an acceptance property, not an implementation convention.

A candidate's Binding Set must equal its base for an instruction that does not explicitly request a named data capability. Any widening is refused unless the instruction names it; Preview then shows the exact query, command, and field diff, and Keep requires a separate trusted-shell confirmation for that diff.

First edit and later reliability

The 72-hour proof permits one active edit per Application and visibly refuses a second before message persistence. It freezes the base source manifest, Binding Set, schema version, tests, and synthetic fixtures before work starts. A store-derived worker scans for the claimable Attempt; an in-memory notification only reduces latency.

The first path must survive restart. A missing or invalid private candidate manifest honestly fails the Task and Attempt and offers re-run; no provider- terminal row may remain falsely running. After Build Room is useful, the reliability gate adds a visible first-in-first-out queue, expiring leases, Undo, stale-candidate conflict handling, and the remaining crash-point recovery tests. This keeps generalized infrastructure out of the first user proof.

The later lease lasts 90 seconds and renews every 30 seconds. Fifteen minutes without a durable non-heartbeat Harness, tool, source, test, or candidate event shows a visible stale warning but does not interrupt legitimate work. Existing resource guards and the ordinary authorized-user Task ceiling of at least 24 hours remain the runaway backstops. Recovery may create one honestly labeled retry. Heartbeats alone do not clear the warning.

JARVIS Home edit lifecycle. The exact text source is available below.
Read exact diagram source
%% title JARVIS Home edit lifecycle
stateDiagram-v2
    [*] --> queued
    queued --> building: durable claim
    building --> verifying
    verifying --> preview_ready: objective gates pass
    verifying --> failed
    preview_ready --> kept: trusted-shell promotion
    preview_ready --> discarded
    kept --> [*]
    discarded --> [*]
    failed --> [*]

The 72-hour tests cover edit commit before notification, restart during the Attempt, and a missing or invalid private candidate manifest. The later reliability gate covers build-before-Version, verify-before-Preview, Keep interruption, queue recovery, and stale candidates.

Verification and promotion

Objective gates verify build success, source/build identity, sandbox policy, declared functional behavior, phone and desktop rendering, and non-regression. A critic records evidence about the requested change, but does not claim to decide subjective taste. Preview labels that evidence honestly; the user's Keep is the acceptance decision.

Keep performs one compare-and-set transaction: it succeeds only if the live Version still equals the edit's base Version—or is null for first adoption—then moves the live pointer and appends the trusted lifecycle.keep event atomically. Discard changes nothing. The first proof has no concurrent candidate because a second edit is refused. Undo and generalized stale-base handling follow in the reliability gate.

Personal data

Generated code requests only typed records through the trusted broker. It never receives connector credentials, session cookies, raw database access, another person's records, or unrestricted URLs. Coding agents receive schema-valid synthetic fixtures by default, not real personal values.

A future source connection records both the data owner and the source account, the granted scopes and fields, and revocation state. Disconnect immediately blocks new queries. Deleting an Application is the explicit exception to append-only recovery: it hard-deletes personal ApplicationEvent rows, private screenshots, attachments, this Application's artifact references, and Versions, then leaves only the Application ID, owner ID, deletion time, and deleted state. Canonical Conversation, Messages, Interactions, Tasks, and Task Inputs remain in JARVIS conversation and work history; the confirmation states that exact retention before deletion. A physical content-addressed blob is removed only when no retained owner, Application, Version, or evidence record references its hash; deleting one Application cannot break another that shares identical bytes. Full account-history erasure is not claimed by this alpha. Evidence shown in tests or docs uses synthetic or redacted values.

Alpha scope for targeted editing

The alpha reuses the useful Video Studio idea without claiming its unproven pixel precision. Selection stores:

exact Application Version + route + stable data-jarvis-id
+ screenshot hash + viewport + scroll + local point + instruction

The stable semantic object is authority; the point is supporting context. If the object no longer exists, the edit is refused. A visible Select control is the accessible path on every device; press-and-hold and a finger-offset crosshair may be added later as faster input.

Drawings, attachments, frame ranges, fixed-resolution source pixels, one-pixel nudge, exact hold timing, and exact crosshair offset are explicitly deferred. They ship only after observed use shows that semantic selection is insufficient and their full capture → record → Task Input → candidate → critic path is tested.

Critical path and timebox

The fourteen-day clock starts when this plan is published. The seven-day use window starts after Gym Log's sandbox-compatible broker migration and first real Home use, no later than the end of Day 3. That still leaves a complete seven-day window before the Day 14 decision.

GateDeadlineUser-visible result
GA0 — decisionHours 0–4Public plan, exact scope reset, one work list
GA1 — adoptDay 2Deterministic release-owned migration produces the first broker-compatible Gym Version with original Task/Attempt provenance; Gym opens from Home and the trial starts
GA2 — edit72 hoursTwo sequential phone Messages create two private Application-linked Codex Tasks; one candidate is Kept and the later candidate is Discarded
GA3 — value + reliabilityDay 6Build Room shows real work; then queue, lease, Undo, stale-base, and remaining crash recovery land
GA4 — targetDay 8Semantic selection changes one chosen object and refuses a deleted target
GA5 — compoundDay 10JARVIS Results opens one real completed artifact and reuses Build Room's query with no new connector or storage primitive
GA6 — decideDay 14Five uses in one seven-day window; continue, change, or stop decision

One optional read-only calendar connection and Today may begin after GA4 only if Build Room is being used. It cannot delay GA5 or the Day 14 decision.

The compounding proof requires the second application to add zero connector setup, zero storage types, and zero runtime primitives; it reuses the same typed query. One owner-authorized task_fact_corrected event in the existing canonical task_events append log references an earlier Task fact; the same source event ID appears through both applications' owner-scoped Task projection without a rebuild. JARVIS Results has a distinct job from Build Room: find and open delivered work. The frame may request only home.open_artifact(artifact_id) for an artifact ID returned by its allowed query; trusted Home rechecks owner, verified-outcome membership, and the stored reachable URL before opening a new trusted-shell view. Generated code never receives or chooses an arbitrary URL. Phil must open one real completed artifact from it. Elapsed build time is compared with Build Room, the first application backed by pre-existing JARVIS records.

Acceptance and stop conditions

The direction continues only if all of these are observed from the deployed immutable release:

  • one adopted app completes the 72-hour phone edit loop;
  • live bytes remain unchanged until Keep;
  • the 72-hour path proves Keep, Discard, restart, second-edit refusal, store-derived wake, and honest invalid-manifest failure;
  • the later reliability gate proves Undo, queueing, leases, stale-base refusal, and remaining crash recovery;
  • the sandbox cannot reach Home authority or ungranted data;
  • Build Room is useful from existing records before any connector is added;
  • one semantic target edit changes the intended object and no named sibling;
  • JARVIS Results compounds with no new connector, storage type, or runtime, and opens one real delivered artifact;
  • Phil uses an app on five of seven trial days and records a decision.

If the 72-hour edit loop fails, stop feature work and repair or replace only the blocking seam. If repeated use or compounding is absent by Day 14, stop this direction rather than adding infrastructure. Restaurant work remains parked until that decision.

Continuous execution contract

Goal

Reach the Day 14 owner decision with deployed evidence, beginning with one existing application producing two sequential real-phone candidates—one Kept and one Discarded—within 72 hours.

Non-Goals

The loop does not build a generic AI editor, new coding Harness, new database, reservation provider, channel cutover, calendar-first data layer, pixel/media annotation system, marketplace, or autonomous code merger.

Trigger

Phil's 2026-08-12 approval starts the loop. Each next iteration begins only after the current gate has focused checks, independent review, and its required live evidence.

Scope

The loop covers GA0 through GA6 in the table above. Local code, documentation, focused tests, isolated candidates, read-only research, adversarial review, immutable deployment, and exact live proof are permitted by the standing build authorization.

Inputs And Required Reading

Read the latest Phil entries in docs/PHIL_PROMPTS_VERBATIM.md, this plan, PRODUCT_CONTRACT.md, architecture.md, BUILD_CONTRACT.md, FRIENDS_ALPHA_ACCEPTANCE.md, the current supersession map in DECISIONS.md, and the active TODO.md item. Before a release, also read current process, deployment, load, and watcher evidence rather than relying on prose.

State And Memory

TODO.md is the sole work list. Canonical application, edit, Task, Attempt, and event state lives in SQLite. Source, build, and private evidence bytes live in content-addressed artifact storage. BUILD_PROGRESS.md records observed proof and recovery context but never creates work.

Loop Readiness

This is L3 Unattended: the goal is explicit, the first gates are local and reversible, verifiers and time caps are named, Phil-Gate work is excluded, and Git plus immutable releases provide rollback. A gate drops to L2 Assisted if a new human-only or irreversible dependency appears.

Actions

For each iteration: check production answering and machine load; read the current TODO item; make the smallest user-visible change; run focused tests; obtain independent adversarial review; deploy the immutable result; prove it on a real phone path; record evidence; then advance exactly one gate.

After two failed builder attempts on one seam, stop patching and compare upstream repair, maintained-tool replacement, or deletion under the Build Test.

Verification

Use the applicable HA1–HA8 properties. Each gate requires exact record IDs, source/build hashes, test output, independent review, phone and desktop use, fetched deployed bytes, release identity, process start time, and current outside-process answering evidence. Synthetic or redacted values protect personal data in evidence.

Caps

  • One build writer and one active edit per Application.
  • At load average 10 or higher, one heavy test or browser process.
  • Two builder attempts before replacement analysis.
  • Four hours for a maintained-builder comparison if the artifact seam blocks.
  • 72 hours for the first two sequential phone-edit decisions and 14 calendar days for the owner decision.
  • One optional calendar connector only after GA4 and repeated Build Room use.

Stop Conditions

Stop on verified GA6 decision, Phil's stop instruction, kill switch, Phil Gate, workspace conflict, the 72-hour or Day 14 failure rule, or a repeated failure that cannot progress without a new external fact. A blocker in one lane does not stop unrelated critical-path work.

Phil Gate Boundary

Stop before reading secret contents, writing under /Users/jarvis/JARVIS, impersonating a user, weakening the sandbox, or taking an action outside the standing build authorization. Pre-stage the safe portion, send the required email-and-text action notification, and continue another permitted gate.

Rollback Or Archive

Git commit ff68263dbcd5ef49b8d2a994cf04349266754561 preserves the prior product state. Every deployment uses an immutable release with the previous release retained for rollback. Archive and verify replaced setup material before deletion. Owner-requested personal-data deletion is the exception: it overrides recovery and leaves only the permitted non-personal tombstone.

Logging And Closeout

Record observed evidence in BUILD_PROGRESS.md, change work state only through list/list.mjs, and send Phil a status email after each live gate. Close N-163 only after HA1–HA8 and the owner decision; do not equate plan publication with product progress.

Risks Handled

The loop handles reviewed generated-code isolation, stale candidates, widened data permissions, cross-person access, duplicate edits, lost wake-ups, invalid result manifests, crash recovery, subjective-taste overclaims, hidden process drift, and test load affecting production.

Accepted Risks

The alpha executes only reviewed JARVIS-generated code behind admission and zero-egress browser gates; it does not defend against deliberately obfuscated hostile uploads, which remain excluded. The adopted application may require a source-manifest conversion; one maintained builder may fail the four-hour comparison; stable semantic IDs may refuse after an intentional refactor; the optional calendar may not ship; and a fourteen-day trial may prove the direction is not useful. Each risk produces an honest stop or refusal rather than more infrastructure.