From 79206dfce744322c71cbd57b26c6e74b11de9f8d Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sat, 5 Sep 2026 19:38:01 +0200 Subject: [PATCH] Carry the road's rules from the seeded live smoke The seeded smoke passed on the twelfth run: six persons authored into Low Sere from the Kalsa vault in one round, the deficit to zero, nine subjects and six boundaries at activation, eight cells per tick, the seeded people speaking to each other. Each earlier failure became a rule in the tree: strict function schemas (anyOf, typed tags) with an offline totality test over both authoring lanes; a content-addressed provider request identity so repair rounds do not collide with the connector's replay record; the connector's expiry skew separated from the response read timeout; the seed lane's own round budget with parallel tool calls and a budget-end submit; canonical ids and the placement rule in the brief; the commitment shape rule in its tool description; inference faults and cell outcomes logged where the operator can read them; and a harness that fails on an empty seed or a silent world. Co-Authored-By: Claude Fable 5.1 --- crates/ghostlight-dungeon/src/runtime.rs | 43 ++++- .../src/world/controllers.rs | 165 ++++++++++++++--- .../src/world/elaboration.rs | 174 ++++++++++++++---- crates/ghostlight-dungeon/src/world/patch.rs | 22 ++- .../src/world/tool_schema.rs | 73 +++++++- .../architecture/ghostlight-world-ontology.md | 12 ++ notes/local-live-smoke.md | 45 ++++- state/evidence.jsonl | 3 +- state/ghostlight-state.cultcache.jsonl | 1 + 9 files changed, 449 insertions(+), 89 deletions(-) diff --git a/crates/ghostlight-dungeon/src/runtime.rs b/crates/ghostlight-dungeon/src/runtime.rs index 24537c0..bf9f5f6 100644 --- a/crates/ghostlight-dungeon/src/runtime.rs +++ b/crates/ghostlight-dungeon/src/runtime.rs @@ -1935,18 +1935,27 @@ async fn run_cover_tick(state: &AppState) { ); } Ok(CellRun::Narrative(NarrativeRun::Pending(pending))) => { - tracing::debug!( + tracing::info!( reason = ?pending.reason(), "a detail narrative cell is pending" ); } Ok(CellRun::Operational(OperationalRun::Pending(pending))) => { - tracing::debug!( + tracing::info!( reason = ?pending.reason(), "a detail operational cell is pending" ); } - Ok(CellRun::Narrative(_) | CellRun::Operational(_)) => {} + // The operator's only window onto what a cell decided is this + // line; the world journal keeps effects, not the run. + Ok(CellRun::Narrative(run)) => { + let summary = format!("{run:?}"); + tracing::info!(run = %summary.chars().take(600).collect::(), "narrative cell completed"); + } + Ok(CellRun::Operational(run)) => { + let summary = format!("{run:?}"); + tracing::info!(run = %summary.chars().take(600).collect::(), "operational cell completed"); + } Err(error) => { // A cell that faults does not abort the tick. Custody loss // does: the work journal is one lock and one custody claim, @@ -1955,7 +1964,7 @@ async fn run_cover_tick(state: &AppState) { tracing::error!(%error, "controller cognition quarantined mid-tick"); quarantined.store(true, Ordering::SeqCst); } else { - tracing::debug!(%error, "a cell did not complete this tick"); + tracing::info!(%error, "a cell did not complete this tick"); } } } @@ -3350,6 +3359,9 @@ mod tests { #[tokio::test] #[ignore = "requires a running CodexConnector and a vault; see GHOSTLIGHT_SMOKE_* environment"] async fn live_smoke_seeds_then_ticks_a_world_against_the_connector() { + let _ = tracing_subscriber::fmt() + .with_env_filter(EnvFilter::from_default_env()) + .try_init(); let env = |name: &str| std::env::var(name).unwrap_or_else(|_| panic!("{name} is required")); let live = LiveController { endpoint: env("GHOSTLIGHT_CONTROLLER_CONNECTOR").parse().unwrap(), @@ -3410,6 +3422,7 @@ mod tests { draft.scale_deficit.len(), crate::world::select_row(&draft) )); + let mut seed_patches = 0usize; for round in 1..=seed_sessions { let before = state.world.snapshot().await.unwrap(); if crate::world::select_row(&before).is_none() { @@ -3446,7 +3459,16 @@ mod tests { .map(|row| (row.kind, row.target, row.qualified, row.deficit)) .collect::>() )); - if !matches!(outcome, Ok(SeedOutcome::Committed)) { + // A rejection persists a repair prompt that the next step + // consumes, so it is a session in progress, not an end. + // `NoProgress` is a committed patch that moved no row; it still + // proves the lane authored and landed something. + if matches!( + outcome, + Ok(SeedOutcome::Committed | SeedOutcome::NoProgress) + ) { + seed_patches += 1; + } else if !matches!(outcome, Ok(SeedOutcome::Rejected)) { break; } } @@ -3550,6 +3572,17 @@ mod tests { final_snapshot.revision > snapshot.revision, "the clock alone must move the revision" ); + // A road run that reached the provider and got nothing back is a + // failed run, not a quiet one: the smoke exists to prove inference + // happened, so an empty seed or a silent Persona fails it. + assert!( + seed_sessions == 0 || seed_patches >= 1, + "no seed session committed a patch; read the seed round outcomes in the log" + ); + assert!( + ticks == 0 || logged_events >= 1, + "no subject spoke in {ticks} ticks; inference did not reach the world" + ); } // ---- The seed command ------------------------------------------------ diff --git a/crates/ghostlight-dungeon/src/world/controllers.rs b/crates/ghostlight-dungeon/src/world/controllers.rs index e7279ab..4d078a8 100644 --- a/crates/ghostlight-dungeon/src/world/controllers.rs +++ b/crates/ghostlight-dungeon/src/world/controllers.rs @@ -50,7 +50,15 @@ use thiserror::Error; use zeroize::Zeroizing; const MAX_CONNECTOR_FRAME_BYTES: usize = 1_052_672; +/// How far ahead an invocation may claim to be valid. The connector refuses +/// an expiry beyond its own skew bound as `Expired`, so this is the daemon's +/// number, not ours; it is admission validity, not generation time. const REQUEST_EXPIRY: Duration = Duration::from_secs(300); +/// One provider round's whole lifetime as seen from this side of the socket: +/// the connector replies once at the end, so the read timeout bounds an +/// entire generation, and a seed patch at medium effort was measured past +/// five minutes. +const RESPONSE_TIMEOUT: Duration = Duration::from_secs(900); const TOOL_STEP_BUDGET: usize = 4; /// The grouped protocol asks for every call in one round, so this budget buys /// exactly one repair round after decode gaps are reported back. It deliberately @@ -275,7 +283,7 @@ impl CodexConnectorInferencePort { endpoint, connection_key, MAX_CONNECTOR_FRAME_BYTES, - Some(REQUEST_EXPIRY), + Some(RESPONSE_TIMEOUT), ) .map_err(|error| InferenceFault::new(error.to_string()))?; Ok(Self { @@ -1160,8 +1168,14 @@ fn exact_request_identity( .is_some_and(|digest| digest == request.invocation.native_request_sha256) && provider_request_sha256(provider) .is_ok_and(|digest| digest == request.invocation.provider_request_sha256) - && provider_request_id(command_id, purpose, round) - .is_ok_and(|expected| provider.request_id == expected) + && provider_request_id( + command_id, + purpose, + round, + &provider.instructions, + &provider.input, + ) + .is_ok_and(|expected| provider.request_id == expected) && conversation_id(command_id, purpose, round) .is_ok_and(|expected| provider.conversation_id == expected) } @@ -1934,6 +1948,10 @@ pub(crate) enum ControllerPendingReason { } fn inference_pending_reason(error: &ControllerError) -> Option { + // The pending reason is a classification; the fault text is the only + // record of what the provider or connector actually said, so it is logged + // here where every lane's fault passes. + tracing::info!(%error, "inference fault classified for pending"); match error { ControllerError::Inference { source, .. } if source.integrity_was_violated() => None, ControllerError::Inference { source, .. } if source.recovery_required() => { @@ -4516,13 +4534,20 @@ fn persona_request( // constructor. Its only model-visible input is the dedicated natural-prose // prompt plus the smallest nonempty instruction required by the provider // transport contract. + let input = vec![CodexInputItem::UserText { text: prompt }]; let mut provider = CodexProviderRequest::new( - provider_request_id(command_id, InferencePurpose::Persona, 0)?, + provider_request_id( + command_id, + InferencePurpose::Persona, + 0, + PERSONA_PROVIDER_INSTRUCTIONS, + &input, + )?, conversation_id(command_id, InferencePurpose::Persona, 0)?, model, PERSONA_PROVIDER_INSTRUCTIONS, ); - provider.input = vec![CodexInputItem::UserText { text: prompt }]; + provider.input = input; provider.reasoning_effort = Some("low".into()); provider.tools = Vec::new(); provider.tool_choice = CodexToolChoice::Auto; @@ -4544,10 +4569,11 @@ fn text_request( prompt: String, max_output_tokens: u32, ) -> Result { - let request = provider_request_id(command_id, purpose, 0)?; + let input = vec![CodexInputItem::UserText { text: prompt }]; + let request = provider_request_id(command_id, purpose, 0, instructions, &input)?; let conversation = conversation_id(command_id, purpose, 0)?; let mut provider = CodexProviderRequest::new(request, conversation, model, instructions); - provider.input = vec![CodexInputItem::UserText { text: prompt }]; + provider.input = input; provider.reasoning_effort = Some("low".into()); provider.tools = Vec::new(); provider.tool_choice = CodexToolChoice::Auto; @@ -4622,7 +4648,7 @@ pub(super) fn tool_request( shape: RequestShape, ) -> Result { let mut provider = CodexProviderRequest::new( - provider_request_id(command_id, purpose, round)?, + provider_request_id(command_id, purpose, round, instructions, &input)?, conversation_id(command_id, purpose, round)?, model, instructions, @@ -4905,18 +4931,39 @@ fn decode_catalog_call( }) } +/// The provider request identity is content-addressed: the same command, +/// purpose, round, and bytes name the same request, so a resumed round replays +/// its completed response, while a repair round that re-prompts under the +/// same command and round names a different request instead of colliding +/// with the connector's replay record for the first attempt. pub(super) fn provider_request_id( command_id: CommandId, purpose: InferencePurpose, round: usize, + instructions: &str, + input: &[CodexInputItem], ) -> Result { + let content = request_content_digest(instructions, input)?; Ok(format!( - "ghostlight-request-{}-{}-{round}", + "ghostlight-request-{}-{}-{round}-{content}", encoded_id(&command_id)?, purpose_name(purpose) )) } +fn request_content_digest( + instructions: &str, + input: &[CodexInputItem], +) -> Result { + let bytes = serde_json::to_vec(&(instructions, input)) + .map_err(|error| ControllerError::Serialization(error.to_string()))?; + let digest = Sha256::digest(bytes); + Ok(digest[..12] + .iter() + .map(|byte| format!("{byte:02x}")) + .collect()) +} + fn conversation_id( command_id: CommandId, purpose: InferencePurpose, @@ -4942,6 +4989,17 @@ fn purpose_name(purpose: InferencePurpose) -> &'static str { #[cfg(test)] mod tests { + + /// The decision lanes' tools go to the same provider under the same + /// strict rules as the patch catalog; the interpreter's fixed tools and a + /// granted catalog entry are checked offline here for the same reason. + #[test] + fn every_decision_lane_tool_schema_is_strict() { + for tool in interpreter_tools() { + let schema: serde_json::Value = serde_json::from_str(&tool.parameters_json).unwrap(); + super::super::tool_schema::assert_strict(&schema, &tool.name); + } + } use super::*; use crate::world::elaboration::{EvidenceError, EvidenceQuery, EvidenceReceipt}; use crate::world::patch::{RECORD_GAP_PATCH_TOOL, kernel_speak_entry, kernel_speak_grant}; @@ -9600,23 +9658,21 @@ mod tests { fixture.task.await.unwrap(); } - /// Soul. One session's round loop is bounded by the elaboration budget it - /// shares, not by anything the seed lane holds: a model that keeps calling - /// tools and never submits stops at `ELABORATION_ROUND_BUDGET` rounds and - /// leaves a `NoPatch` row, and a second sweep over the same store spends - /// nothing, because that row is the row's fixed point. + /// Soul, revised on the road. The seed lane's round loop is bounded by + /// `SEED_ROUND_BUDGET`; a model that keeps declaring and never submits + /// stops there and the draft as authored is submitted rather than + /// discarded, because what it authored is a patch the resolver decides. #[tokio::test] - async fn soul_a_session_that_never_submits_is_bounded_by_the_round_budget() { - // `elaboration::ELABORATION_ROUND_BUDGET`, which is file-private to the - // lane that owns it. Restated here so that raising the budget fails - // this bound loudly rather than silently widening it. - const SHARED_ROUND_BUDGET: usize = 6; + async fn soul_a_session_that_never_submits_is_bounded_and_its_draft_is_submitted() { + // `elaboration::SEED_ROUND_BUDGET`, file-private to the lane that owns + // it, restated so raising it fails this bound loudly. + const SEED_ROUND_BUDGET: usize = 24; let fixture = seed_mailbox(6).await; let genesis = fixture.mailbox.snapshot().await.unwrap().revision; let store = fresh_store(); let scripted = seed_script( - (0..SHARED_ROUND_BUDGET + 4) + (0..SEED_ROUND_BUDGET + 4) .map(|round| { tool_round( vec![( @@ -9638,20 +9694,71 @@ mod tests { store.clone(), Arc::new(NullEvidenceSource), ); - assert_eq!(runner.step().await.unwrap(), SeedOutcome::NoPatch); + // Sheds qualify nobody, so the outcome may report no progress on the + // row; the revision and the places prove the draft was submitted. + let outcome = runner.step().await.unwrap(); + assert!( + matches!(outcome, SeedOutcome::Committed | SeedOutcome::NoProgress), + "the draft as authored was not submitted: {outcome:?}" + ); assert_eq!( scripted.seen.lock().unwrap().len(), - SHARED_ROUND_BUDGET, - "the round loop is not bounded by the shared budget" + SEED_ROUND_BUDGET, + "the round loop is not bounded by the seed budget" + ); + let after = fixture.mailbox.snapshot().await.unwrap(); + assert_eq!( + after.revision, + genesis + 1, + "the authored draft was not submitted once" ); assert_eq!( - fixture.mailbox.snapshot().await.unwrap().revision, - genesis, - "a session that never submitted moved the world" + after + .places + .iter() + .filter(|place| place.label == "A Shed") + .count(), + SEED_ROUND_BUDGET, + "every declaration authored before the budget ended must land" ); - // The row is now a fixed point: a fresh sweep re-derives the same id, - // finds `NoPatch`, and does not spend a round. + drop(runner); + drop(fixture.mailbox); + fixture.task.await.unwrap(); + } + + /// Soul. A session that only records gaps has authored nothing; the budget + /// ends it as `NoPatch`, the world does not move, and a second sweep over + /// the same store finds that row and spends no round. + #[tokio::test] + async fn soul_a_session_that_authors_nothing_is_a_fixed_point() { + const SEED_ROUND_BUDGET: usize = 24; + + let fixture = seed_mailbox(6).await; + let genesis = fixture.mailbox.snapshot().await.unwrap().revision; + let store = fresh_store(); + let scripted = seed_script( + (0..SEED_ROUND_BUDGET + 4) + .map(|round| { + tool_round( + vec![( + "record_gap", + json!({"detail": format!("nothing yet {round}")}), + )], + &format!("r{round}"), + ) + }) + .collect(), + ); + let runner = seed_runner( + &fixture, + scripted.clone(), + store.clone(), + Arc::new(NullEvidenceSource), + ); + assert_eq!(runner.step().await.unwrap(), SeedOutcome::NoPatch); + assert_eq!(scripted.seen.lock().unwrap().len(), SEED_ROUND_BUDGET); + assert_eq!(fixture.mailbox.snapshot().await.unwrap().revision, genesis); let resumed = seed_runner( &fixture, scripted.clone(), @@ -9661,7 +9768,7 @@ mod tests { assert_eq!(resumed.sweep(4).await.unwrap(), SeedOutcome::NoPatch); assert_eq!( scripted.seen.lock().unwrap().len(), - SHARED_ROUND_BUDGET, + SEED_ROUND_BUDGET, "a NoPatch row was reopened against the endpoint" ); assert_eq!(store.work.lock().unwrap().len(), 1, "one row per session"); diff --git a/crates/ghostlight-dungeon/src/world/elaboration.rs b/crates/ghostlight-dungeon/src/world/elaboration.rs index b6067b0..ef2f2f0 100644 --- a/crates/ghostlight-dungeon/src/world/elaboration.rs +++ b/crates/ghostlight-dungeon/src/world/elaboration.rs @@ -42,6 +42,10 @@ use uuid::Uuid; /// repair, where the operational agent wants one terminal choice. /// `TOOL_STEP_BUDGET` is left alone for the lane it belongs to. const ELABORATION_ROUND_BUDGET: usize = 6; +/// A seed session authors a whole shortfall, not one answer: several subjects, +/// each with a grant, a goal, and an obligation, then a submit. Measured on +/// the road at one declaration per response, six rounds discarded everything. +const SEED_ROUND_BUDGET: usize = 24; const ELABORATION_NAMESPACE: &str = "ghostlight.command.elaboration.v1"; @@ -125,7 +129,12 @@ impl ElaborationCheckpoint { } => { !agent_prompt.is_empty() && canonical_model(&invocation.invocation.request.model) - && match evaluate_elaboration_loop(agent_prompt, last_mismatches, completed) { + && match evaluate_elaboration_loop( + agent_prompt, + last_mismatches, + completed, + ELABORATION_ROUND_BUDGET, + ) { Ok(ElaborationLoopEvaluation::Continue { conversation }) => { elaboration_request( *command_id, @@ -150,13 +159,18 @@ impl ElaborationCheckpoint { last_mismatches, completed, .. - } => derive_elaboration_capture(agent_prompt, last_mismatches, completed) - .is_ok_and(|capture| capture.submitted), + } => derive_elaboration_capture( + agent_prompt, + last_mismatches, + completed, + ELABORATION_ROUND_BUDGET, + ) + .is_ok_and(|capture| capture.submitted), Self::NoPatch { agent_prompt, completed, .. - } => derive_elaboration_capture(agent_prompt, &[], completed) + } => derive_elaboration_capture(agent_prompt, &[], completed, ELABORATION_ROUND_BUDGET) .is_ok_and(|capture| !capture.submitted), } } @@ -372,7 +386,12 @@ impl ElaborationRunner { }; loop { - match evaluate_elaboration_loop(&agent_prompt, &last_mismatches, &completed)? { + match evaluate_elaboration_loop( + &agent_prompt, + &last_mismatches, + &completed, + ELABORATION_ROUND_BUDGET, + )? { ElaborationLoopEvaluation::Continue { conversation } => { let request = elaboration_request( command_id, @@ -492,7 +511,12 @@ impl ElaborationRunner { agent_prompt: &str, last_mismatches: &[Mismatch], ) -> Result<(), ControllerError> { - let conversation = match evaluate_elaboration_loop(agent_prompt, last_mismatches, &[])? { + let conversation = match evaluate_elaboration_loop( + agent_prompt, + last_mismatches, + &[], + ELABORATION_ROUND_BUDGET, + )? { ElaborationLoopEvaluation::Continue { conversation } => conversation, ElaborationLoopEvaluation::Complete { .. } => { return Err(ControllerError::Serialization( @@ -804,6 +828,7 @@ pub(super) fn evaluate_elaboration_loop( prompt: &str, last_mismatches: &[Mismatch], completed: &[InferenceOutput], + budget: usize, ) -> Result { // The repair set is prompt material, folded in by `build_prompt`; it is // named here so a checkpoint that carries one cannot be re-derived without @@ -859,17 +884,26 @@ pub(super) fn evaluate_elaboration_loop( } } - let is_complete = submitted || !called_tool || round + 1 == ELABORATION_ROUND_BUDGET; + let is_complete = submitted || !called_tool || round + 1 == budget; if is_complete { if round + 1 != completed.len() { return Err(ControllerError::Serialization( "elaboration evidence continued after total finalization".into(), )); } - if !submitted && called_tool && round + 1 == ELABORATION_ROUND_BUDGET { - gaps.push(ControllerNeed { - detail: "The elaboration round budget ended before a submit.".into(), - }); + if !submitted && called_tool && round + 1 == budget { + // What was authored is still a patch; the resolver decides it, + // not the round counter. An empty draft has nothing to submit. + if draft.declarations.is_empty() && draft.operations.is_empty() { + gaps.push(ControllerNeed { + detail: "The elaboration round budget ended before a submit.".into(), + }); + } else { + submitted = true; + gaps.push(ControllerNeed { + detail: "The round budget ended before a submit; the draft as authored was submitted.".into(), + }); + } } draft.evidence.sort(); draft.evidence.dedup(); @@ -884,7 +918,7 @@ pub(super) fn evaluate_elaboration_loop( } } - if completed.len() >= ELABORATION_ROUND_BUDGET { + if completed.len() >= budget { return Err(ControllerError::Serialization( "elaboration evidence exceeded its round budget".into(), )); @@ -994,8 +1028,9 @@ pub(super) fn derive_elaboration_capture( prompt: &str, last_mismatches: &[Mismatch], completed: &[InferenceOutput], + budget: usize, ) -> Result { - match evaluate_elaboration_loop(prompt, last_mismatches, completed)? { + match evaluate_elaboration_loop(prompt, last_mismatches, completed, budget)? { ElaborationLoopEvaluation::Complete { capture } => Ok(capture), ElaborationLoopEvaluation::Continue { .. } => Err(ControllerError::Serialization( "elaboration evidence did not finalize".into(), @@ -1069,7 +1104,7 @@ const SEED_NAMESPACE: &str = "ghostlight.command.seed.v1"; /// seeded out of goals alone therefore activates with nothing for the Active /// elaborator to answer, so this instruction requires an obligation, not a /// goal alone, from every subject it authors. -const SEED_INSTRUCTIONS: &str = "Use only the supplied tools to author living structure inside your jurisdiction. A subject counts only when it has a controller, at least one affordance grant, and holds a goal commitment. A goal alone is not enough structure: every person and institution you author must also hold at least one obligation commitment with a counterparty, because a goal carries no counterparty and derives no boundary for the world's Active elaborator to answer. Author the shortfall you were given, then submit. Recording a gap changes nothing."; +const SEED_INSTRUCTIONS: &str = "Use only the supplied tools to author living structure inside your jurisdiction. A subject counts only when it has a controller, at least one affordance grant, and holds a goal commitment. A goal alone is not enough structure: every person and institution you author must also hold at least one obligation commitment with a counterparty, because a goal carries no counterparty and derives no boundary for the world's Active elaborator to answer. Author the shortfall you were given in as few responses as you can, making several tool calls per response, and finish with submit_patch as your last call; a session that ends without it keeps only what was authored. Recording a gap changes nothing."; /// The row a session answers, plus the ancestry it was built against. There is /// no `PatchAnswer` here: a seed answers nothing, and giving this session an @@ -1171,7 +1206,12 @@ impl SeedCheckpoint { } => { !agent_prompt.is_empty() && canonical_model(&invocation.invocation.request.model) - && match evaluate_elaboration_loop(agent_prompt, last_mismatches, completed) { + && match evaluate_elaboration_loop( + agent_prompt, + last_mismatches, + completed, + SEED_ROUND_BUDGET, + ) { Ok(ElaborationLoopEvaluation::Continue { conversation }) => seed_request( *command_id, completed.len(), @@ -1194,13 +1234,18 @@ impl SeedCheckpoint { last_mismatches, completed, .. - } => derive_elaboration_capture(agent_prompt, last_mismatches, completed) - .is_ok_and(|capture| capture.submitted), + } => derive_elaboration_capture( + agent_prompt, + last_mismatches, + completed, + SEED_ROUND_BUDGET, + ) + .is_ok_and(|capture| capture.submitted), Self::NoPatch { agent_prompt, completed, .. - } => derive_elaboration_capture(agent_prompt, &[], completed) + } => derive_elaboration_capture(agent_prompt, &[], completed, SEED_ROUND_BUDGET) .is_ok_and(|capture| !capture.submitted), } } @@ -1373,7 +1418,12 @@ impl SeedRunner { }; loop { - match evaluate_elaboration_loop(&agent_prompt, &last_mismatches, &completed)? { + match evaluate_elaboration_loop( + &agent_prompt, + &last_mismatches, + &completed, + SEED_ROUND_BUDGET, + )? { ElaborationLoopEvaluation::Continue { conversation } => { let request = seed_request(command_id, completed.len(), &self.model, conversation)?; @@ -1402,6 +1452,16 @@ impl SeedRunner { } ElaborationLoopEvaluation::Complete { capture } => { if !capture.submitted { + let last = completed + .last() + .map(|output| format!("{output:?}")) + .unwrap_or_default(); + tracing::info!( + rounds = completed.len(), + gaps = ?capture.gaps, + last_output = %last.chars().take(2000).collect::(), + "seed session ended without a patch" + ); self.persist(SeedCheckpoint::NoPatch { command_id, session, @@ -1444,6 +1504,10 @@ impl SeedRunner { }) } Err(MailboxError::Kernel(KernelError::PatchRejected(mismatches))) => { + tracing::info!( + mismatches = ?mismatches, + "seed patch rejected; a repair prompt is persisted for the next step" + ); last_mismatches = mismatches; let repaired = build_seed_prompt( &snapshot, @@ -1503,14 +1567,16 @@ impl SeedRunner { agent_prompt: &str, last_mismatches: &[Mismatch], ) -> Result<(), ControllerError> { - let conversation = match evaluate_elaboration_loop(agent_prompt, last_mismatches, &[])? { - ElaborationLoopEvaluation::Continue { conversation } => conversation, - ElaborationLoopEvaluation::Complete { .. } => { - return Err(ControllerError::Serialization( - "a repair round completed before any evidence".into(), - )); - } - }; + let conversation = + match evaluate_elaboration_loop(agent_prompt, last_mismatches, &[], SEED_ROUND_BUDGET)? + { + ElaborationLoopEvaluation::Continue { conversation } => conversation, + ElaborationLoopEvaluation::Complete { .. } => { + return Err(ControllerError::Serialization( + "a repair round completed before any evidence".into(), + )); + } + }; let request = seed_request(command_id, 0, &self.model, conversation)?; let invocation = self.inference @@ -1565,8 +1631,10 @@ fn seed_request( input, patch_tools(), RequestShape { - max_output_tokens: 4_000, - parallel_tool_calls: false, + // A seed response carries many declarations and operations at + // once; one call per response spent the whole budget on the road. + max_output_tokens: 8_000, + parallel_tool_calls: true, }, ) } @@ -1625,6 +1693,19 @@ fn build_seed_prompt( render_kind(session.kind), session.qualified )); + // The row is a place subtree; a subject standing anywhere else fills a + // row with no target and leaves this shortfall untouched. On the road the + // first landed seed put all six people in the commons for want of this. + prompt.push_str(&match session.jurisdiction { + JurisdictionKey::PlaceSubtree(root) => format!( + "Placement: every subject you author must stand at {} [{}] or at a place you declare inside it; a subject standing anywhere else does not count toward this shortfall.\n", + render_jurisdiction(snapshot, session.jurisdiction), + id_text(root) + ), + JurisdictionKey::Uncovered => { + "Placement: every subject you author must stand at a place no declared root covers.\n".to_owned() + } + }); if let Some(brief) = brief.map(str::trim).filter(|value| !value.is_empty()) { prompt.push_str(&format!("{brief}\n")); } @@ -1649,6 +1730,16 @@ fn render_kind(kind: SubjectKind) -> &'static str { /// already exist. A renderer beside `render_jurisdiction` and `render_answer`, /// and seed-only: widening the Active elaborator's prompt is a behaviour change /// to a working lane and belongs to whoever measures it. +/// The canonical id as the patch vocabulary spells it: the bare UUID text, +/// without the typed wrapper's name. +fn id_text(id: impl std::fmt::Debug) -> String { + let text = format!("{id:?}"); + match (text.find('('), text.rfind(')')) { + (Some(open), Some(close)) if open < close => text[open + 1..close].to_owned(), + _ => text, + } +} + fn render_world_structure(snapshot: &WorldSnapshot) -> String { let place_label = |id: EntityId| { snapshot @@ -1660,7 +1751,13 @@ fn render_world_structure(snapshot: &WorldSnapshot) -> String { |entry| entry.label.clone(), ) }; - let mut out = String::from("Standing structure:\n"); + // Ids are printed beside labels because a patch names an existing thing + // by its canonical id and nothing else; a model that sees only labels + // can only guess, and the first live seed session guessed six times. + let mut out = String::from( + "Standing structure (reference an existing thing by the id in brackets, \ + exactly as printed; reference a thing declared in this patch by its handle):\n", + ); out.push_str(" Places:"); if snapshot.places.is_empty() { out.push_str(" none"); @@ -1669,12 +1766,13 @@ fn render_world_structure(snapshot: &WorldSnapshot) -> String { match place.container { Some(container) => { out.push_str(&format!( - " {} (in {});", + " {} [{}] (in {});", place.label, + id_text(place.id), place_label(container) )); } - None => out.push_str(&format!(" {};", place.label)), + None => out.push_str(&format!(" {} [{}];", place.label, id_text(place.id))), } } out.push_str("\n Routes:"); @@ -1683,8 +1781,9 @@ fn render_world_structure(snapshot: &WorldSnapshot) -> String { } for route in &snapshot.routes { out.push_str(&format!( - " {}: {} -> {}, {:?}, {};", + " {} [{}]: {} -> {}, {:?}, {};", route.label, + id_text(route.id), place_label(route.from), place_label(route.to), route.access, @@ -1697,8 +1796,9 @@ fn render_world_structure(snapshot: &WorldSnapshot) -> String { } for subject in &snapshot.subjects { out.push_str(&format!( - " {} ({:?}, {}, in {}, grants: {}, {});", + " {} [{}] ({:?}, {}, in {}, grants: {}, {});", subject.label, + id_text(subject.id), subject.kind, subject .controller_mode @@ -1720,8 +1820,9 @@ fn render_world_structure(snapshot: &WorldSnapshot) -> String { } for affordance in &snapshot.affordances { out.push_str(&format!( - " {}, roles: {}, {};", + " {} [{}], roles: {}, {};", affordance.entry.kind.0, + id_text(affordance.id), if affordance.entry.roles.is_empty() { "none".to_owned() } else { @@ -1789,7 +1890,8 @@ mod tests { } fn capture(completed: &[InferenceOutput]) -> ElaborationCapture { - derive_elaboration_capture("prompt", &[], completed).expect("the loop finalizes") + derive_elaboration_capture("prompt", &[], completed, ELABORATION_ROUND_BUDGET) + .expect("the loop finalizes") } /// Each declaration tool call appends a `Declaration`; each operation call diff --git a/crates/ghostlight-dungeon/src/world/patch.rs b/crates/ghostlight-dungeon/src/world/patch.rs index 86e8e4b..f72eeb9 100644 --- a/crates/ghostlight-dungeon/src/world/patch.rs +++ b/crates/ghostlight-dungeon/src/world/patch.rs @@ -5718,7 +5718,7 @@ pub(crate) const PATCH_TOOLS: &[PatchTool] = &[ }, PatchTool { name: "create_commitment", - description: "Author a promise: a routine with a period, an obligation to another, or a personal goal.", + description: "Author a promise. Exactly one of the three shapes: kind routine carries a period and no counterparty; kind obligation names a counterparty and carries no period; kind goal names no counterparty and carries no period. A period on an obligation or goal, or a routine without one, is refused.", fields: &[ field("subject", PatchFieldKind::Reference("subject")), field("counterparty", PatchFieldKind::OptionalReference("subject")), @@ -6330,7 +6330,7 @@ fn composite_example(shape: CompositeShape) -> Value { /// rather than a hand-written third spelling of the same vocabulary. #[cfg(test)] fn schema_derived_example(schema: &Value) -> Value { - if let Some(alternatives) = schema.get("oneOf").and_then(Value::as_array) { + if let Some(alternatives) = schema.get("anyOf").and_then(Value::as_array) { return schema_derived_example(alternatives.first().unwrap_or(&Value::Null)); } if let Some(constant) = schema.get("const") { @@ -6367,6 +6367,14 @@ fn schema_derived_example(schema: &Value) -> Value { mod catalog_tests { use super::*; + #[test] + fn every_patch_tool_schema_is_strict() { + for tool in patch_tools() { + let schema: Value = serde_json::from_str(&tool.parameters_json).unwrap(); + super::super::tool_schema::assert_strict(&schema, &tool.name); + } + } + /// One arguments object per entry, one example value per field, with the /// entry's serde tag and its fixed pairs injected exactly as the evaluator /// injects them. @@ -6724,12 +6732,12 @@ mod catalog_tests { // instance built from the emitted schema must decode, for every branch of // every sum the schema offers, not only the one branch the example picks. - /// One instance of `schema`, taking `branch` at the top-level `oneOf` and + /// One instance of `schema`, taking `branch` at the top-level `anyOf` and /// the first alternative everywhere below it. Nothing here reads the const /// list: the schema is the only input, which is what makes the decode a /// statement about the schema. fn instance_of(schema: &Value, branch: usize) -> Value { - if let Some(alternatives) = schema.get("oneOf").and_then(Value::as_array) { + if let Some(alternatives) = schema.get("anyOf").and_then(Value::as_array) { let index = branch.min(alternatives.len().saturating_sub(1)); return instance_of(&alternatives[index], 0); } @@ -6765,16 +6773,16 @@ mod catalog_tests { fn branch_count(schema: &Value) -> usize { schema - .get("oneOf") + .get("anyOf") .and_then(Value::as_array) .map_or(1, Vec::len) } - /// A structural reader of exactly the shapes `tool_schema` emits: `oneOf`, + /// A structural reader of exactly the shapes `tool_schema` emits: `anyOf`, /// `const`, `enum`, closed objects with every property required, arrays, /// bounded integers, strings, booleans, null. fn admits(schema: &Value, value: &Value) -> bool { - if let Some(alternatives) = schema.get("oneOf").and_then(Value::as_array) { + if let Some(alternatives) = schema.get("anyOf").and_then(Value::as_array) { return alternatives .iter() .any(|alternative| admits(alternative, value)); diff --git a/crates/ghostlight-dungeon/src/world/tool_schema.rs b/crates/ghostlight-dungeon/src/world/tool_schema.rs index 074d4d0..59cb657 100644 --- a/crates/ghostlight-dungeon/src/world/tool_schema.rs +++ b/crates/ghostlight-dungeon/src/world/tool_schema.rs @@ -57,16 +57,16 @@ pub(super) fn variant(tag: &str, variants: Vec<(&str, Vec<(String, Value)>)>) -> let branches: Vec = variants .into_iter() .map(|(name, content)| { - let mut properties = vec![(tag.to_owned(), json!({"const": name}))]; + let mut properties = vec![(tag.to_owned(), json!({"type": "string", "const": name}))]; properties.extend(content); object(properties) }) .collect(); - json!({ "oneOf": branches }) + json!({ "anyOf": branches }) } pub(super) fn nullable(inner: Value) -> Value { - json!({ "oneOf": [inner, {"type": "null"}] }) + json!({ "anyOf": [inner, {"type": "null"}] }) } pub(super) fn list(inner: Value) -> Value { @@ -104,14 +104,14 @@ pub(super) fn variant_content( let branches: Vec = variants .into_iter() .map(|(name, payload)| { - let mut properties = vec![(tag.to_owned(), json!({"const": name}))]; + let mut properties = vec![(tag.to_owned(), json!({"type": "string", "const": name}))]; if let Some(inner) = payload { properties.push((content.to_owned(), inner)); } object(properties) }) .collect(); - json!({ "oneOf": branches }) + json!({ "anyOf": branches }) } /// An externally tagged sum: a bare string for a unit variant, or a @@ -120,9 +120,68 @@ pub(super) fn external_variant(variants: Vec<(&str, Option)>) -> Value { let branches: Vec = variants .into_iter() .map(|(name, payload)| match payload { - None => json!({"const": name}), + None => json!({"type": "string", "const": name}), Some(inner) => object(vec![(name.to_owned(), inner)]), }) .collect(); - json!({ "oneOf": branches }) + json!({ "anyOf": branches }) +} + +/// The provider's strict function-schema rules, enforced offline so the +/// catalog cannot be refused on the road one keyword at a time: every +/// node names a `type` or is an `anyOf` of nodes that do; every object is +/// closed and lists every property as required; `oneOf`, `allOf`, and +/// `not` never appear. The first live seeded run failed on exactly these. +#[cfg(test)] +pub(super) fn assert_strict(schema: &Value, at: &str) { + for forbidden in ["oneOf", "allOf", "not"] { + assert!( + schema.get(forbidden).is_none(), + "{at}: `{forbidden}` is not permitted in a strict schema" + ); + } + if let Some(branches) = schema.get("anyOf").and_then(Value::as_array) { + assert!(!branches.is_empty(), "{at}: empty anyOf"); + for (index, branch) in branches.iter().enumerate() { + assert_strict(branch, &format!("{at}/anyOf/{index}")); + } + return; + } + let kind = schema + .get("type") + .and_then(Value::as_str) + .unwrap_or_else(|| panic!("{at}: schema must have a `type` key: {schema}")); + match kind { + "object" => { + assert_eq!( + schema.get("additionalProperties"), + Some(&Value::Bool(false)), + "{at}: object must be closed" + ); + let properties = schema + .get("properties") + .and_then(Value::as_object) + .unwrap_or_else(|| panic!("{at}: object without properties")); + let mut names: Vec<&str> = properties.keys().map(String::as_str).collect(); + names.sort_unstable(); + let mut required: Vec<&str> = schema + .get("required") + .and_then(Value::as_array) + .map(|list| list.iter().filter_map(Value::as_str).collect()) + .unwrap_or_default(); + required.sort_unstable(); + assert_eq!(names, required, "{at}: every property must be required"); + for (name, property) in properties { + assert_strict(property, &format!("{at}/{name}")); + } + } + "array" => { + let items = schema + .get("items") + .unwrap_or_else(|| panic!("{at}: array without items")); + assert_strict(items, &format!("{at}/items")); + } + "string" | "integer" | "number" | "boolean" | "null" => {} + other => panic!("{at}: unexpected type {other}"), + } } diff --git a/docs/architecture/ghostlight-world-ontology.md b/docs/architecture/ghostlight-world-ontology.md index 398ca84..eb6d148 100644 --- a/docs/architecture/ghostlight-world-ontology.md +++ b/docs/architecture/ghostlight-world-ontology.md @@ -253,6 +253,18 @@ Delvehold owns the economy (`delvehold-forced-ontology-integration.md`). Step 6 of the plan is complete. The next seam is the seeded live run against a real Vault and a real connector, then the outbound consumer response. +Rules the road imposed, carried in the tree: the provider request identity is +content-addressed over command, purpose, round, instructions, and input, so a +resumed round replays and a repair round under the same command names a new +request; every tool schema of both authoring lanes satisfies the provider's +strict function-schema rules (`anyOf`, typed tags, closed objects with every +property required) and a test walks them offline; the seed lane has its own +round budget, asks for several tool calls per response, and submits the draft +as authored when its budget ends; the seed brief prints every canonical id +beside its label and states that a subject counts only if it stands at the +row's root or inside it; the connector's expiry skew bounds an invocation's +validity and a separate response timeout bounds a generation. + ## The failure this vocabulary is designed against Run 115 terminated because `inst:kharad-road-keepers` referenced diff --git a/notes/local-live-smoke.md b/notes/local-live-smoke.md index 5c71906..b1f3f96 100644 --- a/notes/local-live-smoke.md +++ b/notes/local-live-smoke.md @@ -49,7 +49,7 @@ export GHOSTLIGHT_CONTROLLER_CONNECTOR=127.0.0.1:4103 \ GHOSTLIGHT_CONTROLLER_CREDENTIAL='F:\Projects\Ghostlight-smoke\connector\ghostlight.key' \ GHOSTLIGHT_ACCEPTANCE_RUNTIME_ID=ghostlight-smoke \ GHOSTLIGHT_CONTROLLER_PROJECTOR_MODEL=gpt-5.6-luna \ - GHOSTLIGHT_CONTROLLER_PERSONA_MODEL=gpt-5.6-sol \ + GHOSTLIGHT_CONTROLLER_PERSONA_MODEL=gpt-5.6-terra \ GHOSTLIGHT_CONTROLLER_INTERPRETER_MODEL=gpt-5.6-terra \ GHOSTLIGHT_CONTROLLER_OPERATIONAL_MODEL=gpt-5.6-terra \ GHOSTLIGHT_CONTROLLER_ELABORATOR_MODEL=gpt-5.6-terra \ @@ -98,7 +98,44 @@ The older ignored test `real_codex_connector_cognition_modes_commit_speech` in `world/controllers.rs` predates pass 6 and declares its subjects unplaced, so it fails at `NoAudience` before reaching the provider; retire or place it. -## Seeded run +## Seeded run, 2026-09-05 -Not yet run. The harness now seeds a created world from a real Vault before -ticking it; the numbers land here once that road run happens. +Kalsa `Public` scope, root Low Sere, target six persons, brief "A dry basin +town that owes its water to the gate above it." + +| Stage | Wall time | Result | +|---|---|---| +| Seed session 1 | 39 s | one round, committed: six persons in Low Sere, all qualified, deficit 6 → 0; session 2 skipped, no shortfall left | +| Activate | | nine subjects, nine opportunities, six boundaries for the elaborator | +| Tick 1 | 95 s | 8 singleton cells, revision 3 → 7, Bren Ash: "I'm here." | +| Tick 2 | 95 s | 8 singleton cells, revision 7 → 11, Mara Dene: "Bren?" | +| Tick 3 | 123 s | 8 singleton cells, revision 11 → 15, Tovin Rusk: "Bren?", the Persona asking for a beginning | + +Twelve runs were needed to get here. Every failure was on the road, not in +the kernel, and each became a rule the tree now carries: + +- The copied Codex credential diverged from the live session and its refresh + token was invalidated; the connector's Codex home is now the operator's + real `~/.codex`, one credential family. +- Strict function schemas refuse `oneOf` and a `const` without a `type`; the + emitter uses `anyOf` and types every tag, and a test walks every tool of + both authoring lanes against the strict rules offline. +- `gpt-5.6-sol` is not available to a ChatGPT account; the Persona runs on + `gpt-5.6-terra` here. +- A seed generation exceeded the five-minute socket read; the connector's + expiry skew stays at five minutes while the response read timeout is + fifteen. +- The model referenced existing things by label; the brief prints every + canonical id beside its label. +- One tool call per response spent the six-round budget; the seed lane has + its own budget of 24, requests parallel tool calls, and submits the draft + as authored when the budget ends instead of discarding it. +- A repair round re-used the first attempt's provider request id and the + connector refused it as a replay conflict; request ids are content-addressed. +- Obligations carried a period; the tool description states the commitment + shape rule the resolver enforces. +- The first landed seed put all six people in the commons; the brief states + that a subject must stand at the row's root or inside it to count. + +The harness fails when no seed patch lands or nobody speaks, so a run that +reaches the provider and gets nothing back is a failed run. diff --git a/state/evidence.jsonl b/state/evidence.jsonl index 604e837..3f75dcc 100644 --- a/state/evidence.jsonl +++ b/state/evidence.jsonl @@ -38,4 +38,5 @@ {"note": "Codex CLI fan-out that must commit cannot run in a linked git worktree. A linked worktree's .git is a file pointing into the parent repo's .git/worktrees/, which is outside the Codex sandbox's writable roots, so every git commit fails with index.lock Permission denied; the default sandbox also blocks outbound push. All four world workers died on this on 2026-09-04. Fix: full clones at the same paths (F:/Projects/Ghostlight-worlds/, F:/Projects/-worktrees/ghostlight-worlds; .git is a directory despite the directory name) and launch with -c sandbox_workspace_write.network_access=true. Uncommitted worker output was banked by hand to codex/world- and codex/ghostlight-worlds before the worktrees were removed. Rule for any future Codex fan-out that writes: give each worker a clone whose entire .git lives under its own writable root, and grant network if it must push.", "status": "ok", "ts": "2026-09-04T14:18:47+00:00", "type": "verification"} {"note": "Supersedes the 2026-09-04T14:18 clone-plus-network record, which was necessary but not sufficient. The Codex workspace-write sandbox keeps .git read-only even when the whole clone sits under the writable root, so a Codex worker can never commit or push regardless of clone layout or network grant. Rule for any Codex fan-out that must produce committed work: the worker writes files only; a supervisor outside the sandbox commits and pushes the clone after the worker exits. The world elaborator scheduler (C:/Users/Meta/.claude/worlds/Invoke-Elaborators.ps1) does this per slot to slot///<stamp> branches in both the Ghostlight world clone and the lore clone, recording completions in logs/elab-done.csv; integration into codex/world-<world> and codex/ghostlight-worlds is a separate deliberate pass. First banked fixture: Delvehold cistern-house-nine-breaker-test, codex/world-delvehold 9374fd0.", "status": "ok", "ts": "2026-09-04T15:04:24+00:00", "type": "verification"} {"note": "Plan step 6, the ontology widening, is complete: ten passes landed on codex/ghostlight-dungeon-mvp between 2026-09-04 and 2026-09-05, each as a Hands cut in an isolation worktree, a Soul falsification in the same tree, and a fast-forward integration. Pass tips: 1 typed ID namespaces and closed patch resolution 5e53beb; 2 Position/Route/containment and scope-digest binding e99af63; 3 Custody/Dependency/conservation d2805fe; 4 world-authored affordance catalog with kernel-entropy bands 0f21a49; 5 Authority/Selection/Redress dbe176d; 6 Knowledge/Channel/Fact standing cb6a126; 7 clock, Commitment, Pressure, derived CausalBoundary and the structural answer rule 1852ddd; 8 confined elaborator lane and derived tool catalog 3ed3868; 9 budgeted connected cover with tick-driven fairness ceil(N/R), R = cells minus urgency slots, verified 22 ticks at the 2,400/240 profile 8aebfb6; 10 confined external consumer ingress over POST /cultnet/world-patch a1fd645. The kernel now holds 12 decision-constraining component kinds over 27 named operations under one WorldPatch, one reducer, one CAS commit, one decode bound for both authoring lanes, and three confined SystemCapability arms (Clock, Elaborator, Consumer); the action vocabulary is data in the seed and the kernel never learns a genre. The eleven plan invariants hold structurally at the end of the series per Soul: one deterministic reducer and atomic commit; kernel-derived authority; one controller per scope with no fallback or double action; total interpretation with exact gaps; deterministic structural rejection without a model verifier; scoped knowledge until explicit communication; external-consumer sovereignty; sparse causal sufficiency with counts as evidence only; restart reconstructs the exact world; IDs allocated only inside an admitted reduction; opportunities bound to a scope digest rather than a revision. The pairing invariant is re-decided at three gates by doctrine, not by a repair loop. Test surface grew from 43 world / 83 crate at the series start to 313 world / 357 crate source functions at a1fd645 (focused world:: run 312 / 352). Two design decisions remain with the operator and are recorded nowhere else durable: whether a refused coupled constituent may re-submit once inside the same tick, to be decided with the submitted-versus-committed number in hand; and the authority for an owner-only Eve world.run_tick command. The next seam after the series is the outbound consumer response batch and a non-loopback CultMesh lease.", "status": "ok", "ts": "2026-09-05T02:13:22+00:00", "type": "implementation"} -{"ts": "2026-09-05T13:42:18+00:00", "type": "verification", "status": "ok", "note": "First local live smoke of the rebuilt kernel (2026-09-05): production tick driver, cover, Persona membrane, operational lane, clock, and elaboration sweep ran three ticks against a real CodexConnector (head daemon, ChatGPT auth) on a genesis world; revision 2->11, two singleton cells per tick, Persona spoke each tick, elaboration clean (nothing derived to answer). Wall time 40-70 s per tick. The road works; prose is thin because genesis is three subjects in one room with one affordance, which is the seed-producer gap. Runbook: notes/local-live-smoke.md. Stale: the pre-pass-6 ignored acceptance test in controllers.rs fails at NoAudience."} +{"note": "First local live smoke of the rebuilt kernel (2026-09-05): production tick driver, cover, Persona membrane, operational lane, clock, and elaboration sweep ran three ticks against a real CodexConnector (head daemon, ChatGPT auth) on a genesis world; revision 2->11, two singleton cells per tick, Persona spoke each tick, elaboration clean (nothing derived to answer). Wall time 40-70 s per tick. The road works; prose is thin because genesis is three subjects in one room with one affordance, which is the seed-producer gap. Runbook: notes/local-live-smoke.md. Stale: the pre-pass-6 ignored acceptance test in controllers.rs fails at NoAudience.", "status": "ok", "ts": "2026-09-05T13:42:18+00:00", "type": "verification"} +{"ts": "2026-09-05T17:36:41+00:00", "type": "verification", "status": "ok", "note": "Seeded live smoke passed (2026-09-05): from the Kalsa Public vault, one seed session authored six qualified persons into Low Sere in one round (39 s), deficit 6->0; the world activated with nine subjects and six boundaries; three ticks of eight singleton cells each (95-123 s) with the seeded people speaking to each other by name. Twelve runs; every failure was on the road and each became a rule: one credential family (real codex home), strict schemas (anyOf, typed tags, offline totality test), a supported Persona model, expiry skew vs response timeout, ids beside labels in the brief, seed budget 24 with parallel calls and budget-end submit, content-addressed provider request ids, the commitment shape rule in the tool description, and the placement rule. The harness fails on an empty seed or a silent world."} diff --git a/state/ghostlight-state.cultcache.jsonl b/state/ghostlight-state.cultcache.jsonl index 10623c9..7753040 100644 --- a/state/ghostlight-state.cultcache.jsonl +++ b/state/ghostlight-state.cultcache.jsonl @@ -40,3 +40,4 @@ {"key": "2026-09-04T150424Z0000-0038-a237611b3305", "payload": "eyJub3RlIjogIlN1cGVyc2VkZXMgdGhlIDIwMjYtMDktMDRUMTQ6MTggY2xvbmUtcGx1cy1uZXR3b3JrIHJlY29yZCwgd2hpY2ggd2FzIG5lY2Vzc2FyeSBidXQgbm90IHN1ZmZpY2llbnQuIFRoZSBDb2RleCB3b3Jrc3BhY2Utd3JpdGUgc2FuZGJveCBrZWVwcyAuZ2l0IHJlYWQtb25seSBldmVuIHdoZW4gdGhlIHdob2xlIGNsb25lIHNpdHMgdW5kZXIgdGhlIHdyaXRhYmxlIHJvb3QsIHNvIGEgQ29kZXggd29ya2VyIGNhbiBuZXZlciBjb21taXQgb3IgcHVzaCByZWdhcmRsZXNzIG9mIGNsb25lIGxheW91dCBvciBuZXR3b3JrIGdyYW50LiBSdWxlIGZvciBhbnkgQ29kZXggZmFuLW91dCB0aGF0IG11c3QgcHJvZHVjZSBjb21taXR0ZWQgd29yazogdGhlIHdvcmtlciB3cml0ZXMgZmlsZXMgb25seTsgYSBzdXBlcnZpc29yIG91dHNpZGUgdGhlIHNhbmRib3ggY29tbWl0cyBhbmQgcHVzaGVzIHRoZSBjbG9uZSBhZnRlciB0aGUgd29ya2VyIGV4aXRzLiBUaGUgd29ybGQgZWxhYm9yYXRvciBzY2hlZHVsZXIgKEM6L1VzZXJzL01ldGEvLmNsYXVkZS93b3JsZHMvSW52b2tlLUVsYWJvcmF0b3JzLnBzMSkgZG9lcyB0aGlzIHBlciBzbG90IHRvIHNsb3QvPHdvcmxkPi88dGl0bGU+LzxzdGFtcD4gYnJhbmNoZXMgaW4gYm90aCB0aGUgR2hvc3RsaWdodCB3b3JsZCBjbG9uZSBhbmQgdGhlIGxvcmUgY2xvbmUsIHJlY29yZGluZyBjb21wbGV0aW9ucyBpbiBsb2dzL2VsYWItZG9uZS5jc3Y7IGludGVncmF0aW9uIGludG8gY29kZXgvd29ybGQtPHdvcmxkPiBhbmQgY29kZXgvZ2hvc3RsaWdodC13b3JsZHMgaXMgYSBzZXBhcmF0ZSBkZWxpYmVyYXRlIHBhc3MuIEZpcnN0IGJhbmtlZCBmaXh0dXJlOiBEZWx2ZWhvbGQgY2lzdGVybi1ob3VzZS1uaW5lLWJyZWFrZXItdGVzdCwgY29kZXgvd29ybGQtZGVsdmVob2xkIDkzNzRmZDAuIiwgInN0YXR1cyI6ICJvayIsICJ0cyI6ICIyMDI2LTA5LTA0VDE1OjA0OjI0KzAwOjAwIiwgInR5cGUiOiAidmVyaWZpY2F0aW9uIn0=", "stored_at": "2026-09-04T15:04:24.134358+00:00", "type": "ghostlight.evidence_record.v0"} {"key": "2026-09-05T021322Z0000-0039-8fe6fe49acb8", "payload": "eyJub3RlIjogIlBsYW4gc3RlcCA2LCB0aGUgb250b2xvZ3kgd2lkZW5pbmcsIGlzIGNvbXBsZXRlOiB0ZW4gcGFzc2VzIGxhbmRlZCBvbiBjb2RleC9naG9zdGxpZ2h0LWR1bmdlb24tbXZwIGJldHdlZW4gMjAyNi0wOS0wNCBhbmQgMjAyNi0wOS0wNSwgZWFjaCBhcyBhIEhhbmRzIGN1dCBpbiBhbiBpc29sYXRpb24gd29ya3RyZWUsIGEgU291bCBmYWxzaWZpY2F0aW9uIGluIHRoZSBzYW1lIHRyZWUsIGFuZCBhIGZhc3QtZm9yd2FyZCBpbnRlZ3JhdGlvbi4gUGFzcyB0aXBzOiAxIHR5cGVkIElEIG5hbWVzcGFjZXMgYW5kIGNsb3NlZCBwYXRjaCByZXNvbHV0aW9uIDVlNTNiZWI7IDIgUG9zaXRpb24vUm91dGUvY29udGFp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JlZSBnYXRlcyBieSBkb2N0cmluZSwgbm90IGJ5IGEgcmVwYWlyIGxvb3AuIFRlc3Qgc3VyZmFjZSBncmV3IGZyb20gNDMgd29ybGQgLyA4MyBjcmF0ZSBhdCB0aGUgc2VyaWVzIHN0YXJ0IHRvIDMxMyB3b3JsZCAvIDM1NyBjcmF0ZSBzb3VyY2UgZnVuY3Rpb25zIGF0IGExZmQ2NDUgKGZvY3VzZWQgd29ybGQ6OiBydW4gMzEyIC8gMzUyKS4gVHdvIGRlc2lnbiBkZWNpc2lvbnMgcmVtYWluIHdpdGggdGhlIG9wZXJhdG9yIGFuZCBhcmUgcmVjb3JkZWQgbm93aGVyZSBlbHNlIGR1cmFibGU6IHdoZXRoZXIgYSByZWZ1c2VkIGNvdXBsZWQgY29uc3RpdHVlbnQgbWF5IHJlLXN1Ym1pdCBvbmNlIGluc2lkZSB0aGUgc2FtZSB0aWNrLCB0byBiZSBkZWNpZGVkIHdpdGggdGhlIHN1Ym1pdHRlZC12ZXJzdXMtY29tbWl0dGVkIG51bWJlciBpbiBoYW5kOyBhbmQgdGhlIGF1dGhvcml0eSBmb3IgYW4gb3duZXItb25seSBFdmUgd29ybGQucnVuX3RpY2sgY29tbWFuZC4gVGhlIG5leHQgc2VhbSBhZnRlciB0aGUgc2VyaWVzIGlzIHRoZSBvdXRib3VuZCBjb25zdW1lciByZXNwb25zZSBiYXRjaCBhbmQgYSBub24tbG9vcGJhY2sgQ3VsdE1lc2ggbGVhc2UuIiwgInN0YXR1cyI6ICJvayIsICJ0cyI6ICIyMDI2LTA5LTA1VDAyOjEzOjIyKzAwOjAwIiwgInR5cGUiOiAiaW1wbGVtZW50YXRpb24ifQ==", "stored_at": "2026-09-05T02:13:22.785718+00:00", "type": "ghostlight.evidence_record.v0"} {"key": "2026-09-05T134218Z0000-0040-c341057d3d7c", "payload": "eyJub3RlIjogIkZpcnN0IGxvY2FsIGxpdmUgc21va2Ugb2YgdGhlIHJlYnVpbHQga2VybmVsICgyMDI2LTA5LTA1KTogcHJvZHVjdGlvbiB0aWNrIGRyaXZlciwgY292ZXIsIFBlcnNvbmEgbWVtYnJhbmUsIG9wZXJhdGlvbmFsIGxhbmUsIGNsb2NrLCBhbmQgZWxhYm9yYXRpb24gc3dlZXAgcmFuIHRocmVlIHRpY2tzIGFnYWluc3QgYSByZWFsIENvZGV4Q29ubmVjdG9yIChoZWFkIGRhZW1vbiwgQ2hhdEdQVCBhdXRoKSBvbiBhIGdlbmVzaXMgd29ybGQ7IHJldmlzaW9uIDItPjExLCB0d28gc2luZ2xldG9uIGNlbGxzIHBlciB0aWNrLCBQZXJzb25hIHNwb2tlIGVhY2ggdGljaywgZWxhYm9yYXRpb24gY2xlYW4gKG5vdGhpbmcgZGVyaXZlZCB0byBhbnN3ZXIpLiBXYWxsIHRpbWUgNDAtNzAgcyBwZXIgdGljay4gVGhlIHJvYWQgd29ya3M7IHByb3NlIGlzIHRoaW4gYmVjYXVzZSBnZW5lc2lzIGlzIHRocmVlIHN1YmplY3RzIGluIG9uZSByb29tIHdpdGggb25lIGFmZm9yZGFuY2UsIHdoaWNoIGlzIHRoZSBzZWVkLXByb2R1Y2VyIGdhcC4gUnVuYm9vazogbm90ZXMvbG9jYWwtbGl2ZS1zbW9rZS5tZC4gU3RhbGU6IHRoZSBwcmUtcGFzcy02IGlnbm9yZWQgYWNjZXB0YW5jZSB0ZXN0IGluIGNvbnRyb2xsZXJzLnJzIGZhaWxzIGF0IE5vQXVkaWVuY2UuIiwgInN0YXR1cyI6ICJvayIsICJ0cyI6ICIyMDI2LTA5LTA1VDEzOjQyOjE4KzAwOjAwIiwgInR5cGUiOiAidmVyaWZpY2F0aW9uIn0=", "stored_at": "2026-09-05T13:42:18.383052+00:00", "type": "ghostlight.evidence_record.v0"} +{"key": "2026-09-05T173641Z0000-0041-d6b53753f89a", "payload": "eyJub3RlIjogIlNlZWRlZCBsaXZlIHNtb2tlIHBhc3NlZCAoMjAyNi0wOS0wNSk6IGZyb20gdGhlIEthbH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