Add cc-ci-upgrader agent: observable one-shot weekly upgrade-run agent
The weekly upgrade run now executes inside a dedicated, remote-control agent (cc-ci-upgrader) — viewable/steerable at claude.ai/code like the Builder — rather than buried in headless cron output. - launch-upgrader.sh: spins up the cc-ci-upgrader tmux session under --remote-control with a kickoff that runs /upgrade-all (DEFAULT mode) to completion. On finish the agent STOPS and stays idle (does NOT self-terminate) so the run + summary stay reviewable in the web UI. `start` = use-or-create: leaves an in-flight (busy) run alone, else clears a finished/idle/wedged session and runs fresh; `fresh` always restarts. UPGRADER_ARGS passes flags (e.g. --dry-run); never --with-tests. - launch.sh: orchestrator_alive() now also skips the cc-ci-upgrader remote-control name, so the upgrader job isn't mistaken for the orchestrator. - upgrade-all skill: documents it runs as the cc-ci-upgrader agent; the weekly cron invokes `launch-upgrader.sh start` (not /upgrade-all inline). - Phase 5: V8a verifies the agent lifecycle (launch → run to completion → stay idle/viewable → next start clears it); V9 stops the verification session. - cron memory: weekly task = launch-upgrader.sh start at 0 3 * * 6 UTC. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -60,8 +60,16 @@ and **close every PR opened during verification afterward** — do not pollute r
|
||||
surfaces "tests look stale" PRs in its own summary section, runs **sequentially with teardown**
|
||||
between recipes, and the summary leads with the PR list. Confirms the weekly cron never
|
||||
auto-edits tests.
|
||||
- [ ] **V8a — the `cc-ci-upgrader` agent.** `cc-ci-plan/launch-upgrader.sh start` spins up a
|
||||
remote-control `cc-ci-upgrader` session (viewable at claude.ai/code) that runs `/upgrade-all`
|
||||
(DEFAULT) **to completion, then STOPS and stays idle** (does NOT self-terminate) with the
|
||||
summary visible. A second `start` while a run is **in flight (busy)** leaves it alone; a `start`
|
||||
against a **finished/idle (or wedged)** session **kills it and runs fresh**. (Use
|
||||
`UPGRADER_ARGS=--dry-run` for a cheap check, then a real small-set run.) This is exactly what the
|
||||
weekly cron invokes — verify the cron-equivalent path end-to-end.
|
||||
- [ ] **V9 — cleanup.** Every PR opened during verification (recipe + any cc-ci test PR) is **closed**
|
||||
and any sandbox deploy is **torn down**; the box is left clean.
|
||||
and any sandbox deploy is **torn down**; the verification `cc-ci-upgrader` session is stopped
|
||||
(`launch-upgrader.sh stop`); the box is left clean.
|
||||
|
||||
## 2. Method / notes
|
||||
- **Sandbox first.** Prefer `custom-html-tiny` / a throwaway recipe for V3–V8 so real recipe mirrors
|
||||
|
||||
Reference in New Issue
Block a user