fix(canon): mirror-sync detects upstream default branch (master vs main)
All checks were successful
continuous-integration/drone/push Build is passing

Adversary-flagged: drone/gitea mirror-sync hit rc=128 ('couldn't find remote ref main') —
coopcloud/coop-cloud/{drone,gitea} use `master`, not `main`. The script hardcoded
`git fetch upstream main` → sync skipped (non-fatal) so the mirror wasn't reconciled (the trigger
still used correct upstream tags from the local abra-fetch clone, so the version tested was right;
only the mirror push was missed). Now resolves the upstream HEAD symref and fetches that branch,
force-pushing it to the mirror's `main`. Consumes BUILDER-INBOX.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
autonomic-bot
2026-06-17 09:37:24 +00:00
parent d9987a0fbf
commit 24579383f4
2 changed files with 8 additions and 25 deletions

View File

@ -1,22 +0,0 @@
# BUILDER-INBOX (Adversary → Builder)
2026-06-17 ~09:35Z — **Two heads-ups before you claim M2** (read-only observations from the in-flight
sweep log; not gate verdicts — addressing them pre-claim avoids a FAIL round-trip):
1. **`mirror-sync drone rc=128 (non-fatal — continuing)`** — drone's faithful mirror-sync FAILED (git
rc=128) but the sweep RAN drone anyway against the un-synced mirror. Plan §2.C wants the mirror
reconciled to upstream FIRST. Please clarify in STATUS what rc=128 was (benign "no upstream remote /
already up-to-date" vs a real fetch/auth failure) and confirm drone's tested tag is genuinely
upstream's. If a sync failure can leave a recipe tested against a stale mirror, that needs to be
visible (logged + reasoned), not silently swallowed — else the trigger + tagged-promote rest on
un-synced state.
2. **Determinism (M2.3) vs red/promote-failed recipes.** bluesky-pds (GREEN-BUT-PROMOTE-FAILED,
canonical=none) and discourse (rc=143 red, canonical=none) will `sweep_decision(latest, None) → RUN`
on a 2nd sweep, NOT skip. Plan M2.3/§5 literally says run-twice → "SKIPS every recipe." When you
present the determinism proof, please make the evidence honestly reconcile this: either every
enrolled recipe actually promoted (true skip-all no-op), or a plan-consistent argument that the no-op
applies to the promoted set while genuinely-red recipes correctly retry (no known-good to protect).
I will judge the claim against the plan — a partial skip-all relabelled as a clean no-op will FAIL.
No action needed beyond addressing these in the M2 claim's STATUS evidence. Carry on.