Docs Guides

How an agent picks up a task and hands it over

One work item moving from a person to agent teammates and back, step by step, with the service and record at each.

This walks through one work item as it moves from a person to an agent teammate, from that agent teammate to another, and back to the person, as t10 is built today. Each step names the service that acts and the record it writes. The example is a real run on the local cluster (November 13, 2026), from the scenario script used to test agent teammates.

The design behind it is in t10-agent-control/docs/tenant-agents.md, Part 2, and t10-collab/docs/design.md.

The rule underneath#

Agents never talk to each other directly. Work that changes hands goes through a work item in t10-collab, the same record people use, which users see as a task. An agent picks work up because an event about an item wakes it. It hands work over by sending the item, as a person would. So every handover has an owner, a history, access checks and limits, whether a person or an agent is on either side.

The cast#

Who What it is Can do
Mei A person, the sales lead. Manager of both agent teammates Everything a member can, plus assigning work to the agent teammates and approving their actions
Ti Mei's assistant. Acts with Mei's rights, only while Mei asks Read and draft work items. It can't send them. Only a person sends
Lead desk An agent teammate: an agent account (acc_…) with its own instructions. Qualifies leads Accept, decline, comment, edit and send items it's on, under its own account's rights
Quote desk An agent teammate. Prices seat deals: 40 USD per seat per month, 15% off for partners The same as Lead desk

A teammate is anyone you can send work to: a person or an agent. Workbench labels each name "Person" or "Agent" wherever you pick someone, so it is always clear who will pick a task up. An agent teammate, like Lead desk, has its own account, owns tasks and answers to a manager. An assistant, like Ti, isn't a teammate: it acts for one person with their rights.

An agent teammate is three records, each kept by its usual owner:

Part Record Service
Who it is An agent account, with a manager (Mei) and roles auth-server
How it behaves Its instructions, tools and model, built on the platform agent ti t10-agent-control
When it runs An intake automation: trigger event, target session_per_ref, running as its account t10-automations

Each agent teammate also has an intake (accepts_from) in t10-collab saying who may send it work. In the example both accept from everyone in the tenant. With no intake set, only its reporting line can send it work.

The example: a lead becomes a quote#

Contoso emails Mei asking for 50 seats. The lead should be qualified, then priced, then come back to Mei.

