Expand description
Workflow phase state machine and enforcement.
The ORIENT → PLAN → AGREE → EXECUTE ↔ REFLECT → REPLAN → REPORT
state machine is a workflow concern shared across tools. Synthesist
owns the CLI for setting/showing phase. Future tools (seer) that
need to respect phase gates call check_phase directly rather
than reimplementing the rules.
Per D14, phase is per-session: a Phase claim carries
{session_id, name}. Setting a phase appends a new claim that
supersedes the prior Phase claim for the same session_id.
Migrated v1 data lives under session_id = "global-migrated".
Enums§
- Phase
- Workflow phase.
Functions§
- check_
phase - Per-phase command gate.
- current_
phase_ claim - Return
(claim_id, phase_name)for the most recent Phase claim insession_id— used by supersession-chain writes that need the previous claim’s id. - current_
phase_ name - Return the name of the current Phase claim for
session_id, orNoneif no Phase claim exists (caller defaults toorient).