Skip to content

reference data models

Douwe de Vries edited this page Jul 2, 2026 · 1 revision

Data models

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.

Session

FieldMeaning
versionLiteral 2.
idSession id.
goalUser goal.
statusplanning, ready, running, blocked, or completed.
approvalpending or approved.
planPlan or null.
activeFeatureIdCurrent feature id or null.
historyCompletion and blocker history entries.
closureCompleted, deferred, or abandoned closure record.
lastErrorLast runtime completion or transition error.
timestampsCreated, updated, and completed timestamps.

Plan and feature

PlanSchema stores summary, overview, requirements, decisions, finalReviewPolicy, and features. FeatureSchema stores id, title, summary, status, targets, validation, and dependsOn.

Evidence

SchemaFields
ValidationRunSchemacommand, status, summary.
ReviewSchemastatus, summary, blockingFindings.
FinalReviewSchemaReview fields plus reviewDepth.
WorkerResultSchemastatus, featureId, summary, artifacts, validation, review, final review, and outcome.

Runtime API payloads

ToolSchema
flow_plan_saveFlowPlanSaveSchema in src/runtime/api.ts.
flow_run_startFlowRunStartSchema in src/runtime/api.ts.
flow_feature_completeFlowFeatureCompleteToolSchema in src/runtime/api.ts.
flow_feature_resetFlowFeatureResetSchema in src/runtime/api.ts.
flow_session_closeFlowSessionCloseSchema in src/runtime/api.ts.

Related pages: Schema and JSON, Session, plan, and feature, and Flow tools.

Clone this wiki locally