Skip to content

Latest commit

 

History

History
69 lines (55 loc) · 3.43 KB

scoped-workflow.md

File metadata and controls

69 lines (55 loc) · 3.43 KB

Scoped execution and compact context

Schema 3 separates a reviewed plan from implementation, integration and production activation. A production identity can remain an activation prerequisite while configuration handling is implemented and tested. Unanswered global design questions and unsafe financial assumptions still block planning.

Before executing a reviewed plan, inspect its stages and current scope:

riff status feature --details
riff check feature
riff check feature --stage implementation --task-id T1
riff context feature --operation implement --task-id T1

check defaults to planning for schema 3. Implementation checks require task IDs. Use --stage integration for final local completion, or add task IDs for individual integration checks. --stage activation checks the whole delivery. Status can show local implementation complete while activation remains blocked.

Agents use riff context to load relevant acceptance, constraints, decisions, findings and evidence references. Inspect raw source/diffs and actual verification. Full manifests and checkpoint histories stay in the project instead of being copied into every model call. riff record previews deterministic binding, review/check records and transitions; apply requires the preview's current proposal digest. It never executes commands or launches models.

Expected implementation edits are distinct from unexpected drift. A reviewer may assess a bounded source or contract delta and preserve unaffected evidence. Unknown impact remains conservative. Code review binds source and the accepted behavior contract: saving a checkpoint cannot make old code reviews approve new acceptance criteria. Retained reviews keep their original subjects.

An internal corrective replan returns to authorized execution after current gates pass. An explicit plan/replan request stops at its boundary. A later explicit execute request can update intent while preserving progress and review history. Two unsuccessful rounds on the same finding produce a concrete escalation; revisions do not reset the counter.

Existing tasks and installations

Update the intended skill using riff update and check copies with riff doctor. Installation updates never rewrite task records. Schemas 1 and 2 retain their existing behavior. Upgrade a task explicitly:

riff migrate feature --to 3
riff migrate feature --to 3 --apply

Preview changes nothing. Apply saves exact backups, preserves the source baseline, unknown extensions and existing authority, archives approval and leaves DRAFT. Old run/checkpoint files remain untouched until inspected reconciliation. Fill author/read/write scope and prerequisites, obtain current review and reconcile execution. Unclassified legacy blockers stay global; migration never guesses that they are only deployment details.

New tasks default to schema 3 after qualification. Explicit riff new feature --schema-version 2 supports legacy workflows. Old installations reject schema 3. Do not alternate old and new installations against one active run.

The schema and event contract documents prerequisite fields, review coverage, fingerprints, record payloads and applicability. Installed skills include it at references/planning/V3.md.

No provider SDK, launcher, billing cap or model downgrade is added. Report tokens only where actual counters exist. Context bytes and command counts are proxies, not token savings or proof of equal engineering quality.