lifecycle_transition
Move an item through its lifecycle states—in_work, in_review, released, obsolete—while a transition table rejects illegal steps and releasing freezes the first revision.
Instructions
Move an item through the lifecycle state machine in_work -> in_review -> released -> obsolete, guarded by a transition table (#141 C2). An illegal edge (e.g. skipping review, or re-opening a released item in place) is rejected loudly; releasing stamps the item's first revision and freezes it.
registry: path to the items.json sidecar (written back on success). item: the item id to transition. to: the target lifecycle state. actor / note: optional provenance recorded in the item's transition log.
Returns {ok, state, rev}, or {ok:false, problems} on an illegal transition.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | ||
| item | Yes | ||
| note | No | ||
| actor | No | ||
| registry | Yes |