M2 audit: excise the Computer Hub stack — Kigi's last remote-cloud surface
Removed root-and-branch for the zero-egress guarantee (the hub was xAI's remote-workspace/cloud-sandbox service): - Crates deleted: kigi-computer-hub-core, kigi-computer-hub-sdk, kigi-computer-hub-mcp-adapter, kigi-workspace-client (hub-proxied workspace RPC client), and kigi-tracing (its sole network path was the OTLP gRPC exporter; zero consumers remained). kigi-tracing-macros (purely local) stays. - kigi-workspace: every hub surface deleted — hub server/channel/auth, HITL-over-hub permissions, donation/metrics pumps, file upload RPCs, hub tool-snapshot merge (resolve pipeline is MCP-only now), WorkspaceOps::Proxy. Local worktrees, sessions, leader IPC, MCP, and the ACP permission prompt path are untouched; LocalRegistry re-homed into kigi-tool-runtime on the existing ToolDyn types so in-process tool dispatch is unchanged. - kigi-shell: leader workspace-exposure control surface (incl. the wss://computer-hub... URL), [hub] config, ObservabilityBridge, hub WebSocket proxy, dead OTLP config knobs. ClientMode::Headless (never constructed) removed. - kigi-tui/bin: hidden `kigi workspace` command removed (`kigi worktree` stays). - Renames: --xai-api-base-url → --api-base-url / KIGI_API_BASE_URL / [endpoints] api_base_url (serde alias keeps old configs working; the flag feeds BYOK/custom-endpoint routing, not main inference); grok_version → kigi_version in inspect/models-cache/trace metadata (old caches self-heal via version-mismatch refetch). - Dependency tree: dropped fastrace*, opentelemetry-otlp/http/proto, tokio-tungstenite from the workspace; fixed the 4 real useless_format violations the fastrace lint allowance was masking and removed the allowance. - marketplaceAllowlist kept: it gates the LOCAL plugin-marketplace feature, not an xAI service. Known §9 leftover (deliberate, for the M3 sweep): the BYOK default base URL string. Gates: workspace check/clippy 0/0, fmt, deny ok; suites green (workspace 1042, shell 4918, tui 6634, tools 2608, tool-runtime 47, mcp 154).
This commit is contained in:
@@ -256,7 +256,6 @@ async fn persist_ack_waits_for_disk_flush_before_success() {
|
||||
plugin_registry: std::cell::RefCell::new(None),
|
||||
plugin_registry_handle: None,
|
||||
events: crate::session::events::EventTracker::new(std::path::Path::new("/tmp")),
|
||||
observability_bridge: noop_observability_bridge(),
|
||||
current_turn_number: std::cell::Cell::new(0),
|
||||
last_recap_main_turn: std::cell::Cell::new(0),
|
||||
recap_in_flight: std::cell::Cell::new(false),
|
||||
@@ -695,7 +694,6 @@ async fn first_turn_memory_injection_disabled_does_not_persist_to_chat_history()
|
||||
plugin_registry: std::cell::RefCell::new(None),
|
||||
plugin_registry_handle: None,
|
||||
events: crate::session::events::EventTracker::new(std::path::Path::new("/tmp")),
|
||||
observability_bridge: noop_observability_bridge(),
|
||||
current_turn_number: std::cell::Cell::new(0),
|
||||
last_recap_main_turn: std::cell::Cell::new(0),
|
||||
recap_in_flight: std::cell::Cell::new(false),
|
||||
@@ -943,7 +941,6 @@ async fn cancel_running_task_teardown_clears_running_and_pending_work() {
|
||||
plugin_registry: std::cell::RefCell::new(None),
|
||||
plugin_registry_handle: None,
|
||||
events: crate::session::events::EventTracker::new(std::path::Path::new("/tmp")),
|
||||
observability_bridge: noop_observability_bridge(),
|
||||
current_turn_number: std::cell::Cell::new(0),
|
||||
last_recap_main_turn: std::cell::Cell::new(0),
|
||||
recap_in_flight: std::cell::Cell::new(false),
|
||||
@@ -1924,7 +1921,6 @@ async fn cancel_propagates_to_sampler_handle_so_no_further_emission() {
|
||||
plugin_registry: std::cell::RefCell::new(None),
|
||||
plugin_registry_handle: None,
|
||||
events: crate::session::events::EventTracker::new(std::path::Path::new("/tmp")),
|
||||
observability_bridge: noop_observability_bridge(),
|
||||
current_turn_number: std::cell::Cell::new(0),
|
||||
last_recap_main_turn: std::cell::Cell::new(0),
|
||||
recap_in_flight: std::cell::Cell::new(false),
|
||||
|
||||
-1
@@ -62,7 +62,6 @@ async fn tool_bridge_routes_writes_through_injected_fs() {
|
||||
video_gen_config: Default::default(),
|
||||
app_builder_deployer_config: Default::default(),
|
||||
api_key_provider: None,
|
||||
auth_provider: None,
|
||||
attribution_callback: None,
|
||||
system_reminder_tag: kigi_tools::reminders::DEFAULT_REMINDER_TAG,
|
||||
};
|
||||
|
||||
@@ -285,7 +285,6 @@ async fn test_e2e_idle_resume_refreshes_model_metadata() {
|
||||
plugin_registry: std::cell::RefCell::new(None),
|
||||
plugin_registry_handle: None,
|
||||
events: crate::session::events::EventTracker::new(std::path::Path::new("/tmp")),
|
||||
observability_bridge: noop_observability_bridge(),
|
||||
current_turn_number: std::cell::Cell::new(0),
|
||||
last_recap_main_turn: std::cell::Cell::new(0),
|
||||
recap_in_flight: std::cell::Cell::new(false),
|
||||
|
||||
-3
@@ -214,7 +214,6 @@ async fn create_test_actor(
|
||||
plugin_registry: std::cell::RefCell::new(None),
|
||||
plugin_registry_handle: None,
|
||||
events: crate::session::events::EventTracker::new(std::path::Path::new("/tmp")),
|
||||
observability_bridge: noop_observability_bridge(),
|
||||
current_turn_number: std::cell::Cell::new(0),
|
||||
last_recap_main_turn: std::cell::Cell::new(0),
|
||||
recap_in_flight: std::cell::Cell::new(false),
|
||||
@@ -655,7 +654,6 @@ async fn create_test_actor_with_memory(
|
||||
plugin_registry: std::cell::RefCell::new(None),
|
||||
plugin_registry_handle: None,
|
||||
events: crate::session::events::EventTracker::new(std::path::Path::new("/tmp")),
|
||||
observability_bridge: noop_observability_bridge(),
|
||||
current_turn_number: std::cell::Cell::new(0),
|
||||
last_recap_main_turn: std::cell::Cell::new(0),
|
||||
recap_in_flight: std::cell::Cell::new(false),
|
||||
@@ -1410,7 +1408,6 @@ async fn test_e2e_idle_resume_refreshes_model_metadata() {
|
||||
plugin_registry: std::cell::RefCell::new(None),
|
||||
plugin_registry_handle: None,
|
||||
events: crate::session::events::EventTracker::new(std::path::Path::new("/tmp")),
|
||||
observability_bridge: noop_observability_bridge(),
|
||||
current_turn_number: std::cell::Cell::new(0),
|
||||
last_recap_main_turn: std::cell::Cell::new(0),
|
||||
recap_in_flight: std::cell::Cell::new(false),
|
||||
|
||||
@@ -276,7 +276,6 @@ async fn create_test_actor_with_memory(
|
||||
plugin_registry: std::cell::RefCell::new(None),
|
||||
plugin_registry_handle: None,
|
||||
events: crate::session::events::EventTracker::new(std::path::Path::new("/tmp")),
|
||||
observability_bridge: noop_observability_bridge(),
|
||||
current_turn_number: std::cell::Cell::new(0),
|
||||
last_recap_main_turn: std::cell::Cell::new(0),
|
||||
recap_in_flight: std::cell::Cell::new(false),
|
||||
|
||||
@@ -33,6 +33,7 @@ fn install_real_permissions(actor: &mut SessionActor) {
|
||||
vec![],
|
||||
false,
|
||||
None,
|
||||
true,
|
||||
);
|
||||
actor.permissions = handle;
|
||||
}
|
||||
|
||||
-1
@@ -222,7 +222,6 @@ pub(super) async fn make_replay_send_update_fixture() -> ReplaySendUpdateFixture
|
||||
plugin_registry: std::cell::RefCell::new(None),
|
||||
plugin_registry_handle: None,
|
||||
events: crate::session::events::EventTracker::new(std::path::Path::new("/tmp")),
|
||||
observability_bridge: noop_observability_bridge(),
|
||||
current_turn_number: std::cell::Cell::new(0),
|
||||
last_recap_main_turn: std::cell::Cell::new(0),
|
||||
recap_in_flight: std::cell::Cell::new(false),
|
||||
|
||||
@@ -12,12 +12,6 @@ pub(crate) const HARNESS_VERIFIES_SENTENCE: &str =
|
||||
pub(crate) const PLAN_SEED_TODOS_PHRASE: &str =
|
||||
"Seed todos from the plan's acceptance criteria via";
|
||||
#[cfg(test)]
|
||||
pub(crate) fn noop_observability_bridge() -> kigi_computer_hub_sdk::ObservabilityBridge {
|
||||
kigi_computer_hub_sdk::ObservabilityBridge::new(
|
||||
None,
|
||||
kigi_tool_protocol::SessionId::new("test").expect("valid"),
|
||||
)
|
||||
}
|
||||
#[cfg(test)]
|
||||
pub(crate) async fn test_agent_default() -> kigi_agent::Agent {
|
||||
test_agent_with_tools(vec![]).await
|
||||
@@ -99,7 +93,6 @@ async fn test_agent_from_config(
|
||||
video_gen_config: Default::default(),
|
||||
app_builder_deployer_config: Default::default(),
|
||||
api_key_provider: None,
|
||||
auth_provider: None,
|
||||
attribution_callback: None,
|
||||
system_reminder_tag: kigi_tools::reminders::DEFAULT_REMINDER_TAG,
|
||||
};
|
||||
@@ -336,7 +329,6 @@ pub(crate) async fn create_test_actor_ex(
|
||||
plugin_registry: std::cell::RefCell::new(None),
|
||||
plugin_registry_handle: None,
|
||||
events: crate::session::events::EventTracker::new(std::path::Path::new("/tmp")),
|
||||
observability_bridge: noop_observability_bridge(),
|
||||
current_turn_number: std::cell::Cell::new(0),
|
||||
last_recap_main_turn: std::cell::Cell::new(0),
|
||||
recap_in_flight: std::cell::Cell::new(false),
|
||||
|
||||
@@ -41,7 +41,6 @@ async fn web_search_errors_when_disabled() {
|
||||
video_gen_config: Default::default(),
|
||||
app_builder_deployer_config: Default::default(),
|
||||
api_key_provider: None,
|
||||
auth_provider: None,
|
||||
attribution_callback: None,
|
||||
system_reminder_tag: kigi_tools::reminders::DEFAULT_REMINDER_TAG,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user