Skip to content

VGSF CONSTITUTIONAL TECHNICAL ARCHITECTURE — BOOK II — BACK MATTER

Index of Constitutional Laws and Rules

A comprehensive index of all named constitutional laws, principles, rules, prohibitions,
doctrines, and invariants referenced in Book II, organized by type.
Citations point to the primary chapter where the law is defined or most fully stated.


Section 1 — Universal Principles (UP-001 through UP-007)

These seven principles are embedded in CLAUDE.md as the foundational laws of Dharma ERP Constitutional Engineering. They govern all constitutional programs and all REF domains without exception.

CodePrinciplePrimary Citation
UP-001Constitutional completeness SHALL precede specificationCLAUDE.md; Part B, Chapter 1 (M1)
UP-002Specification authority SHALL remain distinct from certification authorityCLAUDE.md; Part B, Chapter 8 (M8)
UP-003Verification obligations SHALL precede verification mechanismsCLAUDE.md; Part B, Chapter 5 (M5)
UP-004Verification execution SHALL remain distinct from verification designCLAUDE.md; Part B, Chapter 8 (M8)
UP-005Independent certification SHALL remain distinct from implementationCLAUDE.md; Part B, Chapter 6 (M6)
UP-006Corrective cycles SHALL preserve role separationCLAUDE.md; Part B, Chapter 7 (M7)
UP-007No domain shall receive implementation authorization unless independent evidence demonstrates trustworthiness equal to or greater than previously admitted domainsCLAUDE.md; Part B, Chapter 5 (M5)

Section 2 — Named Constitutional Doctrines

2A — Universal Doctrines (U-Series, G0 Foundational Constitution)

These nine doctrines apply to every REF domain in the Constitutional ERP without exception or waiver. They were ratified with G0 on 2026-06-05 and are the constitutional foundation of Part A.

Code / NameStatement (one line)DomainPrimary Citation
U1 — Root ImmutabilityOnce a root entity is created, its identity is permanent and immutable; identifier and type may never changeALLPart A, throughout; Part B, Chapter 1 (M1)
U2 — No Physical DeletionNo root entity may ever be physically deleted from the system; endings are recorded, not erasedALLPart A, throughout; Part C, Chapter 1 (P1) — Law G8-2
U3 — No TRUNCATEBulk destruction of data is categorically prohibited; TRUNCATE privileges revoked from all application usersALLPart A, throughout; Part C, Chapter 2 (P2)
U4 — History Is Append-OnlyEvery historical ledger is write-once; corrections are new events referencing the prior record, never mutationsALLPart A, throughout; Part B, Chapter 6 (M6)
U5 — System-Time SovereigntySystem time belongs to the system; no application may specify or override system-time boundariesALL bitemporalPart A, throughout; Part C, Chapter 2 (P2)
U6 — Registry ImmutabilityOnce a registry value is ratified and activated, its semantic identity may never change; only deprecation is permittedALL with registriesPart A, throughout; Part C, Chapter 1 (P1) — Law G8-6
U7 — Temporal AuditabilityEvery domain must support reconstruction of exactly what was known at any point in timeALLPart A, throughout; Part C, Chapter 2 (P2)
U8 — Root PurityA root entity contains only the minimum information required to establish its existence and identity; all other attributes belong in projectionsALLPart A, throughout; Part B, Chapter 1 (M1)
U9 — Dependency IsolationDependencies flow strictly toward roots; upstream roots may never depend upon downstream constructsALLPart A, throughout; Part C, Chapter 2 (P2)

2B — Identity Doctrines (I-Series, REF001)

Ratified in the REF001 Foundation Constitution. Source: Part A, Chapter 1 (T1).

Code / NameStatement (one line)DomainPrimary Citation
I1 — Party Never ClosesA Party that has ever been recorded shall never be closed or logically deletedREF001Part A, Chapter 1 (T1) §6.1
I2 — Profile ExclusivityOne active Profile of each type per Party at any time; a Party is either a Person or an Organization, never bothREF001Part A, Chapter 1 (T1) §4.2
I3 — Classification PermanenceParty type is fixed at creation; registry-backed classifications may be added but not silently changedREF001Part A, Chapter 1 (T1) §4.1
I4 — Name HistoricityEvery name a Party has ever held is preserved bitemporally; renaming supersedes the prior record but never erases itREF001Part A, Chapter 1 (T1) §4.2
I5 — Location Role SemanticsAddresses carry semantic roles governed by the Location Role Registry; no free-text locationsREF001Part A, Chapter 1 (T1) §4.2
I6 — Identity Fingerprint PermanenceUUID is the permanent constitutional fingerprint; never changes across any migration or correctionREF001Part A, Chapter 1 (T1) §3.2

2C — Relationship Doctrines (R-Series, REF002)

Ratified in the REF002 Foundation Constitution. Source: Part A, Chapter 2 (T2).

Code / NameStatement (one line)DomainPrimary Citation
R1 — Relationship Root ImmutabilitySource party, target party, and type may never change after creationREF002Part A, Chapter 2 (T2)
R2 — Anchor ImmutabilityParticipants are permanently fixed at creationREF002Part A, Chapter 2 (T2)
R3 — Type ImmutabilityRelationship type cannot change; a different type requires a new relationshipREF002Part A, Chapter 2 (T2)
R4 — Directional SingularitySymmetric relationships have one canonical direction; no duplicate mirror representationsREF002Part A, Chapter 2 (T2)
R5 — Relationship BitemporalityBoth application time and system time are required for every state periodREF002Part A, Chapter 2 (T2)
R6 — Relationship Root PurityRoot contains only: ID, source party, target party, type; nothing elseREF002Part A, Chapter 2 (T2)
R7 — Extension IndependenceExtensions may be removed without closing the relationshipREF002Part A, Chapter 2 (T2)
R8 — Semantic PreservationRelationship type vocabulary is frozen at ratificationREF002Part A, Chapter 2 (T2)
R9 — State Non-OverlappingNo two active state periods for the same relationship may overlap in application timeREF002Part A, Chapter 2 (T2)

2D — Obligation Doctrines (REF007)

Ratified in the REF007 Foundation Constitution. Source: Part A, Chapter 7 (T7).

Code / NameStatement (one line)DomainPrimary Citation
Encumbrance DoctrineCommitted funds are not available for new commitments even before they are spent; Available = Total − Encumbered − SpentREF007, REF004, REF005Part A, Chapter 7 (T7) §10
Intent Preservation DoctrineResources carrying declared donor or grantor intent retain that intent throughout their lifecycle; reallocation requires Board authorization and a permanent recordREF007, REF004, REF014Part A, Chapter 7 (T7) §11
Reconciliation DoctrineEvery Budget Obligation must undergo formal reconciliation before Project closure; reconciliation is a constitutional governance act, not an optional accounting stepREF007, REF004Part A, Chapter 7 (T7) §12

2E — Additional Ratified Platform Doctrines

Ratified during the G-Series founding and G8/G9 platform ratification. Source: Doctrine Registry; Part C, Chapter 1 (P1).

Code / NameStatement (one line)DomainPrimary Citation
Hybrid Architecture DoctrineMicroservices are rejected; modular monolith with constitutional partitioning is the ratified architectureALLPart C, Chapter 1 (P1); Part C, Chapter 3 (P3)
AGBAC DoctrineAttribute-Governed, Behavior-Based Access Control governs all authorization; require_authority() is the enforcement pointALLPart C, Chapter 1 (P1); Part C, Chapter 5 (P5)
Four-Eyes DoctrineHigh-risk governance acts require two separate authority confirmations from roles with no reporting relationshipREF007, financialPart C, Chapter 1 (P1) — Law G9-4; Part C, Chapter 5 (P5)
AI Governance DoctrineAI may assist; AI may not authorize; every AI-suggested governance act requires human authority confirmationALLPart C, Chapter 5 (P5) — AI Law 1; Doctrine Registry
PROHIB-001Application SQL must not contain entity_id = $n filters; Row Level Security is the only authorized entity isolation mechanismALLPart C, Chapter 3 (P3); Part A, throughout

Section 3 — Domain Invariants

3A — REF001 Identity Domain — Canonical Constitutional Invariants (CI-001..CI-010)

Source: Part A, Chapter 1 (T1) §3.2.

Invariant CodeDomainOne-line StatementChapter
CI-001REF001Party Never Closes — once a party.id is issued it is permanent; no party may be deleted, closed, or terminatedPart A, Ch 1 (T1)
CI-002REF001Root Purity — the party(id, created_at) root carries no entity_id; party existence is a global federated factPart A, Ch 1 (T1)
CI-003REF001Registry-Backed Classification — all classifications reference immutable registry entries; no free-textPart A, Ch 1 (T1)
CI-004REF001Bitemporal History Engine — all projection changes preserved in append-only, immutable history tablesPart A, Ch 1 (T1)
CI-005REF001Profile Exclusivity — a party with a person_profile will never have an organization_profile, and vice versaPart A, Ch 1 (T1)
CI-006REF001Delete / Truncate Protection — no party data in any table may be deleted or truncated from any non-superuser sessionPart A, Ch 1 (T1)
CI-007REF001Registry Immutability — registry id/name/description are frozen; only is_active=FALSE retirement permittedPart A, Ch 1 (T1)
CI-008REF001Party Immutability — once a history record is written it is immutable foreverPart A, Ch 1 (T1)
CI-009REF001System-Time Ownership — system timestamps are owned by the database; no application may set or override themPart A, Ch 1 (T1)
CI-010REF001Entity Isolation (RLS) — projection data is strictly scoped to the owning entity; cross-entity read/write is impossiblePart A, Ch 1 (T1)

3B — REF002 Relationship Domain — Enforcement Invariants (EI-001..EI-012)

Source: Part A, Chapter 2 (T2).

Invariant CodeDomainOne-line StatementChapter
EI-001REF002Relationship Root Immutability — trg_prevent_root_mutation blocks any identity changePart A, Ch 2 (T2)
EI-002REF002Anchor Immutability — trg_prevent_anchor_mutation blocks participant changesPart A, Ch 2 (T2)
EI-003REF002Type Immutability — trg_prevent_type_mutation blocks relationship type changesPart A, Ch 2 (T2)
EI-004REF002Directional Singularity — GiST exclusion + trg_enforce_symmetry enforces canonical directionPart A, Ch 2 (T2)
EI-005REF002Relationship Bitemporality — valid_time columns + system-time triggers on all state periodsPart A, Ch 2 (T2)
EI-006REF002History Append-Only — validate_relationship_edge() superseded_at guardPart A, Ch 2 (T2)
EI-007REF002System-Time Ownership — trg_system_time_insert controls all system timestampsPart A, Ch 2 (T2)
EI-008REF002Dependency Isolation — FK exclusively to identity_records(id); no REF002 → REF002 self-loopPart A, Ch 2 (T2)
EI-009REF002Registry Immutability — trg_registry_immutable on relationship type registryPart A, Ch 2 (T2)
EI-010REF002Symmetric Canonical Ordering — SymmetricNormalizer + DB trigger enforce unique directionPart A, Ch 2 (T2)
EI-011REF002Extension Independence — satellite FK exclusively to relationship_idPart A, Ch 2 (T2)
EI-012REF002No Physical Deletion — prevent_delete_* + prevent_truncate_* triggersPart A, Ch 2 (T2)

