← Back to Pull requests

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

Closed
unknown closed this pull request without merging on Dec 01, 2026 06:13 UTC
View on GitHub
unknown unknown commented on Dec 01, 2026 04:55 UTC
Author

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 build 8.0.1-dev.33 that run fails its type check (#9). This pull request moves the repository onto that build and fixes the two names it broke, in test/descriptor.test.ts:

-  type ContractMarkerRecordLike,
+  type ContractSignatureRecordLike,
 ...
-function migrationsAppliedFrom(currentMarker: ContractMarkerRecordLike | null) {
+function migrationsAppliedFrom(currentSignature: ContractSignatureRecordLike | null) {
   const outcome = resolveRecordedPath({
     ...
-    currentMarker,
+    currentSignature,

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 sign and the migration commands write that record. The ORM called it the contract marker and now calls it the contract signature, after db sign. Every published name that said Marker now says Signature, such as ContractMarkerRecordLike, now ContractSignatureRecordLike, and the currentMarker input of resolveRecordedPath, now currentSignature. 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"):

  • Every @prisma/orm- entry in the package and in the demo moves from 8.0.1-dev.18 to 8.0.1-dev.33. So do the two overrides in pnpm-workspace.yaml that make the prisma CLI use the same toolchain as the package. They stay, because no prisma CLI release depends on that toolchain yet. CONTRIBUTING.md and DEVELOPING.md name the new build.

  • test/descriptor.test.ts uses the new names, as shown above. No old name is kept as an alias.

  • Tests, a comment in src/core/constants.ts, the package README, DEVELOPING.md and the changelog say "contract signature" where they said "marker". The database tests' helper that reads prisma.signatures is renamed from marker to signature.
  • 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:

  • Data types with parameters must now declare paramKeys (prisma/orm#31314). This extension declares no data type; it registers the bm25 index type and query operations.

  • db.orm.fragment becomes db.fragment (prisma/orm#31259). Neither the package nor the demo makes fragments.

  • Some types now allow values a later 8.x release may add, so a switch over them needs a default branch (prisma/orm#31257, prisma/orm#31293). This repository switches over none of them.

  • Control adapters gain members to read a database's policies from its own config (prisma/orm#31287). This repository implements no control adapter.

  • In CI, db init and db update no longer move the db ref, the file under migrations/ that records which contract the development database is at (prisma/orm#31291). The database tests run db init, but none reads that file, and the command still succeeds.

  • The client only warns when it cannot read the contract signature (renamed in prisma/orm#31297). This repository matches none of the error codes involved.
  • Testing performed

  • pnpm install, pnpm build, pnpm typecheck and pnpm lint pass.

  • pnpm lint:upgrade-flow (the upgrade flow's check that every @prisma/orm- entry names the same exact version), pnpm lint:manifests and pnpm lint:doc-links pass.

  • test/descriptor.test.ts and test/published-identity.test.ts pass.

  • The database tests and pnpm fixtures:check were not run locally; CI runs them.
  • Upgrade notes

    n/a. Only the development build the repository builds against changes, and nothing is published.

    Checklist

  • All commits are signed off (git commit -s) per the [DCO](../CONTRIBUTING.md#developer-certificate-of-origin-dco).

  • Tests are updated.

  • For a bug fix: n/a.

  • The Upgrade notes section above is filled in.
  • 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 currentMarker in the call to resolveRecordedPath, 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

    Diff: 623 lines (+467 / -156) across 7 files Reviewer: wmadden Review duration: 78m
    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
    0.50
    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%
    56%
    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.385
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #10"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 56.8% 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: 50.3% (MEDIUM) · Higher = larger blast radius
    50.3%
    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: 56.8% · Lower = rushed or shallow review
    56.8%
    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: 21.8% · Safe to merge
    21.8%