Repository navigation
The cached console clone can be a repo and still be unusable - #78
Merged
Merged
Conversation
Definition pinning (v1.12.0) hung its check off the closure each list method hands cachedList. The check itself is inside the fill, so it runs once per cache generation exactly as designed — but referencing u.pins gave the closure a free variable, and Go allocates a capturing function literal on every call while a non-capturing one is allocated statically, once. The closure is built before cachedList decides whether it is needed, so every warm-cache tools/list paid one allocation per upstream: the warm path the pinning design record promised the feature would stay off. Measured on the federated list bench: 20 upstreams x 50 tools went from 83 allocations per merged list to 103 at 93a44b6, and is back to 83 here. The count had drifted from docs/benchmarks.md for three releases without anyone noticing, which is what re-measuring rather than trusting the table catches. fetch now takes the upstream as a parameter. The parameter looks redundant — every caller has u in scope — and that is exactly why it carries a comment: the redundancy is what keeps the literal free of captures. docs/benchmarks.md is re-measured (median of 5) and records the regression rather than quietly restating the old numbers; the pinning design record gains the implementation note this cost belonged in. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
The guard around the cached clone asked git whether the directory was a repository, which is one question short. A temp sweep can leave .git with HEAD and objects intact but no config: still a repository, and with no remotes — so the clone was skipped as a cache hit and the fetch died with "fatal: 'origin' does not appear to be a git repository". The same dead end the comment above it already describes, one level in, and it fails every local run until somebody deletes the directory by hand. Asking for the remote URL covers both cases, because it fails when there is no repository and when there is one that cannot be fetched from. CI never sees either: RUNNER_TEMP is fresh every run, which is why the comment says this has to be caught here. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
6 tasks done
blakebauman
added a commit
that referenced
this pull request
Aug 26, 2026
/preflight ends at "ready to commit" and /watch-ci begins after the push. Between them sits the step all thirteen of the last PRs went through, and nothing described it: the branch, the title, the body a reviewer reads. Separately, observability carries the same lockstep discipline as the config schema — checked in both directions by observability_pack_test.go — and had neither a hook nor a skill, so adding a metric failed a test whose existence was not discoverable from the edit. - /ship — branch as type/slug, then the title convention, which is the part that is genuinely hard to guess: a PR title is a prose sentence naming the *problem*, with no area: prefix, while commits that go straight to main keep the prefix because they are housekeeping with no problem to name. Then the commit body as rationale, the PR body written for a reviewer — the movement that earns the format is "the part that needs review", where the author says what they are least sure of and what they got wrong first — and the template checklist answered rather than ticked. - /observability — the pack lockstep in both directions, and the two traps in how it reads the source: it extracts quoted literals from metrics.go only, so a name built by concatenation or declared elsewhere passes the test while shipping unwatched, and histogram series match after the _bucket/_sum/_count suffix is stripped. Plus the consequence of the v1 freeze that catches people: it covers names *and label sets*, so adding a label to an existing metric is a break while a new name is additive — which is why the tenant series are their own metrics. Spans and audit fields get the same treatment without a test to lean on. CONTRIBUTING said commit messages follow "area: imperative summary". That stopped being true at #78, and every PR since has been prose. The line now describes what the repo does, with the split stated.
1 task done
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]>
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.
The guard around
sync-console.sh's cached clone asks git whether the directory is a repository. That is one question short.A temp sweep can leave
.gitwithHEADand objects intact but no config: still a repository, and with no remotes. So the clone is skipped as a cache hit and the fetch dies withfatal: 'origin' does not appear to be a git repository— the same dead end the comment above it already describes, one level in. It then fails every local run until somebody deletes the directory by hand.Reproduced:
Asking for the remote URL covers both cases, because it fails when there is no repository and when there is one that cannot be fetched from.
CI never sees either —
RUNNER_TEMPis fresh every run, which is exactly why the comment says this has to be caught here.I hit this bumping the console pin in #73 and cleared the directory by hand;
make console-checkpasses with the change.🤖 Generated with Claude Code