Skip to content

VGSF CONSTITUTIONAL TECHNICAL ARCHITECTURE — BOOK II — PART A: CONSTITUTIONAL DOMAIN MODEL
Chapter 12 of 21 in this Part

T12 — REF013 KNOWLEDGE DOMAIN

Document record
FieldValue
Constitutional SeriesT — Constitutional Domain Model
Source DocumentFOUNDATION_G35_REF013_KNOWLEDGE_CONSTITUTION.md
Domain IdentifierREF013
ClassificationPRIMITIVE
Schemaref013
CertifiedCERTIFIED
Certifying ProgramCAP136A
Position in BookPart A, Chapter 12 of 21

T11 established the temporal dimension — when commitments are planned and whether they were kept. T12 (REF013 Knowledge) establishes the institutional memory layer — the domain that governs the content, organization, and permanence of the knowledge VGSF creates, curates, and transmits.


Domain Numbering Note

REF012 is RETIRED-NOT-REUSED (NPS-7). The integer 012 was originally allocated to "Communication"; that concept was reclassified under CAP030B (EO-SPECIALIZE) into REF009.C1. The bare integer 012 SHALL NEVER be re-issued to any future domain. REF013 is therefore the next live base-domain number after REF011 in the certified cohort. Any artifact citing "REF012" as a live domain is stale evidence; REF_DOMAIN_ROADMAP.yaml governs.

Identity discipline — REF013 = Knowledge. REF013 is the Knowledge domain (intellectual content). It is NOT "Classification" or "Taxonomy"; that label was an obsolete folder-README mislabel, corrected under PROP-OBL-007 (README.md updated, CAP130A TV, 2026-06-24). Throughout this chapter REF013 means Knowledge — governed intellectual content — and nothing else.


Constitutional Dependencies

DomainNatureDirectionUP-007 Gate
REF001 (Party / Identity)Mandatory — authors, curators, publishers are PartiesREF013 → REF001 (FK)SATISFIED
REF008 (Authority)Mandatory — publication governance enforced via authority grants through a cross-schema gateREF013 → REF008 (gate)SATISFIED
REF014 (Initiative)Optional — a Knowledge Item MAY be referenced by an InitiativeREF014 → REF013 (inbound)Non-blocking
REF006 (Document)Boundary peer — Artifact-vs-Content boundary co-confirmedbidirectional reference onlyN/A (boundary)
REF009 (Interaction)Optional — an educational session MAY reference the Knowledge taughtREF009 → REF013 (inbound)Non-blocking

UP-007 gate formally satisfied per D7 (DEPENDENCIES_AND_INTEGRATION, CAP130A). All mandatory predecessor
domains (REF001, REF008) were certified ahead of REF013, satisfying the admission lattice.


Status

CERTIFICATION STATUS:  REF013_CERTIFIED  (CAP136A · R-CERT · 2026-06-24)
METHODOLOGY:           Dharma ERP Constitutional Engineering V2.1
ADMITTED BY:           CAP030B (R-STEWARD) — triple (PRIMITIVE, Informational, Primitive)
PhaseProgramVerdict
Phase -1 (Classification & Admission)CAP030B (R-STEWARD)ADMITTED
Phase 0 (Discovery)CAP130A (R-ARCH)PHASE0_COMPLETE
Phase 1 (Specification)CAP131A (R-ARCH)PHASE1_SPECIFICATION_COMPLETE
Phase 2 (Independent Review)CAP132A (R-REVIEW)PHASE2_REVIEW_COMPLETE
Phase 3 (Verification Architecture)CAP133A (R-VARCH)PHASE3_VERIFICATION_ARCHITECTURE_COMPLETE
Phase 4 (Implementation)CAP134A (R-IMPL)PHASE4_IMPLEMENTATION_COMPLETE
Phase 5 (Package)CAP135A (R-VEXEC)PHASE5_PACKAGE_COMPLETE_WITH_PRE_EXECUTION_CORRECTION
Phase 5 (Physical Execution)CAP135B (R-VEXEC)PHASE5_PHYSICAL_PASS_WITH_OBSERVATIONS
Phase 6 (Certification)CAP136A (R-CERT)REF013_CERTIFIED

Role separation maintained throughout per UP-005: R-CERT (CAP136A) is distinct from R-ARCH (specification),
R-IMPL (DDL), and R-VEXEC (verification battery).


Constitutional Note: Domain Numbering

REF013 occupies its number as a PRIMITIVE domain in the certified base cohort. Its classification triple
is (PRIMITIVE, Informational, Primitive) — a primitive reality whose information character is content
(intellectual substance) rather than artifact (formal issuance).

REF013 sits at the content layer of the constitutional system. It depends downward on REF001 (the Parties
who author and publish) and REF008 (the authority grants that govern publication), and it is referenced
inbound by aggregate and event domains (REF014 Initiative, REF009 Interaction, REF006 Document). This is the
canonical PRIMITIVE directionality: REF013 references its mandatory predecessors and is referenced by — but
does not itself reference — the higher domains that build upon it.

The REF number is governed solely by REF_DOMAIN_ROADMAP.yaml (DC-005 AD-1). No folder name, README, or
legacy listing may re-number or re-identify this domain.


1. Domain Purpose [T12.§1]

REF013 is the Knowledge domain — the intellectual content layer of VGSF's constitutional system. It is
the governed infrastructure through which VGSF creates, curates, publishes, versions, and preserves the
knowledge it teaches, practices, and transmits: Vedic teachings, curricula, operational guides as living
content, reference articles, and research insights.

REF013 answers one fundamental question:

"What does VGSF know, and how is that knowledge governed?"

A Knowledge Item's constitutional value derives from what it expresses — the ideas, teachings,
procedures, and insights it contains — not from any formal act of issuance. This is the primary
constitutional distinction from REF006 (Document), whose value derives from its formal issuance event.
REF013 governs content; REF006 governs artifacts. This boundary is load-bearing and is treated in full
in §8.

REF013 is a PRIMITIVE: it is an irreducible constitutional reality. Knowledge exists, evolves, and is
preserved as a thing-in-itself — independent of whether it is currently cited by any Initiative, taught in
any Interaction, or formalized into any Document.


2. Constitutional Scope [T12.§2]

2.1 What REF013 Governs

  • The constitutional definition of a Knowledge Item — the atomic unit of governed intellectual content.
  • The Knowledge Type Registry — the five recognized kinds of knowledge (VEDIC, EDUCATIONAL, INSTITUTIONAL, REFERENCE, RESEARCH).
  • The Knowledge lifecycle — DRAFT → UNDER_REVIEW → PUBLISHED → DEPRECATED → ARCHIVED.
  • Version lineage — the FK-chain (prior_version_id) by which knowledge evolves while preserving its full ancestry.
  • The append-only event ledger — the permanent record of every lifecycle transition (knowledge_events).
  • The publish/deprecate atomic discipline — the constitutional guarantee that at most one version per lineage is PUBLISHED at any time.
  • The no-deletion doctrine for content and events.
  • The status-based privacy model — who may read content in which lifecycle state.
  • The authority gate for publication and deprecation, enforced against REF008 grants.

2.2 What REF013 Does NOT Govern

Out of scopeOwning domain
Who the author / curator / publisher is (their identity)REF001 (Party)
Whether a caller may publish or deprecate (the grant itself)REF008 (Authority)
Formal issuance of a text as a Policy, Certificate, Resolution, or edictREF006 (Document)
The Initiative that a Knowledge Item supportsREF014 (Initiative)
The educational session in which knowledge is taughtREF009 (Interaction)
Hierarchical taxonomy / topic trees / curricula structuresDeferred — future REF013.Xn (BL-2)
DB-level language validation (ISO 639-1)Application layer (BL-3)
Physical schema design, DDL, indexes, RLS predicates as writtenEngineering tier (never in G3.5)

REF013 declares what is constitutionally required of any system that manages governed knowledge content.
It does not design databases and does not write SQL.


3. Core Constitutional Definition [T12.§3]

3.1 What Is a Knowledge Item?

A Knowledge Item is the atomic unit of the REF013 domain: a single, independently identifiable piece of
intellectual content that VGSF manages and uses. Each version of an evolving teaching is itself a distinct
Knowledge Item record, linked into a lineage by prior_version_id.

A Knowledge Item carries:

AttributeNatureConstitutional meaning
Stable identityUUID, never recycledA teaching remains the same teaching across all its versions
Knowledge typeCoded discriminatorVEDIC / EDUCATIONAL / INSTITUTIONAL / REFERENCE / RESEARCH
TitleHuman-readable labelWhat the item is called
SummaryBrief descriptionWhy this knowledge exists; what it covers
Content bodyThe intellectual substanceThe actual text, structure, or payload — the content
LanguageContent language codeTEXT, DEFAULT 'en'; app-layer ISO 639-1 validation (BL-3)
StatusLifecycle stateDRAFT / UNDER_REVIEW / PUBLISHED / DEPRECATED / ARCHIVED
Version lineageprior_version_id pointerLinks a new version to the prior version (FK chain)
Author / curatorREF001 PartyWho created or is responsible for this knowledge
Publication authorityREF008 grant verificationWho may publish or deprecate this knowledge
Provenance timestampscreated_at, published_at, …Audit trail of content transitions

3.2 Constitutional Properties of Every Knowledge Item

The canonical object model fixes the following invariants. They are carried here verbatim by code.

Knowledge Identity (KI)

IDInvariant
KI-001Every Knowledge Item has a stable, permanent id — never recycled or deleted.
KI-002knowledge_type is immutable once set.
KI-003A Knowledge Item in status = ARCHIVED accepts no further mutations.
KI-004knowledge_events rows are never updated or deleted — append-only.
KI-007ARCHIVED items are constitutionally terminal — no status change and no field mutation is possible.

Lifecycle (LC)

IDInvariant
LC-001Every lifecycle transition is permanently recorded in knowledge_events.
LC-002Only one version in a lineage may hold status = PUBLISHED at any time.
LC-003DEPRECATED status is terminal for a version — it may not return to PUBLISHED.
LC-004published_at is immutable once set.

Version Lineage (VL)

IDInvariant
VL-001prior_version_id references must form a non-cyclic chain.
VL-002Publishing a new version automatically deprecates the prior PUBLISHED version.
VL-003Deprecated version content is preserved — never deleted.

Authority (AU)

IDInvariant
AU-001Publishing requires a REF008 KNOWLEDGE_PUBLISHER authority grant.
AU-002Deprecating requires KNOWLEDGE_PUBLISHER or KNOWLEDGE_CURATOR grant.
AU-003Authoring a draft requires a KNOWLEDGE_AUTHOR grant at minimum.
AU-004No-grant callers may read PUBLISHED items only — no mutation.

No-Deletion Doctrine (ND)

IDInvariant
ND-001No physical DELETE is permitted on any REF013 table at any role level.
ND-002Obsolescence is expressed by DEPRECATED or ARCHIVED status — never by row deletion.

3.3 Fundamental Rules

RULE-KN1 (Content, not Artifact): A Knowledge Item's constitutional value derives from its intellectual
substance. If a thing matters because of what it says, it is REF013 Knowledge; if it matters because of the
formal act of its issuance, it is REF006 Document. (See §8.)

RULE-KN2 (Living, enrichable): Knowledge is preserved as living, enrichable content. Evolution is
expressed through versioning — a new version record linked to the prior — never by destructive in-place
overwrite that erases the predecessor.

RULE-KN3 (Append-only history): Every lifecycle transition is permanently recorded in the
knowledge_events ledger; the ledger is never mutated (KI-004, LC-001, P1-A).

RULE-KN4 (No deletion): Nothing in REF013 is ever physically deleted. Obsolescence is a status, not an
absence (ND-001, ND-002).


4. Knowledge Types [T12.§4]

REF013 recognizes exactly five Knowledge Types. The type is a coded discriminator, immutable once set
(KI-002), and is materialized as the knowledge_types registry table (5 codes).

TypeConstitutional meaning
VEDICVedic philosophy, scriptural teachings, shlokas with commentary
EDUCATIONALCurriculum modules, learning programs, course content
INSTITUTIONALOperational guides, standard procedures, internal policies as living content
REFERENCEFAQs, glossaries, knowledge-base articles
RESEARCHResearch insights, community-development findings, case studies

Type boundary note (INSTITUTIONAL vs REF006): An operational policy held as living, enrichable guidance
is INSTITUTIONAL Knowledge (REF013). The same policy, once formally issued as a binding Policy artifact, is
a REF006 Document. The discriminator is why it matters (RULE-KN1), not its text.

