From 22ec118d72415a973bb5bdfc18031b3150a1eb18 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Wed, 23 Sep 2026 15:13:45 +0200 Subject: [PATCH] Swap the real cognition acceptance test to the local Bonsai transport CodexConnector is not a real option for Dungeon inference (operator ruling 2026-09-23): Bonsai 2 reaches Yggdrasil over a restricted reverse SSH tunnel at loopback 127.0.0.1:18080. Rename real_codex_connector_cognition_modes_commit_speech to real_local_model_cognition_modes_commit_speech, open inference with LocalBinding instead of ConnectorBinding, and read GHOSTLIGHT_LOCAL_ENDPOINT/GHOSTLIGHT_LOCAL_MODEL_PREFIX in place of the connector endpoint and credential. Update the Idunn recipe's acceptance step and service required_environment to match (drop the connector env, add the elaborator model var the test already required but the recipe omitted), and drop the gamecult.codex.subscription-inference dependency: Dungeon no longer depends on CodexConnector for inference. Update the remaining live references to the old test name in notes/map. CodexConnector's transport code and the v1 actuator are untouched; both are separate follow-up cuts. Co-Authored-By: Claude Sonnet 5 --- crates/ghostlight/src/controllers.rs | 26 +++++++++++++------------- deployment/idunn/recipe.toml | 18 ++++++------------ notes/fresh-workspace-handoff.md | 2 +- state/map.yaml | 2 +- 4 files changed, 21 insertions(+), 27 deletions(-) diff --git a/crates/ghostlight/src/controllers.rs b/crates/ghostlight/src/controllers.rs index 0d2e68b..0f89c98 100644 --- a/crates/ghostlight/src/controllers.rs +++ b/crates/ghostlight/src/controllers.rs @@ -11,7 +11,7 @@ use super::elaboration::{ NullEvidenceSource, SeedCheckpoint, SeedRunner, valid_elaboration_progression, valid_seed_progression, }; -use super::local_inference::{LocalBinding, open_local_port}; +use super::local_inference::{DEFAULT_LOCAL_MODEL_PREFIX, LocalBinding, open_local_port}; use super::sdk_inference::{ ChildProcessLink, DEFAULT_SDK_MODEL_PREFIX, RoutedInferencePort, SdkBinding, SdkInferencePort, }; @@ -11224,14 +11224,14 @@ mod tests { } #[tokio::test] - #[ignore = "requires the Idunn-sealed production CodexConnector"] - async fn real_codex_connector_cognition_modes_commit_speech() { - let connector_endpoint: SocketAddr = std::env::var("GHOSTLIGHT_CONTROLLER_CONNECTOR") - .expect("GHOSTLIGHT_CONTROLLER_CONNECTOR is required") + #[ignore = "requires a local model server on GHOSTLIGHT_LOCAL_ENDPOINT"] + async fn real_local_model_cognition_modes_commit_speech() { + let local_endpoint: SocketAddr = std::env::var("GHOSTLIGHT_LOCAL_ENDPOINT") + .expect("GHOSTLIGHT_LOCAL_ENDPOINT is required") .parse() - .expect("GHOSTLIGHT_CONTROLLER_CONNECTOR must be a socket address"); - let connector_credential = std::env::var_os("GHOSTLIGHT_CONTROLLER_CREDENTIAL") - .expect("GHOSTLIGHT_CONTROLLER_CREDENTIAL is required"); + .expect("GHOSTLIGHT_LOCAL_ENDPOINT must be a socket address"); + let local_model_prefix = std::env::var("GHOSTLIGHT_LOCAL_MODEL_PREFIX") + .unwrap_or_else(|_| DEFAULT_LOCAL_MODEL_PREFIX.to_owned()); let runtime_id = std::env::var("GHOSTLIGHT_ACCEPTANCE_RUNTIME_ID") .expect("GHOSTLIGHT_ACCEPTANCE_RUNTIME_ID is required"); let models = ControllerModels { @@ -11394,13 +11394,13 @@ mod tests { assert!(matches!(seed_receipt, SubmitReceipt::Applied(_))); let inference = open_inference( - Some(ConnectorBinding { - endpoint: connector_endpoint, - key_path: connector_credential.into(), + None, + None, + Some(LocalBinding { + endpoint: local_endpoint, + model_prefix: local_model_prefix, caller_runtime_id: runtime_id, }), - None, - None, &models.each(), ) .unwrap(); diff --git a/deployment/idunn/recipe.toml b/deployment/idunn/recipe.toml index 5d56a68..fcca667 100644 --- a/deployment/idunn/recipe.toml +++ b/deployment/idunn/recipe.toml @@ -56,7 +56,7 @@ argv = [ "-p", "ghostlight", "--lib", - "controllers::tests::real_codex_connector_cognition_modes_commit_speech", + "controllers::tests::real_local_model_cognition_modes_commit_speech", "--", "--ignored", "--exact", @@ -64,12 +64,12 @@ argv = [ required_environment = [ "GHOSTLIGHT_ACCEPTANCE_PERSONA_PROSE_LOG", "GHOSTLIGHT_ACCEPTANCE_RUNTIME_ID", - "GHOSTLIGHT_CONTROLLER_CONNECTOR", - "GHOSTLIGHT_CONTROLLER_CREDENTIAL", + "GHOSTLIGHT_CONTROLLER_ELABORATOR_MODEL", "GHOSTLIGHT_CONTROLLER_INTERPRETER_MODEL", "GHOSTLIGHT_CONTROLLER_OPERATIONAL_MODEL", "GHOSTLIGHT_CONTROLLER_PERSONA_MODEL", "GHOSTLIGHT_CONTROLLER_PROJECTOR_MODEL", + "GHOSTLIGHT_LOCAL_ENDPOINT", ] [[artifacts]] @@ -100,8 +100,7 @@ required_environment = [ "GAMECULT_IDUNN_CANDIDATE_BIND", "GAMECULT_IDUNN_PROCESS_WRITE_LEASE", "GAMECULT_IDUNN_RUNTIME_BUNDLE", - "GHOSTLIGHT_CONTROLLER_CONNECTOR", - "GHOSTLIGHT_CONTROLLER_CREDENTIAL", + "GHOSTLIGHT_CONTROLLER_ELABORATOR_MODEL", "GHOSTLIGHT_CONTROLLER_INTERPRETER_MODEL", "GHOSTLIGHT_CONTROLLER_OPERATIONAL_MODEL", "GHOSTLIGHT_CONTROLLER_PERSONA_MODEL", @@ -110,8 +109,10 @@ required_environment = [ "GHOSTLIGHT_DISCORD_ROLE_ID", "GHOSTLIGHT_HEIMDALL_APP_SECRET_FILE", "GHOSTLIGHT_HEIMDALL_BASE_URL", + "GHOSTLIGHT_LOCAL_ENDPOINT", "GHOSTLIGHT_LOCATED_SERVICE", "GHOSTLIGHT_ODIN_RUDP", + "GHOSTLIGHT_PLAY_MODEL", "GHOSTLIGHT_PUBLIC_APP_URL", "GHOSTLIGHT_SERVICE_ID", "GHOSTLIGHT_SESSION_WRAPPING_KEY_FILE", @@ -177,13 +178,6 @@ schema = "odin.verse-topology.v1" compatibility = "v1" startup = "before-promotion" -[[dependencies]] -kind = "private" -capability = "gamecult.codex.subscription-inference" -schema = "gamecult.codex.transport_envelope.v2" -compatibility = "v2" -startup = "before-promotion" - [[dependencies]] kind = "required" capability = "heimdall.command-boundary" diff --git a/notes/fresh-workspace-handoff.md b/notes/fresh-workspace-handoff.md index 20cfcb1..fa403d3 100644 --- a/notes/fresh-workspace-handoff.md +++ b/notes/fresh-workspace-handoff.md @@ -247,7 +247,7 @@ State and commit schemas are `.consumer.v5`; world creation is Deferred by design: `PolityInCausalRange`, `IndividuationRequired`, and Verification 13 wait for relations and population slices. Stale: the pre-pass-6 ignored acceptance test -`real_codex_connector_cognition_modes_commit_speech` in +`real_local_model_cognition_modes_commit_speech` in `world/controllers.rs` fails at `NoAudience` because its subjects are unplaced; retire it or place its subjects. diff --git a/state/map.yaml b/state/map.yaml index bb1806d..355072f 100644 --- a/state/map.yaml +++ b/state/map.yaml @@ -398,7 +398,7 @@ current_status: the Yggdrasil deploy actuator (`gamecult-ops` `scripts/deploy-ghostlight-yggdrasil.sh`: connector readiness gate, key, and acceptance test - `controllers::tests::real_codex_connector_cognition_modes_commit_speech`) + `controllers::tests::real_local_model_cognition_modes_commit_speech`) and its runbook, and bind the local-model link in its place; gamecult-ops owns the actuator, runbook and link. Then, on Yggdrasil, check `/health` for `playStatus` first; the unverified leg is seeding, which needs