Skip to content

Partner without an empty seat

 8 min A task holder can recruit one partner without opening an empty slot: vacant lanes join immediately, occupied lanes consent through an expiring offer, and added capacity leaves with the claim.
Published

Nov 15, 2026

I had a task in progress and enough work for one more agent. I did not want to raise its completion target first.

A target is standing demand. If I changed the target from one participant to two, Spice would correctly keep looking for a second participating lane. That was useful when the work truly required two independent completions. It was the wrong contract for a narrower request: find one partner now, but do not leave an empty place if nobody joins or the partner later leaves.

The distinction became the center of Spice’s task invitation system. A request for help is not capacity, and an offer is not possession. The extra place appears only with the claim that fills it.

Joining capacity that already exists

Spice already represented collaborative work with a completion target for each phase. A target of two means that two distinct lanes must complete the round. While only one lane participates, the other place is open to ordinary allocation.

Writing an empty body to spice://task/TASK/join performs a direct join and consumes one of those places. Its CLI equivalent is spice task join TASK.

The join admission requires a held task, spare capacity in the current phase, and a joining lane that satisfies the task’s dependencies, environment, and participation rules. It creates an ordinary claim but never changes the target. If the operator asked for two participants and one releases or loses its claim before completing, that second place remains real demand.

An invitation starts from the opposite condition. The phase may already be full. Its holder is not revising the operator’s standing request; the holder is asking for one actual partner. A holder writes that request to spice://task/TASK/invite. Appending an occupant address as /ADDR selects that lane; without it, Spice selects one teammate. A nonempty body becomes a message to the invited lane in the task’s room; an empty body sends only the invitation. Each write is one request.

The CLI submits the same request:

spice task join [TASK] --invite[=ADDR]

Only a current holder of that phase can ask. The CLI may omit TASK to name the holder’s sole claim. An address may reach a lane on another team and cannot name the inviter. A lane from another team can instead join directly while an existing place is open. When the phase is full, it needs an addressed invitation from a holder; acceptance can grow the target. Neither path bypasses eligibility.

That gave the two operations separate meanings. A direct join fills capacity that already exists. An invitation may grow capacity, but only together with the partner who fills it.

Predict the two paths

An invitation is a real staffing mutation, not a cleanup-safe demonstration. The vacant-lane path can launch an agent, and freeing a later claim cannot undo work that agent already performed. Use the commands below only when a real task needs a partner. To inspect the contract without changing state, predict the result from the starting condition:

Starting condition First result Target
eligible vacant lane joined partner and any growth commit together
eligible occupied lane invited unchanged until acceptance
occupied lane declines or offer expires declined or expired unchanged
invitation-grown partner later leaves claim released shrinks toward operator demand

For an invitation you intend to make, choose an occupied teammate and keep the returned invitation key:

spice task join TASK --invite=ADDR
spice task show TASK
# On the invited lane:
spice task join KEY
spice task show TASK

Before the recipient answers, task show reports invited and the original target. After task join KEY, it reports joined, the partner claim, and any target growth together. If ADDR names a vacant lane, the first command returns joined immediately instead. The rest of the account explains why those two paths cannot leave an empty place behind.

Finding one partner

An unaddressed invitation stays inside the inviter’s team. The candidate selection removes lanes that already participate, hold other claims, cannot launch, or cannot satisfy the task. It tries launchable vacant lanes before occupied ones. Within those classes it uses the same retained-work relevance signal described in Why rare words route Spice work, followed by stable operational tie-breaks.

This is selection, not a broadcast. The first vacant lane whose complete claim can commit gets the work. If no vacant teammate can take it, Spice asks exactly one occupied teammate. It never sprays offers across the team and accepts the first answer.

An explicit address changes the search boundary, not the contract. It can name a lane on any team, which is useful when the holder knows who should help. The lane may be vacant or already running, but it must not already participate or hold another claim. It must also be eligible, launchable when vacant, and different from the inviter. In both forms, one request reaches one lane.

A vacant lane joins before it launches

A vacant lane has no occupant to ask. Waiting for consent from a nonexistent session would only turn the invitation into an unreliable reservation, so Spice joins it immediately.

Spice first holds the task’s resource shards as a reversible reservation. One guarded write then grows the current target if the phase is full, creates the partner claim and the new occupant, and records which lane joined. When that write commits, the reservation transfers to resident retention. Only then does the resident launch the agent. A failure to prepare the worktree, reserve the resources, or prove the current task and lane state releases the reservation and leaves none of the staffing changes behind.

That ordering closes an awkward gap. There is never a committed target of two followed by a best-effort attempt to create the second claim. The target growth and its owner enter the journal together. The launched agent wakes already holding the task.

The resource rule follows the task rather than pretending each participant is a separate workload. Shards already retained for the other participants count as available to the same task, so adding a partner does not require a duplicate pool merely because the first holder has it locked. The task retains those shards until its last participant leaves.

An occupied lane has to agree

An occupied lane is different because an agent is already there to decide. In that case the same request publishes one typed invitation. Nothing about task staffing changes yet: no target growth, no claim, and no resource transfer.

The offer names the task, phase and generation; the inviter’s lane, current occupant address, and exact claim; the recipient lane; and a ten-minute expiry. The recipient can accept by replying ACK or by running spice task join KEY; NAK declines. The inviter can cancel the directive and send another offer.

Each asking claim may have only one live occupied-lane offer. A repeated request, addressed or not, refuses and names the existing key, expiry, and cancellation command. This prevents one holder from accumulating several consents for a request that needs one partner. The limit belongs to the asking claim, not the task: several holders may each have one live offer. Each successful acceptance fills capacity that still exists or grows the target with its own partner claim. A vacant join commits immediately and creates no live offer. Once an occupied-lane invitation is accepted, declined, canceled, or expired, that holder can ask again.

Acceptance rechecks all of the authority captured by the offer. The task must still occupy the same phase and generation. The inviter must still hold the same claim from the same occupant address. The recipient lane must still be the lane named by the invitation and remain eligible to join. An invitation survives recipient reseating because it binds that lane’s lineage, but inviter claim or occupant loss expires it. A late answer grants no stale claim.

When the checks pass, one guarded operation grows the target if necessary, adds the partner claim, retains its resources, retires the invitation, records the acceptance, and sends the inviter the joined reply. The system never has to reconcile an accepted message with a claim that failed afterward.

The added place leaves with the partner

Spice remembers two target values: what the operator asked for and what the current round needs after invitation growth. They are deliberately not the same fact.

Suppose the operator’s target is one and an invitation adds a second participant. If that participant frees or loses the claim, the release transaction lowers the target to the greater of the operator’s request and the remaining occupancy. In the ordinary case it returns to one. The abandoned place does not become allocator demand for an unintended replacement.

If the operator had explicitly asked for two, the target stays at two and allocation may fill the opening. Operator demand survives a departure; invitation growth does not. The behavior follows the source of the capacity rather than the number that happened to be visible before the claim ended.

One mechanism, several surfaces

Task reads derive invited, joined, declined, or expired from the invitation and the task’s current heads. The URI, CLI, task show, and browser presentation expose that state without owning another copy.

An agent holding a Plan or Design phase cannot directly join another task. It may invite a partner into the phase it already holds; that partner receives the same board-only deliverable and no implementation commit authority.

The result is intentionally smaller than general staffing. One request reaches one partner. A vacant lane becomes a participant only when its claim is ready to commit. An occupied lane becomes one only after consent. The operator still owns standing targets, and every temporary increase stays attached to the claim that justified it.