Skip to content

docs: close out shared PSL value specifications - #30485

Merged
SevInf merged 3 commits into
mainfrom
close/generic-block-value-specs
Sep 29, 2026
Merged

SevInf merged 3 commits into
mainfrom
close/generic-block-value-specs

Conversation

@StevenMcClankerton

@StevenMcClankerton StevenMcClankerton commented Sep 28, 2026 •

Copy link
Copy Markdown
Collaborator

Close out shared PSL value specifications after #30344 and #30381 merged. Reconcile the existing architecture documentation with the shipped binder-owned reference resolution and consumer-owned block interpretation, and record the final retro.

Linear tracking was explicitly waived. This PR changes documentation only; it introduces no runtime behavior, tests, or new architectural decisions.

Close-out evidence

  • Both implementation slices merged. Final implementation CI passed build, typecheck, lint, coverage, all package/integration shards, fixtures, e2e, examples, and Supabase acceptance. All review threads on Generic block values bind the shared typed expression grammar #30381 are resolved.
  • Shared struct/map specs replace the old block-value DSL; typed outputs, bare enum members, codec behavior, and independent semantic checks have runtime/type and family integration coverage.
  • Current reference tests cover forward declarations, namespace precedence and fallback, sibling exclusion, selected identities, and declared-role/unchecked-name alternatives. Existing completion, signature, and printing regressions pass.
  • Durable decisions remain in ADRs 231/249/254/255 and the parser README. This PR corrects stale contexts and lifecycle descriptions, including binder construction and diagnostic ownership. It removes the unnecessary upgrade fragment: the project changed internal APIs, not public APIs.
  • The mandatory final retro is recorded in drive/retro/README.md: establish phase ownership before disputed implementation, preserve discriminated spec types, and verify downstream extensions and aggregate CI rather than treating scoped passes as complete verification.

All 59 local project artifacts were classified as transient and archived intact outside the active project directory. They were untracked, so their archival produces no tracked project-file deletions or migrations. No durable external project references required updates. Historical manual QA remains archived with its protocol-only and pre-final-API limitations; final regression tests and merged CI are the current implementation evidence.

Cross-namespace inheritance, persisted full-coordinate variants, and new block-value completion remain outside this project's scope.

Verification: source-checked API examples, pnpm lint:docs, and git diff --check passed. No product tests were rerun for this documentation-only close-out. The global Drive trace emitter could not resolve arktype; no trace event was fabricated or global installation modified.

Summary by CodeRabbit

  • Documentation
    • Clarified that block declarations are collected before block values and attributes are interpreted, using a complete symbol-table snapshot for reference resolution.
    • Updated architecture guidance on when unresolved-reference diagnostics are reported and how they differ from block value and attribute diagnostics.
    • Added guidance on confirming review interpretations, preserving specification details in typed APIs, and checking downstream extensions and CI results.

@StevenMcClankerton
StevenMcClankerton requested a review from a team as a code owner September 28, 2026 17:44
@coderabbitai

coderabbitai Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository: prisma/orm/.coderabbit.yml

Review profile: CHILL

Plan: Advanced

Run ID: bd6c9bd9-6bc3-448e-8369-101f4efcca8d

📥 Commits

Reviewing files that changed from the base of the PR and between 02edede and 2513306.

📒 Files selected for processing (1)
  • upgrade-instructions/pending/typed-block-value-specs/extension/instructions.md
💤 Files with no reviewable changes (1)
  • upgrade-instructions/pending/typed-block-value-specs/extension/instructions.md

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.


📝 Walkthrough

Walkthrough

The documentation describes declaration collection before block interpretation, snapshot binder use for references, and diagnostic ownership. It removes pending extension migration instructions and adds a recurring review-pattern entry.

Changes

Snapshot Binder and Block Interpretation

Layer / File(s) Summary
Declaration collection and binder lifecycle
docs/architecture docs/adrs/ADR 231 - Declarative attribute specifications.md, docs/architecture docs/adrs/ADR 249 - Central attribute-spec registry.md, docs/architecture docs/adrs/ADR 255 - Block specs bind top-level block values.md, packages/1-framework/2-authoring/psl-parser/README.md, upgrade-instructions/pending/typed-block-value-specs/extension/instructions.md
The documentation places declaration collection before consumer-created binding and block interpretation. It also removes pending instructions for a proposed typed-block migration.
Attribute context and diagnostics
docs/architecture docs/adrs/ADR 231 - Declarative attribute specifications.md, docs/architecture docs/adrs/ADR 249 - Central attribute-spec registry.md
The ADRs document sources, symbols, and binder in AttributeCtx. They assign unresolved-reference diagnostics to the binder and shape and selector diagnostics to combinators.

Review Pattern Notes

Layer / File(s) Summary
Recurring review guidance
drive/retro/README.md
A new entry covers PSL review interpretations, typed API spec discriminants, downstream checks, and CI scope.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Other

Suggested reviewers: sevinf

Merge Risk: ⚪ Minimal · up to 25133

This documentation-only change adds no runtime behavior, and no actionable merge-blocking risk remains.

Architecture Summary

Architecture risk: 🔵 Low · up to 02ede

The change affects 4 systems.

Changed systems: docs, drive, packages/1-framework, upgrade-instructions

Architecture concerns
No architecture-level concerns identified.

Review details

Systems and components

  • observed — docs (service) was modified; 3 changed files map to changed impact.
  • observed — drive (service) was modified; 1 changed file maps to changed impact.
  • observed — packages/1-framework (library) was modified; 1 changed file maps to changed impact.
  • observed — upgrade-instructions (service) was modified; 1 changed file maps to changed impact.

Before / after behavior

  • observed — Modified behavior in docs/architecture docs/adrs/ADR 231 - Declarative attribute specifications.md: Block attribute declarations are now collected without interpretation during symbol-table construction; consumers bind references and interpret block values and attributes against the complete snapshot.
  • observed — Modified behavior in docs/architecture docs/adrs/ADR 231 - Declarative attribute specifications.md: AttributeCtx replaces sourceId and sourceFile with sources, retains symbols, and adds binder.
  • observed — Modified behavior in docs/architecture docs/adrs/ADR 231 - Declarative attribute specifications.md: FieldAttributeCtx now closes after its field member, removing the resolveReferencedModel() declaration. Checked references now use committed resolutions from the context binder rather than syntax ancestry; the binder owns unresolved-reference diagnostics, while combinators handle expression-shape and entity-selector diagnostics and add none for absent or unresolved bindings.
  • observed — Modified behavior in docs/architecture docs/adrs/ADR 249 - Central attribute-spec registry.md: The ADR changes the stated timing for unknown block-attribute diagnostics from parse time to consumer-owned block interpretation.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly describes the documentation updates that close out the shared PSL value specifications work.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

Comment @coderabbitai help to get the list of available commands.

@SevInf
SevInf enabled auto-merge September 29, 2026 08:22
@SevInf
SevInf added this pull request to the merge queue Sep 29, 2026
Merged via the queue into main with commit 75c1460 Sep 29, 2026
23 checks passed
@SevInf
SevInf deleted the close/generic-block-value-specs branch September 29, 2026 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants