-
Notifications
You must be signed in to change notification settings - Fork 0
primitives validation and review
Active contributors: ddv1982
Validation and review records are the evidence that lets a feature complete. They are not advisory prose: the runtime requires specific passing payloads before flow_feature_complete can mark a feature done.
src/runtime/schema.ts
src/runtime/transitions.ts
skills/flow-test/SKILL.md
skills/flow-review/SKILL.md
| Abstraction | File | Description |
|---|---|---|
ValidationRunSchema |
src/runtime/schema.ts |
Exact command, status, and summary evidence. |
ReviewSchema |
src/runtime/schema.ts |
Feature review status, summary, and blocking findings. |
FinalReviewSchema |
src/runtime/schema.ts |
Review plus final reviewDepth. |
ReviewFindingSchema |
src/runtime/schema.ts |
Blocking or advisory finding summary. |
validateCompletion |
src/runtime/transitions.ts |
Gate that checks evidence before completion. |
ValidationRunSchema permits passed or failed, but validateCompletion requires every recorded validation run to be passed. ReviewSchema permits failed reviews, but completion requires status: "passed" and no blocking findings. Final completion adds FinalReviewSchema and requires its reviewDepth to match the plan's finalReviewPolicy.
skills/flow-test/SKILL.md produces validationRun summaries. skills/flow-review/SKILL.md produces featureReview and finalReview payloads. The manager records accepted payloads through flow_feature_complete; no separate review-record tool exists in v4.
| File | Purpose |
|---|---|
src/runtime/schema.ts |
Evidence schemas. |
src/runtime/transitions.ts |
Evidence enforcement. |
skills/flow-test/SKILL.md |
Validation evidence guidance. |
skills/flow-review/SKILL.md |
Review payload guidance. |
tests/runtime-gates.test.ts |
Evidence rejection and acceptance tests. |
Adjust skills/flow-test/SKILL.md or skills/flow-review/SKILL.md for judgment changes. Adjust src/runtime/schema.ts and src/runtime/transitions.ts only when persisted or enforced evidence changes.
Related pages: Review and validation, Flow tools, and Testing.