The Last Application · Part V — Technical Appendices

Chapter 21 — Substrate and Taxonomy

3 min read

Chapters 18–20 defined the mathematics of state, mutation, and workflows. This chapter expresses that mathematics as an architecture: a single store, a schema lattice, and the interpreters that surround it — without a second product codebase.

Architectural claim

The product exists as governed data. Code is the runtime around it.

Formally: M=GM = G (Chapter 18), and XX is the fixed family of interpreters {πi}{EngineW}{Store}\{\pi_i\} \cup \{\mathsf{Engine}_W\} \cup \{\mathsf{Store}\}. Creating an application is a sequence of gated mutations on GG, not the shipment of a parallel page tree as source of truth.

The store

Definition 21.1 (Store). A store is a persistence + memory pair

Store=(Disk,RAM)\mathsf{Store} = (\mathsf{Disk},\, \mathsf{RAM})

with hydration DiskRAM\mathsf{Disk} \to \mathsf{RAM} on boot and write-through RAMDisk\mathsf{RAM} \to \mathsf{Disk} on commit. On live systems, durable rows are the source of truth; RAM is a working image.

Each row realizes a DataObject o=(id,L,d,)o = (\mathrm{id}, L, d, \ell) (Definition 18.4). Query and mutation APIs (for example typed GraphQL derived from Σ\Sigma) are projections and operator surfaces over Store\mathsf{Store}, not alternative models.

Schema lattice

Definition 21.2 (Lean lattice). The schema alphabet Σ\Sigma is finite and versioned. Representative families:

FamilyRole in GG
MetaSchemas about schemas; packs
ExperienceExperience roots, pages, components, themes
ProcessWorkflows, runs (as objects or run stores keyed by workflow)
KnowledgeSources, chunks, skills (doctrine)
IntegrationConnectors, sealed handles
TelemetryOrganizational events
GovernanceIssues, goals, change requests, policy bindings
DesignToken sets, themes, design systems, specs

Definition 21.3 (Pillar partition). A pillar map is a partition (or soft cover) of live objects:

Pillars={Exp,Wf,Know,Int,Evt}\mathsf{Pillars} = \{\mathsf{Exp},\, \mathsf{Wf},\, \mathsf{Know},\, \mathsf{Int},\, \mathsf{Evt}\}

with Φ\Phi from Definition 18.6 landing each facet in one or more pillars. Soft cover allows meta/design objects to serve multiple pillars.

Integrity in the architecture

Chapter 19’s ideal predicate I=IstrItypeIrefIsemI = I_{\mathrm{str}} \wedge I_{\mathrm{type}} \wedge I_{\mathrm{ref}} \wedge I_{\mathrm{sem}} is expressed as layered gates:

LayerImplementsTypical strength
Write-through validatorItypeI_{\mathrm{type}}, partial IrefI_{\mathrm{ref}}May warn or enforce
Craft / ship verifierssubset of IsemI_{\mathrm{sem}} (page, brand, accessibility, …)Deterministic in loops
Promote / issue gatessubset of IsemI_{\mathrm{sem}} (severity, severity)Fail-closed when entitled

Honesty. Write-through may run as III^\circ \le I. Default shipping mode may warn and soften referential checks so pack installs can upsert out of order; enforce mode rejects on typing and hard IrefI_{\mathrm{ref}}. The architecture still states the full II of Chapter 19. Closing remaining gaps (stronger IsemI_{\mathrm{sem}}, complete event coverage on every path) is implementation of the theory, not a new theory.

Interpreters in XX

InterpreterSymbolReads
Experience rendererπUI\pi_{\mathrm{UI}}Experience / page / component subgraph
Query APIπQ\pi_{\mathrm{Q}}Arbitrary typed slices of GG
Workflow engineEngineW\mathsf{Engine}_WWorkflow objects + run state ρ\rho
Knowledge retrieverπK\pi_{\mathrm{K}}Sources, chunks, skills
Integration adaptersAdapt\mathsf{Adapt}Connector objects + vault handles
IDE tool surfaceπIDE\pi_{\mathrm{IDE}}Same GG, gated by A\mathcal{A}

All are functions of (G,X)(G, X). None may become SoT.

Diagram

                    +-----------------------------+
                    |     DataObject store G      |
                    |     schemas · durable DB    |
                    +--------------+--------------+
           +-----------+-----------+-----------+-----------+
           v           v           v           v           v
      Renderer      Query API   Workflows   Knowledge    Events
                                   ^
                          Assistant · IDE tools

The point

Architecture is the store, the lattice, and the interpreters. The mathematics does not change when we name Postgres or GraphQL; those are choices of XX. The next chapter develops pillars and projections in detail — including brand as a structured projection.