docs(cli): document the formatter config, and what to do when db migrate fails with MIGRATION.PATH_UNREACHABLE #8853
All Vouch review confidence checks passed
Residual risk 0.29 = Change Risk (0.73) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.73 · 604 lines diff across 7 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.383
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.073
Real PR Conversation Timeline
1 comments
"Review active on #8853"
general
weight: 0.35
wmadden-electric
``
typescript title="prisma.config.ts"
`export default definePrismaConfig({
orm: ormConfig({
contract: "./prisma/contract.prisma",
formatter: { indent: 4, newline: "LF" },
}),
});
text
→ Plan the missing edge: prisma migration plan --from <current hash> --to <target hash> --name <slug>
Running it fails with MIGRATION.REF_NOT_FOUND
, because--toonly finds a contract that a migration or ref already names, and the new contract has neither yet. The command that works leaves out--to. The page tells the reader to do that. I will record the defect in the audit'schanges.mdas a new item for prisma/orm; when it is fixed, the warning sentence on the page goes away.What was checked
Every command and output on both sections was run on prisma
8.0.0-rc.34 with@prisma/orm-postgres8.0.0-rc.24, in a scratch project outside this repository, against PostgreSQL 15:with noformatter,indent: 4,indent: 'tab',indent: 1,newline: 'CRLF'; and the rejected valuesindent: 0,indent: 1.5,indent: 'tabs',newline: 'CR'.on a glob that matches a file without the// use prisma-8first line (it formats that file too).cases, in text and--jsonoutput, plus the suggested command that fails and the command that works.Six cold reader rounds ran with the docs-reader-review
skill, three of them on 17 November 2026 after the first review comments. The last round had no marks on schema formatting. Its three prose checks pass on the changed pages.Fixes that came through prisma/web#8850
An earlier version of this pull request also fixed the link check on main
(a bare relative link in the generated ORM error reference) and stale version numbers. Both fixes are now onmainthrough prisma/web#8850, so this pull request changes the four CLI pages only.Alternatives considered
page. The command has no flags of its own, so everything a reader needs is the config setting, and it sits with the other config settings.Agent: gagarin-12
🤖 Generated with Claude Code
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
<!-- coderabbit-ai-generated:v1 -->
Summary by CodeRabbit
Documentation
Documented contract format
, including which schema files it formats, formatter settings, line endings, editor support, version requirements, and errors for invalid settings.--db` is omitted and how formatter settings apply to Prisma ORM 7 schemas.Clarified database connection selection when
Added guidance for migration path errors, their metadata, and options for planning or applying migrations, including projects with no migrations.
Clarified that a verification failure prevents signing only the affected contract space.
Updated the transaction timeout reference and refreshed CLI installation examples to version 0.10.0.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->