Skip to content

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

T11 — REF011 SCHEDULE DOMAIN

Document record
FieldValue
Constitutional SeriesT — Constitutional Domain Model
Source DocumentFOUNDATION_G35_REF011_SCHEDULE_CONSTITUTION.md
Domain IdentifierREF011
ClassificationPRIMITIVE
Schemaref011
CertifiedCERTIFIED
Certifying ProgramCAP146A
Position in BookPart A, Chapter 11 of 21

T10 established the case as the constitutional instrument for sustained service journeys. T11 (REF011 Schedule) establishes the temporal commitment layer — the domain that governs when things are planned to occur and whether those plans were honored.


Constitutional Dependencies

REF011 is a leaf-altitude PRIMITIVE: it references the foundational triad and the governance domain, but no
domain depends on REF011 except its constitutional pair, REF004 (Event), which references it downstream.

DomainRelationshipStrengthDirection
REF001 PartyOwner Party + Creating Party + lifecycle ActorMandatoryREF011 → REF001 (FK soft-check)
REF002 RelationshipRole context (resolved via REF008)ConditionalREF011 → REF002 (indirect)
REF003 PlaceDefault venue for generated EventsOptionalREF011 → REF003 (nullable FK soft-check)
REF004 EventGenerated instances (the recurrence pair)PrimaryREF004 → REF011 (incoming FK schedule_id)
REF005 ResourcePre-allocation (at the Event level, not Schedule)Conditionaldownstream of REF004
REF008 AuthorityGovernance gate for all lifecycle transitionsMandatoryservice-layer authority check
REF010 CaseService-coordination referenceConditionalREF010 → REF011 (indirect)

Status

REF011_CERTIFIED_WITH_OBSERVATIONS — Composite 87.0% (certification threshold 80% CLEARED).
REF011 is the 13th VGSF domain certified under FS-001, completing the constitutional pair with REF004.
Certified by CAP146A (R-CERT, 2026-06-24) on independent evidence (CAP145A: 21 VO / 21 PASS / 0 FAIL,
PostgreSQL 17.9). Five methodology observations (MO-146A-001..005) produced for future V2.x evolution.

Lifecycle program chain:

CAP139A  Phase -1  ADMIT — (Primitive, Activity, Master)            2026-06-24
CAP140A  Phase 0   COMPLETE — 13 artifacts, BL-1..BL-4 resolved    2026-06-24
CAP141A  Phase 1   COMPLETE — 5 DDL files, 19 obligations           2026-06-24
CAP142A  Phase 2   APPROVED_WITH_OBSERVATIONS — 14 findings         2026-06-24
CAP143A  Phase 3   COMPLETE — 21 VOs, 21 SQL test scripts           2026-06-24
CAP144A  Phase 4   COMPLETE — 7 DDL files deployed                  2026-06-24
CAP145A  Phase 5   COMPLETE — 21/21 PASS (+ 3 Phase-5a fixes)      2026-06-24
CAP146A  Phase 6   CERTIFIED_WITH_OBSERVATIONS — 87.0%              2026-06-24
CAP147A             REF004 schedule_id FK migration — RESOLVED       (cross-domain seam)

Constitutional Note: Domain Numbering

REF011 is classified (PRIMITIVE, Activity, Master) under the DC-001 Three-Axis Classification. It is an
Activity-class domain — it governs organizational activity, not parties, places, or value — and it is a
Master-record domain: it holds the standing, forward-looking template from which transactional records
are generated.

REF011 forms a constitutional pair with REF004 (Event), which is (PRIMITIVE, Activity, Transactional).
The pair is the canonical Master⇄Transactional split for the Activity axis:

REF011 (Schedule)REF004 (Event)
ClassificationPrimitive, Activity, MasterPrimitive, Activity, Transactional
PostureForward-looking templateBackward-facing occurrence
Count per seriesONEMANY
Recurrence ownershipOWNS the recurrence specificationreferences schedule_id
Stored FKNo stored FK to Eventsschedule_id → ref011_schedules (nullable)

REF011 sits at the leaf altitude of the dependency lattice. It depends on the foundational triad
(REF001/REF002/REF003) and the governance domain (REF008); nothing depends on REF011 except REF004, and that
reference is held by REF004, never mirrored back. This preserves the REF011 → REF004 directionality (SI-008).


1. Domain Purpose [T11.§1]

REF011 answers the constitutional question:

When, how often, and under whose authority does a recurring organizational activity recur — and how is the lifecycle of that recurrence pattern governed and audited?

A Schedule is the standing, forward-looking governing template for a recurring series of activities. It
specifies WHEN and HOW OFTEN the activity recurs, WHO authorized it, and maintains the audit trail of the
pattern's lifecycle. It is the authorization record for the series, the governance instrument for
pausing/resuming/cancelling that series, and the append-only audit trail for every change to the pattern.

The Schedule is deliberately distinct from the occurrences it generates. A Schedule never becomes an Event; it
is the eternal template, and the Events (REF004) are the many backward-facing occurrences that the template
produces. This separation is the load-bearing constitutional idea of the domain: one forward-looking Master
record governs many backward-facing Transactional records, and the recurrence rule lives in exactly one place.


2. Constitutional Scope [T11.§2]

2.1 What REF011 Governs

  • The constitutional definition of a Schedule (a recurring-pattern Master record).
  • The three-calendar system — GREGORIAN (RFC 5545 rrule), VEDIC (tithi grammar), and HYBRID — and the mutual-exclusivity rules between their recurrence specifications.
  • The Vedic tithi grammar (MASA-PAKSHA-TITHI-FREQ) and its constitutional rules, including MASA-YEARLY.
  • The two domain tables: ref011_schedules (root) and ref011_schedule_events (append-only lifecycle ledger).
  • The 5-state lifecycle (DRAFT → ACTIVE → {PAUSED ⇄ ACTIVE, CANCELLED, ARCHIVED}) and its transition rules.
  • The eight SECURITY DEFINER lifecycle functions and the generation gate (fn_assert_generation_permitted).
  • The generation gate as a cross-domain service contract: only an ACTIVE Schedule may generate Events.
  • The Schedule Purpose taxonomy (RECURRING_EVENT, COMPLIANCE_DEADLINE, STAFF_ROSTER, PROJECT_MILESTONE, MAINTENANCE, EXPORT).
  • Entity isolation of Schedule records via RLS (entity_id, FORCE ROW SECURITY).
  • The immutability of identity fields and the append-only character of the lifecycle ledger.

2.2 What REF011 Does NOT Govern

  • The Event occurrence itself — that is REF004. REF011 never stores or maintains a list of its generated Events.
  • Calendar / cron infrastructure — REF011 specifies the recurrence rule; it is not a scheduler engine.
  • Obligations ("must do") — that is REF007. A Schedule is permissive scaffolding, not a duty.
  • Case service plans — that is REF010.
  • Initiative coordination containers — that is REF014.
  • Resource allocation — at most a Schedule names a default venue (REF003); resource pre-allocation happens at the Event level (REF005), downstream of generation.
  • Authority issuance — REF011 consumes authority grants from REF008; it does not mint them.
  • Physical DDL, SQL, or service-layer code — never written in a G3.5 charter; see the certified 02_DOMAIN engineering stack.

3. Core Constitutional Definition [T11.§3]

3.1 What Is a Schedule?

A Schedule is a constitutionally recognized recurring-pattern Master record — a named, authorized,
forward-looking template that declares the temporal recurrence of an organizational activity and governs the
lifecycle of that recurrence. A Schedule exists independently of any Event it may generate; it has its own
identity, its own lifecycle, and its own audit ledger.

A Schedule IS: the forward-looking template specifying WHEN and HOW OFTEN; the authorization record for the
recurring series; the governance instrument for pausing/resuming/cancelling the series; and the audit trail for
all pattern lifecycle changes.

A Schedule IS NOT: the Event occurrence (REF004); a calendar system or cron infrastructure; an Obligation
(REF007); a Case service plan (REF010); or an Initiative coordination container (REF014).

3.2 Constitutional Properties of Every Schedule

Every Schedule carries an immutable identity core and a set of object-model invariants. The universal
invariants are codified SI-001 through SI-015 in the canonical constitution and carried here verbatim.

