Skip to content

fix(runs): say a trial once after a crash between its line and the record - #797

Merged
harenome merged 1 commit into
ThinkFlowLab:mainfrom
harenome:fix/trial-said-once
Dec 3, 2026
Merged

harenome merged 1 commit into
ThinkFlowLab:mainfrom
harenome:fix/trial-said-once

Conversation

@harenome

@harenome harenome commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator

Closes #765

What

  • Before trial lines, run.json saves pending: the lines, their log offset, their feed positions. No save, no line.
  • Lines stop at the first refused append.
  • Settling compares log bytes: whole lines move the feed, a cut line is removed, pending clears.
  • Looks, restores and log lines settle first; until then nothing is read on, no part ends, a log line waits.
  • Log format unchanged.

Touches

  • Execution._trial_lines, _save, log, _read_log, _follow; new _settle_said.

Verified

  • Main: one trial.end, no save, reload: twice.
  • New tests: kills at each line; redaction collisions; part lines; Stops; a feed away; refused appends, saves, truncation, reads; storage returning; a part's last output. Each fails before.
  • Suites, docs check.

Risk

Agents

  • Claude Code, Opus 5.5

@harenome
harenome marked this pull request as ready for review December 3, 2026 17:38
@github-actions github-actions Bot added the needs review Tests pass, no conflict, no verdict on its latest commit label Dec 3, 2026
@harenome
harenome merged commit 5f50d17 into ThinkFlowLab:main Dec 3, 2026
4 checks passed
@harenome
harenome deleted the fix/trial-said-once branch December 3, 2026 18:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs review Tests pass, no conflict, no verdict on its latest commit

Projects

None yet

Development

Successfully merging this pull request may close these issues.

A trial end can be said twice in a run's log when Nullius dies between the line and the record's save

1 participant