Repository navigation
Docs: agents never change the framework domain, and stop to tell the operator when a design needs to - #30898
Conversation
…or when a design needs to Signed-off-by: willbot <[email protected]> Signed-off-by: Will Madden <[email protected]>
|
No actionable comments were generated in the recent review.
|
| 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:
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: 
5
-
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.
`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]>
Every agent session now loads this rule:
The decision
packages/1-frameworkdefines 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
valueObjectFieldmigration subject.ContractValueObjectFieldalready exists in0-foundation/contract/src/domain-types.ts, and the subject only lets a statement such as--rename Address.street:Address.line1refer 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:
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
.agents/rules/never-change-the-framework-domain.mdc, listed in the rules index.AGENTS.md(whichCLAUDE.mdlinks to) pointing to it..cursor/rules-footprint.config.json: the always-apply byte budget goes from 33,000 to 33,500 and theAGENTS.mdbyte 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
no-family-vocabulary-in-framework.mdc. It applies only when an agent edits files underpackages/1-framework, so it loads too late: the decision to change the framework is made while designing, before any file there is opened./drive-code-reviewdoes catch these, but only after the work is built on the wrong design.Agent: radagast-20
Summary by CodeRabbit