From 042acc820b988bb890c5b7ecbc86015cecd24be0 Mon Sep 17 00:00:00 2001 From: Krzysztof kuhy Rudnicki Date: Sun, 23 Aug 2026 20:11:09 +0200 Subject: [PATCH] Record the red-baseline deadlock in the handoff ci-baseline-green also runs inside ci-mirror's clean worktree, so a red main blocks the very commit that fixes it. CI_GREEN_SKIP=1 has to be set on the push, not just the commit. Cost a failed push to discover. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_01PJrqKERAo5QUeEHWS5Asgp --- NEXT_SESSION_RESTRUCTURE.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/NEXT_SESSION_RESTRUCTURE.md b/NEXT_SESSION_RESTRUCTURE.md index df5cbfad..80b3e4c3 100644 --- a/NEXT_SESSION_RESTRUCTURE.md +++ b/NEXT_SESSION_RESTRUCTURE.md @@ -102,6 +102,12 @@ by md5, DNS verified between them. Backups at (it measures only the parent); read `memory.peak` from a cgroup. - **`sudo -n` works here and `guardctl` is at `/usr/local/bin/guardctl`.** The old "the classifier blocks me" note was stale. +- **A red `main` deadlocks its own fix.** `ci-baseline-green` refuses to build + on a red baseline, and ci-mirror runs `pre-commit` inside a clean worktree, + so the hook fires there too — the commit that FIXES the red baseline cannot + be pushed. `CI_GREEN_SKIP=1` must be set on the **push**, not just the + commit: `CI_GREEN_SKIP=1 git push`. Use it only when the push really is the + fix. - **The pre-push gate is not the pre-commit gate.** It adds prettier and ci-mirror. Two docs were non-conforming before this session and blocked _every_ push; prettier normalises `*emphasis*` to `_emphasis_`.