diff --git a/crates/ghostlight-dungeon/src/newspaper.rs b/crates/ghostlight-dungeon/src/newspaper.rs index 2e8d42b..3dc410b 100644 --- a/crates/ghostlight-dungeon/src/newspaper.rs +++ b/crates/ghostlight-dungeon/src/newspaper.rs @@ -281,6 +281,7 @@ pub struct WorldNewspaperPressClose { #[serde(rename_all = "snake_case")] enum WorldNewspaperCloseOrigin { InitialCopyDesk, + LegacyV7Checkpoint, } #[derive(Clone, Debug, Serialize, Deserialize, PartialEq)] @@ -1690,7 +1691,8 @@ fn load_close_checkpoint( .load_all::("world_newspaper_close_checkpoint.v1")? .into_iter() .filter(|checkpoint| { - checkpoint.publication_task_binding == prepared.publication_task_binding + checkpoint.origin == WorldNewspaperCloseOrigin::InitialCopyDesk + && checkpoint.publication_task_binding == prepared.publication_task_binding }) .collect::>(); if checkpoints.is_empty() { @@ -4489,6 +4491,83 @@ mod tests { ); } + #[tokio::test] + async fn legacy_close_checkpoint_decodes_as_inert_history() { + let campaign = campaign_with_news(); + let source_directory = tempfile::tempdir().unwrap(); + let source_store = + CampaignStore::open(source_directory.path().join("campaign.cc")).unwrap(); + let interrupted = ScriptedNewspaperModel::new([ + QUERY_ALL_RECORDS, + ONE_STORY_AGENDA, + ACCEPTED_STORY_ACTION, + ACCEPTING_COPY_DESK, + ]); + advance_world_newspaper( + &interrupted, + &campaign, + "The Underdeep Clarion", + "A skeptical court broadsheet with dry restraint.", + &canopy_ledger_newsroom(), + 4, + &source_store, + ) + .await + .unwrap_err(); + let mut legacy = source_store + .load_all::( + "world_newspaper_close_checkpoint.v1", + ) + .unwrap() + .into_iter() + .next() + .unwrap(); + legacy.id = "newspaper-close:legacy-v7".into(); + legacy.origin = WorldNewspaperCloseOrigin::LegacyV7Checkpoint; + legacy.source_checkpoint_id = Some("historical-v7-tip".into()); + + let target_directory = tempfile::tempdir().unwrap(); + let target_store = + CampaignStore::open(target_directory.path().join("campaign.cc")).unwrap(); + target_store + .insert( + "world_newspaper_close_checkpoint.v1", + "ghostlight.world_newspaper_close_checkpoint.v1", + &legacy.id, + &legacy, + ) + .unwrap(); + + let model = ScriptedNewspaperModel::new([ + QUERY_ALL_RECORDS, + ONE_STORY_AGENDA, + ACCEPTED_STORY_ACTION, + ACCEPTING_COPY_DESK, + UNCHANGED_NIGHT_CLOSE, + ]); + let composition = advance_world_newspaper( + &model, + &campaign, + "The Underdeep Clarion", + "A skeptical court broadsheet with dry restraint.", + &canopy_ledger_newsroom(), + 4, + &target_store, + ) + .await + .unwrap(); + + assert_eq!(model.requests().len(), 6); + assert_eq!(composition.issue.articles.len(), 1); + assert_eq!( + target_store + .keys("world_newspaper_close_checkpoint.v1") + .unwrap() + .len(), + 2 + ); + } + #[tokio::test] async fn reader_projection_escapes_model_and_consumer_markdown() { const MARKDOWN_PAGE: &str = r#"{"tool":"file_story","headline":"[Court](https://headline.invalid) Faces ","deck":"The *royal* debt now reaches every keeper of the seal.","dateline":"Room","paragraphs":["- The Thorn Court admitted the royal seal was pawned to cover a dragon's gambling debt; cannot make the confession ~~prettier~~.","1. The dismissed treasurer leaves readers with a [public record](https://copy.invalid) and the court with a seal that remains pawned."]}"#; diff --git a/notes/fresh-workspace-handoff.md b/notes/fresh-workspace-handoff.md index 45fe206..560ab68 100644 --- a/notes/fresh-workspace-handoff.md +++ b/notes/fresh-workspace-handoff.md @@ -1382,11 +1382,16 @@ disposition, and closure. Run 60 attempts 1 and 2 stopped before any v9 provider call. Attempt 1 exposed the missing `wave_count + 1` final-only sentinel. Attempt 2 reached final composition without simulation or per-wave replay, then exposed automatic v7 -close import as obsolete live authority. The current uncommitted cut deletes -legacy reconciliation/import from live newsroom ownership, makes advance return -one composition, and leaves the exact-current close checkpoint as the sole -resume owner. Gates pass 474/474 library tests, 16/16 strategic-smoke tests, and -all-target checks. Provider and reverse-Turing acceptance remain unproven. +close import as obsolete live authority. Pushed `c0a001c` deletes that authority, +makes advance return one composition, and leaves the exact-current close +checkpoint as the sole resume owner. Attempt 3 built that exact source and also +stopped before a provider call with an empty receipt list: the private +close-origin enum could not decode historical `legacy_v7_checkpoint`. The +current single-file fix admits that spelling solely as an inert private +tombstone, filters it before exact-current close selection, and proves a fresh +v9 issue runs despite a matching historical row. Gates pass 475/475 library +tests, 16/16 strategic-smoke tests, and all-target checks. Provider and +reverse-Turing acceptance remain unproven. Run 54 exposed one separate upstream publicity defect: a public strategic activity propagates its channel to private `MemberMemory` outcomes, which is @@ -1397,10 +1402,11 @@ materializing a `NewsIssue`. 1. Preserve immutable Run 59 and its later-publication correction debt; do not rewrite or resimulate it. -2. Commit and push the verified resume-ownership cut. Resume the same Run 60 - root at final composition without simulation or per-wave replay; do not - launch a fresh campaign or import a v7 close. Measure actual cached tokens - and freeze the resulting reader-facing v9 front page. +2. Commit and push the inert-tombstone compatibility fix. Resume the same Run + 60 root at final composition without simulation or per-wave replay; do not + launch a fresh campaign or let the historical tombstone regain close + authority. Measure actual cached tokens and freeze the resulting + reader-facing v9 front page. 3. Dispatch an independent blind reviewer with only that fantasy newspaper and a request for its journalistic opinion. Do not expose generation mechanics, prompts, receipts, provenance, or the acceptance hypothesis. Pass only if diff --git a/notes/ghostlight-current-system-map.md b/notes/ghostlight-current-system-map.md index 09eb84d..a6f08c9 100644 --- a/notes/ghostlight-current-system-map.md +++ b/notes/ghostlight-current-system-map.md @@ -1442,14 +1442,16 @@ The deliberative newsroom boundary is live under this authority map: v1 binds the assigned agenda, assembled page, single copy report, task and exact editorial bindings, and immutable receipt chain. Its only valid origin is `InitialCopyDesk`, and its compatibility-shaped `source_checkpoint_id` - must be absent; validation rejects any other origin or imported ancestry. + must be absent. The private `LegacyV7Checkpoint` enum spelling is a read-only + deserialization tombstone: the loader filters it before task selection, + receipt loading, validation, or close authority. Composition v3 stores the printed issue, copy report, press-close witness, and receipts. Public issue schema v3 remains unchanged. Candidate agendas and front-page proofs remain ephemeral. Historical v7 reconciliation rows may remain in archived or resumed stores as inert provenance, but the live newspaper module defines no reconciliation loader, import envelope, or conversion path and does not - deserialize or rebind them. Historical strategic recomposition v1/v2 receipts + rebind them. Historical strategic recomposition v1/v2 receipts are a separate acceptance-driver verification surface; their typed validators can prove original artifacts but cannot write newsroom state. Resume authority belongs only to an exact-current close checkpoint bound to the same v9 task, @@ -1484,7 +1486,8 @@ The deliberative newsroom boundary is live under this authority map: stage, deterministic source/printed digests, exact receipt ancestry, close-checkpoint resume without reporter or copy replay, idempotent persisted composition validation, printing the checkpointed page after a structurally - rejected close. The close validator admits only `InitialCopyDesk` checkpoints + rejected close, and a fresh v9 close in a store containing a matching inert + v7 tombstone. The close validator admits only `InitialCopyDesk` checkpoints with no source ancestry, while exact-current resume and idempotence regressions exercise the only surviving resume path. Strategic recomposition v3 binds the copy report and press witness by digest while v1/v2 remain historical diff --git a/state/map.yaml b/state/map.yaml index 713de10..cccd6bc 100644 --- a/state/map.yaml +++ b/state/map.yaml @@ -325,7 +325,7 @@ data_flow: current_status: summary: Ghostlight's generic consumer boundary admits sparse WorldSeeds, runs the hundreds-class parallel cell machinery used by Dungeon, and projects grounded newspapers from committed public events. Local acceptance proves 1,000 subjects across 200 cells and two-wave durable named-person emergence. Exact-source provider run 38 at `596e50679244b5d42b4cfdf70d723f815751b8ff` resumed the preserved world at revision 8 without replaying compilation or four committed locality elaborations, recovered 51 of 52 strategic-wave cells on pulse three and the final cell on pulse four, then committed all six waves through revision 14. Pushed commit `3a69306f3004e4af2cd57bba612a6ad8d1b8132f` implements the mapped clock-consequence owner and is verified locally: world clocks own declared consequence text and exact observable scope; a bounded agent may propose legacy scope binding, while `WorldKernel` alone admits it and materializes stable threshold-crossing events and public news through the common mutation path. Binding, emitted-event ancestry, mutation receipts, and the next newspaper boundary persist atomically. Exact-source run 39 resumed run 38 without replaying its six committed waves, bound clock consequences, committed six new waves through revision 21, and emitted Issues 7 through 12 plus a final digest. This completes the mechanical provider acceptance path; all inherited wave 1-6 checkpoint hashes match run 38 exactly and live services were unchanged. Independent blind editorial review returns FAIL: only Issue 7 approaches spicy, while Issues 8-12 are dominated by plans, filings, inspections, warnings, and abstract relationship deltas without betrayal, scandal, public reaction, sustained reversal, or material lived cost. That run-39 diagnosis is superseded for the current phase: run 51 closes the world and reconciliation mechanics, and the active defect belongs to newsroom narrative selection and self-contained semantic provenance over immutable facts. Independent grounding review also returns FAIL: Issue 9 inflates a planned expedited agenda into completion, while Issue 8 assigns unsupported feminine pronouns to Sela Venn and Eryn Tal. Other grounding mechanics pass: 208/208 citations resolve, no future events appear, no replay occurred, the player remained unchanged, all 116/116 manifest entries verify, the archive is exact, and root independently confirmed the live service PIDs and invocation IDs remained unchanged. Editorial and grounding acceptance are terminally failed for run 39. Eight titled elaborators use the generic agent harness under deterministic weighted scheduling, bounded parallelism, and Luna/Terra/Sol routing. Workers remain proposal-only; deterministic admission binds exact frozen schedules, dispatch, receipts, conflicts, and semantic verification, and `WorldKernel` alone owns atomic CultCache persistence. Destination reconciliation is a private transactional workbench, provider schema compatibility is lowered once at the shared model-connector boundary, and durable elaboration and strategic-pulse checkpoints bind to their canonical mutation proofs. The generic ModelAgent harness remains consumer-neutral transport. Provider run 23 remains stopped; earlier failed runs and checkpoint archives remain immutable provenance. The live daemons remain outside the acceptance body. Dungeon play remains regression pressure, the Delvehold game-side adapter remains unimplemented, and unpublished Mars and Kalsa destination previews remain unapproved. - provider_acceptance_checkpoint: Run 60 remains the active `character-newsroom.v9` acceptance root and has made no v9 provider call. Attempt 1 stopped on the missing `wave_count + 1` final-only sentinel. Attempt 2 reached final composition without simulation or per-wave replay, then stopped because automatic v7 close import still claimed live resume authority. Run 59 remains the prior immutable printed evidence with its exact press proof and later-publication debt; neither Run 60 attempt changes it or supplies reverse-Turing evidence. - implementation_checkpoint: Exact pushed commit `901cfcd58794acc35b24be3d1e149fd2df0f6c3d` implements `character-newsroom.v9`. The assignment editor sees one embodied publication roster and owns story, section, evidence, and journalist assignment. One bounded journalist agent writes each assigned story from only its own profile, pitch, and exact cited records; assignment-owned byline, section, citations, and order are assembled deterministically. Dalen Marr alone emits one complete factual checklist. Meret Sorn receives only queried articles, affected assignments, their cited facts, and affected reporter profiles, then gets one checklist-bound close action over exactly those articles. The generic model harness preserves typed append-only user/assistant request prefixes, keeps schemas out of prompt text, and routes stable stage/model/schema cache keys. The current uncommitted resume-ownership cut removes legacy reconciliation/import from live newsroom authority, makes advance return exactly one composition, and leaves the exact-current close checkpoint as the sole resume owner. Gates pass 474/474 library tests, 16/16 strategic-smoke tests, and all-target checks. Provider and reverse-Turing acceptance remain unproven. - next_action: Commit and push the verified resume-ownership cut, then resume the same Run 60 root at final composition without replaying simulation or per-wave publications. Capture real cached-token behavior and the immutable v9 front page, then dispatch the independent blind journalistic review under the exact reverse-Turing criterion. Preserve Run 59 and both failed Run 60 attempts; do not launch a fresh campaign, import a v7 close, or redefine a merely less-bad review as passage. Defer multi-publication expansion, TeX layout, and engraved cuts. + provider_acceptance_checkpoint: Run 60 remains the active `character-newsroom.v9` acceptance root and has made no v9 provider call. Attempt 1 stopped on the missing `wave_count + 1` final-only sentinel. Attempt 2 reached final composition without simulation or per-wave replay, then exposed automatic v7 close import as obsolete authority. Attempt 3 built exact pushed source `c0a001c` and stopped before any provider call with an empty receipt list because the private close-origin enum could not decode historical `legacy_v7_checkpoint`. Run 59 remains the prior immutable printed evidence; no Run 60 attempt changes it or supplies reverse-Turing evidence. + implementation_checkpoint: Exact pushed commit `c0a001c` removes legacy reconciliation/import from live newsroom authority, makes advance return exactly one composition, and leaves the exact-current close checkpoint as the sole resume owner. `character-newsroom.v9` retains its embodied assignment editor, bounded assigned journalists, single factual copy checklist, checklist-bound Night close, typed append-only prompt history, stable action schemas, and deterministic press admission. The current single-file uncommitted fix reintroduces `legacy_v7_checkpoint` solely as an inert private decoding tombstone, filters it before exact-current close selection, and adds a regression proving a fresh v9 issue runs despite a matching historical row. Gates pass 475/475 library tests, 16/16 strategic-smoke tests, and all-target checks. Provider and reverse-Turing acceptance remain unproven. + next_action: Commit and push the inert-tombstone compatibility fix, then resume the same Run 60 root again at final composition without replaying simulation or per-wave publications. Capture real cached-token behavior and the immutable v9 front page, then dispatch the independent blind journalistic review under the exact reverse-Turing criterion. Preserve Run 59 and all three failed Run 60 attempts; do not launch a fresh campaign, let the tombstone regain resume authority, or redefine a merely less-bad review as passage. Defer multi-publication expansion, TeX layout, and engraved cuts. 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.