The Last Application · Part V — Technical Appendices

Chapter 18 — Semantic State and Representability

4 min read

This chapter defines semantic closure as a membership condition on evolution, and identifies the product’s internal model with a typed graph. Every later chapter assumes these definitions.

Semantic state

Definition 18.1 (Semantic state). A system carries a semantic state

S=(X,M,R)S = (X, M, R)

where:

  • XX is the substrate — the physical and computational machinery that stores bits and runs interpreters (hosts, databases, engines, model APIs).
  • MM is the internal model — a structured description of the product and the aspects of the world the product must know.
  • RR is the representational relation — the correspondence between states of MM and states of the world, together with the causal paths by which changes in MM change what XX does.

RR is not a single function. It includes typing, linking, rendering, execution, and policy. What matters is that RR is internal: the system does not need an external manuscript to know what it is.

Evolution and semantic closure

Let O(S)\mathcal{O}(S) be the set of evolution operators available to the system at SS — every way the product may change: human craft, agent edit, workflow commit, promote, heal, install.

Definition 18.2 (Semantic Closure Criterion). The system is semantically closed at SS when every admissible evolution lies in the representational capacity of SS:

FR(S)for all FOadm(S).F \in R(S) \quad \text{for all } F \in \mathcal{O}_{\mathrm{adm}}(S).

Equivalently: there is no admissible change whose meaning exists only outside MM (in a slide deck, a forked UI tree, an unrecorded chat, or an engineer’s memory). If such a change exists, write FF_\perp for its unrepresentable component; then FR(S)F \notin R(S).

Reading. This is a criterion on product systems, not a theorem of pure mathematics. Semantic closure is not Turing completeness. It is the absence of a silent second description of the product.

The model as a typed graph

For product systems of the kind this book describes, MM is realized as a finite labeled directed graph.

Definition 18.3 (Product graph).

G=(V,E,L)G = (V, E, L)
  • VV is a finite set of objects (nodes).
  • EV×VE \subseteq V \times V is a finite set of links (directed edges), possibly with edge labels drawn from a finite alphabet.
  • L:VΣL: V \to \Sigma assigns each object a schema label from a finite schema alphabet Σ\Sigma.

Definition 18.4 (DataObject). An object oVo \in V is a record

o=(id(o),L(o),d(o),(o))o = (\mathrm{id}(o),\, L(o),\, d(o),\, \ell(o))

where id(o)\mathrm{id}(o) is a globally unique identifier, L(o)ΣL(o) \in \Sigma is its schema, d(o)d(o) is a typed payload (a finite key–value structure conforming to the schema), and (o)\ell(o) is the set of outbound link targets in VV.

Definition 18.5 (Schema). A schema σΣ\sigma \in \Sigma is a signature

σ=(reqσ,optσ,τσ)\sigma = (\mathrm{req}_\sigma,\, \mathrm{opt}_\sigma,\, \tau_\sigma)

where reqσ\mathrm{req}_\sigma and optσ\mathrm{opt}_\sigma are finite sets of field names and τσ\tau_\sigma assigns each field a value type (string, boolean, number, enum, object, array, reference, …). Write d(o)σd(o) \models \sigma when the payload satisfies the signature.

Axiom 18.1 (Identity). id:VID\mathrm{id}: V \to \mathsf{ID} is injective. No two live objects share an identifier.

Axiom 18.2 (Typing). For every oVo \in V, d(o)L(o)d(o) \models L(o).

Axiom 18.3 (Referential integrity). For every link (u,v)E(u, v) \in E, vVv \in V.

When these axioms hold, GG is a well-formed product graph. Chapter 19 treats violations as rejected mutations.

Completeness of the product description

Let P\mathcal{P} be the set of product facets the organization treats as first-class: experience structure, process definitions, knowledge, integrations, events, brand, policy, and skills.

Definition 18.6 (Descriptive completeness). GG is descriptively complete for P\mathcal{P} when there is a surjective assignment

Φ:PParts(G)\Phi: \mathcal{P} \twoheadrightarrow \mathsf{Parts}(G)

such that every facet pPp \in \mathcal{P} is encoded as a (possibly empty) subgraph Φ(p)G\Phi(p) \subseteq G, and every runtime behavior attributed to pp is a function of Φ(p)\Phi(p) and XX alone.

If some facet lives only in XX (hard-coded pages, shadow process engines, chat-only doctrine), descriptive completeness fails and FR(S)F \in R(S) fails for changes to that facet.

Chart of the state

Definition 18.7 (Computational chart). On the open set of well-formed graphs, identify

M        GM \;\;\longleftrightarrow\;\; G

so that the semantic state for product work is effectively

S        (X,G,RG)S \;\;\simeq\;\; (X,\, G,\, R_G)

with RGR_G the interpreters attached to GG (renderer, workflow engine, query API, agent tools, policy checker).

This is the sense in which the graph is the source of truth: GG is MM, and projections of GG are not alternative models.

Seven clauses, formalized

ClauseFormal reading
CompleteDescriptive completeness (Def 18.6); FR(S)F \in R(S)
StructuredGG with Axioms 18.1–18.3
ReadExistence of projections π\pi and machine readers of GG
VerifyIntegrity predicate II before commit (Ch 19)
RewriteMutations Δ\Delta applied by δ\delta (Ch 19)
Under governanceRestriction to admissible operators A\mathcal{A} (Ch 23)
While runningInterpreters in XX read live GG without a compile step that forks MM

The point

Semantic closure is FR(S)F \in R(S). For this paradigm, MM is the typed graph GG. The next chapter defines how GG moves.