Repository navigation
feat(loop): show a running unit's progress, and notify when the driver stops (FEAT-LOOP-2026-0252) - #3627
Merged
Conversation
Feature: FEAT-LOOP-2026-0252
Feature: FEAT-LOOP-2026-0252
Feature: FEAT-LOOP-2026-0252
… driver lines Feature: FEAT-LOOP-2026-0252/T01
Feature: FEAT-LOOP-2026-0252/T02
Feature: FEAT-LOOP-2026-0252/T03
Feature: FEAT-LOOP-2026-0252/T04
Feature: FEAT-LOOP-2026-0252
…inal gate) Feature: FEAT-LOOP-2026-0252
… re-arm G1-CLOSE Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Feature: FEAT-LOOP-2026-0252
Feature: FEAT-LOOP-2026-0252/G1-CLOSE
Feature: FEAT-LOOP-2026-0252
Feature: FEAT-LOOP-2026-0252
…e-checkout byte offset (#3626) The offset into events.jsonl was taken before run() checks out the feature branch, so a checkout to a branch with a different log either counted an older run's escalation or skipped this run's own lines. Select the events stamped at or after the run's start instead. Two tests drive loop.main() through a real checkout in each direction. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Feature: FEAT-LOOP-2026-0252
Feature: FEAT-LOOP-2026-0252
Feature: FEAT-LOOP-2026-0252/G1-CLOSE
Feature: FEAT-LOOP-2026-0252
Feature: FEAT-LOOP-2026-0252
Feature: FEAT-LOOP-2026-0252
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
FEAT-LOOP-2026-0252. While
specfuse-loopruns, an operator can now see which unit, attempt, phase and verification gate is running and for how long, and is notified once when the run stops.agent_session_started,agent_session_finished,gate_startedandgate_finishedare appended toevents.jsonlas they happen, and the driver prints one plain line for each (no\r, no ANSI).<feature>/work/STATUS.json(never committed) is refreshed by a heartbeat (defaults.heartbeat_seconds, default 30). It carries the unit, attempt, phase, gate, elapsed time and files touched.specfuse-loop --watch [--feature F]: follows a run from another terminal and reports a stale status.halted,awaiting_review,complete,errororstopped), sent through the existing webhook and through the newescalation.notify_command. The command runs as an argument list withSPECFUSE_*environment variables and a 30 s timeout; a failing command never changes the run's exit code.dispatch()and theattempt_outcomepayload are unchanged.Close
not_meton [FEAT-LOOP-2026-0252 follow-up] Definition of done clause 6 (stop reason when the event log changes duringrun()) #3626: the stop reason was read past a byte offset taken before the run's branch checkout. That is fixed on this branch by selecting events by timestamp, and tested with a real checkout in both directions.met, and the judge agreed.loop.py,arm_eval.py,agent_policy.py, the driver-event schema, theverification.ymlexamples).RETROSPECTIVE.mdandFOLLOW-UPS.mdin the feature folder.Closes #3626.
Pending learnings (needs promotion)
across a branch checkout. "What this run wrote" was read as everything in
events.jsonlafter the byte size taken at the start of
run().run()can then switch to the featurebranch, which holds a different log, so older lines counted as new ones and new ones were
skipped. The test for "earlier runs are not read" kept one file for the whole run. When a
unit reads "only what this run wrote", list what can replace the file between the two
reads (checkout, reset, merge), and test at least one of them.
put back. For [FEAT-LOOP-2026-0252 follow-up] Definition of done clause 6 (stop reason when the event log changes during
run()) #3626 the re-close restored the byte-offset reader in a temporary copyand ran the new real-checkout tests there: both failed, with the same two wrong stop
reasons the first close had seen. A green run alone would not have shown that the
fixture's checkout really changed the log. Selecting a run's records by a value each
record carries (here its timestamp) held across the checkout, but it relies on the
clock, so state that limit.
To promote: read each entry above, copy the accepted ones into
.specfuse/LEARNINGS.md, and leave each rejected one inLEARNINGS-pending.mdwith a note. Planning never readsLEARNINGS-pending.mddirectly.🤖 Generated with Claude Code