M1 (machinery works locally, each piece proven) — code HEAD d4cc9e4, unit suite 295 passed:
- M1.1 tagged-promote gate + promote-tested-version: live proof-A wrote a fresh canonical
(commit df2e273 = the tag commit, correcting samever's main-HEAD 2b82eba); live proof-C
green-untagged → 0 promotes, canonical byte-identical (tagged-gate blocks untagged).
- M1.2 sweep_decision (version-keyed trigger) + vendored faithful recipe-mirror-sync.sh
(smoke-tested: faithful no-op main/tags push, closed merged-upstream PR #2, left PR #5);
nightly_sweep rewritten (mirror_sync -> trigger -> run_on_tag). Live SKIP demo on custom-html.
- M1.3 all 21 used-recipes enrolled. M1.4 hollow-sweep fix (CCCI_REPO=/etc/cc-ci). M1.5 weekly timer.
- M1(A) reattach: live proof-B --quick reused the retained volume green; known-good unchanged.
Evidence + verify recipes in STATUS-canon.md; reasoning in JOURNAL-canon.md; DECISIONS appended.
Gate: M1 CLAIMED, awaiting Adversary.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
6.7 KiB
STATUS — phase canon (canonical sweep, make it real)
Gate: M1 CLAIMED, awaiting Adversary.
WHAT/HOW/EXPECTED/WHERE for the Adversary. Reasoning lives in JOURNAL-canon.md.
Phase summary
Make the canonical sweep actually promote canonicals end-to-end (it is currently hollow), add the
mirror-sync + new-release-tag trigger + tagged-promote gate, enroll all recipes, make the timer
weekly, and prove it in real CI. DoD = §5 of cc-ci-plan/plan-phase-canon-canonical-sweep.md.
Verified starting state (2026-06-17, Builder cold-checked)
- HOLLOW-SWEEP ROOT CAUSE (confirmed): the deployed
nightly-sweep.timerfired 03:09 UTC and loggedenrolled canonicals = []. Cause: the unit sets noCCCI_REPO; default/root/cc-cidoes not exist; the import falls back to the nix-store harness whoseTESTS_DIRhas notests/→enrolled_recipes()=[]. Verify:ssh cc-ci 'journalctl -u nightly-sweep.service | grep "enrolled canonicals"'. - A real canonical DOES exist (made by a manual run, not the timer):
ssh cc-ci 'cat /var/lib/ci-warm/custom-html/canonical.json'→ version1.13.0+1.31.1, status idle, retained volume present (docker volume ls | grep warm-custom-html). - Enroll set (authoritative) =
cc-ci-plan/used-recipes.md(21 recipes). Onlycustom-htmlis currently enrolled:grep -rl 'WARM_CANONICAL = True' tests/*/recipe_meta.py. - Timer is daily:
nix/modules/nightly-sweep.nixOnCalendar = "*-*-* 03:00:00". - Disk
/: 40G free / 73% used (ssh cc-ci df -h /).
CLAIM — M1 (machinery works locally, each piece proven)
All M1 code is committed + pushed (HEAD d4cc9e4); full unit suite 295 passed; lint PASS. Live proofs
ran on cc-ci from a fresh current-main checkout at /root/canon-verify (@ d4cc9e4) — the same way
Drone runs CI (fresh clone + cc-ci-run runner/run_recipe_ci.py). Proof logs on cc-ci:
/root/canon-verify/_proofA.log (promote), _proofB.log (reattach), _proofC.log (untagged).
WHAT is claimed → HOW to verify → EXPECTED → WHERE
M1.1 — tagged-promote gate (§2.A). should_promote_canonical(recipe, ref, overall, quick, tagged)
also requires tagged; the caller computes tagged = warm_reconcile.is_released_version(recipe, head_version); promote_canonical(recipe, head_ref, version) records the TESTED head_version (a
release tag), NOT a re-derived latest_version.
- HOW (unit):
pytest tests/unit/test_promote.py tests/unit/test_warm_reconcile.py→ all pass (incl.test_no_promote_when_untagged,test_is_released_version). - HOW (live PROMOTE): the new code path ran on cc-ci via
nightly_sweep.run_on_tag('custom-html', '1.13.0+1.31.1')(proof-A). EXPECTED+OBSERVED:/var/lib/ci-warm/custom-html/canonical.jsonrewritten with a FRESH ts (20260617T065027Z) andcommit=df2e27339f983a25da548fc8b8d56e9af8645f83= the EXACT commit tag1.13.0+1.31.1points to (git -C ~/.abra/recipes/custom-html rev-list -n1 1.13.0+1.31.1). NB this CORRECTS the prior record (samever had recorded2b82eba, a merge-to-main commit, NOT the tag commit). Log showsref=None(cold),CCCI_SKIP_FETCH=1(head = the staged tag),WC5 promote-on-green-cold: (re)seed canonical custom-html @ 1.13.0+1.31.1. - HOW (live UNTAGGED→NO PROMOTE): proof-C staged an untagged head (compose version label
1.13.1+1.31.1, confirmed NOT a release tag, image unchanged) and ran a COLD run. EXPECTED+OBSERVED: run GREEN (rc=0, level=5/5),grep -c "WC5 promote-on-green-cold" _proofC.log= 0, and canonical.json version+commit+ts identical before/after (1.13.0+1.31.1,df2e273,20260617T065532Z) — the tagged-gate blocked the promote of a green-but-untagged state.
M1.2 — release-tag trigger + faithful mirror-sync (§2.C/§2.D).
warm_reconcile.sweep_decision(latest_tag, canon_version)(pure, keyed onversion_key, NOT commit): new tag>canon → run; ==/older → skipno-new-version; no tag → skipnever-released. HOW (unit):pytest tests/unit/test_warm_reconcile.py -k sweep_decision. HOW (live SKIP): on cc-ci, custom-htmllatest_tag == canonical (1.13.0+1.31.1)→sweep_decision=('skip','no-new-version (latest release 1.13.0+1.31.1 <= canonical 1.13.0+1.31.1)'). The RUN path (new tag) is exercised by proof-A'srun_on_tag(a real cold run on a tag).scripts/recipe-mirror-sync.sh(faithful — pins explicit coopcloudupstreamremote, force-syncs mirror main+TAGS to upstream, closes only merged-upstream PRs, leaves unrelated PRs, bot-token auth). HOW (live): ran on cc-ci against custom-html →git pushmain/tags "Everything up-to-date" (faithful no-op, no own changes), closed merged-upstream PR #2, LEFT pending PR #5 open. Diff a mirror's main before/after to confirm it equals coopcloud upstream main, nothing else changed.nightly_sweep.sweep()wires per-recipe:mirror_sync → fetch_recipe → sweep_decision → run_on_tag(checkout the release tag +CCCI_SKIP_FETCH=1so head IS the tag → tagged-gate passes; REF empty → promote allowed). NO AI at runtime (pure script).
M1.3 — all recipes enrolled (§2.B). WARM_CANONICAL=True in every tests/<r>/recipe_meta.py of
the 21 cc-ci-plan/used-recipes.md rows. HOW: grep -rl 'WARM_CANONICAL = True' tests/*/recipe_meta.py | wc -l → 21; python3 -c "import sys;sys.path.insert(0,'runner');from harness import canonical; print(len(canonical.enrolled_recipes()))" → 21. Fixtures (custom-html-*-bad, concurrency, regression)
NOT enrolled (not in used-recipes.md).
M1.4 — hollow-sweep root-cause fix. nix/modules/nightly-sweep.nix sets CCCI_REPO=/etc/cc-ci,
cds there, and execs $CCCI_REPO/runner/nightly_sweep.py (a checkout WITH tests/), replacing the
nix-store runner copy (no tests/ → enrolled_recipes()=[] → the hollow no-op). Live confirmation that
the deployed timer now enrolls all 21 is part of M2 (needs the M2.1 deploy: git -C /etc/cc-ci pull +
nixos-rebuild). HOW (code): read the module.
M1.5 — weekly timer (§2.F). OnCalendar = "Sun *-*-* 03:00:00", Persistent=true. HOW (code):
read the module; deployed-timer check is M2.
Build hashes / fingerprints
- HEAD:
d4cc9e4(M1 code). custom-html canonical:{version 1.13.0+1.31.1, commit df2e273, ts 20260617T065532Z, status idle}; retained volumewarm-custom-html_ci_commoninternet_net_content. - tag
1.13.0+1.31.1→ commitdf2e27339f983a25da548fc8b8d56e9af8645f83.
Out of M1 scope (M2): full multi-recipe sweep e2e, run-twice determinism, real timer fire, samever
orthogonality live, disk budget, §2.G UPGRADE_BASE_VERSION retirement.
Claims awaiting verification
- M1 — CLAIMED (this commit). Awaiting Adversary PASS in REVIEW-canon.md.
Blocked
(none)