GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Docs: agents never change the framework domain, and stop to tell the operator when a design needs to by wmadden-electric · Pull Request #30898 · prisma/orm

Conversation

@wmadden-electric

@wmadden-electric wmadden-electric commented Oct 29, 2026 •
edited by coderabbitai Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Every agent session now loads this rule:

Work does not add a concept to the framework domain, change what one means, or move family or target code into it so two families can share it. A design that needs this is almost certainly cutting a corner. Stop, tell the operator at once with the files and types involved, and change the design.

The decision

packages/1-framework defines the concepts every family and target shares: the contract's types, the control and migration vocabulary, and the interfaces families and targets implement. A new concept there is a design change for every database the project will ever support, so no slice adds one on its way to something else.

The rule allows one kind of change: vocabulary that lets the framework name a concept its domain already defines. The example is a valueObjectField migration subject. ContractValueObjectField already exists in 0-foundation/contract/src/domain-types.ts, and the subject only lets a statement such as --rename Address.street:Address.line1 refer to it. Even then the agent tells the operator before building it, naming the existing type and the framework files it touches.

The rule gives three tests:

  • Does the concept already exist in the framework's types or an ADR? If not, it is new, and the agent stops.
  • Would every family, and a database the project does not support yet, mean the same thing by it? If it describes how one family stores data (rows, documents, stored names, columns), it does not belong.
  • Is it moving into the framework only so code is shared? Then each family keeps its own copy. Families share the framework's types, not helpers built on their storage.

The third test comes from a real case: a plan to move MongoDB's variant helpers into the framework so SQL could reuse them. They return a MongoDB query document keyed by MongoDB's stored field names, so moving them would have put one family's storage model into the framework.

What changes

  • New always-apply rule .agents/rules/never-change-the-framework-domain.mdc, listed in the rules index.
  • A Golden Rule line in AGENTS.md (which CLAUDE.md links to) pointing to it.
  • .cursor/rules-footprint.config.json: the always-apply byte budget goes from 33,000 to 33,500 and the AGENTS.md byte budget from 11,600 to 11,800. Both were within 100 bytes of their limits, and this rule needs to be in every agent's context.

It complements no-family-vocabulary-in-framework.mdc, which keeps family and target words out of framework code. That rule is about wording; this one is about concepts.

Alternatives considered

  • Extend no-family-vocabulary-in-framework.mdc. It applies only when an agent edits files under packages/1-framework, so it loads too late: the decision to change the framework is made while designing, before any file there is opened.
  • Rely on review. The architect pass of /drive-code-review does catch these, but only after the work is built on the wrong design.

Agent: radagast-20

Summary by CodeRabbit

  • Documentation
    • Added guidance for automated contributors to avoid changes to shared framework concepts and to request operator review when such changes appear necessary.
    • Updated configuration limits for the repository’s always-applied guidance.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@wmadden-electric
Agents never change the framework domain, and stop to tell the operat…
44d8eca
…or when a design needs to

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
@wmadden-electric
wmadden-electric requested a review from a team as a code owner October 29, 2026 08:14
@coderabbitai

coderabbitai Bot commented Oct 29, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: prisma/orm
  • Branch: rule-never-change-framework-domain
  • File: .coderabbit.yml
  • Commit: 44d8eca
  • Layers: Repository YAML
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: aa49f8b4-d9ab-4529-83b5-da19e47a7dc2
Commits

Reviewing files that changed from the base of the PR and between 1143e93 and 44d8eca.

Files selected for processing: 4
  • .agents/rules/README.md
  • .agents/rules/never-change-the-framework-domain.mdc
  • .cursor/rules-footprint.config.json
  • AGENTS.md

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

Walkthrough

The changes add an always-applied rule for framework-domain changes. They also update the rule index, add guidance in AGENTS.md, and increase two byte thresholds in the footprint configuration.

Changes: Framework Domain Rule

Layer / File(s) Summary
Define and surface the framework domain rule
.agents/rules/never-change-the-framework-domain.mdc, .agents/rules/README.md, AGENTS.md, .cursor/rules-footprint.config.json
Adds guidance against introducing or redefining framework-domain concepts or moving family- or target-specific code into the framework. Lists the rule as always applied, links it from AGENTS.md, and increases two byte thresholds. The line threshold remains unchanged.

Priority: Low

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

Change: Other

Suggested reviewers: tensordreams

Merge Risk: Minimal · up to 44d8e

The rule, index, documentation link, and footprint thresholds are consistent with the stated intent and are ready to merge.

Pre-merge checks: Passed 5
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly describes the main change: agents must not change the framework domain and must notify the operator when a design requires it. The ending is grammatically incomplete, but the title r…
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
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.
Full details: Title check

Explanation

The title clearly describes the main change: agents must not change the framework domain and must notify the operator when a design requires it. The ending is grammatically incomplete, but the title remains specific and related to the changeset.

Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 0 files. (4 skipped: 4 unsupported.)

Finishing Touches
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

