← Back to Pull requests

docs(docs): getting-started pages and agent prompts match rc.34 and create-prisma 0.14.8 #8880

Closed
unknown closed this pull request without merging on Nov 20, 2026 14:04 UTC
View on GitHub
unknown unknown commented on Nov 20, 2026 10:52 UTC
Author

The agent prompt on the docs home page told an agent to apply each schema change with this command:

npx prisma db migrate --yes

On the second schema change that fails:

MIGRATION.PATH_UNREACHABLE

Plain db migrate does not record which contract the development database is at, so the next migration plan plans the previous change again. The prompts on the docs home page, /getting-started and /prisma-orm now plan with migration plan --name <name> and apply with db migrate --advance-ref db --yes, as the quickstarts already do.

This is one of 16 findings on the getting-started pages from a full audit of the Prisma ORM 8 docs against prisma 8.0.0-rc.34, @prisma/orm-postgres and @prisma/orm-mongo 8.0.0-rc.24, and create-prisma 0.14.8. This pull request fixes all of them. Every command and every printed output on the changed pages was run again at those versions, against PostgreSQL 17 and MongoDB 8.

What changed

  • Full-stack tutorial, step 7. The User model shown had different createdAt and updatedAt types from the scaffold's, so pasting it planned three operations and broke the type check. It is now the scaffold's model with the one new line.

  • Adopting an existing MongoDB database. The page sent readers to migration plan for collections that already exist, which fails with MIGRATION.PRECHECK_FAILED. It now adopts them with db update --advance-ref db first, warns before the command that validators reject writes that do not fit, and gives the first step for production, both before and after migrations exist.

  • The four pages that run orm init in an existing app. They now match rc.24: which tsconfig.json settings it changes, when it adds "type": "module", that db.ts imports ./contract.d.js, and that orm init already writes the two contract files.

  • prisma-postgres/from-the-cli. The page ran orm init and then linked a page that runs it again, which stops with CLI.CONSENT_REQUIRED. It now runs it once. It also no longer says orm init installs the agent skills.

  • create-prisma page and the prompts. The turborepo template is listed, with its own file paths (packages/database/src/). The page says what happens in a folder that is not empty, and that the scaffold commits a first migration.

  • PostgreSQL quickstart. It now has the edit, emit, plan, migrate loop that the create-prisma page links to it for.

  • Guides overview. Six guides had no card: React Router, SolidStart, Vercel, Deploy an existing app, and the two PostgreSQL upgrade guides.

  • Printed output on the from-scratch, existing-app and existing-database pages is replaced with output from the current versions.
  • Two pages outside the getting-started section change so they do not contradict it: cli/orm-init.mdx (the tsconfig settings orm init keeps, now a table) and guides/index.mdx.

    How it was checked

    An implementer verified each finding before changing a page. A separate reviewer then read every changed page in full and re-ran the flows, in two rounds; all of its findings are fixed. pnpm lint:links and pnpm lint:versions pass.

    One claim could not be checked without a real deploy: which project a prisma deploy uses when the project and the app share a name. The page keeps the wording the quickstart already had.

    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 setup guidance for Turborepo projects, existing PostgreSQL and MongoDB databases, orm init configuration, and non-empty project folders.
    Clarified migration planning, applying migrations, database initialization, troubleshooting, and Git setup across quickstarts and tutorials.
    Added React Router, SolidStart, Vercel, Prisma Compute, and PostgreSQL upgrade guides; updated the MongoDB upgrade guide.
    * Refreshed command examples, model declarations, template instructions, and sample outputs across the documentation.
    <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 525 lines (+393 / -132) across 6 files Reviewer: wmadden-electric Review duration: 191m
    All Vouch review confidence checks passed
    Residual risk 0.19 = Change Risk (0.48) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.48 · 525 lines diff across 6 files
    0.48
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    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.375
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #8880"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 47.8% (MEDIUM) · Higher = larger blast radius
    47.8%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 18.9% · Safe to merge
    18.9%
    Repository