diff --git a/crates/ghostlight-dungeon/src/newspaper.rs b/crates/ghostlight-dungeon/src/newspaper.rs index 6a16f1f..9291577 100644 --- a/crates/ghostlight-dungeon/src/newspaper.rs +++ b/crates/ghostlight-dungeon/src/newspaper.rs @@ -20,7 +20,7 @@ use std::{ const MAX_FRONT_PAGE_ARTICLES: usize = 6; const MAX_SOURCE_NEWS_ITEMS: usize = 32; -const MAX_GROUNDING_RECONCILIATION_STEPS: usize = 1; +const MAX_GROUNDING_RECONCILIATION_STEPS: usize = 2; const EDITION_LABEL: &str = "Current Edition"; const ALLOWED_SECTIONS: [&str; 6] = [ "Front Page", @@ -242,9 +242,44 @@ enum GroundingReconciliationFinding { CopyDeskRejected { draft: EditorialPageDraft, verdict: WorldNewspaperGroundingVerdict, + finding_catalog: Vec, }, } +#[derive(Clone, Debug, Serialize)] +struct GroundingFindingCatalogEntry { + finding_ref: GroundingFindingRef, + finding: WorldNewspaperGroundingFinding, +} + +fn grounding_finding_catalog( + verdict: &WorldNewspaperGroundingVerdict, +) -> Vec { + verdict + .findings + .iter() + .enumerate() + .map(|(index, finding)| GroundingFindingCatalogEntry { + finding_ref: GroundingFindingRef( + u16::try_from(index).expect("bounded grounding finding index"), + ), + finding: finding.clone(), + }) + .collect() +} + +fn grounding_reconciliation_finding( + draft: EditorialPageDraft, + verdict: WorldNewspaperGroundingVerdict, +) -> GroundingReconciliationFinding { + let finding_catalog = grounding_finding_catalog(&verdict); + GroundingReconciliationFinding::CopyDeskRejected { + draft, + verdict, + finding_catalog, + } +} + struct GroundingReconciliationOutput { draft: EditorialPageDraft, verdict: WorldNewspaperGroundingVerdict, @@ -374,10 +409,7 @@ pub async fn compose_world_newspaper( model_receipts: receipts, }); } - let initial_finding = GroundingReconciliationFinding::CopyDeskRejected { - draft: draft.clone(), - verdict, - }; + let initial_finding = grounding_reconciliation_finding(draft.clone(), verdict); let reconciliation_sources = receipts .iter() @@ -481,9 +513,9 @@ impl ModelAgentTool for GroundingReconciliationWorkbench<'_> { Ok(draft) => draft, Err(error) => { return ModelAgentToolOutcome::Rejected { - finding: GroundingReconciliationFinding::CopyDeskRejected { - draft: self.draft.clone(), - verdict: WorldNewspaperGroundingVerdict { + finding: grounding_reconciliation_finding( + self.draft.clone(), + WorldNewspaperGroundingVerdict { accepted: false, assessment: format!( "The proposed narrow repair was not admitted: {error}" @@ -493,16 +525,16 @@ impl ModelAgentTool for GroundingReconciliationWorkbench<'_> { .collect(), findings: self.verdict.findings.clone(), }, - }, + ), receipts: Vec::new(), }; } }; if let Err(error) = validate_editorial_draft(self.sources, &draft, self.max_articles) { return ModelAgentToolOutcome::Rejected { - finding: GroundingReconciliationFinding::CopyDeskRejected { - draft: self.draft.clone(), - verdict: WorldNewspaperGroundingVerdict { + finding: grounding_reconciliation_finding( + self.draft.clone(), + WorldNewspaperGroundingVerdict { accepted: false, assessment: format!("The narrow repair produced invalid copy: {error}") .chars() @@ -510,7 +542,7 @@ impl ModelAgentTool for GroundingReconciliationWorkbench<'_> { .collect(), findings: self.verdict.findings.clone(), }, - }, + ), receipts: Vec::new(), }; } @@ -558,7 +590,7 @@ impl ModelAgentTool for GroundingReconciliationWorkbench<'_> { self.draft = draft.clone(); self.verdict = verdict.clone(); ModelAgentToolOutcome::Rejected { - finding: GroundingReconciliationFinding::CopyDeskRejected { draft, verdict }, + finding: grounding_reconciliation_finding(draft, verdict), receipts: copy_desk_receipts, } } @@ -773,20 +805,7 @@ async fn run_grounding_reconciliation( let initial_verdict = match &initial_finding { GroundingReconciliationFinding::CopyDeskRejected { verdict, .. } => verdict.clone(), }; - let indexed_findings = initial_verdict - .findings - .iter() - .enumerate() - .map(|(finding_index, finding)| { - serde_json::json!({ - "finding_ref":finding_index, - "article_index":finding.article_index, - "category":finding.category, - "claim_or_phrase":finding.claim_or_phrase, - "reason":finding.reason, - }) - }) - .collect::>(); + let indexed_findings = grounding_finding_catalog(&initial_verdict); let instructions = format!( "You are Ghostlight's grounding reconciliation agent. Repair one already-edited newspaper page against the same frozen source desk and exact rejection. You do not report new events, add spice, improve the simulation, or rerun the editor. The workbench freezes article selection, order, sections, bylines, citations, and all unaffected copy. Submit only replacements for the numbered current findings, or delete the article containing a numbered finding when its cited notes cannot support a grounded story. Each replacement selects one finding_ref and supplies only its replacement text. The deterministic workbench owns the selected finding's article, text field, paragraph, exact phrase, and byte span. replacement may be empty when phrase deletion is the honest repair. Address the complete finding set in this one pass. Preserve source status exactly: an attempt is not a result, a committed course does not complete its embedded plans, and a public declaration is not evidence that its demand succeeded. A named person's supported_identity_attributes is exhaustive; when it is empty, use the name or identity-neutral wording and do not invent pronouns, gender, title, kinship, or office. Delete an unsupported phrase rather than replacing it with an adjacent invention. The deterministic workbench applies the edits transactionally and reruns the same whole-page copy desk.\n\nFROZEN NEWSROOM FACT DESK:\n{}\n\nINITIAL DRAFT:\n{}\n\nNUMBERED EXACT FINDINGS:\n{}", source_json, @@ -1757,6 +1776,7 @@ mod tests { const ACCEPTED_PAGE: &str = r#"{"articles":[{"section":"Front Page","headline":"Court Sells the Crown's Seal, Then the Treasurer","deck":"A gambling debt reaches the throne room and leaves one official carrying the blame.","byline":"By the political editor","dateline":"Room","citations":["1"],"paragraphs":["The Thorn Court has admitted that its royal seal was pawned to cover a dragon's gambling debt, a confession that turns private embarrassment into a public question of custody.","The treasurer who delivered that admission in open court was dismissed soon afterward. The court has explained the firing; it has not made the seal any less pawned."]}]}"#; const TWO_ARTICLE_PAGE: &str = r#"{"articles":[{"section":"Front Page","headline":"Court Sells the Crown's Seal, Then the Treasurer","deck":"A gambling debt reaches the throne room and leaves one official carrying the blame.","byline":"By the political editor","dateline":"Room","citations":["1"],"paragraphs":["The Thorn Court has admitted that its royal seal was pawned to cover a dragon's gambling debt, a confession that turns private embarrassment into a public question of custody.","The treasurer who delivered that admission in open court was dismissed soon afterward. The court has explained the firing; it has not made the seal any less pawned."]},{"section":"Dispatches","headline":"West Gate to Close at Moonrise","deck":"Masons will replace a cracked hinge after the palace bell keeper's warning.","byline":"Staff report","dateline":"Yard","citations":["2"],"paragraphs":["Officials warn the west gate is unsafe, and the palace bell keeper says it will close at moonrise while masons replace the cracked hinge.","Travellers using the gate have been told when it will close, though no reopening hour was included in the announcement."]}]}"#; const REPAIR_DECK_ACTION: &str = r#"{"tool":"submit_edits","replacements":[{"finding_ref":0,"replacement":"The court's admission leaves one official carrying the blame for the pawned seal."}],"delete_finding_refs":[]}"#; + const SECOND_REPAIR_DECK_ACTION: &str = r#"{"tool":"submit_edits","replacements":[{"finding_ref":0,"replacement":"the dismissed treasurer named in the public record"}],"delete_finding_refs":[]}"#; const DELETE_SECOND_ARTICLE_ACTION: &str = r#"{"tool":"submit_edits","replacements":[],"delete_finding_refs":[0]}"#; const ACCEPTING_COPY_DESK: &str = r#"{"accepted":true,"assessment":"The copy is fully supported by its cited public source and reads as attributed court reporting.","findings":[]}"#; @@ -2204,7 +2224,7 @@ mod tests { } #[tokio::test] - async fn terminal_copy_desk_rejection_carries_every_completed_receipt() { + async fn grounding_agent_may_react_once_to_the_copy_desks_repair_observation() { const REJECTED: &str = r#"{"accepted":false,"assessment":"The deck overstates where the admitted debt reached.","findings":[{"article_index":0,"category":"unsupported_fact","claim_or_phrase":"A gambling debt reaches the throne room and leaves one official carrying the blame.","reason":"The cited source records the pawned seal and dismissal but does not locate the debt in the throne room."}]}"#; const REJECTED_AFTER_REPAIR: &str = r#"{"accepted":false,"assessment":"The revised deck still overstates blame.","findings":[{"article_index":0,"category":"unsupported_fact","claim_or_phrase":"one official carrying the blame","reason":"The cited source records dismissal but does not establish how blame was allocated."}]}"#; let campaign = campaign_with_news(); @@ -2213,6 +2233,58 @@ mod tests { REJECTED, REPAIR_DECK_ACTION, REJECTED_AFTER_REPAIR, + SECOND_REPAIR_DECK_ACTION, + ACCEPTING_COPY_DESK, + ]); + let composition = compose_world_newspaper( + &model, + &campaign, + "The Underdeep Clarion", + "A skeptical court broadsheet with dry restraint.", + 4, + ) + .await + .unwrap(); + assert_eq!(composition.model_receipts.len(), 6); + assert!(composition.grounding.accepted); + let requests = model.requests(); + assert_eq!( + requests + .iter() + .filter(|request| request.stage == "newspaper_editor") + .count(), + 1 + ); + assert_eq!( + requests + .iter() + .filter(|request| { + request.stage == "newspaper_grounding_reconciliation_agent_action" + }) + .count(), + 2 + ); + assert!( + requests[4] + .lived_stream + .contains("revised deck still overstates blame") + ); + assert!(requests[4].lived_stream.contains("\"finding_ref\":0")); + } + + #[tokio::test] + async fn terminal_copy_desk_rejection_carries_every_completed_receipt() { + const REJECTED: &str = r#"{"accepted":false,"assessment":"The deck overstates where the admitted debt reached.","findings":[{"article_index":0,"category":"unsupported_fact","claim_or_phrase":"A gambling debt reaches the throne room and leaves one official carrying the blame.","reason":"The cited source records the pawned seal and dismissal but does not locate the debt in the throne room."}]}"#; + const REJECTED_AFTER_REPAIR: &str = r#"{"accepted":false,"assessment":"The revised deck still overstates blame.","findings":[{"article_index":0,"category":"unsupported_fact","claim_or_phrase":"one official carrying the blame","reason":"The cited source records dismissal but does not establish how blame was allocated."}]}"#; + const REJECTED_AFTER_SECOND_REPAIR: &str = r#"{"accepted":false,"assessment":"The second revision still overstates the record.","findings":[{"article_index":0,"category":"unsupported_fact","claim_or_phrase":"named in the public record","reason":"The source records a dismissal but does not say the treasurer was named in the record."}]}"#; + let campaign = campaign_with_news(); + let model = ScriptedNewspaperModel::new([ + ACCEPTED_PAGE, + REJECTED, + REPAIR_DECK_ACTION, + REJECTED_AFTER_REPAIR, + SECOND_REPAIR_DECK_ACTION, + REJECTED_AFTER_SECOND_REPAIR, ]); let error = compose_world_newspaper( &model, @@ -2227,14 +2299,15 @@ mod tests { .downcast_ref::() .expect("terminal editorial rejection must retain its receipts"); - assert_eq!(failure.model_receipts.len(), 4); + assert!(failure.message.contains("exhausted 2 semantic steps")); + assert_eq!(failure.model_receipts.len(), 6); assert_eq!( failure .model_receipts .iter() .filter(|receipt| receipt.validation_result == "semantic_invalid") .count(), - 1 + 2 ); for rejected in failure .model_receipts diff --git a/crates/ghostlight-dungeon/src/registry.rs b/crates/ghostlight-dungeon/src/registry.rs index 207b79f..255303b 100644 --- a/crates/ghostlight-dungeon/src/registry.rs +++ b/crates/ghostlight-dungeon/src/registry.rs @@ -1670,7 +1670,7 @@ mod tests { let failure = error .downcast_ref::() .expect("registry must preserve the typed terminal editorial failure"); - assert_eq!(failure.model_receipts.len(), 4); + assert_eq!(failure.model_receipts.len(), 6); let stored_after_rejection = runtime.store.keys("persona_stage_receipt.v1").unwrap(); let newly_observed_failure_receipts = failure .model_receipts diff --git a/notes/fresh-workspace-handoff.md b/notes/fresh-workspace-handoff.md index b1cd08b..6a345ae 100644 --- a/notes/fresh-workspace-handoff.md +++ b/notes/fresh-workspace-handoff.md @@ -1058,8 +1058,8 @@ presentation-only because the grounding reconciliation agent retyped an through 18 and the final digest were not reached; canonical world state and all wave checkpoints remain unchanged. -The copy desk owns the exact frozen finding set. The current uncommitted cut -makes `GroundingFindingRef` page-local and uses one shared deterministic resolver +The copy desk owns the exact frozen finding set. Pushed `35f56f0` makes +`GroundingFindingRef` page-local and uses one shared deterministic resolver to derive article, field, paragraph, phrase, and span for verdict validation and edit application. Agent actions contain only `finding_ref` plus replacement or `delete_finding_refs`; there is no compatibility path for retyped phrases. The @@ -1071,12 +1071,25 @@ change and does not own the current acceptance repair. Earn one good Canopy Ledger first; multiple publication Personas come later, and TeX/layout or engraved-cut production begins only after editorial acceptance. +Exact-source run 44 at +`35f56f0e5e670025e1cfb031cba8d5a4ca9587d4` resumed revision 27 without +world or successful-publication replay. Issues 13 and 14 remained preserved. +Typed finding references were admitted and the first reconciliation action ran; +the copy desk returned a second exact finding set, then `MAX_STEPS=1` stopped +the agent before it could react. Issues 15 through 18 and the final digest remain +absent. The current uncommitted cut permits exactly two total corrective actions +in the same reconciliation session, preserves workbench state and receipts, and +gives the second action an explicit refreshed `finding_catalog`; it never reruns +the editor. Gates pass 15/15 newspaper tests, 469/469 library tests, 13/13 +strategic-smoke binary tests, and `git diff --check`. + Pushed `af749de` routes a provider timeout through the shared model transport's existing one same-request retry and records attempt telemetry. Run 36 crossed that boundary; timeout retry is not its active blocker. -1. Commit and push the verified typed-finding-reference cut. -2. Resume from run 43's preserved Issue 13 and Issue 14 boundary at revision 27 +1. Commit and push the verified two-action reconciliation and refreshed- + `finding_catalog` cut. +2. Resume from run 44's preserved Issue 13 and Issue 14 boundary at revision 27 to compose Issues 15 through 18 plus the final digest. Preserve every completed wave checkpoint and canonical world state; do not replay mechanics or successful publications. Require the resulting unedited publications and diff --git a/notes/ghostlight-current-system-map.md b/notes/ghostlight-current-system-map.md index a01cbf8..fb72a92 100644 --- a/notes/ghostlight-current-system-map.md +++ b/notes/ghostlight-current-system-map.md @@ -1298,29 +1298,41 @@ cannot rewrite it. Its desk includes each account's typed assertion status and the exact supported identity attributes for every named person, including an explicitly empty set when canon supplies none. A rejected draft enters one cheap grounding-reconciliation agent over the same frozen page, desk, and -complete typed finding set. Its sole one-step command is one transactional edit -batch: replace an exact finding phrase in one named headline, deck, dateline, -or paragraph, or delete a finding-bearing article when its story cannot be -supported. Deterministic admission requires every finding to be addressed, -requires each replacement phrase to occur exactly once in its named field of -the frozen original, and forbids duplicate exact findings, overlapping spans, -and simultaneous edit/delete of one article. Distinct non-overlapping findings -may target the same headline, deck, dateline, or paragraph: owner code groups -them by target and applies them atomically in descending byte position, so -replacement length and model ordering cannot move a later edit. Citations, +complete typed finding set. The workbench enumerates that set into page-local +typed references and publishes only current references in the action schema. +The agent supplies a reference plus replacement text, or a reference whose +containing article should be deleted; owner code resolves the article, field, +paragraph, exact phrase, and byte span against the frozen draft. Deterministic +verdict validation and transactional edit application share that resolver; the +model cannot author target coordinates or repeat phrase identity. Deterministic +admission requires every current finding reference to be addressed and forbids +duplicate or unknown references, overlapping spans, and simultaneous +edit/delete of one article. Distinct non-overlapping findings may target the +same headline, deck, dateline, or paragraph: owner code groups them by target +and applies them atomically in descending byte position, so replacement length +and model ordering cannot move a later edit. Citations, surviving article selection and order, sections, bylines, and all unaffected text remain frozen. If the lead is deleted, owner code promotes the next article to the front page. The agent cannot request a new simulation or source packet, submit a replacement `EditorialPageDraft`, or act as a second editor. The same -copy desk rechecks the complete repaired page. A rejected -repair, an empty surviving page, or a page rejected on recheck returns no -edition; there is no further repair loop. Thus the editor owns initial copy, -the reconciler owns only this exact repair transaction, the copy desk owns -grounding judgment, and none owns source facts or world state. Focused tests -cover order-independent same-target phrase repair, exact same-desk repair with -source identity preserved, bounded article deletion with survivor recheck, and -terminal rejection after the single repair step. The typed issue retains exact -event IDs, channels, +copy desk rechecks the complete repaired page. The worker permits at most two +actions in one agent run: an initial repair and exactly one corrective action +after a rejected tool observation. On the first rejection, the same workbench +retains the repaired draft and current verdict, republishes the dynamic action +schema, and exposes a freshly numbered finding catalog derived by the same +helper used for the initial catalog. The harness includes the first action and +copy-desk receipts in the second action's causal source chain. Acceptance ends +the run immediately; an inadmissible repair, an empty surviving page, or a page +rejected after the second action returns no edition. Thus the editor owns +initial copy, the reconciler owns only this bounded repair session, the copy +desk owns grounding judgment, and none owns source facts or world state. +Focused tests cover order-independent same-target phrase repair, exact same-desk +repair with source identity preserved, bounded article deletion with survivor recheck, and +one corrective response to the copy desk's current finding catalog. A terminal +regression proves that a second rejection exhausts the two-action budget and +retains all six editor, copy-desk, and action receipts, including both rejected +action dispositions. The library and strategic-binary test suites pass. The typed +issue retains exact event IDs, channels, reliability, source revision, and model receipts as audit data. Its internal issue time is derived from the latest cited publication record without exposing that clock to editorial inference. Terminally rejected attempts semantically @@ -1340,16 +1352,6 @@ text before Markdown emission; the provenance renderer applies the same plain-text boundary to its audit data. Neither editor, copy desk, renderer, nor receipt persistence can write world state. -The grounding-repair workbench assigns every validated copy-desk finding a -typed, page-local reference and resolves it against the frozen draft to the -exact article, field, paragraph, phrase, and byte span. The agent submits only -that reference plus replacement text, or uses a finding reference to request -deletion of its containing article. The reference catalog is derived -transaction state bound to the frozen draft and verdict, not a new copy-desk -output or durable world fact. One shared deterministic resolver owns phrase -location for both verdict validation and transactional edit application; the -model cannot author target coordinates or repeat phrase identity. - #### Acceptance-driver per-wave newspaper recovery - **Owner:** the strategic acceptance driver owns recovery of a missing diff --git a/state/evidence.jsonl b/state/evidence.jsonl index 6b7a532..871e85a 100644 --- a/state/evidence.jsonl +++ b/state/evidence.jsonl @@ -208,4 +208,6 @@ {"note": "Exact-source run42 at 8a971daab8d3dfc77c29d69b3d139ff71d53314a cloned run41 revision27 without world replay or mutation, then failed presentation-only on historical missing Issue2 when the copy desk rejected unsupported prepares. Requested Issues13 and15-18 and the final digest were not reached; Issue14, canonical world state, and checkpoints remain unchanged. The active defect is recovery scope, not mechanics or receipt integrity. Current uncommitted cut adds an explicit bounded newspaper recovery start wave; run43 will set 13 and select only missing Issues13 and15-18 while preserving Issue14 and older history. Its complete local gate passes 13/13 strategic-smoke binary tests, 468/468 library tests, and git diff --check. Next action is commit/push then exact-source run43 from run41 revision27.", "status": "ok", "ts": "2026-08-29T05:11:16+00:00", "type": "correction"} {"note": "Operator architecture directive: a newspaper is a persistent political/editorial Persona, not a neutral fact summary. Each publication owns audience, remembered beats, narrative memeplex, selective pickup, recurring throughlines, ideological framing, and rivals; competing Delvehold publications may frame one committed event substrate differently. Grounding owns factual assertion/provenance constraints but must preserve clearly legible interpretation, selection, framing, and insinuation. Current Canopy Ledger acceptance remains one publication instance. Do not patch this into the fact-check prompt or derail run43. The detailed owner/state cut belongs in the implementation plan after current acceptance.", "status": "ok", "ts": "2026-08-29T05:15:35+00:00", "type": "correction"} {"note": "Exact-source run43 at fb8f4670679446f7f825bf733a4b8b9ea524d2b7 resumed run41 revision27 with recovery start wave13 and no mechanics replay. Issue13 recomposition succeeded, Issue14 remained preserved, and Issue15 failed presentation-only because the grounding agent retyped expected_phrase outside the exact frozen copy-desk finding set; Issues16-18 and the final digest were not reached. The copy desk is the finding-identity owner. Reconciliation should select a typed finding reference and propose only a bounded edit; deterministic admission resolves the reference, validates and atomically applies the complete set. Review/verify/commit/push, then resume from preserved Issues13/14 without mechanics or publication replay. Plan commit 4916638 separately admits persistent editorial publication Personas and is not part of this repair.", "status": "ok", "ts": "2026-08-29T05:27:13+00:00", "type": "correction"} -{"ts": "2026-08-29T05:36:38+00:00", "type": "verification", "status": "ok", "note": "Grounding repair finding identity now has one owner in the uncommitted typed-reference cut. GroundingFindingRef is page-local; one shared deterministic resolver derives article, field, paragraph, phrase, and span for both verdict validation and edit application. Agent actions contain only finding_ref plus replacement or delete_finding_refs, with no compatibility path for retyped phrases; the registry fixture is updated. Gates pass 14/14 newspaper tests, 468/468 library tests, 13/13 strategic-smoke binary tests, and git diff --check. Pending-design steering is retired. Next action is commit/push then resume from run43 preserved Issues13/14 at revision27 without world or successful-publication replay. Operator priority: earn one good Canopy Ledger first; multiple publication Personas later; TeX/layout and engraved-cut production only after editorial acceptance."} +{"note": "Grounding repair finding identity now has one owner in the uncommitted typed-reference cut. GroundingFindingRef is page-local; one shared deterministic resolver derives article, field, paragraph, phrase, and span for both verdict validation and edit application. Agent actions contain only finding_ref plus replacement or delete_finding_refs, with no compatibility path for retyped phrases; the registry fixture is updated. Gates pass 14/14 newspaper tests, 468/468 library tests, 13/13 strategic-smoke binary tests, and git diff --check. Pending-design steering is retired. Next action is commit/push then resume from run43 preserved Issues13/14 at revision27 without world or successful-publication replay. Operator priority: earn one good Canopy Ledger first; multiple publication Personas later; TeX/layout and engraved-cut production only after editorial acceptance.", "status": "ok", "ts": "2026-08-29T05:36:38+00:00", "type": "verification"} +{"note": "Exact-source run44 at 35f56f0e5e670025e1cfb031cba8d5a4ca9587d4 resumed revision27 without replaying world mechanics or successful publications. Issues13/14 remained preserved. Typed finding references were admitted and the first reconciliation action ran; the deterministic copy desk returned a second exact finding set, then MAX_STEPS=1 stopped the agent before it could react. Issues15-18 and the final digest remain absent. Typed-reference ownership is provider-proved; session depth is now the active boundary. Next cut permits exactly one further corrective action in the same reconciliation workbench state and receipt chain, for two actions total, with no editor rerun; then verify/commit/push and resume from run44. Preserve one-good-Canopy-Ledger first, multi-publication Personas later, and layout/engraved cuts only after editorial acceptance.", "status": "ok", "ts": "2026-08-29T05:55:06+00:00", "type": "correction"} +{"ts": "2026-08-29T06:00:38+00:00", "type": "verification", "status": "ok", "note": "The two-action grounding reconciliation cut is implemented and locally verified. One reconciliation session permits exactly two total corrective actions, preserves the same workbench state and receipt chain, and supplies an explicit refreshed finding_catalog to the second action; it does not rerun the editor or preserve a compatibility path. Gates pass 15/15 newspaper tests, 469/469 library tests, 13/13 strategic-smoke binary tests, and git diff --check. Implementation-pending steering is retired. Next action is commit/push, then resume from immutable run44 preserved Issues13/14 at revision27 without world or successful-publication replay. One good Canopy Ledger remains first; publication Personas later; layout and engraved cuts after editorial acceptance."} diff --git a/state/ghostlight-state.cultcache.jsonl b/state/ghostlight-state.cultcache.jsonl index 2961133..cdc6df9 100644 --- a/state/ghostlight-state.cultcache.jsonl +++ b/state/ghostlight-state.cultcache.jsonl @@ -210,3 +210,5 @@ {"key": "2026-08-29T051535Z0000-0208-bc3353485949", "payload": "eyJub3RlIjogIk9wZXJhdG9yIGFyY2hpdGVjdHVyZSBkaXJlY3RpdmU6IGEgbmV3c3BhcGVyIGlzIGEgcGVyc2lzdGVudCBwb2xpdGljYWwvZWRpdG9yaWFsIFBlcnNvbmEsIG5vdCBhIG5ldXRyYWwgZmFjdCBzdW1tYXJ5LiBFYWNoIHB1YmxpY2F0aW9uIG93bnMgYXVkaWVuY2UsIHJlbWVtYmVyZWQgYmVhdHMsIG5hcnJhdGl2ZSBtZW1lcGxleCwgc2VsZWN0aXZlIHBpY2t1cCwgcmVjdXJyaW5nIHRocm91Z2hsaW5lcywgaWRlb2xvZ2ljYWwgZnJhbWluZywgYW5kIHJpdmFsczsgY29tcGV0aW5nIERlbHZlaG9sZCBwdWJsaWNhdGlvbnMgbWF5IGZyYW1lIG9uZSBjb21taXR0ZWQgZXZlbnQgc3Vic3RyYXRlIGRpZmZlcmVudGx5LiBHcm91bmRpbmcgb3ducyBmYWN0dWFsIGFzc2VydGlvbi9wc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NvcHktZGVzayBmaW5kaW5nIHNldDsgSXNzdWVzMTYtMTggYW5kIHRoZSBmaW5hbCBkaWdlc3Qgd2VyZSBub3QgcmVhY2hlZC4gVGhlIGNvcHkgZGVzayBpcyB0aGUgZmluZGluZy1pZGVudGl0eSBvd25lci4gUmVjb25jaWxpYXRpb24gc2hvdWxkIHNlbGVjdCBhIHR5cGVkIGZpbmRpbmcgcmVmZXJlbmNlIGFuZCBwcm9wb3NlIG9ubHkgYSBib3VuZGVkIGVkaXQ7IGRldGVybWluaXN0aWMgYWRtaXNzaW9uIHJlc29sdmVzIHRoZSByZWZlcmVuY2UsIHZhbGlkYXRlcyBhbmQgYXRvbWljYWxseSBhcHBsaWVzIHRoZSBjb21wbGV0ZSBzZXQuIFJldmlldy92ZXJpZnkvY29tbWl0L3B1c2gsIHRoZW4gcmVzdW1lIGZyb20gcHJlc2VydmVkIElzc3VlczEzLzE0IHdpdGhvdXQgbWVjaGFuaWNzIG9yIHB1YmxpY2F0aW9uIHJlcGxheS4gUGxhbiBjb21taXQgNDkxNjYzOCBzZXBhcmF0ZWx5IGFkbWl0cyBwZXJzaXN0ZW50IGVkaXRvcmlhbCBwdWJsaWNhdGlvbiBQZXJzb25hcyBhbmQgaXMgbm90IHBhcnQgb2YgdGhpcyByZXBhaXIuIiwgInN0YXR1cyI6ICJvayIsICJ0cyI6ICIyMDI2LTA4LTI5VDA1OjI3OjEzKzAwOjAwIiwgInR5cGUiOiAiY29ycmVjdGlvbiJ9", "stored_at": "2026-08-29T05:27:13.243164+00:00", "type": "ghostlight.evidence_record.v0"} {"key": "2026-08-29T053638Z0000-0210-2125540c4833", "payload": "eyJub3RlIjogIkdyb3VuZGluZyByZXBhaXIgZmluZGluZyBpZGVudGl0eSBub3cgaGFzIG9uZSBvd25lciBpbiB0aGUgdW5jb21taXR0ZWQgdHlwZWQtcmVmZXJlbmNlIGN1dC4gR3JvdW5kaW5nRmluZGluZ1JlZiBpcyBwYWdlLWxvY2FsOyBvbmUgc2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GxlbWVudGF0aW9uLXBlbmRpbmcgc3RlZXJpbmcgaXMgcmV0aXJlZC4gTmV4dCBhY3Rpb24gaXMgY29tbWl0L3B1c2gsIHRoZW4gcmVzdW1lIGZyb20gaW1tdXRhYmxlIHJ1bjQ0IHByZXNlcnZlZCBJc3N1ZXMxMy8xNCBhdCByZXZpc2lvbjI3IHdpdGhvdXQgd29ybGQgb3Igc3VjY2Vzc2Z1bC1wdWJsaWNhdGlvbiByZXBsYXkuIE9uZSBnb29kIENhbm9weSBMZWRnZXIgcmVtYWlucyBmaXJzdDsgcHVibGljYXRpb24gUGVyc29uYXMgbGF0ZXI7IGxheW91dCBhbmQgZW5ncmF2ZWQgY3V0cyBhZnRlciBlZGl0b3JpYWwgYWNjZXB0YW5jZS4iLCAic3RhdHVzIjogIm9rIiwgInRzIjogIjIwMjYtMDgtMjlUMDY6MDA6MzgrMDA6MDAiLCAidHlwZSI6ICJ2ZXJpZmljYXRpb24ifQ==", "stored_at": "2026-08-29T06:00:38.081686+00:00", "type": "ghostlight.evidence_record.v0"} diff --git a/state/map.yaml b/state/map.yaml index 84d3c36..2472ec3 100644 --- a/state/map.yaml +++ b/state/map.yaml @@ -326,7 +326,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. The defect belongs upstream in causal follow-through and outcome ownership, not in newsroom spice prompting. 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: Exact-source run 43 at `fb8f4670679446f7f825bf733a4b8b9ea524d2b7` resumed run 41 at committed revision 27 with recovery start wave 13 and did not replay or mutate world mechanics. Issue 13 recomposition succeeded and Issue 14 remained preserved. Issue 15 then failed presentation-only because the grounding reconciliation agent retyped an `expected_phrase` outside the exact frozen copy-desk finding set. Issues 16 through 18 and the final digest were not reached. Canonical world state and all wave checkpoints remain unchanged. Run 41's remote root is `/var/lib/gamecult/ghostlight-dungeon/acceptance/elven-realms-autonomous-46810c3-41`; runs 38, 39, 40, and 42 remain preserved. Run 39's independent FAIL remains historical acceptance evidence, and overall acceptance is still incomplete. - implementation_checkpoint: Pushed `fb8f467` owns explicit bounded newspaper recovery scope; provider run 43 proved it selects Issue 13, preserves Issue 14, and leaves revision 27 mechanics untouched. The current uncommitted typed-reference cut removes duplicate finding identity authority: `GroundingFindingRef` is page-local; one shared deterministic resolver derives article, field, paragraph, phrase, and span for both verdict validation and edit application; agent actions contain only `finding_ref` plus replacement or `delete_finding_refs`; no compatibility path preserves agent-retyped phrases. The registry fixture is updated. Gates pass 14/14 newspaper tests, 468/468 library tests, 13/13 strategic-smoke binary tests, and `git diff --check`. Plan commit `4916638` separately admits persistent political/editorial publication Personas; that later architecture is not a fact-check prompt change and does not own this acceptance repair. - next_action: Commit and push the verified typed-finding-reference cut, then resume missing newspaper composition from run 43's preserved Issue 13 and Issue 14 boundary at revision 27 without replaying world mechanics or successful publications. Earn independent editorial and provenance acceptance for one good Canopy Ledger publication before implementing multiple publication Personas; defer TeX/layout and engraved-cut production until editorial acceptance. Require Issues 15 through 18 and the final digest to pass fresh independent review before claiming acceptance. Preserve runs 38/39/40/42, the run-41 root and committed world lineage, stopped run 23, exact acceptance conditions, and unchanged live daemons. + provider_acceptance_checkpoint: Exact-source run 44 at `35f56f0e5e670025e1cfb031cba8d5a4ca9587d4` resumed revision 27 without replaying world mechanics or successful publications. Issues 13 and 14 remained preserved. Typed finding references were admitted and the first grounding reconciliation action ran; the deterministic copy desk returned a second exact finding set, but the reconciliation session's one-action limit stopped the agent before it could react. Issues 15 through 18 and the final digest remain absent. Canonical world state and all wave checkpoints remain unchanged. Run 41's remote root is `/var/lib/gamecult/ghostlight-dungeon/acceptance/elven-realms-autonomous-46810c3-41`; runs 38, 39, 40, 42, and 43 remain preserved. Run 39's independent FAIL remains historical acceptance evidence, and overall acceptance is still incomplete. + implementation_checkpoint: Pushed `35f56f0` owns typed grounding finding references and run 44 provider-proved that admission path. The current uncommitted cut permits exactly two total corrective actions in one reconciliation session, preserves the same workbench state and receipt chain, and gives the second action an explicit refreshed `finding_catalog`; it does not rerun the editor or retain a compatibility path. Gates pass 15/15 newspaper tests, 469/469 library tests, 13/13 strategic-smoke binary tests, and `git diff --check`. Plan commit `4916638` separately admits persistent political/editorial publication Personas; that later architecture is not part of this acceptance repair. + next_action: Commit and push the verified two-action reconciliation and refreshed-finding-catalog cut, then resume missing newspaper composition from immutable run 44's preserved Issue 13 and Issue 14 boundary at revision 27 without replaying world mechanics or successful publications. Earn independent editorial and provenance acceptance for one good Canopy Ledger publication before implementing multiple publication Personas; defer TeX/layout and engraved-cut production until editorial acceptance. Require Issues 15 through 18 and the final digest to pass fresh independent review before claiming acceptance. Preserve runs 38/39/40/42/43, the run-41 root and committed world lineage, stopped run 23, exact acceptance conditions, and unchanged live daemons. 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.