Repository navigation
Adopt alchemy 2.0.0-beta.74: upstream buckets, Deployment.triggers, patches retired - #254
Merged
Merged
Conversation
…-> 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]>
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]>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: 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. Comment |
commit: |
wmadden
approved these changes
Aug 22, 2026
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.
Alchemy
2.0.0-beta.74ships everything thebeta.67pin was waiting for (alchemy-run/alchemy#1061): the Prisma bucket resources andDeployment.triggers— the replacement-inputs seam designed asredeployOnand renamed in review. This PR takes the bump and lands the three hand-offs that were parked on it.The bump
2.0.0-beta.67 → .74in all 20 pinned package.json files; the effect constellation moves together to4.0.0-rc.111(alchemy@74 floors its effect peers at>=4.0.0-rc.110).pnpm dedupeis its own commit.ResourceClassLike.Aliasesexact-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 bareimport('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/BucketKeyresources, their/bucketsentrypoint, and their provider tests are deleted. The provider bundle registers upstreamPrisma.Bucket/Prisma.BucketAccessKey, local-target rebinds the emulator providers to the upstream classes, and the bucket descriptor moves to upstream props (project/bucketrefs). The descriptor keepsname: 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.Bucketprops and attrs to upstream field names,Prisma.BucketKey/PrismaComposer.BucketKeyontoPrisma.BucketAccessKeywith the reveal-once secret keptRedacted. 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.triggersdeploy-fingerprint.tsand the artifact hard-link machinery are deleted. The compute descriptor declares one trigger member per environment row, carrying the SAMERedactedvalue the row writes, plus a<name>:updatedAtmember 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. TheartifactPathhanded to the hosted Deployment is the canonical content-addressed path again; the env→deployment ordering edge still ridesapp(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
Redactedin props and only the saltedtriggersHashis persisted.deployment-edge.test.tsdrives 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 declarestriggersrecords 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 theupgrade-alchemy-effectskill (both patches recorded as resolved upstream, standing checks kept).Verification
check:npm-effect-resolutionpasses (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 onmain— environmental, not from this branch.examples/bucket, mirroring thedeploy-verify-destroyaction): fresh deploy created a realPrisma.Bucket+Prisma.BucketAccessKeyand 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