Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

feat(channels): route Discord discovery and permissions through the released module

Steven Enamakel4ab03c784470
diff --git a/Cargo.lock b/Cargo.lock
index eae19784b6..9877a4081b 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -6964,7 +6964,7 @@ dependencies = [
[[package]]
name = "tinychannels"
-version = "0.1.14"
+version = "0.1.16"
dependencies = [
"anyhow",
"async-imap",
@@ -7010,7 +7010,7 @@ dependencies = [
[[package]]
name = "tinychannels-bus"
-version = "0.1.14"
+version = "0.1.16"
dependencies = [
"base64 0.23.1",
"schemars",
@@ -7021,7 +7021,7 @@ dependencies = [
[[package]]
name = "tinychannels-runtime"
-version = "0.1.14"
+version = "0.1.16"
dependencies = [
"anyhow",
"async-trait",
diff --git a/crates/openhuman-app/Cargo.lock b/crates/openhuman-app/Cargo.lock
index 17ab8614ed..cd1c237da3 100644
--- a/crates/openhuman-app/Cargo.lock
+++ b/crates/openhuman-app/Cargo.lock
@@ -676,7 +676,7 @@ dependencies = [
"cap-primitives",
"cap-std",
"io-lifetimes 3.0.1",
- "windows-sys 0.61.2",
+ "windows-sys 0.60.2",
]
[[package]]
@@ -693,7 +693,7 @@ dependencies = [
"maybe-owned",
"rustix",
"rustix-linux-procfs",
- "windows-sys 0.61.2",
+ "windows-sys 0.60.2",
"winx",
]
@@ -1479,7 +1479,7 @@ dependencies = [
"libc",
"option-ext",
"redox_users 0.5.3",
- "windows-sys 0.61.2",
+ "windows-sys 0.59.0",
]
[[package]]
@@ -1747,7 +1747,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"
dependencies = [
"libc",
- "windows-sys 0.61.2",
+ "windows-sys 0.59.0",
]
[[package]]
@@ -2714,7 +2714,7 @@ dependencies = [
"js-sys",
"log",
"wasm-bindgen",
- "windows-core 0.57.0",
+ "windows-core 0.61.2",
]
[[package]]
@@ -3603,7 +3603,7 @@ dependencies = [
"png 0.18.1",
"serde",
"thiserror 2.0.20",
- "windows-sys 0.61.2",
+ "windows-sys 0.60.2",
]
[[package]]
@@ -3721,7 +3721,7 @@ version = "0.50.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7957b9740744892f114936ab4a57b3f487491bbeafaf8083688b16841a4240e5"
dependencies = [
- "windows-sys 0.61.2",
+ "windows-sys 0.59.0",
]
[[package]]
@@ -5066,7 +5066,7 @@ dependencies = [
"once_cell",
"socket2",
"tracing",
- "windows-sys 0.61.2",
+ "windows-sys 0.59.0",
]
[[package]]
@@ -5495,7 +5495,7 @@ dependencies = [
"errno",
"libc",
"linux-raw-sys",
- "windows-sys 0.61.2",
+ "windows-sys 0.59.0",
]
[[package]]
@@ -5563,7 +5563,7 @@ dependencies = [
"security-framework 3.7.0",
"security-framework-sys",
"webpki-root-certs",
- "windows-sys 0.61.2",
+ "windows-sys 0.59.0",
]
[[package]]
@@ -6197,7 +6197,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c3d1e2c7f27f8d4cb10542a02c49005dbd6e93095799d6f3be745fae9f8fedd4"
dependencies = [
"libc",
- "windows-sys 0.61.2",
+ "windows-sys 0.60.2",
]
[[package]]
@@ -6967,7 +6967,7 @@ dependencies = [
"getrandom 0.4.3",
"once_cell",
"rustix",
- "windows-sys 0.61.2",
+ "windows-sys 0.59.0",
]
[[package]]
@@ -7315,7 +7315,7 @@ dependencies = [
[[package]]
name = "tinychannels"
-version = "0.1.14"
+version = "0.1.16"
dependencies = [
"anyhow",
"async-imap",
@@ -7357,7 +7357,7 @@ dependencies = [
[[package]]
name = "tinychannels-bus"
-version = "0.1.14"
+version = "0.1.16"
dependencies = [
"base64 0.23.1",
"schemars 1.2.2",
@@ -7368,7 +7368,7 @@ dependencies = [
[[package]]
name = "tinychannels-runtime"
-version = "0.1.14"
+version = "0.1.16"
dependencies = [
"anyhow",
"async-trait",
@@ -8421,7 +8421,7 @@ dependencies = [
"png 0.18.1",
"serde",
"thiserror 2.0.20",
- "windows-sys 0.61.2",
+ "windows-sys 0.60.2",
]
[[package]]
@@ -8511,7 +8511,7 @@ checksum = "f2f6fb2847f6742cd76af783a2a2c49e9375d0a111c7bef6f71cd9e738c72d6e"
dependencies = [
"memoffset",
"tempfile",
- "windows-sys 0.61.2",
+ "windows-sys 0.60.2",
]
[[package]]
diff --git a/crates/openhuman-core/src/channels/README.md b/crates/openhuman-core/src/channels/README.md
index e72f8fe03e..53372f8922 100644
--- a/crates/openhuman-core/src/channels/README.md
+++ b/crates/openhuman-core/src/channels/README.md
@@ -148,6 +148,7 @@ The in-app web chat (RPC namespace `channel`, singular) is a separate domain in
- Config schema types come from `tinychannels_bus::config` through [`config/schema/channels.rs`](../config/schema/channels.rs).
- Conversation memory ingestion and `forget_channel` are in `memory/conversations/`.
- Backend REST calls go through `backend::BackendClient`; Telegram and Discord link flows that need a TinyHumans account live in `openhuman-tinyhumans`.
+- Discord bot guild/channel discovery and permission checks call the released TinyChannels module through the confidential `ChannelController` member. The host resolves stored credentials and proxy scope, and the bus contract preserves the existing RPC response fields.
- Speech-to-text and text-to-speech are the `voice/` domain, reached through the `host/` adapters.
- Web-chat turns, the web-channel event stream, and the surface subscribers are `web_chat/`.
- Cron delivery is [`cron/bus.rs`](../cron/bus.rs) (`CronDeliverySubscriber`) and [`cron/channel_bridge.rs`](../cron/channel_bridge.rs); `start_channels` hands them the started channel map.
diff --git a/crates/openhuman-core/src/channels/controllers/ops/discord.rs b/crates/openhuman-core/src/channels/controllers/ops/discord.rs
index 39921b252d..9c14c40705 100644
--- a/crates/openhuman-core/src/channels/controllers/ops/discord.rs
+++ b/crates/openhuman-core/src/channels/controllers/ops/discord.rs
@@ -5,7 +5,15 @@
use crate::config::Config;
use crate::core::Outcome;
+use crate::modules::{
+ channel_controller::{self, DiscordReply},
+ client::ModuleClient,
+};
use crate::security::credentials;
+use tinychannels_bus::{
+ controllers::{BotPermissionCheck, DiscordGuild, DiscordTextChannel},
+ ChannelControllerRequest,
+};
use super::super::definitions::ChannelAuthMode;
use super::connect::shared::credential_provider;
@@ -31,15 +39,19 @@ async fn discord_bot_token(config: &Config) -> Result<String, String> {
}
/// List Discord guilds (servers) the connected bot is a member of.
-pub async fn discord_list_guilds(
- config: &Config,
-) -> Result<Outcome<Vec<crate::channels::providers::discord::api::DiscordGuild>>, String> {
- use crate::channels::providers::discord::api;
-
+pub async fn discord_list_guilds(config: &Config) -> Result<Outcome<Vec<DiscordGuild>>, String> {
let token = discord_bot_token(config).await?;
- let guilds = api::list_bot_guilds(&token)
- .await
- .map_err(|e| format!("Discord API error: {e}"))?;
+ let guilds = channel_controller::discord(
+ &ModuleClient::new(config.clone()),
+ ChannelControllerRequest::DiscordListGuilds {
+ config: config.channels_config.clone(),
+ bot_token: token,
+ proxy: channel_controller::discord_proxy(config),
+ },
+ DiscordReply::Guilds,
+ )
+ .await
+ .map_err(|e| format!("Discord API error: {e}"))?;
Ok(Outcome::single_log(guilds, "discord guilds listed"))
}
@@ -47,16 +59,23 @@ pub async fn discord_list_guilds(
pub async fn discord_list_channels(
config: &Config,
guild_id: &str,
-) -> Result<Outcome<Vec<crate::channels::providers::discord::api::DiscordTextChannel>>, String> {
- use crate::channels::providers::discord::api;
-
+) -> Result<Outcome<Vec<DiscordTextChannel>>, String> {
if guild_id.is_empty() {
return Err("guild_id is required".to_string());
}
let token = discord_bot_token(config).await?;
- let channels = api::list_guild_channels(&token, guild_id)
- .await
- .map_err(|e| format!("Discord API error: {e}"))?;
+ let channels = channel_controller::discord(
+ &ModuleClient::new(config.clone()),
+ ChannelControllerRequest::DiscordListChannels {
+ config: config.channels_config.clone(),
+ guild_id: guild_id.to_owned(),
+ bot_token: token,
+ proxy: channel_controller::discord_proxy(config),
+ },
+ DiscordReply::Channels,
+ )
+ .await
+ .map_err(|e| format!("Discord API error: {e}"))?;
Ok(Outcome::single_log(
channels,
format!("discord channels listed for guild {guild_id}"),
@@ -68,16 +87,24 @@ pub async fn discord_check_permissions(
config: &Config,
guild_id: &str,
channel_id: &str,
-) -> Result<Outcome<crate::channels::providers::discord::api::BotPermissionCheck>, String> {
- use crate::channels::providers::discord::api;
-
+) -> Result<Outcome<BotPermissionCheck>, String> {
if guild_id.is_empty() || channel_id.is_empty() {
return Err("guild_id and channel_id are required".to_string());
}
let token = discord_bot_token(config).await?;
- let check = api::check_channel_permissions(&token, guild_id, channel_id)
- .await
- .map_err(|e| format!("Discord API error: {e}"))?;
+ let check = channel_controller::discord(
+ &ModuleClient::new(config.clone()),
+ ChannelControllerRequest::DiscordCheckPermissions {
+ config: config.channels_config.clone(),
+ guild_id: guild_id.to_owned(),
+ channel_id: channel_id.to_owned(),
+ bot_token: token,
+ proxy: channel_controller::discord_proxy(config),
+ },
+ DiscordReply::Permissions,
+ )
+ .await
+ .map_err(|e| format!("Discord API error: {e}"))?;
Ok(Outcome::single_log(
check,
format!("discord permissions checked for channel {channel_id}"),
diff --git a/crates/openhuman-core/src/modules/README.md b/crates/openhuman-core/src/modules/README.md
index f255e661ae..a846e917b9 100644
--- a/crates/openhuman-core/src/modules/README.md
+++ b/crates/openhuman-core/src/modules/README.md
@@ -227,6 +227,10 @@ download, its `dlopen`, or its resident memory.
`channel_email.rs` delivers podcast attachments through TinyChannels' bounded
confidential upload members. `tinybox.rs` supplies the pre-core gateway client.
+`channel_controller.rs` invokes TinyChannels' confidential controller member for
+Discord guild/channel discovery and permission checks, preserving the complete
+legacy RPC result types from the bus contract. OpenHuman resolves credentials
+and proxy scope; the module performs provider requests and permission analysis.
The remaining channel runtime, MCP and core sandbox callers are still being
migrated; their dependency exceptions remain explicit.
diff --git a/crates/openhuman-core/src/modules/channel_controller.rs b/crates/openhuman-core/src/modules/channel_controller.rs
new file mode 100644
index 0000000000..2d1481da14
--- /dev/null
+++ b/crates/openhuman-core/src/modules/channel_controller.rs
@@ -0,0 +1,62 @@
+//! Thin adapters for module-owned channel controller operations.
+use super::client::{ModuleCallError, ModuleClient};
+use serde::de::DeserializeOwned;
+use tinychannels_bus::{
+ methods, ChannelControllerRequest, ChannelControllerResult, HttpProxyPolicy,
+};
+
+#[derive(Clone, Copy)]
+pub(crate) enum DiscordReply {
+ Guilds,
+ Channels,
+ Permissions,
+}
+
+pub(crate) async fn discord<R: DeserializeOwned>(
+ client: &ModuleClient,
+ request: ChannelControllerRequest,
+ expected: DiscordReply,
+) -> Result<R, ModuleCallError> {
+ let response = client
+ .call_confidential("tinychannels", methods::CHANNEL_CONTROLLER, (request,))
+ .await?;
+ decode_discord(response, expected)
+}
+
+fn decode_discord<R: DeserializeOwned>(
+ response: ChannelControllerResult,
+ expected: DiscordReply,
+) -> Result<R, ModuleCallError> {
+ let raw = match (expected, response) {
+ (DiscordReply::Guilds, ChannelControllerResult::DiscordGuilds(result)) => result.raw,
+ (DiscordReply::Channels, ChannelControllerResult::DiscordChannels(result)) => result.raw,
+ (DiscordReply::Permissions, ChannelControllerResult::DiscordPermissions(result)) => {
+ result.raw
+ }
+ _ => None,
+ };
+ raw.and_then(|value| serde_json::from_value(value).ok())
+ .ok_or_else(|| {
+ ModuleClient::report_malformed_reply("tinychannels");
+ ModuleCallError::ModuleFault
+ })
+}
+
+/// Resolve OpenHuman's proxy scope before transmitting provider configuration.
+pub(crate) fn discord_proxy(config: &crate::config::Config) -> HttpProxyPolicy {
+ let proxy = &config.proxy;
+ if !proxy.should_apply_to_service("channel.discord") {
+ return HttpProxyPolicy::default();
+ }
+ HttpProxyPolicy {
+ http_proxy: proxy.http_proxy.clone(),
+ https_proxy: proxy.https_proxy.clone(),
+ all_proxy: proxy.all_proxy.clone(),
+ no_proxy: proxy.normalized_no_proxy(),
+ service_selectors: vec!["channel.discord".into()],
+ }
+}
+
+#[cfg(test)]
+#[path = "channel_controller_tests.rs"]
+mod tests;
diff --git a/crates/openhuman-core/src/modules/channel_controller_tests.rs b/crates/openhuman-core/src/modules/channel_controller_tests.rs
new file mode 100644
index 0000000000..1d94b4c807
--- /dev/null
+++ b/crates/openhuman-core/src/modules/channel_controller_tests.rs
@@ -0,0 +1,163 @@
+use super::*;
+use serde_json::json;
+use tinychannels_bus::controllers::{
+ BotPermissionCheck, DiscordChannelListResult, DiscordGuild, DiscordGuildListResult,
+};
+
+#[tokio::test]
+async fn discord_credentials_never_reach_an_unattested_bus() {
+ use tinybus::{broker::Broker, transport::memory::MemoryBus, Connection, ObjectPath};
+ #[derive(Clone)]
+ struct Unattested(std::sync::Arc<std::sync::atomic::AtomicUsize>);
+ #[tinybus::interface(name = "test.ChannelController")]
+ impl Unattested {
+ async fn channel_controller(
+ &self,
+ _: ChannelControllerRequest,
+ ) -> tinybus::Result<ChannelControllerResult> {
+ self.0.fetch_add(1, std::sync::atomic::Ordering::SeqCst);
+ Ok(ChannelControllerResult::DiscordGuilds(Default::default()))
+ }
+ }
+ let bus = MemoryBus::new();
+ Broker::new().spawn(bus.clone());
+ let service = Connection::connect(bus.connect().await.unwrap())
+ .await
+ .unwrap();
+ let caller = Connection::connect(bus.connect().await.unwrap())
+ .await
+ .unwrap();
+ let calls = std::sync::Arc::new(std::sync::atomic::AtomicUsize::new(0));
+ service
+ .serve_at(
+ ObjectPath::new("/test/ChannelController").unwrap(),
+ Unattested(calls.clone()),
+ )
+ .await
+ .unwrap();
+ service
+ .request_name("test.ChannelController")
+ .await
+ .unwrap();
+ let proxy = caller
+ .proxy(
+ "test.ChannelController",
+ "/test/ChannelController",
+ "test.ChannelController",
+ )
+ .unwrap();
+ let result = discord::<Vec<DiscordGuild>>(
+ &ModuleClient::fixture(proxy),
+ ChannelControllerRequest::DiscordListGuilds {
+ config: Default::default(),
+ bot_token: "fixture-token".into(),
+ proxy: Default::default(),
+ },
+ DiscordReply::Guilds,
+ )
+ .await;
+ assert_eq!(result.unwrap_err(), ModuleCallError::TransportFailed);
+ assert_eq!(calls.load(std::sync::atomic::Ordering::SeqCst), 0);
+}
+
+#[test]
+fn discord_guild_projection_preserves_icons_and_module_order() {
+ let wire = json!([
+ {"id":"second", "name":"Second", "icon":null},
+ {"id":"first", "name":"First", "icon":"icon-hash"}
+ ]);
+ let guilds: Vec<DiscordGuild> = decode_discord(
+ ChannelControllerResult::DiscordGuilds(DiscordGuildListResult {
+ raw: Some(wire.clone()),
+ ..Default::default()
+ }),
+ DiscordReply::Guilds,
+ )
+ .unwrap();
+ assert_eq!(serde_json::to_value(guilds).unwrap(), wire);
+}
+
+#[test]
+fn discord_permission_projection_keeps_all_legacy_permission_facts() {
+ let wire = json!({"can_view_channel":false,"can_send_messages":false,"can_read_message_history":true,"missing_permissions":["VIEW_CHANNEL", "SEND_MESSAGES"]});
+ let result: BotPermissionCheck = decode_discord(
+ ChannelControllerResult::DiscordPermissions(
+ tinychannels_bus::controllers::DiscordPermissionCheckResult {
+ raw: Some(wire.clone()),
+ ..Default::default()
+ },
+ ),
+ DiscordReply::Permissions,
+ )
+ .unwrap();
+ assert_eq!(serde_json::to_value(result).unwrap(), wire);
+}
+
+#[test]
+fn discord_projection_rejects_wrong_result_kind_or_missing_native_fields() {
+ assert_eq!(
+ decode_discord::<Vec<DiscordGuild>>(
+ ChannelControllerResult::DiscordChannels(DiscordChannelListResult {
+ raw: Some(json!([])),
+ ..Default::default()
+ }),
+ DiscordReply::Guilds
+ )
+ .unwrap_err(),
+ ModuleCallError::ModuleFault
+ );
+ assert_eq!(
+ decode_discord::<BotPermissionCheck>(
+ ChannelControllerResult::DiscordPermissions(
+ tinychannels_bus::controllers::DiscordPermissionCheckResult {
+ raw: Some(json!({"can_send_messages":true})),
+ ..Default::default()
+ }
+ ),
+ DiscordReply::Permissions
+ )
+ .unwrap_err(),
+ ModuleCallError::ModuleFault
+ );
+}
+
+#[test]
+fn discord_projection_refuses_missing_raw_reply_without_inventing_defaults() {
+ assert_eq!(
+ decode_discord::<Vec<DiscordGuild>>(
+ ChannelControllerResult::DiscordGuilds(DiscordGuildListResult::default()),
+ DiscordReply::Guilds
+ )
+ .unwrap_err(),
+ ModuleCallError::ModuleFault
+ );
+}
+
+#[test]
+fn discord_proxy_resolves_only_the_host_selected_service() {
+ let mut config = crate::config::Config::default();
+ config.proxy.enabled = true;
+ config.proxy.scope = crate::config::ProxyScope::Services;
+ config.proxy.https_proxy = Some("http://proxy.example.test:3128".into());
+ config.proxy.services = vec!["channel.telegram".into()];
+ assert!(discord_proxy(&config) == HttpProxyPolicy::default());
+ config.proxy.services = vec!["channel.*".into()];
+ let policy = discord_proxy(&config);
+ assert_eq!(policy.service_selectors, ["channel.discord"]);
+ assert_eq!(policy.https_proxy, config.proxy.https_proxy);
+}
+
+#[test]
+fn discord_channel_projection_preserves_type_position_and_category() {
+ let wire =
+ json!([{"id":"c", "name":"general", "type":0, "position":7, "parent_id":"category"}]);
+ let channels: Vec<tinychannels_bus::controllers::DiscordTextChannel> = decode_discord(
+ ChannelControllerResult::DiscordChannels(DiscordChannelListResult {
+ raw: Some(wire.clone()),
+ ..Default::default()
+ }),
+ DiscordReply::Channels,
+ )
+ .unwrap();
+ assert_eq!(serde_json::to_value(channels).unwrap(), wire);
+}
diff --git a/crates/openhuman-core/src/modules/mod.rs b/crates/openhuman-core/src/modules/mod.rs
index 67f071dfac..2a27aaef1c 100644
--- a/crates/openhuman-core/src/modules/mod.rs
+++ b/crates/openhuman-core/src/modules/mod.rs
@@ -49,6 +49,8 @@ pub(crate) mod browser_sites;
pub mod browser_task;
#[cfg(feature = "modules")]
mod browser_task_report;
+#[cfg(feature = "channels")]
+pub(crate) mod channel_controller;
#[cfg(feature = "voice")]
pub mod channel_email;
pub mod client;
diff --git a/crates/openhuman-core/src/modules/registry/records_extra.rs b/crates/openhuman-core/src/modules/registry/records_extra.rs
index 37e5887bdc..ebf8fe8438 100644
--- a/crates/openhuman-core/src/modules/registry/records_extra.rs
+++ b/crates/openhuman-core/src/modules/registry/records_extra.rs
@@ -76,63 +76,63 @@ pub(crate) const TINYCHANNELS: ModuleRecord = ModuleRecord {
description: "Channel provider lifecycle and message transport",
bus_name: "ai.tinyhumans.tinychannels.Channels",
object_path: "/ai/tinyhumans/tinychannels/Channels",
- version: "0.1.14",
- release_url: "https://github.com/tinyhumansai/tinychannels/releases/tag/v0.1.14",
+ version: "0.1.16",
+ release_url: "https://github.com/tinyhumansai/tinychannels/releases/tag/v0.1.16",
assets: &[
PlatformAsset {
host_key: "macos-15-arm64",
- archive: "tinychannels-module-0.1.14-macos-15-arm64.tar.gz",
- sha256: "be83aeca16520766708dd473a52e8b71f1d1d283fae82e5a8c89cb4e45d140bc",
+ archive: "tinychannels-module-0.1.16-macos-15-arm64.tar.gz",
+ sha256: "2488b7960ed80393ff508d2b0d299b531fe4be4ccade15026be528399efe3612",
},
PlatformAsset {
host_key: "macos-15-x86_64",
- archive: "tinychannels-module-0.1.14-macos-15-x86_64.tar.gz",
- sha256: "435b6ec18b25be5bd0b63c5c3cf3d5d688e9934204189b645d13fee29495bbdd",
+ archive: "tinychannels-module-0.1.16-macos-15-x86_64.tar.gz",
+ sha256: "a7e35d80be826317105a245e6c9327f18edd25f6cbb86b36fdae91a32fc7c169",
},
PlatformAsset {
host_key: "macos-26-arm64",
- archive: "tinychannels-module-0.1.14-macos-26-arm64.tar.gz",
- sha256: "8379e9d60dac93bb6b3f6efe466514767023fa45099922c8eee10acaa9aeff24",
+ archive: "tinychannels-module-0.1.16-macos-26-arm64.tar.gz",
+ sha256: "4e5e32b618d84002f3de6b70d161225f4ad7cb4aebce3779e888e3360767c0db",
},
PlatformAsset {
host_key: "macos-26-x86_64",
- archive: "tinychannels-module-0.1.14-macos-26-x86_64.tar.gz",
- sha256: "753df946102a41ff119d05b4733ce3ee07483d0b63e2bd94ab8db6ac0fbf319a",
+ archive: "tinychannels-module-0.1.16-macos-26-x86_64.tar.gz",
+ sha256: "5b87511967bd585a91263b519006b3dd35eb56bcd1524319d75cc0440e313f29",
},
PlatformAsset {
host_key: "ubuntu-22.04-arm64",
- archive: "tinychannels-module-0.1.14-ubuntu-22.04-arm64.tar.gz",
- sha256: "079e0bcb34bf75b711a6b5ca17f40b2d7d10296e2dba56bbc3cf18f59301e5e9",
+ archive: "tinychannels-module-0.1.16-ubuntu-22.04-arm64.tar.gz",
+ sha256: "9cfef098d829697c86b614bf32fe8c73b783e1cd0f6b4fd4a283209ed24a9a14",
},
PlatformAsset {
host_key: "ubuntu-22.04-x86_64",
- archive: "tinychannels-module-0.1.14-ubuntu-22.04-x86_64.tar.gz",
- sha256: "fe00f8199bdca8ff3d860371cf462526bcc284bc4c343ad6059df0a61e337b15",
+ archive: "tinychannels-module-0.1.16-ubuntu-22.04-x86_64.tar.gz",
+ sha256: "c3b7a3b05928a313ecba0b01de537b38f2f2a6a80b51d15c9137ca8f3b2a5ee3",
},
PlatformAsset {
host_key: "ubuntu-24.04-arm64",
- archive: "tinychannels-module-0.1.14-ubuntu-24.04-arm64.tar.gz",
- sha256: "33a7f5d131f9a223cddaeaecfb09a176d7f9b021edeaa2ea0d6d7ca1f4d7d1f4",
+ archive: "tinychannels-module-0.1.16-ubuntu-24.04-arm64.tar.gz",
+ sha256: "889637ea1fa329990bcccc1ad16a0432554fe9439dcb782edda72f5050470fbd",
},
PlatformAsset {
host_key: "ubuntu-24.04-x86_64",
- archive: "tinychannels-module-0.1.14-ubuntu-24.04-x86_64.tar.gz",
- sha256: "88dd9becede87cd4ffaf4587d16379f61b607a7cbb302ba421f1e46d32f14edd",
+ archive: "tinychannels-module-0.1.16-ubuntu-24.04-x86_64.tar.gz",
+ sha256: "ce6ae3a46029b645c861a18d7ffcaa51792d4533cddcf0fc44de61b3d5193abf",
},
PlatformAsset {
host_key: "windows-11-arm64",
- archive: "tinychannels-module-0.1.14-windows-11-arm64.zip",
- sha256: "c2b072246e3dd0e33ebed351cae7e57f30e07f8b89490ed501495b23dd5b01ab",
+ archive: "tinychannels-module-0.1.16-windows-11-arm64.zip",
+ sha256: "2b1718cecc45c19860ff99ea0ed577d904c84f76fa08c677417efecb5e7b4c05",
},
PlatformAsset {
host_key: "windows-2022-x86_64",
- archive: "tinychannels-module-0.1.14-windows-2022-x86_64.zip",
- sha256: "cd3794169dbce1b4f08386f30d47b662f3e6ba785fdbf131530fbd2986756473",
+ archive: "tinychannels-module-0.1.16-windows-2022-x86_64.zip",
+ sha256: "da0f1d6a7481a1f3d9bac5023dcd3f641bfcf16a568fe9121b9a23f8931aa2d3",
},
PlatformAsset {
host_key: "windows-2025-x86_64",
- archive: "tinychannels-module-0.1.14-windows-2025-x86_64.zip",
- sha256: "ed50dddcd9b6c07e9286977e28c3f836cb878db5e87e46a4d83aa04104360b90",
+ archive: "tinychannels-module-0.1.16-windows-2025-x86_64.zip",
+ sha256: "713977d18ac820cfca18264ca984776cfba4d440d5dbd42f57e1bc905bf83c79",
},
],
load: LoadPolicy::Lazy,
diff --git a/crates/openhuman-embed/src/host_internals.rs b/crates/openhuman-embed/src/host_internals.rs
index f861a43c17..427dd29659 100644
--- a/crates/openhuman-embed/src/host_internals.rs
+++ b/crates/openhuman-embed/src/host_internals.rs
@@ -209,7 +209,8 @@ pub mod integrations {
pub mod security {
pub mod credentials {
pub use openhuman_core::security::credentials::{
- channel_credential_provider, AuthService, APP_SESSION_PROVIDER, DEFAULT_AUTH_PROFILE_NAME,
+ channel_credential_provider, AuthService, APP_SESSION_PROVIDER,
+ DEFAULT_AUTH_PROFILE_NAME,
};
pub mod ops {
pub use openhuman_core::security::credentials::ops::{
diff --git a/docs/module-boundary-inventory.md b/docs/module-boundary-inventory.md
index 152c11360e..988c837c39 100644
--- a/docs/module-boundary-inventory.md
+++ b/docs/module-boundary-inventory.md
@@ -16,7 +16,7 @@ copying its implementation into a host, or accepting weaker isolation.
| tinyjuice | none (module loaded through TinyBus) | tinyjuice-bus | core tools, compression, CCR REPL | Complete: PR #59 provides module-owned compression, CCR queries, HTML extraction, schemas and declarations; the host retains turn-bound model callbacks and artifact authorization |
| tinyconnectors | tinyconnectors, tinyconnectors-sync | tinyconnectors-bus | core integrations, credentials and triggers | Argument preparation, calendar defaults, task windows, structured provider errors, trigger archives; preserve sign-in/out reconciliation |
| tinymcp | tinymcp | tinymcp-bus | core MCP registry, supervisor, CLI stdio/HTTP server | Supervisor notifications, server protocol operations and callbacks for approved host tools/resources/prompts |
-| tinychannels | tinychannels, tinychannels-runtime (remaining runtime callers) | tinychannels-bus | core channels and podcast email, TinyHumans host, CLI REPL | Contract is pure in v0.1.14; podcast SMTP uses confidential module uploads. Remaining provider/relay/REPL callers need bus cutover with inbound/status callbacks and shutdown draining |
+| tinychannels | tinychannels, tinychannels-runtime (remaining runtime callers) | tinychannels-bus | core channels and podcast email, TinyHumans host, CLI REPL | Contract is pure; v0.1.16 supplies complete Discord response vocabulary. Podcast SMTP and Discord discovery/permission checks use confidential module calls. Remaining runtime callers need bus cutover with inbound/status callbacks and shutdown draining |
| tinyhosts | tinyhosts | tinyhosts-bus | core hosting tools | Consume released Execute/Providers contract; keep workspace authorization, credentials, and approval policy in OpenHuman |
| tinywallet | tinywallet-crypto, tinywallet-web3, tinywallet-x402 via bus and direct imports | tinywallet-bus | core wallet/web3/x402 | Move behavioral re-exports out of bus; validation, transaction construction, quotes, swaps, payments, budgets, ledger; retain host custody/approval and confidential attestation |
| tinybox | tinybox-core, tinybox-jail, tinybox-docker, tinybox-host, tinybox-ssh | tinybox-bus | core sandbox and security, desktop gateways | Pre-core gateways use the released v0.1.18 bus client. Core sandbox execution and shell analysis still require cutover |
diff --git a/vendor/tinychannels b/vendor/tinychannels
index aae3902bf2..6f0040c312 160000
--- a/vendor/tinychannels
+++ b/vendor/tinychannels
@@ -1 +1 @@
-Subproject commit aae3902bf2c31ee678dc6e5c3c75586d04a2b318
+Subproject commit 6f0040c312808fc8cb3616f2b0c727f974e366b4