Skip to content

console: repoint the pin at fold-console@1f695ea80960 - #42

Merged
blakebauman merged 1 commit into
mainfrom
console-sync-contract
Aug 11, 2026
Merged

blakebauman merged 1 commit into
mainfrom
console-sync-contract

Conversation

@blakebauman

Copy link
Copy Markdown
Member

Provenance only. Two lines, and no change to what any operator receives.

gateway/console is byte-identical to the previous pin: the upstream commits
since 0d4fee9 added a test suite, a workflow and documentation, none of which
is vendored. The diff is scripts/sync-console.sh and
gateway/console_source.go.

Worth recording anyway, for two reasons. consoleSource reaches
/api/federation, where it answers "which console am I looking at" without
unpacking the binary — leaving it three merges behind understates which
upstream tree these bytes correspond to. And it keeps the weekly
console-sync from proposing the same bump later with less context than this
has.

What upstream added

A contract suite, which closes a gap this repo's own guard structurally cannot.

gateway/introspection_test.go checks that the vendored bundle still names
api/federation and api/auth-hint. It can say nothing about whether the
fields inside those responses still match what the console reads them with —
and the console's federation.ts is a hand transcription of
gateway/introspection.go. So renaming a field in that struct would have left
this repo's tests green, upstream's tests green, and operators looking at a
dashboard of blank cards.

The new suite downloads a published fold release, starts it, and measures
the live /api/federation against the types. On upstream pull requests it
tests the release it is built for; a Monday run tests @latest, which is where
a rename in this repo's main will now surface.

Two details of it that concern this repo:

  • It uses the release tarball rather than go install, because goreleaser sets
    gateway.version with ldflags and the module-proxy path cannot, so a
    proxy-built binary reports dev. Worth knowing independently: anyone running
    the documented go run github.com/fold-run/fold/cmd/fold@latest gets a
    gateway whose /api/federation reports "version": "dev", which turns off
    the console's version gating. Not a defect — that path has never carried
    ldflags — but it is a real difference between the two install routes.
  • It confirmed /api/federation serves "version": "v1.10.0", with the v,
    since goreleaser passes the tag through verbatim. Upstream's fixtures had
    been modelling it without.

Verification

  • ./scripts/sync-console.sh; make console-check → gateway/console matches its pin
  • go build ./..., go test ./gateway — full package, ok in 8.6s
  • Embedded file set and bytes unchanged

🤖 Generated with Claude Code

Provenance only. gateway/console is byte-identical to the previous pin — the
upstream commits since 0d4fee98dbdd added a test suite, a workflow and docs,
none of which is vendored — so this changes nothing an operator receives.

It is still worth recording. consoleSource reaches /api/federation, where it
answers "which console am I looking at" without unpacking the binary, and
leaving it on an older commit understates by three merges which upstream tree
these bytes correspond to. It also keeps the weekly console-sync from
proposing the same bump later with less context than this.

What upstream added is a contract suite: it starts a real fold from the
published release artifact and measures /api/federation against the types the
console reads it with. That closes the gap this repo's own grep test cannot —
this repo checks that the vendored bundle still names api/federation, and can
say nothing about whether the fields inside it still match. A rename in
gateway/introspection.go would previously have left both repos green and the
dashboard blank.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@blakebauman
blakebauman merged commit feff74c into main Aug 11, 2026
7 checks passed
@blakebauman
blakebauman deleted the console-sync-contract branch August 13, 2026 16:13
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