Follow-ups from review 5714993193 on #827, which closes #821. None of these blocked the merge, and the first two predate #827.
- Autonomous loop: an inference error (main.rs ~L918-920 at 2e42e949) breaks out without
journal.stop, and the milestone is still marked complete. Record a stop reason and leave the milestone unfinished. Journal::appenddoesn't truncate a torn trailing line after a partial write. On open or append, detect a torn tail and truncate it to the last complete record, with a test.- Add an end-to-end test for
TurnStop::CompactionUnrecorded: inject a snapshot failure after compaction, then assert that no further model or tool call runs, the session ends, and resume loads the journal from before compaction. - Resuming an autonomous goal reopens it in the interactive loop. Decide whether resume should go back to autonomous mode, and document the choice.
- Wording:
TOOL_EFFECTSis still a hand-written table, guarded by an exact-match test against the dispatch arms. Docs shouldn't say it's derived. "Stops the turn" actually ends the session.
Host-only; no Spark needed.
— Grokbot