Identity core (immutable after creation): schedule_id (UUID PK, never recycled, never deleted),
created_at, created_by_party_id, and entity_id. These four fields may never be updated (SI-001, SI-003).

Schedule object model (ref011_schedules, the root table):

PropertyConstitutional rule
schedule_idImmutable UUID PK; never recycled, never deleted (SI-001)
schedule_nameRequired human-readable name
schedule_purposeRequired purpose discriminator (see §4)
calendar_systemRequired: GREGORIAN \VEDIC \HYBRID (default GREGORIAN)
rrule_speciCal RFC 5545 RRULE; required when calendar_system ∈ {GREGORIAN, HYBRID} (SI-011)
vedic_tithi_specVedic tithi grammar; required when calendar_system ∈ {VEDIC, HYBRID} (SI-012)
subject_typeReserved; constrained to EVENT in Phase 1
statusDRAFT \ACTIVE \PAUSED \CANCELLED \ARCHIVED (default DRAFT); changes only via lifecycle functions
owner_party_idRequired FK → REF001; Owner Party continuity (SI-002)
created_by_party_idRequired FK → REF001; immutable creation attribution (SI-003)
default_location_place_idNullable FK → REF003 (default venue)
effective_from / effective_untilGeneration window; effective_until ≥ effective_from (SI-015)
entity_idRequired RLS scope; immutable

Lifecycle ledger object model (ref011_schedule_events, append-only):

PropertyConstitutional rule
event_idImmutable UUID PK
schedule_idRequired FK → ref011_schedules
event_typeCREATED \ACTIVATED \PAUSED \RESUMED \CANCELLED \ARCHIVED \MODIFIED
actor_party_idRequired FK → REF001
occurred_atWhen the lifecycle event occurred
previous_status / new_statusStatus before / after
notesOptional rationale

Ledger invariants: append-only — no UPDATE or DELETE is ever permitted (SI-004, trigger enforced); every
ref011_schedules row MUST have at least one CREATED event; an ACTIVATED event MUST precede any Event
instance generation.

3.3 Fundamental Rules

RULE-SCH-001 (Immutable identity): schedule_id, created_at, created_by_party_id, and entity_id are
assigned once and never modified. Schedules are never physically deleted (SI-001, SI-003).

RULE-SCH-002 (Append-only ledger): Every lifecycle change is recorded in ref011_schedule_events. That
ledger admits no UPDATE and no DELETE, ever (SI-004).

RULE-SCH-003 (Recurrence lock): While a Schedule is ACTIVE, its recurrence specification is locked; an
ACTIVE series may not silently change its rule mid-flight (SI-013). rrule_spec and vedic_tithi_spec may be
edited only while DRAFT or PAUSED.

RULE-SCH-004 (Generation gate): Only an ACTIVE Schedule may generate Event instances (SI-005). The gate is
enforced by fn_assert_generation_permitted (see §5.4, §7).

RULE-SCH-005 (Directionality): REF011 → REF004 is the mandatory direction. REF011 stores no FK to Events
and maintains no list of generated Events; linkage is queried via REF004 WHERE schedule_id = ? (SI-008,
SI-009, SI-010).

RULE-SCH-006 (Authority gate): Every lifecycle transition requires an Authority grant from REF008 (SI-014).

RULE-SCH-007 (Entity isolation): Every Schedule and ledger row is scoped to exactly one entity_id; RLS
with FORCE ROW SECURITY prevents cross-entity visibility.


4. Schedule Purpose Taxonomy [T11.§4]

The schedule_purpose discriminator classifies the kind of recurring activity a Schedule governs. It is a
constitutional registry, not a free-text field.

PurposeDescriptionExample
RECURRING_EVENTRecurring organizational event seriesWeekly Monday devotional; quarterly board meeting
COMPLIANCE_DEADLINEStatutory/regulatory recurring obligationFCRA annual filing; ROC annual return
STAFF_ROSTERStaff scheduling and calendarsWeekly shift roster; leave cycle
PROJECT_MILESTONEProject timeline milestonesRecurring deliverable / review dates
MAINTENANCERecurring asset/infrastructure maintenanceQuarterly vehicle service; annual equipment audit
EXPORTRecurring data exports / reportsMonthly data export; quarterly report generation

The purpose discriminator describes what kind of recurrence a Schedule governs; it does not change the
lifecycle, calendar, or authority rules, which are uniform across all purposes.


5. The Three-Calendar System [T11.§5]

REF011 is the first VGSF domain to support three simultaneous calendar systems, each with a distinct,
mutually exclusive recurrence specification. The calendar system is declared at creation and determines which
recurrence spec column is required.

Systemrrule_specvedic_tithi_specUse
GREGORIAN (default)Required (RFC 5545)NULLAll ordinary organizational schedules
VEDICNULLRequiredSacred festival series
HYBRIDRequiredRequiredSacred events with Gregorian logistics

5.1 GREGORIAN — RFC 5545 rrule

GREGORIAN Schedules carry an rrule_spec conforming to iCal RFC 5545 RRULE syntax. Write-time validation
checks the FREQ= prefix (validate_rrule_spec); full RRULE parsing is a documented future enhancement
(CERT-OBS-004). Representative rules:

FREQ=WEEKLY;BYDAY=MO              → every Monday
FREQ=YEARLY;BYMONTH=10;BYDAY=-1MO → last Monday of October, every year
FREQ=MONTHLY;BYDAY=1MO            → first Monday of every month
FREQ=WEEKLY;BYDAY=MO,WE,FR        → Mon / Wed / Fri every week

5.2 VEDIC — Tithi Grammar (MASA-PAKSHA-TITHI-FREQ)

VEDIC Schedules carry a vedic_tithi_spec in a structured KEY=VALUE grammar. REF011 is the first VGSF
domain to implement a Vedic tithi grammar validator at the DB layer
(validate_vedic_tithi_spec). The
grammar:

MASA=<masa>;PAKSHA=Shukla|Krishna;TITHI=<n>;FREQ=YEARLY|MONTHLY

Representative specifications:

TITHI=Purnima;MASA=Kartika;FREQ=YEARLY    → Kartika Purnima, annually (Sharad Purnima / Kojagari)
TITHI=Ekadashi;FREQ=MONTHLY               → Ekadashi (both Shukla + Krishna) monthly
TITHI=Navami;MASA=Chaitra;FREQ=YEARLY     → Ram Navami (Chaitra Shukla Navami)
TITHI=Purnima;MASA=Ashadha;FREQ=YEARLY    → Guru Purnima (Ashadha Purnima)

The MASA-YEARLY constraint (RULE-VED-001): MASA is required when FREQ=YEARLY. A yearly Vedic
occasion is identified by its lunar month; a yearly spec without a MASA is constitutionally incomplete. This
rule is enforced at the DB layer — a first-of-kind contribution in VGSF.

Dual-paksha resolution (CERT-OBS / TITHI=15): When a TITHI (e.g. Ekadashi, Purnima/Amavasya at the
fortnight boundary) is observed in both pakshas, the omission of PAKSHA denotes both Shukla and Krishna
occurrences; the dual-paksha tithi count resolves to 15 per fortnight pair. Sacred-calendar edge cases are a
recorded certification observation, not an open defect.

5.3 HYBRID — Dual Specification

A HYBRID Schedule populates both rrule_spec AND vedic_tithi_spec. The Gregorian date is the
operational scheduling date (for calendar and notification systems); the Vedic specification is the
constitutional identity of the occasion (for display and spiritual significance). Both specs are required
simultaneously.

5.4 The Generation Gate (Cross-Domain Service Contract)

REF011 is the first VGSF domain to introduce a generation gate function as a cross-domain service
contract
. fn_assert_generation_permitted (SECURITY DEFINER) is the constitutionally-callable DB entry
point that other domains (chiefly REF004) invoke before generating Event instances. The gate enforces
RULE-SCH-004 / SI-005: it permits generation only when the Schedule is ACTIVE, and refuses for DRAFT,
PAUSED, CANCELLED, and ARCHIVED Schedules. This function is how the REF011 → REF004 directionality is enforced
without REF011 holding any knowledge of, or FK to, the Events it begets.


6. Schedule Lifecycle [T11.§6]

6.1 The State Machine

DRAFT ──activate──→ ACTIVE ──pause──→ PAUSED ──resume──→ ACTIVE
                       │  └────────────────────────────────┘
                       ├─cancel──→ CANCELLED   (terminal)
                       └─archive──→ ARCHIVED   (terminal)
            PAUSED ─cancel──→ CANCELLED   (terminal)

DRAFT → ACTIVE → { PAUSED ⇄ ACTIVE, CANCELLED, ARCHIVED }. PAUSED and ACTIVE form the only reversible pair;
CANCELLED and ARCHIVED are terminal.

6.2 State Definitions

StateConstitutional meaningGeneration?Recurrence editable?
DRAFTPattern is being defined; not yet authorized to runNoYes
ACTIVEAuthorized and running; the only generating stateYesNo (locked — SI-013)
PAUSEDTemporarily suspended; resumable to ACTIVENoYes
CANCELLEDPermanently stopped; terminal (SI-006)NoNo
ARCHIVEDRead-only historical record; terminal (SI-007)NoNo

6.3 Transition Rules

RULE-LC-001 (Authority on every edge): Every transition requires a REF008 Authority grant (SI-014).
RULE-LC-002 (Ledger on every edge): Every transition appends a row to ref011_schedule_events with
previous_status, new_status, actor_party_id, and timestamp (SI-004).
RULE-LC-003 (Generation only from ACTIVE): Only ACTIVE permits Event generation (SI-005).
RULE-LC-004 (Recurrence lock in ACTIVE): Recurrence specs are immutable while ACTIVE (SI-013).
RULE-LC-005 (Terminality): CANCELLED and ARCHIVED admit no outbound transition (SI-006, SI-007); ARCHIVED
is fully read-only.

6.4 The Eight Lifecycle Functions + the Generation Gate

REF011 exposes its lifecycle exclusively through SECURITY DEFINER functions (EXECUTE granted to ref011_app).
State never changes by direct UPDATE; it changes only through these functions, each of which writes the ledger.

#FunctionTransition / role
1fn_createCreate DRAFT; writes CREATED ledger event
2fn_activateDRAFT/PAUSED → ACTIVE; writes ACTIVATED/RESUMED
3fn_pauseACTIVE → PAUSED; writes PAUSED
4fn_resumePAUSED → ACTIVE; writes RESUMED
5fn_cancelACTIVE/PAUSED → CANCELLED (terminal); writes CANCELLED
6fn_archive→ ARCHIVED (terminal, read-only); writes ARCHIVED
7validate_rrule_specWrite-time RFC 5545 FREQ= validation
8validate_vedic_tithi_specWrite-time Vedic grammar validation (incl. MASA-YEARLY)
+fn_assert_generation_permittedCross-domain generation gate (§5.4) — ACTIVE-only contract

7. Governance & Authority [T11.§7]

All lifecycle authority flows from REF008 (Authority). REF011 consumes three authority grants and mints
none of its own:

GrantGoverns
SCHEDULE_CREATECreating a Schedule (DRAFT)
SCHEDULE_ACTIVATEActivating / resuming a Schedule (begins generation eligibility)
SCHEDULE_MANAGEPausing, cancelling, archiving, and modifying recurrence in DRAFT/PAUSED

DB-layer authority confirmed: the eight SECURITY DEFINER lifecycle functions with EXECUTE grants to
ref011_app form the enforced infrastructure. Service-layer enforcement of the three grants is the subject
of CERT-OBS-001 (DEFERRED) — it is deferred to the application-layer program and to REF008 certification
scope, which R-CERT confirmed is constitutionally appropriate for a DB-layer certification (the S6-OBL-1
authority gate is the pending seam, contingent on REF008).

Role separation: authoring this charter (R-ARCH) is distinct from certifying it (R-CERT). REF011 was
specified, verified, and certified through separate programs preserving the absolute separations
(R-ARCH ≠ R-CERT; R-VARCH ≠ R-VEXEC; R-VEXEC ≠ R-CERT).


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

