flowchart TB
accTitle: The peer-line lifecycle
accDescr: SYN opens a peer line. ACK keeps it open. FIN closes it and NAK declines it. SYN with the prior key starts a linked line with the same controls.
S["SYN"] --> P["open line"]
P -->|"ACK: seen or continue"| P
P -->|"FIN"| F["closed"]
P -->|"NAK"| K["declined"]
F -->|"SYN #KEY"| N["new linked line"]
K -->|"SYN #KEY"| N
N -. "same controls" .-> P
Agent work has a place
I wanted several coding agents to keep Grit Paintball moving without turning chat into their scheduler or memory. The game crosses Unity, native tools, a headset, and several kinds of test equipment. An agent could make progress in one part while quietly losing the reason for the work, colliding with another agent, or forgetting a correction after its conversation was compacted.
Spice is the Rust operations console I built through Infima Labs, my small personal business, to supervise that work. One operator can watch agents in real Git worktrees, leave instructions in the journal, and walk away without requiring a conversation or browser tab to stay alive. The name stands for Software Production, Integration, and Control Environment.
Accepted intent survives the conversation
A correction should not disappear merely because an agent saw it. Spice records operator steering in its journal before trying to deliver it. Reading an item does not clear it. The item remains live until the agent answers its key with ACK, FIN, or NAK, the operator cancels it, or its lifecycle reaches another recorded outcome. The answer comes from the agent’s authored text, not from a separate receipt button.
Agents use that same authored text to talk to one another, but a conversation is a line rather than a pipeline. SYN ADDRESS: BODY opens a line without retiring anything. On an open line, ACK KEY alone marks the message seen; ACK KEY: BODY acknowledges it and continues the line, FIN KEY closes the line and may carry a final body, and NAK KEY: REASON declines it. SYN #KEY: BODY opens a new line to the sender of an input the agent received, even after the original line closes. For operator direction, that means the operator. A reply on the closed line itself delivers no body.
Addressing the sender and recording a message at a task are separate. SYN #TASK: BODY records the body in the task room without sending steering. An occupied listener can get an unread marker; a vacant lane does not wake. SYN #KEY #TASK: BODY does both in one packet: it opens a line to the sender and records the same body in the room.
That distinction matters. Delivery proves only that the instruction reached an agent boundary. On a peer line, a bare ACK records only that a message was seen; a body-bearing control preserves what the agent said and where it appeared. Neither claims that the promised edit or test happened. The task and Git record must supply that evidence.
The pinned steering contract and conversation grammar keep direction, conversation, and completion separate. The small surface is intentional; Which ACKs count as answers follows the recognition rule, and Nine characters that sort like time explains why its compact keys still sort.
Work has a place, not just a prompt
A lane is where I operate. Its current model process is an occupant. Replacing that occupant need not replace the worktree, task, pending steering, or evidence already attached to the lane.
Tasks give the next piece of work the same treatment. A task has a small workflow, while its claim is a separate record of who currently possesses it. Readiness is derived from the task, dependencies, route, and available phase slot rather than stored as one more flag. Every accepted phase advance is a journal fact, including an advance that changes no files. Git integration happens only at the task boundaries that own it.
This is enough for spice task next to choose work without asking an agent to reconstruct the queue from chat history. It is also enough to stop cleanly: a released task can retain its commits and unfinished changes for the next valid claimant. The task loop defines those states. Why rare words route Spice work explains where lexical scores help without deciding what a lane is eligible to do.
One journal owns the answer
The browser is a view of the system, not another scheduler. One resident process holds the kernel lock and is the sole writer to the SQLite journal. A command commits its facts and current heads together. The transcript tape retains what the model and tools actually emitted, but it does not become a second source of task or steering state.
That split is the center of Spice. Transcripts are evidence. The journal owns accepted intent. Browser surfaces can be rebuilt from those sources without being allowed to invent either one. The repository’s authority map names the owner of each kind of fact, while the implementation profile ties that model to the executable.
Grit owns the commands that know how to build the game, run it on a headset, and interpret its artifacts. Spice admits repository commands into its CLI only after checking their configuration and collisions with built-in commands. It coordinates the work without pretending to understand every project it can operate.
The edges stay explicit
Spice is for cooperative agents running as one operating-system user. Capabilities bind actions to a lane, occupant, and session epoch; they are workflow interlocks, not a security boundary between mutually hostile processes. Remote access belongs in transport around the console, not in a fiction that the local fleet is a multi-tenant service.
Spice exercises these contracts on its own development. Their limits have produced narrower accounts: putting the web rack inside the executable, turning open questions into authorized work, and inviting another agent into work already in progress. The overview stays simpler: accepted intent stays in the journal, work has an owner and a place, observations remain evidence, and one authority decides what the system means.
