Skip to content

Add mini-app platform design spec: graph is the only program - #4477

Closed
georgi wants to merge 2 commits into
mainfrom
claude/plan-review-improve-0p3i6h
Closed

Add mini-app platform design spec: graph is the only program#4477
georgi wants to merge 2 commits into
mainfrom
claude/plan-review-improve-0p3i6h

Conversation

@georgi

@georgi georgi commented Jul 25, 2026

Copy link
Copy Markdown
Collaborator

Adds docs/superpowers/specs/2026-07-25-mini-app-platform-design.md — a design spec for evolving Mini-Apps into multi-operation, shareable applications, written as the simplified alternative ("Plan B") to the Mini-App Platform Architecture doc in Drive.

Core idea: an application is a UI document plus typed bindings to workflow operations and resources. All computation and orchestration stay in workflow graphs (WorkflowNode already runs sub-workflows); the UI layer's only logic is closed-vocabulary widget props (visibleWhen, disabledWhen, format). This deliberately drops the proposed expression, procedure, and sandboxed-script languages, keeping the agent's authoring surfaces at two: the graph and the UI document.

The spec covers:

  • Application entity (applications / application_versions tables on the sibling-editor pattern used by timelines/storyboards/sketches)
  • Operation bindings keyed by node ID (rename-safe), with execution policies and variable-mediated user-in-the-loop flows
  • Resource bindings as a thin envelope over the existing timeline/storyboard/sketch/asset routers, with revision-based optimistic concurrency
  • Run identity as the P0 prerequisite: job_id added to OutputUpdate/NodeUpdate/NodeProgress/Chunk so overlapping runs stop contaminating app state
  • Namespaced per-instance state replacing the flat value map and the process-global store registry
  • Publishing with creator-funded hard budgets settled against the existing predictions cost records, and a derived capability summary
  • Effect metadata (pure|read|write|external on NodeMetadata) gating reactive subgraph runs
  • Migration from workflow.app_doc, a P0–P6 build order with a shipped outcome per phase, and explicit revision triggers

🤖 Generated with Claude Code

https://claude.ai/code/session_01LqxfoEjnu14v3tXYhyMxSR


Generated by Claude Code

Simplified alternative to the Mini-App Platform Architecture doc. Keeps
the Application entity, typed operation/resource bindings, invocation
identity, and publishing with budgets; drops the proposed expression,
procedure, and script languages — orchestration stays in workflow graphs
(WorkflowNode), presentation logic is closed-vocabulary widget props.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LqxfoEjnu14v3tXYhyMxSR
Copilot AI review requested due to automatic review settings July 25, 2026 11:20

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a design spec proposing a simplified Mini-App platform model where workflow graphs remain the sole computation/orchestration layer, and the UI document stays declarative with typed bindings to operations/resources.

Changes:

  • Introduces an “Application entity” concept (draft + versioned releases) with typed operation/resource bindings and declared variables.
  • Proposes protocol/runtime changes to add run identity (job_id) to streaming messages and to move to per-instance, namespaced app state.
  • Outlines publishing/governance (budgeting + derived capabilities) and a phased migration/build plan.
Comments suppressed due to low confidence (1)

docs/superpowers/specs/2026-07-25-mini-app-platform-design.md:83

  • Same naming inconsistency as above: this uses nodetool_application_versions but the PR description (and sibling-editor tables) use unprefixed names. Consider aligning the schema sketch so it’s implementation-ready and matches the naming convention you intend to follow.
nodetool_application_versions

Comment thread docs/superpowers/specs/2026-07-25-mini-app-platform-design.md Outdated
Comment on lines +249 to +252
One store per open app instance (a factory like `TimelineInstance.tsx`, not
today's process-global `Map` keyed by workflow ID — which also fixes the
never-called `disposeAppRuntimeStore` leak). Inside it, four namespaced maps
instead of one flat `Record<string, unknown>`:
Use unprefixed applications/application_versions to match storyboards
and timeline_sequences, and correct the disposeAppRuntimeStore lifecycle
description — it is called from WorkflowManagerStore on workflow removal.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LqxfoEjnu14v3tXYhyMxSR
Copilot AI review requested due to automatic review settings July 25, 2026 11:24

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

@georgi georgi closed this Jul 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants