VGSF CONSTITUTIONAL TECHNICAL ARCHITECTURE — BOOK II — PART B: CONSTITUTIONAL ENGINEERING METHODOLOGY
Chapter 1 of 8 in this Part
M1 — Methodology V2.1 Overview
Document record
| Field | Value |
|---|---|
| Constitutional Series | M — Constitutional Engineering Methodology |
| Primary Source | DHARMA_ERP_CONSTITUTIONAL_ENGINEERING_METHODOLOGY_V2.md + METHODOLOGY_V2.1_CLASSIFICATION_AMENDMENT.md |
| Version | V2.1 (CAP030C, 2026-06-15) |
| Ratified | RATIFIED — CAP027B (Methodology V2.0, 2026-06-14) + CAP030C (V2.1 Phase -1 amendment, 2026-06-15) |
| Applies To | REF003–REF014 |
| Position in Book | Part B, Chapter 1 of 8 |
Part B opens with M1 because no subsequent chapter — phase descriptions, role separations, or corrective cycles — can be constitutionally grounded without first declaring what the methodology is, why it exists, and what it commits to. M1 establishes that constitutional trustworthiness, not mere correctness, is the stated objective of the V2.1 lifecycle.
§1 — Document Identity and Provenance
Document: DHARMA_ERP_CONSTITUTIONAL_ENGINEERING_METHODOLOGY_V2.md (renamed 2026-09-09 from VGSF_CONSTITUTIONAL_ENGINEERING_METHODOLOGY_V2.md per PS-DIRECT-20260909-008)
Produced by: CAP027A — Universal Constitutional Methodology Extraction Program
Date: 2026-06-14
Status: RATIFIED — Mandatory doctrine effective 2026-06-14 (CAP027B)
Supersedes: Implicit v1.0 methodology embedded across CAP023-series and CAP026-series programs
Amended to V2.1: METHODOLOGY_V2.1_CLASSIFICATION_AMENDMENT.md — RATIFIED by CAP030C (Primary Steward / R-STEWARD), 2026-06-15
§2 — Preamble
This document formalizes the Dharma ERP Constitutional Engineering Methodology — the set of universal practices, role separation rules, lifecycle standards, domain patterns, prohibitions, and corrective cycle doctrine that govern the constitutional development of REF domain service layers.
It is extracted from the empirical evidence of two completed domain lifecycles:
- REF001 (Identity Domain): CAP023A–F + Stage 0D arc (CAP024–025G) — STAGE_0D_COMPLETE, STAGE_1_AUTHORIZED
- REF002 (Relationship Domain): CAP026B–L — CERTIFIED_WITH_OBSERVATIONS (89%)
This methodology is the institutional memory of those 25 constitutional programs, distilled into doctrine for the 12 remaining REF domain implementations.
§3 — Article 1: Constitutional Engineering Principles
§3.1 — The Five Principles
Principle 1: Constitution First
Every REF domain service layer must rest on a ratified, frozen, benchmark-designated constitutional corpus before specification begins. A service without a constitutional foundation is architecturally void.
Principle 2: Role Separation is Law
No person, program, or agent may hold more than one constitutional role in a single domain lifecycle. The roles — Architect, Independent Reviewer, Verification Architect, Implementer, Verification Executor, Independent Certifier, Historian — must be distinct. This law has no exceptions.
Principle 3: Evidence, Not Assertion
Constitutional claims must be supported by independently observable evidence. Test results, SQL queries, HTTP responses, DB state — not descriptions of what should be true, but demonstrations of what is true. When evidence is missing: STOP.
Principle 4: Prohibitions Are Load-Bearing
The prohibitions in this methodology are not stylistic preferences. They encode lessons from constitutional failures, security vulnerabilities, and audit trail corruption. Treating a prohibition as advisory is a constitutional violation.
Principle 5: The Corrective Cycle Is Constitutional Design
A VERIFICATION_FAIL verdict is not a system failure. It is the constitutional process working correctly — catching defects before they reach production. The corrective cycle is as constitutionally important as the forward path.
§4 — Article 2: Universal Practices (Mandatory)
These 7 practices MUST be applied to every REF domain service layer. Evidence basis in parentheses.
| Practice | Mandate | Evidence |
|---|---|---|
| UP-001 Hexagonal Architecture | All REF service layers MUST use hexagonal package architecture | REF001 CAP023E; REF002 CAP026C + CAP026J |
| UP-002 Fail-Closed Middleware | JWT validation fail-closed; no fallback | REF001 CAP023E; REF002 CAP026K MW-001/002 |
| UP-003 RLS + SET LOCAL | No application-level entity filters; DB RLS is authoritative | REF001 ADR-001; REF002 CAP026K MW-006 |
| UP-004 Transactional Outbox | Events written in same transaction as domain write | REF001 CAP023E events; REF002 EV-003 atomicity |
| UP-005 No-Delete Triggers | DB-layer triggers block DELETE and TRUNCATE on constitutional tables | REF001 U2 Doctrine; REF002 EX-007/008/009 |
| UP-006 Benchmark Gate | CBD designation with no ADEQUATE-below dimension before specification | REF001 CBD-REF001-2026-001; REF002 CBD-REF002-2026-001 |
| UP-007 RO-Series Authorization | Formal implementation authorization order before any code is written | REF001 RO-003; REF002 RO-004 |
Full definitions: UNIVERSAL_PRACTICES_CATALOG.md, Part I. → See: [M5.§3] — Universal practice application in Phases 3–4
§5 — Article 3: Presumptive Practices (Apply Unless Contradicted)
These 7 practices were introduced by REF002. No contradicting evidence from REF001 exists. Apply to REF003–REF014 unless a domain-specific condition makes a practice inapplicable.
| Practice | Mandate | Rationale |
|---|---|---|
| PP-001 Lifecycle Gate Structure | Follow the B→C→D→E→G→H→L sequence; add D-R1 and J+K conditionally | Prevents phase skipping; embeds corrective path |
| PP-002 Primary Steward Ambiguity Instrument | Issue D-R1 when HIGH ambiguities arise in Phase 2 | Ambiguities not resolved by Primary Steward tend to compound |
| PP-003 Conditional Test Category | Define CONDITIONAL categories for gated scope; do not mark as FAIL | Prevents unexecuted conditional tests from blocking certification |
| PP-004 Governance Satellite Tables | Type-specific governance metadata in satellite tables, not nullable main-table columns | 4NF; FK enforceable; queryable by type |
| PP-005 Blocked Type DB Guard | Constitutional blocks enforced at both service layer AND DB trigger | Defense-in-depth; prevents bypass through direct DB access |
| PP-006 Corrective Distinctness | Corrective R-IMPL and re-verifying R-VEXEC MUST be distinct programs | Role separation law applies to corrective cycle |
| PP-007 Evidence-First Remediation | Both corrective and re-verification programs produce independent per-BLOCKER evidence | Single-party evidence is insufficient for constitutional trust |
Full definitions: UNIVERSAL_PRACTICES_CATALOG.md, Part II. → See: [M7.§4] — PP-006 and PP-007 in corrective cycles; Binding Ruling PS-27B-001
§6 — Article 4: Constitutional Role Structure
§6.1 — Roles
| Role | Abbreviation | Authority |
|---|---|---|
| Constitutional Architect | R-ARCH | Design domain specification |
| Independent Reviewer | R-REVIEW | Audit specification fidelity |
| Primary Steward | R-STEWARD | Resolve ambiguities; grant authorizations |
| Verification Architect | R-VARCH | Design test protocol |
| Implementer | R-IMPL | Write service layer code |
| Verification Executor | R-VEXEC | Execute test protocol |
| Independent Certifier | R-CERT | Issue certification verdict |
| Historian | R-HIST | Archive; synchronize knowledge base |
§6.2 — Absolute Separation Requirements
- R-ARCH ≠ R-REVIEW (specification author cannot review their own work)
- R-IMPL ≠ R-VEXEC (implementer cannot verify their own implementation)
- R-IMPL ≠ R-CERT (implementer cannot certify their own implementation)
- R-VEXEC ≠ R-CERT (verifier cannot certify the verification they executed)
- Corrective R-IMPL ≠ Re-verifying R-VEXEC (corrective implementer cannot re-verify their own corrections)
Violations of these separations are constitutional violations. Verdicts produced by combined roles are constitutionally void.
Full doctrine: ROLE_SEPARATION_DOCTRINE.md. → See: [M8.§3] — Complete role separation doctrine
§7 — Article 5: Constitutional Lifecycle
§7.1 — Standard Lifecycle Sequence (V2.1)
Phase -1: Classification & Admission (R-STEWARD exclusive verdict)
Phase 0: Readiness Assessment (R-ARCH)
Phase 1: Service Specification (R-ARCH) ──► RO-series
Phase 2: Independent Review (R-REVIEW)
Phase 2a: Ambiguity Resolution (R-STEWARD) [conditional]
Phase 3: Verification Architecture (R-VARCH)
Phase 4: Implementation (R-IMPL)
Phase 5: Verification (R-VEXEC)
Phase 5a: Corrective Cycle (R-IMPL + R-VEXEC) [conditional]
Phase 6: Certification (R-CERT)V2.1 Amendment: Phase -1 Classification & Admission precedes all other phases. No domain may receive Phase 0 authorization without a Primary Steward ADMIT verdict. → See: [M2.§2] — Phase -1 detailed specification
§7.2 — Phase Gate Rules
Each phase may only begin when the predecessor phase has issued its gate verdict. Phases may not be executed concurrently (except Phase 2a runs in parallel with early Phase 3 design work under explicit Primary Steward authorization per Binding Ruling PS-27B-002).
§7.3 — Minimum Deliverables
See REF003_014_EXECUTION_STANDARD.md §2.
Full standard: CONSTITUTIONAL_LIFECYCLE_STANDARD.md. → See: [M3.§2] — Phase 0 specification; [M4.§2] — Phases 1–2 specification; [M5.§2] — Phases 3–4 specification; [M6.§2] — Phases 5–6 specification
§8 — Article 6: Corrective Cycle Doctrine
§8.1 — Trigger
VERIFICATION_FAIL (any P1 BLOCKER failure) triggers the corrective cycle. VERIFICATION_PASS_WITH_FINDINGS does NOT trigger the corrective cycle.
§8.2 — Corrective Cycle Phases
Phase 5: VERIFICATION_FAIL
↓
Phase 5a-IMPL: Corrective Implementation (distinct R-IMPL)
↓
Phase 5a-VERIFY: Verification Re-Execution (distinct R-VEXEC)
↓ PASS → proceed to Phase 6
↓ FAIL → second corrective cycle (Primary Steward notified)§8.3 — Scope Constraint
Phase 5a-IMPL scope is STRICTLY BOUNDED to root causes identified in Phase 5. Opportunistic improvements outside the bounded scope are not authorized.
§8.4 — Evidence Chain
Phase 5 evidence is immutable historical record. Phase 5a programs produce new, distinct evidence. The BLOCKER_STATUS_REPORT.md format provides before/after comparison for each resolved P1 BLOCKER.
Full standard: CORRECTIVE_CYCLE_STANDARD.md. → See: [M7] — Complete corrective cycle doctrine
§9 — Article 7: Consolidated Prohibitions
§9.1 — Universal Prohibitions (All Roles, All Domains)
| ID | Prohibition |
|---|---|
| PROHIB-U-001 | No application-layer entity filtering |
| PROHIB-U-002 | No superuser DB connection in service code |
| PROHIB-U-003 | No physical deletion of constitutional records |
| PROHIB-U-004 | No bypassing bitemporal triggers |
| PROHIB-U-005 | No modifying frozen artifacts without CAC authorization |
| PROHIB-U-006 | No AI governance decisions without human authorization |
§9.2 — Implementation Prohibitions (R-IMPL)
| ID | Prohibition |
|---|---|
| PROHIB-I-001 | No direct downstream domain SQL |
| PROHIB-I-002 | No superseded table references |
| PROHIB-I-003 | No unapproved API additions |
| PROHIB-I-004 | No self-verification |
| PROHIB-I-005 | No governance metadata in nullable main-table columns |
§9.3 — Database Layer Prohibitions
| ID | Prohibition |
|---|---|
| PROHIB-DB-001 | No DELETE/TRUNCATE without trigger block |
| PROHIB-DB-002 | No system-time column modification by service code |
| PROHIB-DB-003 | No historical record modification (superseded rows must be immutable) |
§9.4 — Lifecycle Prohibitions
| ID | Prohibition |
|---|---|
| PROHIB-L-001 | No phase skipping |
| PROHIB-L-002 | No self-certification |
| PROHIB-L-003 | No evidence fabrication |
| PROHIB-L-004 | No P1 BLOCKER suppression |
Full definitions: CONSOLIDATED_PROHIBITIONS.md
§10 — Article 8: Domain Pattern Guidance
§10.1 — Universal Patterns (All Domains)
Apply UP-001 through UP-007 unconditionally.
§10.2 — Domain-Conditional Patterns
Apply when domain exhibits the specified structural characteristic:
| Pattern | Condition |
|---|---|
| DP-001 Bitemporal | Domain maintains mutable records over time |
| DP-002 GiST Exclusivity | Domain has temporal uniqueness requirements |
| DP-003 Symmetric Types | Domain has self-reciprocal type codes |
| DP-004 Governance Satellite | Domain has governance types with type-specific metadata |
| DP-005 Extension Profiles (6NF) | Domain has subtype-specific attribute sets |
| DP-006 Federation Governance | Domain has organization-scoped records |
| DP-007 Bidirectional View | Domain records are observed from multiple perspectives |
Full guidance: DOMAIN_PATTERN_GUIDANCE.md. → See: [M5.§5] — Domain pattern application in Phase 3–4
§11 — Article 9: Methodology Governance
§11.1 — Version Control
This document is Version 2.0; amended to V2.1 by CAP030C (2026-06-15). Future amendments require:
- A CAP027-series program (Constitutional Methodology Architect role)
- Evidence demonstrating that a proposed change is supported by at least one completed REF domain lifecycle
- Primary Steward ratification of the amendment
§11.2 — Practice Promotion
A TIER-2 PRESUMPTIVE practice (PP-series) is promoted to TIER-1 UNIVERSAL (UP-series) when:
- Confirmed by two or more domain lifecycles with no contradicting evidence
- Primary Steward explicitly ratifies the promotion
- The methodology is amended to add it to Article 2
§11.3 — Practice Contradiction
If a future REF domain lifecycle contradicts a TIER-2 practice, the Certifier's Methodology Observations section must document the contradiction. The contradiction feeds into the next methodology amendment.
§11.4 — Methodology Learning Loop
Domain lifecycle phases 0–6
↓
Phase 6 Certifier: Methodology Observations section
↓
CAP027-series amendment program
↓
VGSF_CONSTITUTIONAL_ENGINEERING_METHODOLOGY_V[N+1]§11.5 — Override Authority
This methodology may be overridden for a specific domain only by:
- Explicit Primary Steward ruling (D-R1 equivalent)
- Constitutional grounds documented in the override instrument
- The override is domain-scoped only — it does not amend the methodology
§12 — Article 10: Ratification and Effect
§12.1 — Current Status
Version 2.0: RATIFIED by CAP027B (Primary Steward) 2026-06-14. Mandatory doctrine effective 2026-06-14.
Version 2.1: RATIFIED by CAP030C (Primary Steward / R-STEWARD) 2026-06-15. Binding doctrine for all REF programs (REF003–REF014 and successors) from 2026-06-15.
Binding Rulings at V2.0 Ratification: PS-27B-001 (PP-006/PP-007 mandatory scope), PS-27B-002 (Phase 2a parallelism conditions), PS-27B-003 (Historian role activation). → See: [M8.§6] — Full binding rulings text
§12.2 — Effect on REF003–REF014
Upon ratification of V2.0, all REF003–REF014 service layer lifecycles MUST follow this methodology. Upon amendment to V2.1, all domain programs must additionally clear Phase -1 before entering Phase 0.
§12.3 — Effect on Grandfathered Domains
Certified domains REF001–REF003 are GRANDFATHERED under V2.1 by retroactive annotation only — their numbers and verdicts are immutable. UP-007 preserved. See CAP030C D9.
§12.4 — Evidence Chain
This methodology is evidence-based. Every Article is traceable to a specific artifact in the REF001 or REF002 lifecycle. The VGSF constitutional engineering corpus is the empirical foundation.
§13 — Appendix A: Traceability
| Article | Source Programs |
|---|---|
| Article 2 (Universal Practices) | CAP023E (REF001); CAP026B–L (REF002) |
| Article 3 (Presumptive Practices) | CAP026C, CAP026D-R1, CAP026E, CAP026J, CAP026K, CAP026L |
| Article 4 (Role Structure) | CLAUDE.md; CAP026B–L role declarations |
| Article 5 (Lifecycle) | CAP023A–E (REF001); CAP026B–L (REF002) |
| Article 6 (Corrective Cycle) | CAP026H, CAP026J, CAP026K (REF002 corrective experience) |
| Article 7 (Prohibitions) | CAP023E governance; CAP026C governance; CURRENT_ORIENTATION.md |
| Article 8 (Domain Patterns) | CAP026B architecture; CAP026J RC-A; CAP026E verification |
| Article 9 (Governance) | CAP027A mandate; CAP026L Phase 6 methodology observations |
§14 — V2.1 Amendment Summary
Nature: V2.1 = V2.0 + Phase -1 Classification & Admission + DC binding + DS-DC integration + Anti-Drift. Everything in V2.0 remains in force. No phase removed, no article restructured, no binding ruling contradicted, no certified domain re-opened.
Lifecycle Invariants added by V2.1:
- LI-1: Classification completeness precedes readiness (extends UP-001)
- LI-2: No phase grants implementation authorization below prior trustworthiness (UP-007)
- LI-3: Proposal (R-ARCH) ≠ admission (R-STEWARD) (UP-002)
- LI-4: Exactly one predecessor gate per phase (no sequencing ambiguity)
Anti-Drift (DC-005, binding): Single canonical REF_DOMAIN_ROADMAP.yaml is the sole roadmap authority. G2/G3.5/source = evidence only. All contradictions logged. Authoring STOPS on ratified-tier contradiction. Only the Primary Steward reconciles.
DHARMA_ERP_CONSTITUTIONAL_ENGINEERING_METHODOLOGY_V2.md | 2026-06-14 | CAP027A — Constitutional Methodology Architect
Version 2.0 — RATIFIED by CAP027B (Primary Steward) 2026-06-14 | Binding rulings: PS-27B-001, PS-27B-002, PS-27B-003
Amended to V2.1 — RATIFIED by CAP030C (Primary Steward / R-STEWARD) 2026-06-15
Constitutional Colophon — M1
This chapter establishes the Dharma ERP Constitutional Engineering Methodology V2.1 in its entirety — its five principles, seven universal practices, seven presumptive practices, eight constitutional roles, eleven-phase lifecycle, corrective cycle doctrine, consolidated prohibitions, and domain pattern guidance — as the mandatory framework governing the service layer implementation of REF003 through REF014.
It operates within Part B under the governing principle that constitutional trustworthiness — not mere correctness — is the objective of Dharma ERP Constitutional Engineering Methodology V2.1.
Readers proceeding to M2 (Phase -1: Classification and Admission) should carry forward: the Phase -1 gate exists because domain admission without classification produced systemic drift — Phase -1 is the correction that V2.1 adds ahead of the V2.0 lifecycle.
