From d1cc1839024550e0225dee6492b529e8d0d1e379 Mon Sep 17 00:00:00 2001 From: Steven Enamakel Date: Thu, 22 Oct 2026 13:06:58 +0000 Subject: [PATCH 01/17] feat: relay host context to consequence reviews Co-authored-by: Medulla --- crates/tinycomputer-bus/README.md | 6 ++++ .../tinycomputer-bus/src/agent/agent_tests.rs | 22 +++++++++++++ crates/tinycomputer-bus/src/agent/mod.rs | 4 +-- .../tinycomputer-bus/src/agent/types/mod.rs | 2 +- .../src/agent/types/request.rs | 31 +++++++++++++++++++ .../consequence_host_tests.rs | 17 +++++++++- .../src/consequence_host/mod.rs | 6 ++++ crates/tinycomputer-bus/src/version/mod.rs | 4 +-- .../src/version/version_tests.rs | 7 +++-- .../consequence_gate_tests.rs | 14 +++++++-- .../tinybus_module/consequence_gate/mod.rs | 21 +++++++++++-- crates/tinycomputer/tests/public_api_tests.rs | 2 +- docs/crates/tinycomputer-bus/versioning.md | 14 +++++---- 13 files changed, 129 insertions(+), 21 deletions(-) diff --git a/crates/tinycomputer-bus/README.md b/crates/tinycomputer-bus/README.md index 88bf0d96f..f97a3cc78 100644 --- a/crates/tinycomputer-bus/README.md +++ b/crates/tinycomputer-bus/README.md @@ -190,3 +190,9 @@ distinguish causal re-entry from unrelated concurrent work. Event and artifact acknowledgements are bounded by the engine's operation deadline; report calls have a ten-second transport timeout. A host that does not opt in keeps the existing desktop file/session trace behavior. + +Contract 2.27 adds an opaque host context to `ContinueTask` and relays it +unchanged to `ConsequenceHost.Review`. TinyComputer does not interpret the +context or grant it authority; hosts can use it to recover trusted caller +context while reviewing an approval. Hosts that depend on this relay must +reject modules older than 2.27. diff --git a/crates/tinycomputer-bus/src/agent/agent_tests.rs b/crates/tinycomputer-bus/src/agent/agent_tests.rs index fe2e40e21..1bbbf83e4 100644 --- a/crates/tinycomputer-bus/src/agent/agent_tests.rs +++ b/crates/tinycomputer-bus/src/agent/agent_tests.rs @@ -281,18 +281,40 @@ fn waiting_and_continuing_have_forgiving_defaults() { assert_eq!(resume.id.to_string(), "t-1"); assert_eq!(resume.inputs["date of birth"], "1990-04-02"); assert_eq!(resume.approve, None); + assert_eq!(resume.host_context, None); + assert!( + serde_json::to_value(&resume) + .unwrap() + .get("host_context") + .is_none() + ); let private: ContinueTaskRequest = serde_json::from_value(json!({ "id": "t-2", + "host_context": "opaque-context", "fact_handles": { "email": {"handle": "opaque-email", "mask": "‹email›", "kind": "asked_input"} } })) .unwrap(); assert_eq!(private.fact_handles["email"].handle, "opaque-email"); + assert_eq!( + private + .host_context + .as_ref() + .map(super::HostContext::as_str), + Some("opaque-context") + ); let wire = serde_json::to_value(private).unwrap(); assert_eq!(wire["fact_handles"]["email"]["mask"], "‹email›"); assert_eq!(wire["inputs"], json!({})); + assert_eq!(wire["host_context"], "opaque-context"); +} + +#[test] +fn host_context_debug_output_hides_the_opaque_value() { + let context = super::HostContext::new("secret-capability"); + assert!(!format!("{context:?}").contains("secret-capability")); } #[test] diff --git a/crates/tinycomputer-bus/src/agent/mod.rs b/crates/tinycomputer-bus/src/agent/mod.rs index 30329d65e..ab8c2e5e2 100644 --- a/crates/tinycomputer-bus/src/agent/mod.rs +++ b/crates/tinycomputer-bus/src/agent/mod.rs @@ -52,8 +52,8 @@ mod types; pub use types::{ AgentError, AgentResponse, AwaitTaskRequest, Capabilities, ContinueTaskRequest, Example, - InputField, InputKind, LanguageModelConfiguration, LanguageModelProvider, MemberDoc, - ModelUsage, PaymentMode, PlanTaskRequest, Rescue, RescueOutcome, SecretHandle, + HostContext, InputField, InputKind, LanguageModelConfiguration, LanguageModelProvider, + MemberDoc, ModelUsage, PaymentMode, PlanTaskRequest, Rescue, RescueOutcome, SecretHandle, StartTaskRequest, StepView, SurfaceAvailability, SurfaceKind, TaskBudget, TaskConstraints, TaskId, TaskOutput, TaskPlan, TaskRef, TaskReport, TaskReportRequest, TaskStatus, TaskUsage, TaskView, diff --git a/crates/tinycomputer-bus/src/agent/types/mod.rs b/crates/tinycomputer-bus/src/agent/types/mod.rs index a3c8f70e3..bcb920f2d 100644 --- a/crates/tinycomputer-bus/src/agent/types/mod.rs +++ b/crates/tinycomputer-bus/src/agent/types/mod.rs @@ -13,7 +13,7 @@ pub use models::{LanguageModelConfiguration, LanguageModelProvider}; pub use reply::{AgentError, AgentResponse}; pub use report::{Rescue, RescueOutcome, TaskReport}; pub use request::{ - AwaitTaskRequest, ContinueTaskRequest, PaymentMode, PlanTaskRequest, SecretHandle, + AwaitTaskRequest, ContinueTaskRequest, HostContext, PaymentMode, PlanTaskRequest, SecretHandle, StartTaskRequest, SurfaceKind, TaskBudget, TaskConstraints, TaskId, TaskOutput, TaskPlan, TaskRef, TaskReportRequest, }; diff --git a/crates/tinycomputer-bus/src/agent/types/request.rs b/crates/tinycomputer-bus/src/agent/types/request.rs index 83cd9d4a8..d6e5850e8 100644 --- a/crates/tinycomputer-bus/src/agent/types/request.rs +++ b/crates/tinycomputer-bus/src/agent/types/request.rs @@ -120,6 +120,33 @@ impl std::fmt::Debug for SecretHandle { } } +/// Opaque, host-issued context carried from a task continuation to a +/// `ConsequenceHost` review. The module must relay it unchanged and never +/// treat it as authorization. Debug output deliberately hides the value. +#[derive(Clone, Default, PartialEq, Eq, Serialize, Deserialize)] +#[serde(transparent)] +pub struct HostContext(String); + +impl HostContext { + /// Wraps a host-issued opaque context value. + #[must_use] + pub fn new(value: impl Into) -> Self { + Self(value.into()) + } + + /// Returns the opaque value for host-side lookup. + #[must_use] + pub fn as_str(&self) -> &str { + &self.0 + } +} + +impl std::fmt::Debug for HostContext { + fn fmt(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("HostContext([opaque])") + } +} + /// What a finished task returns, beyond its raw records. /// /// The result is always a JSON object. `schema` is a JSON Schema it must @@ -251,6 +278,10 @@ pub struct ContinueTaskRequest { /// The decision on a `needs_approval` pause, or `true` to go past a /// non-payment `checkpoint`. pub approve: Option, + /// Opaque host-issued context for reviewing this continuation. The module + /// carries it to `ConsequenceHost` without interpreting or authorizing it. + #[serde(default, skip_serializing_if = "Option::is_none")] + pub host_context: Option, /// A free-text answer, for a pause that asked a question — or, for /// `needs_human`, `"done"` once the person has finished. pub answer: Option, diff --git a/crates/tinycomputer-bus/src/consequence_host/consequence_host_tests.rs b/crates/tinycomputer-bus/src/consequence_host/consequence_host_tests.rs index 7a341a290..520cb819c 100644 --- a/crates/tinycomputer-bus/src/consequence_host/consequence_host_tests.rs +++ b/crates/tinycomputer-bus/src/consequence_host/consequence_host_tests.rs @@ -15,14 +15,29 @@ fn the_interface_is_its_own_not_the_desktop_or_site_memory_one() { #[test] fn a_review_request_keeps_its_wire_form() { let request: ReviewActionRequest = serde_json::from_value(serde_json::json!({ - "task": "t1", "action": "pay now", "target": "Pay", "kind": "payment" + "task": "t1", "action": "pay now", "target": "Pay", "kind": "payment", + "host_context": "opaque-context" })) .unwrap(); assert_eq!(request.kind, ConsequenceKind::Payment); + assert_eq!( + request + .host_context + .as_ref() + .map(crate::agent::HostContext::as_str), + Some("opaque-context") + ); let json = serde_json::to_value(&request).unwrap(); assert_eq!(json["kind"], "payment"); + assert_eq!(json["host_context"], "opaque-context"); let irreversible = serde_json::to_value(ConsequenceKind::Irreversible).unwrap(); assert_eq!(irreversible, "irreversible"); + + let legacy: ReviewActionRequest = serde_json::from_value(serde_json::json!({ + "task": "t2", "action": "send", "target": "Send", "kind": "irreversible" + })) + .unwrap(); + assert_eq!(legacy.host_context, None); } #[test] diff --git a/crates/tinycomputer-bus/src/consequence_host/mod.rs b/crates/tinycomputer-bus/src/consequence_host/mod.rs index ec2491e80..46aa9a6ef 100644 --- a/crates/tinycomputer-bus/src/consequence_host/mod.rs +++ b/crates/tinycomputer-bus/src/consequence_host/mod.rs @@ -21,6 +21,8 @@ use serde::{Deserialize, Serialize}; +use crate::agent::HostContext; + /// The interface the host serves consequence review on. pub const INTERFACE: &str = "ai.tinyhumans.tinycomputer.ConsequenceHost"; @@ -58,6 +60,10 @@ pub struct ReviewActionRequest { pub target: String, /// What the module classified the action as. pub kind: ConsequenceKind, + /// Opaque host-issued context from the `ContinueTask` request. The module + /// relays this value unchanged and grants it no authority. + #[serde(default, skip_serializing_if = "Option::is_none")] + pub host_context: Option, } /// The reply to `Review`. diff --git a/crates/tinycomputer-bus/src/version/mod.rs b/crates/tinycomputer-bus/src/version/mod.rs index 841c92b62..bc21fef6a 100644 --- a/crates/tinycomputer-bus/src/version/mod.rs +++ b/crates/tinycomputer-bus/src/version/mod.rs @@ -8,7 +8,7 @@ //! release workflow bumps, which tracks the shipped artifact. /// The wire contract version this crate defines. -pub const CONTRACT_VERSION: (u32, u32) = (2, 26); +pub const CONTRACT_VERSION: (u32, u32) = (2, 27); /// Returns whether a host holding [`CONTRACT_VERSION`] can bind to a module /// reporting `module`. @@ -22,7 +22,7 @@ pub const CONTRACT_VERSION: (u32, u32) = (2, 26); /// ``` /// # use tinycomputer_bus::{is_compatible, CONTRACT_VERSION}; /// assert!(is_compatible(CONTRACT_VERSION)); -/// assert!(is_compatible((2, 26))); +/// assert!(is_compatible((2, 27))); /// assert!(!is_compatible((2, 11))); /// assert!(!is_compatible((1, 8))); /// ``` diff --git a/crates/tinycomputer-bus/src/version/version_tests.rs b/crates/tinycomputer-bus/src/version/version_tests.rs index e813ad574..529e2ab7e 100644 --- a/crates/tinycomputer-bus/src/version/version_tests.rs +++ b/crates/tinycomputer-bus/src/version/version_tests.rs @@ -6,7 +6,7 @@ use super::{CONTRACT_VERSION, binds, is_compatible}; #[test] fn the_shipped_contract_version_is_pinned() { - assert_eq!(CONTRACT_VERSION, (2, 26)); + assert_eq!(CONTRACT_VERSION, (2, 27)); } #[test] @@ -16,7 +16,7 @@ fn the_contract_binds_to_itself() { #[test] fn a_newer_minor_on_the_module_side_binds() { - assert!(is_compatible((2, 26))); + assert!(is_compatible((2, 27))); assert!(is_compatible((2, 97))); // 2.24 adds same-task flow-to-planner handoff to StartTask. // 2.22 adds optional host-held secret handles to StartTask and RunFlow. @@ -42,6 +42,9 @@ fn a_newer_minor_on_the_module_side_binds() { // 2.20 adds SessionOptions identity fields. // 2.25 adds BrowserEgressHost. // 2.26 adds TraceSinkHost, so a 2.25 module lacks that callback. + // 2.27 relays opaque host context to ConsequenceHost reviews. A 2.26 + // module would drop that context, so a host requiring it cannot bind. + assert!(!is_compatible((2, 26))); assert!(!is_compatible((2, 25))); assert!(!is_compatible((2, 24))); assert!(!is_compatible((2, 23))); diff --git a/crates/tinycomputer/src/tinybus_module/consequence_gate/consequence_gate_tests.rs b/crates/tinycomputer/src/tinybus_module/consequence_gate/consequence_gate_tests.rs index 32089e4b8..2b779c52d 100644 --- a/crates/tinycomputer/src/tinybus_module/consequence_gate/consequence_gate_tests.rs +++ b/crates/tinycomputer/src/tinybus_module/consequence_gate/consequence_gate_tests.rs @@ -6,7 +6,7 @@ use std::sync::{Arc, Mutex}; use tinybus::Connection; -use tinycomputer_bus::agent::{ContinueTaskRequest, TaskId}; +use tinycomputer_bus::agent::{ContinueTaskRequest, HostContext, TaskId}; use super::*; @@ -61,6 +61,7 @@ fn approval(approve: Option) -> ContinueTaskRequest { fact_handles: std::collections::BTreeMap::new(), approve, answer: None, + host_context: Some(HostContext::new("opaque-context")), } } @@ -103,6 +104,10 @@ async fn an_allowed_approval_goes_through() { assert_eq!(seen[0].task, "t1"); assert_eq!(seen[0].target, "Send"); assert_eq!(seen[0].kind, ConsequenceKind::Irreversible); + assert_eq!( + seen[0].host_context.as_ref().map(HostContext::as_str), + Some("opaque-context") + ); } #[tokio::test] @@ -175,7 +180,7 @@ async fn the_bus_port_reaches_the_hosts_interface() -> tinybus::Result<()> { let module = Connection::connect(bus.connect().await?).await?; let link = ConsequenceLink::new(Box::new(BusPort::new(module))); - let verdict = link.review("t1", "pay now", "Pay").await; + let verdict = link.review("t1", "pay now", "Pay", None).await; assert_eq!(verdict, Verdict::Denied("no".to_owned())); assert_eq!(fake.seen.lock().unwrap()[0].kind, ConsequenceKind::Payment); Ok(()) @@ -190,6 +195,9 @@ async fn the_bus_port_treats_a_host_that_serves_nothing_as_unreviewed() -> tinyb Broker::new().spawn(bus.clone()); let module = Connection::connect(bus.connect().await?).await?; let link = ConsequenceLink::new(Box::new(BusPort::new(module))); - assert_eq!(link.review("t1", "send", "Send").await, Verdict::Unreviewed); + assert_eq!( + link.review("t1", "send", "Send", None).await, + Verdict::Unreviewed + ); Ok(()) } diff --git a/crates/tinycomputer/src/tinybus_module/consequence_gate/mod.rs b/crates/tinycomputer/src/tinybus_module/consequence_gate/mod.rs index 93dd0e777..ba586f017 100644 --- a/crates/tinycomputer/src/tinybus_module/consequence_gate/mod.rs +++ b/crates/tinycomputer/src/tinybus_module/consequence_gate/mod.rs @@ -17,7 +17,7 @@ use std::future::Future; use std::pin::Pin; use tinybus::Connection; -use tinycomputer_bus::agent::ContinueTaskRequest; +use tinycomputer_bus::agent::{ContinueTaskRequest, HostContext}; use tinycomputer_bus::consequence_host::{ ConsequenceKind, INTERFACE, OBJECT_PATH, ReviewActionRequest, ReviewActionResponse, methods, }; @@ -129,13 +129,20 @@ impl ConsequenceLink { /// Asks the host whether task `task` may go ahead with `action` on /// `target`. - pub(crate) async fn review(&self, task: &str, action: &str, target: &str) -> Verdict { + pub(crate) async fn review( + &self, + task: &str, + action: &str, + target: &str, + host_context: Option, + ) -> Verdict { let kind = kind_of(action, target); let request = ReviewActionRequest { task: task.to_owned(), action: action.to_owned(), target: target.to_owned(), kind, + host_context, }; match self.port.review(request).await { Ok(reply) if reply.allow => Verdict::Allowed, @@ -169,7 +176,15 @@ impl ConsequenceLink { let Some((action, target)) = paused else { return; }; - if let Verdict::Denied(_) = self.review(&request.id.to_string(), &action, &target).await { + if let Verdict::Denied(_) = self + .review( + &request.id.to_string(), + &action, + &target, + request.host_context.clone(), + ) + .await + { request.approve = Some(false); } } diff --git a/crates/tinycomputer/tests/public_api_tests.rs b/crates/tinycomputer/tests/public_api_tests.rs index 9497a15c0..fa11ff982 100644 --- a/crates/tinycomputer/tests/public_api_tests.rs +++ b/crates/tinycomputer/tests/public_api_tests.rs @@ -34,7 +34,7 @@ fn the_crate_re_exports_the_contract_rather_than_redefining_it() { #[test] fn the_shipped_contract_binds_to_itself() { assert!(is_compatible(CONTRACT_VERSION)); - assert_eq!(CONTRACT_VERSION, (2, 26)); + assert_eq!(CONTRACT_VERSION, (2, 27)); assert!(!is_compatible((2, 25))); } diff --git a/docs/crates/tinycomputer-bus/versioning.md b/docs/crates/tinycomputer-bus/versioning.md index b4767f549..edf255cf1 100644 --- a/docs/crates/tinycomputer-bus/versioning.md +++ b/docs/crates/tinycomputer-bus/versioning.md @@ -9,7 +9,7 @@ code, so this page exists mostly to keep them apart. ## `CONTRACT_VERSION`: does this host understand this module ```rust,ignore -pub const CONTRACT_VERSION: (u32, u32) = (2, 26); +pub const CONTRACT_VERSION: (u32, u32) = (2, 27); ``` This describes the *vocabulary*: the member set and the payload shapes, @@ -45,17 +45,19 @@ Two conditions, both necessary: relies on changed shape or disappeared, so a mismatched major is refused outright, in either direction. 2. **The module must be at least as new, minor-wise, as the host.** A host - built against `(2, 26)` expects at least the members and fields that - existed at `(2, 26)`. A module reporting `(2, 25)` predates the + built against `(2, 27)` expects at least the members and fields that + existed at `(2, 27)`. A module reporting `(2, 26)` lacks host-context relay + for `ConsequenceHost`, so a 2.27 host rejects it. A module reporting + `(2, 25)` predates the `TraceSinkHost` callback added in 2.26, so a 2.26 host rejects it. It does include `BrowserEgressHost`, which was added in 2.25. A newer module with the same major is accepted. ```rust,ignore -assert!(is_compatible(CONTRACT_VERSION)); // (2, 26), the exact version this crate ships -assert!(is_compatible((2, 27))); // a newer, still-compatible module +assert!(is_compatible(CONTRACT_VERSION)); // (2, 27), the exact version this crate ships +assert!(is_compatible((2, 28))); // a newer, still-compatible module assert!(!is_compatible((2, 11))); // an older module, missing something -assert!(!is_compatible((2, 25))); // predates TraceSinkHost; includes BrowserEgressHost from 2.25 +assert!(!is_compatible((2, 26))); // predates ConsequenceHost host-context relay assert!(!is_compatible((1, 10))); // a different major, all bets off ``` From e022e1e9d894316fc5e55f4f64d4b957a1e90da0 Mon Sep 17 00:00:00 2001 From: Steven Enamakel Date: Thu, 22 Oct 2026 14:27:18 +0000 Subject: [PATCH 02/17] chore(vendor): bump agent-browser, agent-desktop, tinybus and tinyinference Update the vendored submodule pointers for agent-browser, agent-desktop, tinybus and tinyinference to their latest revisions. Auto-committed-on: cuttlefish Co-authored-by: Medulla --- vendor/agent-browser | 2 +- vendor/agent-desktop | 2 +- vendor/tinybus | 2 +- vendor/tinyinference | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/vendor/agent-browser b/vendor/agent-browser index 11303656a..f98d5fef6 160000 --- a/vendor/agent-browser +++ b/vendor/agent-browser @@ -1 +1 @@ -Subproject commit 11303656ac6121f56bceb9769339085ef004d339 +Subproject commit f98d5fef6a57b6067e6c5710e6f0ea6fb0b3bd47 diff --git a/vendor/agent-desktop b/vendor/agent-desktop index 72f8af2f2..9d7ba42a9 160000 --- a/vendor/agent-desktop +++ b/vendor/agent-desktop @@ -1 +1 @@ -Subproject commit 72f8af2f2bfb08a691fd374b6f2163061b83ea3c +Subproject commit 9d7ba42a94bc4ec018e624f3033602188f64af63 diff --git a/vendor/tinybus b/vendor/tinybus index aa36051e2..eb5cf7270 160000 --- a/vendor/tinybus +++ b/vendor/tinybus @@ -1 +1 @@ -Subproject commit aa36051e2d384b09a1fb7871758fcf22c2a7e709 +Subproject commit eb5cf727071a6eb12f9efa3db8ec59e54039f336 diff --git a/vendor/tinyinference b/vendor/tinyinference index 02c01b72f..abf90568a 160000 --- a/vendor/tinyinference +++ b/vendor/tinyinference @@ -1 +1 @@ -Subproject commit 02c01b72f70cd3747304b2a5a696b52a49fdd4fd +Subproject commit abf90568a24b826d49900150b20856ef166df3f8 From 826a885925aa3381da7a383a2a77369047ab688d Mon Sep 17 00:00:00 2001 From: Steven Enamakel Date: Thu, 22 Oct 2026 14:28:15 +0000 Subject: [PATCH 03/17] docs(specs): document host context relay in desktop module contract Adds a 2.27 section describing the optional opaque host_context on ContinueTaskRequest, how it is copied unchanged into ReviewActionRequest during consequence review, and that the bus redacts it from Debug output. Notes that hosts using the relay must validate and bind the context themselves, and that omitting the field preserves prior behavior. Auto-committed-on: cuttlefish Co-authored-by: Medulla --- docs/technical/specs/desktop-module-contract.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/technical/specs/desktop-module-contract.md b/docs/technical/specs/desktop-module-contract.md index 79d556918..4b36ca80e 100644 --- a/docs/technical/specs/desktop-module-contract.md +++ b/docs/technical/specs/desktop-module-contract.md @@ -89,6 +89,15 @@ serves the interface and fails to answer, turns the approval into a decline, so the task never takes the action. A host that serves nothing leaves the pause as the only gate. A payment checkpoint is never continuable and needs no review. +Host context relay (2.27): `ContinueTaskRequest` takes an optional opaque +`host_context`. When the module requests consequence review, it copies that +value unchanged into `ReviewActionRequest.host_context`; the module does not +interpret it or grant it authority. The bus type redacts the value from its +`Debug` output. Hosts that use the relay must validate the context themselves +and bind it to the task and action under review. Omitting the field preserves +the earlier continuation and consequence-review behavior; hosts that depend on +the relay require a compatible 2.27 module. + Browser egress (2.25): a host may serve the optional `ai.tinyhumans.tinycomputer.BrowserEgressHost` interface (`tinycomputer_bus::browser_egress`) with `Authorize`, `Consume`, and From b1b67c6a5e131fe0c11ac213870d2a82219320c2 Mon Sep 17 00:00:00 2001 From: Steven Enamakel Date: Thu, 22 Oct 2026 14:28:52 +0000 Subject: [PATCH 04/17] chore(deps): refresh Cargo.lock Regenerate the lockfile, dropping unused transitive crates and consolidating duplicate dependency versions. The workspace crates are also pinned back to 0.9.4, matching the current manifests. Auto-committed-on: cuttlefish Co-authored-by: Medulla --- Cargo.lock | 481 ++++++++++++----------------------------------------- 1 file changed, 103 insertions(+), 378 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index fdfcf4461..f826e1601 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -82,14 +82,13 @@ dependencies = [ "url", "urlencoding", "uuid", - "webpki-roots", "windows-sys 0.52.0", - "zip", + "zip 8.6.0", ] [[package]] name = "agent-desktop-core" -version = "0.10.1" +version = "0.9.4" dependencies = [ "base64 0.23.1", "libc", @@ -103,7 +102,7 @@ dependencies = [ [[package]] name = "agent-desktop-linux" -version = "0.10.1" +version = "0.9.4" dependencies = [ "agent-desktop-core", "thiserror 2.0.20", @@ -111,7 +110,7 @@ dependencies = [ [[package]] name = "agent-desktop-macos" -version = "0.10.1" +version = "0.9.4" dependencies = [ "accessibility-sys", "agent-desktop-core", @@ -130,15 +129,10 @@ dependencies = [ [[package]] name = "agent-desktop-windows" -version = "0.10.1" +version = "0.9.4" dependencies = [ "agent-desktop-core", - "serde_json", "thiserror 2.0.20", - "tracing", - "uiautomation", - "windows 0.62.2", - "windows-sys 0.61.2", ] [[package]] @@ -157,7 +151,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "812947049edcd670a82cd5c73c3661d2e58468577ba8489de58e1a73c04cbd5d" dependencies = [ "alsa-sys", - "bitflags 2.13.1", + "bitflags", "cfg-if", "libc", ] @@ -187,6 +181,15 @@ version = "1.0.104" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "330a5ed07fa54e4702c9d6c4174f74427fc0ef6e214bbd677ae50a5099946470" +[[package]] +name = "arbitrary" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3bc62ac97cc33321f50863d514c3bc38a453947a8f9e781137e47c7401020aed" +dependencies = [ + "derive_arbitrary", +] + [[package]] name = "arboard" version = "3.6.1" @@ -221,17 +224,6 @@ version = "1.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0" -[[package]] -name = "atomicwrites" -version = "0.4.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3ef1bb8d1b645fe38d51dfc331d720fb5fc2c94b440c76cc79c80ff265ca33e3" -dependencies = [ - "rustix 0.38.44", - "tempfile", - "windows-sys 0.52.0", -] - [[package]] name = "autocfg" version = "1.5.1" @@ -250,12 +242,6 @@ version = "0.23.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ac07cdecf99051d9a5238b80f35af32cdeba5b336e55d957b318b50137e18da5" -[[package]] -name = "bitflags" -version = "1.3.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" - [[package]] name = "bitflags" version = "2.13.1" @@ -335,8 +321,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5d262e149917187838d5b42777c8253bcb64500067342904e7d429499a6f277e" dependencies = [ "find-msvc-tools", - "jobserver", - "libc", "shlex", ] @@ -352,17 +336,6 @@ version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f079e83a288787bcd14a6aea84cee5c87a67c5a3e660c30f557a3d24761b3527" -[[package]] -name = "chacha20" -version = "0.9.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c3613f74bd2eac03dad61bd53dbe620703d4371614fe0bc3b9f04dd36fe4e818" -dependencies = [ - "cfg-if", - "cipher", - "cpufeatures 0.2.17", -] - [[package]] name = "chacha20" version = "0.10.2" @@ -374,19 +347,6 @@ dependencies = [ "rand_core 0.10.1", ] -[[package]] -name = "chacha20poly1305" -version = "0.10.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "10cd79432192d1c0f4e1a0fef9527696cc039165d729fb41b3f4f4f354c2dc35" -dependencies = [ - "aead", - "chacha20 0.9.1", - "cipher", - "poly1305", - "zeroize", -] - [[package]] name = "chrono" version = "0.4.45" @@ -408,16 +368,6 @@ checksum = "773f3b9af64447d2ce9850330c473515014aa235e6a783b02db81ff39e4a3dad" dependencies = [ "crypto-common 0.1.7", "inout", - "zeroize", -] - -[[package]] -name = "clack-private-fs" -version = "1.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2fcca21d8096fca7f1c3a22c3109e38927c9b587007c9c7a13b327e5a955baba" -dependencies = [ - "windows-sys 0.61.2", ] [[package]] @@ -445,7 +395,7 @@ version = "5.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a68fa787550392a9d58f44c21a3022cfb3ea3e2458b7f85d3b399d0ceeccf409" dependencies = [ - "nix 0.27.1", + "nix", "winapi", ] @@ -477,7 +427,7 @@ version = "0.24.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fa95a34622365fa5bbf40b20b75dba8dfa8c94c734aea8ac9a5ca38af14316f1" dependencies = [ - "bitflags 2.13.1", + "bitflags", "core-foundation", "core-graphics-types", "foreign-types", @@ -490,7 +440,7 @@ version = "0.25.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "064badf302c3194842cf2c5d61f56cc88e54a759313879cdf03abdd27d0c3b97" dependencies = [ - "bitflags 2.13.1", + "bitflags", "core-foundation", "core-graphics-types", "foreign-types", @@ -503,7 +453,7 @@ version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3d44a101f213f6c4cdc1853d4b78aef6db6bdfa3468798cc1d9912f4735013eb" dependencies = [ - "bitflags 2.13.1", + "bitflags", "core-foundation", "libc", ] @@ -514,7 +464,7 @@ version = "0.14.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7d5d7dca3ebcf65a035582c9ad4385371a9d9ee6537474d2a278f4e1e475bb58" dependencies = [ - "bitflags 2.13.1", + "bitflags", "libc", "objc2-audio-toolbox", "objc2-core-audio", @@ -579,6 +529,12 @@ dependencies = [ "cfg-if", ] +[[package]] +name = "crossbeam-utils" +version = "0.8.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a31eee39dddec8330830986fcd7625edb5a24ec90ea038215273bbc3adb08ac6" + [[package]] name = "crypto-common" version = "0.1.7" @@ -626,6 +582,17 @@ version = "0.5.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7cd812cc2bc1d69d4764bd80df88b4317eaef9e773c75226407d9bc0876b211c" +[[package]] +name = "derive_arbitrary" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1b034bd7d5f032402a2479444dcc6f74e36a03f31854d41680fb240ef682a1ac" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.9", +] + [[package]] name = "digest" version = "0.10.7" @@ -675,7 +642,7 @@ version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1e0e367e4e7da84520dedcac1901e4da967309406d1e51017ae1abfb97adbd38" dependencies = [ - "bitflags 2.13.1", + "bitflags", "objc2 0.6.4", ] @@ -809,16 +776,6 @@ dependencies = [ "percent-encoding", ] -[[package]] -name = "fs4" -version = "1.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7e72ed92b67c146290f88e9c89d60ca163ea417a446f61ffd7b72df3e7f1dfd5" -dependencies = [ - "rustix 1.1.4", - "windows-sys 0.61.2", -] - [[package]] name = "futures" version = "0.3.34" @@ -923,7 +880,7 @@ version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1bd49230192a3797a9a4d6abe9b3eed6f7fa4c8a8a4947977c6f80025f92cbd8" dependencies = [ - "rustix 1.1.4", + "rustix", "windows-link", ] @@ -940,18 +897,6 @@ dependencies = [ "wasm-bindgen", ] -[[package]] -name = "getrandom" -version = "0.3.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "899def5c37c4fd7b2664648c28120ecec138e4d395b459e5ca34f9cce2dd77fd" -dependencies = [ - "cfg-if", - "libc", - "r-efi 5.3.0", - "wasip2", -] - [[package]] name = "getrandom" version = "0.4.3" @@ -961,7 +906,7 @@ dependencies = [ "cfg-if", "js-sys", "libc", - "r-efi 6.0.0", + "r-efi", "rand_core 0.10.1", "wasm-bindgen", ] @@ -988,15 +933,6 @@ version = "0.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" -[[package]] -name = "hkdf" -version = "0.12.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7b5f8eb2ad728638ea2c7d47a21db23b7b58a72ed6a38256b8a1849f15fbbdf7" -dependencies = [ - "hmac", -] - [[package]] name = "hmac" version = "0.12.1" @@ -1093,7 +1029,7 @@ dependencies = [ "tokio", "tokio-rustls", "tower-service", - "webpki-roots", + "webpki-roots 1.0.10", ] [[package]] @@ -1362,16 +1298,6 @@ dependencies = [ "syn 2.0.119", ] -[[package]] -name = "jobserver" -version = "0.1.35" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1c00acbd29eabad4a2392fa0e921c874934dbbf4194312ad20f04a0ed67a3cb3" -dependencies = [ - "getrandom 0.4.3", - "libc", -] - [[package]] name = "js-sys" version = "0.3.105" @@ -1398,12 +1324,6 @@ dependencies = [ "libc", ] -[[package]] -name = "linux-raw-sys" -version = "0.4.15" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d26c52dbd32dccf2d10cac7725f8eae5296885fb5703b261f7d0a0739ec807ab" - [[package]] name = "linux-raw-sys" version = "0.12.1" @@ -1511,7 +1431,7 @@ version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c3f42e7bbe13d351b6bead8286a43aac9534b82bd3cc43e47037f012ebfd62d4" dependencies = [ - "bitflags 2.13.1", + "bitflags", "jni-sys 0.3.1", "log", "ndk-sys", @@ -1540,23 +1460,11 @@ version = "0.27.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2eb04e9c688eff1c89d72b407f168cf79bb9e867a9d3323ed6c01519eb9cc053" dependencies = [ - "bitflags 2.13.1", + "bitflags", "cfg-if", "libc", ] -[[package]] -name = "nix" -version = "0.31.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cf20d2fde8ff38632c426f1165ed7436270b44f199fc55284c38276f9db47c3d" -dependencies = [ - "bitflags 2.13.1", - "cfg-if", - "cfg_aliases", - "libc", -] - [[package]] name = "ntapi" version = "0.4.3" @@ -1645,7 +1553,7 @@ version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e4e89ad9e3d7d297152b17d39ed92cd50ca8063a89a9fa569046d41568891eff" dependencies = [ - "bitflags 2.13.1", + "bitflags", "block2 0.5.1", "libc", "objc2 0.5.2", @@ -1661,7 +1569,7 @@ version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d49e936b501e5c5bf01fda3a9452ff86dc3ea98ad5f283e1455153142d97518c" dependencies = [ - "bitflags 2.13.1", + "bitflags", "objc2 0.6.4", "objc2-core-foundation", "objc2-core-graphics", @@ -1674,7 +1582,7 @@ version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6948501a91121d6399b79abaa33a8aa4ea7857fe019f341b8c23ad6e81b79b08" dependencies = [ - "bitflags 2.13.1", + "bitflags", "libc", "objc2 0.6.4", "objc2-core-audio", @@ -1689,7 +1597,7 @@ version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "13a380031deed8e99db00065c45937da434ca987c034e13b87e4441f9e4090be" dependencies = [ - "bitflags 2.13.1", + "bitflags", "objc2 0.6.4", "objc2-foundation 0.3.2", ] @@ -1713,7 +1621,7 @@ version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5a89f2ec274a0cf4a32642b2991e8b351a404d290da87bb6a9a9d8632490bd1c" dependencies = [ - "bitflags 2.13.1", + "bitflags", "objc2 0.6.4", ] @@ -1723,7 +1631,7 @@ version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "617fbf49e071c178c0b24c080767db52958f716d9eabdf0890523aeae54773ef" dependencies = [ - "bitflags 2.13.1", + "bitflags", "block2 0.5.1", "objc2 0.5.2", "objc2-foundation 0.2.2", @@ -1735,7 +1643,7 @@ version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2a180dd8642fa45cdb7dd721cd4c11b1cadd4929ce112ebd8b9f5803cc79d536" dependencies = [ - "bitflags 2.13.1", + "bitflags", "block2 0.6.2", "dispatch2", "libc", @@ -1748,7 +1656,7 @@ version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e022c9d066895efa1345f8e33e584b9f958da2fd4cd116792e15e07e4720a807" dependencies = [ - "bitflags 2.13.1", + "bitflags", "dispatch2", "objc2 0.6.4", "objc2-core-foundation", @@ -1779,7 +1687,7 @@ version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0ee638a5da3799329310ad4cfa62fbf045d5f56e3ef5ba4149e7452dcf89d5a8" dependencies = [ - "bitflags 2.13.1", + "bitflags", "block2 0.5.1", "libc", "objc2 0.5.2", @@ -1791,7 +1699,7 @@ version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e3e0adef53c21f888deb4fa59fc59f7eb17404926ee8a6f59f5df0fd7f9f3272" dependencies = [ - "bitflags 2.13.1", + "bitflags", "block2 0.6.2", "libc", "objc2 0.6.4", @@ -1804,7 +1712,7 @@ version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "180788110936d59bab6bd83b6060ffdfffb3b922ba1396b312ae795e1de9d81d" dependencies = [ - "bitflags 2.13.1", + "bitflags", "objc2 0.6.4", "objc2-core-foundation", ] @@ -1815,7 +1723,7 @@ version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "dd0cba1276f6023976a406a14ffa85e1fdd19df6b0f737b063b95f6c8c7aadd6" dependencies = [ - "bitflags 2.13.1", + "bitflags", "block2 0.5.1", "objc2 0.5.2", "objc2-foundation 0.2.2", @@ -1827,7 +1735,7 @@ version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e42bee7bff906b14b167da2bac5efe6b6a07e6f7c0a21a7308d40c960242dc7a" dependencies = [ - "bitflags 2.13.1", + "bitflags", "block2 0.5.1", "objc2 0.5.2", "objc2-foundation 0.2.2", @@ -1899,24 +1807,13 @@ version = "0.18.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "60769b8b31b2a9f263dae2776c37b1b28ae246943cf719eb6946a1db05128a61" dependencies = [ - "bitflags 2.13.1", + "bitflags", "crc32fast", "fdeflate", "flate2", "miniz_oxide", ] -[[package]] -name = "poly1305" -version = "0.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8159bd90725d2df49889a078b54f4f79e87f1f8a8444194cdca81d38f5393abf" -dependencies = [ - "cpufeatures 0.2.17", - "opaque-debug", - "universal-hash", -] - [[package]] name = "polyval" version = "0.6.2" @@ -2048,12 +1945,6 @@ dependencies = [ "proc-macro2", ] -[[package]] -name = "r-efi" -version = "5.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f" - [[package]] name = "r-efi" version = "6.0.0" @@ -2067,27 +1958,17 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e058c7de0b26af77780c769414d6257830bb240f3c38477dbc2c16e5f54d6d4c" dependencies = [ "libc", - "rand_chacha 0.3.1", + "rand_chacha", "rand_core 0.6.4", ] -[[package]] -name = "rand" -version = "0.9.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b9ef1d0d795eb7d84685bca4f72f3649f064e6641543d3a8c415898726a57b41" -dependencies = [ - "rand_chacha 0.9.0", - "rand_core 0.9.5", -] - [[package]] name = "rand" version = "0.10.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "65c9fb96cbc91e3478eaae79a69fcd3f1ae4ad052e471fe6732fff548984b4af" dependencies = [ - "chacha20 0.10.2", + "chacha20", "getrandom 0.4.3", "rand_core 0.10.1", ] @@ -2102,16 +1983,6 @@ dependencies = [ "rand_core 0.6.4", ] -[[package]] -name = "rand_chacha" -version = "0.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d3022b5f1df60f26e1ffddd6c66e8aa15de382ae63b3a0c1bfc0e4d3e3f325cb" -dependencies = [ - "ppv-lite86", - "rand_core 0.9.5", -] - [[package]] name = "rand_core" version = "0.6.4" @@ -2121,15 +1992,6 @@ dependencies = [ "getrandom 0.2.17", ] -[[package]] -name = "rand_core" -version = "0.9.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "76afc826de14238e6e8c374ddcc1fa19e374fd8dd986b0d2af0d02377261d83c" -dependencies = [ - "getrandom 0.3.4", -] - [[package]] name = "rand_core" version = "0.10.1" @@ -2151,7 +2013,7 @@ version = "0.5.18" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d" dependencies = [ - "bitflags 2.13.1", + "bitflags", ] [[package]] @@ -2232,7 +2094,7 @@ dependencies = [ "wasm-bindgen-futures", "wasm-streams", "web-sys", - "webpki-roots", + "webpki-roots 1.0.10", ] [[package]] @@ -2299,29 +2161,16 @@ dependencies = [ "semver", ] -[[package]] -name = "rustix" -version = "0.38.44" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fdb5bc1ae2baa591800df16c9ca78619bf65c0488b41b96ccec5d11220d8c154" -dependencies = [ - "bitflags 2.13.1", - "errno", - "libc", - "linux-raw-sys 0.4.15", - "windows-sys 0.52.0", -] - [[package]] name = "rustix" version = "1.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b6fe4565b9518b83ef4f91bb47ce29620ca828bd32cb7e408f0062e9930ba190" dependencies = [ - "bitflags 2.13.1", + "bitflags", "errno", "libc", - "linux-raw-sys 0.12.1", + "linux-raw-sys", "windows-sys 0.61.2", ] @@ -2647,7 +2496,7 @@ dependencies = [ "fastrand", "getrandom 0.4.3", "once_cell", - "rustix 1.1.4", + "rustix", "windows-sys 0.61.2", ] @@ -2723,7 +2572,7 @@ dependencies = [ [[package]] name = "tinybus" -version = "0.1.6" +version = "0.1.5" dependencies = [ "async-trait", "flate2", @@ -2739,12 +2588,12 @@ dependencies = [ "toml", "tracing", "ureq", - "zip", + "zip 2.6.1", ] [[package]] name = "tinybus-macros" -version = "0.1.6" +version = "0.1.5" dependencies = [ "proc-macro2", "quote", @@ -2753,7 +2602,7 @@ dependencies = [ [[package]] name = "tinybus-module" -version = "0.1.6" +version = "0.1.5" dependencies = [ "async-trait", "serde", @@ -2914,7 +2763,7 @@ dependencies = [ [[package]] name = "tinyinference-core" -version = "0.5.0" +version = "0.3.0" dependencies = [ "anyhow", "httpdate", @@ -2924,7 +2773,7 @@ dependencies = [ [[package]] name = "tinyinference-decisions" -version = "0.5.0" +version = "0.3.0" dependencies = [ "async-trait", "httpdate", @@ -2937,10 +2786,10 @@ dependencies = [ [[package]] name = "tinyinference-llm" -version = "0.5.0" +version = "0.3.0" dependencies = [ "async-trait", - "base64 0.23.1", + "base64 0.22.1", "bytes", "futures", "reqwest", @@ -2948,67 +2797,11 @@ dependencies = [ "serde_json", "thiserror 2.0.20", "tinyinference-core", - "tinyinference-providers", "tinytools-agent", "tokio", "tracing", ] -[[package]] -name = "tinyinference-providers" -version = "0.5.0" -dependencies = [ - "base64 0.23.1", - "rand 0.10.3", - "reqwest", - "serde", - "serde_json", - "sha2 0.11.0", - "tinystoragedrivers-secrets", - "tracing", - "url", - "zeroize", -] - -[[package]] -name = "tinystoragedrivers-core" -version = "1.0.0" -source = "git+https://github.com/tinyhumansai/tinystoragedrivers?tag=v1.0.0#141fd9ed0ad5d14a8fb5a1b3e837a719e81ac08d" -dependencies = [ - "async-trait", - "data-encoding", - "serde", - "serde_json", - "sha2 0.10.9", - "thiserror 2.0.20", - "tokio", - "ulid", - "zstd", -] - -[[package]] -name = "tinystoragedrivers-secrets" -version = "1.0.0" -source = "git+https://github.com/tinyhumansai/tinystoragedrivers?tag=v1.0.0#141fd9ed0ad5d14a8fb5a1b3e837a719e81ac08d" -dependencies = [ - "async-trait", - "atomicwrites", - "chacha20poly1305", - "clack-private-fs", - "fs4", - "hkdf", - "rustix 1.1.4", - "serde", - "serde_json", - "sha2 0.10.9", - "tinystoragedrivers-core", - "tokio", - "winapi-util", - "windows-permissions", - "winsafe", - "zeroize", -] - [[package]] name = "tinystr" version = "0.8.4" @@ -3097,6 +2890,7 @@ dependencies = [ "tokio", "tokio-rustls", "tungstenite", + "webpki-roots 0.26.11", ] [[package]] @@ -3184,7 +2978,7 @@ version = "0.6.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4cfcf7e2740e6fc6d4d688b4ef00650406bb94adf4731e43c096c3a19fe40840" dependencies = [ - "bitflags 2.13.1", + "bitflags", "bytes", "futures-util", "http", @@ -3277,39 +3071,6 @@ version = "1.20.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b6f5e870be6c3b371b77fe0ee0bafb859fa4964b4404c27de1d380043c4dda20" -[[package]] -name = "uiautomation" -version = "0.25.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fa2eacf9390a8491bc949b04230f40c12520c6423a2962a6087eea1ef14373af" -dependencies = [ - "chrono", - "uiautomation_derive", - "windows 0.62.2", - "windows-core 0.62.2", -] - -[[package]] -name = "uiautomation_derive" -version = "0.7.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1c893ec96e05c3c81ba46f838f3190549ec185ef377d582ab3d44202b2dfacbd" -dependencies = [ - "proc-macro2", - "quote", - "syn 3.0.9", -] - -[[package]] -name = "ulid" -version = "1.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "470dbf6591da1b39d43c14523b2b469c86879a53e8b758c8e090a470fe7b1fbe" -dependencies = [ - "rand 0.9.5", - "web-time", -] - [[package]] name = "unicase" version = "2.9.0" @@ -3352,7 +3113,7 @@ dependencies = [ "rustls-pki-types", "ureq-proto", "utf8-zero", - "webpki-roots", + "webpki-roots 1.0.10", ] [[package]] @@ -3445,15 +3206,6 @@ version = "0.11.1+wasi-snapshot-preview1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b" -[[package]] -name = "wasip2" -version = "1.0.4+wasi-0.2.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b67efb37e106e55ce722a510d6b5f9c17f083e5fc79afc2badeb12cc313d9487" -dependencies = [ - "wit-bindgen", -] - [[package]] name = "wasm-bindgen" version = "0.2.128" @@ -3542,6 +3294,15 @@ dependencies = [ "wasm-bindgen", ] +[[package]] +name = "webpki-roots" +version = "0.26.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "521bc38abb08001b01866da9f51eb7c5d647a19260e00054a8c7fd5f9e57f7a9" +dependencies = [ + "webpki-roots 1.0.10", +] + [[package]] name = "webpki-roots" version = "1.0.10" @@ -3754,16 +3515,6 @@ dependencies = [ "windows-link", ] -[[package]] -name = "windows-permissions" -version = "0.2.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9e2ccdc3c6bf4d4a094e031b63fadd08d8e42abd259940eb8aa5fdc09d4bf9be" -dependencies = [ - "bitflags 1.3.2", - "winapi", -] - [[package]] name = "windows-result" version = "0.1.2" @@ -3976,18 +3727,6 @@ dependencies = [ "memchr", ] -[[package]] -name = "winsafe" -version = "0.0.29" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9ef0ffc427f045c0cc9ebffd6f4f91153dcd2a1547b5c3c29ee3f541e16e95c6" - -[[package]] -name = "wit-bindgen" -version = "0.57.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1ebf944e87a7c253233ad6766e082e3cd714b5d03812acc24c318f549614536e" - [[package]] name = "writeable" version = "0.6.4" @@ -4001,7 +3740,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9993aa5be5a26815fe2c3eacfc1fde061fc1a1f094bf1ad2a18bf9c495dd7414" dependencies = [ "gethostname", - "rustix 1.1.4", + "rustix", "x11rb-protocol", ] @@ -4018,7 +3757,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "32e45ad4206f6d2479085147f02bc2ef834ac85886624a23575ae137c8aa8156" dependencies = [ "libc", - "rustix 1.1.4", + "rustix", ] [[package]] @@ -4143,15 +3882,29 @@ dependencies = [ [[package]] name = "zip" -version = "9.0.5" +version = "2.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1dcb24d0152526ae49b9b96c1dcf71850ca1e0b882e4e28ed898a93c41334744" +dependencies = [ + "arbitrary", + "crc32fast", + "crossbeam-utils", + "flate2", + "indexmap", + "memchr", + "zopfli", +] + +[[package]] +name = "zip" +version = "8.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6e04976da629d3b04204ba8105b396a193af8ad2583b2c79bfb3ab8af580a11e" +checksum = "2d04a6b5381502aa6087c94c669499eb1602eb9c5e8198e534de571f7154809b" dependencies = [ "crc32fast", "flate2", "indexmap", "memchr", - "nix 0.31.3", "typed-path", "zopfli", ] @@ -4180,34 +3933,6 @@ dependencies = [ "simd-adler32", ] -[[package]] -name = "zstd" -version = "0.13.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e91ee311a569c327171651566e07972200e76fcfe2242a4fa446149a3881c08a" -dependencies = [ - "zstd-safe", -] - -[[package]] -name = "zstd-safe" -version = "7.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "64d80649ab6db9d9f6f9c80a40becd948eda4714a0a5ac8c4d157a32231c7882" -dependencies = [ - "zstd-sys", -] - -[[package]] -name = "zstd-sys" -version = "2.1.2+zstd.1.5.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "481ada9c543b2323cbb7bbdbb5249177fbf0188ed959ed2c15e4b22421c84ed3" -dependencies = [ - "cc", - "pkg-config", -] - [[package]] name = "zune-core" version = "0.5.3" From dc7729295ffb426ce43074cbea6c4a6b7dcde333 Mon Sep 17 00:00:00 2001 From: Steven Enamakel Date: Thu, 22 Oct 2026 14:40:18 +0000 Subject: [PATCH 05/17] fix(deps): restore compatible vendor pins Co-authored-by: Medulla --- Cargo.lock | 481 ++++++++++++++++++++++++++++++++++--------- vendor/agent-browser | 2 +- vendor/agent-desktop | 2 +- vendor/tinybus | 2 +- vendor/tinyinference | 2 +- 5 files changed, 382 insertions(+), 107 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index f826e1601..fdfcf4461 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -82,13 +82,14 @@ dependencies = [ "url", "urlencoding", "uuid", + "webpki-roots", "windows-sys 0.52.0", - "zip 8.6.0", + "zip", ] [[package]] name = "agent-desktop-core" -version = "0.9.4" +version = "0.10.1" dependencies = [ "base64 0.23.1", "libc", @@ -102,7 +103,7 @@ dependencies = [ [[package]] name = "agent-desktop-linux" -version = "0.9.4" +version = "0.10.1" dependencies = [ "agent-desktop-core", "thiserror 2.0.20", @@ -110,7 +111,7 @@ dependencies = [ [[package]] name = "agent-desktop-macos" -version = "0.9.4" +version = "0.10.1" dependencies = [ "accessibility-sys", "agent-desktop-core", @@ -129,10 +130,15 @@ dependencies = [ [[package]] name = "agent-desktop-windows" -version = "0.9.4" +version = "0.10.1" dependencies = [ "agent-desktop-core", + "serde_json", "thiserror 2.0.20", + "tracing", + "uiautomation", + "windows 0.62.2", + "windows-sys 0.61.2", ] [[package]] @@ -151,7 +157,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "812947049edcd670a82cd5c73c3661d2e58468577ba8489de58e1a73c04cbd5d" dependencies = [ "alsa-sys", - "bitflags", + "bitflags 2.13.1", "cfg-if", "libc", ] @@ -181,15 +187,6 @@ version = "1.0.104" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "330a5ed07fa54e4702c9d6c4174f74427fc0ef6e214bbd677ae50a5099946470" -[[package]] -name = "arbitrary" -version = "1.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3bc62ac97cc33321f50863d514c3bc38a453947a8f9e781137e47c7401020aed" -dependencies = [ - "derive_arbitrary", -] - [[package]] name = "arboard" version = "3.6.1" @@ -224,6 +221,17 @@ version = "1.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0" +[[package]] +name = "atomicwrites" +version = "0.4.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3ef1bb8d1b645fe38d51dfc331d720fb5fc2c94b440c76cc79c80ff265ca33e3" +dependencies = [ + "rustix 0.38.44", + "tempfile", + "windows-sys 0.52.0", +] + [[package]] name = "autocfg" version = "1.5.1" @@ -242,6 +250,12 @@ version = "0.23.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ac07cdecf99051d9a5238b80f35af32cdeba5b336e55d957b318b50137e18da5" +[[package]] +name = "bitflags" +version = "1.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" + [[package]] name = "bitflags" version = "2.13.1" @@ -321,6 +335,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5d262e149917187838d5b42777c8253bcb64500067342904e7d429499a6f277e" dependencies = [ "find-msvc-tools", + "jobserver", + "libc", "shlex", ] @@ -336,6 +352,17 @@ version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f079e83a288787bcd14a6aea84cee5c87a67c5a3e660c30f557a3d24761b3527" +[[package]] +name = "chacha20" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c3613f74bd2eac03dad61bd53dbe620703d4371614fe0bc3b9f04dd36fe4e818" +dependencies = [ + "cfg-if", + "cipher", + "cpufeatures 0.2.17", +] + [[package]] name = "chacha20" version = "0.10.2" @@ -347,6 +374,19 @@ dependencies = [ "rand_core 0.10.1", ] +[[package]] +name = "chacha20poly1305" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "10cd79432192d1c0f4e1a0fef9527696cc039165d729fb41b3f4f4f354c2dc35" +dependencies = [ + "aead", + "chacha20 0.9.1", + "cipher", + "poly1305", + "zeroize", +] + [[package]] name = "chrono" version = "0.4.45" @@ -368,6 +408,16 @@ checksum = "773f3b9af64447d2ce9850330c473515014aa235e6a783b02db81ff39e4a3dad" dependencies = [ "crypto-common 0.1.7", "inout", + "zeroize", +] + +[[package]] +name = "clack-private-fs" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2fcca21d8096fca7f1c3a22c3109e38927c9b587007c9c7a13b327e5a955baba" +dependencies = [ + "windows-sys 0.61.2", ] [[package]] @@ -395,7 +445,7 @@ version = "5.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a68fa787550392a9d58f44c21a3022cfb3ea3e2458b7f85d3b399d0ceeccf409" dependencies = [ - "nix", + "nix 0.27.1", "winapi", ] @@ -427,7 +477,7 @@ version = "0.24.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fa95a34622365fa5bbf40b20b75dba8dfa8c94c734aea8ac9a5ca38af14316f1" dependencies = [ - "bitflags", + "bitflags 2.13.1", "core-foundation", "core-graphics-types", "foreign-types", @@ -440,7 +490,7 @@ version = "0.25.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "064badf302c3194842cf2c5d61f56cc88e54a759313879cdf03abdd27d0c3b97" dependencies = [ - "bitflags", + "bitflags 2.13.1", "core-foundation", "core-graphics-types", "foreign-types", @@ -453,7 +503,7 @@ version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3d44a101f213f6c4cdc1853d4b78aef6db6bdfa3468798cc1d9912f4735013eb" dependencies = [ - "bitflags", + "bitflags 2.13.1", "core-foundation", "libc", ] @@ -464,7 +514,7 @@ version = "0.14.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7d5d7dca3ebcf65a035582c9ad4385371a9d9ee6537474d2a278f4e1e475bb58" dependencies = [ - "bitflags", + "bitflags 2.13.1", "libc", "objc2-audio-toolbox", "objc2-core-audio", @@ -529,12 +579,6 @@ dependencies = [ "cfg-if", ] -[[package]] -name = "crossbeam-utils" -version = "0.8.23" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a31eee39dddec8330830986fcd7625edb5a24ec90ea038215273bbc3adb08ac6" - [[package]] name = "crypto-common" version = "0.1.7" @@ -582,17 +626,6 @@ version = "0.5.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7cd812cc2bc1d69d4764bd80df88b4317eaef9e773c75226407d9bc0876b211c" -[[package]] -name = "derive_arbitrary" -version = "1.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1b034bd7d5f032402a2479444dcc6f74e36a03f31854d41680fb240ef682a1ac" -dependencies = [ - "proc-macro2", - "quote", - "syn 3.0.9", -] - [[package]] name = "digest" version = "0.10.7" @@ -642,7 +675,7 @@ version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1e0e367e4e7da84520dedcac1901e4da967309406d1e51017ae1abfb97adbd38" dependencies = [ - "bitflags", + "bitflags 2.13.1", "objc2 0.6.4", ] @@ -776,6 +809,16 @@ dependencies = [ "percent-encoding", ] +[[package]] +name = "fs4" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7e72ed92b67c146290f88e9c89d60ca163ea417a446f61ffd7b72df3e7f1dfd5" +dependencies = [ + "rustix 1.1.4", + "windows-sys 0.61.2", +] + [[package]] name = "futures" version = "0.3.34" @@ -880,7 +923,7 @@ version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1bd49230192a3797a9a4d6abe9b3eed6f7fa4c8a8a4947977c6f80025f92cbd8" dependencies = [ - "rustix", + "rustix 1.1.4", "windows-link", ] @@ -897,6 +940,18 @@ dependencies = [ "wasm-bindgen", ] +[[package]] +name = "getrandom" +version = "0.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "899def5c37c4fd7b2664648c28120ecec138e4d395b459e5ca34f9cce2dd77fd" +dependencies = [ + "cfg-if", + "libc", + "r-efi 5.3.0", + "wasip2", +] + [[package]] name = "getrandom" version = "0.4.3" @@ -906,7 +961,7 @@ dependencies = [ "cfg-if", "js-sys", "libc", - "r-efi", + "r-efi 6.0.0", "rand_core 0.10.1", "wasm-bindgen", ] @@ -933,6 +988,15 @@ version = "0.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" +[[package]] +name = "hkdf" +version = "0.12.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7b5f8eb2ad728638ea2c7d47a21db23b7b58a72ed6a38256b8a1849f15fbbdf7" +dependencies = [ + "hmac", +] + [[package]] name = "hmac" version = "0.12.1" @@ -1029,7 +1093,7 @@ dependencies = [ "tokio", "tokio-rustls", "tower-service", - "webpki-roots 1.0.10", + "webpki-roots", ] [[package]] @@ -1298,6 +1362,16 @@ dependencies = [ "syn 2.0.119", ] +[[package]] +name = "jobserver" +version = "0.1.35" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1c00acbd29eabad4a2392fa0e921c874934dbbf4194312ad20f04a0ed67a3cb3" +dependencies = [ + "getrandom 0.4.3", + "libc", +] + [[package]] name = "js-sys" version = "0.3.105" @@ -1324,6 +1398,12 @@ dependencies = [ "libc", ] +[[package]] +name = "linux-raw-sys" +version = "0.4.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d26c52dbd32dccf2d10cac7725f8eae5296885fb5703b261f7d0a0739ec807ab" + [[package]] name = "linux-raw-sys" version = "0.12.1" @@ -1431,7 +1511,7 @@ version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c3f42e7bbe13d351b6bead8286a43aac9534b82bd3cc43e47037f012ebfd62d4" dependencies = [ - "bitflags", + "bitflags 2.13.1", "jni-sys 0.3.1", "log", "ndk-sys", @@ -1460,11 +1540,23 @@ version = "0.27.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2eb04e9c688eff1c89d72b407f168cf79bb9e867a9d3323ed6c01519eb9cc053" dependencies = [ - "bitflags", + "bitflags 2.13.1", "cfg-if", "libc", ] +[[package]] +name = "nix" +version = "0.31.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf20d2fde8ff38632c426f1165ed7436270b44f199fc55284c38276f9db47c3d" +dependencies = [ + "bitflags 2.13.1", + "cfg-if", + "cfg_aliases", + "libc", +] + [[package]] name = "ntapi" version = "0.4.3" @@ -1553,7 +1645,7 @@ version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e4e89ad9e3d7d297152b17d39ed92cd50ca8063a89a9fa569046d41568891eff" dependencies = [ - "bitflags", + "bitflags 2.13.1", "block2 0.5.1", "libc", "objc2 0.5.2", @@ -1569,7 +1661,7 @@ version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d49e936b501e5c5bf01fda3a9452ff86dc3ea98ad5f283e1455153142d97518c" dependencies = [ - "bitflags", + "bitflags 2.13.1", "objc2 0.6.4", "objc2-core-foundation", "objc2-core-graphics", @@ -1582,7 +1674,7 @@ version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6948501a91121d6399b79abaa33a8aa4ea7857fe019f341b8c23ad6e81b79b08" dependencies = [ - "bitflags", + "bitflags 2.13.1", "libc", "objc2 0.6.4", "objc2-core-audio", @@ -1597,7 +1689,7 @@ version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "13a380031deed8e99db00065c45937da434ca987c034e13b87e4441f9e4090be" dependencies = [ - "bitflags", + "bitflags 2.13.1", "objc2 0.6.4", "objc2-foundation 0.3.2", ] @@ -1621,7 +1713,7 @@ version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5a89f2ec274a0cf4a32642b2991e8b351a404d290da87bb6a9a9d8632490bd1c" dependencies = [ - "bitflags", + "bitflags 2.13.1", "objc2 0.6.4", ] @@ -1631,7 +1723,7 @@ version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "617fbf49e071c178c0b24c080767db52958f716d9eabdf0890523aeae54773ef" dependencies = [ - "bitflags", + "bitflags 2.13.1", "block2 0.5.1", "objc2 0.5.2", "objc2-foundation 0.2.2", @@ -1643,7 +1735,7 @@ version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2a180dd8642fa45cdb7dd721cd4c11b1cadd4929ce112ebd8b9f5803cc79d536" dependencies = [ - "bitflags", + "bitflags 2.13.1", "block2 0.6.2", "dispatch2", "libc", @@ -1656,7 +1748,7 @@ version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e022c9d066895efa1345f8e33e584b9f958da2fd4cd116792e15e07e4720a807" dependencies = [ - "bitflags", + "bitflags 2.13.1", "dispatch2", "objc2 0.6.4", "objc2-core-foundation", @@ -1687,7 +1779,7 @@ version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0ee638a5da3799329310ad4cfa62fbf045d5f56e3ef5ba4149e7452dcf89d5a8" dependencies = [ - "bitflags", + "bitflags 2.13.1", "block2 0.5.1", "libc", "objc2 0.5.2", @@ -1699,7 +1791,7 @@ version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e3e0adef53c21f888deb4fa59fc59f7eb17404926ee8a6f59f5df0fd7f9f3272" dependencies = [ - "bitflags", + "bitflags 2.13.1", "block2 0.6.2", "libc", "objc2 0.6.4", @@ -1712,7 +1804,7 @@ version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "180788110936d59bab6bd83b6060ffdfffb3b922ba1396b312ae795e1de9d81d" dependencies = [ - "bitflags", + "bitflags 2.13.1", "objc2 0.6.4", "objc2-core-foundation", ] @@ -1723,7 +1815,7 @@ version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "dd0cba1276f6023976a406a14ffa85e1fdd19df6b0f737b063b95f6c8c7aadd6" dependencies = [ - "bitflags", + "bitflags 2.13.1", "block2 0.5.1", "objc2 0.5.2", "objc2-foundation 0.2.2", @@ -1735,7 +1827,7 @@ version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e42bee7bff906b14b167da2bac5efe6b6a07e6f7c0a21a7308d40c960242dc7a" dependencies = [ - "bitflags", + "bitflags 2.13.1", "block2 0.5.1", "objc2 0.5.2", "objc2-foundation 0.2.2", @@ -1807,13 +1899,24 @@ version = "0.18.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "60769b8b31b2a9f263dae2776c37b1b28ae246943cf719eb6946a1db05128a61" dependencies = [ - "bitflags", + "bitflags 2.13.1", "crc32fast", "fdeflate", "flate2", "miniz_oxide", ] +[[package]] +name = "poly1305" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8159bd90725d2df49889a078b54f4f79e87f1f8a8444194cdca81d38f5393abf" +dependencies = [ + "cpufeatures 0.2.17", + "opaque-debug", + "universal-hash", +] + [[package]] name = "polyval" version = "0.6.2" @@ -1945,6 +2048,12 @@ dependencies = [ "proc-macro2", ] +[[package]] +name = "r-efi" +version = "5.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f" + [[package]] name = "r-efi" version = "6.0.0" @@ -1958,17 +2067,27 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e058c7de0b26af77780c769414d6257830bb240f3c38477dbc2c16e5f54d6d4c" dependencies = [ "libc", - "rand_chacha", + "rand_chacha 0.3.1", "rand_core 0.6.4", ] +[[package]] +name = "rand" +version = "0.9.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b9ef1d0d795eb7d84685bca4f72f3649f064e6641543d3a8c415898726a57b41" +dependencies = [ + "rand_chacha 0.9.0", + "rand_core 0.9.5", +] + [[package]] name = "rand" version = "0.10.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "65c9fb96cbc91e3478eaae79a69fcd3f1ae4ad052e471fe6732fff548984b4af" dependencies = [ - "chacha20", + "chacha20 0.10.2", "getrandom 0.4.3", "rand_core 0.10.1", ] @@ -1983,6 +2102,16 @@ dependencies = [ "rand_core 0.6.4", ] +[[package]] +name = "rand_chacha" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3022b5f1df60f26e1ffddd6c66e8aa15de382ae63b3a0c1bfc0e4d3e3f325cb" +dependencies = [ + "ppv-lite86", + "rand_core 0.9.5", +] + [[package]] name = "rand_core" version = "0.6.4" @@ -1992,6 +2121,15 @@ dependencies = [ "getrandom 0.2.17", ] +[[package]] +name = "rand_core" +version = "0.9.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "76afc826de14238e6e8c374ddcc1fa19e374fd8dd986b0d2af0d02377261d83c" +dependencies = [ + "getrandom 0.3.4", +] + [[package]] name = "rand_core" version = "0.10.1" @@ -2013,7 +2151,7 @@ version = "0.5.18" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d" dependencies = [ - "bitflags", + "bitflags 2.13.1", ] [[package]] @@ -2094,7 +2232,7 @@ dependencies = [ "wasm-bindgen-futures", "wasm-streams", "web-sys", - "webpki-roots 1.0.10", + "webpki-roots", ] [[package]] @@ -2161,16 +2299,29 @@ dependencies = [ "semver", ] +[[package]] +name = "rustix" +version = "0.38.44" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fdb5bc1ae2baa591800df16c9ca78619bf65c0488b41b96ccec5d11220d8c154" +dependencies = [ + "bitflags 2.13.1", + "errno", + "libc", + "linux-raw-sys 0.4.15", + "windows-sys 0.52.0", +] + [[package]] name = "rustix" version = "1.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b6fe4565b9518b83ef4f91bb47ce29620ca828bd32cb7e408f0062e9930ba190" dependencies = [ - "bitflags", + "bitflags 2.13.1", "errno", "libc", - "linux-raw-sys", + "linux-raw-sys 0.12.1", "windows-sys 0.61.2", ] @@ -2496,7 +2647,7 @@ dependencies = [ "fastrand", "getrandom 0.4.3", "once_cell", - "rustix", + "rustix 1.1.4", "windows-sys 0.61.2", ] @@ -2572,7 +2723,7 @@ dependencies = [ [[package]] name = "tinybus" -version = "0.1.5" +version = "0.1.6" dependencies = [ "async-trait", "flate2", @@ -2588,12 +2739,12 @@ dependencies = [ "toml", "tracing", "ureq", - "zip 2.6.1", + "zip", ] [[package]] name = "tinybus-macros" -version = "0.1.5" +version = "0.1.6" dependencies = [ "proc-macro2", "quote", @@ -2602,7 +2753,7 @@ dependencies = [ [[package]] name = "tinybus-module" -version = "0.1.5" +version = "0.1.6" dependencies = [ "async-trait", "serde", @@ -2763,7 +2914,7 @@ dependencies = [ [[package]] name = "tinyinference-core" -version = "0.3.0" +version = "0.5.0" dependencies = [ "anyhow", "httpdate", @@ -2773,7 +2924,7 @@ dependencies = [ [[package]] name = "tinyinference-decisions" -version = "0.3.0" +version = "0.5.0" dependencies = [ "async-trait", "httpdate", @@ -2786,10 +2937,10 @@ dependencies = [ [[package]] name = "tinyinference-llm" -version = "0.3.0" +version = "0.5.0" dependencies = [ "async-trait", - "base64 0.22.1", + "base64 0.23.1", "bytes", "futures", "reqwest", @@ -2797,11 +2948,67 @@ dependencies = [ "serde_json", "thiserror 2.0.20", "tinyinference-core", + "tinyinference-providers", "tinytools-agent", "tokio", "tracing", ] +[[package]] +name = "tinyinference-providers" +version = "0.5.0" +dependencies = [ + "base64 0.23.1", + "rand 0.10.3", + "reqwest", + "serde", + "serde_json", + "sha2 0.11.0", + "tinystoragedrivers-secrets", + "tracing", + "url", + "zeroize", +] + +[[package]] +name = "tinystoragedrivers-core" +version = "1.0.0" +source = "git+https://github.com/tinyhumansai/tinystoragedrivers?tag=v1.0.0#141fd9ed0ad5d14a8fb5a1b3e837a719e81ac08d" +dependencies = [ + "async-trait", + "data-encoding", + "serde", + "serde_json", + "sha2 0.10.9", + "thiserror 2.0.20", + "tokio", + "ulid", + "zstd", +] + +[[package]] +name = "tinystoragedrivers-secrets" +version = "1.0.0" +source = "git+https://github.com/tinyhumansai/tinystoragedrivers?tag=v1.0.0#141fd9ed0ad5d14a8fb5a1b3e837a719e81ac08d" +dependencies = [ + "async-trait", + "atomicwrites", + "chacha20poly1305", + "clack-private-fs", + "fs4", + "hkdf", + "rustix 1.1.4", + "serde", + "serde_json", + "sha2 0.10.9", + "tinystoragedrivers-core", + "tokio", + "winapi-util", + "windows-permissions", + "winsafe", + "zeroize", +] + [[package]] name = "tinystr" version = "0.8.4" @@ -2890,7 +3097,6 @@ dependencies = [ "tokio", "tokio-rustls", "tungstenite", - "webpki-roots 0.26.11", ] [[package]] @@ -2978,7 +3184,7 @@ version = "0.6.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4cfcf7e2740e6fc6d4d688b4ef00650406bb94adf4731e43c096c3a19fe40840" dependencies = [ - "bitflags", + "bitflags 2.13.1", "bytes", "futures-util", "http", @@ -3071,6 +3277,39 @@ version = "1.20.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b6f5e870be6c3b371b77fe0ee0bafb859fa4964b4404c27de1d380043c4dda20" +[[package]] +name = "uiautomation" +version = "0.25.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fa2eacf9390a8491bc949b04230f40c12520c6423a2962a6087eea1ef14373af" +dependencies = [ + "chrono", + "uiautomation_derive", + "windows 0.62.2", + "windows-core 0.62.2", +] + +[[package]] +name = "uiautomation_derive" +version = "0.7.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1c893ec96e05c3c81ba46f838f3190549ec185ef377d582ab3d44202b2dfacbd" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.9", +] + +[[package]] +name = "ulid" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "470dbf6591da1b39d43c14523b2b469c86879a53e8b758c8e090a470fe7b1fbe" +dependencies = [ + "rand 0.9.5", + "web-time", +] + [[package]] name = "unicase" version = "2.9.0" @@ -3113,7 +3352,7 @@ dependencies = [ "rustls-pki-types", "ureq-proto", "utf8-zero", - "webpki-roots 1.0.10", + "webpki-roots", ] [[package]] @@ -3206,6 +3445,15 @@ version = "0.11.1+wasi-snapshot-preview1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b" +[[package]] +name = "wasip2" +version = "1.0.4+wasi-0.2.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b67efb37e106e55ce722a510d6b5f9c17f083e5fc79afc2badeb12cc313d9487" +dependencies = [ + "wit-bindgen", +] + [[package]] name = "wasm-bindgen" version = "0.2.128" @@ -3294,15 +3542,6 @@ dependencies = [ "wasm-bindgen", ] -[[package]] -name = "webpki-roots" -version = "0.26.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "521bc38abb08001b01866da9f51eb7c5d647a19260e00054a8c7fd5f9e57f7a9" -dependencies = [ - "webpki-roots 1.0.10", -] - [[package]] name = "webpki-roots" version = "1.0.10" @@ -3515,6 +3754,16 @@ dependencies = [ "windows-link", ] +[[package]] +name = "windows-permissions" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9e2ccdc3c6bf4d4a094e031b63fadd08d8e42abd259940eb8aa5fdc09d4bf9be" +dependencies = [ + "bitflags 1.3.2", + "winapi", +] + [[package]] name = "windows-result" version = "0.1.2" @@ -3727,6 +3976,18 @@ dependencies = [ "memchr", ] +[[package]] +name = "winsafe" +version = "0.0.29" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9ef0ffc427f045c0cc9ebffd6f4f91153dcd2a1547b5c3c29ee3f541e16e95c6" + +[[package]] +name = "wit-bindgen" +version = "0.57.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1ebf944e87a7c253233ad6766e082e3cd714b5d03812acc24c318f549614536e" + [[package]] name = "writeable" version = "0.6.4" @@ -3740,7 +4001,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9993aa5be5a26815fe2c3eacfc1fde061fc1a1f094bf1ad2a18bf9c495dd7414" dependencies = [ "gethostname", - "rustix", + "rustix 1.1.4", "x11rb-protocol", ] @@ -3757,7 +4018,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "32e45ad4206f6d2479085147f02bc2ef834ac85886624a23575ae137c8aa8156" dependencies = [ "libc", - "rustix", + "rustix 1.1.4", ] [[package]] @@ -3882,29 +4143,15 @@ dependencies = [ [[package]] name = "zip" -version = "2.6.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1dcb24d0152526ae49b9b96c1dcf71850ca1e0b882e4e28ed898a93c41334744" -dependencies = [ - "arbitrary", - "crc32fast", - "crossbeam-utils", - "flate2", - "indexmap", - "memchr", - "zopfli", -] - -[[package]] -name = "zip" -version = "8.6.0" +version = "9.0.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2d04a6b5381502aa6087c94c669499eb1602eb9c5e8198e534de571f7154809b" +checksum = "6e04976da629d3b04204ba8105b396a193af8ad2583b2c79bfb3ab8af580a11e" dependencies = [ "crc32fast", "flate2", "indexmap", "memchr", + "nix 0.31.3", "typed-path", "zopfli", ] @@ -3933,6 +4180,34 @@ dependencies = [ "simd-adler32", ] +[[package]] +name = "zstd" +version = "0.13.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e91ee311a569c327171651566e07972200e76fcfe2242a4fa446149a3881c08a" +dependencies = [ + "zstd-safe", +] + +[[package]] +name = "zstd-safe" +version = "7.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "64d80649ab6db9d9f6f9c80a40becd948eda4714a0a5ac8c4d157a32231c7882" +dependencies = [ + "zstd-sys", +] + +[[package]] +name = "zstd-sys" +version = "2.1.2+zstd.1.5.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "481ada9c543b2323cbb7bbdbb5249177fbf0188ed959ed2c15e4b22421c84ed3" +dependencies = [ + "cc", + "pkg-config", +] + [[package]] name = "zune-core" version = "0.5.3" diff --git a/vendor/agent-browser b/vendor/agent-browser index f98d5fef6..11303656a 160000 --- a/vendor/agent-browser +++ b/vendor/agent-browser @@ -1 +1 @@ -Subproject commit f98d5fef6a57b6067e6c5710e6f0ea6fb0b3bd47 +Subproject commit 11303656ac6121f56bceb9769339085ef004d339 diff --git a/vendor/agent-desktop b/vendor/agent-desktop index 9d7ba42a9..72f8af2f2 160000 --- a/vendor/agent-desktop +++ b/vendor/agent-desktop @@ -1 +1 @@ -Subproject commit 9d7ba42a94bc4ec018e624f3033602188f64af63 +Subproject commit 72f8af2f2bfb08a691fd374b6f2163061b83ea3c diff --git a/vendor/tinybus b/vendor/tinybus index eb5cf7270..aa36051e2 160000 --- a/vendor/tinybus +++ b/vendor/tinybus @@ -1 +1 @@ -Subproject commit eb5cf727071a6eb12f9efa3db8ec59e54039f336 +Subproject commit aa36051e2d384b09a1fb7871758fcf22c2a7e709 diff --git a/vendor/tinyinference b/vendor/tinyinference index abf90568a..02c01b72f 160000 --- a/vendor/tinyinference +++ b/vendor/tinyinference @@ -1 +1 @@ -Subproject commit abf90568a24b826d49900150b20856ef166df3f8 +Subproject commit 02c01b72f70cd3747304b2a5a696b52a49fdd4fd From 0897cd36e3d98162f2b37933d0b74389fd4916d6 Mon Sep 17 00:00:00 2001 From: Steven Enamakel Date: Thu, 22 Oct 2026 14:41:44 +0000 Subject: [PATCH 06/17] test(consequence_gate): mark review interface as confidential The bus host test double now declares the review method confidential, and the bus port calls it through call_confidential so the request is routed over the confidential path. Auto-committed-on: cuttlefish Co-authored-by: Medulla --- .../tinybus_module/consequence_gate/consequence_gate_tests.rs | 1 + crates/tinycomputer/src/tinybus_module/consequence_gate/mod.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/tinycomputer/src/tinybus_module/consequence_gate/consequence_gate_tests.rs b/crates/tinycomputer/src/tinybus_module/consequence_gate/consequence_gate_tests.rs index 2b779c52d..54c677c20 100644 --- a/crates/tinycomputer/src/tinybus_module/consequence_gate/consequence_gate_tests.rs +++ b/crates/tinycomputer/src/tinybus_module/consequence_gate/consequence_gate_tests.rs @@ -156,6 +156,7 @@ struct BusHost(FakeHost); #[tinybus::interface(name = "ai.tinyhumans.tinycomputer.ConsequenceHost")] impl BusHost { + #[tinybus(confidential)] async fn review(&self, request: ReviewActionRequest) -> tinybus::Result { self.0 .review(request) diff --git a/crates/tinycomputer/src/tinybus_module/consequence_gate/mod.rs b/crates/tinycomputer/src/tinybus_module/consequence_gate/mod.rs index ba586f017..befac4a19 100644 --- a/crates/tinycomputer/src/tinybus_module/consequence_gate/mod.rs +++ b/crates/tinycomputer/src/tinybus_module/consequence_gate/mod.rs @@ -79,7 +79,7 @@ impl ConsequencePort for BusPort { .map(|proxy| proxy.with_timeout(CALL_TIMEOUT)) .map_err(|error| PortError::Failed(error.to_string()))?; proxy - .call(methods::REVIEW, (request,)) + .call_confidential(methods::REVIEW, (request,)) .await .map_err(|error| { // Across the bus an error keeps its dotted name, not its From aacc7584cec4d4d5fb9e08b348f3269b88e70840 Mon Sep 17 00:00:00 2001 From: Steven Enamakel Date: Thu, 22 Oct 2026 14:43:18 +0000 Subject: [PATCH 07/17] fix(consequence_gate): call review without confidential flag The review method is no longer marked confidential, so the bus port now invokes it through the plain call path instead of call_confidential. The test host's confidential attribute was dropped to match. Auto-committed-on: cuttlefish Co-authored-by: Medulla --- .../tinybus_module/consequence_gate/consequence_gate_tests.rs | 1 - crates/tinycomputer/src/tinybus_module/consequence_gate/mod.rs | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/crates/tinycomputer/src/tinybus_module/consequence_gate/consequence_gate_tests.rs b/crates/tinycomputer/src/tinybus_module/consequence_gate/consequence_gate_tests.rs index 54c677c20..2b779c52d 100644 --- a/crates/tinycomputer/src/tinybus_module/consequence_gate/consequence_gate_tests.rs +++ b/crates/tinycomputer/src/tinybus_module/consequence_gate/consequence_gate_tests.rs @@ -156,7 +156,6 @@ struct BusHost(FakeHost); #[tinybus::interface(name = "ai.tinyhumans.tinycomputer.ConsequenceHost")] impl BusHost { - #[tinybus(confidential)] async fn review(&self, request: ReviewActionRequest) -> tinybus::Result { self.0 .review(request) diff --git a/crates/tinycomputer/src/tinybus_module/consequence_gate/mod.rs b/crates/tinycomputer/src/tinybus_module/consequence_gate/mod.rs index befac4a19..ba586f017 100644 --- a/crates/tinycomputer/src/tinybus_module/consequence_gate/mod.rs +++ b/crates/tinycomputer/src/tinybus_module/consequence_gate/mod.rs @@ -79,7 +79,7 @@ impl ConsequencePort for BusPort { .map(|proxy| proxy.with_timeout(CALL_TIMEOUT)) .map_err(|error| PortError::Failed(error.to_string()))?; proxy - .call_confidential(methods::REVIEW, (request,)) + .call(methods::REVIEW, (request,)) .await .map_err(|error| { // Across the bus an error keeps its dotted name, not its From 32d5b6e5e4b4be672cdbc3541e74cf65b1730d98 Mon Sep 17 00:00:00 2001 From: Steven Enamakel Date: Thu, 22 Oct 2026 14:53:47 +0000 Subject: [PATCH 08/17] test(task): add host context to describe test fixture The continue_with_handle test helper now supplies a HostContext so the fixture matches the current task input shape. Auto-committed-on: cuttlefish Co-authored-by: Medulla --- crates/tinycomputer-engine/src/task/task_tests/describe_tests.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/tinycomputer-engine/src/task/task_tests/describe_tests.rs b/crates/tinycomputer-engine/src/task/task_tests/describe_tests.rs index 6be80573c..d64f7b67d 100644 --- a/crates/tinycomputer-engine/src/task/task_tests/describe_tests.rs +++ b/crates/tinycomputer-engine/src/task/task_tests/describe_tests.rs @@ -15,6 +15,7 @@ fn continue_with_handle( id, approve: Some(true), answer: Some(String::new()), + host_context: Some(tinycomputer_bus::agent::HostContext::new("opaque-context")), fact_handles: std::collections::BTreeMap::from([( "email".to_owned(), tinycomputer_bus::agent::SecretHandle { From 89fd8d9074684277cabc7adc9264b81d67f208c6 Mon Sep 17 00:00:00 2001 From: Steven Enamakel Date: Thu, 22 Oct 2026 14:54:15 +0000 Subject: [PATCH 09/17] feat(task): add host_context field to continue task schema The continue task schema now documents an optional host_context string marked x-host-only, so hosts can pass opaque context for consequence review without agents setting or modifying it. A test asserts the field is present and flagged as host supplied. Auto-committed-on: cuttlefish Co-authored-by: Medulla --- crates/tinycomputer-engine/src/task/describe.rs | 5 +++++ .../src/task/task_tests/describe_tests.rs | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/crates/tinycomputer-engine/src/task/describe.rs b/crates/tinycomputer-engine/src/task/describe.rs index 21e97c635..df1781947 100644 --- a/crates/tinycomputer-engine/src/task/describe.rs +++ b/crates/tinycomputer-engine/src/task/describe.rs @@ -213,6 +213,11 @@ fn members() -> Vec { } }, "approve": {"type": "boolean"}, + "host_context": { + "type": "string", + "x-host-only": true, + "description": "Opaque context supplied by a trusted host for consequence review; never set or modified by an agent." + }, "answer": {"type": "string"} }), &["id"], diff --git a/crates/tinycomputer-engine/src/task/task_tests/describe_tests.rs b/crates/tinycomputer-engine/src/task/task_tests/describe_tests.rs index d64f7b67d..b67c94c75 100644 --- a/crates/tinycomputer-engine/src/task/task_tests/describe_tests.rs +++ b/crates/tinycomputer-engine/src/task/task_tests/describe_tests.rs @@ -287,6 +287,11 @@ async fn describe_schemas_name_every_request_field() { "{member}" ); } + assert_eq!( + schema("ContinueTask")["properties"]["host_context"]["x-host-only"], + true, + "host context is host supplied, not an agent argument" + ); // Every member with a request object is compared above; the rest take // no argument. for member in &described.members { From 611a56305bdd00b7935ae7ad339964efce5b383b Mon Sep 17 00:00:00 2001 From: Steven Enamakel Date: Thu, 22 Oct 2026 14:55:58 +0000 Subject: [PATCH 10/17] test(consequence_gate): cover host context denial for unconfidential hosts Adds a test asserting that the bus port denies a review carrying host context when the host is not confidential, and that the host never sees the request. Auto-committed-on: cuttlefish Co-authored-by: Medulla --- .../consequence_gate_tests.rs | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/crates/tinycomputer/src/tinybus_module/consequence_gate/consequence_gate_tests.rs b/crates/tinycomputer/src/tinybus_module/consequence_gate/consequence_gate_tests.rs index 2b779c52d..f1543dcc4 100644 --- a/crates/tinycomputer/src/tinybus_module/consequence_gate/consequence_gate_tests.rs +++ b/crates/tinycomputer/src/tinybus_module/consequence_gate/consequence_gate_tests.rs @@ -186,6 +186,36 @@ async fn the_bus_port_reaches_the_hosts_interface() -> tinybus::Result<()> { Ok(()) } +#[tokio::test] +async fn the_bus_port_never_sends_host_context_to_an_unconfidential_host() -> tinybus::Result<()> { + use tinybus::broker::Broker; + use tinybus::transport::memory::MemoryBus; + + let bus = MemoryBus::new(); + Broker::new().spawn(bus.clone()); + let host_connection = Connection::connect(bus.connect().await?).await?; + let fake = FakeHost::new(Answer::Allow); + host_connection + .serve_at(OBJECT_PATH.try_into()?, BusHost(fake.clone())) + .await?; + host_connection.request_name(INTERFACE).await?; + let module = Connection::connect(bus.connect().await?).await?; + + let link = ConsequenceLink::new(Box::new(BusPort::new(module))); + let verdict = link + .review( + "t1", + "send", + "Send", + Some(HostContext::new("opaque-context")), + ) + .await; + + assert!(matches!(verdict, Verdict::Denied(ref reason) if reason.contains("confidential"))); + assert!(fake.seen.lock().unwrap().is_empty()); + Ok(()) +} + #[tokio::test] async fn the_bus_port_treats_a_host_that_serves_nothing_as_unreviewed() -> tinybus::Result<()> { use tinybus::broker::Broker; From 3c41a8cec6be584a7586bb249e6d9a0523735c1a Mon Sep 17 00:00:00 2001 From: Steven Enamakel Date: Thu, 22 Oct 2026 14:56:57 +0000 Subject: [PATCH 11/17] feat(tinybus_module): route consequence reviews to a confidential host The consequence gate now accepts an optional host callback destination from the `consequence_host` config field and sends reviews carrying host context over a confidential call to that unique name. Requests with host context are rejected when no confidential callback was configured, so sensitive context can no longer reach an unconfidential host. Auto-committed-on: cuttlefish Co-authored-by: Medulla --- .../tinycomputer/src/tinybus_module/config.rs | 38 ++++++++++++++++++ .../consequence_gate_tests.rs | 4 +- .../tinybus_module/consequence_gate/mod.rs | 33 ++++++++++++---- .../src/tinybus_module/dispatch/service.rs | 6 +++ crates/tinycomputer/src/tinybus_module/mod.rs | 7 +++- .../tinybus_module_tests/config_tests.rs | 39 +++++++++++++++++++ 6 files changed, 117 insertions(+), 10 deletions(-) diff --git a/crates/tinycomputer/src/tinybus_module/config.rs b/crates/tinycomputer/src/tinybus_module/config.rs index 5521ae9f5..45560e8c1 100644 --- a/crates/tinycomputer/src/tinybus_module/config.rs +++ b/crates/tinycomputer/src/tinybus_module/config.rs @@ -225,6 +225,44 @@ pub(crate) fn trace_sink_destination( } } +/// Whether the host prepared a confidential consequence-review callback. +pub(crate) fn consequence_host_destination( + config: &serde_json::Value, +) -> Result> { + match config + .as_object() + .and_then(|object| object.get("consequence_host")) + { + None | Some(serde_json::Value::Bool(false)) => Ok(None), + Some(serde_json::Value::Object(options)) if options.len() == 1 => { + let destination = options + .get("destination") + .and_then(serde_json::Value::as_str) + .ok_or(crate::Error::ConfigFieldType { + field: "consequence_host.destination", + expected: "the unique name of the host callback prepared for this module", + })?; + tinybus::BusName::new(destination.to_owned()) + .map_err(|_| crate::Error::ConfigFieldType { + field: "consequence_host.destination", + expected: "the unique name of the host callback prepared for this module", + }) + .and_then(|name| { + name.is_unique() + .then_some(Some(name)) + .ok_or(crate::Error::ConfigFieldType { + field: "consequence_host.destination", + expected: "the unique name of the host callback prepared for this module", + }) + }) + } + Some(_) => Err(crate::Error::ConfigFieldType { + field: "consequence_host", + expected: "false or an object containing only the host callback `destination`", + }), + } +} + /// The `cursor` configuration: the agent's one on-screen cursor, shared by /// the desktop and every task's browser. Either a pace name, or an object /// with an optional `pace` and an optional `overlay` path to the diff --git a/crates/tinycomputer/src/tinybus_module/consequence_gate/consequence_gate_tests.rs b/crates/tinycomputer/src/tinybus_module/consequence_gate/consequence_gate_tests.rs index f1543dcc4..21a3587b0 100644 --- a/crates/tinycomputer/src/tinybus_module/consequence_gate/consequence_gate_tests.rs +++ b/crates/tinycomputer/src/tinybus_module/consequence_gate/consequence_gate_tests.rs @@ -179,7 +179,7 @@ async fn the_bus_port_reaches_the_hosts_interface() -> tinybus::Result<()> { host_connection.request_name(INTERFACE).await?; let module = Connection::connect(bus.connect().await?).await?; - let link = ConsequenceLink::new(Box::new(BusPort::new(module))); + let link = ConsequenceLink::new(Box::new(BusPort::new(module, None))); let verdict = link.review("t1", "pay now", "Pay", None).await; assert_eq!(verdict, Verdict::Denied("no".to_owned())); assert_eq!(fake.seen.lock().unwrap()[0].kind, ConsequenceKind::Payment); @@ -201,7 +201,7 @@ async fn the_bus_port_never_sends_host_context_to_an_unconfidential_host() -> ti host_connection.request_name(INTERFACE).await?; let module = Connection::connect(bus.connect().await?).await?; - let link = ConsequenceLink::new(Box::new(BusPort::new(module))); + let link = ConsequenceLink::new(Box::new(BusPort::new(module, None))); let verdict = link .review( "t1", diff --git a/crates/tinycomputer/src/tinybus_module/consequence_gate/mod.rs b/crates/tinycomputer/src/tinybus_module/consequence_gate/mod.rs index ba586f017..42a0efc53 100644 --- a/crates/tinycomputer/src/tinybus_module/consequence_gate/mod.rs +++ b/crates/tinycomputer/src/tinybus_module/consequence_gate/mod.rs @@ -56,6 +56,7 @@ pub(crate) trait ConsequencePort: Send + Sync + std::fmt::Debug { #[derive(Clone)] pub(crate) struct BusPort { connection: Connection, + destination: Option, } impl std::fmt::Debug for BusPort { @@ -65,23 +66,41 @@ impl std::fmt::Debug for BusPort { } impl BusPort { - pub(crate) fn new(connection: Connection) -> Self { - Self { connection } + pub(crate) fn new(connection: Connection, destination: Option) -> Self { + Self { + connection, + destination, + } } } impl ConsequencePort for BusPort { fn review(&self, request: ReviewActionRequest) -> PortFuture<'_, ReviewActionResponse> { + if request.host_context.is_some() && self.destination.is_none() { + return Box::pin(async { + Err(PortError::Failed( + "host context requires a confidential host callback".to_owned(), + )) + }); + } Box::pin(async move { let proxy = self .connection - .proxy(INTERFACE, OBJECT_PATH, INTERFACE) + .proxy( + self.destination + .as_ref() + .map_or(INTERFACE, tinybus::BusName::as_str), + OBJECT_PATH, + INTERFACE, + ) .map(|proxy| proxy.with_timeout(CALL_TIMEOUT)) .map_err(|error| PortError::Failed(error.to_string()))?; - proxy - .call(methods::REVIEW, (request,)) - .await - .map_err(|error| { + let reply = if self.destination.is_some() { + proxy.call_confidential(methods::REVIEW, (request,)).await + } else { + proxy.call(methods::REVIEW, (request,)).await + }; + reply.map_err(|error| { // Across the bus an error keeps its dotted name, not its // variant, so the name is what says nobody serves this. if NOT_SERVED.contains(&error.wire_name()) { diff --git a/crates/tinycomputer/src/tinybus_module/dispatch/service.rs b/crates/tinycomputer/src/tinybus_module/dispatch/service.rs index 4385e3081..3cfb9f04d 100644 --- a/crates/tinycomputer/src/tinybus_module/dispatch/service.rs +++ b/crates/tinycomputer/src/tinybus_module/dispatch/service.rs @@ -73,6 +73,12 @@ impl DesktopService { expected: "a module set up with its host callback connection", }); } + if super::super::config::consequence_host_destination(config)?.is_some() { + return Err(crate::Error::ConfigFieldType { + field: "consequence_host", + expected: "a module set up with its confidential host callback connection", + }); + } Self::with_browser_and_trace_sink(config, browser, None) } diff --git a/crates/tinycomputer/src/tinybus_module/mod.rs b/crates/tinycomputer/src/tinybus_module/mod.rs index 2fe7786a3..835e6a037 100644 --- a/crates/tinycomputer/src/tinybus_module/mod.rs +++ b/crates/tinycomputer/src/tinybus_module/mod.rs @@ -40,6 +40,8 @@ pub(crate) use dispatch::DesktopService; /// silently ignoring the session it was told to join would allocate refs /// nothing else can spend. async fn setup(connection: Connection, config: Value) -> TinyBusResult<()> { + let consequence_host = config::consequence_host_destination(&config) + .map_err(|error| tinybus::Error::failed(error.to_string()))?; let service = DesktopService::from_config_with_connection(&config, connection.clone()) .map_err(|error| tinybus::Error::failed(error.to_string()))?; // The host's per-site memory; a host that does not serve it only costs @@ -48,7 +50,10 @@ async fn setup(connection: Connection, config: Value) -> TinyBusResult<()> { // The host's consequence review; a host that does not serve it leaves a // task's own approval pause as the only gate. let service = service - .with_consequence_review(Box::new(consequence_gate::BusPort::new(connection.clone()))); + .with_consequence_review(Box::new(consequence_gate::BusPort::new( + connection.clone(), + consequence_host, + ))); #[cfg(test)] let service = service.with_native_fixture(); service.sweep_outputs(); diff --git a/crates/tinycomputer/src/tinybus_module/tinybus_module_tests/config_tests.rs b/crates/tinycomputer/src/tinybus_module/tinybus_module_tests/config_tests.rs index c81d44495..22d6b0f78 100644 --- a/crates/tinycomputer/src/tinybus_module/tinybus_module_tests/config_tests.rs +++ b/crates/tinycomputer/src/tinybus_module/tinybus_module_tests/config_tests.rs @@ -308,6 +308,45 @@ fn trace_sink_requires_the_host_prepared_unique_destination() { ); } +#[test] +fn consequence_host_requires_the_host_prepared_unique_destination() { + use crate::tinybus_module::config::consequence_host_destination; + + assert!(consequence_host_destination(&json!({})).unwrap().is_none()); + assert!( + consequence_host_destination(&json!({"consequence_host": false})) + .unwrap() + .is_none() + ); + for invalid in [ + json!({"consequence_host": true}), + json!({"consequence_host": {}}), + json!({"consequence_host": {"destination": "ai.tinyhumans.host"}}), + json!({"consequence_host": {"destination": ":1.42", "scope": "model"}}), + ] { + assert!(consequence_host_destination(&invalid).is_err(), "{invalid}"); + } + assert_eq!( + consequence_host_destination(&json!({ + "consequence_host": {"destination": ":1.42"} + })) + .unwrap() + .unwrap() + .as_str(), + ":1.42" + ); +} + +#[test] +fn connectionless_service_construction_rejects_consequence_host_configuration() { + let error = DesktopService::from_config(&json!({ + "consequence_host": {"destination": ":1.42"} + })) + .expect_err("a host callback needs the module's bus connection"); + + assert!(error.to_string().contains("consequence_host")); +} + #[test] fn connectionless_service_construction_rejects_trace_sink_configuration() { let error = DesktopService::from_config(&json!({ From 46e3f51fb0adff6e081d4cceb1d1c51c43e2ec0b Mon Sep 17 00:00:00 2001 From: Steven Enamakel Date: Thu, 22 Oct 2026 14:57:25 +0000 Subject: [PATCH 12/17] docs(tinybus_module): document confidential consequence reviews The README now explains that setting consequence_host to the unique destination from ModuleHost::prepare_host_callbacks enables confidential consequence reviews, and that a ContinueTask carrying host context fails closed unless that callback is configured. The BusPort constructor call in the tests was updated to pass the new optional host argument, and two blocks were reindented. Auto-committed-on: cuttlefish Co-authored-by: Medulla --- crates/tinycomputer/src/tinybus_module/README.md | 6 ++++++ .../consequence_gate/consequence_gate_tests.rs | 2 +- .../src/tinybus_module/consequence_gate/mod.rs | 16 ++++++++-------- crates/tinycomputer/src/tinybus_module/mod.rs | 9 ++++----- 4 files changed, 19 insertions(+), 14 deletions(-) diff --git a/crates/tinycomputer/src/tinybus_module/README.md b/crates/tinycomputer/src/tinybus_module/README.md index a2af54e06..0a81d883b 100644 --- a/crates/tinycomputer/src/tinybus_module/README.md +++ b/crates/tinycomputer/src/tinybus_module/README.md @@ -75,6 +75,12 @@ TinyBus treats initial and replacement module configuration as sensitive host-control traffic. An unreadable configuration fails before replacing the served object rather than falling back to defaults. +Setting `consequence_host` to an object with the unique `destination` supplied +by `ModuleHost::prepare_host_callbacks` enables confidential consequence +reviews. A `ContinueTask` carrying host context fails closed unless this +callback is configured; without host context, the legacy well-known host +interface remains available. + ## The manifest `tinybus_module::module_export_optional_static!` emits (C exports by default; `linked_module()` under `static-link`) the descriptor, embedded manifest, and diff --git a/crates/tinycomputer/src/tinybus_module/consequence_gate/consequence_gate_tests.rs b/crates/tinycomputer/src/tinybus_module/consequence_gate/consequence_gate_tests.rs index 21a3587b0..7a97998d0 100644 --- a/crates/tinycomputer/src/tinybus_module/consequence_gate/consequence_gate_tests.rs +++ b/crates/tinycomputer/src/tinybus_module/consequence_gate/consequence_gate_tests.rs @@ -224,7 +224,7 @@ async fn the_bus_port_treats_a_host_that_serves_nothing_as_unreviewed() -> tinyb let bus = MemoryBus::new(); Broker::new().spawn(bus.clone()); let module = Connection::connect(bus.connect().await?).await?; - let link = ConsequenceLink::new(Box::new(BusPort::new(module))); + let link = ConsequenceLink::new(Box::new(BusPort::new(module, None))); assert_eq!( link.review("t1", "send", "Send", None).await, Verdict::Unreviewed diff --git a/crates/tinycomputer/src/tinybus_module/consequence_gate/mod.rs b/crates/tinycomputer/src/tinybus_module/consequence_gate/mod.rs index 42a0efc53..82503f080 100644 --- a/crates/tinycomputer/src/tinybus_module/consequence_gate/mod.rs +++ b/crates/tinycomputer/src/tinybus_module/consequence_gate/mod.rs @@ -101,14 +101,14 @@ impl ConsequencePort for BusPort { proxy.call(methods::REVIEW, (request,)).await }; reply.map_err(|error| { - // Across the bus an error keeps its dotted name, not its - // variant, so the name is what says nobody serves this. - if NOT_SERVED.contains(&error.wire_name()) { - PortError::NotServed - } else { - PortError::Failed(error.to_string()) - } - }) + // Across the bus an error keeps its dotted name, not its + // variant, so the name is what says nobody serves this. + if NOT_SERVED.contains(&error.wire_name()) { + PortError::NotServed + } else { + PortError::Failed(error.to_string()) + } + }) }) } } diff --git a/crates/tinycomputer/src/tinybus_module/mod.rs b/crates/tinycomputer/src/tinybus_module/mod.rs index 835e6a037..e7e3c93f6 100644 --- a/crates/tinycomputer/src/tinybus_module/mod.rs +++ b/crates/tinycomputer/src/tinybus_module/mod.rs @@ -49,11 +49,10 @@ async fn setup(connection: Connection, config: Value) -> TinyBusResult<()> { let service = service.with_site_memory(Box::new(site_memory::BusPort::new(connection.clone()))); // The host's consequence review; a host that does not serve it leaves a // task's own approval pause as the only gate. - let service = service - .with_consequence_review(Box::new(consequence_gate::BusPort::new( - connection.clone(), - consequence_host, - ))); + let service = service.with_consequence_review(Box::new(consequence_gate::BusPort::new( + connection.clone(), + consequence_host, + ))); #[cfg(test)] let service = service.with_native_fixture(); service.sweep_outputs(); From 3ca08659971a8af1352765bd8e1ba865cd03c7ad Mon Sep 17 00:00:00 2001 From: Steven Enamakel Date: Thu, 22 Oct 2026 14:59:45 +0000 Subject: [PATCH 13/17] fix(task): omit host-only context from continue task schema The ContinueTask request schema no longer advertises host_context, since that field is injected by the trusted host and is not an agent-settable argument. The schema test now excludes it from the documented fields and asserts it is absent rather than checking its x-host-only marker. Auto-committed-on: cuttlefish Co-authored-by: Medulla --- .../tinycomputer-engine/src/task/describe.rs | 9 ++------- .../src/task/task_tests/describe_tests.rs | 18 +++++++++++++----- 2 files changed, 15 insertions(+), 12 deletions(-) diff --git a/crates/tinycomputer-engine/src/task/describe.rs b/crates/tinycomputer-engine/src/task/describe.rs index df1781947..ea2af843d 100644 --- a/crates/tinycomputer-engine/src/task/describe.rs +++ b/crates/tinycomputer-engine/src/task/describe.rs @@ -5,8 +5,8 @@ //! The schemas here are written by hand, so each field of a request type //! must be added here when it is added to the contract, save the host's //! own settings no model is offered (a task's browser binary and profile); -//! `task_tests/describe_tests.rs` checks the `StartTask` and `PlanTask` -//! schemas name every other field their types serialize. +//! `task_tests/describe_tests.rs` checks the request schemas name their +//! model-settable fields; host-only context is deliberately omitted. use serde_json::{Value, json}; use tinycomputer_bus::agent::names::{CONFIDENTIAL, methods}; @@ -213,11 +213,6 @@ fn members() -> Vec { } }, "approve": {"type": "boolean"}, - "host_context": { - "type": "string", - "x-host-only": true, - "description": "Opaque context supplied by a trusted host for consequence review; never set or modified by an agent." - }, "answer": {"type": "string"} }), &["id"], diff --git a/crates/tinycomputer-engine/src/task/task_tests/describe_tests.rs b/crates/tinycomputer-engine/src/task/task_tests/describe_tests.rs index b67c94c75..5becd7a1f 100644 --- a/crates/tinycomputer-engine/src/task/task_tests/describe_tests.rs +++ b/crates/tinycomputer-engine/src/task/task_tests/describe_tests.rs @@ -283,14 +283,22 @@ async fn describe_schemas_name_every_request_field() { for (member, request) in others { assert_eq!( documented(&schema(member)), - fields(&request.unwrap()), + if member == "ContinueTask" { + fields(&request.unwrap()) + .into_iter() + .filter(|field| field != "host_context") + .collect() + } else { + fields(&request.unwrap()) + }, "{member}" ); } - assert_eq!( - schema("ContinueTask")["properties"]["host_context"]["x-host-only"], - true, - "host context is host supplied, not an agent argument" + assert!( + schema("ContinueTask")["properties"] + .get("host_context") + .is_none(), + "host context is injected by the trusted host, not exposed to agents" ); // Every member with a request object is compared above; the rest take // no argument. From f05687a9e2fc6732a14431b68928589cd8a674aa Mon Sep 17 00:00:00 2001 From: Steven Enamakel Date: Thu, 22 Oct 2026 15:11:42 +0000 Subject: [PATCH 14/17] test(task): cover continuation request fields in describe schemas Adds a test asserting that the describe schemas document every field of the continuation request, mirroring the existing coverage for plan requests. Auto-committed-on: cuttlefish Co-authored-by: Medulla --- .../src/task/task_tests/describe_tests.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/crates/tinycomputer-engine/src/task/task_tests/describe_tests.rs b/crates/tinycomputer-engine/src/task/task_tests/describe_tests.rs index 5becd7a1f..69885b1a3 100644 --- a/crates/tinycomputer-engine/src/task/task_tests/describe_tests.rs +++ b/crates/tinycomputer-engine/src/task/task_tests/describe_tests.rs @@ -257,7 +257,20 @@ async fn describe_schemas_name_every_request_field() { let plan = serde_json::to_value(tinycomputer_bus::agent::PlanTaskRequest::default()).unwrap(); assert_eq!(documented(&schema("PlanTask")), fields(&plan)); +} +#[tokio::test] +async fn describe_schemas_name_continuation_request_fields() { + let (tasks, _) = controller(Vec::new()); + let described = capabilities(Vec::new(), Some(&jev()), &tasks); + let schema = |name: &str| { + described + .members + .iter() + .find(|member| member.name == name) + .map(|member| member.input.clone()) + .expect("the member is documented") + }; let id = tinycomputer_bus::agent::TaskId::new("t-1"); let others = [ ( From 18ab9ea3f32ba3a3e7ef62b8ec1631e496d6404d Mon Sep 17 00:00:00 2001 From: Steven Enamakel Date: Thu, 22 Oct 2026 17:52:49 +0000 Subject: [PATCH 15/17] fix(consequence): fail closed for missing configured callback Co-authored-by: Medulla --- MODULE.md | 3 ++ .../consequence_gate_tests.rs | 45 +++++++++++++++++++ .../tinybus_module/consequence_gate/mod.rs | 23 +++++----- docs/technical/architecture.md | 1 + 4 files changed, 61 insertions(+), 11 deletions(-) diff --git a/MODULE.md b/MODULE.md index 5cc663bb4..c1532ccec 100644 --- a/MODULE.md +++ b/MODULE.md @@ -50,6 +50,9 @@ is optional: and requested task reports. Sink mode replaces local trace/session storage and does not fall back to `trace_path`; event errors follow `trace_strict`, and report write errors return a recoverable `TRACE_SINK_FAILED` response; +- `consequence_host`: an object containing only the unique destination prepared + for the confidential `ConsequenceHost` callback. When configured, a missing + object, interface, or failed callback declines the pending action; - `jev`: the decision model and its API key, needed by the Jev-driven and task members. `provider` picks it: Jev through `type_safe` (the default), `open_router`, or `tiny_humans_open_router`; `open_jev` (OpenJEV's diff --git a/crates/tinycomputer/src/tinybus_module/consequence_gate/consequence_gate_tests.rs b/crates/tinycomputer/src/tinybus_module/consequence_gate/consequence_gate_tests.rs index 7a97998d0..f2b7b562e 100644 --- a/crates/tinycomputer/src/tinybus_module/consequence_gate/consequence_gate_tests.rs +++ b/crates/tinycomputer/src/tinybus_module/consequence_gate/consequence_gate_tests.rs @@ -231,3 +231,48 @@ async fn the_bus_port_treats_a_host_that_serves_nothing_as_unreviewed() -> tinyb ); Ok(()) } + +#[tokio::test] +async fn a_missing_configured_callback_is_a_failure_not_an_unreviewed_action() -> tinybus::Result<()> +{ + use tinybus::broker::Broker; + use tinybus::transport::memory::MemoryBus; + + let bus = MemoryBus::new(); + Broker::new().spawn(bus.clone()); + let host = Connection::connect(bus.connect().await?).await?; + let destination = host + .unique_name() + .expect("connected host has a unique name"); + host.serve_at(OBJECT_PATH.try_into()?, UnrelatedObject) + .await?; + let module = Connection::connect(bus.connect().await?).await?; + let link = ConsequenceLink::new(Box::new(BusPort::new(module, Some(destination)))); + + assert!(matches!( + link.review("t1", "send", "Send", None).await, + Verdict::Denied(_) + )); + Ok(()) +} + +struct UnrelatedObject; + +#[tinybus::interface(name = "org.example.Unrelated")] +impl UnrelatedObject { + async fn ping(&self) -> tinybus::Result<()> { + Ok(()) + } +} + +#[test] +fn a_configured_callback_that_is_not_served_is_a_failure() { + let error = tinybus::Error::UnknownInterface { + path: OBJECT_PATH.parse().unwrap(), + interface: INTERFACE.parse().unwrap(), + }; + assert!(matches!( + BusPort::classify_error(true, error), + PortError::Failed(_) + )); +} diff --git a/crates/tinycomputer/src/tinybus_module/consequence_gate/mod.rs b/crates/tinycomputer/src/tinybus_module/consequence_gate/mod.rs index 82503f080..eae87328a 100644 --- a/crates/tinycomputer/src/tinybus_module/consequence_gate/mod.rs +++ b/crates/tinycomputer/src/tinybus_module/consequence_gate/mod.rs @@ -26,8 +26,9 @@ use tinycomputer_core::{Consequence, consequence}; /// The deadline for one call to the host. const CALL_TIMEOUT: std::time::Duration = std::time::Duration::from_secs(30); -/// The bus errors that mean the host does not serve the interface at all, -/// rather than serving it and failing. +/// The bus errors that identify a missing service on the legacy well-known +/// lookup. An explicitly configured destination is expected to be served and +/// every failure from it denies the action. const NOT_SERVED: [&str; 3] = [ "ai.tinyhumans.tinybus.Error.NameHasNoOwner", "ai.tinyhumans.tinybus.Error.UnknownObject", @@ -72,6 +73,14 @@ impl BusPort { destination, } } + + fn classify_error(configured_destination: bool, error: tinybus::Error) -> PortError { + if !configured_destination && NOT_SERVED.contains(&error.wire_name()) { + PortError::NotServed + } else { + PortError::Failed(error.to_string()) + } + } } impl ConsequencePort for BusPort { @@ -100,15 +109,7 @@ impl ConsequencePort for BusPort { } else { proxy.call(methods::REVIEW, (request,)).await }; - reply.map_err(|error| { - // Across the bus an error keeps its dotted name, not its - // variant, so the name is what says nobody serves this. - if NOT_SERVED.contains(&error.wire_name()) { - PortError::NotServed - } else { - PortError::Failed(error.to_string()) - } - }) + reply.map_err(|error| Self::classify_error(self.destination.is_some(), error)) }) } } diff --git a/docs/technical/architecture.md b/docs/technical/architecture.md index 1f0ef1317..48f1826c5 100644 --- a/docs/technical/architecture.md +++ b/docs/technical/architecture.md @@ -222,6 +222,7 @@ configuration validates. | `trace_path` | string | where agent-desktop writes its trace | | `trace_strict` | bool | fail a call when its trace cannot be written | | `trace_sink` | object | optional host-owned persistence at the unique destination prepared by `ModuleHost::prepare_host_callbacks`; replaces local trace and session persistence | +| `consequence_host` | object | optional confidential consequence review callback at the unique destination prepared by `ModuleHost::prepare_host_callbacks`; a missing configured callback denies the action | | `headed` | bool | use real input instead of accessibility actions | | `jev` | object | decision provider (`type_safe`, `open_router`, `tiny_humans_open_router`, `open_jev`, `sage`), API key, optional model, approved endpoint, timeout, retries, `sdk_name` for the TinyHumans proxy, and `fast` for Sage | | `planner` | object | `api_key`, `provider` (`open_router` or `tiny_humans`), approved `endpoint_url`, `sdk_name`, and optional `model` for the planner, optional `rescue_route` giving the rescuer its own route and key, optional `rescue_model` for rescuing failed steps (`docs/technical/specs/task-rescue.md`), and optional `output_model` for shaping a finished task's answer (`docs/technical/specs/task-output.md`); absent means no planner, no rescues, and no output shapes | From 52e35966780655d25c32b1bc6df4086d2369deca Mon Sep 17 00:00:00 2001 From: Steven Enamakel Date: Thu, 22 Oct 2026 18:07:45 +0000 Subject: [PATCH 16/17] docs(consequence): describe callback configuration and denial scope Co-authored-by: Medulla --- MODULE.md | 4 ++-- .../tinycomputer/src/tinybus_module/README.md | 8 +++++--- docs/crates/tinycomputer/configuration.md | 20 +++++++++++++++++++ docs/technical/architecture.md | 2 +- 4 files changed, 28 insertions(+), 6 deletions(-) diff --git a/MODULE.md b/MODULE.md index c1532ccec..918cba155 100644 --- a/MODULE.md +++ b/MODULE.md @@ -51,8 +51,8 @@ is optional: and does not fall back to `trace_path`; event errors follow `trace_strict`, and report write errors return a recoverable `TRACE_SINK_FAILED` response; - `consequence_host`: an object containing only the unique destination prepared - for the confidential `ConsequenceHost` callback. When configured, a missing - object, interface, or failed callback declines the pending action; + for the confidential `ConsequenceHost` callback. When reviewing an approved + pending action, a missing object, interface, or failed callback declines it; - `jev`: the decision model and its API key, needed by the Jev-driven and task members. `provider` picks it: Jev through `type_safe` (the default), `open_router`, or `tiny_humans_open_router`; `open_jev` (OpenJEV's diff --git a/crates/tinycomputer/src/tinybus_module/README.md b/crates/tinycomputer/src/tinybus_module/README.md index 0a81d883b..480af3ea0 100644 --- a/crates/tinycomputer/src/tinybus_module/README.md +++ b/crates/tinycomputer/src/tinybus_module/README.md @@ -77,9 +77,11 @@ served object rather than falling back to defaults. Setting `consequence_host` to an object with the unique `destination` supplied by `ModuleHost::prepare_host_callbacks` enables confidential consequence -reviews. A `ContinueTask` carrying host context fails closed unless this -callback is configured; without host context, the legacy well-known host -interface remains available. +reviews. When `ContinueTask` approves a pending action for host review, the +module declines it if the configured callback is absent or cannot answer. A +declined approval, an unanswered pause, or a continuation with no pending +action does not fail solely because this callback is absent. Without host +context, the legacy well-known host interface remains available. ## The manifest diff --git a/docs/crates/tinycomputer/configuration.md b/docs/crates/tinycomputer/configuration.md index 51717dbf1..561cd88cf 100644 --- a/docs/crates/tinycomputer/configuration.md +++ b/docs/crates/tinycomputer/configuration.md @@ -66,6 +66,26 @@ can retry `TaskReport`. Without this key, or with `false`, the existing `trace_path` behavior remains in effect. `true`, malformed objects, and well-known bus names are rejected. +## `consequence_host` + +```json +{ + "consequence_host": { + "destination": ":1.42" + } +} +``` + +Set `consequence_host` to an object containing only the unique callback +destination prepared for this module by `ModuleHost::prepare_host_callbacks`. +The module sends consequence reviews to the host through that confidential +callback. When a `ContinueTask` approves a pending action for host review, +failure to reach the configured callback declines the action. A declined +approval, unanswered pause, or continuation without a pending action does not +fail solely because this callback is absent. Without this key, or with +`false`, calls without host context keep using the legacy well-known host +interface. `true`, malformed objects, and well-known bus names are rejected. + ## `jev` ```json diff --git a/docs/technical/architecture.md b/docs/technical/architecture.md index 48f1826c5..5036b776a 100644 --- a/docs/technical/architecture.md +++ b/docs/technical/architecture.md @@ -222,7 +222,7 @@ configuration validates. | `trace_path` | string | where agent-desktop writes its trace | | `trace_strict` | bool | fail a call when its trace cannot be written | | `trace_sink` | object | optional host-owned persistence at the unique destination prepared by `ModuleHost::prepare_host_callbacks`; replaces local trace and session persistence | -| `consequence_host` | object | optional confidential consequence review callback at the unique destination prepared by `ModuleHost::prepare_host_callbacks`; a missing configured callback denies the action | +| `consequence_host` | object | optional confidential consequence review callback at the unique destination prepared by `ModuleHost::prepare_host_callbacks`; a missing callback denies an approved pending action under host review | | `headed` | bool | use real input instead of accessibility actions | | `jev` | object | decision provider (`type_safe`, `open_router`, `tiny_humans_open_router`, `open_jev`, `sage`), API key, optional model, approved endpoint, timeout, retries, `sdk_name` for the TinyHumans proxy, and `fast` for Sage | | `planner` | object | `api_key`, `provider` (`open_router` or `tiny_humans`), approved `endpoint_url`, `sdk_name`, and optional `model` for the planner, optional `rescue_route` giving the rescuer its own route and key, optional `rescue_model` for rescuing failed steps (`docs/technical/specs/task-rescue.md`), and optional `output_model` for shaping a finished task's answer (`docs/technical/specs/task-output.md`); absent means no planner, no rescues, and no output shapes | From e172609bdc7419ce0cc331c5e8d9d8dc056c2d67 Mon Sep 17 00:00:00 2001 From: Steven Enamakel Date: Thu, 22 Oct 2026 18:14:36 +0000 Subject: [PATCH 17/17] fix(consequence): satisfy workspace clippy Co-authored-by: Medulla --- .../tinybus_module/consequence_gate/consequence_gate_tests.rs | 4 ++-- .../tinycomputer/src/tinybus_module/consequence_gate/mod.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/tinycomputer/src/tinybus_module/consequence_gate/consequence_gate_tests.rs b/crates/tinycomputer/src/tinybus_module/consequence_gate/consequence_gate_tests.rs index f2b7b562e..efb5806bd 100644 --- a/crates/tinycomputer/src/tinybus_module/consequence_gate/consequence_gate_tests.rs +++ b/crates/tinycomputer/src/tinybus_module/consequence_gate/consequence_gate_tests.rs @@ -261,7 +261,7 @@ struct UnrelatedObject; #[tinybus::interface(name = "org.example.Unrelated")] impl UnrelatedObject { async fn ping(&self) -> tinybus::Result<()> { - Ok(()) + std::future::ready(Ok(())).await } } @@ -272,7 +272,7 @@ fn a_configured_callback_that_is_not_served_is_a_failure() { interface: INTERFACE.parse().unwrap(), }; assert!(matches!( - BusPort::classify_error(true, error), + BusPort::classify_error(true, &error), PortError::Failed(_) )); } diff --git a/crates/tinycomputer/src/tinybus_module/consequence_gate/mod.rs b/crates/tinycomputer/src/tinybus_module/consequence_gate/mod.rs index eae87328a..01ee55650 100644 --- a/crates/tinycomputer/src/tinybus_module/consequence_gate/mod.rs +++ b/crates/tinycomputer/src/tinybus_module/consequence_gate/mod.rs @@ -74,7 +74,7 @@ impl BusPort { } } - fn classify_error(configured_destination: bool, error: tinybus::Error) -> PortError { + fn classify_error(configured_destination: bool, error: &tinybus::Error) -> PortError { if !configured_destination && NOT_SERVED.contains(&error.wire_name()) { PortError::NotServed } else { @@ -109,7 +109,7 @@ impl ConsequencePort for BusPort { } else { proxy.call(methods::REVIEW, (request,)).await }; - reply.map_err(|error| Self::classify_error(self.destination.is_some(), error)) + reply.map_err(|error| Self::classify_error(self.destination.is_some(), &error)) }) } }