Hierarchy deferred (BL-2): The base domain is flat. Hierarchical taxonomy — topic trees, categories,
curricula structures — is reserved for a future REF013.Xn extension. The acyclicity and membership-boundary
complexity of hierarchy belongs at extension scope, not in the certified base.


5. Domain Architecture — Publish / Append-Only [T12.§5]

REF013 is implemented as a three-table schema in PostgreSQL schema ref013. The constitutional shape of
each surface is fixed below; the physical DDL lives at the engineering tier.

5.1 The Three Surfaces

SurfaceNatureConstitutional role
knowledge_typesRegistryThe 5 immutable type codes (closed registry).
knowledge_itemsRoot entityOne record per knowledge version; self-referential prior_version_id FK forms the lineage.
knowledge_eventsAppend-only ledgerEvery lifecycle transition, permanently recorded; never updated, never deleted.

5.2 The Atomic Publish Discipline (VL-002 · fn_publish_item)

The load-bearing operation of REF013 is publication. Publishing a new version must atomically publish
the new version and deprecate the prior PUBLISHED version of the same lineage, so that the constitutional
guarantee LC-002 / VL-002 — at most one PUBLISHED version per lineage at any time — holds at every
instant.

This is discharged by fn_publish_item, which:

  1. Verifies the caller holds a KNOWLEDGE_PUBLISHER grant (AU-001) via the REF008 cross-schema gate (§8.3).
  2. Acquires a FOR UPDATE lock on the target item (Step 1 CTE).
  3. Traverses the lineage by recursive CTE to find the current PUBLISHED ancestor — traversing past ARCHIVED records to reach it (guarantee F-002).
  4. Re-verifies the ancestor's status after acquiring its FOR UPDATE lock (Step 3b), then deprecates it.
  5. Enforces a post-publish VL-002 gate (Step 5a) that raises an exception if more than one PUBLISHED row exists in the lineage.

BUG-001 (certified correction): A pre-execution adversarial DDL review (CAP135A) caught a P1-class
TOCTOU race in fn_publish_item — concurrent publishes on the same lineage could both read the same
PUBLISHED ancestor and race to acquire the lock, the second transaction silently skipping deprecation and
leaving two PUBLISHED items in one lineage. The three-part locking pattern above is the certified correction;
R-CERT certified it sound and sufficient for the P1-C guarantee. (This is the first VGSF domain where a
P1-class defect was caught by static analysis before any live run — methodology observation MObs-1.)

5.3 The Append-Only Event Ledger (P1-A · fn_ke_immutable)

knowledge_events is a permanent ledger. Every lifecycle transition writes one row; rows are never updated
and never deleted (KI-004, LC-001). UPDATE and DELETE triggers (fn_ke_immutable) enforce immutability at
the database level. The event ledger is the institutional memory of how each piece of knowledge moved
through its lifecycle — the constitutional audit trail.

5.4 No-Deletion Enforcement (ND-001/ND-002 · fn_prevent_ki_delete)

No physical DELETE is permitted on any REF013 table at any role level. fn_prevent_ki_delete blocks deletion
of items; fn_ke_immutable blocks deletion of events. Obsolescence is always expressed as a status
(DEPRECATED or ARCHIVED), never as a missing row. Deprecated content is preserved in full (VL-003).


6. Knowledge Item Lifecycle [T12.§6]

6.1 The State Machine

DRAFT → UNDER_REVIEW → PUBLISHED
                         ↓
                      DEPRECATED → ARCHIVED  (terminal)

6.2 State Definitions

StateConstitutional meaningEntry / authority
DRAFTAuthored, not yet under formal reviewRequires KNOWLEDGE_AUTHOR grant (AU-003)
UNDER_REVIEWSubmitted for curation / reviewCuration workflow
PUBLISHEDThe live, operative version of the lineageRequires KNOWLEDGE_PUBLISHER grant (AU-001); ≤1 per lineage (LC-002/VL-002)
DEPRECATEDSuperseded; content preservedKNOWLEDGE_PUBLISHER or KNOWLEDGE_CURATOR (AU-002); terminal for the version (LC-003)
ARCHIVEDConstitutionally terminal — frozenNo further status change, no field mutation (KI-003, KI-007, P1-B)

6.3 Transition Rules

RULE-LC-001: Every lifecycle transition is permanently recorded in knowledge_events (LC-001).

RULE-LC-002 (One PUBLISHED per lineage): Publishing a new version automatically deprecates the prior
PUBLISHED version of that lineage, so that exactly one version is PUBLISHED at any time (LC-002, VL-002). This
is enforced atomically by fn_publish_item (§5.2).

RULE-LC-003 (DEPRECATED is one-way): A DEPRECATED version may never return to PUBLISHED (LC-003).

RULE-LC-004 (published_at is immutable): Once set, published_at is never changed (LC-004).

RULE-LC-005 (ARCHIVED is terminal): An ARCHIVED item accepts no status change and no field mutation. This
is the P1-B blocker, certified SAFE; it is enforced by fn_ki_lifecycle_guard + fn_ki_immutability_guard
(KI-003, KI-007).

RULE-LC-006 (Lineage is acyclic): prior_version_id chains must be non-cyclic (VL-001).


7. Governance & Authority [T12.§7]

7.1 Authority Gates

Authority over Knowledge is not owned by REF013. REF013 consults REF008 grants at each governed act.
The grant types are:

ActRequired grantInvariant
Author a DRAFTKNOWLEDGE_AUTHOR (minimum)AU-003
Publish a versionKNOWLEDGE_PUBLISHERAU-001
Deprecate a versionKNOWLEDGE_PUBLISHER or KNOWLEDGE_CURATORAU-002
Read a PUBLISHED item(no grant required)AU-004
Mutate without grantforbiddenAU-004

7.2 The Status-Based Privacy Model (P1-D)

Access to Knowledge is governed by status-based Row-Level Security — FORCE ROW LEVEL SECURITY on all
three tables. The constitutional rule is:

RULE-PRIV-001 (P1-D): A READER (no-grant caller) may read PUBLISHED items only. A READER cannot read
another Party's DRAFT. This is the P1-D blocker, certified SAFE; the RLS SELECT policy returns zero rows for
a cross-party DRAFT read (TC-042).

Status is therefore both a lifecycle position and a visibility boundary: DRAFT and UNDER_REVIEW content is
private to its author / curators; PUBLISHED content is the public face of VGSF knowledge; DEPRECATED and
ARCHIVED content is preserved but not the operative live version.

7.3 Role Notation & Separation

REF013 was certified under strict role separation (UP-005): R-ARCH specified, R-IMPL implemented, R-VEXEC
executed verification, R-CERT certified — all distinct authorities. REF013 itself does not issue
constitutional authority; it relies on REF008. No REF013 operation may self-grant the authority it requires.


8. Cross-Domain Constitutional References [T12.§8]

8.1 The REF006 ↔ REF013 Boundary — Artifact vs Content

The single most important cross-domain boundary for REF013 is its relationship with REF006 (Document).

REF006  Document   = ARTIFACT  — value derives from the formal act of ISSUANCE
REF013  Knowledge  = CONTENT   — value derives from the intellectual SUBSTANCE it expresses

This domain is Content. The same text may belong to either domain depending on why it matters:

  • A teaching on Ahimsa preserved as living, enrichable content → REF013 Knowledge.
  • That same text formally issued as a Constitutional edict / Policy → REF006 Document.

The discriminator is never the text and never the file; it is the reason the entity matters (RULE-KN1).
Full decision rules live in REF013 D5 (BOUNDARY_ANALYSIS).

PROP-OBL-006 discharge: The REF006/REF013 joint-boundary re-confirmation obligation (PROP-OBL-006) was
DISCHARGED at REF013 Phase -1 via D5 / CAP130A. The Artifact-vs-Content boundary is therefore a settled,
co-confirmed constitutional fact, not an open question.

8.2 REF001 (Party) — Authors, Curators, Publishers

Every author, curator, and publisher of Knowledge is a REF001 Party. REF013 references REF001 by FK for
authorship and responsibility. REF013 does not define identity; it consumes it.

8.3 REF008 (Authority) — The Cross-Schema Publication Gate

