003-work-and-run-semantics
Work selection, workspace preparation, the run record, and recovery after interruption
Lifecycle approvedImplementation in-progressVerification unknownQualification unknown
The core loop's semantics. How a unit of work is identified by reading spec-spine's structured report rather than re-deriving it; how an isolated workspace is prepared so the operator's checkout is never edited; the append-only hash-linked run record with intent written before an effect and outcome after it; the closed outcome set (completed, failed, refused, interrupted, cancelled) and the rule that a retry appends an attempt rather than replacing history; supervisor-owned refusal accounting a supervised process cannot erase; and reconciliation of an ambiguous effect before any retry, with no exactly-once promise.
Read the full pinned specification ↗Relationships
depended on by
- 004-execution-adapter
- 005-acceptance-and-evidence
- 006-command-surface
- 013-supervised-wire-witness
- 014-wire-evidence-admission
- 019-context-packet-consumption
- 020-documentation-task-and-result
- 021-documentation-acceptance
- 022-fixed-export-documentation
- 025-injection-qualification
- 027-observation-and-proposals
- 029-one-resolved-judge
Claimed units
- establishes
{ "kind": "directory", "path": "crates/statecraft-run/" } - extends
{ "nature": "additive", "spec": "005-acceptance-and-evidence", "unit": { "kind": "directory", "path": "crates/statecraft-acceptance/" } } - extends
{ "nature": "corrective", "spec": "006-command-surface", "unit": { "kind": "directory", "path": "crates/statecraft-cli/" } } - extends
{ "nature": "corrective", "spec": "002-environment-lifecycle", "unit": { "kind": "directory", "path": "crates/statecraft-environment/" } }
Source headings
- 003: Work selection, workspace preparation, the run record, and recovery
- 1. Purpose
- 2. Territory
- 3. Behavior
- 3.1 A unit of work
- 3.1.1 Ready is not ratified
- 3.1.2 Two reports that both carry status, read from one state
- 3.1.3 The contract an attempt is bound to
- 3.1.4 The operator override, as an operation this product performs
- 3.1.5 The journal's current state, and an authority the journal cannot roll back
- 3.2 Workspace preparation
- 3.3 The run record
- 3.3.1 Effect identity and one-to-one closing
- 3.4 The closed outcome set
- 3.5 Refusal accounting belongs to the supervisor
- 3.5.1 What records an attempted write to the record, and what does not
- 3.6 Recovery and reconciliation
- 3.6.1 Reconciling an unresolved attempt, as an operator's act
- 3.7 Concurrency bounds for the first slice
- 3.8 Observable negative cases
- 4. Out of scope
- 5. Resolved decisions
- Verification
Frozen anchors
No frozen anchors declared.