Skip to content

The weekly console bump cost more than the console did - #108

Merged
blakebauman merged 1 commit into
mainfrom
chore/console-sync-on-demand
Sep 1, 2026
Merged

blakebauman merged 1 commit into
mainfrom
chore/console-sync-on-demand

Conversation

@blakebauman

Copy link
Copy Markdown
Member

What & why

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 claim
was that a vendored dependency should not be allowed to go quietly stale.

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

commit what it fixed
#78 the cached clone that can be a repo and still be unusable
#85 the weekly --force-with-lease against a branch actions/checkout never fetched — "stale info", a red run every week for as long as any bump PR stayed open
(workflow header) the anti-recursion caveat: a GITHUB_TOKEN push creates no check runs, so an absent check set must not be read as a passing one

One was an actual console change (#90).

The review a bump asks for is not small — the console runs same-origin with a
page holding a live Bearer token, so every pin move is a supply-chain change
wanting a human plus the security-auditor pass. Scheduling that weekly does not
make it happen weekly; it makes it accumulate as PRs nobody planned time for.

The trigger becomes workflow_dispatch only, and the bump moves into
/fold-release step 2
, where a human is already reading a diff: resolve
fold-console's head, re-vendor if it moved, console-check + test, hand the
diff to the security-auditor. If the console has not moved, say so and carry on.

Evidence

  • console-sync.yml triggers, parsed: {'workflow_dispatch': {}} — the
    schedule: key is gone and nothing else in the file changed shape
  • every guard survives: the 40-hex assertion on the resolved SHA, the
    canonical-CONSOLE_REPO check, the branch-already-exists refusal, the inline
    verification. How a bump is proposed and reviewed is untouched — only the
    clock is
  • make console-check → gateway/console matches its pin, exit 0
  • stale cadence claims removed from three places that stated "Mondays 07:00
    UTC" as fact: /console-sync, /deps, .claude/README.md

The part that needs review

The pin can now go stale between releases, and that is the trade. If fold
goes a long time without a release, nothing proposes a console bump — where the
cron would at least have raised the question. I think that is right, because an
unmerged weekly PR was not keeping the pin current either; it was keeping an
open PR current. But if you would rather have a slower heartbeat than none,
a monthly cron is a one-line change to this same file and I would not argue.

The release step is prose in a skill, not a gate. Nothing mechanically
fails a release whose pin is behind. I considered adding a CI check that the
pin equals fold-console's head and rejected it: that check is red whenever
upstream is ahead, which is most of the time, and a check that is normally red
teaches people to ignore it. console-check — pin versus tree — stays the
mechanical one, and it is unchanged.

Step renumbering. Inserting the new step 2 meant renumbering 2–9. There was
a second step 10 below "Failure handling" that my first pass collided with;
it is now 11. Worth a glance that the sequence reads right.

Verification

  • make check → exit 0 (fmt-check, tidy-check, vet, build, -race, lint;
    16 packages ok, 0 issues)
  • make console-check → exit 0, gateway/console matches its pin
  • console-sync.yml re-parsed as YAML after editing

One finding from running the gate, not caused by this change. make check
first 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 by an
unrelated session. golangci-lint had cached results keyed to a deleted working
directory and reported them against a file it could not open, which is also
where the Failed to get line N warnings came from. golangci-lint cache clean → 0 issues. Recording it because it reads exactly like a real gosec
regression in a file that lints clean.

Checklist

  • make check passes — exit 0, after clearing the stale lint cache above
  • Integration tests: none. No Go changed; the diff is one workflow trigger
    and four markdown files. There is no behavior a real SDK peer could observe.
  • Proxy-path changes: none. make bench not run — nothing on the request
    path is touched.
  • Wire-behavior changes: none. make conformance not run, same reason.
  • README: no change needed. No gap closed or widened, no config added, no
    error code moved. The cadence was documented in .claude/, which is updated.
  • Pin bumps: none. This changes when a pin bump is proposed;
    CONSOLE_COMMIT itself is untouched, and console-check proves it.

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.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01PtWxKRXJXRWj6Swqq4rJyQ
@blakebauman
blakebauman merged commit 427d362 into main Sep 1, 2026
8 checks passed
@blakebauman
blakebauman deleted the chore/console-sync-on-demand branch September 1, 2026 06:25
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