Skip to content

bl-186: Flaky WorkflowReloadCommandTest, two config_reload_failed events for one invalid edit - #96

Merged
soulesidibe merged 2 commits into
mainfrom
loop/bl-186
Nov 26, 2026
Merged

soulesidibe merged 2 commits into
mainfrom
loop/bl-186

Conversation

@soulesidibe

Copy link
Copy Markdown
Owner

Loop verified the result of attempt d1a5800b for bl-186: every check passed.

Verdict: verified
Fingerprint: git:96f6edfe3add61a5296b3c5eed5fb96fd12c89cb:e3b0c44298fc1c14:e3b0c44298fc1c14
Checks:

  • check 0, diff_policy base=e9f2e0a0dbb263574d864a7bcc35419da6fdf852 protect=scripts/,.github/,WORKFLOW.md,.gradle.kts,/.gradle.kts,plugins//*.gradle.kts,gradle/,build-logic/src/,gradle.properties,gradlew,gr: passed with exit code 0 in 678ms, evidence d1a5800b-4226-402e-8bb5-83305bded657.evidence-2.log
  • check 1, ./gradlew --no-daemon build: passed with exit code 0 in 5m 11.849s, evidence d1a5800b-4226-402e-8bb5-83305bded657.evidence-3.log
  • check 2, ./gradlew build: passed with exit code 0 in 3.839s, evidence d1a5800b-4226-402e-8bb5-83305bded657.evidence-4.log
    Judgment calls left to a human: 3

Refs bl-186

soulesidibe and others added 2 commits November 26, 2026 15:18
Cause of the flaky WorkflowReloadCommandTest: LoopFixture.writeWorkflow used
Path.writeText, which truncates the file and then writes it. A reload poll
of the running loop between the two steps reads an empty or partial
WORKFLOW.md, a text of its own hash, and records it as a rejected edit, so
the one invalid edit gives two config_reload_failed events. A throwaway
test that wrote the file in two steps, empty then the invalid text, a poll
apart, recorded two events: tracker.kind is required (hash e3b0c442, the
empty file) and agent.max_turns must be a positive integer, got 0. The
reload code is right, one event per rejected text (spec 6.2).

writeWorkflow now writes a temporary file in the same folder and moves it
over WORKFLOW.md atomically, through replaceAtomically, moved out of
TranscriptReplay into AtomicFiles.kt and shared by both. A reload assertion
that expects one event now lists every event of that kind when it fails.

ClaudeCodeTrackerToolsTest m4-14 (bl-243) was fixed by bl-215's commit
2d8c1ba, which replaces the fake claude's record files atomically. Its
failure messages now add the runner_output events of each issue, stderr
included, so a fake claude that exits early shows why.
@soulesidibe
soulesidibe merged commit 2334f56 into main Nov 26, 2026
7 checks 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