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.
| Code | Principle | Primary Citation |
|---|---|---|
| UP-001 | Constitutional completeness SHALL precede specification | CLAUDE.md; Part B, Chapter 1 (M1) |
| UP-002 | Specification authority SHALL remain distinct from certification authority | CLAUDE.md; Part B, Chapter 8 (M8) |
| UP-003 | Verification obligations SHALL precede verification mechanisms | CLAUDE.md; Part B, Chapter 5 (M5) |
| UP-004 | Verification execution SHALL remain distinct from verification design | CLAUDE.md; Part B, Chapter 8 (M8) |
| UP-005 | Independent certification SHALL remain distinct from implementation | CLAUDE.md; Part B, Chapter 6 (M6) |
| UP-006 | Corrective cycles SHALL preserve role separation | CLAUDE.md; Part B, Chapter 7 (M7) |
| UP-007 | No domain shall receive implementation authorization unless independent evidence demonstrates trustworthiness equal to or greater than previously admitted domains | CLAUDE.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 / Name | Statement (one line) | Domain | Primary Citation |
|---|---|---|---|
| U1 — Root Immutability | Once a root entity is created, its identity is permanent and immutable; identifier and type may never change | ALL | Part A, throughout; Part B, Chapter 1 (M1) |
| U2 — No Physical Deletion | No root entity may ever be physically deleted from the system; endings are recorded, not erased | ALL | Part A, throughout; Part C, Chapter 1 (P1) — Law G8-2 |
| U3 — No TRUNCATE | Bulk destruction of data is categorically prohibited; TRUNCATE privileges revoked from all application users | ALL | Part A, throughout; Part C, Chapter 2 (P2) |
| U4 — History Is Append-Only | Every historical ledger is write-once; corrections are new events referencing the prior record, never mutations | ALL | Part A, throughout; Part B, Chapter 6 (M6) |
| U5 — System-Time Sovereignty | System time belongs to the system; no application may specify or override system-time boundaries | ALL bitemporal | Part A, throughout; Part C, Chapter 2 (P2) |
| U6 — Registry Immutability | Once a registry value is ratified and activated, its semantic identity may never change; only deprecation is permitted | ALL with registries | Part A, throughout; Part C, Chapter 1 (P1) — Law G8-6 |
| U7 — Temporal Auditability | Every domain must support reconstruction of exactly what was known at any point in time | ALL | Part A, throughout; Part C, Chapter 2 (P2) |
| U8 — Root Purity | A root entity contains only the minimum information required to establish its existence and identity; all other attributes belong in projections | ALL | Part A, throughout; Part B, Chapter 1 (M1) |
| U9 — Dependency Isolation | Dependencies flow strictly toward roots; upstream roots may never depend upon downstream constructs | ALL | Part 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 / Name | Statement (one line) | Domain | Primary Citation |
|---|---|---|---|
| I1 — Party Never Closes | A Party that has ever been recorded shall never be closed or logically deleted | REF001 | Part A, Chapter 1 (T1) §6.1 |
| I2 — Profile Exclusivity | One active Profile of each type per Party at any time; a Party is either a Person or an Organization, never both | REF001 | Part A, Chapter 1 (T1) §4.2 |
| I3 — Classification Permanence | Party type is fixed at creation; registry-backed classifications may be added but not silently changed | REF001 | Part A, Chapter 1 (T1) §4.1 |
| I4 — Name Historicity | Every name a Party has ever held is preserved bitemporally; renaming supersedes the prior record but never erases it | REF001 | Part A, Chapter 1 (T1) §4.2 |
| I5 — Location Role Semantics | Addresses carry semantic roles governed by the Location Role Registry; no free-text locations | REF001 | Part A, Chapter 1 (T1) §4.2 |
| I6 — Identity Fingerprint Permanence | UUID is the permanent constitutional fingerprint; never changes across any migration or correction | REF001 | Part 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 / Name | Statement (one line) | Domain | Primary Citation |
|---|---|---|---|
| R1 — Relationship Root Immutability | Source party, target party, and type may never change after creation | REF002 | Part A, Chapter 2 (T2) |
| R2 — Anchor Immutability | Participants are permanently fixed at creation | REF002 | Part A, Chapter 2 (T2) |
| R3 — Type Immutability | Relationship type cannot change; a different type requires a new relationship | REF002 | Part A, Chapter 2 (T2) |
| R4 — Directional Singularity | Symmetric relationships have one canonical direction; no duplicate mirror representations | REF002 | Part A, Chapter 2 (T2) |
| R5 — Relationship Bitemporality | Both application time and system time are required for every state period | REF002 | Part A, Chapter 2 (T2) |
| R6 — Relationship Root Purity | Root contains only: ID, source party, target party, type; nothing else | REF002 | Part A, Chapter 2 (T2) |
| R7 — Extension Independence | Extensions may be removed without closing the relationship | REF002 | Part A, Chapter 2 (T2) |
| R8 — Semantic Preservation | Relationship type vocabulary is frozen at ratification | REF002 | Part A, Chapter 2 (T2) |
| R9 — State Non-Overlapping | No two active state periods for the same relationship may overlap in application time | REF002 | Part A, Chapter 2 (T2) |
2D — Obligation Doctrines (REF007)
Ratified in the REF007 Foundation Constitution. Source: Part A, Chapter 7 (T7).
| Code / Name | Statement (one line) | Domain | Primary Citation |
|---|---|---|---|
| Encumbrance Doctrine | Committed funds are not available for new commitments even before they are spent; Available = Total − Encumbered − Spent | REF007, REF004, REF005 | Part A, Chapter 7 (T7) §10 |
| Intent Preservation Doctrine | Resources carrying declared donor or grantor intent retain that intent throughout their lifecycle; reallocation requires Board authorization and a permanent record | REF007, REF004, REF014 | Part A, Chapter 7 (T7) §11 |
| Reconciliation Doctrine | Every Budget Obligation must undergo formal reconciliation before Project closure; reconciliation is a constitutional governance act, not an optional accounting step | REF007, REF004 | Part 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 / Name | Statement (one line) | Domain | Primary Citation |
|---|---|---|---|
| Hybrid Architecture Doctrine | Microservices are rejected; modular monolith with constitutional partitioning is the ratified architecture | ALL | Part C, Chapter 1 (P1); Part C, Chapter 3 (P3) |
| AGBAC Doctrine | Attribute-Governed, Behavior-Based Access Control governs all authorization; require_authority() is the enforcement point | ALL | Part C, Chapter 1 (P1); Part C, Chapter 5 (P5) |
| Four-Eyes Doctrine | High-risk governance acts require two separate authority confirmations from roles with no reporting relationship | REF007, financial | Part C, Chapter 1 (P1) — Law G9-4; Part C, Chapter 5 (P5) |
| AI Governance Doctrine | AI may assist; AI may not authorize; every AI-suggested governance act requires human authority confirmation | ALL | Part C, Chapter 5 (P5) — AI Law 1; Doctrine Registry |
| PROHIB-001 | Application SQL must not contain entity_id = $n filters; Row Level Security is the only authorized entity isolation mechanism | ALL | Part 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 Code | Domain | One-line Statement | Chapter |
|---|---|---|---|
| CI-001 | REF001 | Party Never Closes — once a party.id is issued it is permanent; no party may be deleted, closed, or terminated | Part A, Ch 1 (T1) |
| CI-002 | REF001 | Root Purity — the party(id, created_at) root carries no entity_id; party existence is a global federated fact | Part A, Ch 1 (T1) |
| CI-003 | REF001 | Registry-Backed Classification — all classifications reference immutable registry entries; no free-text | Part A, Ch 1 (T1) |
| CI-004 | REF001 | Bitemporal History Engine — all projection changes preserved in append-only, immutable history tables | Part A, Ch 1 (T1) |
| CI-005 | REF001 | Profile Exclusivity — a party with a person_profile will never have an organization_profile, and vice versa | Part A, Ch 1 (T1) |
| CI-006 | REF001 | Delete / Truncate Protection — no party data in any table may be deleted or truncated from any non-superuser session | Part A, Ch 1 (T1) |
| CI-007 | REF001 | Registry Immutability — registry id/name/description are frozen; only is_active=FALSE retirement permitted | Part A, Ch 1 (T1) |
| CI-008 | REF001 | Party Immutability — once a history record is written it is immutable forever | Part A, Ch 1 (T1) |
| CI-009 | REF001 | System-Time Ownership — system timestamps are owned by the database; no application may set or override them | Part A, Ch 1 (T1) |
| CI-010 | REF001 | Entity Isolation (RLS) — projection data is strictly scoped to the owning entity; cross-entity read/write is impossible | Part A, Ch 1 (T1) |
3B — REF002 Relationship Domain — Enforcement Invariants (EI-001..EI-012)
Source: Part A, Chapter 2 (T2).
| Invariant Code | Domain | One-line Statement | Chapter |
|---|---|---|---|
| EI-001 | REF002 | Relationship Root Immutability — trg_prevent_root_mutation blocks any identity change | Part A, Ch 2 (T2) |
| EI-002 | REF002 | Anchor Immutability — trg_prevent_anchor_mutation blocks participant changes | Part A, Ch 2 (T2) |
| EI-003 | REF002 | Type Immutability — trg_prevent_type_mutation blocks relationship type changes | Part A, Ch 2 (T2) |
| EI-004 | REF002 | Directional Singularity — GiST exclusion + trg_enforce_symmetry enforces canonical direction | Part A, Ch 2 (T2) |
| EI-005 | REF002 | Relationship Bitemporality — valid_time columns + system-time triggers on all state periods | Part A, Ch 2 (T2) |
| EI-006 | REF002 | History Append-Only — validate_relationship_edge() superseded_at guard | Part A, Ch 2 (T2) |
| EI-007 | REF002 | System-Time Ownership — trg_system_time_insert controls all system timestamps | Part A, Ch 2 (T2) |
| EI-008 | REF002 | Dependency Isolation — FK exclusively to identity_records(id); no REF002 → REF002 self-loop | Part A, Ch 2 (T2) |
| EI-009 | REF002 | Registry Immutability — trg_registry_immutable on relationship type registry | Part A, Ch 2 (T2) |
| EI-010 | REF002 | Symmetric Canonical Ordering — SymmetricNormalizer + DB trigger enforce unique direction | Part A, Ch 2 (T2) |
| EI-011 | REF002 | Extension Independence — satellite FK exclusively to relationship_id | Part A, Ch 2 (T2) |
| EI-012 | REF002 | No Physical Deletion — prevent_delete_* + prevent_truncate_* triggers | Part A, Ch 2 (T2) |
3C — REF003 Place Domain — Enforcement Invariants (EI-001..EI-008)
Source: Part A, Chapter 3 (T3).
| Invariant Code | Domain | One-line Statement | Chapter |
|---|---|---|---|
| EI-001 | REF003 | Place Eternal Identity — Place anchors are never physically deleted; prevent_delete trigger enforced | Part A, Ch 3 (T3) |
| EI-002 | REF003 | Bitemporal Validity — geometry/address validity modeled as tstzrange; superseded, never overwritten | Part A, Ch 3 (T3) |
| EI-003 | REF003 | Observation Registry — no uniqueness constraint on spatial records; overlapping claims accepted | Part A, Ch 3 (T3) |
| EI-004 | REF003 | History Snapshot Completeness — history capture fires on every write; history tables are immutable | Part A, Ch 3 (T3) |
| EI-005 | REF003 | Registry Governance — address_type_registry cannot be deleted; deactivation only | Part A, Ch 3 (T3) |
| EI-006 | REF003 | Global Read / Entity-Scoped Write RLS — places are shared reality; writes are entity-attributed | Part A, Ch 3 (T3) |
| EI-007 | REF003 | Outbox Atomicity — 5 integration events atomic with the domain write | Part A, Ch 3 (T3) |
| EI-008 | REF003 | PostGIS Isolation — ST_GeomFromGeoJSON / ST_AsGeoJSON confined to geometry_repository.py | Part 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 Code | Domain | One-line Statement | Chapter |
|---|---|---|---|
| EI-001 | REF005 | Append-Only Balance — no direct write to held_quantity; balance changes only via transition | Part A, Ch 5 (T5) |
| EI-002 | REF005 | Conservation — balance = Σ transitions; value neither created nor destroyed without a recorded act | Part A, Ch 5 (T5) |
| EI-003 | REF005 | Non-Over-Allocation — allocation may not exceed available quantity (with REF005.S1-only credit carve-out) | Part A, Ch 5 (T5) |
| EI-004 | REF005 | Encumbrance Ceiling — Σ(open allocations) ≤ held_quantity | Part A, Ch 5 (T5) |
| EI-005 | REF005 | Entity-Scope RLS — every Resource scoped to one entity; no cross-scope read/write | Part A, Ch 5 (T5) |
| EI-006 | REF005 | Dual-Scoped Transfer — cross-entity transfer is two paired scoped acts linked by a Transfer Instrument | Part A, Ch 5 (T5) |
| EI-007 | REF005 | No-Delete / History Immutability — Resources and transitions are never deleted or updated; corrections are new records | Part A, Ch 5 (T5) |
| EI-008 | REF005 | Bitemporal — NOT NULL occurred_at + recorded_at on every transition; any past state reconstructable | Part A, Ch 5 (T5) |
| EI-009 | REF005 | Attribution Completeness — exactly one cause + NOT NULL recorded_by on every transition | Part A, Ch 5 (T5) |
| EI-010 | REF005 | Immutable Subtype — a Resource's kind discriminator may not change after creation | Part A, Ch 5 (T5) |
3E — REF006 Document Domain — Domain Invariants (DI-001..DI-008)
Source: Part A, Chapter 6 (T6).
| Invariant Code | Domain | One-line Statement | Chapter |
|---|---|---|---|
| DI-001 | REF006 | Attribution — at least one responsible Party per Document | Part A, Ch 6 (T6) |
| DI-002 | REF006 | Issuance Immutability — once issued, change only by new version | Part A, Ch 6 (T6) |
| DI-003 | REF006 | Version Lineage and Supersession — append-only; predecessor preserved | Part A, Ch 6 (T6) |
| DI-004 | REF006 | Evidence Integrity — content integrity verifiable / tamper-evident | Part A, Ch 6 (T6) |
| DI-005 | REF006 | Temporal Anchoring — issuance/effective time; bitemporal history | Part A, Ch 6 (T6) |
| DI-006 | REF006 | Retention / Non-Destruction — no physical removal while referenced | Part A, Ch 6 (T6) |
| DI-007 | REF006 | Entity Scope (RLS) — exactly one entity scope; isolation at the data layer | Part A, Ch 6 (T6) |
| DI-008 | REF006 | Unique Artifact Identity — uniquely, stably identifiable; identifier never reused | Part A, Ch 6 (T6) |
3F — REF007 Obligation Domain — Object Invariants (OI-001..OI-009)
Source: Part A, Chapter 7 (T7). Certified under CAP060G.
| Invariant Code | Domain | One-line Statement | Chapter |
|---|---|---|---|
| OI-001 | REF007 | Attribution — every Obligation traceable to a creating Party | Part A, Ch 7 (T7) |
| OI-002 | REF007 | Deliberate Creation — Obligations are created by explicit constitutional act, not implicitly | Part A, Ch 7 (T7) |
| OI-003 | REF007 | Terms-Definiteness — parties, amounts, and anchors set and frozen at creation | Part A, Ch 7 (T7) |
| OI-004 | REF007 | Governed Lifecycle and Ledger Authority — every state transition produces a formal record | Part A, Ch 7 (T7) |
| OI-005 | REF007 | Bindingness / No-Delete — from COMMITTED onward, Obligations have no physical-deletion path | Part A, Ch 7 (T7) |
| OI-006 | REF007 | Temporal / Bitemporal Anchoring — creation, commitment, and fulfilment all timestamped | Part A, Ch 7 (T7) |
| OI-007 | REF007 | Intent Preservation — Obligation carries the intent of its originating Fund | Part A, Ch 7 (T7) |
| OI-008 | REF007 | Entity Scope (RLS, non-superuser, fail-closed) — Obligation data isolated to its owning entity | Part A, Ch 7 (T7) |
| OI-009 | REF007 | Unique Identity — every Obligation has a stable, non-recyclable UUID identifier | Part A, Ch 7 (T7) |
3G — REF010 Case Domain — Case Invariants (CI-001..CI-004)
Source: Part A, Chapter 10 (T10).
| Invariant Code | Domain | One-line Statement | Chapter |
|---|---|---|---|
| CI-001 | REF010 | Every Case has a stable, permanent case_id — never recycled or deleted | Part A, Ch 10 (T10) |
| CI-002 | REF010 | case_type_id is immutable once set | Part A, Ch 10 (T10) |
| CI-003 | REF010 | A Case in ARCHIVED state accepts no further mutations | Part A, Ch 10 (T10) |
| CI-004 | REF010 | case_events rows are never updated or deleted — append-only | Part A, Ch 10 (T10) |
3H — REF011 Schedule Domain — Schedule Invariants (SI-001..SI-015)
Source: Part A, Chapter 11 (T11).
| Invariant Code | Domain | One-line Statement | Chapter |
|---|---|---|---|
| SI-001 | REF011 | Immutable schedule_id — UUID PK; never recycled, never deleted | Part A, Ch 11 (T11) |
| SI-002 | REF011 | Owner Party continuity — NOT NULL FK to REF001 Owner Party | Part A, Ch 11 (T11) |
| SI-003 | REF011 | Creation attribution immutable — NOT NULL FK, no update on created_by_party_id | Part A, Ch 11 (T11) |
| SI-004 | REF011 | Lifecycle ledger append-only — no UPDATE or DELETE ever permitted on ledger rows | Part A, Ch 11 (T11) |
| SI-005 | REF011 | Generation gate — only ACTIVE Schedules may generate Event instances | Part A, Ch 11 (T11) |
| SI-006 | REF011 | CANCELLED is terminal — permanently stopped; no reactivation | Part A, Ch 11 (T11) |
| SI-007 | REF011 | ARCHIVED is read-only — lifecycle function enforces | Part A, Ch 11 (T11) |
| SI-008 | REF011 | REF011 → REF004 direction mandatory — no stored FK to Events; query via REF004 | Part A, Ch 11 (T11) |
| SI-009 | REF011 | Scheduled Events carry schedule_id — REF004 constraint enforced | Part A, Ch 11 (T11) |
| SI-010 | REF011 | Ad-hoc Events (schedule_id = NULL) valid — REF004: nullable FK | Part A, Ch 11 (T11) |
| SI-011 | REF011 | iCal RFC 5545 conformance — write-time FREQ= validation | Part A, Ch 11 (T11) |
| SI-012 | REF011 | Vedic spec required for VEDIC/HYBRID — DB check constraint + grammar validator | Part A, Ch 11 (T11) |
| SI-013 | REF011 | Recurrence rule locked in ACTIVE — DB trigger blocks rrule_spec changes | Part A, Ch 11 (T11) |
| SI-014 | REF011 | Authority gate for all transitions — service layer REF008 check | Part A, Ch 11 (T11) |
| SI-015 | REF011 | effective_until ≥ effective_from — DB check constraint enforced | Part A, Ch 11 (T11) |
3I — REF013 Knowledge Domain — Knowledge Invariants (KI-001..KI-007 selected)
Source: Part A, Chapter 12 (T12).
| Invariant Code | Domain | One-line Statement | Chapter |
|---|---|---|---|
| KI-001 | REF013 | Every Knowledge Item has a stable, permanent id — never recycled or deleted | Part A, Ch 12 (T12) |
| KI-002 | REF013 | knowledge_type is immutable once set | Part A, Ch 12 (T12) |
| KI-003 | REF013 | A Knowledge Item in status = ARCHIVED accepts no further mutations | Part A, Ch 12 (T12) |
| KI-004 | REF013 | knowledge_events rows are never updated or deleted — append-only | Part A, Ch 12 (T12) |
| KI-007 | REF013 | ARCHIVED items are constitutionally terminal — no status change and no field mutation possible | Part 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 Code | Domain | One-line Statement | Chapter |
|---|---|---|---|
| CI-1 | REF009.C1 | Every Communication has exactly one direction: OUTBOUND / INBOUND / BROADCAST | Part A, Ch 21 (T21) |
| CI-2 | REF009.C1 | OUTBOUND / INBOUND require non-null sender_party_id | Part A, Ch 21 (T21) |
| CI-3 | REF009.C1 | OUTBOUND requires at least one recipient in communication_recipients before COMPLETED | Part A, Ch 21 (T21) |
| CI-4 | REF009.C1 | interaction_type MUST be a COMMUNICATION family type code | Part A, Ch 21 (T21) |
| CI-5 | REF009.C1 | A communication_properties row MUST exist for every REF009.C1 interaction | Part A, Ch 21 (T21) |
| CI-6 | REF009.C1 | received_at >= sent_at when both are set | Part A, Ch 21 (T21) |
| CI-7 | REF009.C1 | Sub-table visibility is derived from parent interaction visibility via JOIN; no independent access bypass | Part 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)
| Code | Prohibition Statement | Scope | Primary Citation |
|---|---|---|---|
| PROHIB-U-001 | Application SQL MUST NOT contain entity_id = $n filters; RLS + get_entity_scope() SECURITY DEFINER are the only authorized entity isolation mechanisms | All REF domains, all roles | Part C, Ch 3 (P3); Part A, throughout |
| PROHIB-U-002 | Service layer code MUST NOT use a superuser database role; application_role is the only authorized connection role | All REF domains, all roles | Part C, Ch 2 (P2); Part C, Ch 5 (P5) |
| PROHIB-U-003 | Service layer code MUST NOT implement any pathway that physically deletes, truncates, or archives-by-removal any constitutional record | All REF domains, all roles | Part A, throughout; Part B, Ch 7 (M7) |
| PROHIB-U-004 | Service layer code MUST NOT bypass, disable, or suppress bitemporal triggers; system-time columns are trigger-owned | All REF domains, all roles | Part A, throughout; Part B, Ch 5 (M5) |
| PROHIB-U-005 | DDL files, migration files, and certification artifacts MUST NOT be modified by any implementation program without explicit CAC or constitutional amendment authorization | All REF domains, all roles | CLAUDE.md; Part B, Ch 4 (M4) |
| PROHIB-U-006 | AI agents MUST NOT make constitutional governance decisions without human (Primary Steward) authorization | All REF domains, all roles | Part C, Ch 5 (P5) — AI Laws; Part B, Ch 8 (M8) |
4B — Implementation Prohibitions (R-IMPL Role Only)
| Code | Prohibition Statement | Scope | Primary Citation |
|---|---|---|---|
| PROHIB-I-001 | Implementation teams MUST NOT write service layer SQL that queries another REF domain's tables directly | R-IMPL; Phase 4 | Part B, Ch 5 (M5); Part C, Ch 3 (P3) |
| PROHIB-I-002 | Implementation teams MUST NOT write code that references tables, columns, or entities superseded by constitutional amendments | R-IMPL; Phase 4 | Part B, Ch 5 (M5) |
| PROHIB-I-003 | Implementation teams MUST NOT add API endpoints beyond those specified in the RO-series authorized specification without CAC authorization | R-IMPL; Phase 4 | Part B, Ch 5 (M5); Part C, Ch 3 (P3) |
| PROHIB-I-004 | An implementation program MUST NOT execute the verification trial protocol and declare a verification verdict | R-IMPL; Phase 4 | Part B, Ch 8 (M8); Part B, Ch 6 (M6) |
| PROHIB-I-005 | Governance type-specific metadata MUST NOT be stored as nullable columns on the constitutional main table; satellite tables are the only authorized mechanism | R-IMPL; Phase 4 | Part B, Ch 5 (M5) — PP-004 |
4C — Database Layer Prohibitions
| Code | Prohibition Statement | Scope | Primary Citation |
|---|---|---|---|
| PROHIB-DB-001 | All constitutional tables MUST have BEFORE DELETE and BEFORE STATEMENT TRUNCATE triggers that raise exceptions | DB layer; DDL authors | Part C, Ch 2 (P2); Part A, throughout |
| PROHIB-DB-002 | recorded_at and superseded_at (or equivalent system-time columns) MUST be trigger-owned; no application code may write to these columns | DB layer; DDL authors | Part C, Ch 2 (P2); Part A, throughout |
| PROHIB-DB-003 | DB triggers MUST guard against UPDATE on historical records (superseded_at IS NOT NULL); attempting to modify a historical record MUST raise a constitutional violation exception | DB layer; DDL authors | Part B, Ch 6 (M6); Part A, throughout |
4D — Lifecycle Prohibitions (All Programs, All Roles)
| Code | Prohibition Statement | Scope | Primary Citation |
|---|---|---|---|
| PROHIB-L-001 | Constitutional lifecycle phases MUST be executed in sequence; no phase skipping is permitted | All programs | Part B, Ch 1 (M1); CLAUDE.md |
| PROHIB-L-002 | A program that designed, specified, or implemented any part of a domain MUST NOT certify that domain | All programs | Part B, Ch 8 (M8); CLAUDE.md |
| PROHIB-L-003 | Constitutional programs MUST NOT invent, fabricate, or extrapolate evidence; if evidence is missing or ambiguous, STOP and issue a clarification report | All programs | CLAUDE.md; Part B, Ch 6 (M6) |
| PROHIB-L-004 | A P1 BLOCKER failure MUST trigger VERIFICATION_FAIL regardless of the numeric test score; P1 BLOCKER classifications MUST NOT be downgraded after verification execution | All programs | Part 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)
| Code | Practice | Applies To | Primary Citation |
|---|---|---|---|
| UP-001 | Hexagonal Package Architecture — domain logic MUST NOT depend on infrastructure; layer boundaries enforced | All REF service layers | Part B, Ch 5 (M5); Part C, Ch 3 (P3) |
| UP-002 | Fail-Closed Middleware Chain — missing/invalid/expired JWT → 401; no fallback to unauthenticated access | All REF service layers | Part C, Ch 3 (P3); Part C, Ch 5 (P5) |
| UP-003 | RLS + SET LOCAL Entity Scope Pattern — application SQL MUST NOT add entity_id = $n filters; get_entity_scope() SECURITY DEFINER is the only scope-reading mechanism | All REF service layers | Part C, Ch 2 (P2); Part C, Ch 5 (P5) |
| UP-004 | Transactional Outbox Pattern — domain writes and their event records MUST occur in a single database transaction; no direct broker API calls from application code | All REF service layers | Part C, Ch 3 (P3); Part A, Ch 3 (T3) |
| UP-005 | No-Delete DB Trigger Layer — DB-layer no-delete and no-truncate triggers on all constitutional tables; application-layer prohibitions alone are insufficient | All REF domains | Part A, throughout; Part C, Ch 2 (P2) |
| UP-006 | Constitutional Benchmark Before Service Specification — CBD designation with no dimension below ADEQUATE before service specification begins | All REF domains | Part B, Ch 3 (M3); Part B, Ch 4 (M4) |
| UP-007 | Implementation Authorization Order (RO-Series) — every service layer implementation MUST be authorized by a formal RO instrument with defined scope, discharge criteria, and expiry | All REF domains | Part B, Ch 4 (M4); Part B, Ch 5 (M5) |
5B — TIER-2 PRESUMPTIVE Practices (introduced by REF002; presumptively mandatory for REF003–REF014)
| Code | Practice | Applies To | Primary Citation |
|---|---|---|---|
| PP-001 | Constitutional Lifecycle Gate Structure — follow B→C→D→E→G→H→L sequence; add D-R1 and J+K conditionally | All REF domains | Part B, Ch 1 (M1); Part B, Ch 7 (M7) |
| PP-002 | Primary Steward Ambiguity Resolution Instrument — issue D-R1 when Phase 2 review identifies HIGH constitutional ambiguities | All REF domains | Part B, Ch 4 (M4); Part B, Ch 8 (M8) |
| PP-003 | Conditional Test Category Pattern — define CONDITIONAL categories for gated scope; excluded from unconditional release gate; not counted as FAIL | All REF domains with pending amendments | Part B, Ch 5 (M5); Part B, Ch 6 (M6) |
| PP-004 | Governance Satellite Table Pattern — type-specific governance metadata in satellite tables, NOT nullable main-table columns | REF domains with governance types | Part B, Ch 5 (M5); Part A, Ch 2 (T2) |
| PP-005 | Constitutionally Blocked Type Implementation Pattern — constitutional blocks enforced at both service layer AND DB trigger; defense-in-depth | REF domains with CAC-blocked types | Part B, Ch 5 (M5) |
| PP-006 | Corrective Implementation Distinctness — corrective R-IMPL and re-verifying R-VEXEC MUST be distinct programs | All REF domains (corrective cycles) | Part B, Ch 7 (M7); Part B, Ch 8 (M8) |
| PP-007 | Evidence-First Remediation Documentation — both corrective and re-verification programs produce independent per-BLOCKER evidence records | All 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).
| Rule | Statement | Source Standard | Primary Citation |
|---|---|---|---|
| Phase -1 Mandatory | No domain may receive Phase 0 authorization without a Primary Steward ADMIT verdict and five mandatory Phase -1 artifacts | V2.1 Amendment (CAP030C) | Part B, Ch 2 (M2) |
| Five Artifacts Gate | Phase 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 satisfied | DC-003; V2.1 Amendment | Part B, Ch 2 (M2) §3.1 |
| Single Canonical Roadmap | REF_DOMAIN_ROADMAP.yaml is the sole authoritative source for domain identity and numbering; all other artifacts are evidence only | DC-005 AD-1 | Part B, Ch 2 (M2) §6.1 |
| VOs Precede VFs | Verification Obligations (VOs) are produced in Phase 1; Verification Functions (VFs) are produced in Phase 3; VFs may not precede the VO they test | V2.0 Methodology | Part B, Ch 5 (M5) |
| VFs Precede Implementation | Phase 3 (Verification Architecture) must precede Phase 4 (Implementation); test design before code is written | V2.0 Methodology | Part B, Ch 5 (M5) |
| LI-1 | Classification completeness precedes readiness (extends UP-001 into Phase -1) | V2.1 Amendment | Part B, Ch 2 (M2) §4.1 |
| LI-2 | No phase grants implementation authorization below prior trustworthiness level (extends UP-007) | V2.1 Amendment | Part B, Ch 2 (M2) §4.1 |
| LI-3 | Proposal role (R-ARCH) is distinct from admission role (R-STEWARD) in Phase -1 | V2.1 Amendment; Role Separation Doctrine | Part B, Ch 2 (M2) §4.1 |
| LI-4 | Exactly one predecessor gate per phase; no sequencing ambiguity | V2.1 Amendment | Part B, Ch 2 (M2) §4.1 |
| Role Declaration Mandatory | Every CAP program MUST declare its single constitutional role in its PROGRAM_CHARTER.md and list all roles it is NOT authorized to act as | Role Separation Doctrine | Part B, Ch 8 (M8) §4 |
| Binding Ruling PS-27B-001 | PP-006 and PP-007 (corrective distinctness and evidence-first remediation) are mandatory, not presumptive, for all corrective cycles | Primary Steward ratification | Part B, Ch 8 (M8) §6 |
| Binding Ruling PS-27B-002 | Phase 2a (Ambiguity Resolution) parallelism conditions: D-R1 instrument may only be run sequentially after D verdict if HIGH ambiguities are found | Primary Steward ratification | Part B, Ch 4 (M4) §3 |
| Binding Ruling PS-27B-003 | Historian role (R-HIST) activation conditions: R-HIST program is triggered after any program reaches terminal verdict | Primary Steward ratification | Part 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 # | Statement | Doctrine Layer | Primary Citation |
|---|---|---|---|
| G8-1 — Domain Primacy | Every application is derived from a domain. No application may exist without a constitutional domain basis. Applications serve domains — not the other way around. | Constitutional | Part C, Ch 1 (P1) §2 |
| G8-2 — No Delete | No 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. | Constitutional | Part C, Ch 1 (P1) §2 |
| G8-3 — API Primacy | Every 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. | Architectural | Part C, Ch 1 (P1) §2 |
| G8-4 — Audit Universality | Every 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. | Constitutional | Part C, Ch 1 (P1) §2 |
| G8-5 — Authority Traceability | Every modifying action (create, update, lifecycle transition) must carry an authority grant reference. An action without authority basis is constitutionally null. | Constitutional | Part C, Ch 1 (P1) §2 |
| G8-6 — Registry Governance | No classification field uses free text. All classification fields reference governed registries. Registry values are never deleted — only retired. | Constitutional | Part C, Ch 1 (P1) §2 |
| G8-7 — Navigation Completeness | A user is never lost. Every page has a breadcrumb. Every breadcrumb item is a link. Every object is bookmarkable. Search is always accessible. | Interface | Part C, Ch 4 (P4) §4 |
| G8-8 — Maturity Discipline | Capabilities appear in maturity-appropriate stages. Intelligence before data is empty. Automation before intelligence is dangerous. AI before human authorization infrastructure is unconstitutional. | Architectural | Part C, Ch 1 (P1) §2; Part C, Ch 4 (P4) §6 |
| G8-9 — Shell Permanence | The Application Shell anatomy (Header, Navigation, Breadcrumb, Content Area) is permanent. Technology changes may change the rendering; the shell requirements remain constant. | Interface | Part C, Ch 4 (P4) §3 |
| G8-10 — Technology Independence | The 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. | Architectural | Part 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 # | Statement | Doctrine Layer | Primary Citation |
|---|---|---|---|
| G9-1 — PostgreSQL Constitutionally Mandated | PostgreSQL is the constitutionally mandated database. No other database may serve as the primary domain record store. Replacement requires Constitutional Architecture Council resolution. | Technical | Part C, Ch 2 (P2) |
| G9-2 — No-Delete Trigger | A database-level trigger enforcing the No-Delete doctrine is mandatory on every constitutional domain table, including direct database connections that bypass the application layer. | Technical | Part C, Ch 2 (P2); Part A, throughout |
| G9-3 — Authorization Precedes Data | No 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. | Security | Part C, Ch 5 (P5) |
| G9-4 — Four-Eyes Enforced | No 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. | Governance | Part C, Ch 5 (P5) |
| G9-5 — Audit Middleware Universal | Every 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. | Technical | Part C, Ch 3 (P3); Part C, Ch 5 (P5) |
| G9-6 — OpenAPI is Contract | Every 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. | Architectural | Part C, Ch 3 (P3) |
| G9-7 — Secrets Never in Code or Logs | Production 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. | Security | Part C, Ch 6 (P6) |
| G9-8 — Maturity Staging Mandatory | Every implementation decision is made in the context of a maturity stage (M1–M5). Capabilities are not implemented before their constitutional maturity conditions are satisfied. | Architectural | Part C, Ch 4 (P4) §6 |
| G9-9 — Self-Hostability Constitutional | The Constitutional ERP must be deployable on entity-owned or entity-controlled infrastructure without dependence on any external service provider. | Constitutional | Part 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 # | Statement | Doctrine Layer | Primary Citation |
|---|---|---|---|
| AI Law 1 — Augmentation Only | AI systems are augmentation tools. They may not take constitutional actions. Every constitutional action must be performed by a constitutionally authorized human Party. | Constitutional | Part C, Ch 5 (P5) |
| AI Law 2 — Human Review Required | Every 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. | Constitutional | Part C, Ch 5 (P5) |
| AI Law 3 — AI Labelling Mandatory | Every AI-generated output that becomes a constitutional record must carry ai_generated: true metadata. This metadata is permanent and visible in the audit trail. | Technical | Part C, Ch 5 (P5) |
| AI Law 4 — Minimum Data Scope | An AI system receives only the minimum data necessary to perform its designated function. AI data scope is defined in the AI Deployment Authorization document. | Security | Part C, Ch 5 (P5) |
| AI Law 5 — AI Actions Fully Audited | All 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. | Constitutional | Part C, Ch 5 (P5) |
| AI Law 6 — Human Override Mandatory | Every 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. | Constitutional | Part C, Ch 5 (P5) |
| AI Law 7 — AI Escalation | When an AI system encounters data outside its designated scope, it must escalate to the human authority holder rather than proceeding. | Constitutional | Part C, Ch 5 (P5) |
| AI Law 8 — Constitutional Liability | Constitutional 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. | Constitutional | Part C, Ch 5 (P5) |
| AI Law 9 — No Personal Data in AI Training | Constitutional 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. | Privacy | Part C, Ch 5 (P5) |
| AI Law 10 — Maturity Prerequisite | AI 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. | Architectural | Part 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.
| Invariant | Statement | Primary Citation |
|---|---|---|
| UI-INV-1 — No Physical Deletion | Never 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 DB | Do 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 Selector | History 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 DB | Every 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 Only | Writes 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 Enforced | Offer 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 Privacy | Interaction 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 Mandatory | Every 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 Vocabulary | UI 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 Confirmation | Any 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)
