Every war-room follows a state machine defined in lifecycle.json. This document covers all standard states, transitions, retry logic, and escalation paths.
State Overview
OSTwin defines 14 states across 4 categories:
Work States
State
Role
Description
pending
—
Room created, waiting for dependencies
developing
engineer
Primary implementation work
optimize
engineer
Fix/improve after QA feedback
Review States
State
Role
Description
review
qa
Code review and acceptance testing
design-review
architect
Architecture compliance review
Decision States
State
Role
Description
triage
manager
Decide next action after escalation
failed
manager
Auto-decision: retry or exhaust
Terminal States
State
Type
Description
passed
terminal
Epic completed and approved
failed-final
terminal
Epic exhausted retries or rejected
Orchestration States
State
Role
Description
blocked
—
Waiting on dependency resolution
waiting
—
Paused for external input
plan-review
architect
Initial plan validation
signing-off
manager
Collecting release signoffs
released
—
Release completed
lifecycle.json Schema
{
"version": 2,
"initial_state": "developing",
"max_retries": 3,
"states": {
"developing": {
"role": "engineer",
"type": "work",
"signals": {
"done": { "target": "review" },
"error": {
"target": "failed",
"actions": ["increment_retries"]
}
}
}
}
}
Top-Level Fields
Field
Type
Description
version
int
Schema version (currently 2)
initial_state
string
State when room first activates
max_retries
int
Maximum retries before exhaustion
State Definition
Field
Type
Description
role
string
Role responsible in this state
type
string
"work", "review", "triage", "decision", or "terminal"