3C — REF003 Place Domain — Enforcement Invariants (EI-001..EI-008)

Source: Part A, Chapter 3 (T3).

Invariant CodeDomainOne-line StatementChapter
EI-001REF003Place Eternal Identity — Place anchors are never physically deleted; prevent_delete trigger enforcedPart A, Ch 3 (T3)
EI-002REF003Bitemporal Validity — geometry/address validity modeled as tstzrange; superseded, never overwrittenPart A, Ch 3 (T3)
EI-003REF003Observation Registry — no uniqueness constraint on spatial records; overlapping claims acceptedPart A, Ch 3 (T3)
EI-004REF003History Snapshot Completeness — history capture fires on every write; history tables are immutablePart A, Ch 3 (T3)
EI-005REF003Registry Governance — address_type_registry cannot be deleted; deactivation onlyPart A, Ch 3 (T3)
EI-006REF003Global Read / Entity-Scoped Write RLS — places are shared reality; writes are entity-attributedPart A, Ch 3 (T3)
EI-007REF003Outbox Atomicity — 5 integration events atomic with the domain writePart A, Ch 3 (T3)
EI-008REF003PostGIS Isolation — ST_GeomFromGeoJSON / ST_AsGeoJSON confined to geometry_repository.pyPart A, Ch 3 (T3)

3D — REF005 Resource Domain — Enforcement Invariants (EI-001..EI-010)

Source: Part A, Chapter 5 (T5). The conservation law (EI-002) is the most formally significant invariant in the portfolio.

Invariant CodeDomainOne-line StatementChapter
EI-001REF005Append-Only Balance — no direct write to held_quantity; balance changes only via transitionPart A, Ch 5 (T5)
EI-002REF005Conservation — balance = Σ transitions; value neither created nor destroyed without a recorded actPart A, Ch 5 (T5)
EI-003REF005Non-Over-Allocation — allocation may not exceed available quantity (with REF005.S1-only credit carve-out)Part A, Ch 5 (T5)
EI-004REF005Encumbrance Ceiling — Σ(open allocations) ≤ held_quantityPart A, Ch 5 (T5)
EI-005REF005Entity-Scope RLS — every Resource scoped to one entity; no cross-scope read/writePart A, Ch 5 (T5)
EI-006REF005Dual-Scoped Transfer — cross-entity transfer is two paired scoped acts linked by a Transfer InstrumentPart A, Ch 5 (T5)
EI-007REF005No-Delete / History Immutability — Resources and transitions are never deleted or updated; corrections are new recordsPart A, Ch 5 (T5)
EI-008REF005Bitemporal — NOT NULL occurred_at + recorded_at on every transition; any past state reconstructablePart A, Ch 5 (T5)
EI-009REF005Attribution Completeness — exactly one cause + NOT NULL recorded_by on every transitionPart A, Ch 5 (T5)
EI-010REF005Immutable Subtype — a Resource's kind discriminator may not change after creationPart A, Ch 5 (T5)

3E — REF006 Document Domain — Domain Invariants (DI-001..DI-008)

Source: Part A, Chapter 6 (T6).

Invariant CodeDomainOne-line StatementChapter
DI-001REF006Attribution — at least one responsible Party per DocumentPart A, Ch 6 (T6)
DI-002REF006Issuance Immutability — once issued, change only by new versionPart A, Ch 6 (T6)
DI-003REF006Version Lineage and Supersession — append-only; predecessor preservedPart A, Ch 6 (T6)
DI-004REF006Evidence Integrity — content integrity verifiable / tamper-evidentPart A, Ch 6 (T6)
DI-005REF006Temporal Anchoring — issuance/effective time; bitemporal historyPart A, Ch 6 (T6)
DI-006REF006Retention / Non-Destruction — no physical removal while referencedPart A, Ch 6 (T6)
DI-007REF006Entity Scope (RLS) — exactly one entity scope; isolation at the data layerPart A, Ch 6 (T6)
DI-008REF006Unique Artifact Identity — uniquely, stably identifiable; identifier never reusedPart A, Ch 6 (T6)

3F — REF007 Obligation Domain — Object Invariants (OI-001..OI-009)

Source: Part A, Chapter 7 (T7). Certified under CAP060G.

Invariant CodeDomainOne-line StatementChapter
OI-001REF007Attribution — every Obligation traceable to a creating PartyPart A, Ch 7 (T7)
OI-002REF007Deliberate Creation — Obligations are created by explicit constitutional act, not implicitlyPart A, Ch 7 (T7)
OI-003REF007Terms-Definiteness — parties, amounts, and anchors set and frozen at creationPart A, Ch 7 (T7)
OI-004REF007Governed Lifecycle and Ledger Authority — every state transition produces a formal recordPart A, Ch 7 (T7)
OI-005REF007Bindingness / No-Delete — from COMMITTED onward, Obligations have no physical-deletion pathPart A, Ch 7 (T7)
OI-006REF007Temporal / Bitemporal Anchoring — creation, commitment, and fulfilment all timestampedPart A, Ch 7 (T7)
OI-007REF007Intent Preservation — Obligation carries the intent of its originating FundPart A, Ch 7 (T7)
OI-008REF007Entity Scope (RLS, non-superuser, fail-closed) — Obligation data isolated to its owning entityPart A, Ch 7 (T7)
OI-009REF007Unique Identity — every Obligation has a stable, non-recyclable UUID identifierPart A, Ch 7 (T7)

