docs(docs): contract pages match rc.24 #8882
All Vouch review confidence checks passed
Residual risk 0.18 = Change Risk (0.46) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.46 · 467 lines diff across 5 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.368
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #8882"
general
weight: 0.35
wmadden-electric
The editor support page showed this MongoDB index, as an example of what the editor completes:
That form was removed in 8.0.0-rc.17, and
prisma contract emitrefuses it. The form that works, which the PSL syntax page already uses, is:This is one of 23 findings on the contract pages from a full audit of the Prisma ORM 8 docs against
prisma8.0.0-rc.34 and the ORM packages at 8.0.0-rc.24. This pull request fixes all of them. Every PSL and TypeScript sample on the changed pages was run throughprisma contract emitat those versions.What changed
data-modeling/index.mdx. It saidcontract emitneeds its ownTemporalwhen a field has a fixed date default. It does not. It also said Prisma ORM 8 supports only PostgreSQL and MongoDB; it now points to Supported databases.contract.tsfails to emit in a"type": "commonjs"project, with the fix; whatprisma contract printneeds to turn a TypeScript contract into PSL; and that a relation's ownfksettings overrideforeignKeyDefaults.cli/contract-infer.mdx. Inference works on PostgreSQL only; other databases fail withCONTRACT.INFER_UNSUPPORTED. Without--outputit writes over the configured contract. Both are now stated.executionHash: what it covers, thatdb signdoes not record it, and that a change to it alone needs no migration.storageHashis described as covering the wholestoragesection.map:on@id,@@id,@unique,@@uniqueand@relationis documented, for PostgreSQL.orm initimportsdefinePrismaConfigfrom@prisma/cli-engine; the page saidprisma/config. Both work, and the page says so.src/prisma/contract.prisma. The page names the extension version to use (31.12.15or later) and explains that the extension runs theprismapackage installed in the project.cli/contract-emit.mdx. The JSON output example is from the current version, withexecutionHashandpinnedFilesexplained.VectorandVector(length)are in the field types table.One page outside the contract section changes so it does not contradict it: the MongoDB "Extensions" cell on
orm/supported-databases.mdxsaid "Not yet". The MongoDB client accepts extension packs; every pack published today is for PostgreSQL.How it was checked
An implementer verified each finding before changing a page. A separate reviewer then read every changed page in full and ran the new claims against PostgreSQL and MongoDB, in two rounds; all of its findings are fixed.
pnpm lint:linksandpnpm lint:versionspass.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
Expanded guidance for contract emission, inference, artifact hashes, schema authoring, and editor support, including output locations, overwrite behavior, database limitations, and migration workflows.
Clarified PostgreSQL constraint naming and row-identity behavior, plus MongoDB vector types and extension-pack support.
Updated supported-database guidance and examples, including TypeScript module-resolution details.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->