docs(adr): ADR-0050 records that Composer runs as prisma deploy and prisma dev; ADR-0049 gains its rejected alternatives #347
All Vouch review confidence checks passed
Residual risk 0.30 = Change Risk (0.75) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.75 · 650 lines diff across 8 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.388
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.075
Real PR Conversation Timeline
1 comments
"Review active on #347"
general
weight: 0.35
wmadden-electric
A reader of ADR-0003 today is told:
That command no longer exists. What actually runs is:
Decision
This PR adds ADR-0050: Composer runs as
prisma deployandprisma dev; it has no binary of its own. It records a decision that was already implemented in #331 but never written down, and amends the ADRs that still describe the old binary. Separately, it adds to ADR-0049's alternatives the rejected ways to keep a Composer-ownedeffectcheck, marked as an amendment.What the ADR records
1.
@prisma/composer-clideclares nobin. It ships only the command family that theprismaCLI (prisma/prisma-cli) mounts. TheprismaCLI mounts exactly two Composer commands:prisma deploy <entry>andprisma dev <entry>.2.
deployanddevare mounted at the root as bare verbs on purpose, likeprisma init, rather than under a noun (prisma project deploy). Mostprismacommands are noun then verb (prisma auth login).3.
destroyandloghave no command. They stay as operations on@prisma/composer/control, and the guides show a short script for each. A teardown script needsPRISMA_SERVICE_TOKENandPRISMA_WORKSPACE_ID; it cannot use theprisma auth loginsession.4. Mounting
destroywas rejected. The CLI's destructive verb isdelete, and no Composer command takes--production(prisma deploytargets production by leaving out--stage). Where teardown and logs belong in theprismacommand tree is not decided; that is tracked in TML-3521. Until then agents, like users, need a script to readprisma devlogs, and the ADR records that cost against the Agent-first principle.5. Inside this repository, examples and CI run the published
prismaCLI with a root pnpm override pointing@prisma/composer-cliat the workspace. CI teardown isscripts/composer-destroy.ts. The exampledestroyscripts keep--production/--stage; those flags only name the operation's two targets for this repository's scripts and are not a public command grammar. The ADR records that this was accepted.6.
scripts/lint-retired-binary-name.mjsfails CI on the old binary name in user-facing files.docs/design/is not scanned, so ADRs can keep their history.What else changes
--name), ADR-0024 (the "destroy names its target" rule) and ADR-0043 (the CLI renders two of the four operations). History in the bodies is untouched.effecttree (an engine veto hook, Composer loading the config itself, an import-time check in@prisma/composer/config, lazy Alchemy imports in the/controlentries), and states the exit code (2) ofCLI.CONFIG_UNREADABLE.deploy-cli.md,local-dev.md,10-domains/README.md,core-model.md,module-composition.md,glossary.md): command names updated toprisma deploy/prisma dev, anddestroy/logdescribed as operations. These are living docs, so they are edited in place. Every remaining description ofprisma-composer.config.tsas Composer's config file, indeploy-cli.md,core-model.mdandmodule-composition.md, now says thecomposersection ofprisma.config.ts, per ADR-0049. No doc underdocs/design/outside the ADR bodies still names the old file.deploy-cli.mdalso lists all fourdeployflags and theCONFIG.FIELD_RETIRED/CONFIG.FILE_RETIREDerrors.local-dev.mdnow giveslog's realtaildefault (0), drops a claimed pointer fromdevtologthat the code does not print, and describes local Postgres as the@prisma/devservers the emulator hosts, not the ORM CLI'sprisma devcommand.Docs only. Checks:
pnpm lint(exit 0; existing warnings only),pnpm lint:retired-binary-name(clean), and a relative-link check over the changed docs (no new broken links).Alternatives considered
deployanddevare bare, whydestroyhas no command). This repository's rule is that a decision future readers need to understand gets an ADR (docs/design/90-decisions/README.md).Refs: TML-3340, TML-3521 (where teardown and logs go in the command tree). Related: prisma/composer#331 (binary removed), prisma/prisma-cli#330 (first pinned the host to Composer 0.26.0, the first version without the binary; the host now pins 0.28.0).
Agent: saruman-38
🤖 Generated with Claude Code