Build against ORM development build 8.0.1-dev.33 and use its contract signature names, so the nightly run against the ORM passes again #10
All Vouch review confidence checks passed
Residual risk 0.22 = Change Risk (0.50) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.50 · 623 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.385
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #10"
general
weight: 0.35
wmadden
At a glance
Each night, a workflow builds and tests this repository against the newest development build of Prisma ORM, which the ORM publishes from every push to its
main. Since build8.0.1-dev.33that run fails its type check (#9). This pull request moves the repository onto that build and fixes the two names it broke, intest/descriptor.test.ts:Linked issue
Fixes #9
Summary
Prisma ORM renamed the contract "marker" to the contract "signature" (prisma/orm#31297), and this repository now uses the new names, so the nightly run passes again.
What the ORM changed
Each database keeps a record, for each contract space, of the contract it was last signed with: the contract's hashes and the invariants it holds.
prisma db signand the migration commands write that record. The ORM called it the contract marker and now calls it the contract signature, afterdb sign. Every published name that saidMarkernow saysSignature, such asContractMarkerRecordLike, nowContractSignatureRecordLike, and thecurrentMarkerinput ofresolveRecordedPath, nowcurrentSignature. The table in the database,prisma.signatures, keeps its name.What this pull request changes
It follows the upgrade steps in
CONTRIBUTING.md("Upgrading to a new Prisma ORM release"):@prisma/orm-entry in the package and in the demo moves from8.0.1-dev.18to8.0.1-dev.33. So do the two overrides inpnpm-workspace.yamlthat make theprismaCLI use the same toolchain as the package. They stay, because noprismaCLI release depends on that toolchain yet.CONTRIBUTING.mdandDEVELOPING.mdname the new build.test/descriptor.test.tsuses the new names, as shown above. No old name is kept as an alias.src/core/constants.ts, the package README,DEVELOPING.mdand the changelog say "contract signature" where they said "marker". The database tests' helper that readsprisma.signaturesis renamed frommarkertosignature.The other ORM changes between the two builds
The ORM records, for each breaking change, instructions for extensions and applications. I checked each one added between the two builds against this repository. None needs a change here:
paramKeys(prisma/orm#31314). This extension declares no data type; it registers thebm25index type and query operations.db.orm.fragmentbecomesdb.fragment(prisma/orm#31259). Neither the package nor the demo makes fragments.switchover them needs adefaultbranch (prisma/orm#31257, prisma/orm#31293). This repository switches over none of them.db initanddb updateno longer move thedbref, the file undermigrations/that records which contract the development database is at (prisma/orm#31291). The database tests rundb init, but none reads that file, and the command still succeeds.Testing performed
pnpm install,pnpm build,pnpm typecheckandpnpm lintpass.pnpm lint:upgrade-flow(the upgrade flow's check that every@prisma/orm-entry names the same exact version),pnpm lint:manifestsandpnpm lint:doc-linkspass.test/descriptor.test.tsandtest/published-identity.test.tspass.pnpm fixtures:checkwere not run locally; CI runs them.Upgrade notes
n/a. Only the development build the repository builds against changes, and nothing is published.
Checklist
git commit -s) per the [DCO](../CONTRIBUTING.md#developer-certificate-of-origin-dco).Notes for the reviewer
The ORM's instructions for this rename come with a script that renames the old names. On this repository it renamed the import and the type, but not the key
currentMarkerin the call toresolveRecordedPath, because that key is written in shorthand ({ currentMarker }), with the same name as the function's own parameter. The instructions list the shapes the script misses, and this shape is not among them. TypeScript reports the miss, so no one is misled for long, but the ORM's instructions should name it.Agent: romeo-32