Commit graph Ghostlight/crates
Author SHA1 Message Date
Meta Vens
5e53beb353 ghostlight-dungeon: one schema owner, genesis mismatch not journal fault, named ref fields
- Promote world::STATE_SCHEMA/COMMIT_SCHEMA to pub(crate) and add
  state_schema_compatibility_tag(), derived from STATE_SCHEMA, so mesh.rs and
  idunn_health.rs stop hand-copying "ghostlight.world_state.foundation.v0" and
  "foundation-v0" as second literals that had already drifted from the v1
  kernel schema.
- A CreateWorld patch that declares only entities now fails inside
  resolve_declarations with Mismatch::NoDecisionSubject instead of surviving
  admission and dying in journal::verify_state_shape as a
  CorruptJournal(requires_owner_restart) fault. Collapse the two hardcoded
  admits_human literals in prepare_creation and WorldState::genesis onto the
  same admits_human predicate the AdmitPatch lane uses (reshaped to take
  revision/subjects directly, since the genesis lane resolves before any
  WorldState exists).
- Mismatch::UnresolvedDraft and the draft-branch WrongKind now name their
  DraftHandle field referent; Mismatch::UnknownCanonical and the
  canonical-branch WrongKind now name theirs referrer. WrongKind carries both
  referrer: DraftHandle and referent: Ref<EntityId> so every construction site
  states which end each field names instead of overloading one `handle`
  field with two different meanings.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-04 17:13:10 +02:00
Meta Vens
9ddc21f048 Soul: prove the store and apply_effect halves of closed resolution
Two falsification tests the pass-1 suite did not carry.

a_rejected_patch_leaves_no_row_and_no_id_in_the_store checks the durable
store, not the in-memory head: after the Run 115 rejection it scans the
.cc bytes for the three IDs the patch would have derived, then reopens
the world and re-asserts the snapshot, commit count, and empty entity
partition.

