Prefix: meta_.
The schema describing itself: which families exist, where the exceptions live, and how the roster closes against the relations actually observed. These rows are versioned with the schema definition and never change at run time. The reference pages you are reading are rendered from this family’s rows and the comments beside them.
Where to start
- meta_family
-
The family roster: one row per relation-name prefix, keyed by the prefix under the schema’s naming discipline (a family is named for whose vocabulary its rows are written in, never for its reader or its role).
- meta_relation_family
-
The census that closes the roster: every relation in the schema, its kind, the family whose prefix covers it, and whether an exemption row places it.
- meta_relation
-
One declared relation: which grain it is at, which gatherer owns it, what one of its rows is, one example of one, and why the relation exists at all.
How this family meets the others
store_-
4 foreign keys from that family’s rows into this one.
graphitron_-
4 foreign keys from that family’s rows into this one.
Why the name is right
The schema’s own description: the family roster, each family’s headline relations and its sanctioned normalization crossings, the placement of relations no prefix covers, the census that closes both rosters against the observed schema, the declared key edges resolved out of the engine’s catalog, the corpus, gatherer and grain rosters with the per-relation declarations binding each declared relation to them, and the roster of relations this file supplies the rows of rather than any gatherer. Rows that are a function of this file alone, versioned with the DDL they describe and never refreshable apart from it, which is the property that matters and which every form in the family keeps: a roster stated as a VALUES view has rows that are part of the definition, and a roster stated as a table has rows an INSERT in this same file supplies before any run opens the store. A resident whose rows a constraint should defend takes the table form, a key, a foreign key and a CHECK being nothing a view can carry: the declaration rosters around meta_relation are tables whose rows an INSERT in this same file supplies; the two older rosters keep the view form until an item converts them.
meta_corpus
One corpus the store reads: an input that exists outside the store and independently of the other inputs, named so gatherers and grains can say which input they are about. For example the row named sdl is the GraphQL schema documents. Keyed on the name; the gatherer junction and the grain roster resolve into it by foreign key, so a corpus cannot be misspelled at either site.
Primary key: (corpus_name). Check: CHAR_LENGTH("DEFINITION") BETWEEN 1 AND 300.
corpus_name(CHARACTER VARYING, not null)-
the corpus’s name, the roster’s key, in lowercase kebab case
definition(CHARACTER VARYING, not null)-
one sentence saying what the corpus is; length-checked by the CHECK beside it
meta_family (view)
The family roster: one row per relation-name prefix, keyed by the prefix under the schema’s naming discipline (a family is named for whose vocabulary its rows are written in, never for its reader or its role). The introduction column presents each family to a first-time reader and the definition column carries its charter, the latter migrated out of this file’s header so the roster has one home; the generated schema reference renders one page per row, ordered by ordinal, and the schema gates close the roster against the observed relations in both directions.
prefix(CHARACTER VARYING, nullable)-
Not described here yet: H2 keeps no comment on a view’s column.
title(CHARACTER VARYING, nullable)-
Not described here yet: H2 keeps no comment on a view’s column.
ordinal(INTEGER, nullable)-
Not described here yet: H2 keeps no comment on a view’s column.
introduction(CHARACTER VARYING, nullable)-
Not described here yet: H2 keeps no comment on a view’s column.
definition(CHARACTER VARYING, nullable)-
Not described here yet: H2 keeps no comment on a view’s column.
meta_family_bridge (view)
The sanctioned normalization crossings: one row says that this relation owns the rule by which a name written in one family’s vocabulary is matched against another family’s census. How two families meet is a fact about the schema rather than prose an author writes about it, so the crossings are declared here in the DDL the way the family roster and the gatherer roster are, and the reference renders the declarations. What the roster defends against is a fork: a new view can re-derive a normalization with its own function calls in a join predicate, produce plausible rows, and quietly leave two rules where the schema states one. Membership is two tests together. A relation is on the roster when it owns a normalization rule of its own, spelled in its own body, not when it reads a relation that states one; and when that rule mediates a meeting between two families' vocabularies, not a normalization inside one. Where the DDL assigns a rule’s ownership in its own comments, the roster follows that assignment, so a coordinate-shaped sibling whose comment says the rule is argued at the other site restates a body rather than a rule and earns no second row. Crossings by plain column equality on a shared natural key are deliberately absent: a foreign key is already a declared, engine-checked join path, and an identity comparison has no rule to re-derive differently, so there is nothing a new view could silently fork. The declarations are resolve-gated only. Whether they cover every crossing the views actually perform is a derivation over the view-read census, which no declaration can answer on its own, and until that closure exists the reference presents these rows as declarations and claims no exhaustiveness.
relation_name(CHARACTER VARYING, nullable)-
Not described here yet: H2 keeps no comment on a view’s column.
spelled_prefix(CHARACTER VARYING, nullable)-
Not described here yet: H2 keeps no comment on a view’s column.
census_prefix(CHARACTER VARYING, nullable)-
Not described here yet: H2 keeps no comment on a view’s column.
rule(CHARACTER VARYING, nullable)-
Not described here yet: H2 keeps no comment on a view’s column.
meta_family_headline (view)
The headline roster: the relations a reader should meet first in each family, typically its central grain plus the derivations that make the grain useful. Curation is judgment, which is why membership is authored here and nothing else about a row is: the family comes from the meta_relation_family census by join rather than being stored beside the name, and what each headline means comes from the relation’s own comment, so there is no second blurb to drift from the first. The generated schema reference renders the roster as the family page’s starting point, each entry the relation name linked to its own entry further down the page plus the first sentence of that comment. Not named for the store glossary’s word grain, which this roster does not mean: a reader of the reference must never have to disambiguate a load-bearing word.
relation_name(CHARACTER VARYING, nullable)-
Not described here yet: H2 keeps no comment on a view’s column.
ordinal(INTEGER, nullable)-
Not described here yet: H2 keeps no comment on a view’s column.
meta_gatherer
One fact gatherer: a producer that fills this store, rostered so a relation can declare which one owns it. For example the row named sdl is the gatherer whose class is SdlFactCapture. The class column is what keeps the roster from becoming a second vocabulary: a gate loads every named class, so a row cannot quietly outlive the code it points at. What a gatherer reads is stated beside it, its corpora in meta_gatherer_corpus and its declared read edges in meta_gatherer_dependency.
Primary key: (gatherer_name).
gatherer_name(CHARACTER VARYING, not null)-
the gatherer’s name, the roster’s key, in lowercase kebab case
gatherer_class(CHARACTER VARYING, not null)-
the fully qualified Java class that is the gatherer’s entry point, unique per row; a class-loading gate in the graphitron module holds every value to a class that exists. The derivation gatherer names DerivationStratum, which runs the post-capture stages its relations sit beside: the three it still owns, lint_violation and the two stale-module views, are views evaluated on read, each waiting for the gatherer it belongs to.
meta_gatherer_corpus
One corpus a gatherer reads: a declared pairing of one gatherer with one outside input. For example the catalog gatherer carries two rows, catalog and classpath. A gatherer with at least one row here is a crawler, and this junction is the store’s definition of that word: a transcription pass whose rows about its own corpus may not vary with any other corpus’s contents. A gatherer with no row here reads no corpus at all: it reads captured rows, and is thereby free to cross corpora, which is what the derivation gatherer is. The graphitron gatherer is the one that is both: its capture phase decodes the documents' graphitron directives as written, and its anchor phase resolves them against the catalog, the classpath and the configuration, so it declares all four and its edges say whose rows the anchor reads.
Primary key: (gatherer_name, corpus_name). Foreign key: (gatherer_name) references meta_gatherer (gatherer_name). Foreign key: (corpus_name) references meta_corpus (corpus_name).
gatherer_name(CHARACTER VARYING, not null)-
the reading gatherer, a meta_gatherer key
corpus_name(CHARACTER VARYING, not null)-
the corpus read, a meta_corpus key
meta_gatherer_dependency
One declared read edge between gatherers: the first may read rows the second produced. For example the derivation gatherer depends on every crawler, which is what running last means once it stops being a position. Declared rather than derived from the view bodies, deliberately: the declaration states the intended shape, and the view-ownership gate denies a declared view that reads outside its owner’s dependency set, so a view forking the shape fails instead of widening it. A crawler’s capture carries no edges: its rows about its own corpus may not vary with any other corpus’s contents, which is the same statement as depending on nobody, so the sdl and catalog gatherers stand independent of each other and of everything else. An edge runs from a gatherer that crosses corpora: the graphitron gatherer, whose anchor phase resolves what its capture phase decoded against the transcription, the catalog and the classpath, and the derivation gatherer downstream of them all. The roster drives no execution: the order gatherers run in is FactCapture.capture’s statement order, and these edges are what that order has to satisfy. What makes the order able to satisfy them is that each gatherer’s rows are flushed to the store before the next one starts, a flush inside the load’s one transaction being what lets a downstream gatherer read an upstream’s rows without publishing a partition mid-load.
Primary key: (gatherer_name, depends_on). Foreign key: (gatherer_name) references meta_gatherer (gatherer_name). Foreign key: (depends_on) references meta_gatherer (gatherer_name). Check: "GATHERER_NAME" <> "DEPENDS_ON".
gatherer_name(CHARACTER VARYING, not null)-
the dependent gatherer, the one performing the read; a meta_gatherer key
depends_on(CHARACTER VARYING, not null)-
the prerequisite gatherer whose rows may be read; a meta_gatherer key, and never the dependent itself, the CHECK refusing the length-one cycle
meta_grain
One grain this store knows about: what one row of a relation at this grain is about. For example a grain named field with key shape graph_name, type_name, field_name says one row is one field of one type in one graph. The store already states every grain twice without naming it, a relation’s primary key being its grain as columns and its comment’s first sentence being its grain as prose; this roster is the same fact as data, and a declared base table’s key must equal its grain’s shape (gated).
Primary key: (grain_name). Foreign key: (corpus_name) references meta_corpus (corpus_name). Check: CHAR_LENGTH("INSTANCE_TEXT") BETWEEN 1 AND 300. Check: CHAR_LENGTH("KEY_SHAPE") >= 1.
grain_name(CHARACTER VARYING, not null)-
the grain’s name, the roster’s key, in lowercase kebab case
instance_text(CHARACTER VARYING, not null)-
one sentence saying what one instance of the grain is; length-checked
key_shape(CHARACTER VARYING, not null)-
the canonical key as a comma-separated column list in key order; a declared base table at this grain carries exactly this primary key (gated)
corpus_name(CHARACTER VARYING, not null)-
the corpus the grain lives in, a meta_corpus key; where a declared relation’s owner reads any corpus at all, the grain’s corpus must be among them (gated)
meta_prefixless_relation (view)
The placement exemptions: one row per relation deliberately outside every family, in the exemption polarity the schema gates use throughout, so a new prefix-less relation fails the roster gate until an authored row argues it in. The page column places the relation in the generated reference; the reason column carries the no-family argument beside the relation’s own comment.
relation_name(CHARACTER VARYING, nullable)-
Not described here yet: H2 keeps no comment on a view’s column.
page(CHARACTER VARYING, nullable)-
Not described here yet: H2 keeps no comment on a view’s column.
reason(CHARACTER VARYING, nullable)-
Not described here yet: H2 keeps no comment on a view’s column.
meta_relation
One declared relation: which grain it is at, which gatherer owns it, what one of its rows is, one example of one, and why the relation exists at all. For example a row for sql_column names its grain, the catalog gatherer as its owner, and one concrete column as its example. A relation with no row is one nobody has declared yet; the roster of those is pinned in MetaDeclarationGateTest, frozen when this model landed and only ever shrinking, so a new relation cannot arrive undeclared. A declared relation’s own comment must equal grain_text and example joined (gated), which keeps the inline description a SQL client shows and these columns from drifting apart.
Primary key: (relation_name). Foreign key: (grain_name) references meta_grain (grain_name). Foreign key: (owner_name) references meta_gatherer (gatherer_name). Check: CHAR_LENGTH("GRAIN_TEXT") BETWEEN 1 AND 300. Check: CHAR_LENGTH("EXAMPLE") BETWEEN 1 AND 300. Check: CHAR_LENGTH("RATIONALE") BETWEEN 1 AND 1500.
relation_name(CHARACTER VARYING, not null)-
the declared relation’s name, the key; must name an observed relation (gated)
grain_name(CHARACTER VARYING, not null)-
the grain the relation is at, a meta_grain key
owner_name(CHARACTER VARYING, not null)-
the gatherer that owns the relation, a meta_gatherer key, the column named for the role the reference plays; a declared view may read only relations its owner owns or declares a dependency on (gated)
grain_text(CHARACTER VARYING, not null)-
the one sentence saying what one row is: a single sentence by GrainSentence’s own rule, and the first sentence of the relation’s comment (both gated)
example(CHARACTER VARYING, not null)-
one example row stated concretely, and the remainder of the relation’s comment after the grain sentence (gated)
rationale(CHARACTER VARYING, not null)-
why this relation exists, a paragraph at most by the CHECK beside it; measurements, rejected shapes and arguments with earlier authors belong in the architecture docs rather than here
meta_relation_family (view)
The census that closes the roster: every relation in the schema, its kind, the family whose prefix covers it, and whether an exemption row places it. The one relational answer to which family a relation belongs to: the schema gates, the generated reference and the docs drift guard all read this view rather than re-deriving the match, so two mechanisms of different fidelity can never answer the question differently.
relation_name(CHARACTER VARYING, nullable)-
Not described here yet: H2 keeps no comment on a view’s column.
relation_type(CHARACTER VARYING, nullable)-
Not described here yet: H2 keeps no comment on a view’s column.
prefix(CHARACTER VARYING, nullable)-
Not described here yet: H2 keeps no comment on a view’s column.
exempted(BOOLEAN, nullable)-
Not described here yet: H2 keeps no comment on a view’s column.
meta_relation_reference (view)
The declared key edges: one row per FOREIGN KEY the schema declares, naming the relation that references and the relation referenced, each with the family the census places it in. At constraint grain deliberately, and not filtered to the edges that leave a family: cross-family is a predicate a reader applies to these rows, not a population baked into the relation, and the name says what a row is rather than where it happens to render. Resolved out of the engine’s own catalog, a referential constraint through the key columns on both ends, so the edges are exactly what the DDL declares and no second list can fall behind them. A store view rather than something a renderer aggregates for itself, because family assignment is never re-derived outside the census, and because the generated reference is only the first reader: a gate closing the declared normalization crossings and the schema surface the editor tooling reads both ask this same question. Derivation seeded by declaration is the shape the whole family relationship rests on, here the declared foreign keys.
child_relation_name(CHARACTER VARYING, nullable)-
Not described here yet: H2 keeps no comment on a view’s column.
child_prefix(CHARACTER VARYING, nullable)-
Not described here yet: H2 keeps no comment on a view’s column.
parent_relation_name(CHARACTER VARYING, nullable)-
Not described here yet: H2 keeps no comment on a view’s column.
parent_prefix(CHARACTER VARYING, nullable)-
Not described here yet: H2 keeps no comment on a view’s column.
meta_stage
One stage of a gatherer’s anchor phase, with the gatherer that runs it, its place in that gatherer’s order and its class. For example occurrence-depths is the graphitron gatherer’s stage whose class is OccurrenceDepths, and owns the route defects its walk writes.
Primary key: (stage_name). Foreign key: (gatherer_name) references meta_gatherer (gatherer_name). Check: "POSITION" >= 0.
stage_name(CHARACTER VARYING, not null)-
the stage’s name, the roster’s key, in lowercase kebab case and unique across gatherers
gatherer_name(CHARACTER VARYING, not null)-
the gatherer whose anchor phase runs the stage, a meta_gatherer key: what a stage owns, its gatherer owns, so the gatherer’s sweep reaches its stages' rows
position(INTEGER, not null)-
where the stage runs in its gatherer’s anchor phase, from zero; the gatherer runs its stages in this order, a gate in this module holding the list it runs to these rows, so a stage reading a relation a later stage writes can be refused from the roster rather than found by reading the code
stage_class(CHARACTER VARYING, not null)-
the fully qualified Java class whose code the stage runs; a class-loading gate in the graphitron module holds every value to a class that exists, and one class may run two stages, as FederationLinks runs the link and its imports
meta_stage_rule
One rule view a stage inserts a relation from: one row per stage, relation and view. For example occurrence-builds inserts graphitron_occurrence_binding from graphitron_occurrence_binding_member_rule, whose kind column says MEMBER.
Primary key: (stage_name, relation_name, rule_view). Foreign key: (stage_name, relation_name) references meta_stage_write (stage_name, relation_name).
stage_name(CHARACTER VARYING, not null)-
the inserting stage; with the relation, its meta_stage_write
relation_name(CHARACTER VARYING, not null)-
the relation the stage inserts, lower case as meta_stage_write declares it
rule_view(CHARACTER VARYING, not null)-
the rule view the stage inserts from, lower case, completing the key; where the relation is split between stages, its kind column carries only kinds meta_stage_write_kind declares for the stage
meta_stage_write
One relation a stage writes rows into: an insert, a merge, an update or a delete the stage issues, a sweep of its own relations included. For example occurrence-depths writes graphitron_path_need.
Primary key: (stage_name, relation_name). Foreign key: (stage_name) references meta_stage (stage_name).
stage_name(CHARACTER VARYING, not null)-
the writing stage, a meta_stage key
relation_name(CHARACTER VARYING, not null)-
the base table written, lower case as declared; a gate in this module reads the stage writes the fact documents' captures recorded and refuses one its stage does not declare here
meta_stage_write_kind
One kind of row a stage writes into a relation it shares with another stage, the relation split between them by a column it carries: one row per stage, relation and kind. For example occurrence-producers writes the SERVICE, WRITE and ROUTINE rows of graphitron_occurrence_call, and occurrence-bindings its CONDITION and EXPRESSION rows.
Primary key: (stage_name, relation_name, kind). Foreign key: (stage_name, relation_name) references meta_stage_write (stage_name, relation_name).
stage_name(CHARACTER VARYING, not null)-
the writing stage; with the relation, its meta_stage_write
relation_name(CHARACTER VARYING, not null)-
the shared relation, lower case as meta_stage_write declares it
kind_column(CHARACTER VARYING, not null)-
the column the relation is split by, lower case
kind(CHARACTER VARYING, not null)-
a value of that column whose rows the stage writes and sweeps, completing the key
meta_stated_relation
One relation whose rows this file, or a resource shipped beside it, supplies: what one of its rows is, an example of one, and why it is stated rather than gathered. For example lint_rule is stated, its rows being the vocabulary the schema’s own constraints rest on.
Primary key: (relation_name). Check: CHAR_LENGTH("GRAIN_TEXT") BETWEEN 1 AND 300. Check: CHAR_LENGTH("EXAMPLE") BETWEEN 1 AND 300. Check: CHAR_LENGTH("RATIONALE") BETWEEN 1 AND 1500.
relation_name(CHARACTER VARYING, not null)-
the stated relation’s name as declared; the roster’s key, and it must resolve to an observed relation (gated) on meta_relation’s terms
grain_text(CHARACTER VARYING, not null)-
what one row of it is, in one sentence, on meta_relation.grain_text’s terms including the echo against the relation’s own comment
example(CHARACTER VARYING, not null)-
one concrete row, on meta_relation.example’s terms
rationale(CHARACTER VARYING, not null)-
why the rows are the file’s rather than a gatherer’s. The bar is not that the rows change rarely: a gathered relation whose corpus never changes is still gathered. It is that no corpus outside the store could be read to produce them, because they are the vocabulary this file itself declares, so a refresh has nothing to re-read and a gate has nothing to compare against but the DDL