mirror of
https://github.com/okieselbach/AutopilotMonitor.git
synced 2026-10-24 04:32:32 +00:00
913dfa13fe
IME re-runs a failed platform script on later check-ins, and the agent's first pass reads all of AgentExecutor.log before the IME log, so several runs of one policy shared one slot: the first IME result took the LAST run's exit code and output (session eff1b413: the bootstrap script "Failed (exit 0)" with the stdout of its successful retry), every later result went out without an end block. The exit-code fallback said Success for exit 0 with stderr and Failed for exit 1 without, which IME never does. - A later timestamped executor start parks the previous run of its policy (persisted, max 64); an IME result pairs with the run of its policy and user that started last before the result line; earlier parked runs of the same user resolve then, so emits keep run order. - Invocation markers carry the run id; the emitted marker only rises; no dedup path deletes a live run; a parked emit never takes the later run's D-316 register entry. - Fallback: Success exactly when the stderr is empty, the exit code only when no stderr line was read; "write output done … error =" replaces the "error from script" snapshot, empty stdout too. Backfill replays fail on the old code; nine mutation proofs; agent suite 3,416 green. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>