3G — REF010 Case Domain — Case Invariants (CI-001..CI-004)

Source: Part A, Chapter 10 (T10).

Invariant CodeDomainOne-line StatementChapter
CI-001REF010Every Case has a stable, permanent case_id — never recycled or deletedPart A, Ch 10 (T10)
CI-002REF010case_type_id is immutable once setPart A, Ch 10 (T10)
CI-003REF010A Case in ARCHIVED state accepts no further mutationsPart A, Ch 10 (T10)
CI-004REF010case_events rows are never updated or deleted — append-onlyPart A, Ch 10 (T10)

3H — REF011 Schedule Domain — Schedule Invariants (SI-001..SI-015)

Source: Part A, Chapter 11 (T11).

Invariant CodeDomainOne-line StatementChapter
SI-001REF011Immutable schedule_id — UUID PK; never recycled, never deletedPart A, Ch 11 (T11)
SI-002REF011Owner Party continuity — NOT NULL FK to REF001 Owner PartyPart A, Ch 11 (T11)
SI-003REF011Creation attribution immutable — NOT NULL FK, no update on created_by_party_idPart A, Ch 11 (T11)
SI-004REF011Lifecycle ledger append-only — no UPDATE or DELETE ever permitted on ledger rowsPart A, Ch 11 (T11)
SI-005REF011Generation gate — only ACTIVE Schedules may generate Event instancesPart A, Ch 11 (T11)
SI-006REF011CANCELLED is terminal — permanently stopped; no reactivationPart A, Ch 11 (T11)
SI-007REF011ARCHIVED is read-only — lifecycle function enforcesPart A, Ch 11 (T11)
SI-008REF011REF011 → REF004 direction mandatory — no stored FK to Events; query via REF004Part A, Ch 11 (T11)
SI-009REF011Scheduled Events carry schedule_id — REF004 constraint enforcedPart A, Ch 11 (T11)
SI-010REF011Ad-hoc Events (schedule_id = NULL) valid — REF004: nullable FKPart A, Ch 11 (T11)
SI-011REF011iCal RFC 5545 conformance — write-time FREQ= validationPart A, Ch 11 (T11)
SI-012REF011Vedic spec required for VEDIC/HYBRID — DB check constraint + grammar validatorPart A, Ch 11 (T11)
SI-013REF011Recurrence rule locked in ACTIVE — DB trigger blocks rrule_spec changesPart A, Ch 11 (T11)
SI-014REF011Authority gate for all transitions — service layer REF008 checkPart A, Ch 11 (T11)
SI-015REF011effective_until ≥ effective_from — DB check constraint enforcedPart A, Ch 11 (T11)

3I — REF013 Knowledge Domain — Knowledge Invariants (KI-001..KI-007 selected)

Source: Part A, Chapter 12 (T12).

Invariant CodeDomainOne-line StatementChapter
KI-001REF013Every Knowledge Item has a stable, permanent id — never recycled or deletedPart A, Ch 12 (T12)
KI-002REF013knowledge_type is immutable once setPart A, Ch 12 (T12)
KI-003REF013A Knowledge Item in status = ARCHIVED accepts no further mutationsPart A, Ch 12 (T12)
KI-004REF013knowledge_events rows are never updated or deleted — append-onlyPart A, Ch 12 (T12)
KI-007REF013ARCHIVED items are constitutionally terminal — no status change and no field mutation possiblePart A, Ch 12 (T12)

3J — REF009.C1 Communication Domain — Specialization Invariants (CI-1..CI-7)

Source: Part A, Chapter 21 (T21). These tighten the REF009 base domain invariants DI-001..DI-008; none may be relaxed.

Invariant CodeDomainOne-line StatementChapter
CI-1REF009.C1Every Communication has exactly one direction: OUTBOUND / INBOUND / BROADCASTPart A, Ch 21 (T21)
CI-2REF009.C1OUTBOUND / INBOUND require non-null sender_party_idPart A, Ch 21 (T21)
CI-3REF009.C1OUTBOUND requires at least one recipient in communication_recipients before COMPLETEDPart A, Ch 21 (T21)
CI-4REF009.C1interaction_type MUST be a COMMUNICATION family type codePart A, Ch 21 (T21)
CI-5REF009.C1A communication_properties row MUST exist for every REF009.C1 interactionPart A, Ch 21 (T21)
CI-6REF009.C1received_at >= sent_at when both are setPart A, Ch 21 (T21)
CI-7REF009.C1Sub-table visibility is derived from parent interaction visibility via JOIN; no independent access bypassPart A, Ch 21 (T21)

Section 4 — Constitutional Prohibitions (PROHIB Series)

Eighteen prohibitions organized in four categories. Established by CONSOLIDATED_PROHIBITIONS.md (CAP027A, 2026-06-14). Source: Part B, throughout.

4A — Universal Prohibitions (All Domains, All Roles)

