Skip to content

Driver live output, and keep files added between runs (0.17.0) - #17

Merged
bryanwieg merged 7 commits into
mainfrom
driver-live-output
Nov 27, 2026
Merged

bryanwieg merged 7 commits into
mainfrom
driver-live-output

Conversation

@bryanwieg

Copy link
Copy Markdown
Owner

Two changes to the phased-delivery driver.

Keep files the user adds between driver runs (0.16.1, 99bd847). preexisting was 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", and restore() deleted the untracked files and reverted tracked edits. A resumed phase lost the sandbox's untracked .sandbox/ files this way. Now build-check.py start runs on every driver run, and on resume it adds paths modified since to preexisting, other than stage files and the plan's. A brief changed without a higher revision makes start exit 5, so that case still halts brief-changed. test_resume_after_halt covers it.

Live driver output (0.17.0). run-phase.py went quiet on stderr while a stage's checks ran.

  • build-check.py record --live streams 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.
  • The driver passes --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.
  • The stdout report and the exit codes are unchanged.
  • The review found three problems, all fixed: \r progress 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

bryanwieg and others added 7 commits November 26, 2026 23:48
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>
@bryanwieg
bryanwieg merged commit 7aaa87e into main Nov 27, 2026
1 check 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