Skip to content

VGSF CONSTITUTIONAL TECHNICAL ARCHITECTURE — BOOK II — PART E: VERIFICATION AND CERTIFICATION
Chapter 4 of 4 in this Part

V4 — Evidence and Audit Standards

Document record
FieldValue
Constitutional SeriesV — Verification and Certification
Primary SourcesCANONICAL_SEED_STANDARD.md (VS-001) · FOUNDATION_SEED_REGISTRY_STANDARD.md (VS-005) · VERIFICATION_ARTIFACT_PACKAGING_STANDARD.md (VS-009) · REF_FREEZE_PROMOTION_STANDARD.md (VS-006) · PROMOTION_PIPELINE_REGISTER.md
Constitutional StatusADVISORY institutional standards (VS-001 PP-008 candidate; VS-005, VS-006 v1.1, VS-009 EMBEDDED; pipeline register MAINTAINED by R-VARCH)
Applies ToAll REF domains entering Phase 5 (Verification Execution) and Phase 6 (Independent Certification); all domains contributing to the Foundation Asset Registry
Position in BookPart E, Chapter 4 of 4

V3 established certification standards: the seven suites, the eight-dimension scorecard, the verdict categories, and the methodology observation obligation. V4 (Evidence and Audit Standards) establishes the evidence architecture — how seed data is canonicalized and registered, how verification artifacts are packaged for reproducibility, how certified implementations are frozen into the permanent foundation layer, and how the doctrine promotion pipeline governs the path from observation to ratified doctrine.


§1 — Canonical Seed Standard (VS-001)

Identifier: VS-001 | Version: 1.0 | Date: 2026-06-14 | Authority: R-VARCH (advisory) | Originating Program: CAP028E-B | Status: INSTITUTIONAL STANDARD — Advisory. Pending Primary Steward ratification (PP-008 candidate).

§1.1 — Purpose

Define the principles and requirements for canonical verification seed datasets across all VGSF REF domains. A canonical seed is the minimum sufficient data population required to execute the constitutional verification suite deterministically across any number of runs.

Without a canonical seed, verification runs are non-reproducible, test assertions become imprecise, and replay obligations cannot be satisfied.

§1.2 — Seed Doctrine

§1.2.1 — Definition

A canonical seed is:

  1. Deterministic — Every row has a fixed identity (UUID, string, coordinate) known before execution. No runtime-generated values.
  2. Comprehensive — Covers positive, negative, temporal, and adversarial scenarios.
  3. Traceable — Every row has a documented name, purpose, and constitutional justification.
  4. Replayable — Can be re-applied to a clean database to identically restore the baseline state.
  5. Self-verifying — Includes inline checks that confirm constraint apparatus is active during seeding.

§1.2.2 — Classification: UNIVERSAL

The canonical seed requirement applies to all VGSF constitutional domains. Every domain implementing Phase 5 verification SHALL define a canonical seed dataset as part of Phase 3 (Verification Architecture) deliverables.

§1.3 — Seed Category Requirements

§1.3.1 — Positive Seeds (UNIVERSAL)

Positive seeds establish the baseline state against which all tests operate. They must:

  • Cover all constitutional invariants with at least one positive example each
  • Represent domain-realistic data (not arbitrary placeholders)
  • Include records that span the domain's full data model

§1.3.2 — Negative Seeds (UNIVERSAL)

Negative seeds verify that constraint enforcement is active. They must:

  • Include at least one example that violates each critical constraint
  • Be implemented as inline verification guards (DO blocks or equivalent) that:
  • Attempt the violating INSERT/UPDATE
  • Assert that the expected exception is raised
  • Raise a seed failure exception if the constraint does NOT fire
  • Never remain in the database as committed rows (they exist only in the guard block)

Philosophy: A verification suite that starts from an unconstrained database may pass all negative tests for the wrong reason. Inline guards ensure the constraint apparatus is operational before any test executes.

§1.3.3 — Temporal Seeds (PRESUMPTIVE)

Applies to domains implementing bitemporal patterns (valid_from/valid_to + superseded_at).

Temporal seeds must:

  • Include records spanning non-overlapping time periods (for as-of query testing)
  • Include at least one open-ended record (valid_to = far future)
  • Include at least one closed/historical record (valid_to < now)
  • Provide at least three sequential periods for the same entity (enables temporal reconstruction tests)

§1.3.4 — Adversarial Seeds (PRESUMPTIVE)

Adversarial seeds probe boundary conditions:

  • Minimum valid periods (near-zero duration)
  • Maximum valid periods (near-far-future or infinity-adjacent)
  • Extreme coordinate or value ranges (for spatial/numeric domains)
  • Multi-type edge cases (e.g., MULTIPOLYGON vs. POINT where both are valid)

§1.4 — Determinism Requirements

§1.4.1 — Fixed Identifiers (UNIVERSAL)

All seed UUIDs MUST be fixed constants, not generated at runtime.

Rationale: Two-run replay comparison (see REPLAY_AUTOMATION_STANDARD.md / VS-002) requires identical database state between runs. Runtime UUID generation makes state comparison impractical.

§1.4.2 — UUID Namespace Convention (UNIVERSAL)

Domains SHALL define a UUID namespace for each seed category:

Pattern: {category-prefix}-{sequence}-{row-counter}

category-prefix: 8 hex digits identifying the domain entity type
sequence:        4-4-4 digit group identifying the seed object namespace
row-counter:     12 digits identifying the specific row

Examples:
  place rows:    aaaaaaaa-{seq}-{row}
  geometry rows: bbbbbbbb-{seq}-{row}
  address rows:  cccccccc-{seq}-{row}

Adversarial namespace: category-prefix-9001-9001-9001-...
Replay namespace:      category-prefix-REPL-...

Namespaces MUST NOT overlap. A scanning reader can identify the seed category from the UUID alone.

§1.4.3 — Value Constants (DOMAIN-CONDITIONAL)

For spatial domains: geographic coordinates SHALL be defined as named constants before the seed SQL.

For any domain using externally-meaningful string values (addresses, names): provide canonical examples from the domain's institutional context.

§1.5 — Integrity Guard Philosophy

Every seed script SHALL include inline guards that verify the constraint apparatus is active. These guards execute BEFORE seeding positive data that depends on those constraints.

Guard pattern:

DO $$
BEGIN
  BEGIN
    INSERT INTO <table> (<cols>) VALUES (<constraint-violating-values>);
    RAISE EXCEPTION 'SEED_GUARD_FAIL: <constraint-name> not enforced — seeding aborted';
  EXCEPTION WHEN <expected-error-class> THEN
    RAISE NOTICE 'SEED_GUARD_PASS: <constraint-name> active';
  END;
END $$;

If a guard fails (i.e., the violation is NOT raised), seeding MUST ABORT. A verification database with missing constraints will produce false-positive test results.

Minimum required guards:

  • One guard for each delete/truncate protection trigger
  • One guard for each critical check constraint (SRID, validity, temporal range)
  • One guard for each exclusion or uniqueness constraint

§1.6 — Replay Obligations

§1.6.1 — Seed Reset Protocol (UNIVERSAL)

Because constitutional TRUNCATE/DELETE triggers block those operations, seed reset CANNOT use TRUNCATE TABLE or DELETE FROM on constitutionally-protected tables.

Canonical reset approach: Drop and recreate the database (fresh DB). Apply DDL and seed identically.

# Canonical reset for constitutional verification database
psql -c "DROP DATABASE IF EXISTS <domain>_verification;"
psql -c "CREATE DATABASE <domain>_verification ..."
# Apply DDL, migrations, seeds

Alternative (partial reset): For domains where only some tables are protected, use DROP TABLE IF EXISTS <unprotected_table> CASCADE; CREATE TABLE ... for unprotected tables and document which tables cannot be cleared.

§1.6.2 — Seed Idempotency (PRESUMPTIVE)

Where possible, seed INSERTs SHOULD use ON CONFLICT (id) DO NOTHING. This allows safe re-application when the database is not fully reset.

§1.7 — Seed Application Order

Seed application order MUST respect FK constraints:

1. Registry tables (lookup / type tables — no FK dependencies)
2. Root entity tables (no FK dependencies)
3. Child entity tables (FK to root entities)
4. Association tables (FK to multiple parent tables)
5. Inline guards (verify constraints after seed)

Each domain's verification architecture (Phase 3) SHALL specify the seed application order for its schema.

§1.8 — Applicability Conditions

ConditionRequirement
Domain has constitutional TRUNCATE/DELETE triggersFresh-DB reset required; ON CONFLICT idempotency recommended
Domain is bitemporalTemporal seeds required; three-period sequence recommended
Domain uses spatial extensions (PostGIS)Coordinate constants required; SRID guard required
Domain implements exclusion constraintsNon-overlapping positive seed required; overlapping negative guard required
Domain implements RLSSeeds MUST be insertable by verification user (not superuser only)

Source: CANONICAL_SEED_STANDARD.md (VS-001) | 2026-06-14 | CAP028E-B


§2 — Foundation Seed Registry Standard (VS-005)

Identifier: VS-005 | Version: 1.0 | Date: 2026-06-14 | Authority: R-VARCH (advisory) | Originating Program: CAP028E-C | Status: INSTITUTIONAL STANDARD — Advisory | Classification: UNIVERSAL

§2.1 — Purpose

Define how certified REF domain seeds are registered in the Foundation Asset Registry, allocated UUID namespaces that prevent cross-domain conflicts, and made available for inheritance by downstream REF programs.

Without this standard, each REF domain independently invents UUID namespaces, potentially creating collisions in unified or shared verification environments.

§2.2 — Core Doctrine

§2.2.1 — Seed Registry Obligation

Every REF domain that reaches Phase 6 certification (CERTIFIED or CERTIFIED_WITH_OBSERVATIONS) SHALL register its canonical seed data in the Foundation Asset Registry at:

40_FOUNDATION_ASSETS/SEEDS/REF{NNN}/

Registration SHALL occur during Phase 6 certification closure (as part of the Phase 6 certifier's CONTINUITY-LAW-001 obligations), or at the earliest subsequent program that handles foundation asset promotion.

§2.2.2 — UUID Namespace Governance

The VGSF constitutional UUID namespace for seed data follows this convention:

{domain-prefix}{entity-category-prefix}-{sequence-block}-{row-counter}-{padding}

Where:

  • domain-prefix is unique per REF domain (2 hex characters, 0-padded to 8)
  • entity-category-prefix is unique within the domain per entity type
  • sequence-block is a 4-digit sequence number
  • row-counter is a 4-digit row counter within the sequence
  • padding is the remaining UUID v4 format fields

Allocation principle: Domain prefix blocks are allocated in the FOUNDATION_ASSET_REGISTRY.yaml UUID Namespace Allocation table. A domain may not use a prefix already allocated to another domain.

§2.2.3 — Namespace Allocation Authority

UUID namespace allocation is governed by the FOUNDATION_ASSET_REGISTRY.yaml file. R-VARCH programs update this registry. Conflicts are resolved by certification seniority: the domain certified first has priority.

§2.3 — Current UUID Namespace Allocations

Hex prefixREF DomainEntity categoryAllocation source
aaaaaaaaREF003PlacesCAP028E-A / VS-001
bbbbbbbbREF003GeometriesCAP028E-A / VS-001
ccccccccREF003AddressesCAP028E-A / VS-001
ddddddddREF001Identity entities (RESERVED)CAP028E-C (this standard)
eeeeeeeeREF002Relationships (RESERVED)CAP028E-C (this standard)
ffffffffREF002Governance types (RESERVED)CAP028E-C (this standard)
11111111REF004+AVAILABLE — next domain—
22222222REF004+AVAILABLE — next domain—
33333333REF004+AVAILABLE — next domain—
9001xxxxALLAdversarial / negative casesCAP028E-A / VS-001

Note: dddddddd, eeeeeeee, ffffffff are RESERVED for REF001/REF002. Actual seed SQL files with these prefixes are pending extraction from completed program evidence. The reservation prevents future collisions.

§2.4 — Seed Registration Format

§2.4.1 — File Location

40_FOUNDATION_ASSETS/SEEDS/REF{NNN}/{entity-category}_seeds_v{N}.sql

Example:

40_FOUNDATION_ASSETS/SEEDS/REF003/place_seeds_v1.sql
40_FOUNDATION_ASSETS/SEEDS/REF003/geometry_seeds_v1.sql
40_FOUNDATION_ASSETS/SEEDS/REF003/address_seeds_v1.sql

§2.4.2 — File Header Convention

Every seed SQL file in the Foundation Asset Registry SHALL begin with:

-- FOUNDATION_ASSET: SEED
-- Domain: REF{NNN}
-- Entity category: {entity_category}
-- Version: {N}
-- Source program: {CAPNNN}
-- UUID namespace prefix: {prefix}
-- Depends on: {list of upstream seed files, or NONE}
-- Last updated: {YYYY-MM-DD}
-- Update authority: R-VARCH program with Primary Steward authorization

§2.4.3 — Dependency Declaration

Seeds that depend on upstream domain seeds SHALL declare the dependency:

-- Depends on: 40_FOUNDATION_ASSETS/SEEDS/REF001/entity_seeds_v1.sql

This ensures seeds are applied in dependency order during environment assembly (see VS-008).

§2.5 — Seed Categories

Per VS-001 (CANONICAL_SEED_STANDARD), the following categories apply to foundation seeds:

CategoryClassificationFoundation Asset?Notes
Positive seedsUNIVERSALYES — requiredCore entity rows for positive-case tests
Negative seedsUNIVERSALDOMAIN-CONDITIONALInline DO blocks may be domain-specific
Temporal seedsPRESUMPTIVEYES — where applicableBitemporal test sequences
Adversarial seedsPRESUMPTIVEYES — where applicableEdge cases and boundary conditions

Foundation seed files SHALL include positive seeds and temporal seeds. Negative seed DO blocks MAY be included but SHALL be clearly marked as domain-specific if they contain non-portable SQL.

§2.6 — Inheritance Protocol

When a downstream REF domain (e.g., REF004) needs to reference upstream entities (e.g., REF001 entity_ids, REF003 place_ids) in its own seeds:

  1. The downstream Phase 3 R-VARCH reads FOUNDATION_ASSET_REGISTRY.yaml to identify available upstream seeds
  2. The downstream seed file declares the dependency in its header
  3. The downstream environment assembly (per VS-008) applies upstream seeds before downstream seeds
  4. The downstream seed file uses the upstream domain's UUID constants — it does NOT generate new UUIDs for upstream entities

Invariant: A downstream domain seed file NEVER defines new rows in an upstream domain's tables. It only REFERENCES upstream domain entities by their canonical UUIDs.

§2.7 — Versioning and Amendment

Seed files are versioned. When seeds require amendment:

  1. Constitute a REF domain lifecycle amendment program with R-IMPL authority
  2. The amendment program updates the seed file and increments the version number
  3. Update FOUNDATION_ASSET_REGISTRY.yaml with the new version
  4. Maintain the old version (with _deprecated suffix) until all consumers confirm migration

Source: FOUNDATION_SEED_REGISTRY_STANDARD.md (VS-005) | 2026-06-14 | CAP028E-C — R-VARCH


§3 — Verification Artifact Packaging Standard (VS-009)

Identifier: VS-009 | Version: 1.0 | Date: 2026-06-14 | Authority: R-VARCH (advisory) | Originating Program: CAP028E-C | Status: INSTITUTIONAL STANDARD — Advisory | Classification: UNIVERSAL

§3.1 — Purpose

Define the minimum artifact set that every Phase 5 (Verification Execution) and Phase 6 (Independent Certification) program must produce, how artifacts are structured and named, and how the resulting verification package enables future replay, audit, and certification evidence review.

Without this standard, verification evidence is structured ad-hoc per program, making cross-program comparison and future replay difficult.

§3.2 — Core Doctrine: The Verification Package

A Verification Package is the complete set of evidence artifacts produced by a Phase 5 or Phase 6 program, structured so that:

  1. A future reviewer can reconstruct what was done without reading program narrative
  2. A future R-VEXEC can replay the verification by following the package
  3. An R-CERT certifier can assess compliance without running tests themselves
  4. The package contributes reusable components to the Foundation Asset Registry

§3.3 — Minimum Artifact Set — Phase 5 (R-VEXEC)

§3.3.1 — Mandatory Phase 5 Artifacts

ArtifactFile name patternContent
Implementation referenceimplementation_reference.mdGit commit SHA; service version; DDL version; dependency matrix
Environment assembly recordenvironment_assembly.mdProtocol used; DDL applied; migrations applied; extension setup
Environment snapshotenvironment_snapshot.mdHealth check output; trigger inventory; constraint inventory; seed counts
Attack matrix{DOMAIN}_ATTACK_MATRIX.mdAll test cases with category, input, expected result, actual result, PASS/FAIL
Seed data file{DOMAIN}_SEED_DATA.sqlCanonical seed SQL executed at verification start
Mutation preparation{DOMAIN}_MUTATION_PREPARATION.mdAll mutations with apply SQL, detection assertion, revert SQL
Run 1 test resultsrun_1_test_results.mdTest-by-test results table; pass count; fail count; verdict
Run 2 test resultsrun_2_test_results.mdSame format; must match Run 1 for determinism
Replay comparisonreplay_comparison.mdRun 1 vs Run 2 diff; verdict (DETERMINISTIC or ORDERING_ARTIFACT / STATE_LEAK)
Mutation gate resultsmutation_gate_results.mdPer-mutation: applied, detected, reverted, PASS/FAIL
Executive verdictEXECUTIVE_VERDICT.mdVerdict; gate results table; findings summary; authorization for next phase
READMEREADME.mdProgram summary; deliverable table; authorized next actions

§3.3.2 — Conditional Phase 5 Artifacts

ArtifactConditionContent
PostGIS DDL workaroundsDomain uses PostGISWorkaround SQL applied; before/after type verification
RLS mutation notesMC-REF003-011 patternNon-superuser role used; policy detection evidence
Corrective implementation logPhase 5a-IMPL triggeredWhat was corrected; by whom; authority
Re-verification logPhase 5a-VERIFY triggeredWhat was re-verified; by whom; results

§3.4 — Minimum Artifact Set — Phase 6 (R-CERT)

§3.4.1 — Mandatory Phase 6 Artifacts

ArtifactFile name patternContent
Certification scopecertification_scope.mdInput corpus (Phase 0–5 programs); role separation audit; evidence chain completeness
Constitutional invariant matrixconstitutional_invariant_matrix.mdAll G-series invariants; how each is evidenced; PASS/FAIL
Scorecardcertification_scorecard.mdComposite score; dimension scores; methodology compliance
Observations registercertification_observations.mdAll observations discovered during certification; classification; recommended actions
Methodology evaluationmethodology_evaluation.mdHow this lifecycle contributes to methodology evolution; candidates for OBS-A-XXX
Foundation asset contribution recordfoundation_asset_contributions.mdWhat assets are being promoted to Foundation Asset Registry by this certification
Executive verdictEXECUTIVE_VERDICT.mdVerdict; gate results; conditions (if any); CAP027-series recommendations
READMEREADME.mdProgram summary; deliverable table

§3.5 — Naming Conventions

§3.5.1 — Domain Identifier

{DOMAIN} in file names is always the REF identifier: REF001, REF002, REF003, etc.

§3.5.2 — Run Numbering

Replay runs are numbered run_1, run_2 (and run_N for additional runs if required by corrective cycle).

§3.5.3 — Date Stamping

Artifact files SHOULD carry a header line with the date they were produced:

**Date:** 2026-06-14

§3.6 — JWT Fixture Standard

§3.6.1 — JWT Fixture File Format

JWT fixture files in 40_FOUNDATION_ASSETS/JWT_FIXTURES/ SHALL conform to:

# JWT_FIXTURES/REF{NNN}/fixture_env.sh
# Foundation JWT fixtures for REF{NNN} verification
# Generated by: {CAPNNN}
# Entity_IDs: {list of entity_ids in these tokens}

export VGSF_JWT_ENTITY_001="eyJh..."   # entity_id: aaaaaaaa-0001-...
export VGSF_JWT_ENTITY_002="eyJh..."   # entity_id: aaaaaaaa-0002-...
export VGSF_JWT_EXPIRED="eyJh..."      # expired token (for negative tests)
export VGSF_JWT_MALFORMED="not.a.jwt"  # malformed token (for negative tests)

§3.6.2 — JWT Fixture Generation

Fixture tokens SHALL be generated using the VGSF constitutional JWT signing configuration. They are NOT stored as plaintext secrets in the foundation registry — the file stores signed tokens (JWTs), not private keys.

§3.7 — Template Location

Verification artifact templates are available in:

05_MEMORY/TEMPLATES/VERIFICATION/
  verification_package_template/   — Full Phase 5 package structure
  seed_template/                   — Seed SQL file template with headers
  replay_template/                 — Replay comparison document template
  mutation_template/               — Mutation preparation document template
  integration_template/            — Integration test package template

See 05_MEMORY/TEMPLATES/VERIFICATION/TEMPLATE_README.md for usage.

§3.8 — Certification Evidence Requirements

The artifact package produced by Phase 5 SHALL be sufficient for an R-CERT certifier to:

  1. Verify that all constitutional invariants were tested (from attack matrix)
  2. Verify that all P1 BLOCKERs were tested (from attack matrix, filtered by gate classification)
  3. Verify that replay was deterministic (from replay comparison)
  4. Verify that all mutations were detected (from mutation gate results)
  5. Verify environment integrity (from environment snapshot)
  6. Verify implementation reference (from implementation reference artifact)

If any of these six items cannot be satisfied from the artifact package, the Phase 5 package is INCOMPLETE and does not authorize Phase 6.

§3.9 — Foundation Asset Contribution from Phase 5

Phase 5 programs contribute to the Foundation Asset Registry after Phase 6 certification:

Phase 5 artifactFoundation Asset contribution
{DOMAIN}_SEED_DATA.sql→ 40_FOUNDATION_ASSETS/SEEDS/REF{NNN}/ (after certification)
{DOMAIN}_MUTATION_PREPARATION.md→ 40_FOUNDATION_ASSETS/MUTATIONS/REF{NNN}/ (after certification)
Replay sequences→ 40_FOUNDATION_ASSETS/REPLAY_BASELINES/REF{NNN}/ (after certification)
JWT fixtures→ 40_FOUNDATION_ASSETS/JWT_FIXTURES/REF{NNN}/ (after certification)

Contribution happens AFTER Phase 6 certification, not before. Phase 5 evidence remains in active/ until archival.

Source: VERIFICATION_ARTIFACT_PACKAGING_STANDARD.md (VS-009) | 2026-06-14 | CAP028E-C — R-VARCH


§4 — REF Freeze Promotion Standard (VS-006)

Identifier: VS-006 | Version: 1.1 | Date: 2026-06-15 | Authority: R-VARCH (advisory) | Originating Program: CAP028E-C | Status: INSTITUTIONAL STANDARD — Advisory | Classification: UNIVERSAL

§4.1 — Purpose

Define what happens when a REF domain reaches Phase 6 certification. Specifically: which assets become formally frozen and promoted to the permanent foundation layer, how the freeze is recorded in the REF_FREEZE_REGISTRY.yaml, and what obligations the certifying program carries for institutional asset promotion.

Without this standard, each certified REF domain's assets remain accessible only through its completed program folder — useful historically but not accessible to downstream programs as structured inputs.

§4.2 — Core Doctrine: REF Freeze Promotion

§4.2.1 — Definition

A REF Freeze is the institutional act of formally registering a certified REF domain's constitutional assets into the permanent foundation layer (40_FOUNDATION_ASSETS/ and 05_MEMORY/REGISTRIES/REF_FREEZE_REGISTRY.yaml) so that those assets are:

  • Machine-discoverable without reading completed program evidence
  • Available as structured inputs to downstream programs
  • Protected from unauthorized modification (freeze immutability)
  • Traceable to their originating certification evidence

§4.2.2 — Trigger Condition

A REF Freeze is triggered when a Phase 6 Independent Certification program produces a verdict of:

CERTIFIED
  or
CERTIFIED_WITH_OBSERVATIONS

The certifying program (R-CERT authority) SHALL initiate freeze promotion as part of its closure obligations. If the certifying program does not complete freeze promotion, a subsequent R-VARCH program SHALL do so.

§4.2.3 — Freeze Immutability

Frozen assets are immutable in the same sense as completed programs. Amendments require:

  1. Primary Steward authorization
  2. A new lifecycle amendment program with appropriate authority
  3. A version increment in the FOUNDATION_ASSET_REGISTRY.yaml and REF_FREEZE_REGISTRY.yaml entries

§4.3 — Promotable Asset Categories

§4.3.1 — Mandatory Promotions (every certified REF domain)

Asset categorySourceDestination
Canonical seed SQLactive/{phase4-program}/ or active/{schema-verification-program}/40_FOUNDATION_ASSETS/SEEDS/REF{NNN}/
Mutation catalogueactive/{verification-architecture-program}/40_FOUNDATION_ASSETS/MUTATIONS/REF{NNN}/
Constitutional DDL reference02_DOMAIN/REF-{NNN}/03_engineering/ddl/Registered in FOUNDATION_ASSET_REGISTRY.yaml (path reference; not copied)
REF_FREEZE_REGISTRY.yaml entryPhase 6 program verdict05_MEMORY/REGISTRIES/REF_FREEZE_REGISTRY.yaml

§4.3.2 — Conditional Promotions (where applicable)

Asset categoryConditionDestination
JWT fixture templatesR-VEXEC generates fixtures during Phase 540_FOUNDATION_ASSETS/JWT_FIXTURES/REF{NNN}/
Replay sequencesPhase 5 defines replay sequences40_FOUNDATION_ASSETS/REPLAY_BASELINES/REF{NNN}/
Event outbox examplesDomain publishes integration events40_FOUNDATION_ASSETS/EVENTS/REF{NNN}/
Integration SQL viewsCross-domain schema views used in Phase 540_FOUNDATION_ASSETS/SQL/REF{NNN}/

§4.3.3 — Never Promoted

Asset categoryReason
Phase 4 implementation codeService code lives in 02_DOMAIN/; not a foundation asset
Phase 5 test codeDomain-specific test runner code is domain-specific evidence
Certification scorecardsRemain in completed program evidence
Observations and findingsRegistered in PROMOTION_PIPELINE_REGISTER.md, not foundation assets

§4.4 — REF_FREEZE_REGISTRY.yaml Schema

The freeze registry file SHALL conform to this schema:

# REF Freeze Registry
# Path: 05_MEMORY/REGISTRIES/REF_FREEZE_REGISTRY.yaml
# Maintained by: R-VARCH programs; Primary Steward authorization for amendments
# Version: {N}

registry_version: "1.0"
last_updated: "{YYYY-MM-DD}"
maintained_by: "{program-ID}"

entries:
  - ref_identifier: "REF{NNN}"
    domain_name: "{Human-readable domain name}"
    certification_status: "{CERTIFIED | CERTIFIED_WITH_OBSERVATIONS | IN_PROGRESS | NOT_STARTED}"
    certification_verdict: "{verdict string}"
    certifying_program: "{CAPNNN}"
    certification_date: "{YYYY-MM-DD}"
    freeze_version: "1.0"
    freeze_authority: "{CAPNNN}"
    freeze_date: "{YYYY-MM-DD}"

    promoted_standards:
      - identifier: "{VS-NNN or AS-NNN}"
        file: "{relative path from 05_MEMORY/STANDARDS/}"
        description: "{one-line purpose}"

    contributed_foundation_assets:
      - asset_type: "{SEED | MUTATION | FIXTURE | REPLAY_BASELINE | EVENT | SQL}"
        path: "{relative path from 40_FOUNDATION_ASSETS/}"
        entity_category: "{entity type}"
        uuid_prefix: "{hex prefix}"
        version: "{N}"
        status: "{ACTIVE | DEPRECATED | PENDING}"

    downstream_dependencies:
      - ref_identifier: "{REF domain that depends on this domain}"
        dependency_type: "{SCHEMA_FK | SERVICE_JWT | EVENT_CORRELATION}"
        description: "{what the dependency is}"

    amendment_history:
      - amendment_id: "{AMD-REF{NNN}-{YYYY}-{NNN}}"
        date: "{YYYY-MM-DD}"
        program: "{CAPNNN}"
        description: "{what changed}"
        freeze_version_after: "{N}"

§4.5 — Freeze Promotion Procedure

When a Phase 6 certification program closes with a CERTIFIED verdict:

Step 1 — Identify promotable assets:
Read the Phase 3 verification architecture program and Phase 4 implementation program to identify all canonical seed files, mutation catalogues, and replay sequences.

Step 2 — Copy assets to Foundation Asset Registry:
Copy (do not move) seed SQL to 40_FOUNDATION_ASSETS/SEEDS/REF{NNN}/. Add file headers per VS-005.

Step 3 — Register UUID namespace allocations:
Update the UUID namespace allocation table in FOUNDATION_ASSET_REGISTRY.yaml with the domain's prefix assignments.

Step 4 — Create REF_FREEZE_REGISTRY.yaml entry:
Add a complete entry per the schema in §4.4. All fields are mandatory.

Step 5 — Update FOUNDATION_ASSET_REGISTRY.yaml:
Add entries for all promoted assets.

Step 6 — Update downstream dependency records:
For each domain that references this domain (e.g., REF004 references REF003 place_ids), update that domain's downstream_dependencies when known.

Step 7 — Execute Institutional Self-Sufficiency verification:
Execute DS-010 §§2–6 within this Freeze Promotion program. Produce DOMAIN_CONSTITUTION.md and associated constitutional vessels (DS-010 §2a–f). Execute the self-sufficiency simulation (3 scenarios; minimum 17 tests) and audit (13 SC-ISS criteria; DS-010 §3a–b). Obtain an INSTITUTIONALLY_SELF_SUFFICIENT verdict. Update REF_FREEZE_REGISTRY.yaml with iss_program, iss_verdict, and iss_date fields (DS-010 §3c). A Freeze Promotion terminal verdict SHALL NOT be issued unless all 13 SC-ISS PASS. See DS-010 for the authoritative standard.

§4.6 — Current Freeze Status

REF DomainCertificationFreeze Status
REF001FULLY_CERTIFIED (90/100) — Stage 0D modelPENDING freeze promotion — assets exist in completed programs; not yet in Foundation Asset Registry
REF002CERTIFIED_WITH_OBSERVATIONS (89%)PENDING freeze promotion — assets exist in completed programs; not yet in Foundation Asset Registry
REF003Phase 5 AUTHORIZEDFREEZE_PENDING Phase 6 certification (CAP028G)

Note: REF001 certification was executed before V2.0 methodology was ratified (Stage 0D model, not Phase 6 model). REF001 freeze promotion is a best-effort exercise using the assets available from CAP023C and CAP025G evidence.

§4.7 — Amendment History

VersionDateProgramChange
1.02026-06-14CAP028E-C (R-VARCH)Initial standard
1.12026-06-15CAP034A (R-STEWARD)Added Step 7 (DS-010 ISS gate); added DS-010 to related standards

Source: REF_FREEZE_PROMOTION_STANDARD.md (VS-006) | v1.1 2026-06-15 | CAP034A amendment | Original: CAP028E-C — R-VARCH


§5 — Doctrine Promotion Pipeline Register

Identifier: PROMOTION_PIPELINE_REGISTER | Version: 1.0 | Date: 2026-06-14 | Maintained by: R-VARCH (per CAP028E-B); updates require R-VARCH or Primary Steward authority | Purpose: Track all methodology doctrine candidates from observation through to promoted doctrine or rejection.

§5.1 — Purpose

This register prevents doctrine candidates from being lost in individual program folders. Every observation classified as a potential doctrine candidate — whether UNIVERSAL, PRESUMPTIVE, or DOMAIN-CONDITIONAL — is registered here with its current status and evidence count.

The register is the canonical source of truth for the methodology promotion pipeline.

§5.2 — Statuses

StatusDefinition
OBSERVEDSingle-domain observation; documented in a program; not yet enough evidence for promotion consideration
UNDER_REVIEWTwo or more domain instances; Primary Steward or R-VARCH reviewing for promotion
EMBEDDEDWritten into an institutional standard (VS-XXX or AS-XXX) as advisory guidance; pending ratification
FORWARDEDFormally forwarded to Primary Steward for CAP027-series consideration
PROMOTEDRatified by Primary Steward and incorporated into Methodology V2.x or later
REJECTEDEvaluated and determined not suitable for universal doctrine
SUPERSEDEDAn earlier version of this candidate was promoted; this entry has been replaced

§5.3 — Promotion Algorithm

OBSERVE: Document in lifecycle program deliverable
↓
CLASSIFY: UNIVERSAL | PRESUMPTIVE | DOMAIN-CONDITIONAL
↓
REGISTER: Add entry to this register with status OBSERVED
↓
CORROBORATE: Collect evidence from additional REF domains
↓
EMBED: Write into institutional standard (VS-XXX / AS-XXX) — status → EMBEDDED
↓
FORWARD: Primary Steward notified — status → FORWARDED
↓
RATIFY: Primary Steward constitutes CAP027-series program
↓
PROMOTE: Doctrine incorporated into Methodology V2.x — status → PROMOTED

Evidence threshold guidance:

  • UNIVERSAL candidates: typically require 3+ domain instances before FORWARDED
  • PRESUMPTIVE candidates: typically require 2+ domain instances before FORWARDED
  • DOMAIN-CONDITIONAL: 1 domain instance sufficient if domain class is well-defined
  • Exception: Two-domain evidence with strong architectural reasoning may advance earlier (see OBS-A-002)

§5.4 — Pipeline Register

OBS-A-001 — Interstitial Schema Verification Pattern

FieldValue
Observation IDOBS-A-001
Candidate IDPP-008 candidate
Source ProgramCAP028E-A
ClassificationUNIVERSAL CANDIDATE
SummaryExecuting an interstitial schema verification program (R-VEXEC) between Phase 4 (Implementation) and Phase 5 (Application Verification) isolates schema defects from service defects, produces reusable artifacts, and prevents confusing mixed-layer failures
Evidence count1 (REF003 — CAP028E-R1)
Corroboration neededYes — REF004+ domains
StatusOBSERVED
Embedded in standardNone yet
Promotion statusNot yet forwarded
Trigger for advancementREF004 executes an interstitial schema verification and confirms the pattern's value

OBS-A-002 — Constitutional TRUNCATE Protection Replay Protocol

FieldValue
Observation IDOBS-A-002
Candidate IDUP-008 candidate
Source ProgramCAP028E-A
ClassificationUNIVERSAL
SummaryAll domains implementing constitutional TRUNCATE protection (trg_0_*_prevent_truncate) are incompatible with standard test teardown patterns (TRUNCATE TABLE). Verification programs must explicitly define an environment reset strategy: savepoint-per-test within a run; fresh-DB per replay run
Evidence count2 (REF002 — OBS-L-005/EX-010; REF003 — FINDING-R1-002)
Corroboration neededNo — two-domain evidence; architectural reasoning is strong
StatusEMBEDDED + FORWARDED
Embedded in standardVS-002 (REPLAY_AUTOMATION_STANDARD.md §4)
Promotion statusForwarded to Primary Steward (CAP028E-A EXECUTIVE_VERDICT.md)
Trigger for advancementPrimary Steward constitutes CAP027E or equivalent
NotesAll V2.0 domains implement TRUNCATE triggers → universal scope confirmed

OBS-A-003 — Mutation Gate Transactionality Classification

FieldValue
Observation IDOBS-A-003
Candidate IDPP-009 candidate
Source ProgramCAP028E-A
ClassificationUNIVERSAL CANDIDATE
SummaryMutations split into Class A (trigger-based, transactional) and Class B (constraint-based, non-transactional). Class B requires fresh-DB clone or careful cleanup strategies incompatible with constitutional DELETE protection. Phase 3 verification architecture SHOULD classify mutations before Phase 5
Evidence count1 (REF003)
Corroboration neededYes — REF004+ domains
StatusEMBEDDED
Embedded in standardVS-003 (MUTATION_AUTOMATION_STANDARD.md §4)
Promotion statusNot yet forwarded
Trigger for advancementREF004 confirms the Class A/B classification pattern and value

OBS-A-004 — PostGIS Schema Isolation as Deployment Prerequisite

FieldValue
Observation IDOBS-A-004
Candidate IDDP-009 candidate
Source ProgramCAP028E-A
ClassificationDOMAIN-CONDITIONAL (PostGIS domains)
SummaryPostGIS must be installed in a dedicated schema (e.g., postgis_ext) to avoid the geometry type colliding with an application table named geometry. Not documented in constitutional DDL; discovered only at verification time. Phase 3 for PostGIS domains must include a PostGIS schema isolation check
Evidence count1 (REF003 — FINDING-R1-001)
Corroboration neededNo for domain-conditional — scope is well-defined
StatusEMBEDDED
Embedded in standardVS-004 (VERIFICATION_ENVIRONMENT_STANDARD.md §5)
Promotion statusNot yet forwarded; pending DDL amendment
NotesWill be partially resolved when geometry→place_geometry DDL amendment is applied

OBS-A-005 — DDL Table/Extension Type Name Collision Hazard

FieldValue
Observation IDOBS-A-005
Candidate IDDP-010 candidate
Source ProgramCAP028E-A
ClassificationDOMAIN-CONDITIONAL (PostGIS domains; any extension-heavy domains)
SummaryPostgreSQL creates composite types for each table at creation time. If a table name matches an extension-provided type name, the composite type shadows the extension type in search_path for subsequently created columns. This is silent at DDL application time but causes runtime trigger failures. Constitutional DDL MUST NOT use table names matching extension type names
Evidence count1 (REF003 — FINDING-R1-003: geometry_history.geom resolved to wrong type)
Corroboration neededNo for domain-conditional PostGIS scope
StatusOBSERVED
Embedded in standardPartially in VS-004 §5
Promotion statusNot yet forwarded; DDL amendment in progress
NotesRoot cause: geometry table name collides with PostGIS geometry type. Resolved by renaming table to place_geometry (DDL amendment program pending)

OBS-A-006 — API Surface Temporal Value Convention

FieldValue
Observation IDOBS-A-006
Candidate IDPP-010 candidate
Source ProgramCAP028E-A
ClassificationUNIVERSAL CANDIDATE (all bitemporal domains)
SummaryService specifications for bitemporal domains MUST explicitly state how "open-ended" temporal periods are represented in the API surface. Options: ISO-8601 far-future date, null, or "infinity" string. The choice must be consistent across all temporal endpoints and documented in Phase 1
Evidence count2 (REF002 — asyncpg infinity handling; REF003 — OBS-E-001 ISO-8601 only)
Corroboration neededNo — two-domain evidence with architectural reasoning
StatusFORWARDED
Embedded in standardReferenced in VS-002 §5 (determinism); awaiting dedicated standard VS-005 or Phase 1 guidance update
Promotion statusForwarded to Primary Steward (CAP028E-A EXECUTIVE_VERDICT.md)
Trigger for advancementPrimary Steward constitutes CAP027E or equivalent
NotesCandidate for addition to Phase 1 specification requirements in V2.1

OBS-A-007 — asyncpg Infinity Timestamp Serialization

FieldValue
Observation IDOBS-A-007
Candidate IDDP-011 candidate
Source ProgramCAP028E-A
ClassificationDOMAIN-CONDITIONAL (Python/asyncpg stack)
Summaryasyncpg serializes PostgreSQL timestamptz 'infinity' in a Python-specific way. Verification programs for Python/asyncpg services MUST include an explicit infinity timestamp serialization test to verify the API surface represents the value correctly
Evidence count2 (REF002 asyncpg observations; REF003 OBS-E-002)
Corroboration neededNo for domain-conditional Python/asyncpg scope
StatusOBSERVED
Embedded in standardVS-002 §5.1 (mentioned as mitigation)
Promotion statusNot yet forwarded
Trigger for advancementConfirmed by REF004 Python/asyncpg service

OBS-A-008 — Positive Test Design Review

FieldValue
Observation IDOBS-A-008
Candidate IDPP-011 candidate
Source ProgramCAP028E-A
ClassificationUNIVERSAL CANDIDATE
SummaryTest cases expecting ACCEPTED/200 behavior can be incorrectly designed — the test inputs may actually violate constraints, causing the test to pass for the wrong reason (constraint blocks the input, interpreted as "nothing went wrong"). Phase 3 should include a positive test design review step that explicitly confirms all positive-case inputs are genuinely valid
Evidence count1 (REF003 — G2 attack test initially used overlapping period incorrectly)
Corroboration neededYes — REF004+
StatusOBSERVED
Embedded in standardNone
Promotion statusNot yet forwarded
Trigger for advancementREF004 or later domain encounters a similar test design error during verification

OBS-A-009 — Foundation Stack Integration Test Gap

FieldValue
Observation IDOBS-A-009
Candidate IDPP-012 candidate / lifecycle phase proposal
Source ProgramCAP028E-A
ClassificationUNIVERSAL CANDIDATE
SummaryAfter two or more foundational REF domains complete individual certification, cross-domain risks remain unverified: JWT/entity_id/RLS consistency across services, event UUID correlation, platform middleware correctness. A Foundation Stack Integration Test Program is recommended after REF003 certification (tentative CAP029A)
Evidence count0 (architectural reasoning only; no implementation failures observed yet)
Corroboration neededYes — needs Foundation Stack Integration program evidence
StatusOBSERVED
Embedded in standardAS-001 (FOUNDATION_STACK_STANDARD.md)
Promotion statusNot yet forwarded
Trigger for advancementFoundation Stack Integration Program constituted and executes; findings reported

§5.5 — Verification Standards Status

Standards produced under R-VARCH authority (CAP028E-B). Not ratified doctrine.

StandardFileRelated ObservationsRatification Status
VS-001VERIFICATION/CANONICAL_SEED_STANDARD.mdOBS-A-001PENDING (PP-008 candidate)
VS-002VERIFICATION/REPLAY_AUTOMATION_STANDARD.mdOBS-A-002FORWARDED (UP-008 candidate)
VS-003VERIFICATION/MUTATION_AUTOMATION_STANDARD.mdOBS-A-003PENDING (PP-009 candidate)
VS-004VERIFICATION/VERIFICATION_ENVIRONMENT_STANDARD.mdOBS-A-004, OBS-A-005PENDING
AS-001ARCHITECTURE/FOUNDATION_STACK_STANDARD.mdOBS-A-009PENDING

§5.6 — Updating This Register

This register MUST be updated when:

  • A new observation is documented in any lifecycle program
  • A new domain instance provides corroboration for an existing observation
  • Primary Steward forwards an observation to a CAP027-series program
  • A CAP027-series program ratifies or rejects a candidate
  • An embedded standard is superseded by ratified doctrine

Who may update: R-VARCH (for new entries and status changes); Primary Steward (for PROMOTED / REJECTED final verdicts).

Source: PROMOTION_PIPELINE_REGISTER.md | 2026-06-14 | CAP028E-B — R-VARCH


§6 — The Immutability Chain

The five standards in this chapter constitute an unbroken immutability chain from seed data to canonical institutional status. Each link enforces immutability on the output of the prior link, creating a chain of custody that makes VGSF's constitutional evidence independently auditable at every stage.

VS-001 Canonical Seed Standard
  → Deterministic seed data with fixed UUIDs and integrity guards
    ↓
VS-008 Environment Assembly Standard
  → Seeds applied in dependency order; health checks confirmed
    ↓
VS-002 / VS-003 Replay + Mutation Standards
  → Two-run deterministic execution; 0 NOT_DETECTED mutations
    ↓
VS-009 Artifact Packaging Standard
  → 12-artifact Phase 5 package + 8-artifact Phase 6 package
    ↓
Phase 6 Certification (V3 Chapter)
  → CERTIFIED or CERTIFIED_WITH_OBSERVATIONS verdict
    ↓
VS-006 Freeze Promotion Standard
  → Assets registered in Foundation Asset Registry; REF_FREEZE_REGISTRY.yaml updated
    ↓
VS-005 Foundation Seed Registry Standard
  → Seeds available as structured inputs to downstream domain programs
    ↓
PROMOTION_PIPELINE_REGISTER
  → Methodology observations enter pipeline for future ratification

Once a domain is certified and frozen, its implementation is immutable. Changes require a new corrective cycle, a new lifecycle amendment program, and a version increment in the freeze registry. The chain is constitutional, not bureaucratic — it exists to preserve the trustworthiness of the evidence that makes certification meaningful.


Constitutional Colophon — V4
This chapter establishes the complete evidence and audit architecture: the Canonical Seed Standard's five-property seed doctrine (deterministic, comprehensive, traceable, replayable, self-verifying) with UUID namespace governance; the Foundation Seed Registry's inheritance protocol and file header conventions that prevent cross-domain UUID collisions; the Verification Artifact Packaging Standard's mandatory twelve-artifact Phase 5 package and eight-artifact Phase 6 package enabling future replay without re-execution; the REF Freeze Promotion Standard's seven-step procedure and REF\_FREEZE\_REGISTRY.yaml schema that register certified assets as permanently available institutional inputs; and the Promotion Pipeline Register's nine observations (OBS-A-001 through OBS-A-009) that constitute the current evidence base for methodology evolution.
It operates within Part E under the governing principle that architectural elegance without independently verifiable evidence is constitutionally insufficient — V4 is where "independently verified" becomes "permanently preserved and institutionally available," closing the constitutional lifecycle from specification to certified canonical status.
Part E having established the complete verification and certification architecture — from doctrine through technical standards through independent certification through evidence preservation — Book II now closes. The Appendices that follow provide the reference indexes through which this architecture can be navigated: the domain registry (Appendix A), the certified DDL catalog (Appendix B), the constitutional program index covering all ERA programs (Appendix C), and the open steward decisions that mark the continuing edge of constitutional work (Appendix D).


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.