Record pass 5 in the ontology doc and handoff

Current mechanism describes authority, selection, and redress with the one
covering predicate, the admission-only nesting rule, and the shared
grant/revoke envelope; the selection row and operation count follow the
landed cut. Steward folded passes 1 through 5 and the in-flight pass 6
into the handoff and map.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-09-04 22:22:08 +02:00
commit 43e8042d8c
4 changed files with 84 additions and 78 deletions

View file

@ -35,8 +35,8 @@ not from a model agreeing that the world is deep.
## Current mechanism
Passes 1 through 4 of the widening are landed (`5e53beb`, `e99af63`,
`d2805fe`, `0f21a49`). The sealed kernel holds subjects with a label and a
Passes 1 through 5 of the widening are landed (`5e53beb`, `e99af63`,
`d2805fe`, `0f21a49`, `dbe176d`). The sealed kernel holds subjects with a label and a
kind (`Person | Institution | Population`); a `positions` partition with
`Position`; entities with `container` under containment acyclicity; `Route`
as an `EdgeRecord` variant carrying `AccessKind { Public, Restricted }`, a
@ -44,8 +44,9 @@ minute `Cost` in `1..=525_600`, and an open flag; subject-keyed `holdings` of
`Quantity(u64)` per entity, absence meaning zero, checked arithmetic with
u128 ledger accumulators; subject-keyed `dependencies` on
`DependencyTarget { Resource, Route, Subject }`; and an `affordance_catalog`
partition of world-authored entries. There is no relation, fact, commitment,
pressure, or clock yet.
partition of world-authored entries; and `authority`, `selection`, and
`redress` partitions. There is no relation, fact, commitment, pressure, or
clock yet.
`world/patch.rs` owns typed `SubjectId`/`EntityId`/`EdgeId`/`AffordanceId`
namespaces, `Ref<Id>` with `DraftHandle` (adjacently tagged `RefKind`), and a
@ -79,16 +80,31 @@ genesis. A controller's tools, signatures, and permissions are derived from
its granted entries by `catalog_tools`, `catalog_signatures`, and
`catalog_permissions`; no hand-written permission surface remains.
Authority is a grant of `(kind, AuthorityTarget)` where the target is a
`Subject` or a `PlaceSubtree`; one predicate, `covers`, decides membership for
the `Authorized` and `HasStanding` preconditions, `route_admits` on
`AccessKind::Restricted { requires }`, the delegation monotonicity rule, and
the redress projection. Same-kind grants with overlapping targets are rejected
at admission (`targets_overlap` is structural: identity for subjects,
containment for places, plus a same-revision nesting check between the two
shapes) and `verify_state_shape` re-checks only the structural rule. An
`Office` joins an institution to a person; `open_office`, `close_office`,
`install`, and `vacate` are the selection operations, and an incumbent's
delegated grants are copied into its own `ScopeComponents`. A `Forum` admits
petitions from subjects with standing. Authority-writing slots (`grant`,
`revoke`) are gated by one rule: the actor's own authority must cover the
target, otherwise `ActionMismatch::DelegationNotMonotone`.
Opportunities bind to a `ScopeDigest` over one `scope_components` owner
(controller assignment, grants, position, incident routes, own holdings, own
dependencies); a proposal commits at any later revision with unchanged scope
and is rejected with `KernelError::ScopeChanged` otherwise. State schema is
`world_state.affordance.v1`, commit schema `world_commit.affordance.v1`;
(controller assignment, grants, delegated grants, own authority, position,
incident routes, own holdings, own dependencies; never occupancy or forum
state); a proposal commits at any later revision with unchanged scope and is
rejected with `KernelError::ScopeChanged` otherwise. State schema is
`world_state.authority.v1`, commit schema `world_commit.authority.v1`;
earlier stores are refused. Ghostlight owns a conserved narrative ledger;
Delvehold owns the economy (`delvehold-forced-ontology-integration.md`).
Passes 5 through 9 add authority, knowledge, the clock and pressure flow,
boundary elaboration, and the budgeted cover; pass 10 adds the consumer
ingress.
Passes 6 through 9 add knowledge, the clock and pressure flow, boundary
elaboration, and the budgeted cover; pass 10 adds the consumer ingress.
## The failure this vocabulary is designed against
@ -213,7 +229,7 @@ Custody transfer(from, to, resource, qty), transform(resource, into, qt
consume(holder, resource, qty), admit(holder, resource, qty, evidence)
Dependency bind, release
Authority grant(subject, scope, kind), revoke
Selection install(office, incumbent), vacate, set_method
Selection open_office, close_office, install(office, incumbent), vacate
Redress open_forum(kind, forum, standing), close_forum
Knowledge acquire(subject, fact, source, confidence), communicate(speaker, fact,
channel), forget
@ -280,7 +296,7 @@ counts do not appear here and may not be added.
The kernel owns component operations. A **world** owns its affordance catalog.
This is the generality lever: a setting with spellcraft, insurance claims,
oath-rhythms, or memetic sovereignty authors affordances from the same
twenty-nine operations, and the kernel never learns a genre.
thirty operations, and the kernel never learns a genre.
```text
Affordance

View file

@ -225,55 +225,46 @@ outcome bands, four derived `CausalBoundary` kinds, scope-digest binding, one
are teardown evidence. Plan step 6 is nine implementation passes; pass 1 is
landed, passes 2 through 9 are not.
1. Passes 1 through 4 are integrated locally; nothing beyond pass 4 is.
`codex/ghostlight-dungeon-mvp` tip is `0f21a49` (Soul) over `f9cd017`
(pass 4) and `0ca51cf` (`apply_operations` owner), on `138ff69`; those
three were `c9fd9bf`, `870d86a`, `7650d72` before rebase. Passes 1 through
3 are `5e53beb`, `e99af63`, `d2805fe`. The push of the three was launched
in the background and may lag origin by minutes: run `git status -sb` and
trust `ahead N` over any note here.
1. Passes 1 through 5 are integrated and pushed; nothing beyond pass 5 is.
`codex/ghostlight-dungeon-mvp` tip is `dbe176d` (Soul) over `fa3d95d`
(pass 5: `Authority`, `Selection`, `Redress` subgraph) and `40e4efc`
(grant made structural in `exercise`, the pass-4 follow-up), on `d589ea0`
(ontology doc "Current mechanism" for pass 4 and plan invariant 10 moved
to scope-digest wording). Earlier passes: `5e53beb`, `e99af63`, `d2805fe`,
`0f21a49`. Run `git status -sb` before trusting any tip written here.
Pass 4 facts: `world/action.rs` owns `exercise()`, called from `reduce` and
`apply_effect`. An `affordance_catalog` partition holds world-authored
entries declared through `Declaration::Affordance`; grants are
`BTreeMap<DecisionScope, BTreeSet<AffordanceId>>`; `Precondition` is
exactly `{ Present, Reachable, Holds }`; `ActionMismatch` (17 variants) is
the sibling of `Mismatch` and surfaces as `KernelError::ActionRejected`.
Band selection is `BandPreimage { world_id, revision, command_id,
affordance, band_count }` through `digest()`, no RNG; `DecisionEvent {
band, effects }`. `Speak` is a kernel-built catalog entry (zero
preconditions, empty band, `carries_speech`) synthesized only at genesis.
`DecisionAction`, `AffordanceKind`, `AffordanceGrant`,
`operational_tools()`, the prose `available_tools` string, and the
permission block are deleted; `catalog_tools`, `catalog_signatures`, and
`catalog_permissions` in `world/controllers.rs` derive the controller
surface from granted entries. `RefKind` has adjacently tagged serde,
round-trip proven. Schemas are `world_state.affordance.v1` /
`world_commit.affordance.v1`; earlier stores refused. Baseline at
`0f21a49`: 123 test functions in `world/*.rs`, 162 crate source, plus one
integration test. `EvidenceRef::new` is still `#[cfg(test)]`; the gate
remains that nothing deserializes a `WorldPatch` until pass 10.
Pass 5 facts: schemas are `world_state.authority.v1` /
`world_commit.authority.v1`, earlier stores refused. `world/action.rs`
carries `check_delegation` under `exercise`, the `ActionMismatch` variant
`DelegationNotMonotone` (name kept), and `ComponentOpKind::RevokeAuthority`.
Rulings adopted in pass 5: overlap is checked at admission only and is
structural in `verify_state_shape`; revoke is gated exactly like grant
through `check_delegation`. Baseline at `dbe176d`: 150 test functions in
`world/*.rs`, 189 crate source, plus one integration test (the focused
`world::` run reports 149 / 184; the two counts use different rules, so
the next pass must compare like with like). `EvidenceRef::new` is still
`#[cfg(test)]`; nothing deserializes a `WorldPatch` before pass 10.
Soul follow-ups from pass 4: (a) make the grant structural inside
`exercise` when a third caller arrives, assigned to pass-5 Hands as its
first commit; (b) the pass-4 spec band clause for `verify_state_shape`
overstates what is implemented (bounds plus emptiness, replay proves the
rest), a spec/doc correction the coordinator owns.
In flight, not landed, both branched from `dbe176d` with no commits yet at
the time of writing:
- `hands/pass5-followups` in the worktree `F:\Projects\Ghostlight-pass5fu`:
admission-time `Subject`/`PlaceSubtree` nesting check, `RevokeAuthority`
under `check_delegation`, and a deploy test.
- `hands/pass6` in the worktree `F:\Projects\Ghostlight-pass6`:
`Knowledge`, `Channel`, `Fact` standing, scoped-projection non-leakage,
from `imagination-pass6.md`.
The main tree also holds an uncommitted coordinator edit to
`docs/architecture/ghostlight-world-ontology.md` describing pass 5; it
lands with the follow-ups. Witness for any later pass: main-branch
`git log` past `dbe176d`, and `git worktree list` for the two trees.
Pass 5 (`Authority`, `Selection`, `Redress`, institutional affordances) is
with Hands in a fresh worktree from `0f21a49`; at the time of writing
`.claude/worktrees/agent-a8828a054fe108277` sits at `0f21a49` unlocked and
the locked `agent-ae5caadd09b38df59` sits at `8cad6b9`, a pre-rebuild
commit that is not a pass tree. Witness for any later pass: main-branch
`git log` past `0f21a49`.
Pipeline for passes 5 through 9: specs `imagination-pass1.md` through
Pipeline for passes 6 through 9: specs `imagination-pass1.md` through
`imagination-pass9.md` and maps `modeling-pass1.md` through
`modeling-pass9.md` are all on disk in the session scratchpad
`modeling-pass9.md` are on disk in the session scratchpad
`C:\Users\Meta\AppData\Local\Temp\claude\F--Projects-Ghostlight\2fd50f5e-f7ba-4e5d-82bc-c7033e6074d2\scratchpad`,
not in `state/`; if that directory is gone, the specs must be regenerated
from `docs/architecture/ghostlight-world-ontology.md`. Each pass: Hands in
an isolation worktree whose first line is `git reset --hard
not in `state/`; if that directory is gone, regenerate the specs from
`docs/architecture/ghostlight-world-ontology.md`. Each pass: Hands in an
isolation worktree whose first line is `git reset --hard
codex/ghostlight-dungeon-mvp`, then Soul in that tree, then the coordinator
integrates with `git -C <wt> rebase -q codex/ghostlight-dungeon-mvp && git
merge --ff-only <wt-branch> && cargo test -q -p ghostlight-dungeon --bin
@ -281,8 +272,8 @@ landed, passes 2 through 9 are not.
<wt> && git branch -D <wt-branch>`, then a steward pass and the doc
proposal. Rulings that bind Hands: pass 7 keeps `check_ledger` single-site;
pass 8 adds no HTTP `AdmitPatch` ingress (that is pass 10, consumer
ingress, now in the plan); pass 9 must not enable `uuid/v5` and derives
each `CommandId` via sha256 into `Uuid::from_bytes` like `derive_id`.
ingress, in the plan); pass 9 must not enable `uuid/v5` and derives each
`CommandId` via sha256 into `Uuid::from_bytes` like `derive_id`.
Adopted design from the specs that changes steering: pass 7 gives the world
its first clock, `WorldState.now`, advanced only by
@ -302,8 +293,8 @@ landed, passes 2 through 9 are not.
Queued doc edits, coordinator-owned: after pass 7, the four
`ghostlight-dungeon-mvp.md` subject-readiness sentences (lines 65, 153,
211, 433) become `Commitment.due` plus derived debt, and the ontology
doc operation count (lines 222, 276, 537) becomes 27; after pass 9, the
211, 433) become `Commitment.due` plus derived debt, and the ontology doc
operation count (lines 222, 276, 537) becomes 27; after pass 9, the
ontology doc phrase "within about N/B ticks" becomes ceil(N/R) with R the
rotation reserve; after every integration, the ontology doc "Current
mechanism" section is rewritten from the steward proposal.
@ -320,15 +311,14 @@ landed, passes 2 through 9 are not.
lore on Zyphos `codex/ghostlight-worlds` at `2fef909`.
- Kalsa `stormshield-handoff-v0`: `codex/world-kalsa` tip `489c541`; lore
on Kalsa `codex/ghostlight-worlds` at `c9f4c5c`.
The elaborator swarm is paused by operator order and this session no
longer owns it. The stop flag `C:\Users\Meta\.claude\worlds\logs\elab-stop.flag`
was set at 2026-09-04 20:10 with 66 passes finished in
`logs\elab-done.csv`; in-flight slots drain and are pushed, so
the final row count is whatever that file holds after the drain. The
successor handoff is `C:\Users\Meta\.claude\worlds\README.md` (written
20:09; final counts and the Charter idea are filled in at drain). Resume or
restart of the loop waits on operator adjustments and belongs to the
successor, not to a Ghostlight kernel session. What remains owed and is
The elaborator swarm is drained and handed off; this session does not own
it. The stop flag `C:\Users\Meta\.claude\worlds\logs\elab-stop.flag` was
set at 2026-09-04 20:10; the drain completed at 21:10 with 98 finished
passes in `logs\elab-done.csv`, ledgers republished to the
world branches, and the successor handoff finalized at
`C:\Users\Meta\.claude\worlds\README.md` with final counts and the Charter
idea. Resume or restart of the loop waits on operator adjustments and
belongs to the successor, not to a Ghostlight kernel session. What remains owed and is
deliberately deferred: integration of the `slot/<world>/<title>/<stamp>`
branches into the lore vaults on `codex/ghostlight-worlds` and into
`codex/world-<world>`. The idea index is the four world-branch ledger

File diff suppressed because one or more lines are too long

View file

@ -2,10 +2,10 @@
## Current Subgoal
Plan step 6 pass 5 (`Authority`, `Selection`, `Redress`) with Hands in a fresh
worktree from `0f21a49`; first commit makes the grant structural in
`exercise`. Specs/maps 1-9 in the session scratchpad. Main tip `0f21a49`,
passes 1-4 integrated, push may lag.
Plan step 6 pass 6 (`Knowledge`, `Channel`, `Fact` standing) with Hands in
`F:\Projects\Ghostlight-pass6` on `hands/pass6`, alongside the pass-5
follow-ups in `F:\Projects\Ghostlight-pass5fu` on `hands/pass5-followups`;
both from `dbe176d`. Main tip `dbe176d`, passes 1-5 integrated and pushed.
## Working Notes