CodeProhibition StatementScopePrimary Citation
PROHIB-U-001Application SQL MUST NOT contain entity_id = $n filters; RLS + get_entity_scope() SECURITY DEFINER are the only authorized entity isolation mechanismsAll REF domains, all rolesPart C, Ch 3 (P3); Part A, throughout
PROHIB-U-002Service layer code MUST NOT use a superuser database role; application_role is the only authorized connection roleAll REF domains, all rolesPart C, Ch 2 (P2); Part C, Ch 5 (P5)
PROHIB-U-003Service layer code MUST NOT implement any pathway that physically deletes, truncates, or archives-by-removal any constitutional recordAll REF domains, all rolesPart A, throughout; Part B, Ch 7 (M7)
PROHIB-U-004Service layer code MUST NOT bypass, disable, or suppress bitemporal triggers; system-time columns are trigger-ownedAll REF domains, all rolesPart A, throughout; Part B, Ch 5 (M5)
PROHIB-U-005DDL files, migration files, and certification artifacts MUST NOT be modified by any implementation program without explicit CAC or constitutional amendment authorizationAll REF domains, all rolesCLAUDE.md; Part B, Ch 4 (M4)
PROHIB-U-006AI agents MUST NOT make constitutional governance decisions without human (Primary Steward) authorizationAll REF domains, all rolesPart C, Ch 5 (P5) — AI Laws; Part B, Ch 8 (M8)

4B — Implementation Prohibitions (R-IMPL Role Only)

CodeProhibition StatementScopePrimary Citation
PROHIB-I-001Implementation teams MUST NOT write service layer SQL that queries another REF domain's tables directlyR-IMPL; Phase 4Part B, Ch 5 (M5); Part C, Ch 3 (P3)
PROHIB-I-002Implementation teams MUST NOT write code that references tables, columns, or entities superseded by constitutional amendmentsR-IMPL; Phase 4Part B, Ch 5 (M5)
PROHIB-I-003Implementation teams MUST NOT add API endpoints beyond those specified in the RO-series authorized specification without CAC authorizationR-IMPL; Phase 4Part B, Ch 5 (M5); Part C, Ch 3 (P3)
PROHIB-I-004An implementation program MUST NOT execute the verification trial protocol and declare a verification verdictR-IMPL; Phase 4Part B, Ch 8 (M8); Part B, Ch 6 (M6)
PROHIB-I-005Governance type-specific metadata MUST NOT be stored as nullable columns on the constitutional main table; satellite tables are the only authorized mechanismR-IMPL; Phase 4Part B, Ch 5 (M5) — PP-004

4C — Database Layer Prohibitions

CodeProhibition StatementScopePrimary Citation
PROHIB-DB-001All constitutional tables MUST have BEFORE DELETE and BEFORE STATEMENT TRUNCATE triggers that raise exceptionsDB layer; DDL authorsPart C, Ch 2 (P2); Part A, throughout
PROHIB-DB-002recorded_at and superseded_at (or equivalent system-time columns) MUST be trigger-owned; no application code may write to these columnsDB layer; DDL authorsPart C, Ch 2 (P2); Part A, throughout
PROHIB-DB-003DB triggers MUST guard against UPDATE on historical records (superseded_at IS NOT NULL); attempting to modify a historical record MUST raise a constitutional violation exceptionDB layer; DDL authorsPart B, Ch 6 (M6); Part A, throughout

4D — Lifecycle Prohibitions (All Programs, All Roles)

CodeProhibition StatementScopePrimary Citation
PROHIB-L-001Constitutional lifecycle phases MUST be executed in sequence; no phase skipping is permittedAll programsPart B, Ch 1 (M1); CLAUDE.md
PROHIB-L-002A program that designed, specified, or implemented any part of a domain MUST NOT certify that domainAll programsPart B, Ch 8 (M8); CLAUDE.md
PROHIB-L-003Constitutional programs MUST NOT invent, fabricate, or extrapolate evidence; if evidence is missing or ambiguous, STOP and issue a clarification reportAll programsCLAUDE.md; Part B, Ch 6 (M6)
PROHIB-L-004A P1 BLOCKER failure MUST trigger VERIFICATION_FAIL regardless of the numeric test score; P1 BLOCKER classifications MUST NOT be downgraded after verification executionAll programsPart B, Ch 6 (M6); Part B, Ch 7 (M7)

Section 5 — Universal Practices (UP/PP Catalog)

Established by UNIVERSAL_PRACTICES_CATALOG.md (CAP027A, 2026-06-14). TIER-1 practices are mandatory for REF003–REF014. TIER-2 practices are presumptively mandatory pending confirmation. Source: Part B, Chapter 5 (M5) and Chapter 7 (M7).

5A — TIER-1 UNIVERSAL Practices (confirmed by both REF001 and REF002)

CodePracticeApplies ToPrimary Citation
UP-001Hexagonal Package Architecture — domain logic MUST NOT depend on infrastructure; layer boundaries enforcedAll REF service layersPart B, Ch 5 (M5); Part C, Ch 3 (P3)
UP-002Fail-Closed Middleware Chain — missing/invalid/expired JWT → 401; no fallback to unauthenticated accessAll REF service layersPart C, Ch 3 (P3); Part C, Ch 5 (P5)
UP-003RLS + SET LOCAL Entity Scope Pattern — application SQL MUST NOT add entity_id = $n filters; get_entity_scope() SECURITY DEFINER is the only scope-reading mechanismAll REF service layersPart C, Ch 2 (P2); Part C, Ch 5 (P5)
UP-004Transactional Outbox Pattern — domain writes and their event records MUST occur in a single database transaction; no direct broker API calls from application codeAll REF service layersPart C, Ch 3 (P3); Part A, Ch 3 (T3)
UP-005No-Delete DB Trigger Layer — DB-layer no-delete and no-truncate triggers on all constitutional tables; application-layer prohibitions alone are insufficientAll REF domainsPart A, throughout; Part C, Ch 2 (P2)
UP-006Constitutional Benchmark Before Service Specification — CBD designation with no dimension below ADEQUATE before service specification beginsAll REF domainsPart B, Ch 3 (M3); Part B, Ch 4 (M4)
UP-007Implementation Authorization Order (RO-Series) — every service layer implementation MUST be authorized by a formal RO instrument with defined scope, discharge criteria, and expiryAll REF domainsPart B, Ch 4 (M4); Part B, Ch 5 (M5)