wmadden
wmadden approved these changes Oct 29, 2026
View reviewed changes
@wmadden-electric
wmadden-electric added this pull request to the merge queue Oct 29, 2026
Merged via the queue into main with commit fb7f874 Oct 29, 2026
20 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@wmadden-electric
wmadden-electric deleted the rule-never-change-framework-domain branch October 29, 2026 18:42
@wmadden-electric wmadden-electric mentioned this pull request Oct 30, 2026
chore(release): bump to 8.0.0-rc.22 #30919
Merged
opensource-fork-sync Bot pushed a commit to cla7aye15I4nd/opensource-prisma__orm that referenced this pull request Oct 30, 2026
@wmadden-electric @claude
chore(release): bump to 8.0.0-rc.22 (prisma#30919)
4f70a33
`8.0.0-rc.21` → `8.0.0-rc.22`. See
[versioning](https://github.com/prisma/orm/blob/main/docs/oss/versioning.md).

**Publishing was broken and is fixed.** From 23 October every `Publish
to npm` run on `main` failed with `ENEEDAUTH` on three packages that had
never been on npm: `@prisma/orm-mysql`, `@prisma/orm-target-mysql`
(prisma#30856) and `@prisma/orm-postgres-contrib` (prisma#30904). Trusted publishing
cannot authenticate a package that does not exist yet. They were
published once by hand and given a trusted publisher; the re-run of run
41053844815 then published all three from CI. The failed runs had also
skipped the rc.21 git tag and GitHub Release, which the upgrade-coverage
check needs to find the previous release.
[`v8.0.0-rc.21`](https://github.com/prisma/orm/releases/tag/v8.0.0-rc.21)
now exists at the rc.21 release commit `fad17c1d03`.

**Merging this PR ships the release.** The push to `main` carries the
new root version. The `Publish to npm` workflow then publishes
`8.0.0-rc.22` under the `latest` dist-tag and creates a pre-release
GitHub Release.

## What to review

- **Release notes:**
[`docs/releases/v8.0.0-rc.22.md`](https://github.com/prisma/orm/blob/release/8.0.0-rc.22/docs/releases/v8.0.0-rc.22.md),
mirrored in `CHANGELOG.md`. Seven breaking changes: the PostgreSQL
convenience date and time types (prisma#30847), value objects in storage
(prisma#30869), the MongoDB execution context (prisma#30865), the MongoDB driver
descriptor (prisma#30906), packs declaring their Postgres extension (prisma#30902),
one installed copy of Prisma ORM (prisma#30883) and merged MongoDB indexes
(prisma#30894). Six features and two fixes. The notes leave out prisma#30728
(telemetry backend), prisma#30891 (CI), prisma#30901 (tests), and prisma#30862, prisma#30895,
prisma#30897 and prisma#30898 (docs only).
- **Upgrade guides:**
`skills/prisma-8/upgrading/{app,extension}/upgrades/8.0.0-rc.21-to-8.0.0-rc.22/instructions.md`,
assembled from the fifteen pending fragments (the fifteenth, from
prisma#30918, declares no change). The app guide has 19 changes plus the
Supabase restamp, opens with the order to do the steps in, and ships one
script (`value-objects-in-storage`). The extension guide has 16 changes.
None was dropped. The originals are archived unchanged under
`upgrade-instructions/releases/8.0.0-rc.21-to-8.0.0-rc.22/sources/`.
- **Corrections made while assembling:**
- `mongo-runtime-takes-adapter` said `createMongoExecutionStack()` no
longer takes a `driver`. prisma#30906, merged later, gave it one back, and the
driver entry tells you to pass it. The entry now says what `main` does,
and its detection no longer flags a stack built with a driver.
- The convenience types entry now says to leave a `DateTime(as: ...)`
field alone, and the step order renames the old types before rewriting
the `temporal.*` aliases. Otherwise an agent would rename the
`DateTime(as: temporal)` the alias table writes.
- References to "this release's guide" now name the rc.20 → rc.21 guide
they meant.
- **Tests:** the upgrade-instruction tests read the published guides and
script. The `value-objects-in-storage` tests no longer call live
framework code: the two tests that checked the fixtures against this
release's serializers are removed, and the one hash they computed is a
recorded constant.
- **Version bump:** every `package.json`, `pnpm-lock.yaml` (workspace
specifiers only), the skill's `library_version`, and the Supabase
contract version stamps.

## Checks run locally

- `check:upgrade-coverage --mode publish --prev fad17c1 --head HEAD`:
pass. The `--mode pr` form CI runs passes now that the tag exists.
- `check:release-notes --mode pr`: pass
- `lint:skills`: pass
- `test/upgrade-instructions`: 102 files, 1,980 tests pass

The prisma/web docs PR follows once this is published.

Agent: paddington-54

🤖 Generated with [Claude Code](https://claude.com/claude-code)


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

<!-- coderabbit-ai-generated:v1 -->

## Summary by CodeRabbit

* **New Features**
* Added repeatable client `connect()` behavior, PostgreSQL extension
declarations and additional types, plus MySQL ORM and SQL-builder read
support.
* **Breaking Changes**
* PostgreSQL date/time defaults and types, value-object storage, MongoDB
APIs and indexes, and extension-pack migrations have changed. Review the
upgrade guidance before updating.
* **Bug Fixes**
* Improved precision for PostgreSQL `now()` values and clarified Prisma
7 `@db.*` diagnostics.
* **Documentation**
  * Added Prisma 8.0.0-rc.22 release notes and upgrade instructions.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@wmadden wmadden wmadden approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@wmadden-electric @wmadden
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.