Skip to content

prisma deploy works after prisma login with no service token, and runs Alchemy in the prisma process - #405

Merged
wmadden merged 50 commits into
mainfrom
claude/alchemy-deploy-in-process
Nov 17, 2026
Merged

wmadden merged 50 commits into
mainfrom
claude/alchemy-deploy-in-process

Conversation

@wmadden-electric

@wmadden-electric wmadden-electric commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

After prisma login, prisma deploy now works with no PRISMA_SERVICE_TOKEN:

$ prisma login
$ prisma deploy --environment staging     # no PRISMA_SERVICE_TOKEN in the environment
✔ connect to project and branch (4.3s)
✔ check environment variables (1ms)
▸ plan and apply
▸ creating bucket.blobs
✔ created bucket.files (2.0s)
✔ created bucket.blobs (1.1s)
✔ created bucket.blobs.deployment (7.0s)
✔ plan and apply (31.1s)

Before, a deploy after prisma login relied on the CLI copying a token into a child process, and a long deploy could outlive that token because nothing refreshed it.

What changed

prisma deploy, and the deploy operation on @prisma/composer/control, no longer write .prisma-composer/alchemy.run.ts and start the alchemy CLI as a child process. They call Alchemy's programmatic API in the prisma process:

const stack = lower(root, config, { name, environment, bundles, containers, preflightPayloads, findings, credentials });
const plan = yield* Alchemist.plan({ stack, operation: 'deploy', stage: environment });
yield* Alchemist.apply(plan);

What follows from that:

  • Authentication goes through the CLI's own API client. prisma deploy hands ctx.api to Composer, and it becomes the HTTP client that Alchemy's Prisma provider, Composer's own resources and the state store all use. The CLI sets the token and refreshes it inside the request, so Composer and Alchemy never hold a token and deploy writes no credential into process.env. A script that calls deploy() without credentials still uses PRISMA_SERVICE_TOKEN, as before.
  • Data crosses as values. Containers, preflight payloads, the list of platform variables with no value (feat(prisma-cloud)!: prisma deploy stops copying secrets from your local environment to Prisma Cloud, and fails only when a service needs a missing one #426) and the deployment summary used to cross a process boundary through environment variables and files. They are now arguments and return values.
  • Progress is step events. Each resource Alchemy touches is a step under deploy.apply, in human and --json output alike.
  • Failures are structured. An Alchemy failure is DEPLOY.ENGINE_FAILED with Alchemy's own error as the cause, with secrets removed. Ctrl-C interrupts the plan or apply, releases the environment's state lease, reports DEPLOY.INTERRUPTED, and exits 130.
  • The app's install runs the converge. The host loads lower and the converge function from the app's @prisma/composer, so one copy of alchemy and effect is in the process. Host and app agree on the shapes between them through a contract number, and a mismatch fails with DEPS.CONVERGE_CONTRACT_MISMATCH, naming which side to upgrade.
  • One converge per process. A second deploy in the same process while one runs is refused with DEPLOY.CONVERGE_RUNNING.

destroy and prisma dev are unchanged. They still generate a stack file and run Alchemy as a child. lower() reads its inputs from the environment when they are not passed, so the generated files are the same as on main. A host on Composer 0.39 or earlier and an app on this version cannot run deploy, destroy or prisma dev together, in either direction: #431 on main changed the app configuration file that the host writes and the app reads. The reader's error now says so.

Two behaviours of main are kept on the new path: deploy stops at preflight when a service needs a platform variable that has no value (#426), and deploy refuses a plain configuration value that contains a known secret (CONFIG.SECRET_AS_PLAIN_VALUE).

Dependencies

alchemy and @alchemy.run/prisma move to 2.0.0-beta.87, @distilled.cloud/prisma to 1.0.0-rc.20, and effect with its companion packages to 4.1.4. These are the first releases with the two upstream changes this needs: alchemy-run/alchemy#3101 and alchemy-run/distilled#1076, which let a caller supply the HTTP client and omit the token.

Breaking changes

  • ContainerCredentials is renamed CallerCredentials, with no alias. An extension that imports the old name must rename it.
  • A provider's lifecycle method must fail with a tagged error (Alchemy beta.87). @prisma/composer/deploy exports toProviderError to wrap any other error.
  • The deploy operation prints nothing. Alchemy's terminal text arrives as message events.

Additions to the public surface

  • DeploymentSummary.findings: the platform variables with no value that the preflight found.
  • DeployStep for a resource carries resourceId and status.
  • New error codes: DEPLOY.INTERRUPTED, DEPLOY.CONVERGE_RUNNING, DEPLOY.WORKER_THREAD, DEPLOY.MANAGEMENT_API_URL_CONFLICT, DEPS.CONVERGE_UNRESOLVABLE, DEPS.CONVERGE_CONTRACT_MISMATCH.

Known gaps, recorded as follow-ups

  • destroy still authenticates with a token in a child process, so a prisma login session cannot destroy.
  • Composer finds the Management API origin from PRISMA_MANAGEMENT_API_URL, the variable the CLI reads. The CLI engine should hand commands the origin instead.
  • Alchemy's HTTP state store still requires a token argument. Composer passes an empty one and its HTTP client removes the header.
  • Log tailing opens a WebSocket outside the HTTP client, so a caller with no token cannot tail. Composer does not tail.

Where to read

  • Decision record: docs/design/90-decisions/ADR-0066-deploy-runs-alchemy-in-process.md. It supersedes ADR-0007 for deploy.
  • Pipeline: docs/design/10-domains/deploy-cli.md, step 10.
  • Converge: packages/0-framework/3-tooling/cli/src/converge-in-process.ts and operations/execute-deploy-destroy.ts.
  • HTTP client over ctx.api: packages/1-prisma-cloud/0-lowering/lowering/src/management-api-http-client.ts.

Testing

Alternatives considered

  • Keep a child process that runs a Composer-owned runner. An extra process and a protocol, for nothing the in-process path lacks.
  • Keep generating the stack file and load it with Alchemist.importStack. The file existed so a failed run could be rerun with the Alchemy CLI. Writing code to import it back is a detour.
  • Hand Composer the access token, or a function that returns it. A token in Composer's hands cannot be refreshed or replaced inside a pending request. Only the CLI's own client can do that.

Agent: dante-73

🤖 Generated with Claude Code

wmadden-electric and others added 5 commits October 30, 2026 16:33
Every alchemy pin is now https://pkg.alchemy.run/alchemy/972f294ae0c7982a8ebcb551fadd07d29c9c0fca, and effect with every @effect/* companion is 4.1.0, which that build needs as its peer.

The build is 2.0.0-beta.84 plus later commits. What changed for us:

- The Prisma provider moved out of alchemy into @alchemy.run/prisma, pinned at the same commit. Imports of alchemy/Prisma now use it.
- @distilled.cloud/prisma is pinned to the exact tarball @alchemy.run/prisma depends on, so there is one copy.
- alchemy/Test/Core moved to @alchemy.run/test, which is not published. Provider tests use scratchStack and runScratch from the new @internal/lowering/testing entry, a port of the parts we used.
- Prisma.CustomDomain now waits for the CNAME on real nameservers before it registers a domain; the public URL test stubs node:dns/promises.
- Alchemy has a new --adopt message for replacements; withComposerAdvice rewrites it.

check:npm-effect-resolution now also asserts a single alchemy in the npm tree. The upgrade-alchemy-effect skill explains how to pin a preview build.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
…slice 1 review

- check:publish-deps fails on a URL, git or file: dependency in a published package, and says to swap a pkg.alchemy.run preview for a release. It runs only in the publish workflow, so PR CI is unaffected.
- alchemy, @alchemy.run/prisma, @distilled.cloud/prisma, effect and the @effect/platform-* packages are pinned once, in the pnpm catalog.
- check:npm-effect-resolution also asserts one @alchemy.run/prisma and one @distilled.cloud/prisma; its comments describe the current peers.
- @prisma/composer drops @effect/sql-d1, @effect/sql-sqlite-do and @effect/vitest, which alchemy no longer needs.
- @internal/lowering/testing is now @internal/lowering/scratch-stack, and the scratch stack no longer takes a state it ignored.
- withComposerAdvice rewrites the Prisma provider's adoption advice too, and a test scans the provider sources for it.
- The DNS stub keeps the rest of node:dns/promises. ADR-0048 and the deploying guide are updated.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
…aluation-5f1d17

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

# Conflicts:
#	docs/design/90-decisions/README.md
#	packages/1-prisma-cloud/0-lowering/local-target/src/compute.ts
#	packages/9-public/composer/package.json
#	pnpm-lock.yaml
#	test/integration/package.json
prisma deploy and the deploy operation now lower the app and call
Alchemist.plan and Alchemist.apply in process. No alchemy.run.ts is written
and no Alchemy child is spawned. destroy and prisma dev keep the stack file.

- lower() takes containers and preflight payloads as values; extensions read
  their payload as LowerContext.preflight. The env transports stay for the
  stack file.
- The report hook returns the summary as a value.
- Alchemy events become apply-resource steps under deploy.apply; log lines
  become messages.
- Failures are DEPLOY.ENGINE_FAILED with the cause; Ctrl-C is
  DEPLOY.INTERRUPTED and closes the scope, releasing the lease.
- prisma deploy needs PRISMA_SERVICE_TOKEN in the environment
  (DEPLOY.SERVICE_TOKEN_REQUIRED): cli-engine 0.9.0 has no public way to
  hand a command the active access token.
- convergeInProcess is the function slice 3 (dev) reuses.
- scratch-stack test harness rebuilt on alchemy/Alchemist.
- ADR-0064 supersedes ADR-0007 for deploy; amends ADR-0038/0043/0044.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
…state

- Load lower and convergeInProcess from the app's own @prisma/composer
  (new @prisma/composer/internal/converge entry), resolved from the app
  directory; DEPS.ENGINE_UNRESOLVABLE when it cannot be loaded.
- lower() takes containers and preflight payloads as required values;
  transportedLowerInputs() reads both transports for the generated stack
  files. Core invariant 4 pins process.env to that helper.
- convergeInProcess refuses a second concurrent run
  (DEPLOY.CONVERGE_RUNNING) and a worker thread that would need chdir
  (DEPLOY.WORKER_THREAD); every process state change is inside the try;
  Alchemy interaction output goes to stderr; it takes the operation and
  returns typed failure reasons.
- The console redirect moved to the prisma deploy command.
- Messages, the engine failure and stack-building errors are redacted.
- The service-token check moved into the operation, before preflight and
  ensure. The command passes a token only for an environment credential,
  with that credential's workspace, and PRISMA_WORKSPACE_ID is removed
  when it names none. credentials carries the token; convergeEnv is gone.
- family/converge.ts is now family/dev-converge-child.ts.
- Docs: ADR-0044 registry, ADR-0064, ADR-0043, ADR-0049, ADR-0062,
  build-reporting.md, deploy-cli.md and the deploying guide.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
@prisma-gizmo

prisma-gizmo Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

✅ Gizmo reviewed bbc4b2b — posted 0 inline comment(s) this pass.

Open findings: none

Change walkthrough

Change walkthrough

This incremental pass reviewed the delta since the last reviewed commit: the service input document now travels inside the service's artifact instead of a COMPOSER_<ADDRESS>_INPUT environment variable, recorded in the new ADR-0065, on top of the in-process deploy decision (renumbered to ADR-0066).

Framework core. control/deploy.ts threads each service's serialize product into package(ctx, input, serialized), giving the pack one intra-node handoff value it may write into the artifact. Because TypeScript assigns fewer-parameter implementations to the wider signature, existing descriptors keep compiling.

Prisma Cloud target. The compute descriptor's serialize no longer declares the input row as an EnvironmentVariable; descriptors/compute.ts passes the serialized document to compute/artifact.ts, which writes it as inputDocument in compute.bootstrap.json — changing the artifact bytes and therefore the content-addressed hash, so a changed document replaces exactly that deployment. The packer and the new readComputeInputDocument reader live in the same package, with error paths for missing/unreadable/non-JSON boot data. A $platform variable a document names still joins the deployment triggers via its rotation timestamp, keeping the rotation redeploy behavior.

Dev servers and the local target. A served service has no artifact, so reserve still writes the document as the COMPOSER_<ADDRESS>_INPUT variable, now with the correct preview/production class via the new variableClassAndBranch helper. local-target/compute.ts branches materializeEnv on the artifact: artifact services read platform variables from the artifact's document and drop the stale env row; the dev-server branch is unchanged. I verified the composerKey/ownKeyPrefix key algebra matches across the delete and the lookup.

Docs. The renumbering is applied consistently — I found no stale references to the old ADR-0065 filename. Guides (deploying.md, getting-started, building-an-app, SKILL.md) and ADRs 0007/0038/0038/0043/0044/0049/0062/0064 were updated to describe the artifact transport, including an upgrade note for operators.

The delta is well covered by tests: packer determinism and injection resistance, the reader's failure modes, the descriptor's serialize→package handoff, reserve's preview class, local-target env materialization both ways, and the app-side run(address, boot, inputDocument) precedence.

@coderabbitai

coderabbitai Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

Important

  • Trigger review

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

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: bdd69ae2-3d0e-4f1f-ac98-4f28b6e0323b
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@pkg-pr-new

pkg-pr-new Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

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

commit: bbc4b2b

wmadden-electric and others added 2 commits October 31, 2026 11:00
- Rename the app-loaded pair to AppConverge / loadAppConverge and the
  code to DEPS.CONVERGE_UNRESOLVABLE; add "converge" to the glossary.
- loadAppConverge refuses an app @prisma/composer at a version other
  than the host's (DEPS.CONVERGE_VERSION_MISMATCH, naming both), and
  resolves the install from the directory of prisma.config.ts.
- A rejected converge promise is DEPLOY.ENGINE_FAILED.
- The one-converge-per-process flag lives on globalThis under a
  Symbol.for key, so every install shares it.
- withProcessState restores the environment before the directory, and
  the running flag is set inside the try that clears it.
- An interrupted prisma deploy reports DEPLOY.INTERRUPTED as a message
  and ends with the engine abort, so it exits 130.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
…on a failed chdir

- @prisma/composer/internal/converge-contract exports CONVERGE_CONTRACT;
  loadAppConverge reads it before loading the converge and refuses a
  different number with DEPS.CONVERGE_CONTRACT_MISMATCH, naming both
  contracts and both versions and saying which side to upgrade. Package
  versions may differ.
- A failed chdir back to a removed directory no longer replaces the
  converge outcome.
- ADR-0064, ADR-0044, the ADR index, deploy-cli.md, the glossary and the
  deploying guide follow.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
wmadden-electric and others added 2 commits November 3, 2026 10:56
@alchemy.run/prisma moves to 2.0.0-beta.85 with it, and @distilled.cloud/prisma to 1.0.0-rc.18, the version it depends on. effect stays at 4.1.0.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
…my-deploy-in-process

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
wmadden-electric and others added 16 commits November 5, 2026 13:38
…anch

Keep our catalog pins (alchemy and @alchemy.run/prisma 2.0.0-beta.85, @distilled.cloud/prisma 1.0.0-rc.18, effect 4.1.0) and scratch-stack test imports. Take #402's footprint check (no @effect/vitest, vitest or vite; no @alchemy.run/prisma without the Prisma Cloud package), its process-listener check on the provider import, its ADR-0048 amendment and its effect-family pin rule in the upgrade skill.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
…my-deploy-in-process

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
…sma token optional

alchemy-run/alchemy#3101 and alchemy-run/distilled#1076 let PrismaEnvironment and Distilled Credentials omit the service token, so an HttpClient can authenticate requests itself. Pin alchemy, @alchemy.run/prisma and @distilled.cloud/prisma to the pr:3101:ab55f95 previews, and move effect and its companions to 4.1.2, the floor of that Distilled build's effect peer.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
…tate

LowerOptions.credentials carries what the caller already authenticated. Core passes it to each extension's providers() and to the state descriptor's create(), so an extension can use the engine's client inside the converge instead of reading a token from process.env.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
…plied client

The Prisma provider bundle and the hosted state store now take the caller's Management API client (ctx.api under prisma deploy). Composer's own resources use it directly. Alchemy's providers, Distilled's operations and the state store get an Effect HttpClient that sends Management API requests through the client's per-method calls, with the body, query and headers unchanged and the response read as a stream; other hosts, such as presigned upload URLs, go to node's transport. PrismaEnvironment and Credentials carry only the base URL, so nothing but the client sets Authorization. Without a supplied client, one is built from PRISMA_SERVICE_TOKEN and used the same way.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
Deploy passes ctx.api and the active credential's workspace to lower() as values, so the providers authenticate through the engine's refreshing client. DEPLOY.SERVICE_TOKEN_REQUIRED, the command's serviceToken plumbing and the PRISMA_SERVICE_TOKEN and PRISMA_WORKSPACE_ID entries of the converge's environment overlay are removed. CONVERGE_CONTRACT goes to 2: an app on contract 1 would ignore the credentials and look for a token in the environment.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
ADR-0064's credentials section now records that every Management API request goes through the engine's client, and why: cli-engine keeps tokens away from commands. The deploy-cli domain doc, ADR-0044's code list, the guides and the core-concepts skill drop DEPLOY.SERVICE_TOKEN_REQUIRED, and the guides again say prisma auth login is enough for prisma deploy.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
…its peer

npm ls compares dependency specs, so the pr:3101 URL and the tarball URL the provider names as its alchemy peer count as different packages even though one redirects to the other, and check:npm-effect-resolution failed on an invalid alchemy. Pinning the tarball URL makes the specs match.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
- The deploy HttpClient (renamed deployHttpClientLayer) removes every
  request's own Authorization, so only the supplied client authenticates.
  The state store no longer strips it itself.
- With a supplied client, Management API requests are recognised by the
  origin from PRISMA_MANAGEMENT_API_URL, as the prisma CLI reads it. A
  PRISMA_API_URL naming another host fails with
  DEPLOY.MANAGEMENT_API_URL_CONFLICT before any container is resolved.
- Rebuilt JSON error bodies keep a JSON string's quotes.
- One choice between the supplied client and a token-built one
  (suppliedOrFromEnv), used by the providers and the state store.
- providers({ credentials }) takes an input object, like preflight.
- ContainerCredentials is renamed CallerCredentials, in its own module.
- PrismaEnvironment no longer claims an environment service token when a
  client is supplied.
- Tests: Authorization removal, env-built client keeps its token, JSON
  string error body, byte/form/stream bodies with a 401 retry under bun
  and node, env-only path sends Bearer, host conflict and match, and the
  state store over a supplied client.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
…l deploy

The deploy HTTP client provided its custom Fetch only while building
FetchHttpClient.layer. The fetch client reads Fetch when it sends, from
the context it was first built in, and a real deploy has already built
FetchHttpClient.layer in the same layer memo map. The state store reused
that instance, sent its requests with global fetch and the empty bearer
token, and got HTTP 401 under a prisma login session.

Provide Fetch on each Management API request instead.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
The check runs lowering source directly, which now imports
@internal/foundation/errors from its built dist.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
…aluation-5f1d17

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>

# Conflicts:
#	examples/bucket/package.json
#	examples/cron/package.json
#	examples/storage/package.json
#	examples/store/package.json
#	examples/storefront-auth/package.json
#	packages/0-framework/1-core/core/package.json
#	packages/0-framework/3-tooling/cli/package.json
#	packages/1-prisma-cloud/0-lowering/local-target/package.json
#	packages/1-prisma-cloud/0-lowering/lowering/package.json
#	packages/1-prisma-cloud/1-extensions/target/package.json
#	packages/9-public/composer-prisma-cloud/package.json
#	packages/9-public/composer/package.json
#	website/package.json
…my-deploy-in-process

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
No release has shipped contract 2, so the merge with main does not
need a new number.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
…aluation-5f1d17

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>

# Conflicts:
#	examples/bucket/package.json
#	examples/cron/package.json
#	examples/orm-demo/package.json
#	examples/storage/package.json
#	examples/store/package.json
#	examples/storefront-auth/package.json
#	packages/0-framework/1-core/core/package.json
#	packages/0-framework/3-tooling/cli/package.json
#	packages/1-prisma-cloud/0-lowering/local-target/package.json
#	packages/1-prisma-cloud/0-lowering/lowering/package.json
#	packages/1-prisma-cloud/1-extensions/target/package.json
#	packages/9-public/composer-prisma-cloud/package.json
#	pnpm-lock.yaml
#	pnpm-workspace.yaml
#	website/package.json
The adoption-message test now reads the provider source recursively.
check:publish-deps unwraps npm: aliases and flags bare path specs.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
wmadden-electric and others added 6 commits November 17, 2026 08:15
…ider wrapper and the secret check get their own surfaces

- The deploy operation prints nothing itself. Its handler for ConvergeRequest.output turns Alchemy's terminal text into info message events, one per complete line, redacted, and sends the last partial line when the converge ends on every path. A throw from the output handler no longer fails the apply.
- Core exports wrappedProviderError, which returns the original error of a provider failure toProviderError wrapped. The converge's failureReasons uses it and recognises a structured error with CliStructuredError.is. ProviderFailure and PROVIDER_FAILURE_TAG are no longer exported.
- refuseSecretsIn moves to secret-as-plain-value.ts, and each caller passes its own sentence instead of a carrier name.
- The operations describe title says "the app converge entry".

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
…st comes from the summary

The converge contract type test writes out PreflightFindings, AppConfigurationRead, Bundle and DeployedNode's address and entities, so a change inside one fails it; opaque types stay by reference. The command test gives the summary and the preflight-findings event different findings and asserts the closing list is the summary's.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
Since #426 prisma deploy copies no local value to Prisma Cloud. The comment now says to set EMAIL_DELIVERY_CREDENTIAL with prisma project env add.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
@wmadden-electric wmadden-electric changed the title Run prisma deploy through alchemy/Alchemist in the prisma process prisma deploy works after prisma login with no service token, and runs Alchemy in the prisma process Nov 16, 2026
wmadden-electric added a commit that referenced this pull request Nov 16, 2026
…en dev reload design

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
@wmadden-electric
wmadden-electric marked this pull request as ready for review November 17, 2026 06:19

@prisma-gizmo prisma-gizmo Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New findings: 🔴 1 critical · trace

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>

@prisma-gizmo prisma-gizmo Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New findings: none · trace

Still open from previous reviews: 🔴 1 critical

Brings in #431: the app root declares each platform variable with variable(), and envSecret() and envParam() are removed. The in-process deploy keeps passing values to lower(); the secret refusal now covers main's plain platform variable text for prisma dev.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>

@prisma-gizmo prisma-gizmo Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New findings: none · trace

Still open from previous reviews: 🔴 1 critical

…t the documents after the merge

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>

@prisma-gizmo prisma-gizmo Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New findings: none · trace

Still open from previous reviews: 🔴 1 critical

@prisma-gizmo prisma-gizmo Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No Gizmo finding is open and the head commit has been reviewed. Approving.

…ssages that describe a second process

A host on Composer 0.39 or earlier can no longer reach lower() on this version, because the app configuration file changed, so nothing can set PRISMA_COMPOSER_PREFLIGHT_FINDINGS. Its reader and reserved-name check are removed.

Error messages no longer say a deploy has a second process or writes a file. The secret refusal names the platform secret. The app configuration file reader says the usual cause of a wrong shape is a host and an app on different Composer versions.

ADR-0065, the glossary, deploy-cli.md and the guide state which commands fail across versions, when each command refuses a secret in a plain value, and that destroy knows only the secrets its config list holds.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>

@prisma-gizmo prisma-gizmo Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New findings: 🔴 1 critical · trace

@wmadden
wmadden enabled auto-merge (squash) November 17, 2026 22:41
main took ADR-0065 for the input document decision (#432), so the in-process deploy decision is renumbered ADR-0066 and every reference follows it.

A test string the secret scanner flags is built from parts.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>

@prisma-gizmo prisma-gizmo Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New findings: none · trace

@prisma-gizmo prisma-gizmo Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No Gizmo finding is open and the head commit has been reviewed. Approving.

@wmadden
wmadden merged commit a459b5c into main Nov 17, 2026
21 of 22 checks passed
@wmadden
wmadden deleted the claude/alchemy-deploy-in-process branch November 17, 2026 23:07
wmadden-electric added a commit that referenced this pull request Nov 18, 2026
main now holds the deploy work as merged (#405), platform variables declared with variable() (#431) and the input document in the artifact (#432). Files the early deploy draft on this branch shared with #405 take main's version.

prisma dev keeps converging in the prisma process: plain platform variable text and named secrets reach the local target as values, the secret refusal runs before each converge, and no app configuration file is written for dev.

The documents are main's. The dev changes to them are re-applied once the reload design is final.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
wmadden-electric added a commit that referenced this pull request Nov 18, 2026
…the follow-ups from the #405 merge

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
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