Repository navigation
Use the binder for Mongo PSL interpretation - #30538
Conversation
…named model Two namespaces declaring `model User` plus a relation field in each: the bare-name relation-target lookup collapses to the last-registered mapping, so the public-namespace FK is stamped against auth.User. Red against the current fallback. Signed-off-by: Steven McClankerton <[email protected]>
…e bare type name The relation-lowering loop resolved a field's model target through a bare-name view of the model mappings, so two namespaces declaring the same model name collapsed to whichever was registered last and the FK was stamped against the wrong namespace. It now reads the resolution the binder recorded for the field's type reference and keys the mapping on the resolved ModelSymbol, which distinguishes the two by construction. The mappings carry the namespace they were built with, so the FK target namespace and the declaring namespace come from the mapping instead of two more bare-name lookups; `modelNamespaceIds` loses its last caller. The written-qualifier normalisation, the flattened-name-set guard, and the unreachable post-parse target check go with them. `resolvePolymorphism`'s parameter is renamed to say what its callers pass: coordinate-keyed mappings, not bare-name ones. Signed-off-by: Steven McClankerton <[email protected]>
… already refused An unqualified model name the binder could not resolve was reported twice: once by the binder as an unresolved type reference, once again by the relation loop as an invalid relation target. The loop now steps past an unresolved resolution and leaves that name to the binder. It steps past only the unqualified form. For a qualified name the interpreter drops the binder's type-position diagnostic at the collector (checkUncomposedNamespace treats any dotted prefix outside db, the family, the target, a field-preset namespace, or a composed extension as an uncomposed extension namespace) and emits no replacement for a plain type reference, so the relation loop is the only voice the author hears there. Removing the narrowing turns the pinned wrong.User refusal silent. The two cases the diagnostic still answers are kept and pinned: a resolution that is absent (a malformed type, which the binder leaves unexamined) and a resolution that is not a model (an enum or composite type, which the binder has no reason to complain about). The unsupported-named-type pin tightens to an exact code set: it passed under arrayContaining either way. Signed-off-by: Steven McClankerton <[email protected]>
… type reference SQL dropped every binder type-class diagnostic whose name carried a dotted prefix outside its five exemptions, on the theory that its own richer unrecognized-namespace message replaced it. That replacement exists only for a type-constructor call, so a bare `ns.Type` lost its only voice: an author writing `wrong.User` heard nothing about `wrong.User`. The binder now records whether the reference it failed to resolve was written as a constructor call, and the filter suppresses only that shape. The bare reference keeps the binder voice, the constructor call keeps its single richer one. With the voice restored, the relation loop no longer needs the unqualified-only narrowing that stood in for it: a relation target the binder could not resolve is skipped whatever its form. PSL_INVALID_RELATION_TARGET stops claiming a resolved target is an unknown model. It knows the kind from the resolution and now says so, so a composite type is reported as a composite type. Signed-off-by: Steven McClankerton <[email protected]>
A back-relation candidate took its target from the written type name and the pairing graph keyed every side on bare model names. Two namespaces declaring the same two model names therefore matched each list field against both namespaces FK sides, and a legal schema was refused with PSL_AMBIGUOUS_BACKRELATION. A candidate now carries the model symbol the binder resolved its type reference to, FK metadata carries the symbols on both of its ends, and the pairing graph keys on the namespace-qualified identity those symbols already have — the same identity the polymorphism pass uses, hoisted above the model loop so both can read it. Junction matching compares the symbols directly. A field whose type does not resolve to a model no longer becomes a candidate at all, so the pairing graph never sees a name it could not place. Signed-off-by: Steven McClankerton <[email protected]>
…ned name sets The `modelNames` and `compositeTypeNames` sets answered "is this field a relation" and "is this field a value object" by bare name, across every namespace at once. Both questions are now the resolution kind the binder recorded for the field type reference, so a name declared in a sibling namespace no longer classifies a field that cannot see it. One consequence is visible in the pins and is not an improvement: a field whose type resolves to nothing but whose bare name matched some model anywhere used to be skipped as a relation field, and now falls through to the field-type cascade, which adds its unsupported-type message after the binders unresolved-reference one. The sibling-namespace and wrong-qualifier pins record that second message rather than hide it. Signed-off-by: Steven McClankerton <[email protected]>
…model name" This reverts commit fcf7e22. Signed-off-by: Steven McClankerton <[email protected]>
…he revert Reverting the back-relation pairing conversion also removed the helper that decides whether a field is a relation candidate from the binder resolution. The flattened name set it replaced is gone, so the helper returns and the candidate loop keeps asking the binder; only the pairing keys go back to bare names. Signed-off-by: Steven McClankerton <[email protected]>
The constructor-call half of the type-voice split was pinned on codes only. Pin it beside the restored half, on the message the author actually reads and on the absence of the binder second voice. Signed-off-by: Steven McClankerton <[email protected]>
…ead from readResolvedAttributes maps one-to-one over a declarations attributes, so the node each resolved attribute came from was recoverable only by re-walking the syntax and matching the name. It is now recorded on the resolved attribute and the type is generic over which attribute form it holds, so a field symbol offers field attributes and an entity offers model attributes. The pin records what identity means here: the recorded nodes underlying syntax node is the same object a fresh walk reaches, while the AST wrapper around it is allocated per walk. Signed-off-by: Steven McClankerton <[email protected]>
…lking the syntax findModelAttributeNode and findFieldAttributeNode walked a declarations attributes and matched a name to recover a node the symbol had already read. Every one of their call sites now asks the symbol for the attribute it wants and takes the node from it, and both helpers are gone. getAttribute carries the attribute form through, so a field yields a field attribute node and an entity yields a model attribute node — the same types the attribute interpreters require, with no narrowing at the call sites. Signed-off-by: Steven McClankerton <[email protected]>
…ed unresolved A field whose type reference the binder could not resolve was reported twice: Cannot find type "X" from the binder, then "type X is not supported in SQL PSL provider v1" from the field-type cascade. The second message is wrong as well as redundant — the type is not unsupported, it does not exist. The three last-resort pushes now stand down for an unresolved reference. They are reached only when the cascade had nothing specific to say, so SQL keeps every voice that is a different complaint: the unrecognized-namespace guidance and the unknown-preset message both arrive through the already-reported paths and are untouched. Eleven pins carried the old pairing under containment matchers. They are exact sets now, each naming the single voice that remains. Signed-off-by: Steven McClankerton <[email protected]>
…duplicated The suppression asked only whether a name pointed at an unrecognized extension namespace. A registered field-preset namespace is exempt from that question, so a typoed preset earned both the binders "cannot find type" and SQLs unknown-preset message, which says the same thing with the namespace and the spelling hint attached. The rule is unchanged — drop the binder type voice only where SQL emits its own message for the same reference — and now names both messages that qualify. The predicate moves next to the two voices it describes. The shape gate stays where it was: both replacements are reached only from a type-constructor call, so a bare name in a preset namespace, for which SQL says nothing, keeps the binder as its only voice. That case is pinned alongside. Signed-off-by: Steven McClankerton <[email protected]>
The name and the two branches say what it answers, and its precondition is enforced by the callers shape gate and pinned by a test. Signed-off-by: Steven McClankerton <[email protected]>
Signed-off-by: Steven McClankerton <[email protected]>
Signed-off-by: Steven McClankerton <[email protected]>
Signed-off-by: Steven McClankerton <[email protected]>
Signed-off-by: Steven McClankerton <[email protected]>
Signed-off-by: Steven McClankerton <[email protected]>
Signed-off-by: Steven McClankerton <[email protected]>
Signed-off-by: Steven McClankerton <[email protected]>
Signed-off-by: Steven McClankerton <[email protected]>
Signed-off-by: Steven McClankerton <[email protected]>
Signed-off-by: Steven McClankerton <[email protected]>
Signed-off-by: Steven McClankerton <[email protected]>
Signed-off-by: Steven McClankerton <[email protected]>
Signed-off-by: Steven McClankerton <[email protected]>
Signed-off-by: Steven McClankerton <[email protected]>
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. 🧰 Additional context used📚 Code guidelines (1)No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: prisma/orm/.coderabbit.yml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (1)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthroughThe MongoDB PSL interpreter now classifies field types through binder resolutions and uses symbol-keyed physical names for models and fields. It updates relation, index, and polymorphism lowering, and adjusts diagnostics for unresolved types and presets. ChangesMongoDB PSL interpretation
Priority: ⬇️ Low Estimated code review effort: 4 (Complex) | ~45 minutes Change: Refactor Sequence Diagram(s)sequenceDiagram
participant PSLField
participant Binder
participant MongoInterpreter
participant Diagnostics
PSLField->>Binder: Resolve field type reference
Binder-->>MongoInterpreter: Return type resolution
MongoInterpreter->>Diagnostics: Filter preset diagnostic or map unresolved diagnostic
Suggested reviewers: Merge Risk: ⚪ Minimal · up to The Mongo configuration test now expects an unresolved-reference diagnostic for the old field names, consistent with the interpreter’s reported behavior. No material merge risk is established. Architecture SummaryArchitecture risk: 🔵 Low · up to The change affects 2 systems. Changed systems: Architecture concerns Review detailsSystems and components
Before / after behavior
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Comment |
@prisma/orm-extension-arktype-json
@prisma/orm-extension-middleware-cache
@prisma/orm-extension-paradedb
@prisma/orm-extension-pgvector
@prisma/orm-extension-postgis
@prisma/orm-extension-supabase
@prisma/orm-family-mongo
@prisma/orm-family-sql
@prisma/orm-framework
@prisma/orm-mongo
@prisma/orm-postgres
@prisma/orm-sqlite
@prisma/orm-target-mongo
@prisma/orm-target-postgres
@prisma/orm-target-sqlite
@prisma/orm-toolchain
commit: |
size-limit report 📦
|
Preserve binder-based type and relation resolution, symbol-keyed physical names, and preset shadowing while retaining upstream Mongo scalar guidance and nested-index diagnostics. Signed-off-by: Steven McClankerton <[email protected]>
Signed-off-by: Steven McClankerton <[email protected]>
…30545) ## Linked issue This project explicitly omits Linear tickets. Prerequisite: [prisma#30538](prisma#30538), still open/queued; this PR targets `mongo-conversion` and should be retargeted after it merges. [Approved slice spec](projects/symbol-table-resolve/slices/lsp-conversion/spec.md). ## At a glance From the [completion regression](packages/1-framework/3-tooling/language-server/test/completion-provider.test.ts), with `|` marking the cursor: ```prisma model Shared { id Int } namespace app { enum Shared { VALUE } model Int { id String } model Local { value | } } namespace other { model Hidden { id Int } } ``` Completion includes local `Local` and classifies `Int` as a model; the local enum hides the outer `Shared` model before candidate filtering. The previous independent enumeration missed these lexical rules. ## Summary Existing language-server features now share the parser binder's declaration and reference resolution. This removes duplicate resolution logic without introducing new LSP features or expanding namespace support. ## Decision Retain and enumerate authoritative binder scopes, then use the snapshot's binder for completion, signature-help owners, semantic tokens, and interpreter-absent semantic diagnostics. ## Notes for the reviewer Internal source APIs change and their consumers are updated; no authoring-schema migration is required. SQL, Mongo, and Prisma7 interpreter implementations are unchanged. Independent D1/D2 reviews are satisfied. Packaging remains blocked by the dependency-install trust check described below; remote CI has not been claimed green. ## How it fits together 1. `scopeAt(node)` uses snapshot-owned syntax identity. `entries()` follows lookup's nearest-name, kind-blind shadowing; qualified member enumeration excludes lexical parents. See [scope implementation and API](packages/1-framework/2-authoring/psl-parser/src/scope.ts) and [scope tests](packages/1-framework/2-authoring/psl-parser/test/scope.test.ts). 2. LSP owner span scans, duplicated candidate enumeration, and name-based classification cascades are deleted. [Project artifacts](packages/1-framework/3-tooling/language-server/src/project-artifacts.ts) cache one binder beside the symbol table and invalidate it with snapshots/configuration; [lifecycle tests](packages/1-framework/3-tooling/language-server/test/project-artifacts.test.ts) verify identity and replacement. 3. Named-type base annotations record references at their definition site, without new diagnostics or recursive alias interpretation. Interpreters remain the sole semantic diagnostic source when present; binder diagnostics are the fallback only when interpretation is unavailable, not when it crashes. ## Behavior changes & evidence - Completion respects local shadowing, qualified-member isolation, and actual owners across equal spans in different files ([implementation](packages/1-framework/3-tooling/language-server/src/completion-provider.ts), [tests](packages/1-framework/3-tooling/language-server/test/completion-provider.test.ts)). - Unbound expressions receive plain `type` tokens rather than guessed symbols. Unresolved field references retain property highlighting, and malformed decorators preserve every parsed segment ([implementation](packages/1-framework/3-tooling/language-server/src/semantic-tokens.ts), [exact-token regressions](packages/1-framework/3-tooling/language-server/test/semantic-tokens.test.ts)). ## Testing performed At code commit `46e966273d`; the final commit only records the approved spec: - Parser 1,166; LSP 751; SQL 572; Mongo 277; Prisma7 132 tests passed, plus all five package typechecks. - 20 focused LSP parity, attribute-consumability, and CLI-without-Temporal integration tests passed; integration typecheck passed. - Dependency builds, standalone `pnpm fixtures:check`, parser/LSP lint, `pnpm lint:packages`, and repository dependency/cast/throw/code/docs/rules/manifests and other lint gates passed. - Packaging suites were **blocked**, not green: installs fail with `ERR_PNPM_TRUST_DOWNGRADE` for `@vercel/[email protected]`. No bypass or dependency change was attempted. - Full-workspace tests were not run. Active editor diagnostics were inconclusive; compiler typechecks passed. ## Skill update No update required: no new user-facing workflow or authoring syntax; the existing typed-AST guidance covers the added getter. ## Checklist - [x] All commits are DCO signed off. - [x] CONTRIBUTING.md read; one logical concern. - [x] Tests updated. - [ ] Linear-prefixed title: explicitly waived for this ticket-free project; approved title used. - [x] Skill update section completed. ## Alternatives considered - Keeping LSP-specific resolvers would preserve competing shadowing and ownership rules. - Appending binder diagnostics to interpreter output would duplicate semantic reports; diagnostic ownership remains exclusive. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Language Server** * Improved completions for model types, namespace members, field references, block keys, and entity-reference arguments, including scope-aware name visibility and shadowing. * Updated semantic highlighting for qualified names, types, and field references, with fallback highlighting for unresolved references. * Binder diagnostics are available when no project interpreter is configured. * Name resolution is consistent across completions, signature help, and semantic highlighting. * **Bug Fixes** * Mongo interpretation applies mapped names consistently to fields, relations, indexes, and collections, and supports enum fields. * Unresolved field types now report missing-type diagnostics; handled presets avoid duplicate unresolved-reference errors. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Signed-off-by: Steven McClankerton <[email protected]> Co-authored-by: Steven McClankerton <[email protected]>
…stic createProjectBinder builds the binder from the symbol table, sources and ContractSourceContext; both family providers, the language server and tests use it, and interpret receives it through PslInterpretInput. interpretPslSqlSources / interpretPslMongoSources run symbol table, binder and interpret in one call. The family descriptor's pslDiagnostics supplies describeUnsupportedAttribute and describeUnresolvedType. The extension-pack guess, both binder-diagnostic filters and PSL_UNKNOWN_FIELD_PRESET are removed. ProjectArtifacts caches one binder per snapshot. Rebased onto #30538 (6ccdd44), which moved Mongo's interpreter onto the binder's own Resolution-kind classification. Kept #30538's resolution code in full (composite/enum/model|namedType|block|crossSpace/contributedType/ unresolved branches, the single physicalNames map, direct ResolvedAttribute .node reads) while keeping this branch's binder-from-caller rules: the interpreter reads `input.binder` instead of building its own, never filters or rewrites binder diagnostics, and leaves the unknown-type wording to describeUnresolvedType. describeUnresolvedMongoType now defers to the binder's plain "Cannot find type" message for a qualified or constructor- call reference, matching #30538's new tests. Co-Authored-By: Claude Opus 5.5 <[email protected]> Co-Authored-By: Claude Sonnet 5 <[email protected]> Signed-off-by: Steven McClankerton <[email protected]>
…stic createProjectBinder builds the binder from the symbol table, sources and ContractSourceContext; both family providers, the language server and tests use it, and interpret receives it through PslInterpretInput. interpretPslSqlSources / interpretPslMongoSources run symbol table, binder and interpret in one call. The family descriptor's pslDiagnostics supplies describeUnsupportedAttribute and describeUnresolvedType. The extension-pack guess, both binder-diagnostic filters and PSL_UNKNOWN_FIELD_PRESET are removed. ProjectArtifacts caches one binder per snapshot. Rebased onto #30538 (6ccdd44), which moved Mongo's interpreter onto the binder's own Resolution-kind classification. Kept #30538's resolution code in full (composite/enum/model|namedType|block|crossSpace/contributedType/ unresolved branches, the single physicalNames map, direct ResolvedAttribute .node reads) while keeping this branch's binder-from-caller rules: the interpreter reads `input.binder` instead of building its own, never filters or rewrites binder diagnostics, and leaves the unknown-type wording to describeUnresolvedType. describeUnresolvedMongoType now defers to the binder's plain "Cannot find type" message for a qualified or constructor- call reference, matching #30538's new tests. Co-Authored-By: Claude Opus 5.5 <[email protected]> Co-Authored-By: Claude Sonnet 5 <[email protected]> Signed-off-by: Steven McClankerton <[email protected]>
…stic createProjectBinder builds the binder from the symbol table, sources and ContractSourceContext; both family providers, the language server and tests use it, and interpret receives it through PslInterpretInput. interpretPslSqlSources / interpretPslMongoSources run symbol table, binder and interpret in one call. The family descriptor's pslDiagnostics supplies describeUnsupportedAttribute and describeUnresolvedType. The extension-pack guess, both binder-diagnostic filters and PSL_UNKNOWN_FIELD_PRESET are removed. ProjectArtifacts caches one binder per snapshot. Rebased onto #30538 (6ccdd44), which moved Mongo's interpreter onto the binder's own Resolution-kind classification. Kept #30538's resolution code in full (composite/enum/model|namedType|block|crossSpace/contributedType/ unresolved branches, the single physicalNames map, direct ResolvedAttribute .node reads) while keeping this branch's binder-from-caller rules: the interpreter reads `input.binder` instead of building its own, never filters or rewrites binder diagnostics, and leaves the unknown-type wording to describeUnresolvedType. describeUnresolvedMongoType now defers to the binder's plain "Cannot find type" message for a qualified or constructor- call reference, matching #30538's new tests. Co-Authored-By: Claude Opus 5.5 <[email protected]> Co-Authored-By: Claude Sonnet 5 <[email protected]> Signed-off-by: Steven McClankerton <[email protected]>
…stic createProjectBinder builds the binder from the symbol table, sources and ContractSourceContext; both family providers, the language server and tests use it, and interpret receives it through PslInterpretInput. interpretPslSqlSources / interpretPslMongoSources run symbol table, binder and interpret in one call. The family descriptor's pslDiagnostics supplies describeUnsupportedAttribute and describeUnresolvedType. The extension-pack guess, both binder-diagnostic filters and PSL_UNKNOWN_FIELD_PRESET are removed. ProjectArtifacts caches one binder per snapshot. Rebased onto #30538 (6ccdd44), which moved Mongo's interpreter onto the binder's own Resolution-kind classification. Kept #30538's resolution code in full (composite/enum/model|namedType|block|crossSpace/contributedType/ unresolved branches, the single physicalNames map, direct ResolvedAttribute .node reads) while keeping this branch's binder-from-caller rules: the interpreter reads `input.binder` instead of building its own, never filters or rewrites binder diagnostics, and leaves the unknown-type wording to describeUnresolvedType. describeUnresolvedMongoType now defers to the binder's plain "Cannot find type" message for a qualified or constructor- call reference, matching #30538's new tests. The interpreters no longer look up names written in field type positions: SQL and Mongo take field types from the binder's resolution, and the binder binds a field preset name to the preset descriptor. A preset or a type constructor that needs arguments, written without a call, reports PSL_PRESET_NOT_CALLED / PSL_TYPE_CONSTRUCTOR_NOT_CALLED. Co-Authored-By: Claude Opus 5.5 <[email protected]> Co-Authored-By: Claude Sonnet 5 <[email protected]> Signed-off-by: Steven McClankerton <[email protected]>
…stic createProjectBinder builds the binder from the symbol table, sources and ContractSourceContext; both family providers, the language server and tests use it, and interpret receives it through PslInterpretInput. interpretPslSqlSources / interpretPslMongoSources run symbol table, binder and interpret in one call. The family descriptor's pslDiagnostics supplies describeUnsupportedAttribute and describeUnresolvedType. The extension-pack guess, both binder-diagnostic filters and PSL_UNKNOWN_FIELD_PRESET are removed. ProjectArtifacts caches one binder per snapshot. Rebased onto #30538 (6ccdd44), which moved Mongo's interpreter onto the binder's own Resolution-kind classification. Kept #30538's resolution code in full (composite/enum/model|namedType|block|crossSpace/contributedType/ unresolved branches, the single physicalNames map, direct ResolvedAttribute .node reads) while keeping this branch's binder-from-caller rules: the interpreter reads `input.binder` instead of building its own, never filters or rewrites binder diagnostics, and leaves the unknown-type wording to describeUnresolvedType. describeUnresolvedMongoType now defers to the binder's plain "Cannot find type" message for a qualified or constructor- call reference, matching #30538's new tests. The interpreters no longer look up names written in field type positions: SQL and Mongo take field types from the binder's resolution, and the binder binds a field preset name to the preset descriptor. A preset or a type constructor that needs arguments, written without a call, reports PSL_PRESET_NOT_CALLED / PSL_TYPE_CONSTRUCTOR_NOT_CALLED. Attribute-spec factories now receive the field's type resolution as FieldAttributeSpecContext.typeResolution, and SQL's @default enum arms take the enum from it instead of looking the written type name up. The @@Discriminator check in SQL and Mongo accepts a field that resolves to a contributed type, or a named type whose base resolves to one, with the codec id of the stack's String scalar, so a named type based on String is accepted and a user model or composite named String is rejected. A named type's base is resolved in a scope without the named types, which replaces the binder's self-reference retry. Co-Authored-By: Claude Sonnet 5 <[email protected]> Signed-off-by: Steven McClankerton <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
…stic Rebased onto main (#30538, #30545, #30051, #30566) as one change. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Steven McClankerton <[email protected]>
Linked issue
This project intentionally omits Linear tickets by operator decision. Prerequisite: #30478 (merged). Scope and completion: Mongo conversion spec.
At a glance
From the provider interpretation test:
This now reports
PSL_UNRESOLVED_REFERENCE: Cannot find type "Mystery", rather than the interpreter'sPSL_UNSUPPORTED_FIELD_TYPEfallback.Summary
Use the existing binder as the authority for Mongo PSL declaration resolution. Reuse its resolved symbols and typed attribute nodes so classification, relation targets, and diagnostics agree instead of independently resolving names.
Decision
The interpreter consumes same-snapshot binder results for models, composites, enum blocks, and contributed types. Physical-name lowering uses exactly one
Map<ModelSymbol | FieldSymbol, string>; actual attribute interpretation populates each name once.Notes for the reviewer
Mongo still rejects every explicit namespace block. There are no public API or contract-shape changes, but the unresolved-type error code and wording change intentionally. Preset misuse diagnostics and separate relation/polymorphism semantic errors remain.
Main was merged without rewriting history after #30478 was squash-merged. The file diff has no SQL, Prisma7, parser, or lockfile changes, despite the retained prerequisite commit history.
How it fits together
ResolvedAttribute.nodedirectly, removing AST re-walks and positional joins. The single physical-name index supplies forward FK mappings, indexes, and discriminator/base lowering. Interpreter tests and polymorphism tests verify mapped output and single malformed-map diagnostics.Testing performed
Validated after the main merge; the final commit only records completion in the spec:
pnpm turbo run build --filter=@internal/mongo-contract-psl...pnpm --filter integration-tests test --project integration --project packagingwith six focused files: CLI emit, Mongo enums, migration PSL authoring, temporal presets, scalar-list Mongo parity, and value objects. 120 passed, includingtest/cli.emit-command.test.tsin both modes.pnpm fixtures:check,pnpm lint:deps, andpnpm lint:castspassed; cast delta 0.This is focused coverage, not a full-workspace test run. No test failures or reported skips.
Skill update
No authoring-workflow translation is required: supported PSL syntax, configuration, and emitted contracts are unchanged. The observable diagnostic-code/wording change is documented above and pinned in tests; it does not require changing an authoring skill's instructions.
Checklist
git commit -s) per the DCO.Summary by CodeRabbit