5B — TIER-2 PRESUMPTIVE Practices (introduced by REF002; presumptively mandatory for REF003–REF014)

CodePracticeApplies ToPrimary Citation
PP-001Constitutional Lifecycle Gate Structure — follow B→C→D→E→G→H→L sequence; add D-R1 and J+K conditionallyAll REF domainsPart B, Ch 1 (M1); Part B, Ch 7 (M7)
PP-002Primary Steward Ambiguity Resolution Instrument — issue D-R1 when Phase 2 review identifies HIGH constitutional ambiguitiesAll REF domainsPart B, Ch 4 (M4); Part B, Ch 8 (M8)
PP-003Conditional Test Category Pattern — define CONDITIONAL categories for gated scope; excluded from unconditional release gate; not counted as FAILAll REF domains with pending amendmentsPart B, Ch 5 (M5); Part B, Ch 6 (M6)
PP-004Governance Satellite Table Pattern — type-specific governance metadata in satellite tables, NOT nullable main-table columnsREF domains with governance typesPart B, Ch 5 (M5); Part A, Ch 2 (T2)
PP-005Constitutionally Blocked Type Implementation Pattern — constitutional blocks enforced at both service layer AND DB trigger; defense-in-depthREF domains with CAC-blocked typesPart B, Ch 5 (M5)
PP-006Corrective Implementation Distinctness — corrective R-IMPL and re-verifying R-VEXEC MUST be distinct programsAll REF domains (corrective cycles)Part B, Ch 7 (M7); Part B, Ch 8 (M8)
PP-007Evidence-First Remediation Documentation — both corrective and re-verification programs produce independent per-BLOCKER evidence recordsAll REF domains (corrective cycles)Part B, Ch 7 (M7)

Section 6 — Methodology Rules

Key structural rules from the ratified Methodology V2.1. Source: Part B, all chapters (M1–M8).

RuleStatementSource StandardPrimary Citation
Phase -1 MandatoryNo domain may receive Phase 0 authorization without a Primary Steward ADMIT verdict and five mandatory Phase -1 artifactsV2.1 Amendment (CAP030C)Part B, Ch 2 (M2)
Five Artifacts GatePhase 0 is constitutionally void if any of the five Phase -1 artifacts is absent: classification triple; ADMIT verdict; REF designation; canonical roadmap entry; predecessor axioms satisfiedDC-003; V2.1 AmendmentPart B, Ch 2 (M2) §3.1
Single Canonical RoadmapREF_DOMAIN_ROADMAP.yaml is the sole authoritative source for domain identity and numbering; all other artifacts are evidence onlyDC-005 AD-1Part B, Ch 2 (M2) §6.1
VOs Precede VFsVerification Obligations (VOs) are produced in Phase 1; Verification Functions (VFs) are produced in Phase 3; VFs may not precede the VO they testV2.0 MethodologyPart B, Ch 5 (M5)
VFs Precede ImplementationPhase 3 (Verification Architecture) must precede Phase 4 (Implementation); test design before code is writtenV2.0 MethodologyPart B, Ch 5 (M5)
LI-1Classification completeness precedes readiness (extends UP-001 into Phase -1)V2.1 AmendmentPart B, Ch 2 (M2) §4.1
LI-2No phase grants implementation authorization below prior trustworthiness level (extends UP-007)V2.1 AmendmentPart B, Ch 2 (M2) §4.1
LI-3Proposal role (R-ARCH) is distinct from admission role (R-STEWARD) in Phase -1V2.1 Amendment; Role Separation DoctrinePart B, Ch 2 (M2) §4.1
LI-4Exactly one predecessor gate per phase; no sequencing ambiguityV2.1 AmendmentPart B, Ch 2 (M2) §4.1
Role Declaration MandatoryEvery CAP program MUST declare its single constitutional role in its PROGRAM_CHARTER.md and list all roles it is NOT authorized to act asRole Separation DoctrinePart B, Ch 8 (M8) §4
Binding Ruling PS-27B-001PP-006 and PP-007 (corrective distinctness and evidence-first remediation) are mandatory, not presumptive, for all corrective cyclesPrimary Steward ratificationPart B, Ch 8 (M8) §6
Binding Ruling PS-27B-002Phase 2a (Ambiguity Resolution) parallelism conditions: D-R1 instrument may only be run sequentially after D verdict if HIGH ambiguities are foundPrimary Steward ratificationPart B, Ch 4 (M4) §3
Binding Ruling PS-27B-003Historian role (R-HIST) activation conditions: R-HIST program is triggered after any program reaches terminal verdictPrimary Steward ratificationPart B, Ch 8 (M8) §6

Section 7 — Platform Laws

7A — The Ten Constitutional Platform Laws (G8 Laws)

Ratified in the G8 Platform Architecture Constitution. Source: Part C, Chapter 1 (P1) §2. These laws are technology-independent and permanent.

