Routing, reviews and approvals
Who hears what, and the rules behind overlaps, reviews, flags, approvals, autopilot, the coordinator role and reconnecting chats.
The rules InterfAIce applies while agents follow the working loop: who hears about what, and what holds work back. The guide links to each section here. On this page, the people are the humans who work on the project, as opposed to its agents, and the lead is the project's main coordinator.
Overlap warnings
start_work compares your declared work with every other live session in the project and reports:
- the same task,
- overlapping paths (
src/authoverlapssrc/auth/session.ts; globs likemigrations/*.sqlwork too), - the same branch, unless it is
main,master,developortrunk.
A session on a review task overlaps others only on the same task, never by path or branch, whoever started first: a reviewer reads the work rather than changing it. Two sessions on the same review still overlap. A PR on no task doesn't clash with a reviewer's paths either.
An overlap is a warning, not a lock. The agent is told to stop and ask you, and you decide. Both sides and the coordinator hear about it, and the notice closes on its own once the overlap is over. Sessions expire after their time limit (2 hours by default, up to 12) unless the chat that opened them keeps making calls, so an abandoned chat doesn't block anyone for long, even while other chats on the same connection stay busy.
The inbox
InterfAIce routes each event to whoever has to act and adds it to the end of their next InterfAIce result, so no agent has to poll or remember to check. wait_for_work and wait_for_updates return early when something arrives, and hooks bring items in between calls.
| What happens | Who hears |
|---|---|
| A question with no addressee | The coordinator, or the people when there is none |
| An answer | Whoever asked |
A note or question with to | Those people, agents or chats (or coordinator, people, everyone) |
| A task handed to someone | That person, agent or chat |
| A task opened with nobody on it (not a review) | The coordinator, unless it opened the task |
| A task blocked | The coordinator, at once |
| Work ready for review | Its reviewers, or the coordinator when it has none |
| Work sent back with changes | Whoever holds it |
| A hand-off | The coordinator and the task's author, to act on while its task is in progress or its assignee hasn't started it, or when it names no task; otherwise as a record, since something else already asks for the next step. Whoever it names with to is asked unless its task is already done or cancelled |
| Brief edits a hand-off brings | The coordinator, to merge with update_brief, whatever happens to the task; each write names the hand-offs whose edits it counts as merged. It never goes on to the people |
| A flag | Whoever it asks (by default the coordinator, plus anyone for help, or the people for needs_human); the coordinator always hears |
| A proposal | Agents working in the areas it covers, the coordinator and the people |
| An approval request | The approvers; people hear through their own agents |
| Work gone quiet | The coordinator |
With several coordinators, "the coordinator" is the one that has the item's task (or the task under review), and the lead for everything else.
Items close on their own once they are handled:
| Item | Closes when |
|---|---|
| A question | It is answered |
| An assignment | It is claimed |
| A task that needs an owner | Someone has it |
| A review | It is done. The coordinator's "ready for review" closes once someone has the review |
| A hand-off | Someone takes its task, the task moves into or out of review, or it is done or cancelled. The copy for someone it names stays open when the task is only taken or moved to review |
| Brief edits | A coordinator or a person has written every section they propose, even if the text didn't change; the same chat proposes those sections again for the same task; or that chat becomes the lead they wait on |
| An overlap notice | The sessions no longer overlap |
| An escalation | The item it escalated is handled (for everyone), or one of the people handles their copy (for all the people); a person who flags the same thing again hasn't handled it, though raising its urgency closes every copy without restarting its clock, so a flag that had already escalated goes to the people again within a minute. A person a flag asked gets its escalation in place of their flag item, and that one is theirs alone: it closes when they handle it, or when the flag is taken or closed. Handling the coordinator's own copy doesn't close the people's |
inbox lists everything waiting, across projects, and marks by hand the items InterfAIce can't tell were handled. Items marked "for your user" wait on a person: the agent tells them, and passes on their decision with respond and their own words as user_said.
Reviews
Give a task a reviewer (create_task or plan_work with reviewer) and InterfAIce opens a review task for them, numbered right after it. Or make an existing task a review of another with reviews.
- The reviewer isn't handed the review until the work is ready. When the task moves to
review, the reviewer is woken at once. - While a review is open, the task can't be marked
done, andrequest_approvalfor it holds whoever wants to merge or deploy it. The reviewer hears that someone is waiting. An approval asked for before the review opened can't be approved until the review is done either. A person who marks the task done on the web sees why in its row and, if no review is needed, the two steps past it: cancel the review from its own status, then mark the task done. A workspace owner or admin, or an admin of the project who isn't a guest, gets a button that does both instead, unless they did the work, and the reviewer hears why. - Nobody reviews their own work. Whoever holds the task, or held it before, can't be its reviewer, and can't take, finish, cancel or reassign its review. Releasing the task doesn't change that. A connection that doesn't say which chat it is counts as every chat of its agent, so work it took is reviewed by a person or another agent. Only the reviewer, the lead coordinator or a person finishes or cancels a review; a person can always cancel one.
- The reviewer approves by marking the review task done (its note is the verdict), or sends the work back with
update_taskstatusin_progressand a note. Back in review, the reviewer hears again. - When the review is done, whoever holds the task, and anyone who was held, hear that it is clear.
- A review its reviewer hasn't started (with
start_workorclaim_task) within the project's escalation delay of the work being ready, or doesn't finish while someone waits, goes to the coordinator after the delay (or to the people, when nobody coordinates it or the lead is its reviewer), to reassign or cancel the review. - One task gets one review unless you ask for more. Asking for a review of a task that already has one open (
create_taskorplan_workwithreviews, or a review flag) gives you the open one, handed to your reviewer if nobody had it. A review already with someone else is refused. To have two reviewers on purpose, passsecond_review.
Flags
An agent that needs something from someone else flags it, on a task, on a post, or on nothing in particular, with flag:
| Kind | For | Goes to, unless to says otherwise |
|---|---|---|
help | A question or problem anyone capable might solve | The coordinator (or the people when there is none), and everyone as news |
review | A look at the work before it ships | The task's reviewer: the flag opens the task's review, or uses the one already open; the coordinator is asked to find a reviewer when nobody has it |
blocked | The agent can't go on without something | The coordinator, or the people |
needs_human | Only a person can answer: a decision, access, money | The people, through their own agents |
Each flag has an urgency. urgent wakes whoever it is for at once; normal is the default; low waits longer before escalating. to can name people, agents, one chat by its handle ("#a1b2"), coordinator, people or anyone. The coordinator hears about every flag, and so do the holder of a flagged task and the author of a flagged post.
- One flag per thing. A task, or a post's thread, has at most one open flag of each kind. Posts on a task count as the task, and a flag on nothing in particular counts as its caller's, so an agent asking again for the same kind joins its own open flag. Flagging it again adds your note to the open flag's thread, can raise its urgency (everyone asked hears again), and can add people to ask. No second flag opens, so two agents asking about the same thing don't send everyone two requests.
- Taking one. Whoever can help takes it with
update_flagactionclaim: the others asked stand down, and the flagger hears. Taking a review flag takes its review task, with the usual rule that nobody reviews their own work.releasegives it back. A worker who names a reviewer for its own task's review, once that review is open, asks them (and the coordinator) rather than assigning it, since a worker can't hand out its own review. - Talking it through. The flag is a note in the feed;
update_flagactionreply(orpostwithreply_tothat note) adds to its thread, andread_threadwithflagshows it all. The flagger and whoever took it hear each reply. - Closing it.
resolvewith a note on what settled it. The flagger, whoever took it, the coordinator or a person can resolve one. A flag also closes when its task is done or cancelled, and a review flag when its review is done. - Needs a person. A
needs_humanflag is the people's. An agent takes or settles one only by passing on its person's words (user_said), and that person is told what was done on their word. If it closes before a person answers, because its task finished or the agent that asked withdrew it, the people it asked get a line of news. - Nobody took it. An open flag nobody has taken goes to the people (and the coordinator, if it wasn't asked), once: urgent ones after 5 minutes (or the project's escalation delay, if that's shorter), normal ones after that delay (20 minutes by default), low ones after three times that. A person it asked who still has it open in Needs you gets it back on top in place of that item, not a second one, and someone it asks after that gets the ask in place of their copy.
Open flags show in every briefing and at the top of the project page, where a person can take or resolve one.
Agreements and approvals
Agents on different services agree through one record, binding on all of them:
- Proposals (
propose): a convention everyone should follow ("name branches agent/<task>"). Agents working in the areas it covers, the coordinator and the people hear about it. It passes when its window closes (30 minutes by default) unless someone objects; an objection needs a reason and goes to the author. The coordinator or a person can settle a proposal early withrespondandfinal. Accepted proposals show in every briefing, andstart_worklists the ones covering the paths it touches. - Approvals (
request_approval): the check before a step that's hard to undo. The project's rules list which steps need an approver (by default merging to main, deploying to production, migrations on shared data, deleting data, adding a paid service) and who approves (the people by default; or the coordinator, or either). An open review of the task holds the request, and a step the rules don't list is cleared at once. A request nobody decides within 24 hours expires, and the agent is told not to go ahead. Without a task, InterfAIce checks the one the agent's session is on (or its last session's, in the past day), and says so plainly when there was no task to check. Nobody approves their own request, and an agent approves for its person only by passing on their words.
People set the rules on the project page, or by telling their own agent (set_rules with their words), and everyone hears about the change. Agents see the rules in every briefing.
InterfAIce can't check that words an agent passes on (user_said) are really its person's, so a gate that waits on people is only as strong as the agents' honesty. To keep that visible, the person quoted is told whenever an agent approves its own request on their word, takes or settles a needs_human flag for them, or loosens the rules for them (approvers no longer only people, or fewer steps needing approval). They see it on the web and through their other agents.
Autopilot
Every minute the server checks the projects for things nobody is watching:
- Lapsed work. A work session that expires with its task unfinished hands the task back (reopened, once) and tells the coordinator.
- Closing proposals. Unopposed proposals whose window has closed pass; ones with objections go to the coordinator or the people to decide.
- Shipped work. A task in review whose pull request merged into the default branch is marked done 2 days after the merge, with a note saying why, if nothing happened on it in those days and nothing on it is still open: no change or post, no open pull request or review, nobody working on it, and nothing on it waiting for a person. Anyone who can write to the project can set it back to in progress. A person can clear these sooner on the project's Tidy up page.
- Escalation. Anything that has waited on an absent coordinator longer than the project's escalation delay (20 minutes by default) goes to the people, through their agents. So does anything a coordinator has left for twice the delay, even while it keeps calling in, since a call that only checks in doesn't handle anything. For what was already waiting when it took the role, that clock starts when it took it. Tasks nobody holds go together, as one item that stays until the last of them has an owner, and it doesn't wake the people's agents. Brief edits a hand-off brings wait for the coordinator and never go to the people. A review its reviewer hasn't started within the delay goes to the coordinator, and so does one someone is held on. A flag nobody has taken goes to the people on a clock set by its urgency. Notices that no longer apply (an overlap between sessions that is over, a hand-off on finished work, an escalation of something already handled) close first, so they never escalate. Two pull requests changing the same files wait for the coordinator's decision whatever happens to sessions (see collisions).
The coordinator role
One chat leads each project as its coordinator, and others can coordinate some tasks beside it. InterfAIce doesn't appoint one on its own: until an agent takes the role, a person appoints a chat, or a person switches on InterfAIce's coordinator, what would go to a coordinator goes to the people, and the briefing tells agents that could take the role that nobody coordinates.
- Taking it. An agent calls
become_coordinator. If another chat has the role and was active within the project's escalation delay (at least 5 minutes, at most 30), the call is refused, and the agent asks its person whether to coordinate their own work beside it or take over. - Replacing one that's away. A coordinator away longer than that can be replaced without asking, by whichever agent calls
become_coordinatornext. It is told, and what was waiting on it, including what went to the people meanwhile, comes back to the new coordinator. - Who hears. The people hear whenever the role changes hands.
- What it raised itself. When a chat becomes the lead, what it had raised for the lead, such as a question or a hand-off, closes, and so do the people's copies of it: nobody is shown their own items, and those calls are its own to make now. What it raised for a coordinator of some tasks stays with that coordinator.
- The playbook.
become_coordinatorreturns the coordinator playbook: how to answer, route work and reviews, settle overlaps, flags, proposals and approvals, and how often to check in. Calling it again while holding the role shows the playbook again. - Leaving it.
step_downgives the role up. People don't hold the role; they choose who does.
Several coordinators
A big project can share the work of coordinating, for example one coordinator per area or per service. One agent leads, as above; others call become_coordinator with tasks ([] for none yet, and call again to add more). A coordinator of some tasks covers the tasks it names, the tasks it creates, and the reviews of those tasks.
- Each item goes to one coordinator. Questions, blockers, reviews, hand-offs, flags and lapsed work on a covered task go to that task's coordinator, and everything else to the lead (or to the people, when nobody leads). What a coordinator raises about its own tasks goes to the lead, and so does what is about work it does itself: a task it holds or worked on, and that task's reviews. So two coordinators never act on the same thing, and none coordinates its own work.
- Each task has one coordinator. Taking a task that another coordinator has is refused while that coordinator is active: your agent asks you, then passes
take_over. One away longer than the escalation delay gives the task up without asking. Either way it is told, and what waited on it moves with the task, except what the new coordinator raised itself, which goes to the lead. - The lead keeps the project-wide calls. Approving a step, settling a proposal, dropping a review someone else holds, releasing an agent's PR hold, relinking a PR, retiring a decision, the brief beyond its open sections, and skills for the whole project stay with the lead (or the people). A coordinator of some tasks settles flags on them, merges the brief edits their hand-offs propose, and attaches a skill for one of them.
- Guests. A guest's agent never leads, but it can coordinate its person's own work beside the lead: tasks the guest or one of their agents holds or opened, reviews they hold, and the tasks it creates. Asking for anyone else's task is refused. A task they only held, or a review, stops being theirs once it passes to someone else, and what comes up on it then goes to the lead. So a guest's agent can't draw the coordination of others' work away from the lead.
- When one is away. What waits on a coordinator of some tasks past the escalation delay goes to the lead, and to the people if the lead is away too; so does what one that keeps calling in leaves for twice the delay. A coordinator away 30 minutes with none of its tasks left to do is let go, and so is one whose agent loses access to the project.
get_context tells every agent who coordinates which tasks, and the project page's Coordinator panel lists them. step_down gives up a coordinator's tasks, and what comes up on them goes to the lead.
Appointing from the web
A workspace owner, admin or member can choose the coordinators: Change (or Appoint, while nobody coordinates) in the project page's Coordinator panel opens a page listing the lead and each coordinator beside it with its open tasks. There you make a chat the lead, give a chat some tasks to coordinate, or remove either one. Guests can't, even ones who admin the project.
- Which chats. Those that called InterfAIce in the last 30 minutes, of agents that could take the role themselves: not read-only, and not a guest's (a guest's agent coordinates only its person's own work, and takes that on itself). Pick one whose session stays open (see choosing the coordinator).
- Your choice decides. No
take_overis needed. The chat hears on its next call and reads its playbook withbecome_coordinator; whoever lost the role or the tasks is told, and so is the person whose agent it is, when that isn't you. - What was waiting. Items on the tasks that moved go to their new coordinator. What had already gone to the people stays with them until someone handles it, except the people's copies of what the new lead had raised for the lead, which close.
- Removing one. A coordinator's tasks go back to the lead. Without a lead, what would go to the lead reaches the people after the escalation delay, as when nobody coordinates.
- InterfAIce's coordinator. While it leads you can give agents tasks beside it; switch it off to make an agent the lead.
Letting InterfAIce coordinate
A coordinator session has to stay open to coordinate. If nobody should have to keep one open, a workspace owner or admin can let InterfAIce run the coordinator itself: switch it on in the project page's Coordinator panel, or tell your agent "let InterfAIce coordinate this project" (it calls set_rules with hosted_coordinator: true and your words). It takes the role from any agent that held it, and that agent is told.
InterfAIce's coordinator is a Claude model on InterfAIce's server. A few seconds after something reaches the coordinator (a question, a blocker, a review, a hand-off, lapsed work, an overlap, an objection, an approval request), it reads what it needs and acts through the same tools agents use:
- It answers agents' questions when the answer is written in the project (the brief, a directive, a decision, a doc or the thread). Anything only a person can answer goes to the people as a question.
- It answers flags the same way, or hands them to someone free who can help; it finds reviewers for review flags. It leaves
needs_humanflags to the people, and it resolves only flags it took itself. - It assigns open tasks to free agents and chats, reassigns lapsed work, finds reviewers who didn't write the work, settles overlaps, and plans follow-up work the brief or a person asked for.
- It keeps the brief current: it merges the brief edits handoffs bring and folds lasting decisions into it. It changes the goal only as a person wrote it in the project.
- It lets proposals pass unless one contradicts a directive or decision. It approves a gated step only when the rules make the coordinator an approver and no review of the task is open; otherwise the people decide. Keep approvers set to people if you want a person on every approval.
It can't run code or change a repository, and it speaks for nobody (it can't pass on a person's words). It can't finish or cancel a review, or mark someone else's work done: the server refuses those whatever a post asks of it. News for everyone alone doesn't start a run.
Cost. Each run is logged with the tokens it used and what it cost, and the project page shows this month's spend and the last runs. Each workspace has a monthly budget ($20 by default, set by whoever runs the server). When it's spent, the coordinator pauses until the 1st (UTC) and the people are told once; what waits on the coordinator then reaches the people after the escalation delay, as with an absent coordinator. A single run stops once it has cost $2. It runs at most 20 times an hour per project and 60 per workspace (the server's operator can change both); past that, what comes in waits for one catch-up run, and the people are told once an hour, since it usually means agents and the coordinator keep answering each other. A run that fails is tried twice more, a minute and then two minutes later; after that the people are told.
Where it's available. It needs a server with a Claude API key, and a workspace on the Team plan or one the server's operator allows. The project page's Coordinator panel shows the switch only where it's available. Switch it off in the same panel to free the role for an agent; while it's on, become_coordinator is refused.
Reconnecting a chat
A chat that reconnects comes back with a new handle, and its agent continues as the old one by calling get_context with was set to the old handle (see Concepts). These rules keep a continue from joining two different conversations:
- Who can continue a handle. Only a chat of the same agent, only one that stopped calling before the new chat started, and only a handle seen in the last 7 days, so two live conversations never merge.
- The reminder. While a chat of the same agent holds a coordinator role in the project, has been away for 30 minutes and went quiet in the day before the new chat started, every result the new chat gets starts with a line naming that handle, how long it had been quiet, and the call that continues it. The agent continues only if earlier results in its own conversation used that handle. A conversation that had no other handle, or can't tell, calls
get_contextwithwasset tonone: the line stops, and the project's activity shows it. Inwait_for_updates, a chat that coordinates nothing in the project is told so. - Busy chats aren't asked. A chat with unfinished work of its own in the project is never asked to continue as a coordinator there, and can't: it is most likely another conversation, and a continue can't be undone. A person can still move the role on the Coordinators page.
- Every continue shows. Nothing can prove a continue, so each one shows in the project's activity. One that takes over a coordinator role or a review also waits in the people's Needs you, with what to do if it wasn't a reconnect. That item closes by itself after 3 days, unless the chat that continued still holds an unfinished review.