Skip to content

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

chore: files changed crates/openhuman-core/src/core/bus.rs,crates/openhuman-core/src/core/events.rs,

Steven Enamakel23c5137f4aab
diff --git a/crates/openhuman-core/src/core/bus.rs b/crates/openhuman-core/src/core/bus.rs
index 269f97c28d..0dcf80165d 100644
--- a/crates/openhuman-core/src/core/bus.rs
+++ b/crates/openhuman-core/src/core/bus.rs
@@ -96,8 +96,7 @@ pub const EVENTS_INTERFACE: &str = "ai.tinyhumans.openhuman.Events2";
/// ambient one.
/// `2.0.0` removes `CronDeliveryRequested`; announce delivery now sends
/// synchronously through the cron channel bridge.
-/// `2.1.0` adds an optional `tenant` to `CronJobCompleted` so subscribers
-/// retain the job's owner after a one-shot row is deleted.
+/// `2.1.0` adds optional `CronJobCompleted` tenant ownership.
pub const EVENTS_VERSION: Version = Version::new(2, 1, 0);
/// The bus. Initialised once by [`init`]; safe to touch before that.
diff --git a/crates/openhuman-core/src/core/events.rs b/crates/openhuman-core/src/core/events.rs
index d8987e3262..ccbf587652 100644
--- a/crates/openhuman-core/src/core/events.rs
+++ b/crates/openhuman-core/src/core/events.rs
@@ -384,8 +384,7 @@ pub enum DomainEvent {
job_id: String,
success: bool,
output: String,
- /// The tenant that ran the job. A one-shot job may be deleted before
- /// subscribers process this event, so ownership must travel with it.
+ /// Captured owner; one-shot rows may be deleted before subscribers run.
#[serde(default, skip_serializing_if = "Option::is_none")]
tenant: Option<crate::core::runtime::Tenant>,
},
diff --git a/crates/openhuman-core/src/core/events_tests.rs b/crates/openhuman-core/src/core/events_tests.rs
index 4890b05d4b..b601e5b0a2 100644
--- a/crates/openhuman-core/src/core/events_tests.rs
+++ b/crates/openhuman-core/src/core/events_tests.rs
@@ -917,9 +917,6 @@ fn every_workspace_bound_variant_is_reachable_through_one_accessor() {
}
}
-/// `None` here means "not bound to a workspace", which a consumer filtering
-/// by workspace must let through rather than drop. Getting this backwards
-/// would silence cron, webhook and sub-agent notifications entirely.
#[test]
fn events_without_a_workspace_report_none() {
assert_eq!(