Repository navigation
TML-2705: reject dead .md rules; only .mdc is ever loaded - #612
Conversation
The symlink-sync work treated both `.mdc` and `.md` as rule extensions, but the agent harnesses load `.mdc` only — a `.md` rule is silently never picked up. `no-backward-compatibility.md` was such a dead rule. - Rename `no-backward-compatibility.md` -> `.mdc` so it actually loads. - `sync-agent-rules.mjs`: rules are `.mdc`-only; `README.md` stays the lone mirrored `.md` index. Any other `.md` in the canonical dir is rejected (hard error on sync, drift on `--check`) so the mistake cannot recur. - Update AGENTS.md / rules README to stop blessing the `.md` extension. Signed-off-by: Will Madden <[email protected]>
|
Warning Review limit reached
More reviews will be available in 40 minutes and 5 seconds. Learn how PR review limits work. Your organization has run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (5)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
@prisma-next/extension-author-tools
@prisma-next/mongo-runtime
@prisma-next/family-mongo
@prisma-next/sql-runtime
@prisma-next/family-sql
@prisma-next/extension-arktype-json
@prisma-next/extension-cipherstash
@prisma-next/middleware-cache
@prisma-next/mongo
@prisma-next/extension-paradedb
@prisma-next/extension-pgvector
@prisma-next/extension-postgis
@prisma-next/postgres
@prisma-next/sql-orm-client
@prisma-next/sqlite
@prisma-next/target-mongo
@prisma-next/adapter-mongo
@prisma-next/driver-mongo
@prisma-next/contract
@prisma-next/utils
@prisma-next/config
@prisma-next/errors
@prisma-next/framework-components
@prisma-next/operations
@prisma-next/ts-render
@prisma-next/contract-authoring
@prisma-next/ids
@prisma-next/psl-parser
@prisma-next/psl-printer
@prisma-next/cli
@prisma-next/cli-telemetry
@prisma-next/emitter
@prisma-next/migration-tools
prisma-next
@prisma-next/vite-plugin-contract-emit
@prisma-next/mongo-codec
@prisma-next/mongo-contract
@prisma-next/mongo-value
@prisma-next/mongo-contract-psl
@prisma-next/mongo-contract-ts
@prisma-next/mongo-emitter
@prisma-next/mongo-schema-ir
@prisma-next/mongo-query-ast
@prisma-next/mongo-orm
@prisma-next/mongo-query-builder
@prisma-next/mongo-lowering
@prisma-next/mongo-wire
@prisma-next/sql-contract
@prisma-next/sql-errors
@prisma-next/sql-operations
@prisma-next/sql-schema-ir
@prisma-next/sql-contract-psl
@prisma-next/sql-contract-ts
@prisma-next/sql-contract-emitter
@prisma-next/sql-lane-query-builder
@prisma-next/sql-relational-core
@prisma-next/sql-builder
@prisma-next/target-postgres
@prisma-next/target-sqlite
@prisma-next/adapter-postgres
@prisma-next/adapter-sqlite
@prisma-next/driver-postgres
@prisma-next/driver-sqlite
commit: |
Why
Follow-up fix to the merged TML-2705 work (#609, commit
74cb2c1).That change consolidated agent rules into
.agents/rules/and treated both.mdcand.mdas valid rule extensions. But the agent harnesses (Cursor, Claude Code) only load.mdcfiles — a rule with a.mdextension is silently never picked up. So:no-backward-compatibility.mdwas a dead rule: tracked, symlinked into both presentation trees, and never loaded by anything..mdextension, so the same mistake could recur on the next rule someone authored.What changed
.agents/rules/no-backward-compatibility.md→.mdcso the rule actually loads (its frontmatter was already valid).scripts/sync-agent-rules.mjs: rules are now.mdc-only.README.mdremains the single mirrored.md(it's the index, not a rule). Any other.mdin the canonical dir is rejected — a hard error in sync mode (pnpm rules:sync/ thepreparehook), and reported as drift in--checkmode (pnpm lint:rules:symlinks). The mistake now fails CI instead of shipping a dead rule.AGENTS.mdand the rulesREADME.mdno longer document.{md,mdc}; they state plainly that rule files must be.mdc..mdexemption and the dead-.md-rule rejection in both modes.Scope
Rules + the sync tool + its docs only. No product code touched.
pnpm lint:rules,pnpm lint:rules:symlinks,pnpm lint:rules:footprint, andpnpm test:scripts(118 tests) all pass locally.