DomainReferenceNotes
REF001 Partyowner_party_id, created_by_party_id, actor_party_id → party_idSoft-check (assert_party_exists); no DDL FK crosses schemas
REF003 Placedefault_location_place_id → place_id (nullable)Soft-check (assert_place_exists); default venue only
REF004 EventIncoming schedule_id → ref011_schedules (nullable)Held by REF004, not mirrored back; resolved by CAP147A
REF008 AuthoritySCHEDULE_CREATE / SCHEDULE_ACTIVATE / SCHEDULE_MANAGEService-layer gate (CERT-OBS-001 pending REF008)
REF005 / REF010 / REF014Indirect / downstreamResource pre-allocation, case coordination, initiative containment all live elsewhere

Cross-domain seam discipline: REF011 maintains seam integrity via soft-check functions
(assert_party_exists, assert_place_exists); no DDL foreign keys cross schema boundaries. Scheduled
Events carry schedule_id (SI-009); ad-hoc Events with schedule_id = NULL are valid (SI-010). The
REF004 → REF011 FK migration (adding schedule_id to ref004_events) was tracked as CERT-OBS-005 (PENDING)
under PS-CAP141A-002 and is now RESOLVED via CAP147A.


9. Constitutional Invariants Summary [T11.§9]

The load-bearing invariants, codified SI-001 through SI-015 in the canonical constitution, carried here:

#InvariantEnforcement
SI-001Immutable schedule_idDB: UUID PK, no delete
SI-002Owner Party continuityDB: NOT NULL FK
SI-003Creation attribution immutableDB: NOT NULL FK, no update
SI-004Lifecycle ledger append-onlyDB trigger: deny UPDATE/DELETE
SI-005Generation gate: only ACTIVE generatesfn_assert_generation_permitted (service contract)
SI-006CANCELLED is terminalLifecycle function
SI-007ARCHIVED is read-onlyLifecycle function
SI-008REF011 → REF004 direction mandatorySchema: no stored FK to Events
SI-009Scheduled Events carry schedule_idREF004 constraint
SI-010Ad-hoc Events (schedule_id = NULL) validREF004: nullable FK
SI-011iCal RFC 5545 conformanceWrite-time FREQ= validation
SI-012Vedic spec required for VEDIC/HYBRIDDB check constraint + grammar validator
SI-013Recurrence rule locked in ACTIVEDB trigger
SI-014Authority gate for all transitionsService layer: REF008 check
SI-015effective_until ≥ effective_fromDB check constraint

Certification observations carried (CAP146A):

  • CERT-OBS-001 (DEFERRED): S6-OBL-1 service-layer REF008 authority gate (SCHEDULE_CREATE / SCHEDULE_ACTIVATE / SCHEDULE_MANAGE) deferred to the application layer and REF008 certification scope; DB infrastructure (8 SECURITY DEFINER functions) confirmed.
  • CERT-OBS-002 / 003 (METHODOLOGY): Phase 5a defects (DO-block smoke testing; has_*_privilege() for cross-role checks) → MO-146A-001 / MO-146A-002.
  • CERT-OBS-004 (DEFERRED): Full RFC 5545 RRULE parsing deferred; FREQ= prefix check satisfies the write-time validation requirement at this lifecycle stage.
  • CERT-OBS-005 (RESOLVED): REF004 schedule_id FK migration — resolved via CAP147A.
  • Vedic dual-paksha TITHI=15: sacred-calendar edge case recorded as an observation, not a defect.

First-of-kind constitutional contributions: first VGSF domain with a Vedic tithi grammar at the DB layer;
first with a generation-gate function as a cross-domain service contract; first to support three simultaneous
calendar systems (GREGORIAN / VEDIC / HYBRID); first to enforce the MASA-YEARLY rule at the DB layer.


Constitutional Colophon — T11
This chapter establishes REF011 Schedule as the constitutional instrument that governs when recurring organizational activities are authorized to occur — a forward-looking Master record that holds the recurrence specification, delegates Event generation through a certified gate function, and preserves every lifecycle change in an append-only ledger, distinguishing itself categorically from the Events it generates (REF004), the Obligations that duty requires (REF007), and the Case service plans that coordinate delivery (REF010).
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 T12 REF013 Knowledge should carry forward:
the constitutional numbering note — REF012 is RETIRED-NOT-REUSED (NPS-7); REF013 is the next live domain number after REF011, and its subject matter is entirely distinct from the temporal commitment layer — REF013 governs the intellectual content VGSF creates, curates, and transmits.


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.