Skip to content

fix(scaffold): bump page-money pins to published (app-sdk 0.31.0, blocks-react 0.39.0) - #203

Merged
ZacxDev merged 1 commit into
mainfrom
chore/bump-page-money-pins
Aug 5, 2026
Merged

fix(scaffold): bump page-money pins to published (app-sdk 0.31.0, blocks-react 0.39.0)#203
ZacxDev merged 1 commit into
mainfrom
chore/bump-page-money-pins

Conversation

@ZacxDev

@ZacxDev ZacxDev commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Why

pins-vs-published is a required check and is currently red on main itself — so every open PR in the repo is blocked, not just one. The pre-1.0 carets lock the minor, so ^0.30.0 / ^0.38.0 no longer admit the published versions:

package pinned published
@civitai/app-sdk ^0.30.0 0.31.0
@civitai/blocks-react ^0.38.0 0.39.0

Same shape as #194.

How

Produced by the repo's own bumper rather than by hand, so the three literal pin sites cannot drift apart:

go run ./internal/scaffold/cmd/bump-pins

That rewrites templates/page-money/package.json.tmpl, templates/page-money/README.md.tmpl and scaffold_test.go — 3 files, 5 lines.

Verification

A pre-1.0 minor bump can break the template's SDK calls, so the guard passing is necessary but not sufficient. I scaffolded a real app with the rebuilt binary and exercised it:

  • npm install resolved app-sdk 0.31.0 and blocks-react 0.39.0 (confirmed from node_modules, not from the pin);
  • npm run buildtsc -p tsconfig.json --noEmit && vite build — succeeded;
  • the template's own suite passed 138 tests across 11 files.

Repo side: make ci green; full suite with CIVITAI_CHECK_PUBLISHED_PINS=1 is 1332 run / 1331 pass / 0 fail, and TestScaffoldPinsSatisfyPublished now passes with the network guard enabled (it fails on main today — that was the discriminating control confirming this is pre-existing and not caused by any open PR).

🤖 Generated with Claude Code

…cks-react 0.39.0)

`pins-vs-published` is a REQUIRED check and is currently red on `main`
itself, so every open PR is blocked. The pre-1.0 carets lock the minor,
so `^0.30.0` / `^0.38.0` no longer admit the published 0.31.0 / 0.39.0.

Produced by the repo's own bumper rather than by hand, so the three
literal pin sites cannot drift apart:

    go run ./internal/scaffold/cmd/bump-pins

Verified beyond the guard, because a pre-1.0 MINOR bump can break the
template's SDK calls: scaffolded a page-money app with the rebuilt
binary, confirmed npm resolved 0.31.0 / 0.39.0, then `npm run build`
(tsc --noEmit + vite build) succeeded and the template's own suite
passed 138 tests across 11 files.

`make ci` green; full suite with CIVITAI_CHECK_PUBLISHED_PINS=1 is
1332 run / 1331 pass / 0 fail, and TestScaffoldPinsSatisfyPublished now
passes with the network guard enabled.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DC9uE5774YN7oquYrzE4Yq
@ZacxDev
ZacxDev merged commit 7e9a1c9 into main Aug 5, 2026
10 checks passed
@ZacxDev
ZacxDev deleted the chore/bump-page-money-pins branch August 5, 2026 04:50
ZacxDev added a commit that referenced this pull request Aug 5, 2026
…ed for days (#205)

`pins-vs-published` is a REQUIRED status check on `main` and it reads npm's
published latest, so from the moment a `@civitai/*` minor lands until
`bump-scaffold-pins` rewrites the template's pre-1.0 carets, every open PR is
blocked regardless of its content.

The bot is not broken — it is too slow. Measured off the npm registry `time`
field: app-sdk 0.26.0 Jul 17, 0.27.0 Jul 28, 0.28.0 Jul 29, 0.29.0 Aug 3 20:15,
0.30.0 Aug 3 22:13, 0.31.0 Aug 5 03:54 (2026). Six minors in 19 days — a
~3.6-day mean interval against a 7-day sweep, so upstream published faster than
the bot swept and a large fraction of each week sat red. It had to be
hand-bumped twice in two days (#194, #203); #203 existed only to unblock an
unrelated PR.

Daily bounds that window at ~24h instead of ~168h. Nothing else changes: the
bumper, its in-job validation, and the PR it opens are untouched. A no-op sweep
is cheap because `detect changes` gates every downstream step — verified live
here, where the bumper printed "all @civitai/* pins are current — nothing to
do" and modified no files.

This is the (b) lever the app-analytics handoff doc identified and correctly
left as ask-first per AGENTS.md; the decision has now been made, so the doc is
updated to record it rather than re-raise it.

Verification: actionlint clean on the changed workflow, with a positive control
(it rejects `77 7 * * *` with "invalid CRON format", so its acceptance of
`17 7 * * *` is a real green). YAML re-parsed to assert the schedule literal,
with both a positive control (injecting the old weekly value is observed) and a
negative control (malformed YAML raises). `make ci` green — 16 packages ok, 0
FAIL, `go mod tidy` no-op, `gofmt -s -l` silent over 206 Go files.

Note the cadence narrows the window, it does not close it: a publish minutes
after a sweep still blocks PRs until the next day. If that residual still bites,
the next levers are a 6-hourly cron or a `repository_dispatch` fired by the SDK
release — both larger changes to `.github/`, so neither is taken here.


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

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
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