You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Each vendor worker can report different process states, failures, timeouts, and quota errors. The secure workflow needs one lifecycle contract for the orchestrator.
Deliverable
Define and implement a shared lifecycle for every adapter:
created, started, running, completed, failed, canceled, quota-handoff, retained, and cleaned.
Make cancellation and timeout terminate the worker, wait for exit, and preserve the correct artifacts. Connect retries and resume to the recorded model choice and the resource ledger.
Acceptance criteria
Every adapter reports the shared lifecycle states and valid transitions.
A timeout or cancellation stops the worker before cleanup continues.
The orchestrator waits for process exit and records the exit result.
A normal retry uses the same pinned model and effort.
The workflow allows at most one retry per assignment unless an explicit policy changes that limit.
Quota exhaustion hands unfinished work back to the orchestrator without waiting for unrelated workers.
Resume uses the ledger, assignment identity, verification baseline, and pinned model choice.
Failed, canceled, timed-out, and quota-handoff runs retain the evidence required for diagnosis.
Malformed worker output cannot advance an assignment to completed.
Both shell-native helper families pass equivalent fake-worker lifecycle cases.
Activity
anthonyandrei commentedon Sep 4, 2026
Resolved by PR #39 (#39). The merged implementation covers this issue, and the targeted acceptance tests pass. Closing as completed.