Keep compaction journals structurally compact

This commit is contained in:
Meta Vens 2026-09-01 02:04:56 +02:00
commit 8dd3147066
3 changed files with 50 additions and 33 deletions

View file

@ -536,6 +536,10 @@ struct ComplexityRoundCheckpoint {
>,
}
fn complexity_session_journal_summary(mutation_kind: &str, parent_gestalt_id: &str) -> String {
format!("Applied {mutation_kind} to {parent_gestalt_id}.")
}
fn retain_unique_complexity_invocations(
round: u32,
invocations: &[ComplexityPreviewInvocation],
@ -2723,11 +2727,9 @@ async fn main() -> anyhow::Result<()> {
),
mutation_kind: checkpoint.mutation_kind.clone(),
affected_subject_ids: checkpoint.affected_subject_ids.clone(),
summary: format!(
"Applied {} to {} and admitted {}.",
checkpoint.mutation_kind,
checkpoint.parent_gestalt_id,
checkpoint.affected_subject_ids.join(", ")
summary: complexity_session_journal_summary(
&checkpoint.mutation_kind,
&checkpoint.parent_gestalt_id,
),
},
);
@ -3967,15 +3969,28 @@ mod tests {
HistoricalWorldNewspaperIssueV2, admitted_public_channel,
civic_manifest_is_committed_candidate, civic_manifest_preserves,
committed_elaboration_mutation_proof, completed_wave_issue_campaign,
complexity_realm_for_profile, final_wave_field, fission_population_binding_is_present,
fission_relation_binding_is_present, latest_partial_wave_checkpoint,
missing_newspaper_report_indices, publish_immutable_checkpoint,
recomposed_model_receipt_set_digest, recover_committed_clock_binding,
retain_unique_complexity_invocations, strategic_campaign, strategic_locality_request,
strategic_smoke_bytes_digest, strategic_smoke_digest, strategic_titled_locality_request,
titled_failure_checkpoint_paths, validate_completed_newspaper_recomposition_receipt,
complexity_realm_for_profile, complexity_session_journal_summary, final_wave_field,
fission_population_binding_is_present, fission_relation_binding_is_present,
latest_partial_wave_checkpoint, missing_newspaper_report_indices,
publish_immutable_checkpoint, recomposed_model_receipt_set_digest,
recover_committed_clock_binding, retain_unique_complexity_invocations, strategic_campaign,
strategic_locality_request, strategic_smoke_bytes_digest, strategic_smoke_digest,
strategic_titled_locality_request, titled_failure_checkpoint_paths,
validate_completed_newspaper_recomposition_receipt,
};
#[test]
fn complexity_journal_summary_does_not_duplicate_typed_subject_ids() {
let summary =
complexity_session_journal_summary("fission_gestalt", "the-assigned-parent-population");
assert_eq!(
summary,
"Applied fission_gestalt to the-assigned-parent-population."
);
assert!(summary.chars().count() < 1_000);
}
#[test]
fn complexity_realm_is_derived_from_canonical_location_containment() {
use ghostlight_dungeon::domain::{Location, Route};

View file

@ -25,7 +25,7 @@ own volatile workspace identity and the release witness owns deployed identity.
## Current full-world pressure test
Preserve immutable Runs 75 through 106. Rounds 1 through 22 and their session
Preserve immutable Runs 75 through 107. Rounds 1 through 22 and their session
checkpoints are canonical; do not replay them.
Bounded parallel title-by-realm compaction and deterministic parallel child-ID
@ -56,15 +56,17 @@ round-23 preview froze 21 invocations and committed all 21 mutations at revision
remaining compaction work stopped. Immutable same-source Run 106 cloned Run 105
and reproduced the failure without writing another session checkpoint.
The generic `elaborator session compaction journal is empty, stale, or
unbounded` error is emitted by `compact_elaborator_session` before model work.
Its combined predicate hides whether target location, journal count, revision,
receipt ID, mutation kind, summary, or affected-subject bounds failed. Keep that
function as the deterministic preflight owner, but report the complete mismatch
set with indexed journal findings. Add focused tests, review, gate, commit, and
push; then clone Run 106 and resume only the six missing round-23 compactions.
Preserve all 21 mutation receipts and 15 successful session checkpoints; do not
replay provider proposals, mutations, completed compactors, or earlier rounds.
Pushed diagnostic source `8cdbd2e` cloned Run 106 into immutable Run 107 and
reported the exact preflight defect before any model call:
`journal[1].summary contains 1047 characters; maximum 1000`. The strategic-smoke
journal producer duplicated every typed affected-subject ID into prose. The
current cut keeps exact identities solely in `affected_subject_ids` and emits
only `Applied {mutation_kind} to {parent_gestalt_id}.` as summary. One focused
producer regression and all 20 strategic-smoke tests pass. Finish the package
gate, review, commit, and push; then clone Run 107 and resume only the six
missing round-23 compactions. Preserve all 21 mutation receipts and 15
successful session checkpoints; do not replay provider proposals, mutations,
completed compactors, or earlier rounds.
The acceptance launcher retains one 35 MiB content-addressed runner per exact
source commit and deletes disposable compiler output; do not restore a
persistent Cargo target tree.
@ -476,14 +478,14 @@ approved capability.
## Next action
Preserve Runs 75 through 106. Make `compact_elaborator_session` report its
complete deterministic preflight mismatch set with indexed journal findings,
then add focused tests, review, gate, commit, and push. Clone Run 106 and resume
only the six missing round-23 session compactions. Preserve all 21 committed
mutations at revisions 1409 through 1429 and 15 successful compactions without
replaying provider proposals, mutations, completed compactors, or earlier
rounds. Continue iterative complexity rounds to 2,400 canonical actionable
subjects, followed by ten strategic waves, publications, archive hashes, and
Preserve Runs 75 through 107. Finish the package gate, review, commit, and push
the compact journal-summary producer cut. Clone Run 107 and resume only the six
missing round-23 session compactions. Preserve all 21 committed mutations at
revisions 1409 through 1429 and 15 successful compactions without replaying
provider proposals, mutations, completed compactors, or earlier rounds. Keep
exact affected identities in typed `affected_subject_ids`, not prose summary.
Continue iterative complexity rounds to 2,400 canonical actionable subjects,
followed by ten strategic waves, publications, archive hashes, and
unchanged-live-service verification.
The generic world-consumer boundary is implemented. Session Zero and external

View file

@ -196,7 +196,7 @@ live_architecture:
- Institution, faction, and consumer decision models
active_subgoals:
- Complete the separate latent-world complexity and active-simulation budget cut before another full-world acceptance. Approximately 2,400 potentially acting entities under a 240-cell attention cover is a causal-complexity target, not a population-roster target. Iterative elaboration must raise admitted complexity by fissioning Gestalts and promoting causally meaningful individuals and institutions, then remeasure the remaining deficit; it may not assume one row or one model call equals one useful subject. Resolution owns cover selection, and Nemesis assigns causal decision windows inside an existing cover without gaining cover or commit authority. Preserve Runs 64 through 106 and treat the Greathold as an externally sovereign boundary observer.
- Complete the separate latent-world complexity and active-simulation budget cut before another full-world acceptance. Approximately 2,400 potentially acting entities under a 240-cell attention cover is a causal-complexity target, not a population-roster target. Iterative elaboration must raise admitted complexity by fissioning Gestalts and promoting causally meaningful individuals and institutions, then remeasure the remaining deficit; it may not assume one row or one model call equals one useful subject. Resolution owns cover selection, and Nemesis assigns causal decision windows inside an existing cover without gaining cover or commit authority. Preserve Runs 64 through 107 and treat the Greathold as an externally sovereign boundary observer.
- Connect a Delvehold-owned adapter to the admitted generic consumer contract: shared compiler/consumer WorldSeed admission, externally authoritative institution-or-Gestalt snapshots, attributed proposal acknowledgement, and committed-event newspaper composition over typed CultNet, without consumer-specific IDs or schemas in Ghostlight.
- Extend strategic/offscreen named-person individuation beyond the proven emerge-then-act path so people plot across sustained political waves, acquire relationships, fold, and return without granting a cell, arena, or model commit authority.
- Finish the semantic mutation migration: delete or demote remaining legacy model effect schemas and move aggregate campaign fields toward projection-only state. Seed publication and named-person presence now have explicit non-effect authority classifications.
@ -329,8 +329,8 @@ current_status:
provider_acceptance_checkpoint: Exact pushed commit `139b8a6` completed Run 60 under `character-newsroom.v10` without world or per-wave replay. Its acceptance witness and terminal status bind the completed page and exact resume lineage. The independently dispatched blind reviewer, shown only the reader-facing fantasy newspaper, read it as a real left-populist civic broadsheet and did not immediately identify procedural generation, so the narrative reverse-Turing criterion passes. The review's substantive criticism is that the three stories feel like three rewrites of one briefing; accepted Run 60 remains immutable. The run used 96,902 prompt tokens and reported zero cache hits. Its delivered typeset artifact is `output/pdf/canopy-ledger-run-60-front-page.pdf`; frozen-source and visual verification remain accepted. Exact pushed `bc2ca39` then produced frozen-fact newsroom-only Run 61 Issues 13, 15, 16, 17, and 18 without world or wave model replay. Provider output proves `special_issue` convergence in Issues 13 and 15, independent `general_issue` beats in Issues 16 through 18, and assignment-selector cache hits. Blind review of Issues 13, 15, 16, and 17 passes both distinct recurring voices and issue-shape diversity, recognizing Ossan, Mera, Corin, and Lysa's biases plus modest cross-issue evolution. Run 62 exercised v12 without world or wave replay and failed only because two lead articles proposed invalid datelines; recurring reporter calls still recorded zero cache hits. Run 63 used exact pushed v13 `a52d57b`; Issues 17 and 18 completed before root stopped the final weekly recomposition, both repeated bylines again recorded zero cache hits, and live services remained unchanged. Preserve Runs 61 through 63 as stopped or completed immutable evidence. Copy defects remain later deadline-correction work rather than a reason to reopen accepted issue artifacts.
implementation_checkpoint: Exact pushed v13 `a52d57b` keeps one stable reporter action schema, places a common stable house charter before recurring identity and dynamic assignment, and projects deterministic `allowed_datelines` from cited records while retaining copy-desk factual authority and deterministic cited-place admission; 480 library tests and the all-target check pass. Run 63 falsifies reporter-cache pursuit as a useful acceptance target for sporadic independent filings. The proposed v14 cache-floor prompt growth was removed. Append-only agent contexts remain the natural cache beneficiary; accepted Run 60 remains immutable. The strategic cut extracts one shared `validate_strategic_individuation_proposals` owner used by resolution validation and by the scheduler before it returns an optional proposal. An invalid optional identity emits a semantic-invalid receipt and produces no individuation instead of aborting the recoverable wave. Focused valid and invalid regressions pass, and exact-source Run 68 exercises the corrected provider path through twelve committed waves; no further validator implementation is pending. The newsroom-only cut adds a navigation-only directory of completed public changes grouped by period and exact source timestamps to new v14 audit citations. The directory derives context from canonical records and gains no fact or world authority. Legacy empty source times are omitted from both rendering and serialization, preserving inherited v13 receipt bytes and digests; new v14 nonempty source times remain rendered and serialized. Exact-source Run 73 proves that compatibility path and final recomposition mechanically. Current source gives the assignment editor bounded full-ledger queries and explicitly asks it to search sideways for opposition and countermoves; Run 73 falsifies the stronger assumption that this access and instruction alone guarantee balanced selection. Exact pushed v15 source `b6787d909bd79b68ed3a4d143b7f6dd438e00fa2` binds accountability, opposition, and counter-narrative pitches to two distinct named parties and selected citations through a typed conflict axis, and preserves canonical ledger order. Run 74 falsifies the stronger v15 assumption: its lone accountability pitch used the same transfer citation for cultivators and a passive Tribunal, while four of five pitches avoided the adversarial axis through lead or consequence functions. Two cited names did not prove two moves. Exact pushed v16 `86fe6ed89d51da26b65ab6a031608075840b1527` binds each adversarial axis to two distinct cited public moves or positions and rejects one record presented as both sides; it adds no event writer, judge, process, dependency, or persistent authority. Formatting, 27 focused newspaper tests, 484 full library tests, and 16 strategic-smoke tests pass.
full_world_acceptance_checkpoint: Run 68 at exact source `69c811a2669fc38f19f9199bf57088dc250bfc3e` is mechanically complete at world revision 27 with 12/12 strategic waves, 240 events, 514 public news rows, and a final newspaper. Independent editorial and grounding reviews both fail. Earlier per-wave papers prove the immutable record already contains dramatic completed facts, including an organ breaching the rail capital, a dead pump, and families crossing borders; the final paper failed to make that committed change legible. Preserve Run 68 unchanged. Run 69 at source `84b31e57a462710eb939c4559e0437eb5d6a7a28` failed before any model call when immutable recomposition verification encountered an empty rendered `Source time:` line in inherited v13 per-wave issues. Run 70 at source `ec45952b843e102dc2ebddda3a3bbb4058687175` also failed before any model call because v14 serialization changed the legacy recomposition digest. Exact-source Run 73 `b827d897b9579c2091a67c363d35b8695288ba2f` is terminal complete at `/var/lib/gamecult/ghostlight-dungeon/acceptance/full-world-delvehold-b827d89-73`: world revision 27, 12/12 waves, 240 events, 514 news rows, inherited artifacts byte-identical to Run 68, manifest valid, and archive SHA-256 `090d05f304c8f3d33c9dccd728bffbf3e5dc2969a7aeeffc2f9d7bafe701ac8a`. Exact-source Run 74 `b6787d909bd79b68ed3a4d143b7f6dd438e00fa2` is mechanically complete at `/var/lib/gamecult/ghostlight-dungeon/acceptance/full-world-delvehold-b6787d9-74`: revision 27, 12/12 waves, 240 events, 514 news rows, Run 68 inherited artifacts byte-identical, manifest valid, unchanged live services, and archive SHA-256 `957b11a5d584d27d23bf4d50ed1fbc8d067faf67953b03f80705bfb9587c496d`. Independent editorial review fails: the page has a coherent throughline and sharp prose but no sustained adversarial narrative; opposing decision-makers, motives, responses, and countermoves are largely absent, scandal and public reaction are missing, lived costs remain abstract, and the result reads as polished minutes with conclusions. Its post-press correction notice has two items: `The corridor had begun closing hours earlier` overstates a source that says the prolonged oath-route closure was diverting arrivals six hours before the breach; `no relief or assignment of liability has followed` must narrow to `no tribunal remedy is recorded yet`. Run 75 launched at exact source `86fe6ed89d51da26b65ab6a031608075840b1527` under the superseded 240-cell-only acceptance shape and was stopped cleanly at the operator's scale correction. Preserve `/var/lib/gamecult/ghostlight-dungeon/acceptance/full-world-delvehold-86fe6ed-75` as stopped non-acceptance evidence: preflight, world-region and titled-elaboration checkpoints, a wave-one cell terminal checkpoint, partial pulses 01/02, and two rejected pulse receipts exist. `ghostlight-full-world-run75.service` invocation `86bfe6a3ef504a7d99f579b3d67710ab` is inactive/dead after explicit stop; live services remain unchanged. Do not claim terminal success or failure. Preserve Runs 64 through 75. Mechanical completion of the earlier world is proven, but final newspaper acceptance under the corrected scale target is not.
scale_checkpoint: The active 240-cell entitlement is an attention budget, not the world-size claim. The approximately 2,400 potentially acting entities are a target for causally meaningful latent complexity, not a raw population or roster count. Multiresolution Gestalts compress the unresolved population; repeated admitted elaboration must fission them and promote individuals and institutions whose agency, relationships, resources, pressures, or authority can actually participate in consequences, then remeasure the deficit. `WorldScaleIntent` and deterministic `WorldElaborationDemand` derive the 2,400-subject target, deficit, weighted per-realm shares, and bounded mutation budget. Logical title-by-realm continuity is a bounded digest-chained checkpoint after successful rounds, not a provider thread or complete cognition; frozen failure checkpoints retain exact schedules, proposals, failed dispatches, diagnostics, and receipts for resume. WorldKernel alone commits and canonical complexity is remeasured after every round. Pushed exact source `75d9235352dc6678617f532f4cd2e7f39c7b23e1` owns deterministic exact-ID proposal supersession. Immutable Run 105 at that source completed round 21 from 2,118 to 2,159 subjects and round 22 from 2,159 to 2,194. Round 23 froze 21 invocations, committed all 21 mutations at revisions 1409 through 1429, and persisted 15 of 21 title-by-realm session checkpoints before compaction stopped. Immutable same-source Run 106 cloned Run 105 and reproduced the failure without writing another session checkpoint. The generic `elaborator session compaction journal is empty, stale, or unbounded` message comes from `compact_elaborator_session` before model execution; one combined predicate currently hides whether the target location, journal count, world revision, receipt ID, mutation kind, summary, or affected-subject bound failed. This is deterministic preflight ownership, not an agent reasoning or provider-session defect. Existing round-23 mutation receipts and 15 successful compactions remain authoritative and must not replay. Exact resource/member assignment, compact individuation ownership, proposal supersession, civic fission rebinding, evolved-checkpoint proof, bounded lineage lookup, parallel session compaction, deterministic child-ID reconciliation, and materialized-member affiliation transfer remain preserved. Resolution owns derived cover membership. Nemesis receives an existing cover and assigns bounded causal decision windows among eligible responders; it does not allocate that cover.
scale_checkpoint: The active 240-cell entitlement is an attention budget, not the world-size claim. The approximately 2,400 potentially acting entities are a target for causally meaningful latent complexity, not a raw population or roster count. Multiresolution Gestalts compress the unresolved population; repeated admitted elaboration must fission them and promote individuals and institutions whose agency, relationships, resources, pressures, or authority can actually participate in consequences, then remeasure the deficit. `WorldScaleIntent` and deterministic `WorldElaborationDemand` derive the 2,400-subject target, deficit, weighted per-realm shares, and bounded mutation budget. Logical title-by-realm continuity is a bounded digest-chained checkpoint after successful rounds, not a provider thread or complete cognition; frozen failure checkpoints retain exact schedules, proposals, failed dispatches, diagnostics, and receipts for resume. WorldKernel alone commits and canonical complexity is remeasured after every round. Pushed exact source `75d9235352dc6678617f532f4cd2e7f39c7b23e1` owns deterministic exact-ID proposal supersession. Immutable Run 105 at that source completed round 21 from 2,118 to 2,159 subjects and round 22 from 2,159 to 2,194. Round 23 froze 21 invocations, committed all 21 mutations at revisions 1409 through 1429, and persisted 15 of 21 title-by-realm session checkpoints before compaction stopped. Immutable same-source Run 106 cloned Run 105 and reproduced the failure without writing another session checkpoint. Pushed diagnostic source `8cdbd2e` then ran immutable Run 107 from Run 106 and reported the exact preflight defect before any model call: `journal[1].summary contains 1047 characters; maximum 1000`. The strategic-smoke journal producer had duplicated every typed `affected_subject_id` into its prose summary. The current cut keeps exact IDs solely in `affected_subject_ids` and reduces summary to `Applied {mutation_kind} to {parent_gestalt_id}.`; one focused producer regression and all 20 strategic-smoke tests pass. Existing round-23 mutation receipts and 15 successful compactions remain authoritative and must not replay. Exact resource/member assignment, compact individuation ownership, proposal supersession, civic fission rebinding, evolved-checkpoint proof, bounded lineage lookup, parallel session compaction, deterministic child-ID reconciliation, and materialized-member affiliation transfer remain preserved. Resolution owns derived cover membership. Nemesis receives an existing cover and assigns bounded causal decision windows among eligible responders; it does not allocate that cover.
presentation_checkpoint: The historical press-layout and seed-ownership split are complete. `notes/historical-newspaper-layout-grammar.md` remains the durable grammar. Manifest v2 at `output/tex/canopy-ledger-run-61-style-1847-flow-723.manifest.toml` independently binds `style_seed=1847`, `flow_seed=723`, frozen source SHA-256 `8f195140f52a40ba705d6a66987146a1500ae89668e5d82b01d1792eb3afb882`, and the final artifact `output/pdf/canopy-ledger-run-61-style-1847-flow-723.pdf`, SHA-256 `a457f4b1702a7a52480e42fce0039f0dbe677ff32958e98f1c412b346237190c`. An identical seed pair produces byte-identical TeX and PDF; changing only flow preserves the exact style section while materially changing a plausible layout, and changing only style preserves flow topology. Cut-first and cut-midstory templates pass visual inspection; the failed split-card template is deleted. Frozen copy/assets, actual PDF `/BM /Multiply`, and economic-layer advertising authority remain invariant.
public_reference_checkpoint: Public architecture reference is complete. Canonical Ghostlight commit `15ea0f0` owns five pages under `docs/public-architecture` covering overview, authority, pipelines, 43 named production stages, and eight titled elaborators. Site commit `ea0b026` publishes exact projections under `F:\Projects\GhostlightDungeon-site\content\Documentation`, adds the sync/check script, explorer and table-of-contents navigation, scoped documentation layout, and homepage Architecture link. Local Quartz build and visual browser QA pass. GitHub Pages workflow `33408004480` succeeded. `https://ghostlight.gamecult.org/Documentation/` and the extensionless `Documentation/Agents-and-model-stages` route are live; the stage page exposes seven tables and 51 rows. Ghostlight remains technical authority; the site repository owns public composition and deployment.
next_action: Preserve Runs 75 through 106. Make `compact_elaborator_session` report the complete deterministic preflight mismatch set, including indexed journal-entry findings, without moving validation or repair authority into the model harness. Add focused ownership tests, review, gate, commit, and push. Then clone immutable Run 106 and resume only the missing round-23 title-by-realm compactions; preserve all 21 committed mutations at revisions 1409 through 1429 and the 15 successful session checkpoints without replaying provider proposals, mutations, completed compactors, or earlier rounds. Continue checkpoint-preserving complexity rounds until canonical remeasurement reaches 2,400 meaningful actionable subjects, then require ten strategic waves, publications, archive hashes, and unchanged live-service identities. Logical title-by-realm continuity remains bounded by agentic compaction; it is not a persistent provider thread. Preserve compact individuation ownership, canonical-ID identity ownership, deterministic proposal supersession, Resolution cover ownership, Nemesis's bounded causal-window role, the completed public reference, the two-seed press checkpoint, and the economic-layer advertising boundary.
next_action: Preserve Runs 75 through 107. Review and finish the package gate for the compact strategic journal-summary producer cut, then commit and push. Clone immutable Run 107 and resume only the six missing round-23 title-by-realm compactions; preserve all 21 committed mutations at revisions 1409 through 1429 and the 15 successful session checkpoints without replaying provider proposals, mutations, completed compactors, or earlier rounds. Keep exact affected identities solely in typed `affected_subject_ids`; prose summary names only mutation kind and assigned parent. Continue checkpoint-preserving complexity rounds until canonical remeasurement reaches 2,400 meaningful actionable subjects, then require ten strategic waves, publications, archive hashes, and unchanged live-service identities. Logical title-by-realm continuity remains bounded by agentic compaction; it is not a persistent provider thread. Preserve compact individuation ownership, canonical-ID identity ownership, deterministic proposal supersession, Resolution cover ownership, Nemesis's bounded causal-window role, the completed public reference, the two-seed press checkpoint, and the economic-layer advertising boundary.
gestalt_population: Gestalt Personas own shared population baselines; persistent member deltas own named individuality; WorldKernel materialization and approval-gated fission preserve lineage and identity. Materialisation/folding changes only representation and the exact member delta, advances resolution epoch, and retires the old cover; it has no Gestalt-wide effect authority. Selected actionable member exceptions are mandatory Projector perspective owners, so aggregation cannot silently erase their decision. Presence projection is limited to nearby active leaves and exact-location dormant members, includes reciprocal player relationship evidence, and may propose an earned cast without committing it. Simulation cells are derived covers only.