Repository navigation
auto-claude 1.0.0: absorb goal-mode, deploy to live, self-healing watchdog - #37
Merged
Merged
Conversation
…ing watchdog goal-mode's loop moves into auto-claude (hooks/loop.ts, evaluator.ts, guard.ts). The driver starts each milestone itself, so the gate credit, goal-loop.base and the `/goal-mode loop on` hand-off are gone, along with the stalls they caused. goal-mode's session goals are dropped in favour of Claude Code's own /goal and ProposeGoal; `/goal-mode loop on` becomes `/auto-claude start --queue` (build only). The run now ends live. The plan must say how the repository deploys (Deploy, Smoke check and CodeQL lines, or `Deploy: none (<reason>)`); the driver deploys after each merge and smoke-checks it. A deploy whose script has not landed yet waits, and a failed deploy queues a repair milestone from the default branch instead of stopping the run (3 failures in a row stop it). A committed .claude/auto-deploy.json still wins. Stalls measured in vega-agent, CC-Router, de-artifact and intrect-marketing are handled instead of handed to the person: - only required checks decide a PR (a red optional check held one 16 h); - a lost merge reply is looked up again; - an SSH push refused goes over https; a repeating ship error goes to the model at 5 checks and is held at 10; a closed PR is reopened once; - CI that never finishes is re-run once, then held; two holds for one cause stop the run; - a milestone open in a quiet session is prompted again at 3, 6 and 12 min (turn.start/turn.complete), then blocked so the run goes on; - planning that ends without a plan is reminded 2 min later; - AskUserQuestion, EnterPlanMode and ProposeGoal are refused during a run, and a session /goal is cleared when it starts; - idle notices say what the watchdog is doing, never "check status". A run in flight when 1.0 loads takes its open milestone over from goal-loop.log, and new branches number above existing goal/NN-*. harness 0.3.4 renames its references to the loop.
…evidence, plan-phase-only auto_plan_ready, token guard (CodeQL js/redos), timed holds, CI re-run waits for cancel
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.
What
auto-claude/hooks/{loop,evaluator,guard}.ts. The driver starts each milestone itself, so the gate credit,goal-loop.base,/goal-mode loop onandshared/loop-protocol.jsonlare gone. goal-mode's session goals are dropped: Claude Code's/goalandProposeGoalcover them./goal-mode loop onbecomes/auto-claude start --queue(build only).Deploy:,Smoke check:andCodeQL:lines, orDeploy: none (<reason>). The driver deploys after each merge and smoke-checks it..claude/auto-deploy.jsonstill wins over the plan./auto-claude status". Six stall patterns measured in vega-agent, CC-Router, de-artifact and intrect-marketing each have a test:AskUserQuestion,EnterPlanMode,ProposeGoalandset_goalare refused during a run, and a session/goalis cleared when it starts.Deviations from the approved plan
.claude/goal-loop.logstays as the driver's event channel. Its cursor reader is tested, and harness watches the file. The loop writes it and the driver reads it in the same process.Verification
bash scripts/ci.shpasses locally on Claude Code 2.1.322: auto-claude 121, harness 165, model-tier 63, refactor 35, plus tsc and sync-shared.auto-claude/found 1 real defect and 1 noise item:js/redosin the guard's read-only regex was real. It is replaced by a token check with a 5000-flag test case.js/useless-assignment-to-localwas noise, cleaned up anyway.testing/auto_e2e_261111_v1, Claude Code 2.1.322, local CI,deploy.shset to fail once) passed:Deploy: bash deploy.sh,Smoke checkandCodeQL: python, all written by the model.Rollout
Disable
goal-mode@claude-modin~/.claude/settings.jsonin the same step asscripts/deploy.sh. While it stays loaded, its ownset_goalnudge and Stop hook still run.