Law #StatementDoctrine LayerPrimary Citation
G8-1 — Domain PrimacyEvery application is derived from a domain. No application may exist without a constitutional domain basis. Applications serve domains — not the other way around.ConstitutionalPart C, Ch 1 (P1) §2
G8-2 — No DeleteNo domain record is ever deleted. Lifecycle transitions to ARCHIVED or HISTORICAL are the only valid end-of-life operations. This applies to every domain, every entity, every time period, every technology generation.ConstitutionalPart C, Ch 1 (P1) §2
G8-3 — API PrimacyEvery capability must be accessible through a constitutional API before any UI is built. The API is the permanent interface; the UI is an ephemeral rendering of the API.ArchitecturalPart C, Ch 1 (P1) §2
G8-4 — Audit UniversalityEvery action on every domain record creates an audit entry. The audit trail is append-only, constitutionally immortal, and accessible to authorized auditors at any future time.ConstitutionalPart C, Ch 1 (P1) §2
G8-5 — Authority TraceabilityEvery modifying action (create, update, lifecycle transition) must carry an authority grant reference. An action without authority basis is constitutionally null.ConstitutionalPart C, Ch 1 (P1) §2
G8-6 — Registry GovernanceNo classification field uses free text. All classification fields reference governed registries. Registry values are never deleted — only retired.ConstitutionalPart C, Ch 1 (P1) §2
G8-7 — Navigation CompletenessA user is never lost. Every page has a breadcrumb. Every breadcrumb item is a link. Every object is bookmarkable. Search is always accessible.InterfacePart C, Ch 4 (P4) §4
G8-8 — Maturity DisciplineCapabilities appear in maturity-appropriate stages. Intelligence before data is empty. Automation before intelligence is dangerous. AI before human authorization infrastructure is unconstitutional.ArchitecturalPart C, Ch 1 (P1) §2; Part C, Ch 4 (P4) §6
G8-9 — Shell PermanenceThe Application Shell anatomy (Header, Navigation, Breadcrumb, Content Area) is permanent. Technology changes may change the rendering; the shell requirements remain constant.InterfacePart C, Ch 4 (P4) §3
G8-10 — Technology IndependenceThe Constitutional Platform Architecture does not depend on any specific technology. Platform specifications are expressed in constitutional terms. Technology choices are implementation decisions within the constitutional frame.ArchitecturalPart C, Ch 1 (P1) §2

7B — The Nine Constitutional Technical Laws (G9 Laws)

Ratified in the G9 Constitutional Technical Architecture. Source: Part C, Chapter 1 (P1) §3. These laws govern the technical implementation layer.

Law #StatementDoctrine LayerPrimary Citation
G9-1 — PostgreSQL Constitutionally MandatedPostgreSQL is the constitutionally mandated database. No other database may serve as the primary domain record store. Replacement requires Constitutional Architecture Council resolution.TechnicalPart C, Ch 2 (P2)
G9-2 — No-Delete TriggerA database-level trigger enforcing the No-Delete doctrine is mandatory on every constitutional domain table, including direct database connections that bypass the application layer.TechnicalPart C, Ch 2 (P2); Part A, throughout
G9-3 — Authorization Precedes DataNo domain record is returned from the database without an authorization check having first passed at the API middleware layer. Authorization checks must precede all data access operations.SecurityPart C, Ch 5 (P5)
G9-4 — Four-Eyes EnforcedNo person may both record and approve the same financial transaction. The service layer raises ConstitutionalFourEyesViolation if the approver's Party ID equals the recorder's Party ID.GovernancePart C, Ch 5 (P5)
G9-5 — Audit Middleware UniversalEvery API endpoint is wrapped by audit middleware. The audit record is created before the response is returned. Audit capture is not optional and cannot be disabled by configuration.TechnicalPart C, Ch 3 (P3); Part C, Ch 5 (P5)
G9-6 — OpenAPI is ContractEvery API endpoint is defined in an OpenAPI 3.1 specification. The OpenAPI specification is the binding contract between the backend and any consumer. No undocumented endpoint may exist.ArchitecturalPart C, Ch 3 (P3)
G9-7 — Secrets Never in Code or LogsProduction secrets are never stored in source code, never committed to version control, and never emitted in application logs or API responses, even in partial or hashed form.SecurityPart C, Ch 6 (P6)
G9-8 — Maturity Staging MandatoryEvery implementation decision is made in the context of a maturity stage (M1–M5). Capabilities are not implemented before their constitutional maturity conditions are satisfied.ArchitecturalPart C, Ch 4 (P4) §6
G9-9 — Self-Hostability ConstitutionalThe Constitutional ERP must be deployable on entity-owned or entity-controlled infrastructure without dependence on any external service provider.ConstitutionalPart C, Ch 6 (P6)

7C — The Ten AI Constitutional Laws

Ratified in G8A-D02 AI Governance Constitution. Source: Part C, Chapter 5 (P5). All AI capabilities are M5 capabilities (Law G8-8); they may not be activated before M5 maturity conditions are satisfied (AI Law 10).

