ontology, consumer API, smoke note: enumerated sets match their Rust types

ComponentOp has 34 variants (table rewritten), Precondition 9, ActionMismatch
26, FactStanding 3, EdgeKind 1; CausalBoundary field shapes, PatchAnswer,
and the live state/commit/controller-work schema generations follow the
code. The consumer page lists the ops a confined consumer is refused. The
smoke note points at the Idunn acceptance step instead of the historical
play-agent page.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-10-09 20:11:29 +02:00
commit 5cb2ecbb31
3 changed files with 77 additions and 57 deletions

View file

@ -143,8 +143,12 @@ those subjects (`confine_to_ground`, the `PatchGround::Consumer` arm):
place, never the acting subject, and a consumer's ground names no place. place, never the acting subject, and a consumer's ground names no place.
A consumer tells what its mirror knows through `AcquireKnowledge` on its own A consumer tells what its mirror knows through `AcquireKnowledge` on its own
bound subject; it cannot cause a place-wide witnessed event; bound subject; it cannot cause a place-wide witnessed event;
- a `Claimed { by }` fact must name a bound subject; a `Canonical` fact - `Retire`, `GrantAffordance`, `RevokeAffordance`, and `Mint` are always
declaration is refused outright — a consumer's evidence buys an `Admit` refused (`ResolvedOp`s that are authority over standing, not structure over
ground);
- a `Claimed { by }` fact must name a bound subject; a `Ruled` fact is refused
outright, and so is a `Canonical` fact
declaration — a consumer's evidence buys an `Admit`
into its own custody and a `Claimed` fact, never a canonization; into its own custody and a `Claimed` fact, never a canonization;
- a channel's reach and controller must all be bound subjects; - a channel's reach and controller must all be bound subjects;
- every operation's ground subjects must be bound, and its place and route - every operation's ground subjects must be bound, and its place and route
@ -180,9 +184,9 @@ enters a log, a receipt, or the journal.
The consumer capability's tag is part of the commit digest and the The consumer capability's tag is part of the commit digest and the
externally controlled assignment is part of the state shape, so both bump the externally controlled assignment is part of the state shape, so both bump the
schema. World lens weights later entered the state and `SetLensWeights` schema. World lens weights later entered the state and `SetLensWeights`
the commit, so the live schemas are state `ghostlight.world_state.consumer.v5` the commit, so the live schemas are state `ghostlight.world_state.consumer.v6`
(state-schema generation `world-v3`) and commit (state-schema generation `world-v3`) and commit
`ghostlight.world_commit.consumer.v5`. A store written under an earlier schema `ghostlight.world_commit.consumer.v6`. A store written under an earlier schema
is refused, not migrated. is refused, not migrated.
## Not in this pass ## Not in this pass

View file

