Repository navigation
The weekly console bump cost more than the console did - #108
Merged
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What & why
gateway/consoleis vendored fromfold-run/fold-consoleat a pinned commit,and
console-sync.ymlopened a bump PR every Monday at 07:00 UTC. The claimwas 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:
--force-with-leaseagainst a branchactions/checkoutnever fetched — "stale info", a red run every week for as long as any bump PR stayed openGITHUB_TOKENpush creates no check runs, so an absent check set must not be read as a passing oneOne 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_dispatchonly, and the bump moves into/fold-releasestep 2, where a human is already reading a diff: resolvefold-console's head, re-vendor if it moved,
console-check+test, hand thediff to the security-auditor. If the console has not moved, say so and carry on.
Evidence
console-sync.ymltriggers, parsed:{'workflow_dispatch': {}}— theschedule:key is gone and nothing else in the file changed shapecanonical-
CONSOLE_REPOcheck, the branch-already-exists refusal, the inlineverification. How a bump is proposed and reviewed is untouched — only the
clock is
make console-check→gateway/console matches its pin, exit 0UTC" as fact:
/console-sync,/deps,.claude/README.mdThe 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 themechanical 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 pinconsole-sync.ymlre-parsed as YAML after editingOne finding from running the gate, not caused by this change.
make checkfirst failed at lint with four gosec findings in
tools/perf/main.go— at apath under
/private/tmpthat no longer exists, a copy of this repo left by anunrelated 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 Nwarnings came from.golangci-lint cache clean→0 issues. Recording it because it reads exactly like a real gosecregression in a file that lints clean.
Checklist
make checkpasses — exit 0, after clearing the stale lint cache aboveand four markdown files. There is no behavior a real SDK peer could observe.
make benchnot run — nothing on the requestpath is touched.
make conformancenot run, same reason.error code moved. The cadence was documented in
.claude/, which is updated.CONSOLE_COMMITitself is untouched, andconsole-checkproves it.