stage turns: replace JSON results with file-based markdown turns
Each model visit now gets <run>/stages/<seq>-<stage>/ with input.md, memory.md, output.md, private/ and a shared run-level public/. The model reads the two input files, follows the stage's instructions verbatim and returns complete markdown; only the # outcome section is parsed. - add internal/turn layout, render and output parsing - write input.md/memory.md before a visit and output.md from the final message; inventory all turn files as stage artifacts - accumulate completed turns and system-written public file additions in memory, including across retries and resume - remove the JSON envelope, strict field validation, line format and the repair ladder for model stages - republish pipeline authoring prompts and docs in the new style Checks: go build ./..., go vet ./..., go test -count=1 ./..., gofmt -l .
This commit is contained in:
@@ -93,14 +93,12 @@ fire, which silently makes the reviewer's `rejected` control unreachable. The ru
|
||||
already counts the visits and stops at the cap, so neither loop needs new server
|
||||
code and no model counts visits.
|
||||
|
||||
Add a fenced `memory` map such as
|
||||
`{"task":"input.prompt","checks":"planner.checks"}` to select reviewer
|
||||
input without previous verdicts. Implementers can select
|
||||
`{"task":"input.prompt","plan":"planner.plan","feedback":"review.findings?"}`.
|
||||
`?` means omit if unavailable. A memory block replaces the previous-stage input;
|
||||
without it, existing previous-output handoffs are unchanged. Latest completed
|
||||
outputs are shared only within this run. Read provenance and routing overrides
|
||||
are retained in SQLite and exposed in run inspection/metadata.
|
||||
The previous turn's output and the run's accumulated `memory.md` are handed to
|
||||
each model stage as files; there is no `memory` map or field selection. Put the
|
||||
facts later stages need in free-form headings. Only the `# outcome` section is
|
||||
interpreted. Latest completed outputs are shared only within this run. Read
|
||||
provenance and routing overrides are retained in SQLite and exposed in run
|
||||
inspection/metadata.
|
||||
|
||||
These controls enforce counts/field selection, not semantic independence or every
|
||||
prose guideline. AI-assisted guidelines validation is not implemented.
|
||||
|
||||
Reference in New Issue
Block a user