apply_effect_rejects_a_forged_stale_unauthorized_or_active_patch_effect
drives the PatchAdmitted arm directly. journal::a_forged_patch_effect_
does_not_apply dies earlier, at apply_committed_command's reduce
equality ("committed effect is not the deterministic reduction of its
command"), so nothing exercised admit_resolved's own re-validation. This
does: a jurisdiction naming an absent place, the honest effect replayed,
a non-owner caller, and the Active phase each return Invariant with the
candidate state untouched.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-04 17:00:45 +02:00
Meta Vens
d74d6ad3d7 Close patch resolution before any canonical ID allocates
Cut: DraftSubjectHandle, validate_handle, NewDecisionSubject,
GenesisSubjectBinding, canonicalize_subjects, issue_genesis,
normalize_label, assignment_matches_new, the 116-line zip-and-compare
body of WorldState::genesis, the non-test SubjectId/ControllerId/
AffordanceId::issue bodies, and the KernelError variants NoSubjects,
EmptySubjectHandle, EmptySubjectLabel, DuplicateSubjectHandle, and
NoAffordances.

Add world/patch.rs: typed EntityId/EdgeId namespaces beside SubjectId,
Ref<Id> with draft handles, WorldPatch declarations, uninhabited
ComponentOp and PatchAnswer, and resolve_declarations as the one owner
of handle indexing, kind checking, reference resolution, and allocation
for both admission lanes. It returns the complete deterministic
Vec<Mismatch> and allocates only after that set is empty, so a rejected
patch mints nothing. IDs derive from sha256 over namespace, world ID,
command ID, and handle, which is what lets journal replay recompute
reduce() and require effect equality.

CommandBody::AdmitPatch and WorldEffect::PatchAdmitted join the reducer;
WorldCreated now carries the same ResolvedPatch payload, and both lanes
mutate through one admit_resolved. WorldState gains entities and edges
partitions, SubjectState gains authority_scope, and the state and commit
schema strings move to foundation.v1 and foundation.v2, which refuses a
pre-pass store rather than migrating it.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-04 16:47:15 +02:00
Meta Vens
751b5c4150 Take runtime identity, bind, and state root from Idunn
The daemon declared its own GHOSTLIGHT_RUNTIME_ID, GHOSTLIGHT_DUNGEON_BIND,
and GHOSTLIGHT_DUNGEON_ROOT. Under the managed contract Idunn owns all three:
the runtime id arrives inside the activation bundle, the bind is a candidate
socket Idunn hands down, and the state root is an admitted workload path.
A service that also names them from its own environment is a second opinion
about facts it does not own.

runtime.rs already resolved the runtime id from the admission and kept
GHOSTLIGHT_RUNTIME_ID only as the unmanaged fallback. This is the caller side
catching up: main.rs accepts --state-root and passes it through, and the recipe
declares the state_root argument binding plus the three GAMECULT_IDUNN_*
variables while dropping the three the daemon no longer reads.

The binding is required, not cosmetic. Idunn refuses a stateful workload with
no state_root argument binding and refuses one whose binding disagrees with
the admitted root, so the recipe could not have deployed without it.

The acceptance harness kept its own GHOSTLIGHT_RUNTIME_ID; it is renamed to
GHOSTLIGHT_ACCEPTANCE_RUNTIME_ID so a test-supplied identity cannot be mistaken
for the managed one.

The mesh surface test compared the published record against a freshly built
surface, including updatedAtUtc, which is a live timestamp. It now asserts the
structural fields, parses the timestamp, and compares surface and commands.

cargo test --workspace: 89 passed, 0 failed.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-04 01:24:08 +02:00
Meta Vens
6a79cb093a Republish Warming while awaiting a write lease 2026-09-03 10:39:04 +02:00
Meta Vens
92566480bb Expose managed Ghostlight route presence 2026-09-03 09:25:32 +02:00
Meta Vens
a0b16b927b Bind Ghostlight runtime presence to Idunn authority 2026-09-03 06:36:58 +02:00
Meta Vens
13d5136b69 Unify Ghostlight persistence under one CultCache 2026-09-02 15:00:48 +02:00
Meta Vens
06093b00fc Derive projector fixture event identity 2026-09-02 13:52:14 +02:00
Meta Vens
27d72b819f Keep narrative projection free of authority metadata 2026-09-02 13:51:27 +02:00
Meta Vens
6bb6869810 Rebuild Ghostlight around explicit world authority 2026-09-02 07:21:11 +02:00
Meta Vens
66ed2ec167 Complete sealed world authority loop 2026-09-01 19:37:13 +02:00
Meta Vens
12ee9f4622 Remove dead legacy kernel ingresses 2026-09-01 19:32:33 +02:00
Meta Vens
d49b907e83 Make Persona interpretation structurally total 2026-09-01 16:37:41 +02:00
Meta Vens
b53251f94f Seal the replacement world owner 2026-09-01 16:18:15 +02:00
Meta Vens
a144c33661 Make cognition modes explicit and interpretation total 2026-09-01 14:26:47 +02:00
Meta Vens
64f50de596 Delete obsolete pipeline smokes 2026-09-01 14:22:07 +02:00
Meta Vens
8964a92cb4 Route destination drafting to balanced model 2026-09-01 13:27:03 +02:00
Meta Vens
4d330d921e Bound destination generation context 2026-09-01 12:53:27 +02:00
Meta Vens
fc46c3ba61 Bound destination compile latency 2026-09-01 12:06:47 +02:00
Meta Vens
0a830347dc Bound foundation compile latency 2026-09-01 11:08:39 +02:00
Meta Vens
661cfbad9f Rebuild qualified world elaboration 2026-09-01 09:54:04 +02:00
Meta Vens
37b1362860 Add focused campaign world explorer 2026-09-01 04:53:55 +02:00
Meta Vens
b81a9779f1 Make strategic target projection deterministic 2026-09-01 03:56:17 +02:00
Meta Vens
67421ada42 Bound strategic cell agent context 2026-09-01 03:34:25 +02:00
Meta Vens
b61e762c98 Page Nemesis causal attention context 2026-09-01 02:40:45 +02:00
Meta Vens
8dd3147066 Keep compaction journals structurally compact 2026-09-01 02:04:56 +02:00
Meta Vens
8cdbd2e3a0 Expose exact compaction preflight failures 2026-09-01 01:57:59 +02:00
Meta Vens
75d9235352 Supersede duplicate parallel identities 2026-09-01 01:41:15 +02:00
Meta Vens
799be9914b Align elaborator compaction bounds 2026-09-01 01:28:57 +02:00
Meta Vens
f3d5951ac3 Shrink individuation to model-owned fields 2026-09-01 01:10:13 +02:00
Meta Vens
dd7fb98e73 Keep public names out of identity authority 2026-09-01 00:53:08 +02:00
Meta Vens
fa01658686 Expose exact individuation repair findings 2026-09-01 00:37:06 +02:00
Meta Vens
3f7211b9df Derive elaboration realms from topology 2026-09-01 00:16:29 +02:00
Meta Vens
31125a2307 Preserve fission realm scope across elaboration 2026-08-31 23:57:59 +02:00
Meta Vens
44c89e39df Preserve named actors across population fission 2026-08-31 23:32:06 +02:00
Meta Vens
0fd1559781 Reconcile parallel fission child identifiers 2026-08-31 23:07:42 +02:00
Meta Vens
5582f61061 Compact elaborator sessions concurrently 2026-08-31 22:52:28 +02:00
Meta Vens
b4cc3a29aa Bound fission relation lineage lookup 2026-08-31 22:40:16 +02:00
Meta Vens
ca64b9cf1b Bind titled resume to historical commit proof 2026-08-31 22:25:14 +02:00
Meta Vens
92d6742546 Follow fission lineage when resuming foundations 2026-08-31 22:20:20 +02:00
Meta Vens
36bcc842cf Reconcile resumed campaigns before validation 2026-08-31 22:12:01 +02:00
Meta Vens
8a81ea2c1d Reconcile civic bindings across gestalt fission 2026-08-31 22:04:19 +02:00
Meta Vens
e7ceb2c280 Require exact fission custody assignments 2026-08-31 21:28:00 +02:00
Meta Vens
e6076f0343 Report complete fission validation findings 2026-08-31 21:17:43 +02:00
Meta Vens
a01773743a Materialize complexity commands from compact drafts 2026-08-31 21:06:08 +02:00
Meta Vens
7ce721d483 Bind complexity proposals to frozen assignments 2026-08-31 20:32:01 +02:00
Meta Vens
97e00be867 Wrap complexity actions for provider schemas 2026-08-31 20:21:58 +02:00
Meta Vens
fbbaf453b8 Add resumable world complexity elaboration 2026-08-31 20:10:26 +02:00
Meta Vens
df66ec989c Define iterative world complexity pressure 2026-08-31 19:14:26 +02:00