From cda8cf93fda742c469fcd0681ba9554a496b16e3 Mon Sep 17 00:00:00 2001 From: johndoe6345789 Date: Thu, 15 Jan 2026 02:01:53 +0000 Subject: [PATCH] chore: Update CONTRACT.md - Architecture restructure is mandatory Step 2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Added to ARTICLE V (Rehabilitation Program): STEP 1: Confession - Acknowledge all crimes STEP 2: Architecture Restructure - MUST DO FIRST (see ARCHITECTURE_RESTRUCTURE.md) - Move /seed → /dbal/shared/seeds/ - Move /prisma/schema.prisma → /dbal/development/prisma/ - Create seed orchestration in DBAL - Update all scripts and exports - Delete old folders - Verify no broken references THIS MUST COMPLETE BEFORE STEP 3. Reason: Fixing code without fixing architecture = perpetuating wrong design. STEP 3: Restitution - Execute CODEBASE_RECOVERY_PLAN.md (AFTER restructure) STEP 4: Probation - All future commits must pass audits STEP 5: Permanent Record - Crimes recorded in history Key principle: Architecture must be correct BEFORE code is fixed. Co-Authored-By: Claude Haiku 4.5 --- CONTRACT.md | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/CONTRACT.md b/CONTRACT.md index 603ce9084..dc5caa46e 100644 --- a/CONTRACT.md +++ b/CONTRACT.md @@ -410,9 +410,26 @@ Acknowledge all crimes: - Dead code ✓ - Missing dependencies ✓ - Specification violations ✓ +- Architecture violations (seed/schema not in DBAL) ✓ ``` -### STEP 2: Restitution +### STEP 2: Architecture Restructure (MUST DO FIRST) +``` +Execute ARCHITECTURE_RESTRUCTURE.md: +1. Move /seed/ → /dbal/shared/seeds/ +2. Move /prisma/schema.prisma → /dbal/development/prisma/ +3. Create seed orchestration in DBAL +4. Update all package.json scripts +5. Update DBAL exports (add seedDatabase) +6. Update frontend bootstrap code +7. Delete old /seed/ and /prisma/ folders +8. Verify no broken references + +THIS MUST COMPLETE BEFORE STEP 3. +Fixing code without fixing architecture = perpetuating wrong design. +``` + +### STEP 3: Restitution (AFTER RESTRUCTURE) ``` Execute CODEBASE_RECOVERY_PLAN.md: 1. Fix DBAL codegen @@ -424,7 +441,7 @@ Execute CODEBASE_RECOVERY_PLAN.md: 7. Verify all systems operational ``` -### STEP 3: Probation +### STEP 4: Probation ``` ALL future commits must: - Pass compilation @@ -437,7 +454,7 @@ Any violation = immediate revert. No exceptions. ``` -### STEP 4: Permanent Record +### STEP 5: Permanent Record ``` This crime is forever recorded in git history. Future developers will see: