Back to Prisma

Brief: D2 R2 — mirror legacy index discovery

projects/prisma7-config/briefs/D2-R2.md

7.10.0-integration-fix-prisma-publish-token.12.1 KB
Original Source

Brief: D2 R2 — mirror legacy index discovery

Task

Resolve reviewer finding F2: make bootstrap's non-executing findPrismaConfigFile selector cover c12 3.3.4's legacy index-directory candidates in exact runtime precedence, so config presence and seed inspection cannot disagree with runtime automatic discovery.

Scope

In: Narrow @prisma/config selector correction and parity tests for prisma.config/index.*, .config/prisma/index.*, and .config/prisma.config/index.*, including competition with lower-precedence flat candidates; focused bootstrap regressions if needed to prove consumption.

Out: Runtime D1 discovery changes, init/guidance changes already accepted, packed E2E, dependency upgrades, warnings, or unrelated cleanup.

Completed when

  • The non-executing selector mirrors c12's legacy index-directory forms and exact precedence, with non-tautological tests for all three locations and competing lower-precedence flat candidates.
  • Bootstrap presence and seed inspection tests prove the corrected selector is consumed; AC-7 no longer fails.
  • Relevant config/bootstrap tests, required package builds, Prettier, diff check, and transient-ID scan pass on final HEAD.
  • F2 is fixed in a new explicitly staged commit; reviewer ledger remains reviewer-owned.

Operational metadata

  • Model tier: orchestrator — narrow fix, but exact third-party precedence must be evidence-grounded.
  • Time-box: 40 minutes.
  • Halt conditions: Halt if c12's actual ordering cannot be established from installed source/current tests, if parity requires executing arbitrary project config in bootstrap, or if a dependency upgrade is required.

Carry-over

  • F2 must-fix details are in projects/prisma7-config/reviews/code-review.md.
  • D2 init/guidance/literal classification is accepted; do not churn it.
  • Runtime legacy discovery continues delegating to c12.

Return shape

Report evidence for exact ordering, diff/test highlights, every gate result, commit SHA, surprises, deferrals, and pushback. Write heartbeat; do not edit project specs/plans/reviews.