docs(rfc): rethink database architecture for Prisma 8 - #1640
Conversation
|
[PHASE: RESEARCH] Harness run activated from current Evidence
Research contractThe run will re-derive current NetScript DB reality and all Prisma-gap history; inspect Prisma 8 release/docs/source/open PRs/issues and agent surfaces; compare market architectures; then lock the NetScript contracts, DSL, ports/adapters, capability/contribution model, automation, multi-schema/multi-database semantics, tests, CI, migration, and rollout. The canonical RFC file remains blocked until separate-session PLAN-EVAL returns PASS. NextComplete the evidence corpus and Design checkpoint, then move the PR to |
|
Research slice Completed evidence packets:
Per owner direction, a fresh native Claude Code Opus 5 · high architecture lane is active ( |
|
[PHASE: IMPL] Root RFC review checkpoint landed at Scope
Validation
NextFresh Opus 5 high consolidation → root sign-off → Qwen 3.8 Max focused review → Grok 4.6 high whole-RFC review → dispositions → final Fable 5 high refinement. |
RFC review checkpoint — Qwen focused passPushed Qwen 3.8 Max (
No D-01–D-47 decision, artifact/control invariant, validation boundary, migration/plugin safety rule, or upstream/market conclusion was rejected. Qwen also supplied an ≈1,240-word deletion ledger that projects ≈9,965 words while explicitly protecting the load-bearing API and safety contracts. Next: Grok 4.6 high whole-RFC adversarial review, still read-only; then Opus author/editor dispositions and consolidation; then the single final Fable 5 high substantive refinement. |
RFC review checkpoint — Grok whole-architecture passPushed Verdict:
Grok’s edit economics project a net reduction of roughly 1,040–1,200 words. The RFC remains frozen at 11,205 words pending the author/editor disposition pass. Owner review has also raised a higher-level DX correction now being audited against NetScript’s existing Hono and frontend DAL/page-builder patterns: a three-level adoption surface (golden-path seam DSL → reusable factories → unrestricted native Prisma + NetScript primitives), without recreating Prisma’s schema/query DSL. The audit is also testing whether generated type bindings can be eliminated through source-native app-local inference; if not, emission must be automatic and invisible in the normal dev loop. |
Database RFC semantic closureThe reviewed RFC and its resumable run state are now pushed:
Final read-only checks by the existing non-Claude TypeScript/API, prospective JSR, and architecture lanes all returned PASS. Per the latest owner direction, no further Claude/Fable route was launched and RFC length is not an acceptance gate. Local verification passed: targeted |
Proves the owner-reinstated absolute-final substantive gate: a fresh native Fable 5 high session evaluated the complete RFC at starting commit a7a6887 against the eight owner criteria, independently re-verified the pinned RC1 claims (138 exports, phantom type maps, namespace flattening, demo helper spellings), and returned PASS in evaluate.md. One evaluator-owned refinement: Step 1 pgvector() no longer implies an extension-level dimensions option that pgvector and the pinned demo do not have; dimensions remain per-column only. Docs gates green post-edit: targeted fmt, docs:links (103 docs, 0 broken), git diff --check, 40 balanced fences. Run artifacts record the route, the verdict, and the supersession provenance; PR #1640 stays draft. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
IMPL-EVAL — final Fable 5 high evaluator/refinement gate
What was checked
Refinement applied (evaluator-owned, within D-01–D-47 / OWNER-DX-01)Step 1's Command evidence
Per the gate contract this PR stays draft; owner review decides RFC acceptance (W0). Package/runtime E2E is N/A for this docs-only gate and no implementation gate is claimed. |
Summary
Ground-up NetScript database architecture for Prisma 8 / Prisma Next. This is deliberately not a version-bump RFC: it replaces the inherited database foundation with a clean-break, contract-first system optimized for application and agent DX.
The RFC supersedes #313's compatibility-first pilot. It preserves migration safety through an explicit migration guide, conformance tests, receipts, retained rollback artifacts, and a parallel rollout branch—not runtime compatibility shims.
Locked direction
defineContractis the native authoring foundation; NetScript does not mirror Prisma's model/field/relation/query vocabulary.runtime | json; unsupported operations fail at schema construction.Scope
rfcs/0000-database-architecture.md.llm/runs/docs-database-architecture-rfc--prisma-8-rfc/Completed slices
Review record
PASS_WITH_CHANGES; all QF-01–QF-05 dispositionedPASS_WITH_REFINEMENTS; all GR-01–GR-08 dispositionedd28d8e7793517a6d2-b0b5-47ec-a207-b3533657a90c: PASS; one source-correct pgvector example refinement; gatecc90ead702e97c86e4Validation
deno fmt --checkon the RFC, evaluator, and terminal run artifacts — PASSdeno task docs:links— PASS (103docs,0broken links, anchors, or orphans)git diff --check— PASS40, balanced)Owner review
This remains a draft for owner review. The harness and substantive evaluator gates are complete; no additional Claude/Fable session is planned. Do not merge until the owner accepts the final RFC.
Drift / debt