Apply grounding repairs atomically by text target

This commit is contained in:
Meta Vens 2026-08-29 06:42:53 +02:00
commit 19a66a49a7
6 changed files with 229 additions and 53 deletions

View file

@ -611,7 +611,9 @@ fn apply_grounding_edits(
.cloned()
})
.collect::<BTreeSet<_>>();
let mut edit_targets = BTreeSet::new();
let mut edits_by_target =
BTreeMap::<(usize, GroundingEditableField, Option<u16>), Vec<(usize, usize, String)>>::new(
);
let mut draft = original.clone();
for replacement in replacements {
let article_index = usize::from(replacement.article_index);
@ -626,14 +628,14 @@ fn apply_grounding_edits(
"grounding repair may replace only an exact phrase named by the current findings"
));
}
if !addressed.insert(finding_key) {
return Err(anyhow!("grounding repair repeats one exact finding"));
}
let target_key = (
article_index,
replacement.field.clone(),
replacement.paragraph_index,
);
if !edit_targets.insert(target_key) {
return Err(anyhow!("grounding repair repeats one editable text target"));
}
if replacement.replacement.trim() != replacement.replacement
|| replacement.replacement.contains(['\r', '\n'])
|| replacement.replacement.chars().any(char::is_control)
@ -642,18 +644,47 @@ fn apply_grounding_edits(
"grounding replacement is not bounded reader-facing text"
));
}
let article = draft
let mut source_article = original
.articles
.get_mut(article_index)
.get(article_index)
.cloned()
.ok_or_else(|| anyhow!("grounding repair names an invalid article"))?;
let target = grounding_edit_target(article, &replacement)?;
if target.match_indices(&replacement.expected_phrase).count() != 1 {
let source_target = grounding_edit_target(
&mut source_article,
&replacement.field,
replacement.paragraph_index,
)?;
let matches = source_target
.match_indices(&replacement.expected_phrase)
.map(|(start, _)| start)
.collect::<Vec<_>>();
if matches.len() != 1 {
return Err(anyhow!(
"grounding replacement expected_phrase must occur exactly once in its target"
));
}
*target = target.replacen(&replacement.expected_phrase, &replacement.replacement, 1);
addressed.insert(finding_key);
let start = matches[0];
edits_by_target.entry(target_key).or_default().push((
start,
start + replacement.expected_phrase.len(),
replacement.replacement,
));
}
for ((article_index, field, paragraph_index), mut edits) in edits_by_target {
edits.sort_by_key(|(start, end, _)| (*start, *end));
if edits.windows(2).any(|window| window[0].1 > window[1].0) {
return Err(anyhow!(
"grounding repair contains overlapping exact phrases in one text target"
));
}
let article = draft
.articles
.get_mut(article_index)
.ok_or_else(|| anyhow!("grounding repair names an invalid article"))?;
let target = grounding_edit_target(article, &field, paragraph_index)?;
for (start, end, replacement) in edits.into_iter().rev() {
target.replace_range(start..end, &replacement);
}
}
if addressed != expected_findings {
return Err(anyhow!(
@ -673,9 +704,10 @@ fn apply_grounding_edits(
fn grounding_edit_target<'a>(
article: &'a mut EditorialArticleDraft,
replacement: &GroundingTextReplacement,
field: &GroundingEditableField,
paragraph_index: Option<u16>,
) -> Result<&'a mut String> {
match (&replacement.field, replacement.paragraph_index) {
match (field, paragraph_index) {
(GroundingEditableField::Headline, None) => Ok(&mut article.headline),
(GroundingEditableField::Deck, None) => Ok(&mut article.deck),
(GroundingEditableField::Dateline, None) => Ok(&mut article.dateline),
@ -1706,6 +1738,138 @@ mod tests {
}
}
#[test]
fn grounding_repair_applies_distinct_same_target_findings_atomically() {
let draft: EditorialPageDraft = serde_json::from_str(ACCEPTED_PAGE).unwrap();
let verdict = WorldNewspaperGroundingVerdict {
accepted: false,
assessment: "Two unsupported claims share one deck.".into(),
findings: vec![
WorldNewspaperGroundingFinding {
article_index: 0,
category: WorldNewspaperGroundingCategory::UnsupportedFact,
claim_or_phrase: "A gambling debt reaches the throne room".into(),
reason: "The source does not establish that location.".into(),
},
WorldNewspaperGroundingFinding {
article_index: 0,
category: WorldNewspaperGroundingCategory::UnsupportedFact,
claim_or_phrase: "one official carrying the blame".into(),
reason: "The source establishes dismissal, not blame allocation.".into(),
},
],
};
let mut replacements = vec![
GroundingTextReplacement {
article_index: 0,
field: GroundingEditableField::Deck,
paragraph_index: None,
expected_phrase: "A gambling debt reaches the throne room".into(),
replacement: "The court's admission reaches the public".into(),
},
GroundingTextReplacement {
article_index: 0,
field: GroundingEditableField::Deck,
paragraph_index: None,
expected_phrase: "one official carrying the blame".into(),
replacement: "the dismissed treasurer carrying the record".into(),
},
];
let repaired = apply_grounding_edits(
&draft,
&verdict,
GroundingReconciliationAction::SubmitEdits {
replacements: replacements.clone(),
delete_article_indices: Vec::new(),
},
)
.unwrap();
replacements.reverse();
let repaired_reversed = apply_grounding_edits(
&draft,
&verdict,
GroundingReconciliationAction::SubmitEdits {
replacements,
delete_article_indices: Vec::new(),
},
)
.unwrap();
assert_eq!(repaired, repaired_reversed);
assert_eq!(
repaired.articles[0].deck,
"The court's admission reaches the public and leaves the dismissed treasurer carrying the record."
);
}
#[test]
fn grounding_repair_rejects_duplicate_findings_and_overlapping_spans() {
let draft: EditorialPageDraft = serde_json::from_str(ACCEPTED_PAGE).unwrap();
let finding = WorldNewspaperGroundingFinding {
article_index: 0,
category: WorldNewspaperGroundingCategory::UnsupportedFact,
claim_or_phrase: "A gambling debt reaches".into(),
reason: "The source does not establish that movement.".into(),
};
let replacement = GroundingTextReplacement {
article_index: 0,
field: GroundingEditableField::Deck,
paragraph_index: None,
expected_phrase: finding.claim_or_phrase.clone(),
replacement: "The court's admission reaches".into(),
};
let duplicate = apply_grounding_edits(
&draft,
&WorldNewspaperGroundingVerdict {
accepted: false,
assessment: "One finding.".into(),
findings: vec![finding.clone()],
},
GroundingReconciliationAction::SubmitEdits {
replacements: vec![replacement.clone(), replacement],
delete_article_indices: Vec::new(),
},
)
.unwrap_err();
assert!(duplicate.to_string().contains("repeats one exact finding"));
let overlapping_finding = WorldNewspaperGroundingFinding {
article_index: 0,
category: WorldNewspaperGroundingCategory::UnsupportedFact,
claim_or_phrase: "gambling debt reaches the throne room".into(),
reason: "The source does not establish that location.".into(),
};
let overlap = apply_grounding_edits(
&draft,
&WorldNewspaperGroundingVerdict {
accepted: false,
assessment: "Overlapping findings.".into(),
findings: vec![finding.clone(), overlapping_finding.clone()],
},
GroundingReconciliationAction::SubmitEdits {
replacements: vec![
GroundingTextReplacement {
article_index: 0,
field: GroundingEditableField::Deck,
paragraph_index: None,
expected_phrase: finding.claim_or_phrase,
replacement: "The admission reaches".into(),
},
GroundingTextReplacement {
article_index: 0,
field: GroundingEditableField::Deck,
paragraph_index: None,
expected_phrase: overlapping_finding.claim_or_phrase,
replacement: "the public record".into(),
},
],
delete_article_indices: Vec::new(),
},
)
.unwrap_err();
assert!(overlap.to_string().contains("overlapping exact phrases"));
}
#[tokio::test]
async fn newspaper_is_editorial_copy_with_separate_provenance() {
let campaign = campaign_with_news();

View file

@ -1002,38 +1002,41 @@ for exact-receipt kernel admission, exact causal outcome context, legitimate
empty judgment, durable replay suppression, narrow one-pass exact-phrase
grounding repair, and bounded complete mismatch feedback.
Exact-source run 40 resumed immutable run 39 without replay. Waves 13 and 14
committed through revision 23. Wave 15 then exhausted five rejected pulses and
failed terminally with `causal response owner is absent from its exact cell
slice`. The source owner was `responder_cell`: it mapped a materialized member
actor to the dormant aggregate's Gestalt cell, where the actor was absent. The
remote root is
`/var/lib/gamecult/ghostlight-dungeon/acceptance/elven-realms-autonomous-b040a35-40`.
`BUILD-WITNESS` binds exact source
`92c7647014dc3ffc53bc89d5bd291b81ba053e81`, the run-39 resume root, and
`live_service_mutated=false`. `status.json` is stale at running/revision 23;
the wave-15 terminal artifact and inactive service own terminal state.
Exact-source run 40 resumed immutable run 39 without replay, committed waves 13
and 14 through revision 23, then exposed a responder-cell identity defect at
wave 15. That materialized-versus-dormant routing fix was pushed in exact source
`46810c31b15c880026ee22c0318a563e638c42bc`.
The current uncommitted diff maps materialized members to their actor cells and
only dormant members to their Gestalt cells. The defining regression
`materialized_member_responders_use_their_actor_cell` passes. This repair is not
yet committed, pushed, or provider-verified. Run 39's independent FAIL and run
40's terminal failure remain authoritative; acceptance is incomplete.
Run 41 cloned run 40 at committed revision 23, removed only copied wave-15
failure artifacts, and did not replay prior waves. It committed waves 15 through
18 through revision 27 with 363 events and 853 news rows. The unit then failed
only during final newspaper composition: one-pass grounding reconciliation
rejected distinct findings that shared one editable target. The remote root is
`/var/lib/gamecult/ghostlight-dungeon/acceptance/elven-realms-autonomous-46810c3-41`.
`BUILD-WITNESS` binds the run-40 resume root and
`live_service_mutated=false`. Simulation mechanics are complete; no accepted
final digest exists. Runs 38, 39, and 40 remain preserved, and acceptance is
incomplete.
The current uncommitted `newspaper.rs` diff groups replacements by editable
target, validates every exact phrase once against the original copy, rejects
overlapping ranges, and atomically applies distinct non-overlapping replacements
in reverse source order before requiring the complete finding set and fresh
whole-page verification. Its defining regression and all newspaper tests pass;
the full 468-test library gate and `git diff --check` also pass. The fix is not
yet committed, pushed, provider-proven, or editorially accepted.
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. Complete bounded review of the materialized-versus-dormant responder-cell
ownership fix, then commit and push the exact source.
2. Resume from run 40's committed revision 23 without replaying waves 13 or 14.
Require wave 15 to cross the ordinary Nemesis, Persona, outcome, kernel,
newspaper, and grounding path before continuing acceptance. Preserve
immutable runs 38/39, the incomplete run-40 root and provenance, stopped run
23, exact acceptance conditions, and unchanged live daemons. Do not claim
editorial acceptance until a completed continuation produces unedited issues
and a final digest that pass fresh independent editorial and provenance
review.
1. Commit and push the locally verified atomic same-target grounding edit fix.
2. Resume only final newspaper composition from run 41's committed revision 27.
Do not replay waves 15-18 or any earlier wave. Require the resulting unedited
final digest to pass fresh independent editorial and provenance review before
claiming acceptance. Preserve runs 38/39/40, the run-41 root and committed
world lineage, stopped run 23, exact acceptance conditions, and unchanged
live daemons.
3. Have the game-side adapter lower its authored hierarchy into the published
generic schemas; keep projection and economy translation consumer-owned.
4. Prove one consumer-owned effect crosses that public API, changes two foreign

View file

@ -1302,20 +1302,25 @@ 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,
forbids duplicate targets and simultaneous edit/delete of one article, and
keeps citations, surviving article selection and order, sections, bylines, and
all unaffected text 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
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,
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 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,
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,
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

View file

@ -200,4 +200,6 @@
{"note": "Current uncommitted Ghostlight source falsifies mapping/implementation as the next action for the run-39 acceptance defects. It implements a scheduler-owned causal-follow-through agent over exact committed anchors and eligible cover-resident decision owners with deterministic visibility, authority, player-exclusion, quota, checkpoint, and consideration admission; a complete bounded action-effect mismatch set returned to one private Interpreter correction; and a ModelAgentTool newspaper grounding reconciler that may replace only reader copy against the same frozen desk, authoritative assertion status, exhaustive supported identity attributes, and complete typed findings before fresh whole-page verification. Focused owner tests admitted_agenda_is_scheduler_only_and_excludes_the_player, effect_verifier_delivers_multiple_findings_to_one_bounded_correction, and copy_desk_rejection_enters_the_grounding_agent_on_the_same_source_packet pass. Full audit, commit/push, provider continuation from run39 without replay, and independent editorial/provenance acceptance remain pending; run39 FAIL verdicts stay authoritative.", "status": "ok", "ts": "2026-08-29T01:24:17+00:00", "type": "implementation"}
{"note": "Current uncommitted source sharpens the run-39 repair ownership: Nemesis, not an anonymous scheduler agent, owns causal attention. Nemesis may bind exact committed anchors to eligible cover-resident autonomous decision owners or return an empty judgment, but cannot choose action or outcome. Scheduler admission binds the agenda; WorldKernel requires the exact admitted Nemesis receipt and durably records served anchor/responder pairs to suppress replay; the outcome resolver receives the exact causal account. The verifier returns one bounded complete mismatch set. Grounding reconciliation is one ModelAgentTool pass limited to exact uniquely occurring phrases named by complete findings or deletion of a flagged article, followed by fresh whole-page verification. Focused tests for these boundaries pass; the full package gate is still running. Commit/push, exact-source run40 from run39 revision21 without replay, and independent editorial/provenance acceptance remain pending. Run39 FAIL and immutable provenance remain authoritative.", "status": "ok", "ts": "2026-08-29T02:31:52+00:00", "type": "correction"}
{"note": "Local package verification for the uncommitted Nemesis/causal-context/complete-mismatch/grounding-reconciliation cut is complete. All 464 library tests pass. The package binary run passed 42 of 44 tests; its two failures were fixture-only because test clocks bound the externally controlled player. The shared fixture now binds exact observable consequence scope to one non-active aggregate institution, and both failed binary tests pass when resumed individually. Gate-running steering is retired. Next action is commit/push, then exact-source run40 from immutable run39 revision21 without replay. Run39 independent editorial and grounding FAILs remain authoritative until new reviews reverse them.", "status": "ok", "ts": "2026-08-29T02:37:26+00:00", "type": "verification"}
{"ts": "2026-08-29T03:39:51+00:00", "type": "correction", "status": "ok", "note": "Exact-source run40 at 92c7647014dc3ffc53bc89d5bd291b81ba053e81 resumed immutable run39 without replay, committed waves13-14 through revision23, then terminally failed wave15 after five rejected pulses with causal response owner is absent from its exact cell slice. The remote root is /var/lib/gamecult/ghostlight-dungeon/acceptance/elven-realms-autonomous-b040a35-40 and BUILD-WITNESS records live_service_mutated=false. status.json is stale at running/revision23; the wave15 terminal artifact and inactive service own terminal state. Body diagnosis falsifies run40 launch/editorial review as the active next action: responder_cell mapped a materialized member actor to its dormant aggregate Gestalt cell. Current uncommitted source maps materialized members to actor cells and only dormant members to Gestalt cells; materialized_member_responders_use_their_actor_cell passes. Review, commit/push, and provider resume from revision23 without replaying waves13-14 remain pending. Runs38/39 remain immutable and acceptance remains incomplete."}
{"note": "Exact-source run40 at 92c7647014dc3ffc53bc89d5bd291b81ba053e81 resumed immutable run39 without replay, committed waves13-14 through revision23, then terminally failed wave15 after five rejected pulses with causal response owner is absent from its exact cell slice. The remote root is /var/lib/gamecult/ghostlight-dungeon/acceptance/elven-realms-autonomous-b040a35-40 and BUILD-WITNESS records live_service_mutated=false. status.json is stale at running/revision23; the wave15 terminal artifact and inactive service own terminal state. Body diagnosis falsifies run40 launch/editorial review as the active next action: responder_cell mapped a materialized member actor to its dormant aggregate Gestalt cell. Current uncommitted source maps materialized members to actor cells and only dormant members to Gestalt cells; materialized_member_responders_use_their_actor_cell passes. Review, commit/push, and provider resume from revision23 without replaying waves13-14 remain pending. Runs38/39 remain immutable and acceptance remains incomplete.", "status": "ok", "ts": "2026-08-29T03:39:51+00:00", "type": "correction"}
{"note": "Exact-source run41 at 46810c31b15c880026ee22c0318a563e638c42bc cloned run40 at committed revision23, removed only copied wave15 failure artifacts, and did not replay prior waves. It committed waves15-18 through revision27 with 363 events and 853 news rows, then failed only during final newspaper composition because one-pass grounding reconciliation rejected distinct findings sharing one editable target. The remote root is /var/lib/gamecult/ghostlight-dungeon/acceptance/elven-realms-autonomous-46810c3-41 and BUILD-WITNESS records live_service_mutated=false. Mechanics are complete; no accepted final digest exists. Current uncommitted newspaper.rs groups edits by target, validates each exact phrase once against original copy, rejects overlaps, and atomically applies distinct non-overlapping ranges before complete-finding and fresh-page verification. Its defining and all newspaper tests pass; full lib gate, commit/push, and provider resume of newspaper composition only remain pending. Waves15-18 must not replay. Runs38/39/40 remain preserved and acceptance incomplete.", "status": "ok", "ts": "2026-08-29T04:39:40+00:00", "type": "correction"}
{"ts": "2026-08-29T04:42:11+00:00", "type": "verification", "status": "ok", "note": "The atomic same-target grounding edit fix passes the full Ghostlight Dungeon library gate at 468/468 tests and git diff --check. Full-library-pending steering is retired. The fix remains uncommitted, unpushed, provider-unproven, and editorially unaccepted; next action is commit/push, then resume only final newspaper composition from run41 revision27 without replaying any wave."}

View file

@ -202,3 +202,5 @@
{"key": "2026-08-29T023152Z0000-0200-57ab8035aa4c", "payload": "eyJub3RlIjogIkN1cnJlbnQgdW5jb21taXR0ZWQgc291cmNlIHNoYXJwZW5zIHRoZSBydW4tMzkgcmVwYWlyIG93bmVyc2hpcDogTmVtZXNpcywgbm90IGFuIGFub255bW91cyBzY2hlZHVsZXIgYWdlbnQsIG93bnMgY2F1c2FsIGF0dGVudGlvbi4gTmVtZXNpcyBtYXkgYmluZCBleGFjdCBjb21taXR0ZWQgYW5jaG9ycyB0byBlbGlnaWJsZSBjb3Zlci1yZXNpZGVudCBhdXRvbm9tb3VzIGRlY2lzaW9uIG93bmVycyBvciByZXR1cm4gYW4gZW1wdHkganVkZ21lbnQsIGJ1dCBjYW5ub3QgY2hvb3NlIGFjdGlvbiBvciBvdXRjb21lLiBTY2hlZHVsZXIgYWRtaXNzaW9uIGJpbmRzIHRoZSBhZ2VuZGE7IFdvcmxkS2VybmVsIHJlcXVpcmVzIHRoZSBleGFjdCBhZG1pdHRlZCBOZW1lc2lzIHJlY2VpcHQgYW5kIGR1cmFibHkgcmVjb3JkcyBzZXJ2ZWQgYW5jaG9yL3Jlc3BvbmRlciBwYWlycyB0byBzdXBwcmVzcyByZXBsYXk7IHRoZSBvdXRjb21lIHJlc29sdmVyIHJlY2VpdmVzIHRoZSBleGFjdCBjYXVzYWwgYWNjb3VudC4gVGhlIHZlcmlmaWVyIHJldHVybnMgb25lIGJvdW5kZWQgY29tcGxldGUgbWlzbWF0Y2ggc2V0LiBHcm91bmRpbmcgcmVjb25jaWxpYXRpb24gaXMgb25lIE1vZGVsQWdlbnRUb29sIHBhc3MgbGltaXRlZCB0byBleGFjdCB1bmlxdWVseSBvY2N1cnJpbmcgcG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NrcyBib3VuZCB0aGUgZXh0ZXJuYWxseSBjb250cm9sbGVkIHBsYXllci4gVGhlIHNoYXJlZCBmaXh0dXJlIG5vdyBiaW5kcyBleGFjdCBvYnNlcnZhYmxlIGNvbnNlcXVlbmNlIHNjb3BlIHRvIG9uZSBub24tYWN0aXZlIGFnZ3JlZ2F0ZSBpbnN0aXR1dGlvbiwgYW5kIGJvdGggZmFpbGVkIGJpbmFyeSB0ZXN0cyBwYXNzIHdoZW4gcmVzdW1lZCBpbmRpdmlkdWFsbHkuIEdhdGUtcnVubmluZyBzdGVlcmluZyBpcyByZXRpcmVkLiBOZXh0IGFjdGlvbiBpcyBjb21taXQvcHVzaCwgdGhlbiBleGFjdC1zb3VyY2UgcnVuNDAgZnJvbSBpbW11dGFibGUgcnVuMzkgcmV2aXNpb24yMSB3aXRob3V0IHJlcGxheS4gUnVuMzkgaW5kZXBlbmRlbnQgZWRpdG9yaWFsIGFuZCBncm91bmRpbmcgRkFJTHMgcmVtYWluIGF1dGhvcml0YXRpdmUgdW50aWwgbmV3IHJldmlld3MgcmV2ZXJzZSB0aGVtLiIsICJzdGF0dXMiOiAib2siLCAidHMiOiAiMjAyNi0wOC0yOVQwMjozNzoyNiswMDowMCIsICJ0eXBlIjogInZlcmlmaWNhdGlvbiJ9", "stored_at": "2026-08-29T02:37:26.864129+00:00", "type": "ghostlight.evidence_record.v0"}
{"key": "2026-08-29T033951Z0000-0202-2b3b6ecf7585", "payload": "eyJub3RlIjogIkV4YWN0LXNvdXJjZSBydW40MCBhdCA5MmM3NjQ3MDE0ZGMzZmZjNTNiYzg5ZDViZDI5MWI4MWJhMDUzZTgxIHJlc3VtZWQgaW1tdXRhYmxlIHJ1bjM5IHdpdGhvdXQgcmVwbGF5LCBjb21taXR0ZWQgd2F2ZXMxMy0xNCB0aHJvdWdoIHJldmlzaW9uMjMsIHRoZW4gdGVybWluYWxseSBmYWlsZWQgd2F2ZTE1IGFmdGVyIGZpdmUgcmVqZWN0ZWQgcHVsc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zkgcmVtYWluIGltbXV0YWJsZSBhbmQgYWNjZXB0YW5jZSByZW1haW5zIGluY29tcGxldGUuIiwgInN0YXR1cyI6ICJvayIsICJ0cyI6ICIyMDI2LTA4LTI5VDAzOjM5OjUxKzAwOjAwIiwgInR5cGUiOiAiY29ycmVjdGlvbiJ9", "stored_at": "2026-08-29T03:39:51.457166+00:00", "type": "ghostlight.evidence_record.v0"}
{"key": "2026-08-29T043940Z0000-0203-3baa93dbc5cf", "payload": "eyJub3RlIjogIkV4YWN0LXNvdXJjZSBydW40MSBhdCA0NjgxMGMzMWIxNWM4ODAwMjZlZTIyYzAzMThhNTYzZTYzOGM0MmJjIGNsb25lZCBydW40MCBhdCBjb21taXR0ZWQgcmV2aXNpb24yMywgcmVtb3ZlZCBvbmx5IGNvcGllZCB3YXZlMTUgZmFpbHVyZSBhcnRpZmFjdHMsIGFuZCBkaWQgbm90IHJlcGxheSBwcmlvciB3YXZlcy4gSXQgY29tbWl0dGVkIHdhdmVzMTUtMTggdGhyb3VnaCByZXZpc2lvbjI3IHdpdGggMzYzIGV2ZW50cyBhbmQgODUzIG5ld3Mgcm93cywgdGhlbiBmYWlsZWQgb25seSBkdXJpbmcgZmluYWwgbmV3c3BhcGVyIGNvbXBvc2l0aW9uIGJlY2F1c2Ugb25lLXBhc3MgZ3JvdW5kaW5nIHJlY29uY2lsaWF0aW9uIHJlamVjdGVkIGRpc3RpbmN0IGZpbmRpbmdzIHNoYXJpbmcgb25lIGVkaXRhYmxlIHRhcmdldC4gVGhlIHJlbW90ZSByb290IGlzIC92YXIvbGliL2dhbWVjdWx0L2dob3N0bGlnaHQtZHVuZ2Vvbi9hY2NlcHRhbmNlL2VsdmVuLXJlYWxtcy1hdXRvbm9tb3VzLTQ2ODEwYzMtNDEgYW5kIEJVSUxELVdJVE5FU1MgcmVjb3JkcyBsaXZlX3NlcnZpY2VfbXV0YXRlZD1mYWxzZS4gTWVjaGFuaWNzIGFyZSBjb21wbGV0ZTsgbm8gYWNjZXB0ZWQgZmluYWwgZGlnZXN0IGV4aXN0cy4gQ3VycmVudCB1bmNvbW1pdHRlZCBuZXdzcGFwZXIucnMgZ3JvdXBzIGVkaXRzIGJ5IHRhcmdldCwgdmFsaWRhdGVzIGVhY2ggZXhhY3QgcGhyYXNlIG9uY2UgYWdhaW5zdCBvcmlnaW5hbCBjb3B5LCByZWplY3RzIG92ZXJsYXBzLCBhbmQgYXRvbWljYWxseSBhcHBsaWVzIGRpc3RpbmN0IG5vbi1vdmVybGFwcGluZyByYW5nZXMgYmVmb3JlIGNvbXBsZXRlLWZpbmRpbmcgYW5kIGZyZXNoLXBhZ2UgdmVyaWZpY2F0aW9uLiBJdHMgZGVmaW5pbmcgYW5kIGFsbCBuZXdzcGFwZXIgdGVzdHMgcGFzczsgZnVsbCBsaWIgZ2F0ZSwgY29tbWl0L3B1c2gsIGFuZCBwcm92aWRlciByZXN1bWUgb2YgbmV3c3BhcGVyIGNvbXBvc2l0aW9uIG9ubHkgcmVtYWluIHBlbmRpbmcuIFdhdmVzMTUtMTggbXVzdCBub3QgcmVwbGF5LiBSdW5zMzgvMzkvNDAgcmVtYWluIHByZXNlcnZlZCBhbmQgYWNjZXB0YW5jZSBpbmNvbXBsZXRlLiIsICJzdGF0dXMiOiAib2siLCAidHMiOiAiMjAyNi0wOC0yOVQwNDozOTo0MCswMDowMCIsICJ0eXBlIjogImNvcnJlY3Rpb24ifQ==", "stored_at": "2026-08-29T04:39:40.023790+00:00", "type": "ghostlight.evidence_record.v0"}
{"key": "2026-08-29T044211Z0000-0204-047d6e877da9", "payload": "eyJub3RlIjogIlRoZSBhdG9taWMgc2FtZS10YXJnZXQgZ3JvdW5kaW5nIGVkaXQgZml4IHBhc3NlcyB0aGUgZnVsbCBHaG9zdGxpZ2h0IER1bmdlb24gbGlicmFyeSBnYXRlIGF0IDQ2OC80NjggdGVzdHMgYW5kIGdpdCBkaWZmIC0tY2hlY2suIEZ1bGwtbGlicmFyeS1wZW5kaW5nIHN0ZWVyaW5nIGlzIHJldGlyZWQuIFRoZSBmaXggcmVtYWlucyB1bmNvbW1pdHRlZCwgdW5wdXNoZWQsIHByb3ZpZGVyLXVucHJvdmVuLCBhbmQgZWRpdG9yaWFsbHkgdW5hY2NlcHRlZDsgbmV4dCBhY3Rpb24gaXMgY29tbWl0L3B1c2gsIHRoZW4gcmVzdW1lIG9ubHkgZmluYWwgbmV3c3BhcGVyIGNvbXBvc2l0aW9uIGZyb20gcnVuNDEgcmV2aXNpb24yNyB3aXRob3V0IHJlcGxheWluZyBhbnkgd2F2ZS4iLCAic3RhdHVzIjogIm9rIiwgInRzIjogIjIwMjYtMDgtMjlUMDQ6NDI6MTErMDA6MDAiLCAidHlwZSI6ICJ2ZXJpZmljYXRpb24ifQ==", "stored_at": "2026-08-29T04:42:11.214127+00:00", "type": "ghostlight.evidence_record.v0"}

View file

@ -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. 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 39 at `3a69306f3004e4af2cd57bba612a6ad8d1b8132f` remains the immutable editorial and grounding FAIL at revision 21. Exact-source run 40 at `92c7647014dc3ffc53bc89d5bd291b81ba053e81` resumed it without replay, committed waves 13 and 14 through revision 23, then terminally failed wave 15 after five rejected pulses with `causal response owner is absent from its exact cell slice`. The remote root is `/var/lib/gamecult/ghostlight-dungeon/acceptance/elven-realms-autonomous-b040a35-40`; `BUILD-WITNESS` binds the run-39 resume source and `live_service_mutated=false`. Its `status.json` is a stale running projection at revision 23; `wave-15-terminal-failure.json` and the inactive service own terminal state. Run 40 has no accepted final digest or editorial result, and acceptance remains incomplete. Immutable runs 38 and 39 remain unchanged.
implementation_checkpoint: Pushed source through `92c7647014dc3ffc53bc89d5bd291b81ba053e81` contains Nemesis causal attention, exact kernel receipt admission and durable served-pair history, exact causal outcome context, bounded complete mismatch feedback, and one-pass exact-phrase grounding reconciliation. Run 40 exposed an identity-routing defect in `responder_cell`: a materialized member actor was incorrectly mapped to its dormant aggregate's Gestalt cell, leaving the actual actor absent from the selected slice. The current uncommitted diff maps materialized members to their actor cells and only dormant members to their Gestalt cells. The defining regression `materialized_member_responders_use_their_actor_cell` passes. This focused repair is not yet committed, pushed, or provider-verified; run 39's FAIL and run 40's terminal failure remain authoritative.
next_action: Complete bounded review of the materialized-versus-dormant responder-cell ownership fix, then commit and push the exact source. Resume from run 40's committed revision 23 without replaying waves 13 or 14, and require wave 15 to cross the ordinary Nemesis, Persona, outcome, kernel, newspaper, and grounding path before continuing acceptance. Preserve immutable runs 38/39, the incomplete run-40 root and provenance, stopped run 23, exact acceptance conditions, and unchanged live daemons. Do not claim editorial acceptance until a completed continuation produces unedited issues and a final digest that pass fresh independent editorial and provenance review.
provider_acceptance_checkpoint: Exact-source run 41 at `46810c31b15c880026ee22c0318a563e638c42bc` cloned run 40 at committed revision 23, removed only the copied wave-15 failure artifacts, and did not replay prior waves. It committed waves 15 through 18 through revision 27 with 363 events and 853 news rows. The unit then failed final newspaper composition because one-pass grounding reconciliation rejected distinct findings that shared one editable target; all simulation mechanics are complete, but there is no accepted final digest. The remote root is `/var/lib/gamecult/ghostlight-dungeon/acceptance/elven-realms-autonomous-46810c3-41`; `BUILD-WITNESS` binds the run-40 resume root and `live_service_mutated=false`. Runs 38, 39, and 40 remain preserved. Run 39's independent FAIL remains historical acceptance evidence, and overall acceptance is still incomplete.
implementation_checkpoint: Pushed run-41 source contains the materialized-versus-dormant responder-cell fix and provider-proved it through waves 15-18. The remaining defect is isolated to newspaper grounding admission: distinct findings may legitimately name non-overlapping exact phrases in the same headline, deck, dateline, or paragraph, but the prior workbench rejected any repeated editable target. The current uncommitted `newspaper.rs` diff groups replacements by target, validates each phrase exactly once against the original copy, rejects overlapping ranges, and atomically applies distinct non-overlapping replacements in reverse source order before requiring the complete finding set and fresh whole-page verification. Its defining regression, all newspaper tests, and the full 468-test library gate pass; `git diff --check` also passes. The fix is not yet committed, pushed, provider-proven, or editorially accepted.
next_action: Commit and push the locally verified atomic same-target grounding edit fix. Resume only final newspaper composition from run 41's committed revision 27; do not replay waves 15-18 or any earlier wave. Require the resulting unedited final digest to pass fresh independent editorial and provenance review before claiming acceptance. Preserve runs 38/39/40, 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.