Publication and deprecation authority is enforced through a cross-schema SECURITY DEFINER gate:
ref008.fn_has_knowledge_grant(), consumed inside REF013 via fn_has_knowledge_grant. This is the
constitutional seam by which REF013 defers all authority questions to REF008 (AU-001..AU-003). REF013 never
decides whether a caller is authorized — it asks REF008 and obeys the answer.

8.4 Inbound References (PRIMITIVE Directionality)

The following are FORWARD references from other domains TO REF013. REF013 does not reference these domains;
the directionality is inbound — the canonical PRIMITIVE pattern (confirmed in REF013 D9):

Referencing domainReference
REF014 (Initiative)An Initiative may reference a Knowledge Item as its knowledge basis
REF009 (Interaction)An educational session may reference the Knowledge Item taught
REF006 (Document)A formally issued training manual may cite a REF013 Knowledge Item as its source content

8.5 Co-Deploy Notes

REF013 mandatorily co-deploys with REF001 and REF008 (its grants gate and Party FKs must resolve). REF014,
REF009, and REF006 references are optional and inbound; REF013 deploys and operates without them.


9. Constitutional Invariants Summary [T12.§9]

The load-bearing invariants of REF013, carried from the canonical certified record:

Identity & immutability

  • KI-001 — stable, permanent id; never recycled or deleted.
  • KI-002 — knowledge_type immutable once set.
  • KI-003 / KI-007 — ARCHIVED items are constitutionally terminal (no status change, no field mutation). (P1-B SAFE)
  • KI-004 — knowledge_events rows are append-only; never updated or deleted. (P1-A SAFE)

Lifecycle

  • LC-001 — every transition permanently recorded in knowledge_events.
  • LC-002 / VL-002 — at most one PUBLISHED version per lineage at any time; publish atomically deprecates the prior PUBLISHED version (fn_publish_item). (P1-C SAFE)
  • LC-003 — DEPRECATED is terminal for a version; no return to PUBLISHED.
  • LC-004 — published_at immutable once set.

Version lineage

  • VL-001 — prior_version_id chains are non-cyclic.
  • VL-003 — deprecated version content is preserved, never deleted.
  • F-002 — lineage traversal passes through ARCHIVED records to find the PUBLISHED ancestor.

Authority

  • AU-001 — publishing requires a REF008 KNOWLEDGE_PUBLISHER grant.
  • AU-002 — deprecating requires KNOWLEDGE_PUBLISHER or KNOWLEDGE_CURATOR.
  • AU-003 — authoring a draft requires KNOWLEDGE_AUTHOR (minimum).
  • AU-004 — no-grant callers may read PUBLISHED items only; no mutation.

No-deletion

  • ND-001 — no physical DELETE on any REF013 table at any role level.
  • ND-002 — obsolescence is a status (DEPRECATED / ARCHIVED), never a deleted row.

Privacy

  • P1-D — a READER cannot read another Party's DRAFT (status-based FORCE RLS). (SAFE)

Boundary

  • RULE-KN1 / RULE-KN2 — Knowledge = Content (value from substance); REF006 Document = Artifact (value from issuance). PROP-OBL-006 discharged at REF013 Phase -1 (D5, CAP130A).

Certification: REF013_CERTIFIED — CAP136A — R-CERT — 2026-06-24. All four P1-BLOCKERs (P1-A append-only,
P1-B ARCHIVED-terminal, P1-C VL-002, P1-D DRAFT-privacy) certified SAFE.


Constitutional Colophon — T12
This chapter establishes REF013 Knowledge as the institutional memory layer of VGSF — the governed infrastructure through which intellectual content is created, versioned, published, deprecated, and permanently preserved, where value derives from substance rather than formal issuance, where the append-only event ledger makes every transition irreversible and permanently reconstructible, and where no knowledge is ever deleted but merely superseded by a newer version that coexists with all its ancestors in the same versioned lineage.
It operates within Part A under the governing principle that the thirteen base domains are the
irreducible categories of institutional reality — no action, record, resource, or obligation of
VGSF may exist outside one of these domains.
Readers proceeding to T13 REF014 Initiative should carry forward:
REF013 as the knowledge basis that Initiatives may cite — the intellectual substance that guides and grounds mission work; T13 will show how the Initiative, as the first AGGREGATE-ROOT in the system, coordinates all domains including REF013 toward a coherent mission purpose.


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.