Restore host setup and migration guide to current docs

This commit is contained in:
notplants
2026-11-23 20:05:13 +00:00
parent 2e9d1fdba8
commit b56e9daaae
9 changed files with 21 additions and 21 deletions
+4 -4
View File
@@ -2,7 +2,7 @@
- [Enroll gate fixtures must fail loudly](enroll-gate-fixtures-fail-loudly.md) — version-gate reads via lifecycle.deployed_identity, never None-into-if; post-host-merge deploy = --cc-ci-only after merge (staging obsolete)
- [Orchestrator host: Hetzner](orchestrator-host-hetzner.md) — runs on Hetzner cpx22; rebuild cmd, loops-service bounce, git-identity gotcha
- [Orchestrator host: Hetzner](../archive/original-build/memory/orchestrator-host-hetzner.md) — runs on Hetzner cpx22; rebuild cmd, loops-service bounce, git-identity gotcha
- [Push commits to remote](push-commits-to-remote.md) — push to git.autonomic.zone right after every commit in this repo
- [Regression canary cadence](regression-canary-cadence.md) — server E2E canaries run on polish/review/release, not every commit
- [Recipe-mirrors MUST be public](recipe-mirrors-public-org-blocker.md) — org public since ~2026-06, but /recipe-enroll created late mirrors (gitea, wordpress) private-from-birth, darkening report STATUS cells; flipped public + skill fixed 2026-09-14
@@ -13,10 +13,10 @@
- [Drone sqlite log extraction](drone-sqlite-log-extraction.md) — copy /data/database.sqlite from drone container, query builds→stages→steps→logs for full step output
- [plausible upgrade-base trap](plausible-upgrade-base-trap.md) — RESOLVED: PR#3 GREEN L4; lessons: check harness base version pre-!testme; backupbot v2 label syntax; TinyLog not FREEZEable; BEAM exit-0 needs restart_policy any
- [Swarm UpdateStatus convergence gotchas](swarm-updatestatus-convergence-gotchas.md) — N/N is not converged mid stop-first update; paused flag persists forever; only updating/rollback_started are active
- [Weekly upgrade queued after phases](weekly-upgrade-queued-after-phases.md) — 06-12 cron skipped; auto-runs /upgrade-all when phase queue (drone) finishes; don'\''t systemctl start the timer
- [cfold paused pending upgrade](cfold-paused-pending-upgrade.md) — cfold phase loops+watchdog STOPPED until /upgrade-all (cc-ci-upgrader) finishes; resume = restart watchdog (phase-idx 9)
- [Weekly upgrade queued after phases](../archive/original-build/memory/weekly-upgrade-queued-after-phases.md) — 06-12 cron skipped; auto-runs /upgrade-all when phase queue (drone) finishes; don'\''t systemctl start the timer
- [cfold paused pending upgrade](../archive/original-build/memory/cfold-paused-pending-upgrade.md) — cfold phase loops+watchdog STOPPED until /upgrade-all (cc-ci-upgrader) finishes; resume = restart watchdog (phase-idx 9)
- [proxy VIP exhaustion runbook](proxy-vip-exhaustion-runbook.md) — TODO after upgrade: enlarge proxy overlay to /16 (exhausts at /24=254 VIPs); root cause of discourse/ghost deploy wedges
- [ghost PR debug](ghost-pr-debug.md) — TODO after proxy fix: debug+fix the ghost upgrade PR (wedged on proxy VIP exhaustion; possible duplicate PR)
- [launch-system unification](launch-system-unification.md) — replacing 5 launchers + ~15 dotfiles with one agents.toml + agents.py; plan in cc-ci-plan/plan-unified-launch.md
- [launch-system unification](../archive/original-build/memory/launch-system-unification.md) — replacing 5 launchers + ~15 dotfiles with one agents.toml + agents.py; plan in cc-ci-plan/plan-unified-launch.md
- [orchestrator backend-switch gotcha](orchestrator-backend-switch-gotcha.md) — full claude↔opencode switch: kill watchdog first, fix all control files, env overrides files, pkill -f self-matches
- [cc-ci host rebuild procedure](cc-ci-host-rebuild-procedure.md) — how to nixos-rebuild the live cc-ci server (no self-service path; stage clone + copy sops secrets + drop .git + --flake .#cc-ci)
-34
View File
@@ -1,34 +0,0 @@
---
name: cfold-paused-pending-upgrade
description: "Phase cfold (custom/ folder collapse) is PAUSED until the running /upgrade-all finishes — must serialize, they conflict on CI"
metadata:
node_type: memory
type: project
originSessionId: 85355980-5e4f-4f90-b1ca-d0e4fe82f04b
---
**ACTION REQUIRED on supervision wakes:** the `cfold` phase (collapse functional/ +
playwright/ → custom/, plan-phase-cfold-custom-folder.md) is **PAUSED** — its loops AND
the watchdog were stopped 2026-06-11 ~22:55. phase-idx is preserved at **9** (cfold), spec
is the 10-phase `…drone;cfold`.
**Why paused:** drone completed 22:31 and the watchdog fired the queued weekly `/upgrade-all`
(session `cc-ci-upgrader`) — exactly as the operator queued it. cfold was added ~20 min
later and auto-started, ending up **concurrent** with the upgrade. They CONFLICT: both drive
real CI/`!testme`, cfold edits the harness (`discovery.py` + moves test files) the upgrade's
`!testme` builds depend on, and the upgrade's version bumps would confound cfold's
"levels unchanged" baseline. Must run serially.
**Resume condition:** once the `/upgrade-all` run in `cc-ci-upgrader` is DONE (read its pane/
log/summary to confirm it finished surveying+PRing all recipes — do NOT trust mere idle; a
slow `!testme` build can idle the upgrader for a while), resume cfold by restarting the
watchdog:
```
python3 -c "import sys; sys.path.insert(0,'/srv/cc-ci/cc-ci-plan'); import launch; launch.start_watchdog()"
```
It reads phase-idx=9 + the 10-phase spec → restarts the cfold loops (builder opus? no —
cfold has no per-phase model override, so sonnet). Then delete this memory.
The `cc-ci-upgrader` session must stay UP meanwhile (it's the in-flight upgrade). Note: a
host reboot would auto-restart loops+watchdog (cc-ci-loops.service, RESUME_PHASE=1) and
un-pause cfold prematurely — if a reboot happens before the upgrade finishes, re-pause.
-43
View File
@@ -1,43 +0,0 @@
---
name: launch-system-unification
description: Plan to replace 5 bespoke launcher scripts + ~15 dotfiles with one agents.toml + one agents.py driver
metadata:
node_type: memory
type: project
originSessionId: fc17c9c2-ab6e-4c11-856e-a6a6e160a0ec
---
The cc-ci agent launch system was 5 near-duplicate launchers (`launch.py` loops+watchdog,
`launch-orchestrator.py`, `launch-assistant.py`, `launch-upgrader.py`, `launch-report.py`)
each re-implementing claude/opencode backend plumbing, plus ~15 scattered dotfiles in
`/srv/cc-ci/.cc-ci-logs/` (`.loop-backend`, `.loop-model*`, `.orch-model`, `.phases-spec`,
`.phase-idx`, `.*-session-id`, `.limited-*`, …).
**STATUS: IMPLEMENTED + CUT OVER 2026-06-13 ~05:27 UTC.** agents.toml + agents.py are live;
orchestrator/builder/adversary + watchdog all respawned under the new system and confirmed
working on phase pvfix. launch.py + launch-orchestrator.sh are now shims → agents.py (originals
at *.orig); systemd boot chain (cc-ci-loops-start → launch.sh → launch.py start) drives the new
system. State moved to .cc-ci-logs/state/ (phase-idx, <name>.id resume, limited-*.json). tmux
targeting uses exact match (=name / =name:) to avoid prefix collisions (cc-ci-assistant vs
cc-ci-assistant3). **VERIFIED STABLE over 3 hourly checks (06:30/07:34/08:36 UTC 2026-06-13);
hourly wake ENDED (orchestrator runs its own hourly self-wake via the watchdog).** During
verification the system autonomously ran the build to completion (pvfix→pvcheck→ghost→cf48, an
operator-appended opus review phase) — clean auto-advances, handoff pings, per-phase model
overrides all worked. One port defect found+fixed at check 2: phase_advance_check is now
idempotent once SEQUENCE-COMPLETE exists (no 5-min log spam) and the watchdog keeps death-healing
the orchestrator without restarting the intentionally-stopped finished loops. End state: build
sequence COMPLETE, loops intentionally stopped, orchestrator supervising; 13 recipe PRs await
operator review/merge.
**Original plan (approved 2026-06-13, operator chose TOML + build-now + de-dupe mailu):** one
declarative `cc-ci-plan/agents.toml` (single source of truth: per-agent backend, model,
prompt, kind, watch policy; backends declared as data) + one `cc-ci-plan/agents.py` driver
(up/down/status/watchdog/logs/phase). Watchdog reads the config file, not env. Config vs
state split: declarative config in TOML, runtime state (phase-idx, resume ids, limit
windows) under a `state/` dir. Full design + behavior-mapping + migration in
`cc-ci-plan/plan-unified-launch.md`. Mimic current behavior first, cut over between phases
(old launchers become shims), then retire them. De-dupe note: live `.phases-spec` lists
`mailu` twice (idx 5 & 7); dropping the 2nd shifts current phase cf55 from idx 10→9.
Agent kinds: loop (builder/adversary, phase machine) | persistent (orchestrator resume+wake,
assistant) | task (upgrader/report one-shot slash command) | service (watchdog/cleanlogs).
See [[orchestrator-backend-switch-gotcha]].
-27
View File
@@ -1,27 +0,0 @@
---
name: orchestrator-host-hetzner
description: The cc-ci orchestrator runs on a Hetzner cpx22; key host facts + the git-identity gotcha
metadata:
node_type: memory
type: project
originSessionId: cd772f12-1978-47c3-894b-0ebbe0d2987f
---
The cc-ci orchestrator (loops + watchdog + this session) runs on a **Hetzner cpx22** as of
2026-05-31, replacing the Incus VM (100.116.55.106).
- Since 2026-09-07: ONE Hetzner host for CI server + orchestrator, public **195.201.88.249**,
tailnet **cc-ci**, flake host **`.#cc-ci`** (this repo). Before: orchestrator on Hetzner
134487234 (168.119.126.100 / 100.84.190.30, `cc-ci-orchestrator-hetzner`), shared with notplants.
- Rebuild: `sudo nixos-rebuild switch --flake .#cc-ci` from `/srv/cc-ci-orch`
(`/srv/cc-ci` is a symlink to it). The Bash tool runs as user **loops** (uid 1000, passwordless
sudo) — plain `nixos-rebuild switch` fails on the profile symlink; use `sudo`.
- Reboot-resilience: `cc-ci-loops.service` is **enabled** (wantedBy multi-user.target); ExecStartPre
`reboot-log.sh` auto-logs reboots to REBOOTS.md. Its `script` runs `launch.sh start`, which
**stops+restarts the loops** — so any rebuild that (re)starts the unit bounces the loops (they
re-orient from git; harmless but noticeable).
- **Git-identity gotcha:** the box had no git user.name/email configured; commits fail with "Author
identity unknown". Set per-repo to match prior commits: `autonomic-bot
<autonomic-bot@git.autonomic.zone>`.
Full record: `archive/plans/plan-orchestrator-hetzner-migration.md`.
@@ -1,25 +0,0 @@
---
name: weekly-upgrade-queued-after-phases
description: Weekly /upgrade-all cron skipped for 2026-06-12; queued to auto-run when the current phase queue finishes (drone)
metadata:
node_type: memory
type: project
originSessionId: 85355980-5e4f-4f90-b1ca-d0e4fe82f04b
---
Operator (2026-06-11) cancelled tonight's weekly `/upgrade-all` cron run and queued it to
run once after the current phase queue (…mailu→drone) completes instead.
- `cc-ci-upgrade-all.timer` was STOPPED (couldn't `disable` — /etc/systemd is read-only).
Its persistent stamp was forwarded to `2026-06-12 03:00 UTC` so a reboot/nixos-rebuild
tonight schedules the NEXT run for 06-19, not a catch-up of tonight's slot.
- **GOTCHA:** `systemctl start cc-ci-upgrade-all.timer` fires the service IMMEDIATELY
(Persistent=true). Do NOT `start` it to re-arm — let a host reboot/`nixos-rebuild`
reactivate it (the [[drone-phase-p0-host-deploy]] rebuild will); the forward stamp
prevents a catch-up fire.
- Post-phase auto-run is wired in launch.py (commit 3fa3178): the watchdog launches
`launch-upgrader.py start` when the LAST phase reaches `## DONE`, gated by the one-shot
flag `/srv/cc-ci/.cc-ci-logs/.run-upgrade-on-complete` (set 2026-06-11, consumed on fire).
So when phase `drone` finishes, `/upgrade-all` starts automatically (upgrader on sonnet).
Once this fires (or if the plan changes), this memory is stale — delete it.