sequenceDiagram
  actor Mei
  participant Ti as Ti (Mei's assistant)
  participant Collab as t10-collab
  participant Auto as t10-automations
  participant Lead as Lead desk
  participant Quote as Quote desk
  participant Gov as Governance (agent-control)

  Mei->>Ti: "Make a work item for the Contoso lead"
  Ti->>Collab: work_act work_item.create (as Mei)
  Ti->>Collab: work_propose work_item.send: a draft
  Mei->>Collab: confirms: sent to Lead desk (an assignment: Mei is its manager)
  Collab->>Auto: work.assigned, hops 0
  Auto->>Lead: run, new session for this item
  Lead->>Collab: comment "Qualified", work_send to Quote desk (an offer)
  Collab->>Auto: work.offered, hops 1, cause = Lead desk's grant
  Auto->>Quote: run, new session for this item
  Quote->>Collab: work_accept, comment "@Mei standard or partner tier?"
  Mei->>Collab: comment "Partner tier"
  Collab->>Auto: work.commented, hops 0 (a person acted)
  Auto->>Quote: run, same session as before
  Quote->>Gov: work_update needs approval
  Gov-->>Mei: approval request (she is its manager)
  Mei->>Gov: grant
  Gov->>Quote: the run wakes
  Quote->>Collab: work_update (writes the quote), work_send back to Mei
  Collab-->>Mei: offer "Quote ready" in her inbox

Step 1. A person asks their assistant to make the item#

Mei tells Ti: "Contoso wants 50 seats for their support team, starting next month. Make a work item for it, then try to send it to Lead desk."

  • Ti makes the task with work_act (work_item.create) through ai-gateway, with a token delegated by Mei. The item is created owned by Mei, not by Ti, and Mei can undo it for a day.
  • Ti can't send it: a send is work_item.send, which an assistant may only draft, with work_propose. t10-collab keeps the draft for Mei; nothing is sent yet.
  • Mei sees the draft under For you to confirm on Home and on the task's page, with Confirm and Dismiss. Confirming makes the send as if she'd made it herself.

Why: an assistant acts for one person, with that person's rights, so it can draft but not hand someone's work to someone else. That decision stays with the person.

Step 2. The person hands the item to an agent teammate#

Mei sends the item to Lead desk with the note "New lead from email".

  • t10-collab checks Lead desk's intake (accepts_from), then the reporting line. Mei manages Lead desk, so this is an assignment: Lead desk owns the item at once, with no accept step. From anyone else it would be an offer that Lead desk accepts or declines.
  • In the same transaction, t10-collab writes the item's history, and an outbox row for the event work.assigned, with hops: 0, because a person acted.
  • The outbox posts the event to t10-automations (POST /v1/events), retrying until it's delivered.

Step 3. The agent teammate picks the task up#

  • t10-automations finds the automations whose trigger matches: Lead desk's intake automation. It writes a firing that records the item (ref), the event, the grant that caused it and the hop count.
  • The target is session_per_ref. This is the first firing for this item, so it starts a new conversation on agent-ti, running as Lead desk's account. Its instructions, tools and model come from Lead desk's configuration.
  • The run's prompt names the item. Lead desk reads it with work_get and its comments with work_search, using its own account's rights, not Mei's.

Picking up an offer instead: when the event is work.offered, the run decides itself, by its instructions, whether to work_accept or work_decline with a reason. Declining out-of-scope work is an agent teammate's first guard against being used for something it wasn't set up for.

Step 4. The agent teammate hands the item to another agent teammate#

Lead desk qualifies the lead, comments "Qualified: Contoso is a potential customer requesting 50 seats…", and sends the item to Quote desk with the note "Needs a price".

  • An agent account manages nobody, so its sends are always offers. Quote desk has to accept.
  • t10-collab checks Quote desk's intake, the limit of 60 sends an hour, and that Lead desk isn't sending to itself.
  • The event is work.offered with hops: 1, an agent send with no person acting since, and cause_grant set to Lead desk's run grant. So the firing can answer "Quote desk ran because Lead desk's run sent it".
  • Quote desk's intake automation fires and starts a new session for the item. Quote desk accepts with work_accept and becomes the owner.

From the run's firing list:

fir_c8b8… done  work.offered   by Lead desk  hops=1  cause_grant=grt_ed3f…  session=…e486c59b

Step 5. The agent teammate asks a person a question, and hears the answer#

Quote desk can't price the deal without the tier, so it comments "@Mei Is Contoso on standard tier or partner tier?" and stops. The mention notifies Mei, who can already see the item. In this run the model wrote Mei's user ID after the @. t10-collab now writes it as her name (see Mentions below).

Mei replies on the item: "Contoso is a partner, so partner tier."

  • Her comment fires work.commented to everyone on the item who is an agent account. An agent teammate never hears its own comments.
  • The hop count goes back to 0, because a person acted.
  • Same item, so session_per_ref continues Quote desk's existing conversation instead of starting a new one. Quote desk already has the item and its own question in context, so it doesn't start over from the history.
fir_3058… done  work.commented by Mei  hops=0  cause_grant=-  session=…e486c59b   ← same session

Step 6. An action waits for the manager's approval#

The tenant has a governance rule: work_update by any agent account needs approval by its manager.

  • Quote desk calls work_update to write the quote. Governance holds the call and opens an approval.
  • Mei sees it as Quote desk's manager, without being a tenant admin, and grants it. The task page shows it too: "Quote desk wants to change Lead: Contoso", with the old and new description and Approve and Refuse.
  • The approval wakes the run. The held call goes through, and Quote desk writes the quote into the item's description.

Step 7. The agent teammate hands the item back to the person#

Quote desk sends the item back to Mei with the note "Quote ready".

  • It's an offer, so it lands in Mei's inbox. She accepts it and owns the item again, and Quote desk stays on as a collaborator.
  • Mei can also ask Ti "What happened with the Contoso lead?". Ti reads the item and its comments with Mei's rights and summarizes them.

The handover is complete: a person, two agents and the person again, all on one record, with each step in its history.

How a transfer works, technically#

A handover is a row in collab.offers plus a change to collab.work_item_owners. Nothing is copied or moved: the item stays where it is, and who owns it changes. A person's send and an agent's send go through the same code (t10-collab/internal/offers). Only the way in differs:

Caller Way in
A person, in Workbench POST /v1/work-items/{id}/send with {to, mode, note}, and POST /v1/offers/{id}/accept, /decline or /withdraw
An agent teammate The work_send, work_accept and work_decline tools on t10-collab's /mcp, reached through ai-gateway with the run's delegated token. They're refused unless the token's principal is an agent account (acc_…)

The tables involved#

Table What a handover writes
offers One row per send: from_user_id, to_user_id, mode (transfer or share), note, state
work_item_owners Who owns the item. Changes when an offer is accepted, or at once for an assignment
work_item_collaborators A transferring sender is kept here, so they can still follow the item
events The item's history: offer.sent, offer.assigned, offer.accepted, offer.declined. actor_grant_id is set when an agent acted
notifications One row for each person to tell
outbox One row for each agent account to tell, carrying the event's kind, its causing grant and its hop count

All of a step's rows commit in one transaction, so the history, the notices and the events for agents always match the data.

Sending#

offers.Send does these steps in order:

  1. May the caller send? The caller must be an owner of the item, or a list member if it's an unowned list item. The item must not be done or cancelled.
  2. The loop rule. If both sender and recipient are agent accounts, t10-collab counts the agent hops since a person last acted on the item. If this send would be the third, it goes to the sending agent teammate's manager instead, and the event says redirected_from and reason: agent_loop.
  3. The plan. These checks read auth-server fresh, bypassing caches, and a send fails if a read fails:
    • The recipient must be an active member.
    • If the recipient is an agent account, the sender must be in its intake (accepts_from).
    • If the recipient is anywhere beneath the sender in the reporting line, the send is an assignment. Otherwise it's an offer.
  4. The transaction. It locks the item's work_items row, then:
    • checks again under the lock that the caller may still send;
    • refuses a recipient who already owns the item (409 already_owner);
    • counts the sender's sends in the last hour, refusing at 100, or 60 for an agent account;
    • inserts the offers row, with state = pending, or assigned for an assignment. Two partial unique indexes allow only one pending offer per item and recipient, and one pending transfer per item and sender;
    • for an assignment, moves the owners at once, as in Accepting below;
    • writes the events, notifications and outbox rows.

Accepting#

offers.Accept, in one transaction:

  1. It loads the offer for its recipient only. Anyone else gets not found, so offer IDs can't be probed. It locks the item.
  2. UPDATE offers SET state = 'accepted' WHERE id = … AND state = 'pending'. The state condition means an accept and a withdraw at the same moment can't both win.
  3. changeOwners moves ownership:
    • It adds the recipient to work_item_owners, and removes them from collaborators if they were one.
    • With mode = transfer, it removes the sender from owners and adds them as a collaborator. The recipient is added before the sender is removed, so the item always has an owner.
    • With mode = share, the sender stays an owner.
    • It withdraws offers that no longer make sense, such as a pending offer from someone who is no longer an owner.
  4. It writes the offer.accepted event, a notice to the sender and the people on the item, and outbox rows for any agent accounts among them.

Declining sets state = declined and leaves the owners alone. The sender is told with the reason, and a recipient who isn't otherwise on the item can no longer see it.

How the event reaches the next agent#

t10-collab                         t10-automations                          agent-ti
──────────                         ───────────────                          ────────
outbox row ──POST /v1/events──▶  match event automations
(retried with backoff,             (tenant, account, kind)
 kept 7 days after sending)        insert a firing: ref, event,
                                   cause_grant, hops
                                   (one per event ID, so a repeat
                                   delivery adds nothing)
                                   hops ≥ 3? skip it, tell the manager
                                          │
                                   runner takes the firing
                                   child grant from the account's
                                   standing grant, then a token
                                   session for this ref? continue it ──▶  run as the agent teammate,
                                   none? start one, save it               the item's ref in app.trigger
  • At least once. The outbox retries until t10-automations answers, and a firing is unique per automation and event ID. So a lost reply means a retry, never a second run.
  • IDs only. The firing's payload holds the event kind, the item reference, the actor, the hop count and the time, and nothing else. The run reads the item through its tools with its own rights, so text in an item can't arrive as instructions.
  • One conversation per item. session_per_ref keeps a session per item reference for each automation, and records it on each firing.
  • Where it stands. A single read of an item includes its pending offers, the agents told about it that haven't acted since (working), and the reader's unanswered mention. Workbench shows these above the task, with the approvals waiting for the reader about this task.
  • Approvals. When governance holds a call, the run stops. When the approval is decided, the runner wakes the session with a new grant and tells the agent to repeat the same call, which the gateway now lets through.

Mentions#

A comment's body is plain text, and mentions is a separate list of user IDs to notify. A mention only reaches someone who can already read the item, and never gives access. People are written by name: in Workbench, typing @ in a comment offers people and agent teammates by name and fills in mentions, and the work_comment tool tells agents to write @Mei Lin. If an agent writes an ID such as @usr_76d4… anyway, t10-collab replaces it with the member's name and adds them to mentions, as long as the ID belongs to an active member of the tenant. Workbench shows names the same way in comments written before this change.

What keeps handovers safe#

Guard Where it's enforced
An assistant drafts, and only a person sends t10-collab refuses work_send, work_accept, work_decline and work_claim unless the principal is an agent account acting on its own items
Who may send to an agent teammate Its intake (accepts_from), checked by t10-collab on each send, not by the model
An agent teammate uses its own rights Every call runs as its account, never the sender's
An agent-to-agent loop A third agent-to-agent send with no person acting goes to the sending agent teammate's manager instead. Agent comments count as hops too
The same limit for every module's events t10-automations doesn't run a firing after 3 agent hops, and tells the manager. In the Automations bell this shows as a notice that opens the item
Writes need a person A governance rule with approver manager
Runaway sends At most 60 sends an hour per agent account, and none to itself
Evidence Each firing records its item, event, causing grant and hops. Each tool call is audited with the actor kind agent_account

What happens when an agent teammate gets stuck#

Its instructions end with a fixed rule: when it can't finish, it sends the item to its manager with a comment saying why. Its manager answers for its work. If it's paused, work sent to it waits as offers, and its events wait as firings until it's resumed. If it's removed, its items move as a person's would when they leave: to the creator, then the manager, then the departure queue.

What this isn't#

  • Not a live chat between agents. There's no channel between two agents' conversations. Items are asynchronous on purpose: they show who is waiting on whom.
  • Not delegation or sub-agents. Those happen inside one run, under one account, and don't change who owns the work.
  • Not a takeover. A person continuing an agent's conversation is a separate feature, handoff takeover. An agent teammate's conversations belong to its account and don't appear in anyone's sidebar. The item is where people see its work.

What the run showed#

The handovers, limits, approval and continued session all worked as designed, and the script's checks passed. The model was the weak part. ti ships one model, qwen3.5-flash. In this run Quote desk asked about the tier a second time after Mei had answered, and quoted 2000 USD where partner pricing gives 1700 USD (50 × 40 × 0.85). Agent teammates doing arithmetic or following multi-step instructions need a stronger model entry in ti's bundle.

To see it, the agent teammates from a later run, "Lead desk MWFIVL4J" and "Quote desk MWFIVL4J", are still on the local cluster. In Workbench, the item is under Tasks and the agent teammates are under Administration.

Generated from t10’s own docs (bbc3cde). Spotted a problem? Tell us.