Commit Graph
3 Commits
Author SHA1 Message Date
autonomic-bot d95afd934b skills: PR-merge policy + test-before-switch + new /cc-ci-orchestrator-update
- cc-ci-server-update / cc-ci-tests-update / cc-ci-update: operator policy change —
  open PRs for visibility/historical record and merge directly once verified
  (invocation = authorization); reports must list merged-PR links + change summaries.
  (tests-update still never merges the paired recipe upgrade PRs.)
- cc-ci-server-update: mandatory nixos-rebuild test step (5d) before switch, with
  detached-activation + transient-unit notes from the 2026-08-03 26.05 deploy.
- AGENTS.md: test-before-switch policy for orchestrator host rebuilds.
- NEW skill cc-ci-orchestrator-update (+ thin .claude wrapper): the /cc-ci-server-update
  analogue for this host (flake /srv/cc-ci-orch, .#cc-ci-orchestrator-hetzner, Hetzner
  server 134487234), with self-update caveats.
- JOURNAL.md: 2026-08-03 server-update incident/recovery handoff entry.
2026-08-03 20:35:51 +00:00
autonomic-bot 2f22d42d34 skills: move cc-ci-update skills to .opencode/ as canonical; .claude/ -> thin wrappers
Reverse the skill location: the full definitions now live in
.opencode/skills/<name>/SKILL.md (opencode's native project-skill
location, auto-scanned), and .claude/skills/<name>/SKILL.md are thin
pointer wrappers that keep the frontmatter for discoverability and
redirect to the .opencode/ canonical file for the procedure.

Also drops the 'operator-authorized mid-run' gating from
/cc-ci-server-update: the operator's choice to invoke the skill IS the
authorization for the live nixos-rebuild switch — no second check to
wait for. The quiescent-moment preference stays (don't disrupt an
in-flight !testme), but it's not a gate.
2026-08-03 19:10:05 +00:00
autonomic-bot e805baf030 skills: add /cc-ci-server-update, /cc-ci-tests-update, /cc-ci-update
Three new skills for keeping cc-ci itself current (manual triggers for
what should ideally be automatic):

- /cc-ci-server-update — bump the cc-ci SERVER host's nixpkgs/sops-nix
  flake inputs (hard rev pin, moves deliberately), open a cc-ci PR, then
  deploy to the live host via nixos-rebuild switch (operator-authorized,
  no-CI window) + health gate (no failed units, infra up, endpoints 200).
  Manual trigger for periodic nixpkgs bumps.

- /cc-ci-tests-update — sweep all maintained recipes for stale cc-ci
  tests (carry-over from /upgrade-all's commented stale tests + a fresh
  /ci-test-review sweep), author the minimal test update per stale
  recipe, open a cc-ci test PR, verify via the standard PR + !testme ->
  CI flow. Closes the loop the weekly /upgrade-all deliberately defers
  (it comments-only; this fixes the tests). Never weakens a test.

- /cc-ci-update — umbrella: run server-update then tests-update, in
  that order, gated on the server health check (don't sweep tests on a
  sick/rolled-back host). Server-first because the harness toolchain
  rides on the host nixpkgs.

All three: create + verify, NEVER merge. Reuse the existing ci-test-review
helpers (open-cc-ci-pr.sh, run-all-recipes.sh, verify-pr.sh) and the
recipe-upgrade --with-tests discipline.
2026-08-03 19:07:06 +00:00