Repository navigation
Driver live output, and keep files added between runs (0.17.0) - #17
Merged
Merged
Conversation
preexisting was written once, at the phase's first start, so on a rerun the driver took any file that appeared since for build output: it failed the stage as "changed files outside the stage" and restore() deleted the untracked files and reverted the tracked edits. A resumed phase lost the sandbox's untracked .sandbox/ files this way. The driver now runs build-check.py start on every run; on resume start adds the paths modified since to preexisting, other than stage files and the plan's. start exits 5 for a brief changed without a higher revision, so that case still halts brief-changed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Stage: 01.1 Plan: .ai-scratchpad/plans/driver-live-output/01-driver-live-output Tier: middle Tool: claude-code Model: opus Effort: high Attempt: 3 Tokens: 164076 Cost: 0.31 Tool-Calls: unknown Earlier-Attempt: opus high 124952 changed files outside the stage Earlier-Attempt: fable low 95458 changed files outside the stage Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Stage: 01.2 Plan: .ai-scratchpad/plans/driver-live-output/01-driver-live-output Tier: middle Tool: claude-code Model: opus Effort: high Attempt: 1 Tokens: 391287 Cost: 0.56 Tool-Calls: unknown Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Stage: 01.3 Plan: .ai-scratchpad/plans/driver-live-output/01-driver-live-output Tier: middle Tool: claude-code Model: opus Effort: high Attempt: 1 Tokens: 81604 Cost: 0.18 Tool-Calls: unknown Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Fixes-Stage: 01.2 Plan: .ai-scratchpad/plans/driver-live-output/01-driver-live-output Tier: middle Tool: claude-code Model: opus Effort: high Attempt: 1 Tokens: 146632 Cost: 0.22 Tool-Calls: unknown Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Fixes-Stage: 01.2 Plan: .ai-scratchpad/plans/driver-live-output/01-driver-live-output Tier: middle Tool: claude-code Model: opus Effort: high Attempt: 1 Tokens: 130173 Cost: 0.26 Tool-Calls: unknown Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Fixes-Stage: 01.2 Plan: .ai-scratchpad/plans/driver-live-output/01-driver-live-output Tier: middle Tool: claude-code Model: opus Effort: high Attempt: 1 Tokens: 117555 Cost: 0.21 Tool-Calls: unknown 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.
Two changes to the phased-delivery driver.
Keep files the user adds between driver runs (0.16.1, 99bd847).
preexistingwas written once, at the phase's first start. So on a rerun, any file that had appeared since looked like build output. The stage failed as "changed files outside the stage", andrestore()deleted the untracked files and reverted tracked edits. A resumed phase lost the sandbox's untracked.sandbox/files this way. Nowbuild-check.py startruns on every driver run, and on resume it adds paths modified since topreexisting, other than stage files and the plan's. A brief changed without a higher revision makesstartexit 5, so that case still haltsbrief-changed.test_resume_after_haltcovers it.Live driver output (0.17.0).
run-phase.pywent quiet on stderr while a stage's checks ran.build-check.py record --livestreams each check's command, its output lines and its exit code to stderr as[check-NN.n]lines. Without--live, record stays silent, so the session's own record call for a session-only stage doesn't fill its context.--live, forwards those lines as they arrive, and prints one[driver]line per step: stage build, checks, result, commit, reject, revise, review, fixes, finish, halt.\rprogress output was split into lines that never reached the feed, check output lines had no test, and a "checks" line was printed when no check ran.Tests:
python -m pytest -q -p no:cacheprovider plugins/phased-delivery/tests, 151 passed locally.🤖 Generated with Claude Code