Skip to content

chore(deps): pin Effect 4 RC and open one Dependabot PR per RC - #63

Merged
allisonmahmood merged 2 commits into
mainfrom
chore/pin-effect-rc
Aug 28, 2026
Merged

allisonmahmood merged 2 commits into
mainfrom
chore/pin-effect-rc

Conversation

@allisonmahmood

@allisonmahmood allisonmahmood commented Aug 28, 2026 •

Copy link
Copy Markdown
Owner

What changed

The Effect v4 port (#54) needs Effect 4 installed and locked before any source moves, and RCs ship every few days, so each bump has to arrive as one reviewable PR rather than five.

This pins effect, @effect/platform-node, @effect/sql-pg and @effect/vitest at 4.0.0-rc.112 (and @effect/language-service at 0.87.2, its own release line) through the pnpm catalog:, with overrides forcing every transitive effect/@effect/* onto the catalog and a name-based minimumReleaseAgeExclude so a fresh RC is not held back by the one-day release-age gate. The packages are added to root devDependencies so pnpm install resolves and locks them; nothing imports from effect yet.

Dependabot gets an effect group (effect, @effect/*, minus the language service) so each RC lands as a single PR. Dependabot labels are per ecosystem, not per group, so pr-labels.yml tags those PRs effect-rc-bump by their branch name (dependabot/npm_and_yarn/effect-<hash>). What an agent then does with such a PR is written down in AGENTS.md under Effect RC bumps, because Dependabot writes its own PR body and would not carry a runbook from here.

Dependabot and prereleases

Verified against dependabot-core (npm_and_yarn/.../latest_version_finder.rb, related_to_current_pre?): prereleases are considered only when the pinned version is itself a prerelease of the same release, so 4.0.0-rc.112 -> 4.0.0-rc.N is followed. Once 4.0.0 ships Dependabot moves to it and then stops following 4.x prereleases. Caveat: Dependabot's pnpm catalog support has open bugs around lockfile regeneration; if a bump PR arrives with a broken lock, re-run pnpm install on the branch.

Resolves #57

How it was verified

  • pnpm test passes locally (458 tests), plus pnpm lint, pnpm typecheck, pnpm format:check
  • Added or updated tests covering this change (config only)

Release impact

  • Breaking
  • Not breaking — dev dependencies and CI config only.

Made by Claude Fable 5 via Claude Code (workflow subagent).

Pin effect, @effect/platform-node, @effect/sql-pg and @effect/vitest at
4.0.0-rc.112 (and @effect/language-service at 0.87.2) through the pnpm
catalog, with overrides forcing every transitive copy onto the catalog and
a name-based minimumReleaseAgeExclude so fresh RCs are not held for a day.
Dependabot groups the lockstep packages so each RC arrives as a single PR,
which pr-labels.yml tags `effect-rc-bump` for an agent to finish.

No source imports yet.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_0191mSZ5Nrvn7FMoNMRbKxhS
@github-actions github-actions Bot added area:ci CI, shared testing infrastructure, development scripts and tooling size:s Under 100 changed lines labels Aug 28, 2026
@allisonmahmood

Copy link
Copy Markdown
Owner Author

Two-axis review of this PR against main (61c0ebaf...941ef1b), with extra passes on issue #57 intent, the implementation method, and YAGNI. Compared to issue #57, not the resolution comment that restates this PR.

Standards

Scope: chore(deps): pin Effect 4 RC… (1 commit). Files: .github/dependabot.yml, .github/workflows/pr-labels.yml, package.json, pnpm-lock.yaml, pnpm-workspace.yaml. Title is conventional. Template verification + release impact are filled. area:ci matches labeler. No TS / eslint / ADR conflict.

Documented standards

Hard (process doc, not tree)

  • .github/PULL_REQUEST_TEMPLATE.md (“One or two sentences. What does this do, and why now?”) and AGENTS.md → Pull requests (“Body: the problem in a sentence or two, then how you fixed it”). Body adds a 3-step agent runbook plus Dependabot-core caveats. Required sections are present; extra process does not belong in the PR body.

Judgement (repo overrides YAGNI/docs placement)

  • AGENTS.md (“Do not introduce machinery… smallest model”; “durable… in the domain docs”) + docs/agents/triage-labels.md (canonical labels + areas only). pr-labels.yml invents effect-rc-bump and a github-script step so “an agent picks each one up”. Label is not in the triage table; playbook lives only in this PR. Branch prefix dependabot/npm_and_yarn/effect- already identifies the group.
  • AGENTS.md yagni + package.json: four unused root devDependencies (effect, @effect/platform-node, @effect/sql-pg, @effect/vitest) “so pnpm install resolves… nothing imports from effect yet.” Catalog + overrides could pin names without installing every consumer; lockfile now pulls redis / undici / msgpack / pg-types. Intentional for Effect v4 port map #54, still extra surface.
  • pnpm-workspace.yaml minimumReleaseAgeExclude: "@effect/*": broader than the Dependabot group (which excludes @effect/language-service). Language service still skips the 1-day age gate.

No CONTRIBUTING.md. labeler.yml / DEVELOPMENT.md / catalog conventions otherwise followed.

Baseline smells (all judgement)

  • Speculative Generality — unused root Effect deps; effect-rc-bump + github-script; @effect/* age-exclude glob.
  • Duplicated Code — lockstep-RC comment in dependabot.yml restated in pnpm-workspace.yaml.
  • Data Clumps — same package set listed in catalog, overrides, Dependabot patterns, and root devDependencies.
  • Shotgun Surgery — five files for one pin; expected for workspace+CI, not a split.

Clean

Conventional title; one concern; not-breaking + verification ticked; harness blurb; area:ci; allowBuilds / minimumReleaseAge extended in-kind; msgpackr-extract: false is a real allowBuilds convention.

Spec

Spec (issue #57):

Add a pnpm catalog: entry for effect, @effect/platform-node, @effect/sql-pg, @effect/vitest (and @effect/language-service) at the current rc; overrides forcing every transitive effect/@effect/* to the catalog; minimumReleaseAgeExclude for the pinned prerelease so the one-day release-age gate does not block it; a Dependabot config that opens one PR per RC for the Effect group with a port-requirement-style label so an agent picks each up and finishes it against MIGRATION.md. No source imports yet.

(a) Missing or partial

Overrides are a named five-pack, not every @effect/*.
Spec: “overrides forcing every transitive effect/@effect/* to the catalog.”
Catalog + overrides cover only effect, platform-node, sql-pg, vitest, language-service. The lockfile already has transitive @effect/[email protected] with no catalog/override. Same RC today (identity holds); a later split would not be forced. pnpm overrides are exact names, so a glob is not a drop-in — the missing catalog entry is the gap.

(b) Not asked for

  • allowBuilds.msgpackr-extract: false — install plumbing, not in the spec. Justified if effect / platform-node are actually installed.
  • minimumReleaseAgeExclude: [effect, "@effect/*"] — spec asked to exclude the pinned prerelease; this also skips the 1-day gate for stable @effect/language-service (and any future @effect/*). Name-based (vs pinning 4.0.0-rc.112) is the right shape for RC bumps.

Root devDependencies: catalog: is how a catalog pin becomes real in the lockfile; not creep against “make the pin real.”

(c) Looks done, but check the fit

port-requirement-style label — intent met. Spec did not say to reuse port-requirement (that label is port-map inheritance). effect-rc-bump is the analog an agent can filter. Reusing port-requirement would mix bump PRs into the map.

Dependabot group effect + exclude-patterns: @effect/language-service matches “one PR per RC”; language-service is a separate line.

Current RC: npm [email protected] (25 Aug 2026) is the latest RC; @effect/[email protected] is latest. Fine.

No source imports: config-only; no from "effect" / from "@effect.

Agent vs MIGRATION.md: label + this PR’s body runbook only; no in-repo automation. Spec asked for the pickup label, not a workflow.

Verdict: Pin, catalog, Dependabot group, age exclude, and no imports match intent. Remaining spec hole is transitive @effect/platform-node-shared (and any future @effect/*) not forced onto the catalog.

Implementation method

The real constraint is lockstep Effect 4 RCs: one version everywhere, one PR per RC, an agent finishes against MIGRATION.md, no source yet.

Catalog + overrides: "catalog:" is the right seam. Later packages can catalog:-reference one version; exact versions (not ^) match lockstep RCs. Pinning only in package.json would fight the monorepo. Keep named overrides — pnpm overrides are not scope globs, so "@effect/*": "catalog:" would miss (or fail on) packages that are not themselves catalog entries. @effect/platform-node-shared is already in the tree without an override.

Root devDependencies for all five is heavier than “make the pin real.” A catalog entry does not install; a referent is required so node_modules/effect/MIGRATION.md exists and the lockfile records the pin. That justifies effect (and @effect/language-service for the diagnostics work). Hoisting @effect/sql-pg / platform-node / vitest now pulls [email protected] (required peer of unused platform-node, autoInstallPeers: true) and forces allowBuilds.msgpackr-extract: false. Production deploy --prod should stay clean; the builder image still pays for it.

Lockfile shape vs catalog: catalogs.default still only lists parse5. Root Effect importers record specifier 4.0.0-rc.112, not catalog:. Dependabot catalog support is GA, with open lockfile/catalog drift bugs (#14339, #12244). The PR caveat is real; this lock shape makes “bump the catalog, keep catalog:” less likely to be the path Dependabot takes.

Dependabot group is the right dispatch. Group identifier is used in branch names. For directory: /, grouped PRs are dependabot/npm_and_yarn/effect-<hash>. labels: is per ecosystem, not per group, so it cannot isolate Effect from other npm PRs. Prerelease following (4.0.0-rc.N → later RCs, stops after 4.0.0) matches dependabot-core. Group effect is listed before patch-updates, so first-match is correct.

The labelling workflow is the method that ages badly, and it is already wrong for language-service.

if: github.event.pull_request.user.login == 'dependabot[bot]' && startsWith(github.event.pull_request.head.ref, 'dependabot/npm_and_yarn/effect-')

Solo npm branches strip @ (solo_strategy.rb .tr("@", "")), so a language-service PR is dependabot/npm_and_yarn/effect-language-service-<ver>. That still matches the prefix, so excluded language-service bumps get effect-rc-bump — the opposite of the exclude comment. pull_request_target + addLabels only (no checkout) is consistent with this file’s security comment. sync-labels will not strip the label. After 4.0.0 ships, the same prefix still fires on stable grouped bumps.

Runbook placement is a method miss. After merge, Dependabot PRs get Dependabot’s body, not this one. AGENTS.md has no effect-rc-bump procedure. The label survives; the agent instructions do not. Durable home is a few lines in AGENTS.md, or a workflow comment on labelled PRs — not this PR body.

Language-service exclude from the group is sound. 0.87.2 is a different release line; grouping it would mix unrelated changelogs into the “one RC” PR.

YAGNI

Allison’s bar: smallest model that makes the correct behavior unsurprising.

Piece Verdict Why
Catalog + named overrides: "catalog:" + Dependabot effect group keep This is the pin.
Root devDependencies of all five simplify Need a referent for effect (and language-service). Add platform/sql/vitest when the first import lands.
Extra pr-labels.yml github-script + effect-rc-bump delete Agents can match dependabot/npm_and_yarn/effect-* (group) already. The prefix also misfires on language-service.
minimumReleaseAgeExclude by name / @effect/* keep Version-pinning [email protected] would block the next RC for a day. Delete the list once 4.0.0 is stable.
Five named overrides vs "@effect/*": "catalog:" keep Overrides are not scope globs.
Long comments + 3-step runbook in this PR body simplify The prerelease-following note is the only non-obvious bit. Duplicate comments are ceremony.
msgpackr-extract: false keep if effect is installed Optional native addon; JS path is fine; strictDepBuilds would fail the install.
Dual github-script steps delete (with the extra step) Heavier than one if, or no script at all.

The pin itself (catalog + catalog: referent + named overrides + Dependabot group) is beautiful enough. Unused platform/sql/vitest, a new label, and a second pull_request_target script are overbuilt for “lock an RC.”

Summary

  • Standards: 4 findings (1 process, 3 judgement). Worst: extra labelling machinery + unused root Effect packages (speculative generality vs AGENTS.md YAGNI).
  • Spec: 2 findings (1 partial requirement, 1 small justified creep). Worst: overrides do not force every transitive @effect/* onto the catalog (@effect/platform-node-shared is already unbound).

Axes not ranked against each other. Actionable beyond the axes: the effect- branch prefix will label language-service PRs effect-rc-bump, and the agent runbook in this PR body will not be on the Dependabot PRs it describes.

Reviewed by Grok 4.6 via Grok Build TUI.

The label told an agent to pick a Dependabot RC bump up, but the
instructions for finishing one lived only in the pull request that
added the label, and Dependabot writes its own body. Moves the three
steps into AGENTS.md and points the Dependabot config at them.

Also corrects two workspace comments that overstated what they do: the
overrides pin the effect packages we depend on, not every transitive
@effect/*, and the `@effect/*` release-age exclusion is what keeps a
bump branch installable, at the cost of the gate on the language
service.

Co-Authored-By: Claude Fable 5 <[email protected]>
@github-actions github-actions Bot added the area:docs Touches the docs area label Aug 28, 2026
@allisonmahmood

Copy link
Copy Markdown
Owner Author

Worked through the review. Dispositions, verified against the tree and the lockfile:

Fixed (5123d80)

  • Runbook placement. Agreed and the sharpest finding: Dependabot writes its own body, so the three steps would have vanished the moment the label started being useful. Moved to AGENTS.md → Effect RC bumps, with dependabot.yml pointing at it and an explicit "delete this once 4.0.0 is stable". Trimmed the runbook out of the PR body.
  • Comments overstating the code. overrides said "every transitive effect/@effect/*" while listing five exact names; the release-age glob looked accidental. Both comments now say what the code actually does, including why the glob is the shape it is.

Valid, not changing

  • @effect/platform-node-shared unbound. Confirmed in the lockfile at 4.0.0-rc.112 with no catalog entry. Not adding one: nothing depends on it directly, so Dependabot would never bump that entry, and a catalog pin it cannot maintain would eventually hold the whole group on a stale RC — worse than letting it follow platform-node's exact range. The identity-critical singleton is effect, which is overridden. Noted in the comment instead.
  • minimumReleaseAgeExclude: "@effect/*" covers language-service. Real, and deliberate. Narrowing to the four RC names would let a fresh @effect/platform-node-shared hit the one-day gate and fail pnpm install on the bump branch — the exact thing the exclusion exists to prevent. The cost is one stable package skipping the gate for the length of the RC window. Now written down rather than implied.
  • Unused root devDependencies (platform-node, sql-pg, vitest). A catalog entry with no referent is invisible to Dependabot, so dropping these would silently break the "one PR per RC" property for three of the five packages, and Effect v4 port map #54 imports them shortly. Keeping.
  • Label absent from docs/agents/triage-labels.md. That doc is the issue-triage vocabulary; effect-rc-bump is a PR label applied by a workflow, like size:*, which that doc explicitly tells triage not to touch. AGENTS.md is the right home.
  • Stable grouped bumps still matching after 4.0.0. True, and the group and label both get deleted at that point.

False positive

  • effect- prefix catching language-service PRs. Dependabot strips @ but keeps the scope slash: @effect/language-service branches as dependabot/npm_and_yarn/effect/language-service-<ver>, the same shape as this repo's existing dependabot/github_actions/github/codeql-action/upload-sarif-4.37.8. startsWith('dependabot/npm_and_yarn/effect-') does not match …/effect/…, so excluded language-service bumps stay unlabelled.

pnpm install, lint, typecheck, format:check and test (458) all pass; the lockfile is unchanged by this commit.

Made by Claude Fable 5 via Claude Code.

@allisonmahmood
allisonmahmood merged commit 8c42763 into main Aug 28, 2026
8 checks passed
@allisonmahmood
allisonmahmood deleted the chore/pin-effect-rc branch August 28, 2026 13:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:ci CI, shared testing infrastructure, development scripts and tooling area:docs Touches the docs area size:s Under 100 changed lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Pin Effect 4 RC and open a Dependabot PR per RC

1 participant