Page Nemesis causal attention context

This commit is contained in:
Meta Vens 2026-09-01 02:40:45 +02:00
commit b61e762c98
4 changed files with 341 additions and 104 deletions

View file

@ -14,6 +14,8 @@ use std::collections::{BTreeMap, BTreeSet};
pub const NEMESIS_STAGE: &str = "nemesis_attention_agent_action";
const HISTORY_PAGE_SIZE: usize = 24;
const INITIAL_EVENT_WINDOW: usize = 24;
const CURRENT_ANCHOR_PAGE_SIZE: usize = 24;
const RESPONDER_PAGE_SIZE: usize = 12;
const MAX_FOLLOW_THROUGH_STEPS: usize = 6;
#[derive(Clone, Debug, Serialize, Deserialize, JsonSchema, PartialEq, Eq)]
@ -39,6 +41,13 @@ enum CausalFollowThroughCommand {
responder_subject_id: String,
cursor: usize,
},
InspectCurrentAnchors {
cursor: usize,
},
InspectAnchorResponders {
anchor_reference: String,
cursor: usize,
},
Submit {
assignments: Vec<CausalAssignmentDraft>,
},
@ -49,7 +58,12 @@ enum CausalFollowThroughCommand {
enum CausalFollowThroughFinding {
HistoryPage {
scope: String,
anchors: Vec<CausalAnchorView>,
anchors: Vec<CausalAnchorSummaryView>,
next_cursor: Option<usize>,
},
ResponderPage {
anchor: CausalAnchorSummaryView,
responders: Vec<CausalResponderView>,
next_cursor: Option<usize>,
},
InvalidAgenda {
@ -58,12 +72,12 @@ enum CausalFollowThroughFinding {
}
#[derive(Clone, Debug, Serialize)]
struct CausalAnchorView {
struct CausalAnchorSummaryView {
anchor_reference: String,
kind: String,
account: String,
originating_subject_ids: Vec<String>,
eligible_responders: Vec<CausalResponderView>,
eligible_responder_count: usize,
}
#[derive(Clone, Debug, Serialize)]
@ -73,14 +87,30 @@ struct CausalResponderView {
subject_kind: String,
stakes: Vec<String>,
cell_id: String,
cell_decision_slot_limit: usize,
}
#[derive(Clone, Debug)]
struct CausalAnchorCandidate {
view: CausalAnchorView,
anchor_reference: String,
kind: String,
account: String,
originating_subject_ids: Vec<String>,
eligible_responder_ids: BTreeSet<String>,
}
impl CausalAnchorCandidate {
fn summary(&self) -> CausalAnchorSummaryView {
CausalAnchorSummaryView {
anchor_reference: self.anchor_reference.clone(),
kind: self.kind.clone(),
account: self.account.clone(),
originating_subject_ids: self.originating_subject_ids.clone(),
eligible_responder_count: self.eligible_responder_ids.len(),
}
}
}
#[derive(Clone, Debug, Serialize, Deserialize, JsonSchema, PartialEq, Eq)]
pub struct CausalFollowThroughAdmission {
pub schema: String,
@ -99,6 +129,7 @@ struct CausalFollowThroughTool<'a> {
campaign: &'a Campaign,
cover: &'a ResolutionCover,
all_public_events: Vec<&'a Event>,
current_anchors: Vec<CausalAnchorCandidate>,
discovered: BTreeMap<String, CausalAnchorCandidate>,
responder_views: BTreeMap<String, CausalResponderView>,
}
@ -154,7 +185,7 @@ impl CausalFollowThroughTool<'_> {
})
}
fn discover_events(&mut self, events: Vec<&Event>) -> Result<Vec<CausalAnchorView>> {
fn discover_events(&mut self, events: Vec<&Event>) -> Result<Vec<CausalAnchorSummaryView>> {
let mut views = Vec::new();
for event in events {
let candidate =
@ -162,13 +193,65 @@ impl CausalFollowThroughTool<'_> {
if candidate.eligible_responder_ids.is_empty() {
continue;
}
views.push(candidate.view.clone());
views.push(candidate.summary());
self.discovered
.insert(candidate.view.anchor_reference.clone(), candidate);
.insert(candidate.anchor_reference.clone(), candidate);
}
Ok(views)
}
fn inspect_current_anchor_page(&mut self, cursor: usize) -> Result<CausalFollowThroughFinding> {
if cursor > self.current_anchors.len() {
return Err(anyhow!(
"current-anchor cursor is outside the durable pressure ledger"
));
}
let end = cursor
.saturating_add(CURRENT_ANCHOR_PAGE_SIZE)
.min(self.current_anchors.len());
let candidates = self.current_anchors[cursor..end].to_vec();
let mut anchors = Vec::with_capacity(candidates.len());
for candidate in candidates {
anchors.push(candidate.summary());
self.discovered
.insert(candidate.anchor_reference.clone(), candidate);
}
Ok(CausalFollowThroughFinding::HistoryPage {
scope: "current durable pressure and clocks".into(),
anchors,
next_cursor: (end < self.current_anchors.len()).then_some(end),
})
}
fn inspect_anchor_responder_page(
&self,
anchor_reference: &str,
cursor: usize,
) -> Result<CausalFollowThroughFinding> {
let candidate = self
.discovered
.get(anchor_reference)
.ok_or_else(|| anyhow!("responder query names an anchor the agent did not inspect"))?;
let responder_ids = candidate.eligible_responder_ids.iter().collect::<Vec<_>>();
if cursor > responder_ids.len() {
return Err(anyhow!(
"anchor-responder cursor is outside the eligible responder list"
));
}
let end = cursor
.saturating_add(RESPONDER_PAGE_SIZE)
.min(responder_ids.len());
let responders = responder_ids[cursor..end]
.iter()
.filter_map(|subject_id| self.responder_views.get(*subject_id).cloned())
.collect();
Ok(CausalFollowThroughFinding::ResponderPage {
anchor: candidate.summary(),
responders,
next_cursor: (end < responder_ids.len()).then_some(end),
})
}
fn validate_and_bind(
&self,
drafts: Vec<CausalAssignmentDraft>,
@ -322,6 +405,35 @@ impl ModelAgentTool for CausalFollowThroughTool<'_> {
receipts: Vec::new(),
},
},
CausalFollowThroughCommand::InspectCurrentAnchors { cursor } => {
match self.inspect_current_anchor_page(cursor) {
Ok(observation) => ModelAgentToolOutcome::Continue {
observation,
receipts: Vec::new(),
},
Err(error) => ModelAgentToolOutcome::Rejected {
finding: CausalFollowThroughFinding::InvalidAgenda {
diagnostic: error.to_string(),
},
receipts: Vec::new(),
},
}
}
CausalFollowThroughCommand::InspectAnchorResponders {
anchor_reference,
cursor,
} => match self.inspect_anchor_responder_page(&anchor_reference, cursor) {
Ok(observation) => ModelAgentToolOutcome::Continue {
observation,
receipts: Vec::new(),
},
Err(error) => ModelAgentToolOutcome::Rejected {
finding: CausalFollowThroughFinding::InvalidAgenda {
diagnostic: error.to_string(),
},
receipts: Vec::new(),
},
},
CausalFollowThroughCommand::Submit { assignments } => {
match self.validate_and_bind(assignments) {
Ok(assignments) => {
@ -385,6 +497,7 @@ pub async fn propose_causal_follow_through(
cover: &ResolutionCover,
) -> std::result::Result<Option<CausalFollowThroughProposal>, crate::agent::ModelAgentFailure> {
let responder_views = responder_views(campaign, cover);
let current_anchors = current_anchor_candidates(campaign, cover, &responder_views);
let all_public_events = campaign
.events
.iter()
@ -395,6 +508,7 @@ pub async fn propose_causal_follow_through(
campaign,
cover,
all_public_events,
current_anchors,
discovered: BTreeMap::new(),
responder_views,
};
@ -404,21 +518,18 @@ pub async fn propose_causal_follow_through(
.copied()
.take(INITIAL_EVENT_WINDOW)
.collect::<Vec<_>>();
let mut initial_anchors =
let initial_event_anchors =
tool.discover_events(initial_events)
.map_err(|error| crate::agent::ModelAgentFailure {
message: error.to_string(),
receipts: Vec::new(),
})?;
initial_anchors.extend(current_pressure_anchors(
campaign,
cover,
&tool.responder_views,
));
for anchor in current_anchor_candidates(campaign, cover, &tool.responder_views) {
tool.discovered
.insert(anchor.view.anchor_reference.clone(), anchor);
}
let initial_current_anchors =
tool.inspect_current_anchor_page(0)
.map_err(|error| crate::agent::ModelAgentFailure {
message: error.to_string(),
receipts: Vec::new(),
})?;
if tool.discovered.is_empty() {
return Ok(None);
}
@ -429,9 +540,14 @@ pub async fn propose_causal_follow_through(
}
})?;
let instructions = format!(
"You are Nemesis, Ghostlight's causal attention agent. Select who receives a decision window because committed world pressure now demands an answer. You never decide their action or its outcome. Bind only exact inspected anchors to exact eligible autonomous responders. Prefer consequential acts, declared crises, active pressure, public humiliation, material loss, contested authority, and promises whose costs should now land. When one public detonation creates incompatible stakes, assign distinct rival responders to the same anchor so their independent Persona cells can make competing countermoves. Do not assign the player. Do not assign one subject twice. Stay within the cover quotas. You may inspect older world history or one subject's full perceived history in pages; the committed ledger is not limited to the initial viewport. An empty assignment list is a valid judgment when nothing currently warrants a response window. Submit the smallest agenda likely to produce genuine causal follow-through. The deterministic tool alone admits it.\n\nCURRENT COVER AND RESPONDERS:\n{}\n\nINITIAL ANCHORS (recent public accounts plus all current durable pressure/clocks):\n{}",
serde_json::to_string(&tool.responder_views).unwrap_or_default(),
serde_json::to_string(&initial_anchors).unwrap_or_default(),
"You are Nemesis, Ghostlight's causal attention agent. Select who receives a decision window because committed world pressure now demands an answer. You never decide their action or its outcome. Bind only exact inspected anchors to exact eligible autonomous responders. Prefer consequential acts, declared crises, active pressure, public humiliation, material loss, contested authority, and promises whose costs should now land. When one public detonation creates incompatible stakes, assign distinct rival responders to the same anchor so their independent Persona cells can make competing countermoves. Do not assign the player. Do not assign one subject twice. Stay within the cover quotas. Inspect a chosen anchor's eligible responders before assigning it. You may page through current pressure/clocks, older world history, one subject's perceived history, or one anchor's eligible responders; the committed ledger is not limited to the initial viewport. An empty assignment list is a valid judgment when nothing currently warrants a response window. Submit the smallest agenda likely to produce genuine causal follow-through. The deterministic tool alone admits it.\n\nCOVER SUMMARY:\n{}\n\nINITIAL RECENT PUBLIC ANCHORS:\n{}\n\nINITIAL CURRENT PRESSURE/CLOCK PAGE:\n{}",
serde_json::json!({
"cell_count":cover.cells.len(),
"eligible_responder_count":tool.responder_views.len(),
"maximum_decision_slots":cover.cells.iter().map(cell_action_limit).sum::<usize>(),
}),
serde_json::to_string(&initial_event_anchors).unwrap_or_default(),
serde_json::to_string(&initial_current_anchors).unwrap_or_default(),
);
let spec = ModelAgentSpec {
stage: NEMESIS_STAGE.into(),
@ -457,7 +573,7 @@ pub fn validate_causal_follow_through(campaign: &Campaign, cover: &ResolutionCov
let responder_views = responder_views(campaign, cover);
let mut catalog = current_anchor_candidates(campaign, cover, &responder_views)
.into_iter()
.map(|candidate| (candidate.view.anchor_reference.clone(), candidate))
.map(|candidate| (candidate.anchor_reference.clone(), candidate))
.collect::<BTreeMap<_, _>>();
for event in campaign
.events
@ -465,12 +581,13 @@ pub fn validate_causal_follow_through(campaign: &Campaign, cover: &ResolutionCov
.filter(|event| !event.public_channels.is_empty())
{
let candidate = event_anchor_candidate(campaign, cover, event, &responder_views)?;
catalog.insert(candidate.view.anchor_reference.clone(), candidate);
catalog.insert(candidate.anchor_reference.clone(), candidate);
}
let tool = CausalFollowThroughTool {
campaign,
cover,
all_public_events: Vec::new(),
current_anchors: Vec::new(),
discovered: catalog,
responder_views,
};
@ -662,6 +779,7 @@ fn responder_views(
subject_kind: format!("{:?}", profile.subject_kind),
stakes: subject_stakes(campaign, &profile.subject_id),
cell_id: cell.id.clone(),
cell_decision_slot_limit: cell_action_limit(cell),
},
);
}
@ -693,6 +811,7 @@ fn responder_views(
.cloned()
.collect(),
cell_id: cell.id.clone(),
cell_decision_slot_limit: cell_action_limit(cell),
},
);
}
@ -714,10 +833,6 @@ fn event_anchor_candidate(
})
.cloned()
.collect::<BTreeSet<_>>();
let eligible_responders = eligible_responder_ids
.iter()
.filter_map(|subject_id| responder_views.get(subject_id).cloned())
.collect();
let mut originating_subject_ids = event
.actor_ids
.iter()
@ -728,13 +843,10 @@ fn event_anchor_candidate(
originating_subject_ids.sort();
originating_subject_ids.dedup();
Ok(CausalAnchorCandidate {
view: CausalAnchorView {
anchor_reference: format!("event:{}", event.id),
kind: event.kind.clone(),
account: event.summary.clone(),
originating_subject_ids,
eligible_responders,
},
anchor_reference: format!("event:{}", event.id),
kind: event.kind.clone(),
account: event.summary.clone(),
originating_subject_ids,
eligible_responder_ids,
})
}
@ -767,19 +879,13 @@ fn current_anchor_candidates(
continue;
}
anchors.push(CausalAnchorCandidate {
view: CausalAnchorView {
anchor_reference: pressure_anchor_reference(&gestalt.id, pressure),
kind: "gestalt_pressure".into(),
account: format!(
"Current unresolved pressure on {}: {pressure}",
gestalt.name
),
originating_subject_ids: vec![gestalt.id.clone()],
eligible_responders: eligible_responder_ids
.iter()
.filter_map(|subject_id| responder_views.get(subject_id).cloned())
.collect(),
},
anchor_reference: pressure_anchor_reference(&gestalt.id, pressure),
kind: "gestalt_pressure".into(),
account: format!(
"Current unresolved pressure on {}: {pressure}",
gestalt.name
),
originating_subject_ids: vec![gestalt.id.clone()],
eligible_responder_ids,
});
}
@ -812,36 +918,19 @@ fn current_anchor_candidates(
continue;
}
anchors.push(CausalAnchorCandidate {
view: CausalAnchorView {
anchor_reference: clock_anchor_reference(&clock.id, clock.progress),
kind: "world_clock".into(),
account: format!(
"{} is at {}/{}; declared consequence: {}",
clock.label, clock.progress, clock.threshold, clock.consequence
),
originating_subject_ids: Vec::new(),
eligible_responders: eligible_responder_ids
.iter()
.filter_map(|subject_id| responder_views.get(subject_id).cloned())
.collect(),
},
anchor_reference: clock_anchor_reference(&clock.id, clock.progress),
kind: "world_clock".into(),
account: format!(
"{} is at {}/{}; declared consequence: {}",
clock.label, clock.progress, clock.threshold, clock.consequence
),
originating_subject_ids: Vec::new(),
eligible_responder_ids,
});
}
anchors
}
fn current_pressure_anchors(
campaign: &Campaign,
cover: &ResolutionCover,
responder_views: &BTreeMap<String, CausalResponderView>,
) -> Vec<CausalAnchorView> {
current_anchor_candidates(campaign, cover, responder_views)
.into_iter()
.map(|candidate| candidate.view)
.collect()
}
fn pressure_anchor_reference(gestalt_id: &str, pressure: &str) -> String {
let digest = format!(
"{:x}",
@ -1060,6 +1149,14 @@ mod tests {
}
})
.to_string(),
serde_json::json!({
"command":{
"kind":"inspect_anchor_responders",
"anchor_reference":"event:old",
"cursor":0
}
})
.to_string(),
serde_json::json!({
"command":{
"kind":"submit",
@ -1085,7 +1182,7 @@ mod tests {
responder_subject_id: "npc".into(),
}]
);
assert_eq!(proposal.receipts.len(), 3);
assert_eq!(proposal.receipts.len(), 4);
assert!(
proposal.receipts[1]
.source_receipt_ids
@ -1102,6 +1199,12 @@ mod tests {
let requests = model.requests.lock().unwrap();
assert!(requests[1].lived_stream.contains("event:old"));
assert!(requests[1].lived_stream.contains("next_cursor"));
assert!(requests[2].lived_stream.contains("Nara Venn"));
assert!(
requests[2]
.lived_stream
.contains("cell_decision_slot_limit")
);
}
#[test]
@ -1199,6 +1302,105 @@ mod tests {
);
}
#[tokio::test]
async fn nemesis_initial_frame_does_not_multiply_anchors_by_responders() {
let (mut campaign, mut cover) = campaign_and_cover();
for index in 0..2_400 {
let id = format!("scale-actor-{index:03}");
let mut actor = campaign.actors["npc"].clone();
actor.id = id.clone();
actor.name = format!("Scale Actor {index:03}");
actor.goals = vec![format!(
"preserve constituency {index:03} through the current dispute"
)];
actor.obligations = BTreeSet::from([format!(
"answer pressure {index:03} without abandoning the ward"
)]);
campaign.actors.insert(id.clone(), actor);
let mut profile = campaign.agency_profiles["npc"].clone();
profile.id = format!("agency:{id}");
profile.subject_id = id.clone();
campaign.agency_profiles.insert(id.clone(), profile);
cover.cells[0].subject_ids.insert(id);
}
let model = ScriptedModel {
responses: Mutex::new(VecDeque::from([serde_json::json!({
"command":{"kind":"submit","assignments":[]}
})
.to_string()])),
requests: Mutex::new(Vec::new()),
};
propose_causal_follow_through(&model, &campaign, &cover)
.await
.unwrap()
.unwrap();
let requests = model.requests.lock().unwrap();
let request = &requests[0];
let frame_chars = request.lived_stream.chars().count()
+ serde_json::to_string(&request.output_schema)
.unwrap()
.chars()
.count();
assert!(request.lived_stream.contains("eligible_responder_count"));
assert!(request.lived_stream.contains("next_cursor"));
assert!(!request.lived_stream.contains("Scale Actor 2399"));
assert!(
frame_chars < 500_000,
"bounded Nemesis frame grew to {frame_chars} characters"
);
}
#[test]
fn current_pressure_projection_is_paged_without_losing_candidates() {
let (campaign, cover) = campaign_and_cover();
let responders = responder_views(&campaign, &cover);
let current_anchors = (0..30)
.map(|index| CausalAnchorCandidate {
anchor_reference: format!("pressure:test:{index:02}"),
kind: "gestalt_pressure".into(),
account: format!("Pressure {index:02} remains unresolved."),
originating_subject_ids: vec!["npc".into()],
eligible_responder_ids: responders.keys().cloned().collect(),
})
.collect();
let mut tool = CausalFollowThroughTool {
campaign: &campaign,
cover: &cover,
all_public_events: Vec::new(),
current_anchors,
discovered: BTreeMap::new(),
responder_views: responders,
};
let CausalFollowThroughFinding::HistoryPage {
anchors,
next_cursor,
..
} = tool.inspect_current_anchor_page(0).unwrap()
else {
panic!("current anchors returned the wrong workbench view")
};
assert_eq!(anchors.len(), CURRENT_ANCHOR_PAGE_SIZE);
assert_eq!(next_cursor, Some(CURRENT_ANCHOR_PAGE_SIZE));
assert_eq!(tool.discovered.len(), CURRENT_ANCHOR_PAGE_SIZE);
let CausalFollowThroughFinding::HistoryPage {
anchors,
next_cursor,
..
} = tool
.inspect_current_anchor_page(CURRENT_ANCHOR_PAGE_SIZE)
.unwrap()
else {
panic!("current anchors returned the wrong workbench view")
};
assert_eq!(anchors.len(), 6);
assert_eq!(next_cursor, None);
assert_eq!(tool.discovered.len(), 30);
}
#[test]
fn a_served_anchor_responder_pair_cannot_be_scheduled_again() {
let (mut campaign, mut cover) = campaign_and_cover();

View file

@ -25,8 +25,8 @@ own volatile workspace identity and the release witness owns deployed identity.
## Current full-world pressure test
Preserve immutable Runs 75 through 107. Rounds 1 through 22 and their session
checkpoints are canonical; do not replay them.
Preserve immutable Runs 75 through 108. Run 108 reaches the exact 2,400-subject
scale target at complexity round 43; no complexity round may replay.
Bounded parallel title-by-realm compaction and deterministic parallel child-ID
reconciliation are pushed and proved. Logical sessions bind title,
@ -56,17 +56,23 @@ round-23 preview froze 21 invocations and committed all 21 mutations at revision
remaining compaction work stopped. Immutable same-source Run 106 cloned Run 105
and reproduced the failure without writing another session checkpoint.
Pushed diagnostic source `8cdbd2e` cloned Run 106 into immutable Run 107 and
reported the exact preflight defect before any model call:
`journal[1].summary contains 1047 characters; maximum 1000`. The strategic-smoke
journal producer duplicated every typed affected-subject ID into prose. The
current cut keeps exact identities solely in `affected_subject_ids` and emits
only `Applied {mutation_kind} to {parent_gestalt_id}.` as summary. One focused
producer regression and all 20 strategic-smoke tests pass. Finish the package
gate, review, commit, and push; then clone Run 107 and resume only the six
missing round-23 compactions. Preserve all 21 mutation receipts and 15
successful session checkpoints; do not replay provider proposals, mutations,
completed compactors, or earlier rounds.
Pushed source `8dd3147` keeps compaction journals structurally compact.
Immutable Run 108 reached exactly 2,400 actionable subjects at round 43. Clock
binding then advanced the campaign to revision 1551 and resolution epoch 1545
before strategic wave 1. All five wave-1 pulses were rejected and the run
failed terminally; every Nemesis attempt stopped before reasoning with
`connector frame exceeded its bound`. No simulation cell committed and
fictional time did not advance.
`propose_causal_follow_through` serializes the complete responder catalog into
instructions, then serializes the initial 24 public anchors plus every current
pressure and clock anchor with every eligible responder view embedded again.
That multiplicative projection is the current defect. The tool already owns the
complete deterministic eligibility catalog and paged world/subject history.
Keep initial anchor summaries bounded; add paged current-anchor retrieval and
paged eligible-responder retrieval for inspected anchors; keep full eligibility
private for admission. Resolution remains cover owner and WorldKernel remains
commit owner. Do not raise the connector bound or truncate canonical authority.
The acceptance launcher retains one 35 MiB content-addressed runner per exact
source commit and deletes disposable compiler output; do not restore a
persistent Cargo target tree.
@ -478,15 +484,14 @@ approved capability.
## Next action
Preserve Runs 75 through 107. Finish the package gate, review, commit, and push
the compact journal-summary producer cut. Clone Run 107 and resume only the six
missing round-23 session compactions. Preserve all 21 committed mutations at
revisions 1409 through 1429 and 15 successful compactions without replaying
provider proposals, mutations, completed compactors, or earlier rounds. Keep
exact affected identities in typed `affected_subject_ids`, not prose summary.
Continue iterative complexity rounds to 2,400 canonical actionable subjects,
followed by ten strategic waves, publications, archive hashes, and
unchanged-live-service verification.
Preserve Runs 75 through 108 and the exact round-43 2,400-subject world. Map and
cut bounded Nemesis navigation: bounded initial anchor summaries, paged current
anchors, and paged eligible responders for an inspected anchor, with complete
eligibility remaining private in the deterministic tool. Add focused size,
paging, exact-eligibility, and no-authority tests; review, gate, commit, and
push. Clone Run 108 and resume wave 1 from revision 1551/resolution epoch 1545
without replaying elaboration or clock binding. Then require ten strategic
waves, publications, archive hashes, and unchanged-live-service verification.
The generic world-consumer boundary is implemented. Session Zero and external
producers share one admitted `WorldSeed` transaction; externally authoritative

View file

@ -197,12 +197,19 @@ exact campaign revision
- **Owner:** the strategic scheduler owns which already-committed consequence
deserves another decision window. The bounded model agent serving that
decision is Nemesis. It does not own what any subject decides.
decision is Nemesis. Resolution owns the complete 240-cell cover and its
decision quotas; Nemesis does not own cover construction or what any subject
decides.
- **Inputs:** one frozen campaign revision, its committed public events and
active pressures and clock progress, the durable Nemesis attention history,
the deterministic resolution cover, exact perception routes, simulation
eligibility, Gestalt-member materialization state, player-control boundary,
and each cell's action quota.
and each cell's action quota. The initial model frame contains only a cover
summary, bounded summaries of the 24 most recent eligible public-event
anchors, and the first page of 24 current pressure/clock summaries. Agent
commands page current anchors 24 at a time, older world or exact-subject
history through the existing 24-item views, and eligible responder dossiers
for one already-inspected anchor 12 at a time.
- **Output:** one bounded follow-through agenda binding exact event, pressure,
or clock anchors to exact eligible decision owners already represented by the
cover, plus the model receipt rebound to the exact campaign snapshot and
@ -213,6 +220,12 @@ exact campaign revision
permitted cell slice, takes precedence over ordinary rotation for that wave,
and supplies that anchor's exact current committed account to the action's
private outcome context. The anchor is context, not new mutation authority.
`CausalAnchorCandidate` is private deterministic tool state containing anchor
metadata and the exact set of eligible responder IDs. It derives a summary
with only the responder count for broad views; it never clones a responder
dossier per anchor. Full responder eligibility and dossiers remain one
private tool catalog and are projected only for the selected inspected
anchor page.
Responder-cell routing preserves identity ownership: a materialized
`member:*` subject remains an actor and binds only to its actor cell; a dormant
member keeps its exact member identity but routes through its aggregate
@ -226,7 +239,10 @@ exact campaign revision
event writer and the sole writer of durable served-window records. Member
materialization changes only through the existing kernel presence transition;
bounded legacy identity normalization may canonicalize an already materialized
actor ID but does not decide presence.
actor ID but does not decide presence. Nemesis cannot infer eligibility from
counts or summaries, address an uninspected anchor, obtain the global
responder-dossier cross product, exceed page or cell quotas, or commit its
agenda. Anchor summaries and dossier pages are observations, not writers.
- **Shared paths:** first execution and checkpoint resume consume the identical
accepted agenda and exact receipt binding. `WorldKernel` independently
requires that exact admitted receipt before it commits a nonempty causal
@ -236,16 +252,28 @@ exact campaign revision
choose an attributed inaction. Later discovery excludes an already served
exact pair; a clock's new progress value creates a new anchor. Responder
discovery, agenda quota/focus admission, validation, and per-cell assignment
injection all use the same materialization-aware cell resolver.
injection all use the same materialization-aware cell resolver. Initial and
paged current-anchor discovery use the same candidate catalog and add exact
candidates to the inspected set. World/subject history pages use the existing
event discovery path. Anchor-responder inspection joins the chosen inspected
candidate's exact eligible-ID set against the single responder catalog; the
generated action schema exposes exact currently admissible IDs, and submit
admission rechecks anchor-specific eligibility, distinct responders, total
slots, per-cell quotas, and mandatory detail focus before binding a receipt.
- **Cut line:** blind tick rotation no longer decides a slot already occupied
by an admitted causal assignee, and the global last-twelve-event truncation
cannot hide that assignee's exact anchor. No prompt downstream may compensate
for a missing scheduler decision window. `response_role` and a claimed
accepted-receipt ID are not part of the admission: the scheduler admits only
the exact anchor/responder assignment, and receipt identity comes from the
actual model invocation.
actual model invocation. The cut retains one cover, one deterministic
eligibility computation, one action/admission validator, and one kernel
commit path. It adds no per-anchor responder-dossier cache, cloned candidate
frame, second Nemesis agent, eligibility store, or pagination-owned truth.
- **Verification layer:** focused tests prove paged retrieval beyond the initial
event viewport, valid empty judgment, exact-pair replay suppression, player
event viewport, 24-item current-anchor paging without losing candidates,
12-item responder inspection for an exact chosen anchor, valid empty
judgment, exact-pair replay suppression, player
exclusion, exact owner consideration, materialized-member routing to the actor
cell versus dormant-member routing to the Gestalt cell, exact anchor citation,
outcome context containing only the assigned anchor and its committed
@ -253,8 +281,10 @@ exact campaign revision
and served-window recording for the exact receipted agenda. Deterministic
validators reject unknown anchors, ineligible or duplicate responders,
over-quota agendas, missing exact receipts, and stale anchor accounts. A
strategic smoke remains the whole-system verification that named competing
decisions produce
2,400-responder frame regression proves the initial prompt remains a bounded
cover/anchor summary rather than multiplying every anchor by every responder
dossier. A strategic smoke remains the whole-system verification that named
competing decisions produce
committed material outcomes before editorial quality is assessed.
The model owns no tick mutation. A provider failure or invalid proposal leaves

View file

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