@ -55,10 +55,11 @@ closed `resolve_patch` that resolves declarations, then operations, and
returns the complete `Vec<Mismatch>` before any canonical ID allocates; returns the complete `Vec<Mismatch>` before any canonical ID allocates;
`derive_id` is deterministic over world, command, and handle. `derive_id` is deterministic over world, command, and handle.
`Declaration::Affordance` admits a catalog entry with preconditions drawn `Declaration::Affordance` admits a catalog entry with preconditions drawn
only from `{ Present, Reachable, Holds }`, effect ceilings, and weighted from the nine `Precondition` variants (`Present`, `Reachable`, `Holds`,
outcome bands. The ten inhabited operations are `Relocate`, `OpenRoute`, `Authorized`, `HasStanding`, `Knows`, `CanBroadcast`, `CanReach`,
`CloseRoute`, `AlterCost`, `Transfer`, `Transform` (one-to-one), `Consume`, `Committed`), effect ceilings, and weighted outcome bands. `ComponentOp` has
`Admit` (same-patch evidence), `Bind`, and `Release`; `apply_operations` is 34 variants (listed under "Component operations"), `Transform` is one-to-one
and `Admit` takes same-patch evidence; `apply_operations` is
the one owner of operation application and conservation, and the one owner of operation application and conservation, and
`patch::check_ledger` is the single named conservation check. `patch::check_ledger` is the single named conservation check.
`CommandBody::AdmitPatch` emits `WorldEffect::PatchAdmitted` through the one `CommandBody::AdmitPatch` emits `WorldEffect::PatchAdmitted` through the one
@ -77,7 +78,7 @@ digest, selects an outcome band from
`BandPreimage { world_id, revision, command_id, affordance, band_count }` `BandPreimage { world_id, revision, command_id, affordance, band_count }`
through `digest()` with no RNG, bounds the proposed effects by the band's through `digest()` with no RNG, bounds the proposed effects by the band's
ceilings, and appends `DecisionEvent { band, effects }`. Rejections are the ceilings, and appends `DecisionEvent { band, effects }`. Rejections are the
complete `ActionMismatch` set (17 variants) under complete `ActionMismatch` set (26 variants) under
`KernelError::ActionRejected`. `Speak` is a kernel-built entry with zero `KernelError::ActionRejected`. `Speak` is a kernel-built entry with zero
preconditions and an empty band that carries speech, synthesized only at preconditions and an empty band that carries speech, synthesized only at
genesis. A controller's tools, signatures, and permissions are derived from genesis. A controller's tools, signatures, and permissions are derived from
@ -249,10 +250,11 @@ the one decode bound for both the elaboration lane and the consumer lane,
under four caps — `MAX_PATCH_BYTES`, `MAX_PATCH_DECLARATIONS`, under four caps — `MAX_PATCH_BYTES`, `MAX_PATCH_DECLARATIONS`,
`MAX_PATCH_OPERATIONS`, `MAX_PATCH_EVIDENCE` — and the consumer document `MAX_PATCH_OPERATIONS`, `MAX_PATCH_EVIDENCE` — and the consumer document
travels over two wire schema constants, `CONSUMER_PATCH_SCHEMA` and travels over two wire schema constants, `CONSUMER_PATCH_SCHEMA` and
`CONSUMER_RECEIPT_SCHEMA`, both `.v0`. The state and commit schemas bump to `CONSUMER_RECEIPT_SCHEMA`, both `.v0`. The state and commit schemas then bumped to
`ghostlight.world_state.consumer.v2` and `ghostlight.world_commit.consumer.v2` `ghostlight.world_state.consumer.v2` and `ghostlight.world_commit.consumer.v2`;
(state-schema generation `world-v3`); a store written under an earlier schema the live schemas are v6 (`STATE_SCHEMA` and `COMMIT_SCHEMA` in
is refused, not migrated. `crates/ghostlight/src/lib.rs`, state-schema generation `world-v3`). A store
written under an earlier schema is refused, not migrated.
`WorldScaleIntent` now arrives at creation, not as a later admission: `WorldScaleIntent` now arrives at creation, not as a later admission:
`world_create.v4` declares the title, the brief, targets, jurisdiction `world_create.v4` declares the title, the brief, targets, jurisdiction
@ -303,13 +305,14 @@ is the typed component diff against the fresh components plus the
knowledge row, and never another subject's snapshot. The re-lowering's knowledge row, and never another subject's snapshot. The re-lowering's
provider request is a distinct round (`interpreter_round`) with its own provider request is a distinct round (`interpreter_round`) with its own
content-addressed request id, so it cannot collide with the first lowering's content-addressed request id, so it cannot collide with the first lowering's
request. State schema is `ghostlight.world_state.consumer.v5`, commit schema request. State schema is `ghostlight.world_state.consumer.v6`, commit schema
`ghostlight.world_commit.consumer.v5`, controller work `controller_work.v16`, `ghostlight.world_commit.consumer.v6`, controller work
Persona turn receipt `ghostlight.persona_turn_receipt.v3`; earlier stores and `ghostlight.controller_work.v17`, Persona turn receipt
earlier rows are refused. Ghostlight owns a conserved narrative ledger; `ghostlight.persona_turn_receipt.v3`; earlier stores and earlier rows are
refused. Ghostlight owns a conserved narrative ledger;
Delvehold owns the economy (`delvehold-forced-ontology-integration.md`). Delvehold owns the economy (`delvehold-forced-ontology-integration.md`).
Step 6 of the plan is complete; the seeded live run is the runbook's business. Step 6 of the plan is complete; the seeded live run is the runbook's business.
Plan step 12 landed the thirteenth row: `PersonaMaterial` (`values`, `voice`, Plan step 12 landed the last row of the component table: `PersonaMaterial` (`values`, `voice`,
`memories`, `reads` keyed by subject) in its own `persona_material` partition, `memories`, `reads` keyed by subject) in its own `persona_material` partition,
set whole by `SetPersonaMaterial` with `NoncanonicalText` for any padded text set whole by `SetPersonaMaterial` with `NoncanonicalText` for any padded text
or doubled read and `NoOperationEffect` for identical material; it is read by or doubled read and `NoOperationEffect` for identical material; it is read by
@ -407,11 +410,14 @@ resolver, or reconciler is needed.
Three namespaces, three newtypes, issued only by the reducer. Three namespaces, three newtypes, issued only by the reducer.
```text ```text
SubjectId person, institution, population — can decide SubjectId person, institution, population — SubjectKind, can decide
EntityId place, resource, fact, channel — cannot decide EntityId place, resource, fact, channel — EntityKind, cannot decide
EdgeId route, relation, commitment, pressure — connects the above EdgeId route — EdgeKind, connects places
``` ```
Commitments and pressures are keyed by subject, not by `EdgeId`, and there is
no relation edge kind: `EdgeKind` has one variant, `Route`.
Display names are labels. They never resolve a reference or bind structure. Display names are labels. They never resolve a reference or bind structure.
An externally controlled mirror is an ordinary subject of one of these three An externally controlled mirror is an ordinary subject of one of these three
kinds; what is external is its `ControllerAssignment` kinds; what is external is its `ControllerAssignment`
@ -419,7 +425,7 @@ kinds; what is external is its `ControllerAssignment`
## Components ## Components
Thirteen, each earning its place by constraining a decision. Some attach to one Twelve rows, each earning its place by constraining a decision. Some attach to one
referent; some are edge-shaped and attach to a pair. The reducer does not care referent; some are edge-shaped and attach to a pair. The reducer does not care
which noun a component is; it cares what it constrains. which noun a component is; it cares what it constrains.
@ -438,8 +444,9 @@ which noun a component is; it cares what it constrains.
| `Pressure` | source → target: magnitude | the causal boundary trigger | | `Pressure` | source → target: magnitude | the causal boundary trigger |
| `PersonaMaterial` | subject: values, voice, memories, reads | lived meaning; never authority | | `PersonaMaterial` | subject: values, voice, memories, reads | lived meaning; never authority |
A `Fact` carries a `standing`: `Canonical` (admitted with evidence) or A `Fact` carries a `standing` (`FactStanding`, three variants): `Canonical`
`Claimed { by: SubjectId }` (asserted in speech). Knowledge of a claimed fact is (admitted with evidence), `Claimed { by: SubjectId }` (asserted in speech), or
`Ruled` (stated by the play table; only `Play` may write it). Knowledge of a claimed fact is
belief. Deception is a subject asserting a claim while holding a contradicting belief. Deception is a subject asserting a claim while holding a contradicting
canonical fact; misread is a listener acquiring a claim the speaker did not canonical fact; misread is a listener acquiring a claim the speaker did not
intend. Both are ordinary typed states, not narrator judgments. intend. Both are ordinary typed states, not narrator judgments.
@ -451,32 +458,34 @@ problem in another without anyone deciding that it should be.
## Component operations ## Component operations
This is the closed operation set. Every mutation the kernel will ever apply is This is the closed operation set. Every mutation the kernel applies is one of
one of these, and every model-facing tool is a projection of one of these. these, and every model-facing tool is a projection of one of these. The type is
`ComponentOp` in `crates/ghostlight/src/patch.rs`: 34 variants, named here by
the component they act on. Declarations are the six `Declaration` variants.
```text ```text
Declaration declare_subject, declare_place, declare_resource, declare_fact, Declaration Subject, Entity (place or resource), Route, Affordance, Fact,
declare_channel, declare_route (draft handles only) Channel (draft handles only)
Position relocate(subject, via: Route) Position Relocate
Route open, close, alter_cost Route OpenRoute, CloseRoute, AlterCost
Custody transfer(from, to, resource, qty), transform(resource, into, qty), Custody Transfer, Transform, Consume, Admit (with evidence),
consume(holder, resource, qty), admit(holder, resource, qty, evidence) Mint (no receipt; only Play may write it)
Dependency bind, release Dependency Bind, Release
Authority grant(subject, scope, kind), revoke Authority GrantAuthority, RevokeAuthority
Selection open_office, close_office, install(office, incumbent), vacate Selection OpenOffice, CloseOffice, InstallIncumbent, VacateOffice
Redress open_forum(kind, forum, standing), close_forum Redress OpenForum, CloseForum
Knowledge acquire(subject, fact, source, confidence), communicate(speaker, fact, Knowledge AcquireKnowledge, Communicate, Witness, Forget
channel), witness(fact, place, confidence), forget Channel SetReach, SetController
Channel set_reach, set_controller Commitment CreateCommitment, DischargeCommitment
Commitment create(subject, counterparty, kind, due, period, checks, statement), discharge Pressure AdvancePressure, ReducePressure, ResolvePressure
Pressure advance, reduce, resolve PersonaMaterial SetPersonaMaterial
PersonaMaterial set(subject, values, voice, memories, reads) Retirement Retire
Retirement retire(referent, reason) Affordance GrantAffordance, RevokeAffordance
Time advance(minutes)
``` ```
Thirty operations. Adding one is a design change to this document and a Time is not a `ComponentOp`: the clock moves only by `CommandBody::AdvanceTime`.
code change to the reducer; it is never a runtime patch. Adding an operation is a design change to this document and a code change to
the reducer; it is never a runtime patch.
## Patch construction ## Patch construction
@ -530,7 +539,7 @@ counts do not appear here and may not be added.
The kernel owns component operations. A **world** owns its affordance catalog. The kernel owns component operations. A **world** owns its affordance catalog.
This is the generality lever: a setting with spellcraft, insurance claims, This is the generality lever: a setting with spellcraft, insurance claims,
oath-rhythms, or memetic sovereignty authors affordances from the same oath-rhythms, or memetic sovereignty authors affordances from the same
thirty operations, and the kernel never learns a genre. component operations, and the kernel never learns a genre.
```text ```text
Affordance Affordance
@ -602,7 +611,9 @@ different mutations.
Layers of collective agency are relations, not special subjects: Layers of collective agency are relations, not special subjects:
- **Containment** nests places and jurisdictions. - **Containment** nests places and jurisdictions.
- **Membership** binds persons and slices to institutions and populations. - **Membership** binds persons and slices to institutions and populations;
design intent, with no record shape in the kernel yet (`EdgeKind` is `Route`
only).
- **Jurisdiction** is an `Authority` component whose scope is a subject set or - **Jurisdiction** is an `Authority` component whose scope is a subject set or
a place subtree. a place subtree.
- **Representation** is `Selection`: an institution acts through an office - **Representation** is `Selection`: an institution acts through an office
@ -631,10 +642,10 @@ authored seed request opens a scope. Both are answered by the same patch.
```text ```text
CausalBoundary CausalBoundary
UnelaboratedDestination { route, place } UnelaboratedDestination { route, place, scope }
PolityInCausalRange { relation, subject } PolityInCausalRange { subject, scope }
IndividuationRequired { population, slice, pressure } IndividuationRequired { population, scope }
MissingStructure { scope } // a commitment or pressure has no authority, MissingStructure { subject, key, scope } // a commitment has no authority,
// channel, or redress path that could resolve it // channel, or redress path that could resolve it
SeedRequest { jurisdiction: DraftHandle, brief: EvidenceRef } // draft phase only; SeedRequest { jurisdiction: DraftHandle, brief: EvidenceRef } // draft phase only;
@ -645,9 +656,13 @@ Boundaries are derived from a revision exactly as opportunities are, and each
carries the digest of the components that derive it. One command answers one: carries the digest of the components that derive it. One command answers one:
```text ```text
CommandBody::AdmitPatch { answers: Boundary | SeedRequest, patch: WorldPatch } CommandBody::AdmitPatch { answers: Option<PatchAnswer>, patch: WorldPatch }
PatchAnswer = Boundary(CausalBoundary) | Deficit(JurisdictionKey)
``` ```
`SeedRequest` above is design intent: no type of that name exists in
`crates/`, and Draft answers nothing.
A commit clears exactly the boundary it answers. Nothing else clears one. A A commit clears exactly the boundary it answers. Nothing else clears one. A
patch answering a boundary the kernel no longer derives is rejected. patch answering a boundary the kernel no longer derives is rejected.
@ -942,7 +957,8 @@ Deleted before replacement behavior is added, with no compatibility path:
- 5 qualification and verification types plus 1 outcome resolver → 0; - 5 qualification and verification types plus 1 outcome resolver → 0;
- titled quotas and the titled verifier, semantic qualification, and round - titled quotas and the titled verifier, semantic qualification, and round
budgets → 4 derived budgets → 4 derived
boundaries, 1 seed request, and 1 structurally counted scale deficit; boundaries (`CausalBoundary`) and 1 structurally counted scale deficit (a seed
request is design intent, unbuilt);
- 2 seed admission paths → 1; - 2 seed admission paths → 1;
- N model-facing tool schemas hand-written per stage → 1 derived catalog. - N model-facing tool schemas hand-written per stage → 1 derived catalog.
@ -954,7 +970,7 @@ invariants did not ask for.
## Build budget ## Build budget
No new crate, binary, dependency, or service. Types and reduction inside No new crate, binary, dependency, or service. Types and reduction inside
`crates/ghostlight/src/`, one new `patch` module, one new `affordance` module, `crates/ghostlight/src/`, the `patch` and `action` modules,
focused `ghostlight` tests. No workspace-wide or focused `ghostlight` tests. No workspace-wide or
release build is admitted for this stage. release build is admitted for this stage.

View file

@ -5,8 +5,8 @@ No live smoke exists in this tree. The ignored test this file once documented,
ran the production tick driver and the Active elaboration sweep against a real ran the production tick driver and the Active elaboration sweep against a real
CodexConnector; the play agent's Cut 1 (`d69e9d4`) deleted both, and the test CodexConnector; the play agent's Cut 1 (`d69e9d4`) deleted both, and the test
with them. A command that names it now matches nothing and exits 0. No with them. A command that names it now matches nothing and exits 0. No
replacement exists until the play agent's own gate (`ghostlight-play-agent.md`) replacement exists. The real-model gate that does exist is the Idunn recipe's
lands one. `accept-real-persona-membrane` step (`deployment/idunn/recipe.toml`).
What remains true and stays here: bringing up a real CodexConnector and a What remains true and stays here: bringing up a real CodexConnector and a
built Claude SDK sidecar. The seed lane (`world.seed`) still runs real built Claude SDK sidecar. The seed lane (`world.seed`) still runs real