Law #StatementDoctrine LayerPrimary Citation
AI Law 1 — Augmentation OnlyAI systems are augmentation tools. They may not take constitutional actions. Every constitutional action must be performed by a constitutionally authorized human Party.ConstitutionalPart C, Ch 5 (P5)
AI Law 2 — Human Review RequiredEvery AI-generated output must be reviewed by a human actor before it becomes a constitutional record. The reviewing actor's Party ID is recorded in the resulting record.ConstitutionalPart C, Ch 5 (P5)
AI Law 3 — AI Labelling MandatoryEvery AI-generated output that becomes a constitutional record must carry ai_generated: true metadata. This metadata is permanent and visible in the audit trail.TechnicalPart C, Ch 5 (P5)
AI Law 4 — Minimum Data ScopeAn AI system receives only the minimum data necessary to perform its designated function. AI data scope is defined in the AI Deployment Authorization document.SecurityPart C, Ch 5 (P5)
AI Law 5 — AI Actions Fully AuditedAll AI system actions — including data reads, summary generation, and draft creation — are fully audited in the AI action audit log with the AI system's Party ID and the initiating human actor.ConstitutionalPart C, Ch 5 (P5)
AI Law 6 — Human Override MandatoryEvery AI-assisted workflow must include a human override mechanism. The human actor must be able to see the AI's suggestion, see the evidence used, reject the suggestion without penalty, and proceed without AI assistance.ConstitutionalPart C, Ch 5 (P5)
AI Law 7 — AI EscalationWhen an AI system encounters data outside its designated scope, it must escalate to the human authority holder rather than proceeding.ConstitutionalPart C, Ch 5 (P5)
AI Law 8 — Constitutional LiabilityConstitutional liability for AI-assisted actions rests with the human Party who authorized the AI deployment and the human Party who reviewed and confirmed the AI-generated output.ConstitutionalPart C, Ch 5 (P5)
AI Law 9 — No Personal Data in AI TrainingConstitutional domain data may not be used to train or fine-tune AI models without explicit, documented consent from each data subject and Primary Steward authorization.PrivacyPart C, Ch 5 (P5)
AI Law 10 — Maturity PrerequisiteAI capabilities are M5 capabilities. They may not be activated before the M5 maturity conditions are satisfied: 5+ years of data, 3+ entities, federation fully operational, knowledge catalog rich.ArchitecturalPart C, Ch 5 (P5); Part C, Ch 4 (P4) §6

Section 8 — UI Invariants

Ten constitutional rules governing all user-facing design in the VGSF ERP. Established in the Module Philosophy Constitution. These invariants bind every module, pillar, and interface throughout all five maturity stages. Source: Part D, Chapter 1 (L1) §4.

InvariantStatementPrimary Citation
UI-INV-1 — No Physical DeletionNever render "Delete" for a constitutional record. Use Archive / Withdraw / Cancel / Discard / Deprecate / Close / Expire / Supersede per the domain's lifecycle. Only true drafts (a soft state, not a row delete) may be discarded.Part D, Ch 1 (L1) §4; Part C, Ch 4 (P4) §1
UI-INV-2 — Entity Isolation by DBDo NOT add entity_id filters in frontend queries (PROHIB-001). Server sets SET LOCAL <schema>.current_entity_id from the JWT. Send the JWT; render what comes back. Empty result = "not in your scope," never an error.Part D, Ch 1 (L1) §4; Part C, Ch 5 (P5)
UI-INV-3 — Bitemporal History SelectorHistory and timeline screens offer "View as of [date]" and distinguish valid-time (true in the world) from system-time (when recorded). Applies to all bitemporal domains.Part D, Ch 1 (L1) §4; Part C, Ch 4 (P4) §5
UI-INV-4 — Registry Values from DBEvery type / kind / status dropdown is the authoritative registry enum — fetched from the registry endpoint; immutable except is_active. Never invent options; never free-text where a registry exists.Part D, Ch 1 (L1) §4; Part A, throughout
UI-INV-5 — Sanctioned Operations OnlyWrites go through domain functions/endpoints (fn_issue_version, POST /donations/record, etc.). Never compose raw SQL or PATCH a frozen field. Identity, scope, and attribution fields are immutable after creation.Part D, Ch 1 (L1) §4; Part C, Ch 3 (P3)
UI-INV-6 — Lifecycle State Machine EnforcedOffer only transitions the machine allows from the current state; hide or disable actions on terminal states (ARCHIVED / CLOSED / CANCELLED / REVOKED). Server is final authority but the UI must not offer illegal moves.Part D, Ch 1 (L1) §4; Part A, throughout
UI-INV-7 — Three-Level PrivacyInteraction and Case data carry STANDARD / CONFIDENTIAL / RESTRICTED. Privacy escalates only, never downgrades. Confidential = participants only; restricted = explicit grant-holders only. Build privacy badges and access-grant management.Part D, Ch 1 (L1) §4; Part A, Ch 9 (T9), Ch 10 (T10)
UI-INV-8 — Attribution MandatoryEvery create / transition records who (a REF001 Party) and when. Forms capture the acting party; audit and timeline views show actor + timestamp + reason on every state change.Part D, Ch 1 (L1) §4; Part A, Ch 1 (T1)
UI-INV-9 — Constitutional VocabularyUI label ≠ DB table name by design: Pillar = department_groups, Program = constitution's "Initiative", etc. Use human vocabulary in the UI; map to DB names in the API layer. MIS-division Sanskrit names are FOUNDATIONAL and immutable — display verbatim.Part D, Ch 1 (L1) §4; Part A, Ch 13 (T13)
UI-INV-10 — No AI Governance Without Human ConfirmationAny AI-assisted suggestion (matching, classification, recommendation) is presented for explicit human approval before it becomes a governance act (approval, authorization, certification, disbursement). Implements PROHIB-U-006 at the interface layer.Part D, Ch 1 (L1) §4; Part C, Ch 5 (P5) — AI Law 1, AI Law 2

This index covers Book II as published in Phases 1–4 (2026-06-26). Future editions will extend this index as new domains are constituted, new platform laws are ratified, and the module architecture planning zone (Part D) advances from planning status to certification.


INDEX_OF_LAWS_AND_RULES.md | BACK MATTER | Book II — Dharma ERP Constitutional Technical Architecture | First Edition, 2026 | Compiled by CAP-BOOK2-001 (R-ARCH)

Test Dharma ERP and tell us what you find.

The trial uses sandboxed demo data across twelve core modules. Look around, try the forms, and review what works and what does not.