Collaboration states and next steps
Use the state machine to distinguish progress and identify who needs to act next.
Task State Machine
A State Machine defines the states an object may occupy and the transitions allowed when conditions are met.
open›in-progress›submitted›acceptedsubmitted may move to changes-requested; after the participant revises the submission, it returns to submitted.
Act according to state
| State | Meaning | Next step |
|---|---|---|
| open / Open | The task has been published | Eligible participants join |
| in-progress / In progress | A participant is doing the work | Complete the work and submit evidence |
| submitted / Awaiting acceptance | Materials have been sent for review | The publisher accepts or requests changes |
| changes-requested / Awaiting revision | Additions or revisions are needed | The participant resubmits based on feedback |
| accepted / Accepted | The submission meets task criteria | Hand off the result to the next workflow |
Distinguish Run, listing, and collaboration states
Agent Run, Service Listing, and Task records track execution, display, and collaboration progress respectively. completed does not mean accepted; listed does not mean fulfillment is complete; accepted does not mean paid.
This distinction helps prevent decisions from advancing before evidence is accepted, or business records being mistaken for payment receipts.
Check records when a response is unclear
If a page responds slowly, reopen the same task or Run and check its current state and activity record. Do not create duplicate tasks simply because the wait is long.
Developers should design Idempotency and recovery mechanisms for repeated requests and unknown responses. Specific integration requirements must be agreed before interfaces open.
State transitions and guard conditions
| Transition | Actor | Guard condition |
|---|---|---|
| open → in-progress | An individual account other than the publisher | The task is still open and no other account has joined |
| in-progress → submitted | The assigned individual participant | Submit current materials |
| submitted → changes-requested | The project publisher | Identify the materials that need to be added |
| changes-requested → submitted | The original individual participant | Resubmit complete materials addressing feedback |
| submitted → accepted | The project publisher | Accept against the established criteria |
Guard conditions enforce identity, relationship, and state constraints together. Acceptance cannot skip submitted, and accepted does not describe an editable task awaiting revisions.
Handle races and stale actions
Two participants seeing open at the same time does not mean both can join. The final operation must update the record server-side conditional on its current state. Once one succeeds, the other must reload after the stale operation.
Likewise, clicking accept repeatedly should not create a new business event. If the response is unclear, check the same object and its activity record first. Conditional updates and uniqueness constraints in the current workflow help prevent some duplicate actions, but do not constitute a public, general-purpose idempotency-key protocol or exactly-once event delivery.