Expand description
Everything an agent process is told, in one place.
A worker’s assignment arrives over two channels, and they answer different
questions. The prompt is how: the standing rules the worker operates
under, delivered as argv when the process is spawned. The brief is
what: this ticket, this branch, this stage, served over the worker
socket and re-readable at any time, which is what makes it the recovery
path for an agent that has compacted its prompt away. prompt holds the
first, brief the second.
The dependency rule is one-way. This module composes text from facts handed to it and from committed files in the repository; it reads no database, takes no clock, and spawns no process. The daemon edge resolves the facts and calls in, never the reverse.
Structs§
- Failure
Context - The failure a backward edge jumped on, recovered from the run’s persisted evidence.
Enums§
- Worker
Role - Which worker is reading the brief.
Constants§
- BACKWARD_
CONTEXT_ LINES - How many lines of a failed stage’s output a re-entered stage is shown. Long enough for a test failure’s tail, short enough that the block cannot crowd the ticket out of the prompt.
- PANEL_
REVIEWER_ INSTRUCTION - The bootstrap prepended to a panel reviewer’s prompt. A reviewer is not the ticket’s worker: it reads, it does not write, and its one job is the report.
- REVIEW_
PROMPT_ PATH
Functions§
- check_
label - How a stage’s
result_checkis named in the brief’s stage block. - compose_
worker_ prompt - definition_
of_ done - What the executing stage turns on, as the brief states it.
- panel_
prompt - The prompt every seat is handed, read from the committed file the panel names. One prompt for the whole panel: reviewers who were asked different questions do not produce comparable answers, so a quorum over them would count nothing in particular.
- previous_
attempt_ block - The “previous attempt failed” block appended to a re-entered agent’s prompt. Delimited on both sides because everything inside it is untrusted process output that must not read as further instructions.