Skip to content

Adopt alchemy 2.0.0-beta.74: upstream buckets, Deployment.triggers, patches retired - #254

Merged
wmadden-electric merged 7 commits into
mainfrom
claude/alchemy-release-status-e26b1f
Aug 22, 2026
Merged

wmadden-electric merged 7 commits into
mainfrom
claude/alchemy-release-status-e26b1f

Conversation

@wmadden-electric

Copy link
Copy Markdown
Contributor

Alchemy 2.0.0-beta.74 ships everything the beta.67 pin was waiting for (alchemy-run/alchemy#1061): the Prisma bucket resources and Deployment.triggers — the replacement-inputs seam designed as redeployOn and renamed in review. This PR takes the bump and lands the three hand-offs that were parked on it.

The bump

  • alchemy 2.0.0-beta.67 → .74 in all 20 pinned package.json files; the effect constellation moves together to 4.0.0-rc.111 (alchemy@74 floors its effect peers at >=4.0.0-rc.110). pnpm dedupe is its own commit.
  • Both pnpm patches are deleted as obsolete. Upstream fixed the ResourceClassLike.Aliases exact-optional declaration (workspace typechecks clean unpatched), and the node-utils lockfile module — whose module-scope exit hook the second patch scoped — no longer exists at all. A bare import('alchemy') registers zero SIGINT/SIGTERM/exit listeners; the signal-listeners suite still stands as the regression check and its fixture drops the import of the dead module.

Bucket adoption

Composer's Bucket/BucketKey resources, their /buckets entrypoint, and their provider tests are deleted. The provider bundle registers upstream Prisma.Bucket/Prisma.BucketAccessKey, local-target rebinds the emulator providers to the upstream classes, and the bucket descriptor moves to upstream props (project/bucket refs). The descriptor keeps name: id — the name Composer's own resource always created — so a migrated access key diffs clean instead of replacing (a replacement would mint fresh credentials).

Legacy state rows migrate on read like the other six families (state/legacy-resources.ts): Prisma.Bucket/PrismaComposer.Bucket props and attrs to upstream field names, Prisma.BucketKey/PrismaComposer.BucketKey onto Prisma.BucketAccessKey with the reveal-once secret kept Redacted. Proven against upstream's real diff/read/reconcile: no action planned, read finds the deployed resources, reconcile keeps the persisted secret without minting.

In passing, build reporting's resource table (builds/resources.ts) moves to upstream type-ids and attribute names. It still keyed the pre-adoption shapes (Prisma.ComputeService, attr.id), so since the provider adoption (#197) only deployments were ever reported; all seven types report again.

The env-change signal moves onto Deployment.triggers

deploy-fingerprint.ts and the artifact hard-link machinery are deleted. The compute descriptor declares one trigger member per environment row, carrying the SAME Redacted value the row writes, plus a <name>:updatedAt member per pointed platform variable (from the existing preflight transport). Upstream salts and hashes the resolved members inside its own state and plans the replacement exactly when one moved. The artifactPath handed to the hosted Deployment is the canonical content-addressed path again; the env→deployment ordering edge still rides app (unchanged).

Because upstream resolves the actual values, a value re-issued under a stable resource identity (a connection rotated in place, a re-minted service key) now moves the fingerprint too — closing the accepted narrowing ADR-0048 recorded for the deleted Composer-side hash, which could only see wiring identity for withheld rows. No plaintext lands in state: members are Redacted in props and only the salted triggersHash is persisted.

deployment-edge.test.ts drives upstream's real diff over the new prop: reuse when unchanged, replace on a value change / pointer rotation / unresolved member, and — key for adoption — the first deploy that declares triggers records its fingerprint through a plain update, so existing services pay nothing.

Docs follow: gotchas.md (PRO-211 workaround), alchemy-lowering.md, deploying.md, ADR-0048, the glossary pin, and the upgrade-alchemy-effect skill (both patches recorded as resolved upstream, standing checks kept).

Verification

  • Full workspace typecheck, lint, build, and unit/integration tests green. check:npm-effect-resolution passes (single [email protected] in the healthy consumer shapes; adversarial tree still caught at CLI start-up). The one red suite, @internal/dev-emulators' postgres registry tests, fails identically on main — environmental, not from this branch.
  • Real-cloud E2E against the dev workspace (examples/bucket, mirroring the deploy-verify-destroy action): fresh deploy created a real Prisma.Bucket + Prisma.BucketAccessKey and the compute service; the S3 PUT/GET round trip verified; an unchanged redeploy planned update (deployment reused, triggers fingerprint recorded); a third unchanged deploy confirmed steady-state reuse — no per-deploy replacement; destroy and project sweep ran clean.

🤖 Generated with Claude Code

…-> rc.111

Upstream 2.0.0-beta.74 ships what the beta.67 pin was waiting for: the
Prisma bucket resources (Bucket, BucketAccessKey, bindings) and
Deployment.triggers (the redeployOn seam, renamed in review —
alchemy-run/alchemy#1061). alchemy@74 floors its effect peers at
4.0.0-rc.110, so the whole constellation moves to rc.111 together.

Both pnpm patches are deleted as obsolete: upstream fixed the
ResourceClassLike.Aliases exact-optional declaration (typecheck is clean
unpatched), and the node-utils lockfile module — whose module-scope exit
hook the second patch scoped — no longer exists at all (verified: a bare
import of alchemy registers no SIGINT/SIGTERM/exit listeners; the
signal-listeners fixture drops its import of the dead module).

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
Delete Composer's Bucket/BucketKey resources and their /buckets
entrypoint; register upstream Prisma.Bucket and Prisma.BucketAccessKey in
the provider bundle, rebind the local-target emulator providers to the
upstream classes, and move the bucket descriptor onto upstream props
(project/bucket refs; name pinned to the provision id so a migrated key
diffs clean instead of replacing and re-minting credentials).

Legacy state rows migrate on read like the other six families:
Prisma.Bucket / PrismaComposer.Bucket props+attrs to upstream field
names, and Prisma.BucketKey / PrismaComposer.BucketKey onto
Prisma.BucketAccessKey with the reveal-once secret kept Redacted.
Proven against upstream's real diff/read/reconcile: no action planned,
read finds the deployed resources, reconcile keeps the persisted secret
without minting a new key.

Build reporting's resource table moves to upstream type-ids and
attribute names too — its Project/Database/Connection/App/
EnvironmentVariable entries still keyed the pre-adoption shapes
(Prisma.ComputeService, attr.id), so since the provider adoption only
deployments were ever reported.

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
Delete the Composer-side deploy fingerprint (deploy-fingerprint.ts and
the artifact hard-link machinery): the compute descriptor now declares
one Prisma.Deployment.triggers member per environment row, carrying the
SAME Redacted value the row writes, plus a <name>:updatedAt member per
pointed platform variable from the preflight transport. Upstream salts
and hashes the resolved members inside its own state and plans the
replacement (create-before-delete) exactly when one moved — proven
against upstream's real diff: reuse when unchanged, replace on a value
change, on a pointer rotation, and on an unresolved member; and the
first deploy that declares triggers records its fingerprint through a
plain update, so adoption costs existing services nothing.

Because upstream resolves the actual values, a value re-issued under a
stable resource identity (a connection rotated in place, a re-minted
service key) now moves the fingerprint too — closing the accepted
narrowing ADR-0048 recorded for the deleted Composer-side hash, which
could only see wiring identity for withheld rows. Generated params
trigger on their mint-once-stable value for the same reason.

The artifactPath handed to the hosted Deployment is the canonical
content-addressed path again; the env->deployment ordering edge still
rides the app prop (deployment-edge.ts, unchanged).

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
…dead patches

alchemy-lowering.md, deploying.md, gotchas.md (PRO-211 workaround) and
ADR-0048 now describe change propagation through
Prisma.Deployment.triggers instead of the deleted Composer-side
fingerprint, including the closed re-issued-value narrowing; the
glossary and ADR reference pin move to 2.0.0-beta.74. The
upgrade-alchemy-effect skill records both pnpm patches as resolved
upstream (Aliases typing fixed; the node-utils lockfile module no
longer exists) and keeps the standing checks.

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
@coderabbitai

coderabbitai Bot commented Aug 22, 2026 •

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: d0df144f-9ce0-424f-9fac-ddb5ca3c7670


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@pkg-pr-new

pkg-pr-new Bot commented Aug 22, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@prisma/composer@254
npm i https://pkg.pr.new/@prisma/composer-cli@254
npm i https://pkg.pr.new/@prisma/composer-prisma-cloud@254

commit: 97eae11

@wmadden-electric
wmadden-electric enabled auto-merge (squash) August 22, 2026 09:08
@wmadden-electric
wmadden-electric merged commit 362ca4d into main Aug 22, 2026
16 checks passed
@wmadden-electric
wmadden-electric deleted the claude/alchemy-release-status-e26b1f branch August 22, 2026 09:14
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.

2 participants