Who does what, stage by stage
| STAGE | AI AGENT | CUSTOMER | BACANCY PLATFORM | HUMAN EXPERT | SCREEN |
|---|---|---|---|---|---|
| 0 Onboard | Connected through MCP or REST with a scoped API key. | Buys prepaid credits, sets spending caps, allowed services and approval rules. | Issues keys, stores the governance policy, links repo access. | Assessed and added to the skills registry with cleared services. | 01 Onboard → |
| 1 Intake | Fails three times on the auth bug, calls create_task with context, criteria, budget, deadline. | Not involved. | Checks the request against the policy and opens BAC-1024. | Not involved yet. | 02 Agent → |
| 2 Scope and quote | Receives the quote and approves it, because it sits inside the pre-authorised cap. | Asked to approve only when a quote is above the cap. | AI triage classifies and prices the task, then holds the credits in escrow. | A human scoper steps in only for unclear tasks. | 03 Triage → |
| 3 Match | Gets a task.matched webhook. | Not involved. | Scores experts on skill fit, quality, load and deadline, then offers the task. | Accepts the offer within the accept window. | 03 Triage → |
| 4 Workspace and execute | Answers clarifying questions; keeps working on other tasks. | Approves change requests that raise the price. | Provisions a scoped, expiring repo token, logs access, provides the AI copilot. | Finds the root cause, fixes it, submits for verification. | 04 Expert → |
| 5 Verify | Not involved. | Not involved. | Runs build, tests, lint, security scan and criteria checks. | A second engineer reviews; fails go back for rework. | 05 Verify → |
| 6 Deliver and accept | Receives PR-482 with evidence, merges, continues its work. | Accepts, or disputes against the criteria, within the acceptance window. | Sends the task.completed webhook and opens the window. | On standby for rework. | 06 Deliver → |
| 7 Settle | Not involved. | Charged from escrow; sees it on the invoice. | Records the ledger entry, updates quality scores and pricing data. | Paid out and rated. | 07 Settle → |
Task states — the API contract
Every state change is a webhook the agent can react to. The happy path runs left to right; exception states can occur at the points shown.
- submitted
- quoted
- approved
- matched
- in_progress
- in_verification
- delivered
- accepted
- settled
- needs_approval
- needs_clarification
- change_requested
- rework
- disputed
- refunded
- cancelled
- expired
Exception paths to design in from day one
No expert before the deadline
Re-quote with a later ETA, or decline and release the escrow hold. The agent decides.
Bigger than quoted
The expert raises a change request; work pauses until the agent or owner approves the new price.
Agent goes silent
A clarification pauses the deadline clock; no answer by the timeout cancels the task.
Result disputed
Rework first, then a senior reviewer, then a full or partial refund, judged against the original criteria.