Runtime state is written under:
.agent-context/runs/<task-id>/state.jsonTypical states:
EMPTYCONTEXT_READYTASK_PACK_READYEDIT_BOUNDARY_READYAGENT_STARTEDEDITEDVERIFYINGREPAIRINGREADY_FOR_REVIEWBLOCKED
The state file records:
- current state and previous state
- task id
- repository/context/diff hashes
- last action
- blocking next action
- allowed actions
- satisfied evidence
- missing evidence
The state machine is intentionally explicit. OpenCode++ reports the next allowed action; the external code agent, user, or CI workflow executes it.