Skip to content

The weekly console bump has been force-pushing a branch it cannot see - #85

Merged
blakebauman merged 1 commit into
mainfrom
fix/console-sync-weekly-force-push
Aug 25, 2026
Merged

blakebauman merged 1 commit into
mainfrom
fix/console-sync-weekly-force-push

Conversation

@blakebauman

Copy link
Copy Markdown
Member

The console-sync workflow has failed every Monday since the bump PR for fold-console@aae1a879c7c7 (#81) opened on 17 Aug:

! [rejected] console-sync/aae1a879c7c7 -> console-sync/aae1a879c7c7 (stale info)
error: failed to push some refs

Not the console, and not a flake. actions/checkout fetches only the default branch, so there is no remote-tracking ref for the bump branch, and git push --force-with-lease without one refuses rather than pushing. The job resolves the same upstream HEAD each week, derives the same branch name from its short SHA, and runs into the same refusal — so the run stays red for as long as a bump waits for review.

Why not just restore the lease

That would make the push work, and the push is the part that was wrong.

The branch name carries the upstream short SHA, so an existing branch is necessarily the same bump already proposed. Re-pushing it is a no-op at best. At worst it clobbers the verification commit the PR body asks a reviewer to push — which is the exact thing --force-with-lease was there to prevent, defeated by the missing ref it silently depended on.

So the job now stops when the branch exists, reports the PR it is waiting on, and exits 0.

Deleting the branch is what makes the bot re-propose. Closing the PR alone deliberately does not, so a declined bump stays declined instead of returning every Monday.

Also in here

The minted error-code registry in CLAUDE.md and .claude/agents/gateway-reviewer.md both still stopped at -32043, so the reviewer agent would flag -32044 and -32002 as unregistered. README.md and docs/operations.md were already correct; README "Errors" is now named as canonical in both copies, so the next drift degrades to a stale pointer rather than a false finding.

Verification

The rendered step was syntax-checked with bash -n (${{ }} stubbed). The behavior change itself only runs on the weekly schedule — workflow_dispatch is enabled, so it can be exercised directly against the current state, where console-sync/aae1a879c7c7 still exists and the job should now report and exit 0 instead of failing.

Does not touch scripts/sync-console.sh, the pin, or any vendored asset.

🤖 Generated with Claude Code

console-sync.yml has failed every Monday since the bump PR for
fold-console@aae1a879c7c7 opened on 17 Aug, with:

    ! [rejected] console-sync/aae1a879c7c7 (stale info)

Not the console, and not a flake. actions/checkout fetches only the
default branch, so there is no remote-tracking ref for the bump branch,
and `git push --force-with-lease` without one refuses rather than
pushing. The job resolves the same upstream HEAD every week, builds the
same branch name from its short SHA, and re-runs into the same refusal —
so the run stays red for as long as a bump waits for review.

Restoring the lease would only make the push work, and the push is the
part that was wrong. Because the branch name carries the upstream short
SHA, an existing branch is necessarily the same bump already proposed:
re-pushing it is a no-op at best, and at worst clobbers the verification
commit the PR body asks a reviewer to push, which is what --force-with-
lease was there to prevent. So the job now stops when the branch exists,
reports the PR it is waiting on, and exits 0.

Deleting the branch is what makes the bot re-propose. Closing the PR
alone deliberately does not, so a declined bump stays declined instead
of returning every Monday.

Also fixes the minted error-code registry in CLAUDE.md and
gateway-reviewer.md, which both still stopped at -32043 and would have
had the reviewer flag -32044 and -32002 as unregistered. README
"Errors" was already correct and is named as canonical, so the next
drift is a stale pointer rather than a false finding.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@blakebauman
blakebauman merged commit 80fd7fd into main Aug 25, 2026
8 checks passed
@blakebauman
blakebauman deleted the fix/console-sync-weekly-force-push branch August 25, 2026 22:21
blakebauman added a commit that referenced this pull request Sep 1, 2026
gateway/console is vendored from fold-run/fold-console at a pinned commit,
and console-sync.yml opened a bump PR every Monday at 07:00 UTC. The idea
was that a vendored dependency should not be allowed to go quietly stale.

What it actually produced is visible in the log. Of the four console-related
commits since the v1.9 extraction, three fixed this workflow rather than the
console:

  - #78, the cached clone that can be a repo and still be unusable;
  - #85, the weekly force-push against a branch actions/checkout never
    fetched, which failed with "stale info" for as long as any bump PR
    stayed open — a red run every week that was the robot's own bug;
  - the anti-recursion caveat now standing in the workflow header, because a
    GITHUB_TOKEN push creates no check runs and an absent check set must not
    be read as a passing one.

One commit was an actual console change. A dependency that moves a few times
a release does not need a weekly robot, and the review the robot asks for is
not a small one: the console runs same-origin with a page holding a live
Bearer token, so every bump is a supply-chain change that wants a human and
the security-auditor pass. Scheduling that work weekly does not make it
happen weekly; it makes it accumulate as open PRs nobody planned time for.

So the trigger becomes workflow_dispatch only, and the bump moves to where a
human is already reading a diff:

  - console-sync.yml keeps every one of its guards — the 40-hex check on the
    resolved SHA, the canonical-repo assertion, the branch-already-exists
    refusal, the inline verification — and simply stops firing on a clock.
    Nothing about how a bump is proposed or reviewed changes.
  - /fold-release grows step 2, which resolves fold-console's head, re-vendors
    if it moved, runs console-check and the test suite, and hands the diff to
    the security-auditor. If the console has not moved it says so and moves
    on. A release with a current pin is now something the process produces
    rather than something the calendar happened to deliver.

The stale-cadence references went with it: /console-sync and /deps both
documented "Mondays 07:00 UTC" as fact, and .claude/README.md described
reviewing "a weekly bump PR".

One thing worth recording, found while running the gate rather than caused by
this change. make check failed at lint with four gosec findings in
tools/perf/main.go — at a path under /private/tmp that no longer exists, a
copy of this repo left behind by an unrelated session. golangci-lint had
cached results keyed to a working directory that had been deleted and
reported them against a file it could not open, which also produced the
"Failed to get line N" warnings that made it look like a source problem.
golangci-lint cache clean, then 0 issues. Worth knowing before anyone spends
an afternoon on gosec findings in a file that lints clean.


Claude-Session: https://claude.ai/code/session_01PtWxKRXJXRWj6Swqq4rJyQ

Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant