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
| Field | Value |
|---|---|
| Constitutional Series | V — Verification and Certification |
| Primary Sources | CANONICAL_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 Status | ADVISORY institutional standards (VS-001 PP-008 candidate; VS-005, VS-006 v1.1, VS-009 EMBEDDED; pipeline register MAINTAINED by R-VARCH) |
| Applies To | All REF domains entering Phase 5 (Verification Execution) and Phase 6 (Independent Certification); all domains contributing to the Foundation Asset Registry |
| Position in Book | Part 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:
- Deterministic — Every row has a fixed identity (UUID, string, coordinate) known before execution. No runtime-generated values.
- Comprehensive — Covers positive, negative, temporal, and adversarial scenarios.
- Traceable — Every row has a documented name, purpose, and constitutional justification.
- Replayable — Can be re-applied to a clean database to identically restore the baseline state.
- 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, seedsAlternative (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
| Condition | Requirement |
|---|---|
| Domain has constitutional TRUNCATE/DELETE triggers | Fresh-DB reset required; ON CONFLICT idempotency recommended |
| Domain is bitemporal | Temporal seeds required; three-period sequence recommended |
| Domain uses spatial extensions (PostGIS) | Coordinate constants required; SRID guard required |
| Domain implements exclusion constraints | Non-overlapping positive seed required; overlapping negative guard required |
| Domain implements RLS | Seeds 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-prefixis unique per REF domain (2 hex characters, 0-padded to 8)entity-category-prefixis unique within the domain per entity typesequence-blockis a 4-digit sequence numberrow-counteris a 4-digit row counter within the sequencepaddingis 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 prefix | REF Domain | Entity category | Allocation source |
|---|---|---|---|
aaaaaaaa | REF003 | Places | CAP028E-A / VS-001 |
bbbbbbbb | REF003 | Geometries | CAP028E-A / VS-001 |
cccccccc | REF003 | Addresses | CAP028E-A / VS-001 |
dddddddd | REF001 | Identity entities (RESERVED) | CAP028E-C (this standard) |
eeeeeeee | REF002 | Relationships (RESERVED) | CAP028E-C (this standard) |
ffffffff | REF002 | Governance types (RESERVED) | CAP028E-C (this standard) |
11111111 | REF004+ | AVAILABLE — next domain | — |
22222222 | REF004+ | AVAILABLE — next domain | — |
33333333 | REF004+ | AVAILABLE — next domain | — |
9001xxxx | ALL | Adversarial / negative cases | CAP028E-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}.sqlExample:
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.sqlThis 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:
| Category | Classification | Foundation Asset? | Notes |
|---|---|---|---|
| Positive seeds | UNIVERSAL | YES — required | Core entity rows for positive-case tests |
| Negative seeds | UNIVERSAL | DOMAIN-CONDITIONAL | Inline DO blocks may be domain-specific |
| Temporal seeds | PRESUMPTIVE | YES — where applicable | Bitemporal test sequences |
| Adversarial seeds | PRESUMPTIVE | YES — where applicable | Edge 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:
- The downstream Phase 3 R-VARCH reads FOUNDATION_ASSET_REGISTRY.yaml to identify available upstream seeds
- The downstream seed file declares the dependency in its header
- The downstream environment assembly (per VS-008) applies upstream seeds before downstream seeds
- 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:
- Constitute a REF domain lifecycle amendment program with R-IMPL authority
- The amendment program updates the seed file and increments the version number
- Update FOUNDATION_ASSET_REGISTRY.yaml with the new version
- Maintain the old version (with
_deprecatedsuffix) 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:
- A future reviewer can reconstruct what was done without reading program narrative
- A future R-VEXEC can replay the verification by following the package
- An R-CERT certifier can assess compliance without running tests themselves
- 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
| Artifact | File name pattern | Content |
|---|---|---|
| Implementation reference | implementation_reference.md | Git commit SHA; service version; DDL version; dependency matrix |
| Environment assembly record | environment_assembly.md | Protocol used; DDL applied; migrations applied; extension setup |
| Environment snapshot | environment_snapshot.md | Health check output; trigger inventory; constraint inventory; seed counts |
| Attack matrix | {DOMAIN}_ATTACK_MATRIX.md | All test cases with category, input, expected result, actual result, PASS/FAIL |
| Seed data file | {DOMAIN}_SEED_DATA.sql | Canonical seed SQL executed at verification start |
| Mutation preparation | {DOMAIN}_MUTATION_PREPARATION.md | All mutations with apply SQL, detection assertion, revert SQL |
| Run 1 test results | run_1_test_results.md | Test-by-test results table; pass count; fail count; verdict |
| Run 2 test results | run_2_test_results.md | Same format; must match Run 1 for determinism |
| Replay comparison | replay_comparison.md | Run 1 vs Run 2 diff; verdict (DETERMINISTIC or ORDERING_ARTIFACT / STATE_LEAK) |
| Mutation gate results | mutation_gate_results.md | Per-mutation: applied, detected, reverted, PASS/FAIL |
| Executive verdict | EXECUTIVE_VERDICT.md | Verdict; gate results table; findings summary; authorization for next phase |
| README | README.md | Program summary; deliverable table; authorized next actions |
§3.3.2 — Conditional Phase 5 Artifacts
| Artifact | Condition | Content |
|---|---|---|
| PostGIS DDL workarounds | Domain uses PostGIS | Workaround SQL applied; before/after type verification |
| RLS mutation notes | MC-REF003-011 pattern | Non-superuser role used; policy detection evidence |
| Corrective implementation log | Phase 5a-IMPL triggered | What was corrected; by whom; authority |
| Re-verification log | Phase 5a-VERIFY triggered | What was re-verified; by whom; results |
§3.4 — Minimum Artifact Set — Phase 6 (R-CERT)
§3.4.1 — Mandatory Phase 6 Artifacts
| Artifact | File name pattern | Content |
|---|---|---|
| Certification scope | certification_scope.md | Input corpus (Phase 0–5 programs); role separation audit; evidence chain completeness |
| Constitutional invariant matrix | constitutional_invariant_matrix.md | All G-series invariants; how each is evidenced; PASS/FAIL |
| Scorecard | certification_scorecard.md | Composite score; dimension scores; methodology compliance |
| Observations register | certification_observations.md | All observations discovered during certification; classification; recommended actions |
| Methodology evaluation | methodology_evaluation.md | How this lifecycle contributes to methodology evolution; candidates for OBS-A-XXX |
| Foundation asset contribution record | foundation_asset_contributions.md | What assets are being promoted to Foundation Asset Registry by this certification |
| Executive verdict | EXECUTIVE_VERDICT.md | Verdict; gate results; conditions (if any); CAP027-series recommendations |
| README | README.md | Program 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 templateSee 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:
- Verify that all constitutional invariants were tested (from attack matrix)
- Verify that all P1 BLOCKERs were tested (from attack matrix, filtered by gate classification)
- Verify that replay was deterministic (from replay comparison)
- Verify that all mutations were detected (from mutation gate results)
- Verify environment integrity (from environment snapshot)
- 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 artifact | Foundation 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_OBSERVATIONSThe 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:
- Primary Steward authorization
- A new lifecycle amendment program with appropriate authority
- 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 category | Source | Destination |
|---|---|---|
| Canonical seed SQL | active/{phase4-program}/ or active/{schema-verification-program}/ | 40_FOUNDATION_ASSETS/SEEDS/REF{NNN}/ |
| Mutation catalogue | active/{verification-architecture-program}/ | 40_FOUNDATION_ASSETS/MUTATIONS/REF{NNN}/ |
| Constitutional DDL reference | 02_DOMAIN/REF-{NNN}/03_engineering/ddl/ | Registered in FOUNDATION_ASSET_REGISTRY.yaml (path reference; not copied) |
| REF_FREEZE_REGISTRY.yaml entry | Phase 6 program verdict | 05_MEMORY/REGISTRIES/REF_FREEZE_REGISTRY.yaml |
§4.3.2 — Conditional Promotions (where applicable)
| Asset category | Condition | Destination |
|---|---|---|
| JWT fixture templates | R-VEXEC generates fixtures during Phase 5 | 40_FOUNDATION_ASSETS/JWT_FIXTURES/REF{NNN}/ |
| Replay sequences | Phase 5 defines replay sequences | 40_FOUNDATION_ASSETS/REPLAY_BASELINES/REF{NNN}/ |
| Event outbox examples | Domain publishes integration events | 40_FOUNDATION_ASSETS/EVENTS/REF{NNN}/ |
| Integration SQL views | Cross-domain schema views used in Phase 5 | 40_FOUNDATION_ASSETS/SQL/REF{NNN}/ |
§4.3.3 — Never Promoted
| Asset category | Reason |
|---|---|
| Phase 4 implementation code | Service code lives in 02_DOMAIN/; not a foundation asset |
| Phase 5 test code | Domain-specific test runner code is domain-specific evidence |
| Certification scorecards | Remain in completed program evidence |
| Observations and findings | Registered 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 Domain | Certification | Freeze Status |
|---|---|---|
| REF001 | FULLY_CERTIFIED (90/100) — Stage 0D model | PENDING freeze promotion — assets exist in completed programs; not yet in Foundation Asset Registry |
| REF002 | CERTIFIED_WITH_OBSERVATIONS (89%) | PENDING freeze promotion — assets exist in completed programs; not yet in Foundation Asset Registry |
| REF003 | Phase 5 AUTHORIZED | FREEZE_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
| Version | Date | Program | Change |
|---|---|---|---|
| 1.0 | 2026-06-14 | CAP028E-C (R-VARCH) | Initial standard |
| 1.1 | 2026-06-15 | CAP034A (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
| Status | Definition |
|---|---|
| OBSERVED | Single-domain observation; documented in a program; not yet enough evidence for promotion consideration |
| UNDER_REVIEW | Two or more domain instances; Primary Steward or R-VARCH reviewing for promotion |
| EMBEDDED | Written into an institutional standard (VS-XXX or AS-XXX) as advisory guidance; pending ratification |
| FORWARDED | Formally forwarded to Primary Steward for CAP027-series consideration |
| PROMOTED | Ratified by Primary Steward and incorporated into Methodology V2.x or later |
| REJECTED | Evaluated and determined not suitable for universal doctrine |
| SUPERSEDED | An 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 → PROMOTEDEvidence 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
| Field | Value |
|---|---|
| Observation ID | OBS-A-001 |
| Candidate ID | PP-008 candidate |
| Source Program | CAP028E-A |
| Classification | UNIVERSAL CANDIDATE |
| Summary | Executing 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 count | 1 (REF003 — CAP028E-R1) |
| Corroboration needed | Yes — REF004+ domains |
| Status | OBSERVED |
| Embedded in standard | None yet |
| Promotion status | Not yet forwarded |
| Trigger for advancement | REF004 executes an interstitial schema verification and confirms the pattern's value |
OBS-A-002 — Constitutional TRUNCATE Protection Replay Protocol
| Field | Value |
|---|---|
| Observation ID | OBS-A-002 |
| Candidate ID | UP-008 candidate |
| Source Program | CAP028E-A |
| Classification | UNIVERSAL |
| Summary | All 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 count | 2 (REF002 — OBS-L-005/EX-010; REF003 — FINDING-R1-002) |
| Corroboration needed | No — two-domain evidence; architectural reasoning is strong |
| Status | EMBEDDED + FORWARDED |
| Embedded in standard | VS-002 (REPLAY_AUTOMATION_STANDARD.md §4) |
| Promotion status | Forwarded to Primary Steward (CAP028E-A EXECUTIVE_VERDICT.md) |
| Trigger for advancement | Primary Steward constitutes CAP027E or equivalent |
| Notes | All V2.0 domains implement TRUNCATE triggers → universal scope confirmed |
OBS-A-003 — Mutation Gate Transactionality Classification
| Field | Value |
|---|---|
| Observation ID | OBS-A-003 |
| Candidate ID | PP-009 candidate |
| Source Program | CAP028E-A |
| Classification | UNIVERSAL CANDIDATE |
| Summary | Mutations 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 count | 1 (REF003) |
| Corroboration needed | Yes — REF004+ domains |
| Status | EMBEDDED |
| Embedded in standard | VS-003 (MUTATION_AUTOMATION_STANDARD.md §4) |
| Promotion status | Not yet forwarded |
| Trigger for advancement | REF004 confirms the Class A/B classification pattern and value |
OBS-A-004 — PostGIS Schema Isolation as Deployment Prerequisite
| Field | Value |
|---|---|
| Observation ID | OBS-A-004 |
| Candidate ID | DP-009 candidate |
| Source Program | CAP028E-A |
| Classification | DOMAIN-CONDITIONAL (PostGIS domains) |
| Summary | PostGIS 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 count | 1 (REF003 — FINDING-R1-001) |
| Corroboration needed | No for domain-conditional — scope is well-defined |
| Status | EMBEDDED |
| Embedded in standard | VS-004 (VERIFICATION_ENVIRONMENT_STANDARD.md §5) |
| Promotion status | Not yet forwarded; pending DDL amendment |
| Notes | Will be partially resolved when geometry→place_geometry DDL amendment is applied |
OBS-A-005 — DDL Table/Extension Type Name Collision Hazard
| Field | Value |
|---|---|
| Observation ID | OBS-A-005 |
| Candidate ID | DP-010 candidate |
| Source Program | CAP028E-A |
| Classification | DOMAIN-CONDITIONAL (PostGIS domains; any extension-heavy domains) |
| Summary | PostgreSQL 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 count | 1 (REF003 — FINDING-R1-003: geometry_history.geom resolved to wrong type) |
| Corroboration needed | No for domain-conditional PostGIS scope |
| Status | OBSERVED |
| Embedded in standard | Partially in VS-004 §5 |
| Promotion status | Not yet forwarded; DDL amendment in progress |
| Notes | Root 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
| Field | Value |
|---|---|
| Observation ID | OBS-A-006 |
| Candidate ID | PP-010 candidate |
| Source Program | CAP028E-A |
| Classification | UNIVERSAL CANDIDATE (all bitemporal domains) |
| Summary | Service 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 count | 2 (REF002 — asyncpg infinity handling; REF003 — OBS-E-001 ISO-8601 only) |
| Corroboration needed | No — two-domain evidence with architectural reasoning |
| Status | FORWARDED |
| Embedded in standard | Referenced in VS-002 §5 (determinism); awaiting dedicated standard VS-005 or Phase 1 guidance update |
| Promotion status | Forwarded to Primary Steward (CAP028E-A EXECUTIVE_VERDICT.md) |
| Trigger for advancement | Primary Steward constitutes CAP027E or equivalent |
| Notes | Candidate for addition to Phase 1 specification requirements in V2.1 |
OBS-A-007 — asyncpg Infinity Timestamp Serialization
| Field | Value |
|---|---|
| Observation ID | OBS-A-007 |
| Candidate ID | DP-011 candidate |
| Source Program | CAP028E-A |
| Classification | DOMAIN-CONDITIONAL (Python/asyncpg stack) |
| Summary | asyncpg 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 count | 2 (REF002 asyncpg observations; REF003 OBS-E-002) |
| Corroboration needed | No for domain-conditional Python/asyncpg scope |
| Status | OBSERVED |
| Embedded in standard | VS-002 §5.1 (mentioned as mitigation) |
| Promotion status | Not yet forwarded |
| Trigger for advancement | Confirmed by REF004 Python/asyncpg service |
OBS-A-008 — Positive Test Design Review
| Field | Value |
|---|---|
| Observation ID | OBS-A-008 |
| Candidate ID | PP-011 candidate |
| Source Program | CAP028E-A |
| Classification | UNIVERSAL CANDIDATE |
| Summary | Test 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 count | 1 (REF003 — G2 attack test initially used overlapping period incorrectly) |
| Corroboration needed | Yes — REF004+ |
| Status | OBSERVED |
| Embedded in standard | None |
| Promotion status | Not yet forwarded |
| Trigger for advancement | REF004 or later domain encounters a similar test design error during verification |
OBS-A-009 — Foundation Stack Integration Test Gap
| Field | Value |
|---|---|
| Observation ID | OBS-A-009 |
| Candidate ID | PP-012 candidate / lifecycle phase proposal |
| Source Program | CAP028E-A |
| Classification | UNIVERSAL CANDIDATE |
| Summary | After 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 count | 0 (architectural reasoning only; no implementation failures observed yet) |
| Corroboration needed | Yes — needs Foundation Stack Integration program evidence |
| Status | OBSERVED |
| Embedded in standard | AS-001 (FOUNDATION_STACK_STANDARD.md) |
| Promotion status | Not yet forwarded |
| Trigger for advancement | Foundation Stack Integration Program constituted and executes; findings reported |
§5.5 — Verification Standards Status
Standards produced under R-VARCH authority (CAP028E-B). Not ratified doctrine.
| Standard | File | Related Observations | Ratification Status |
|---|---|---|---|
| VS-001 | VERIFICATION/CANONICAL_SEED_STANDARD.md | OBS-A-001 | PENDING (PP-008 candidate) |
| VS-002 | VERIFICATION/REPLAY_AUTOMATION_STANDARD.md | OBS-A-002 | FORWARDED (UP-008 candidate) |
| VS-003 | VERIFICATION/MUTATION_AUTOMATION_STANDARD.md | OBS-A-003 | PENDING (PP-009 candidate) |
| VS-004 | VERIFICATION/VERIFICATION_ENVIRONMENT_STANDARD.md | OBS-A-004, OBS-A-005 | PENDING |
| AS-001 | ARCHITECTURE/FOUNDATION_STACK_STANDARD.md | OBS-A-009 | PENDING |
§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 ratificationOnce 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).
