Skip to content

Replay each document's draft log in the corpus sweep - #27

Merged
peterbjohnson merged 10 commits into
mainfrom
wb/t27
Sep 21, 2026
Merged

peterbjohnson merged 10 commits into
mainfrom
wb/t27

Conversation

@peterbjohnson

Copy link
Copy Markdown
Member

in2lambda-agent corpus --replay reruns each set's saved spec and no fixing round, so a document the rounds repaired in the spec-writing sweep replays to faulted, and the replay sweep (t21's gate) reports 0 built over ExampleContents though the sweep built them. in2lambda's draft log exists for this: it holds every command with its ranges and no field values, and in2lambda draft replay rebuilds a draft from the frozen source and the log without the model.

During a sweep, after the last round, copy each document's log (the log list of its draft, nothing else - the fields hold the document's text and must not leave the corpus) to --specs beside the set's spec as <document>.commands.json. Under --replay, after spec run, execute those commands in order through in2lambda's draft commands (package.py already runs one command; run the list, refusing on the first error and recording it as the row's reason), then validate and build as now with no model call. A document whose log replays to a clean report is built. Update corpus.py's docstring and the README's corpus section: a set's spec and its logs are what a sweep keeps, and a replay is the spec, the logs and nothing from the model. Tests: a sweep with a fake backend whose round runs one command writes the log file; a replay with no backend at all builds that document. Done when corpus <ExampleContents> PHYS40002 --replay builds every document the last sweep built, with zero model calls, and t21's baseline for ExampleContents can be written from it.


Workbench ticket t27.

@peterbjohnson
peterbjohnson merged commit fc905ae into main Sep 21, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant