Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 0
reference data models
Douwe de Vries edited this page Jul 2, 2026
·
1 revision
The data model is defined in src/runtime/schema.ts and persisted through src/runtime/workspace.ts. Runtime API input schemas in src/runtime/api.ts reuse these domain schemas.
| Field | Meaning |
|---|---|
version | Literal 2. |
id | Session id. |
goal | User goal. |
status | planning, ready, running, blocked, or completed. |
approval | pending or approved. |
plan | Plan or null. |
activeFeatureId | Current feature id or null. |
history | Completion and blocker history entries. |
closure | Completed, deferred, or abandoned closure record. |
lastError | Last runtime completion or transition error. |
timestamps | Created, updated, and completed timestamps. |
PlanSchema stores summary, overview, requirements, decisions, finalReviewPolicy, and features. FeatureSchema stores id, title, summary, status, targets, validation, and dependsOn.
| Schema | Fields |
|---|---|
ValidationRunSchema | command, status, summary. |
ReviewSchema | status, summary, blockingFindings. |
FinalReviewSchema | Review fields plus reviewDepth. |
WorkerResultSchema | status, featureId, summary, artifacts, validation, review, final review, and outcome. |
| Tool | Schema |
|---|---|
flow_plan_save | FlowPlanSaveSchema in src/runtime/api.ts. |
flow_run_start | FlowRunStartSchema in src/runtime/api.ts. |
flow_feature_complete | FlowFeatureCompleteToolSchema in src/runtime/api.ts. |
flow_feature_reset | FlowFeatureResetSchema in src/runtime/api.ts. |
flow_session_close | FlowSessionCloseSchema in src/runtime/api.ts. |
Related pages: Schema and JSON, Session, plan, and feature, and Flow tools.