docs(docs): error references are built from the release, and the CLI pages match rc.34 #8884
All Vouch review confidence checks passed
Residual risk 0.20 = Change Risk (0.50) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.50 · 588 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.382
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #8884"
general
weight: 0.35
wmadden-electric
The Prisma ORM error reference documented a flag that no released CLI accepts:
It also listed 11 error codes that 8.0.0-rc.24 never raises, and lacked 4 that it does raise. The cause: the page was generated from the
mainbranch of prisma/orm, so it described code that had not been released.Both error reference pages are now generated from the release. The generator asks npm for the
latestversion of@prisma/orm-postgres(for the ORM page) andprisma(for the CLI page), and builds from the git tagv<version>in prisma/orm and prisma/prisma-cli. Regenerated fromv8.0.0-rc.24andv8.0.0-rc.34, the ORM page loses the unreleased codes and the flag and gains the four missing codes.This pull request also fixes the other findings on the CLI and skills pages from a full audit of the Prisma ORM 8 docs against
prisma8.0.0-rc.34.The sync and the check
sync-error-reference-docs.yml, daily and on manual run). It resolves both releases from npm and confirms that each tag exists and that the npm package names the repository being checked out. If npm cannot be reached, the run fails; it never falls back tomain. If a release is on npm but its tag does not exist yet, the run skips with a warning for the first 24 hours after publishing and fails after that, so pages that fall behind are noticed.error-reference-check.yml, on pull requests). It no longer depends on whatlatestis today. It reads the tag recorded in each committed page, regenerates the page from that tag, and fails on any difference. A new release therefore cannot break an unrelated pull request, and a page built frommainis refused. It also runs the generator's tests (59, up from 39).env:only.A release reaches the site with the next daily run, up to a day later. The existing dispatch from prisma-cli fires on pushes to its
main, which no longer change the output; sending it from the release workflows of prisma/orm and prisma/prisma-cli, once the tag exists, would make the sync immediate. That is a change in those repositories and is not part of this pull request.Pages
cli/telemetry.mdx. New sections say what each event contains, when nothing is sent, and what the first-run notice says, taken from the CLI source and checked against a captured event. The page states that the value of theAI_AGENTenvironment variable is sent as it is set.ai/tools/skills.mdxandcli/skills.mdx. The agents areclaude,cursor,agentsanddevin; the page listed Codex and Windsurf. With npm,@prisma/composerarrives as a dependency ofprisma, so a Prisma ORM project also gets the Composer skill.cli/index.mdx. The "Adopt an existing database" steps wrote the inferred contract to a path the generated config does not read, so thecontract emitthat followed ignored it.cli/init.mdx.initexits 2 for an invalid option and for aprisma.config.tsit cannot use, such as a Prisma ORM 7 config (CLI.CONFIG_MISSING_MARKER). A new section covers a package inside a monorepo.cli/configuration.mdx. A badformattervalue fails withCLI.CONFIG_SECTION_INVALID;CLI.CONFIG_FIELD_INVALIDarrives in the diagnostics.cli/environment-variables.mdx,cli/orm-init.mdx,cli/global-flags.mdx,cli/feedback.mdx,cli/dev.mdx,cli/git.mdx: smaller corrections.Not fixed here, because the fix is in another repository
CONFIG.SECTION_MISSINGand twelveDEV.codes). They need entries indocs/reference/error-reference.mdin prisma/prisma-cli.CLI.INIT_REINIT_NEEDS_FORCE,RUNTIME.EXECUTION_RESULT_MISSING,RUNTIME.MIDDLEWARE_RESULT_MISMATCH). The release's own source lists them.CLI.code raised by a Prisma ORM command carries a link to the ORM page, which has no entry for it. Both pages' introductions now say where such a code is documented.How it was checked
An implementer verified each finding before changing anything. A separate reviewer did a code review of the generator and workflows and a reader review of the pages, in two rounds; it broke the code to confirm the tests fail, and regenerated both pages from their recorded tags to confirm they equal the committed pages byte for byte. All findings are fixed except the upstream items above. The workflows have not run on GitHub Actions yet; their steps were run locally.
Agent: gagarin-12
🤖 Generated with Claude Code