Merge: short essential memory per stage; full history on demand
This commit is contained in:
@@ -4,8 +4,8 @@ Definitions are Markdown made only of `# stage KEY` headings and fenced blocks.
|
||||
Scheduling belongs to separate saved run configurations, not `# settings` or
|
||||
schedule blocks in the definition. No unrelated prose outside blocks. The first
|
||||
stage receives the run prompt in its `input.md`; later stages receive
|
||||
the previous turn's output. Every visit also gets a `memory.md` of completed
|
||||
turns. There are no stage `input`, `output`, or `memory` blocks: the model reads
|
||||
the previous turn's output. Every visit also gets a short `memory.md` (essential
|
||||
memory, inlined in the prompt) and a full `history.md` of completed turns. There are no stage `input`, `output`, or `memory` blocks: the model reads
|
||||
the turn files and writes free-form markdown, and only the `# outcome` section is
|
||||
interpreted. Read `references/control.md` for runner-enforced limits.
|
||||
|
||||
@@ -46,13 +46,34 @@ prompts/outputs. Read `references/control.md` for the exact format.
|
||||
|
||||
## Result format
|
||||
|
||||
Each visit gets `input.md`, `memory.md`, `output.md` and `private/` in
|
||||
`<run>/stages/<seq>-<stage>/`, plus the run-level shared `public/`. The model
|
||||
reads input and memory and returns the complete `output.md` markdown. The only
|
||||
required section is the outcome heading, followed by one of the stage's declared
|
||||
edge words:
|
||||
Each visit gets `input.md`, `memory.md`, `history.md`, `output.md` and
|
||||
`private/` in `<run>/stages/<seq>-<stage>/`, plus the run-level shared
|
||||
`public/`. What a stage receives:
|
||||
|
||||
- `memory.md` (essential, hard cap 4 KB, always inlined in the prompt): the run
|
||||
task, the previous stage's handoff with its outcome and public/ additions, a
|
||||
one-line-per-stage outcome ledger (latest visit; a revisit is marked) and the
|
||||
server-captured changed files. A stage must be able to work from this alone.
|
||||
- `input.md` (on demand): the full run task and the previous turn's full output.
|
||||
- `history.md` (on demand, never inlined): every completed turn in full, the
|
||||
format `memory.md` had before essential memory existed.
|
||||
|
||||
Stages with `read` are told the two on-demand paths; stages without it get
|
||||
`input.md` inlined too (capped at 32 KB) but never `history.md`.
|
||||
|
||||
The previous stage's handoff is its `# handoff` section (any level, up to the
|
||||
next heading of the same or higher level); without one the server uses the head
|
||||
of its output, marked as such. Either is truncated to fit with a pointer to
|
||||
`input.md`, so nothing depends on the model following the convention. The
|
||||
prompt asks every stage to start its output with a short handoff: what it did,
|
||||
files changed, open issues or findings. The only required section is the
|
||||
outcome heading, followed by one of the stage's declared edge words:
|
||||
|
||||
````markdown
|
||||
# handoff
|
||||
|
||||
Fixed both review findings in cache.go; tests pass. No open issues.
|
||||
|
||||
# outcome
|
||||
|
||||
success
|
||||
|
||||
Reference in New Issue
Block a user