Fix replay policy wire commands and register the agent smoke tool

Send complete op/steps/value records to the Lean decoder for every operation. Preserve companion exit status and a bounded stderr tail on transport failure. Register the smoke fixture read tool explicitly without weakening the allowlist or changing its output assertion.

Validation: 462 library tests and 312 gold tests passed. The repository regression run passed 946 tests with two existing ignored experiments; the previously passed 1000-document scale test was not repeated.
This commit is contained in:
cflmy committed 2026-11-08 21:50:01 +08:00
1 parent 5080136d65
commit 16c44588d5
5 files changed
+216 -50

No files matched your search

+16
View File
@@ -5,6 +5,22 @@ reply acceptance and final-history exhaustion. The Rust transport adapter does
not contain a second implementation of these decisions. Ordinary recording
does not start a policy process.
The JSON-lines transport sends a complete `PolicyCommand` record on every
operation: `op`, `steps`, and `value` are always present. Lean structure defaults
are not missing-field defaults for the derived JSON decoder. In particular,
initialization and finish still need an empty `value`, while prepare/receive
still need an empty `steps` array:
```jsonl
{"op":"init","steps":[],"value":""}
{"op":"finish","steps":[],"value":""}
```
The Rust adapter uses one typed wire record for all four operations. Transport
failures stop the companion and include its exit status and a bounded stderr
tail, so a decoder error is not reduced to a closed-channel message. Neither
this transport nor its diagnostics replace Lean's replay verdict.
Build the companion before building or testing strict replay:
```sh