Skip to content

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

fix: unblock release CI checks

Steven Enamakelc3ead60d6822
diff --git a/Cargo.lock b/Cargo.lock
index 06f8e3b074..ced80ed881 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -145,7 +145,7 @@ version = "1.1.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "40c48f72fd53cd289104fc64099abca73db4166ad86ea0b4341abe65af83dadc"
dependencies = [
- "windows-sys 0.61.2",
+ "windows-sys 0.60.2",
]
[[package]]
@@ -156,7 +156,7 @@ checksum = "291e6a250ff86cd4a820112fb8898808a366d8f9f58ce16d1f538353ad55747d"
dependencies = [
"anstyle",
"once_cell_polyfill",
- "windows-sys 0.61.2",
+ "windows-sys 0.60.2",
]
[[package]]
@@ -1701,7 +1701,7 @@ dependencies = [
"libc",
"option-ext",
"redox_users",
- "windows-sys 0.61.2",
+ "windows-sys 0.60.2",
]
[[package]]
@@ -1928,7 +1928,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"
dependencies = [
"libc",
- "windows-sys 0.61.2",
+ "windows-sys 0.60.2",
]
[[package]]
@@ -3577,7 +3577,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.60.2",
]
[[package]]
@@ -4884,7 +4884,7 @@ dependencies = [
"once_cell",
"socket2",
"tracing",
- "windows-sys 0.61.2",
+ "windows-sys 0.60.2",
]
[[package]]
@@ -5357,7 +5357,7 @@ dependencies = [
"errno",
"libc",
"linux-raw-sys",
- "windows-sys 0.61.2",
+ "windows-sys 0.60.2",
]
[[package]]
@@ -5919,7 +5919,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]]
@@ -6172,10 +6172,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd"
dependencies = [
"fastrand",
- "getrandom 0.4.3",
+ "getrandom 0.3.4",
"once_cell",
"rustix",
- "windows-sys 0.61.2",
+ "windows-sys 0.60.2",
]
[[package]]
@@ -6188,7 +6188,7 @@ dependencies = [
"parking_lot",
"rustix",
"signal-hook",
- "windows-sys 0.61.2",
+ "windows-sys 0.60.2",
]
[[package]]
@@ -6653,7 +6653,7 @@ dependencies = [
[[package]]
name = "tinyconnectors"
-version = "0.11.0"
+version = "0.11.1"
dependencies = [
"async-trait",
"chrono",
@@ -6672,7 +6672,7 @@ dependencies = [
[[package]]
name = "tinyconnectors-bus"
-version = "0.11.0"
+version = "0.11.1"
dependencies = [
"serde",
"serde_json",
@@ -6680,7 +6680,7 @@ dependencies = [
[[package]]
name = "tinyconnectors-sync"
-version = "0.11.0"
+version = "0.11.1"
dependencies = [
"async-trait",
"chrono",
@@ -8430,7 +8430,7 @@ version = "0.1.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22"
dependencies = [
- "windows-sys 0.61.2",
+ "windows-sys 0.60.2",
]
[[package]]
diff --git a/app/test/playwright/specs/settings-advanced-config.spec.ts b/app/test/playwright/specs/settings-advanced-config.spec.ts
index 1063fe3a80..db257929ef 100644
--- a/app/test/playwright/specs/settings-advanced-config.spec.ts
+++ b/app/test/playwright/specs/settings-advanced-config.spec.ts
@@ -90,7 +90,11 @@ test.describe('Settings - Advanced Config', () => {
await expect(page.getByRole('heading', { name: 'Max actions per hour' })).toBeVisible();
await page.locator('#autonomy-max-actions').fill(String(target));
- await page.getByRole('button', { name: 'Save' }).click();
+ await page
+ .locator('#autonomy-max-actions')
+ .locator('xpath=ancestor::div[.//button[normalize-space()="Save"]][1]')
+ .getByRole('button', { name: 'Save' })
+ .click();
await expect(page.getByText('Saved.')).toBeVisible();
await expect
diff --git a/crates/openhuman-core/src/agent/learning/stability_detector.rs b/crates/openhuman-core/src/agent/learning/stability_detector.rs
index f3c7c6bd6b..6b178184b2 100644
--- a/crates/openhuman-core/src/agent/learning/stability_detector.rs
+++ b/crates/openhuman-core/src/agent/learning/stability_detector.rs
@@ -31,7 +31,7 @@
//! rows by stability. Excess Active rows are demoted to Provisional. A cross-class
//! overflow pool holds up to `BUDGET_OVERFLOW` extra Provisional rows.
-use std::collections::{HashMap, HashSet};
+use std::collections::HashMap;
use std::path::{Path, PathBuf};
use std::sync::{Arc, OnceLock, PoisonError};
@@ -603,244 +603,9 @@ fn store_rebuild_time(path: &Path, at: f64) -> std::io::Result<()> {
}
/// The later of two times, either of which may be unknown.
-fn later(a: Option<f64>, b: Option<f64>) -> Option<f64> {
- match (a, b) {
- (Some(a), Some(b)) => Some(a.max(b)),
- (a, b) => a.or(b),
- }
-}
-
-// ── Rebuild internals ─────────────────────────────────────────────────────────
-
-struct ComputedFacet {
- is_new: bool,
- facet: ProfileFacet,
-}
-
-/// Choose the winning value for a `(class, key)` group via `argmax(stability)`.
-///
-/// Returns the value with the highest combined evidence weight. Falls back to the
-/// existing row's value if no candidates are present.
-fn select_winning_value(
- cands: &[LearningCandidate],
- existing: Option<&ProfileFacet>,
- now: f64,
- class: FacetClass,
-) -> Option<String> {
- if cands.is_empty() {
- return existing.map(|f| f.value.clone());
- }
-
- // Score each distinct value.
- let mut value_scores: HashMap<&str, f64> = HashMap::new();
- for c in cands {
- let dt = (now - c.observed_at).max(0.0);
- let recency = (-dt / half_life(class)).exp();
- let score = c.cue_family.weight() * recency * c.initial_confidence;
- *value_scores.entry(c.value.as_str()).or_default() += score;
- }
-
- // If existing row matches a candidate value, add its weight too.
- if let Some(existing) = existing {
- let dt = (now - existing.last_seen_at).max(0.0);
- let recency = (-dt / half_life(class)).exp();
- let existing_score = recency * existing.confidence;
- *value_scores.entry(existing.value.as_str()).or_default() += existing_score;
- }
-
- value_scores
- .into_iter()
- .max_by(|(_, a), (_, b)| a.partial_cmp(b).unwrap_or(std::cmp::Ordering::Equal))
- .map(|(v, _)| v.to_string())
-}
-
-/// Whether a recomputed facet says something its stored row does not: any
-/// field other than the two scores, or a score that moved by at least
-/// `tolerance` ([`REWRITE_TOLERANCE`] in production). `last_seen_at` is left
-/// out on purpose — see the constant's docs.
-pub(crate) fn worth_rewriting(
- held: &ProfileFacet,
- computed: &ProfileFacet,
- tolerance: f64,
-) -> bool {
- held.value != computed.value
- || held.state != computed.state
- || held.user_state != computed.user_state
- || held.facet_type != computed.facet_type
- || held.evidence_count != computed.evidence_count
- || held.evidence_refs != computed.evidence_refs
- || held.source_segment_ids != computed.source_segment_ids
- || held.class != computed.class
- || held.cue_families != computed.cue_families
- || held.first_seen_at != computed.first_seen_at
- || (held.confidence - computed.confidence).abs() >= tolerance
- || (held.stability - computed.stability).abs() >= tolerance
-}
-
-/// Aggregate stability contribution from all candidates (not per-value).
-/// Returns (aggregate_score, has_explicit_evidence).
-fn aggregate_stability(
- cands: &[LearningCandidate],
- existing: Option<&ProfileFacet>,
- now: f64,
- class: FacetClass,
-) -> (f64, bool) {
- let mut score = 0.0f64;
- let mut has_explicit = false;
-
- for c in cands {
- let dt = (now - c.observed_at).max(0.0);
- let recency = (-dt / half_life(class)).exp();
- score += c.cue_family.weight() * recency;
- if matches!(c.cue_family, CueFamily::Explicit) {
- has_explicit = true;
- }
- }
-
- if let Some(existing) = existing {
- let dt = (now - existing.last_seen_at).max(0.0);
- let recency = (-dt / half_life(class)).exp();
- score += existing.confidence * recency;
- }
-
- (score, has_explicit)
-}
-
-/// Determine the dominant cue family (highest weight).
-fn dominant_cue(cands: &[LearningCandidate], _existing: Option<&ProfileFacet>) -> CueFamily {
- cands
- .iter()
- .max_by(|a, b| {
- a.cue_family
- .weight()
- .partial_cmp(&b.cue_family.weight())
- .unwrap_or(std::cmp::Ordering::Equal)
- })
- .map(|c| c.cue_family)
- .unwrap_or(CueFamily::Behavioral)
-}
-
-/// Convert the learning domain's `EvidenceRef` to the memory contract's.
-///
-/// # Why a conversion and not one type
-///
-/// They are the *same shape* — `memory/api/host/evidence.rs` and
-/// `tinymemory-api`'s copy are byte-identical, and this round-trips through
-/// serde precisely because of that. They are nominally distinct only because
-/// the learning candidate types still live in `tinymemory_core`, so
-/// `candidate::EvidenceRef` resolves to the crate's copy while
-/// `ProfileFacet::evidence_refs` uses the host's.
-///
-/// This bridge disappears when `learning_candidate` comes home — it is agent
-/// domain knowledge, not engine storage, and belongs host-side with the rest of
-/// the learning subsystem. Tracked as stage 4 in
-/// `docs/specs/2026-08-13-memory-module-port.md`.
-fn evidence_to_contract(refs: &[candidate::EvidenceRef]) -> Vec<tinymemory_api::host::EvidenceRef> {
- refs.iter()
- .filter_map(|r| {
- serde_json::to_value(r)
- .ok()
- .and_then(|v| serde_json::from_value(v).ok())
- })
- .collect()
-}
-
-/// The inverse of [`evidence_to_contract`].
-fn evidence_from_contract(
- refs: &[tinymemory_api::host::EvidenceRef],
-) -> Vec<candidate::EvidenceRef> {
- refs.iter()
- .filter_map(|r| {
- serde_json::to_value(r)
- .ok()
- .and_then(|v| serde_json::from_value(v).ok())
- })
- .collect()
-}
-
-/// Merge the existing row's evidence refs with this cycle's new refs,
-/// deduplicating while preserving first-seen order.
-///
-/// `Vec::dedup_by` only collapses *consecutive* equal elements, so a ref that
-/// recurs non-adjacently — present in the existing row and re-emitted by a new
-/// candidate, or repeated within one cycle — would slip through and accumulate
-/// without bound across rebuilds. `EvidenceRef: Eq + Hash`, so tracking seen
-/// refs in a set removes every duplicate exactly and cheaply.
-fn merge_evidence_refs(
- existing_refs: &[candidate::EvidenceRef],
- new_refs: Vec<candidate::EvidenceRef>,
-) -> Vec<candidate::EvidenceRef> {
- let mut seen: HashSet<candidate::EvidenceRef> = HashSet::new();
- existing_refs
- .iter()
- .cloned()
- .chain(new_refs)
- .filter(|r| seen.insert(r.clone()))
- .collect()
-}
-
-/// Total evidence count from candidates + existing row.
-fn total_evidence_count(cands: &[LearningCandidate], existing: Option<&ProfileFacet>) -> u32 {
- let from_existing = existing.map(|f| f.evidence_count as u32).unwrap_or(0);
- from_existing + cands.len() as u32
-}
-
-/// The most recent observation timestamp across candidates and the existing row.
-///
-/// The result is floored at `now - half_life(class)` so a facet's recency decay
-/// in [`stability`] bottoms out at one (class-specific) half-life. The floor
-/// must use the facet's own `class`: every other per-group computation in
-/// `rebuild` is class-scoped, and the half-lives span 7d (Channel) to 90d
-/// (Identity), so a hardcoded class would over-retain longer-lived facets and
-/// evict shorter-lived ones too early.
-/// An existing row counts as reinforced when it was last written, or at the
-/// previous rebuild (`refreshed_at`), whichever is later: that rebuild would
-/// have rewritten the row before rows that barely moved were skipped.
-fn most_recent_reinforcement(
- cands: &[LearningCandidate],
- existing: Option<&ProfileFacet>,
- refreshed_at: Option<f64>,
- now: f64,
- class: FacetClass,
-) -> f64 {
- let newest_cand = cands
- .iter()
- .map(|c| c.observed_at)
- .fold(f64::NEG_INFINITY, f64::max);
- let existing_ts = existing
- .map(|f| {
- f.last_seen_at
- .max(refreshed_at.unwrap_or(f64::NEG_INFINITY))
- })
- .unwrap_or(f64::NEG_INFINITY);
- newest_cand.max(existing_ts).max(now - half_life(class))
-}
-
-/// Map a stability score + user_state to a lifecycle state.
-fn state_from_stability(score: f64, user_state: UserState) -> FacetState {
- // Pinned → always Active; Forgotten → always Dropped.
- if matches!(user_state, UserState::Pinned) {
- return FacetState::Active;
- }
- if matches!(user_state, UserState::Forgotten) {
- return FacetState::Dropped;
- }
-
- if score.is_infinite() || score >= TAU_PROMOTE {
- FacetState::Active
- } else if score >= TAU_PROVISIONAL {
- FacetState::Provisional
- } else if score >= TAU_EVICT {
- FacetState::Candidate
- } else {
- FacetState::Dropped
- }
-}
-
-/// Canonical key prefix string for a class (used when grouping candidates).
-fn class_prefix(class: FacetClass) -> &'static str {
- crate::agent::learning::cache::class_prefix(class)
-}
+#[path = "stability_detector_helpers.rs"]
+mod helpers;
+use helpers::*;
// ── Tests ─────────────────────────────────────────────────────────────────────
diff --git a/crates/openhuman-core/src/agent/learning/stability_detector_helpers.rs b/crates/openhuman-core/src/agent/learning/stability_detector_helpers.rs
new file mode 100644
index 0000000000..02bd8cb763
--- /dev/null
+++ b/crates/openhuman-core/src/agent/learning/stability_detector_helpers.rs
@@ -0,0 +1,254 @@
+//! Private aggregation helpers for the stability detector.
+
+use std::collections::{HashMap, HashSet};
+
+use super::{half_life, TAU_EVICT, TAU_PROMOTE, TAU_PROVISIONAL};
+use crate::agent::learning::candidate::{self, CueFamily, FacetClass, LearningCandidate};
+use tinymemory_api::provider::{FacetState, ProfileFacet, UserState};
+
+pub(super) fn later(a: Option<f64>, b: Option<f64>) -> Option<f64> {
+ match (a, b) {
+ (Some(a), Some(b)) => Some(a.max(b)),
+ (a, b) => a.or(b),
+ }
+}
+
+// ── Rebuild internals ─────────────────────────────────────────────────────────
+
+pub(super) struct ComputedFacet {
+ pub(super) is_new: bool,
+ pub(super) facet: ProfileFacet,
+}
+
+/// Choose the winning value for a `(class, key)` group via `argmax(stability)`.
+///
+/// Returns the value with the highest combined evidence weight. Falls back to the
+/// existing row's value if no candidates are present.
+pub(super) fn select_winning_value(
+ cands: &[LearningCandidate],
+ existing: Option<&ProfileFacet>,
+ now: f64,
+ class: FacetClass,
+) -> Option<String> {
+ if cands.is_empty() {
+ return existing.map(|f| f.value.clone());
+ }
+
+ // Score each distinct value.
+ let mut value_scores: HashMap<&str, f64> = HashMap::new();
+ for c in cands {
+ let dt = (now - c.observed_at).max(0.0);
+ let recency = (-dt / half_life(class)).exp();
+ let score = c.cue_family.weight() * recency * c.initial_confidence;
+ *value_scores.entry(c.value.as_str()).or_default() += score;
+ }
+
+ // If existing row matches a candidate value, add its weight too.
+ if let Some(existing) = existing {
+ let dt = (now - existing.last_seen_at).max(0.0);
+ let recency = (-dt / half_life(class)).exp();
+ let existing_score = recency * existing.confidence;
+ *value_scores.entry(existing.value.as_str()).or_default() += existing_score;
+ }
+
+ value_scores
+ .into_iter()
+ .max_by(|(_, a), (_, b)| a.partial_cmp(b).unwrap_or(std::cmp::Ordering::Equal))
+ .map(|(v, _)| v.to_string())
+}
+
+/// Whether a recomputed facet says something its stored row does not: any
+/// field other than the two scores, or a score that moved by at least
+/// `tolerance` ([`REWRITE_TOLERANCE`] in production). `last_seen_at` is left
+/// out on purpose — see the constant's docs.
+pub(crate) fn worth_rewriting(
+ held: &ProfileFacet,
+ computed: &ProfileFacet,
+ tolerance: f64,
+) -> bool {
+ held.value != computed.value
+ || held.state != computed.state
+ || held.user_state != computed.user_state
+ || held.facet_type != computed.facet_type
+ || held.evidence_count != computed.evidence_count
+ || held.evidence_refs != computed.evidence_refs
+ || held.source_segment_ids != computed.source_segment_ids
+ || held.class != computed.class
+ || held.cue_families != computed.cue_families
+ || held.first_seen_at != computed.first_seen_at
+ || (held.confidence - computed.confidence).abs() >= tolerance
+ || (held.stability - computed.stability).abs() >= tolerance
+}
+
+/// Aggregate stability contribution from all candidates (not per-value).
+/// Returns (aggregate_score, has_explicit_evidence).
+pub(super) fn aggregate_stability(
+ cands: &[LearningCandidate],
+ existing: Option<&ProfileFacet>,
+ now: f64,
+ class: FacetClass,
+) -> (f64, bool) {
+ let mut score = 0.0f64;
+ let mut has_explicit = false;
+
+ for c in cands {
+ let dt = (now - c.observed_at).max(0.0);
+ let recency = (-dt / half_life(class)).exp();
+ score += c.cue_family.weight() * recency;
+ if matches!(c.cue_family, CueFamily::Explicit) {
+ has_explicit = true;
+ }
+ }
+
+ if let Some(existing) = existing {
+ let dt = (now - existing.last_seen_at).max(0.0);
+ let recency = (-dt / half_life(class)).exp();
+ score += existing.confidence * recency;
+ }
+
+ (score, has_explicit)
+}
+
+/// Determine the dominant cue family (highest weight).
+pub(super) fn dominant_cue(
+ cands: &[LearningCandidate],
+ _existing: Option<&ProfileFacet>,
+) -> CueFamily {
+ cands
+ .iter()
+ .max_by(|a, b| {
+ a.cue_family
+ .weight()
+ .partial_cmp(&b.cue_family.weight())
+ .unwrap_or(std::cmp::Ordering::Equal)
+ })
+ .map(|c| c.cue_family)
+ .unwrap_or(CueFamily::Behavioral)
+}
+
+/// Convert the learning domain's `EvidenceRef` to the memory contract's.
+///
+/// # Why a conversion and not one type
+///
+/// They are the *same shape* — `memory/api/host/evidence.rs` and
+/// `tinymemory-api`'s copy are byte-identical, and this round-trips through
+/// serde precisely because of that. They are nominally distinct only because
+/// the learning candidate types still live in `tinymemory_core`, so
+/// `candidate::EvidenceRef` resolves to the crate's copy while
+/// `ProfileFacet::evidence_refs` uses the host's.
+///
+/// This bridge disappears when `learning_candidate` comes home — it is agent
+/// domain knowledge, not engine storage, and belongs host-side with the rest of
+/// the learning subsystem. Tracked as stage 4 in
+/// `docs/specs/2026-08-13-memory-module-port.md`.
+pub(super) fn evidence_to_contract(
+ refs: &[candidate::EvidenceRef],
+) -> Vec<tinymemory_api::host::EvidenceRef> {
+ refs.iter()
+ .filter_map(|r| {
+ serde_json::to_value(r)
+ .ok()
+ .and_then(|v| serde_json::from_value(v).ok())
+ })
+ .collect()
+}
+
+/// The inverse of [`evidence_to_contract`].
+pub(super) fn evidence_from_contract(
+ refs: &[tinymemory_api::host::EvidenceRef],
+) -> Vec<candidate::EvidenceRef> {
+ refs.iter()
+ .filter_map(|r| {
+ serde_json::to_value(r)
+ .ok()
+ .and_then(|v| serde_json::from_value(v).ok())
+ })
+ .collect()
+}
+
+/// Merge the existing row's evidence refs with this cycle's new refs,
+/// deduplicating while preserving first-seen order.
+///
+/// `Vec::dedup_by` only collapses *consecutive* equal elements, so a ref that
+/// recurs non-adjacently — present in the existing row and re-emitted by a new
+/// candidate, or repeated within one cycle — would slip through and accumulate
+/// without bound across rebuilds. `EvidenceRef: Eq + Hash`, so tracking seen
+/// refs in a set removes every duplicate exactly and cheaply.
+pub(super) fn merge_evidence_refs(
+ existing_refs: &[candidate::EvidenceRef],
+ new_refs: Vec<candidate::EvidenceRef>,
+) -> Vec<candidate::EvidenceRef> {
+ let mut seen: HashSet<candidate::EvidenceRef> = HashSet::new();
+ existing_refs
+ .iter()
+ .cloned()
+ .chain(new_refs)
+ .filter(|r| seen.insert(r.clone()))
+ .collect()
+}
+
+/// Total evidence count from candidates + existing row.
+pub(super) fn total_evidence_count(
+ cands: &[LearningCandidate],
+ existing: Option<&ProfileFacet>,
+) -> u32 {
+ let from_existing = existing.map(|f| f.evidence_count as u32).unwrap_or(0);
+ from_existing + cands.len() as u32
+}
+
+/// The most recent observation timestamp across candidates and the existing row.
+///
+/// The result is floored at `now - half_life(class)` so a facet's recency decay
+/// in [`stability`] bottoms out at one (class-specific) half-life. The floor
+/// must use the facet's own `class`: every other per-group computation in
+/// `rebuild` is class-scoped, and the half-lives span 7d (Channel) to 90d
+/// (Identity), so a hardcoded class would over-retain longer-lived facets and
+/// evict shorter-lived ones too early.
+/// An existing row counts as reinforced when it was last written, or at the
+/// previous rebuild (`refreshed_at`), whichever is later: that rebuild would
+/// have rewritten the row before rows that barely moved were skipped.
+pub(super) fn most_recent_reinforcement(
+ cands: &[LearningCandidate],
+ existing: Option<&ProfileFacet>,
+ refreshed_at: Option<f64>,
+ now: f64,
+ class: FacetClass,
+) -> f64 {
+ let newest_cand = cands
+ .iter()
+ .map(|c| c.observed_at)
+ .fold(f64::NEG_INFINITY, f64::max);
+ let existing_ts = existing
+ .map(|f| {
+ f.last_seen_at
+ .max(refreshed_at.unwrap_or(f64::NEG_INFINITY))
+ })
+ .unwrap_or(f64::NEG_INFINITY);
+ newest_cand.max(existing_ts).max(now - half_life(class))
+}
+
+/// Map a stability score + user_state to a lifecycle state.
+pub(super) fn state_from_stability(score: f64, user_state: UserState) -> FacetState {
+ // Pinned → always Active; Forgotten → always Dropped.
+ if matches!(user_state, UserState::Pinned) {
+ return FacetState::Active;
+ }
+ if matches!(user_state, UserState::Forgotten) {
+ return FacetState::Dropped;
+ }
+
+ if score.is_infinite() || score >= TAU_PROMOTE {
+ FacetState::Active
+ } else if score >= TAU_PROVISIONAL {
+ FacetState::Provisional
+ } else if score >= TAU_EVICT {
+ FacetState::Candidate
+ } else {
+ FacetState::Dropped
+ }
+}
+
+/// Canonical key prefix string for a class (used when grouping candidates).
+pub(super) fn class_prefix(class: FacetClass) -> &'static str {
+ crate::agent::learning::cache::class_prefix(class)
+}
diff --git a/crates/openhuman-core/src/agent/learning/stability_detector_rebuild_time_tests.rs b/crates/openhuman-core/src/agent/learning/stability_detector_rebuild_time_tests.rs
new file mode 100644
index 0000000000..f8dfe940a0
--- /dev/null
+++ b/crates/openhuman-core/src/agent/learning/stability_detector_rebuild_time_tests.rs
@@ -0,0 +1,24 @@
+use super::*;
+
+/// Rebuilds that finish together leave the latest time stored, whatever
+/// order their writes land in, and an earlier rebuild finishing late does
+/// not move it back.
+#[test]
+fn the_stored_rebuild_time_only_moves_forward() {
+ let workspace = tempfile::tempdir().unwrap();
+ let path = workspace.path().join(REBUILD_STATE_FILE);
+ store_rebuild_time(&path, 2_000.0).unwrap();
+ store_rebuild_time(&path, 1_000.0).unwrap();
+ assert_eq!(read_rebuild_time(&path), Some(2_000.0));
+
+ let writers: Vec<_> = (0..16)
+ .map(|i| {
+ let path = path.clone();
+ std::thread::spawn(move || store_rebuild_time(&path, 3_000.0 + f64::from(i)))
+ })
+ .collect();
+ for writer in writers {
+ writer.join().unwrap().unwrap();
+ }
+ assert_eq!(read_rebuild_time(&path), Some(3_015.0));
+}
diff --git a/crates/openhuman-core/src/agent/learning/stability_detector_tests.rs b/crates/openhuman-core/src/agent/learning/stability_detector_tests.rs
index aeaf2143cc..68c0cb1c90 100644
--- a/crates/openhuman-core/src/agent/learning/stability_detector_tests.rs
+++ b/crates/openhuman-core/src/agent/learning/stability_detector_tests.rs
@@ -731,25 +731,5 @@ async fn rebuilds_over_one_workspace_take_turns() {
waiting.await.unwrap().unwrap();
}
-/// Rebuilds that finish together leave the latest time stored, whatever
-/// order their writes land in, and an earlier rebuild finishing late does
-/// not move it back.
-#[test]
-fn the_stored_rebuild_time_only_moves_forward() {
- let workspace = tempfile::tempdir().unwrap();
- let path = workspace.path().join(REBUILD_STATE_FILE);
- store_rebuild_time(&path, 2_000.0).unwrap();
- store_rebuild_time(&path, 1_000.0).unwrap();
- assert_eq!(read_rebuild_time(&path), Some(2_000.0));
-
- let writers: Vec<_> = (0..16)
- .map(|i| {
- let path = path.clone();
- std::thread::spawn(move || store_rebuild_time(&path, 3_000.0 + f64::from(i)))
- })
- .collect();
- for writer in writers {
- writer.join().unwrap().unwrap();
- }
- assert_eq!(read_rebuild_time(&path), Some(3_015.0));
-}
+#[path = "stability_detector_rebuild_time_tests.rs"]
+mod rebuild_time_tests;
diff --git a/crates/openhuman-core/src/agent/orchestration/running_subagents/task_ledger.rs b/crates/openhuman-core/src/agent/orchestration/running_subagents/task_ledger.rs
index e296636131..07088a23cc 100644
--- a/crates/openhuman-core/src/agent/orchestration/running_subagents/task_ledger.rs
+++ b/crates/openhuman-core/src/agent/orchestration/running_subagents/task_ledger.rs
@@ -115,7 +115,11 @@ pub(crate) fn record_cancelled(workspace_dir: &Path, task_id: &str) {
task_id,
workspace_dir.display()
);
- ledger_cancelled(task_store_for_workspace(workspace_dir).as_ref(), task_id);
+ if let Err(err) = ledger_cancelled(task_store_for_workspace(workspace_dir).as_ref(), task_id) {
+ log::debug!(
+ "[running_subagents] cancellation ledger update ignored task_id={task_id} error={err}"
+ );
+ }
}
pub(crate) fn list_task_records(workspace_dir: &Path) -> Vec<OrchestrationTaskRecord> {
diff --git a/crates/openhuman-core/src/agent/session_host/mod.rs b/crates/openhuman-core/src/agent/session_host/mod.rs
index bca6538a8d..4075ce0396 100644
--- a/crates/openhuman-core/src/agent/session_host/mod.rs
+++ b/crates/openhuman-core/src/agent/session_host/mod.rs
@@ -71,8 +71,8 @@ mod artifact_wiring;
#[cfg(test)]
mod orphaned_head_resume_tests;
#[cfg(test)]
-mod typed_transcript_compat_tests;
-#[cfg(test)]
mod runtime_adapter_tests;
#[cfg(test)]
mod transcript_compat_tests;
+#[cfg(test)]
+mod typed_transcript_compat_tests;
diff --git a/crates/openhuman-core/src/core/all_extension_tests.rs b/crates/openhuman-core/src/core/all_extension_tests.rs
new file mode 100644
index 0000000000..7e4cca19fd
--- /dev/null
+++ b/crates/openhuman-core/src/core/all_extension_tests.rs
@@ -0,0 +1,112 @@
+use super::*;
+
+fn ext_controller(namespace: &'static str, function: &'static str) -> RegisteredController {
+ fn handler(_params: Map<String, serde_json::Value>) -> ControllerFuture {
+ Box::pin(async { Ok(serde_json::json!({"ext": true})) })
+ }
+ RegisteredController {
+ schema: schema(namespace, function, vec![]),
+ handler,
+ }
+}
+
+/// An extension's controllers are first-class for every lookup: schema,
+/// dispatch, method routing, capability facts and the namespace description.
+#[tokio::test]
+async fn registry_extension_is_visible_to_every_lookup_and_dispatches() {
+ register_controller_extension(ControllerExtension {
+ group: DomainGroup::Hosted,
+ controllers: vec![ext_controller("ext_probe", "ping")],
+ namespaces: &[("ext_probe", "Registry extension probe.")],
+ })
+ .expect("register extension");
+
+ assert_eq!(
+ rpc_method_from_parts("ext_probe", "ping").as_deref(),
+ Some("openhuman.ext_probe_ping")
+ );
+ assert_eq!(capability_for_parts("ext_probe", "ping"), Some(None));
+ assert_eq!(
+ capability_for_rpc_method("openhuman.ext_probe_ping"),
+ Some(None)
+ );
+ assert!(schema_for_rpc_method("openhuman.ext_probe_ping").is_some());
+ assert!(all_controller_schemas()
+ .iter()
+ .any(|s| s.namespace == "ext_probe" && s.function == "ping"));
+ assert_eq!(
+ namespace_description("ext_probe"),
+ Some("Registry extension probe.")
+ );
+
+ let result = try_invoke_registered_rpc("openhuman.ext_probe_ping", Map::new())
+ .await
+ .expect("extension method is dispatchable")
+ .expect("handler succeeds");
+ assert_eq!(result, serde_json::json!({"ext": true}));
+}
+
+/// Re-registering the identical set is a no-op; a *colliding* set (a built-in
+/// method) is refused by the same drift guard the boot registry passes.
+#[test]
+fn registry_extension_is_idempotent_and_refuses_collisions() {
+ let ext = || ControllerExtension {
+ group: DomainGroup::Hosted,
+ controllers: vec![ext_controller("ext_idem", "once")],
+ namespaces: &[("ext_idem", "Idempotency probe.")],
+ };
+ register_controller_extension(ext()).expect("first registration");
+ register_controller_extension(ext()).expect("identical re-registration is a no-op");
+ let count = {
+ let view = registry_view();
+ view.iter()
+ .filter(|g| g.controller.schema.namespace == "ext_idem")
+ .count()
+ };
+ assert_eq!(count, 1, "no duplicate rows after re-registration");
+
+ // `memory.list_files`-style collision with a built-in: pick any built-in.
+ let builtin = registry()
+ .first()
+ .expect("built-in registry is non-empty")
+ .controller
+ .schema
+ .clone();
+ let err = register_controller_extension(ControllerExtension {
+ group: DomainGroup::Hosted,
+ controllers: vec![ext_controller(builtin.namespace, builtin.function)],
+ namespaces: &[],
+ })
+ .expect_err("shadowing a built-in method must be refused");
+ assert!(err.contains("duplicate"), "{err}");
+}
+
+/// The ambient `DomainSet` gates extension controllers through their group,
+/// exactly like built-ins: with `hosted: false` the method is unknown.
+#[tokio::test]
+async fn registry_extension_is_gated_by_its_domain_group() {
+ register_controller_extension(ControllerExtension {
+ group: DomainGroup::Hosted,
+ controllers: vec![ext_controller("ext_gate", "ping")],
+ namespaces: &[],
+ })
+ .expect("register extension");
+
+ let mut domains = DomainSet::full();
+ domains.hosted = false;
+ let ctx = CoreContext::for_test(domains, None, None);
+ let hidden = CoreContext::scope(ctx, async {
+ (
+ try_invoke_registered_rpc("openhuman.ext_gate_ping", Map::new())
+ .await
+ .is_none(),
+ schema_for_rpc_method("openhuman.ext_gate_ping").is_none(),
+ )
+ })
+ .await;
+ assert_eq!(
+ hidden,
+ (true, true),
+ "hosted: false must hide the extension"
+ );
+}
diff --git a/crates/openhuman-core/src/core/all_tests.rs b/crates/openhuman-core/src/core/all_tests.rs
index e1d779cad2..25fd81f4dc 100644
--- a/crates/openhuman-core/src/core/all_tests.rs
+++ b/crates/openhuman-core/src/core/all_tests.rs
@@ -2601,113 +2601,5 @@ fn session_db_controllers_are_gone_and_run_ledger_survives() {
// ── Controller extensions (crates above the core) ──────────────────────────
-fn ext_controller(namespace: &'static str, function: &'static str) -> RegisteredController {
- fn handler(_params: Map<String, serde_json::Value>) -> ControllerFuture {
- Box::pin(async { Ok(serde_json::json!({"ext": true})) })
- }
- RegisteredController {
- schema: schema(namespace, function, vec![]),
- handler,
- }
-}
-
-/// An extension's controllers are first-class for every lookup: schema,
-/// dispatch, method routing, capability facts and the namespace description.
-#[tokio::test]
-async fn registry_extension_is_visible_to_every_lookup_and_dispatches() {
- register_controller_extension(ControllerExtension {
- group: DomainGroup::Hosted,
- controllers: vec![ext_controller("ext_probe", "ping")],
- namespaces: &[("ext_probe", "Registry extension probe.")],
- })
- .expect("register extension");
-
- assert_eq!(
- rpc_method_from_parts("ext_probe", "ping").as_deref(),
- Some("openhuman.ext_probe_ping")
- );
- assert_eq!(capability_for_parts("ext_probe", "ping"), Some(None));
- assert_eq!(
- capability_for_rpc_method("openhuman.ext_probe_ping"),
- Some(None)
- );
- assert!(schema_for_rpc_method("openhuman.ext_probe_ping").is_some());
- assert!(all_controller_schemas()
- .iter()
- .any(|s| s.namespace == "ext_probe" && s.function == "ping"));
- assert_eq!(
- namespace_description("ext_probe"),
- Some("Registry extension probe.")
- );
-
- let result = try_invoke_registered_rpc("openhuman.ext_probe_ping", Map::new())
- .await
- .expect("extension method is dispatchable")
- .expect("handler succeeds");
- assert_eq!(result, serde_json::json!({"ext": true}));
-}
-
-/// Re-registering the identical set is a no-op; a *colliding* set (a built-in
-/// method) is refused by the same drift guard the boot registry passes.
-#[test]
-fn registry_extension_is_idempotent_and_refuses_collisions() {
- let ext = || ControllerExtension {
- group: DomainGroup::Hosted,
- controllers: vec![ext_controller("ext_idem", "once")],
- namespaces: &[("ext_idem", "Idempotency probe.")],
- };
- register_controller_extension(ext()).expect("first registration");
- register_controller_extension(ext()).expect("identical re-registration is a no-op");
- let count = {
- let view = registry_view();
- view.iter()
- .filter(|g| g.controller.schema.namespace == "ext_idem")
- .count()
- };
- assert_eq!(count, 1, "no duplicate rows after re-registration");
-
- // `memory.list_files`-style collision with a built-in: pick any built-in.
- let builtin = registry()
- .first()
- .expect("built-in registry is non-empty")
- .controller
- .schema
- .clone();
- let err = register_controller_extension(ControllerExtension {
- group: DomainGroup::Hosted,
- controllers: vec![ext_controller(builtin.namespace, builtin.function)],
- namespaces: &[],
- })
- .expect_err("shadowing a built-in method must be refused");
- assert!(err.contains("duplicate"), "{err}");
-}
-
-/// The ambient `DomainSet` gates extension controllers through their group,
-/// exactly like built-ins: with `hosted: false` the method is unknown.
-#[tokio::test]
-async fn registry_extension_is_gated_by_its_domain_group() {
- register_controller_extension(ControllerExtension {
- group: DomainGroup::Hosted,
- controllers: vec![ext_controller("ext_gate", "ping")],
- namespaces: &[],
- })
- .expect("register extension");
-
- let mut domains = DomainSet::full();
- domains.hosted = false;
- let ctx = CoreContext::for_test(domains, None, None);
- let hidden = CoreContext::scope(ctx, async {
- (
- try_invoke_registered_rpc("openhuman.ext_gate_ping", Map::new())
- .await
- .is_none(),
- schema_for_rpc_method("openhuman.ext_gate_ping").is_none(),
- )
- })
- .await;
- assert_eq!(
- hidden,
- (true, true),
- "hosted: false must hide the extension"
- );
-}
+#[path = "all_extension_tests.rs"]
+mod extension_tests;
diff --git a/crates/openhuman-core/src/inference/provider/openhuman_backend_model.rs b/crates/openhuman-core/src/inference/provider/openhuman_backend_model.rs
index 907ac5698b..b503b02990 100644
--- a/crates/openhuman-core/src/inference/provider/openhuman_backend_model.rs
+++ b/crates/openhuman-core/src/inference/provider/openhuman_backend_model.rs
@@ -638,80 +638,8 @@ fn observe_in_band_failure(item: &ModelStreamItem) {
}
}
-#[async_trait]
-impl ChatModel<()> for OpenHumanBackendModel {
- fn profile(&self) -> Option<&ModelProfile> {
- Some(&self.profile)
- }
-
- /// Identity for harness response-cache scoping: the backend base URL and
- /// the default tier/model. The session JWT is deliberately absent — it
- /// rotates, and a key derived from it would never hit twice — and the
- /// backend resolves the tier per account anyway, so two accounts sharing
- /// a cache would need their own namespace, not a credential in the key.
- fn cache_identity(&self) -> Option<String> {
- self.base_url()
- .ok()
- .map(|base| format!("openhuman:{base}:{}", self.default_model))
- }
-
- async fn invoke(
- &self,
- state: &(),
- request: ModelRequest,
- ) -> tinyinference_llm::Result<ModelResponse> {
- let model = self.build_wire_model()?;
- let response = match model
- .invoke(
- state,
- with_thread_id(apply_reasoning_hint(request), self.thread_id.as_deref()),
- )
- .await
- {
- Ok(response) => response,
- Err(e) => {
- log_managed_dispatch_error(&e, "invoke");
- maybe_publish_session_expired(&e, "invoke");
- return Err(e);
- }
- };
- Ok(project_managed_usage(response))
- }
-
- async fn stream(
- &self,
- state: &(),
- request: ModelRequest,
- ) -> tinyinference_llm::Result<ModelStream> {
- let model = self.build_wire_model()?;
- // NOTE (streaming billing parity): the crate SSE parser sets `raw: None`
- // on the terminal `Completed` response, so the `openhuman.billing` envelope
- // is not available to `project_managed_usage` here — a streaming managed
- // turn's charged USD falls back to the catalog cost estimate (token counts
- // survive via `UsageDelta`). The authoritative charged amount is recovered
- // on the non-streaming `invoke` path above. Restoring it for streaming
- // needs the crate to preserve the final chunk's raw JSON (tracked upstream).
- match model
- .stream(
- state,
- with_thread_id(apply_reasoning_hint(request), self.thread_id.as_deref()),
- )
- .await
- {
- // A failure can also arrive *inside* an HTTP 200 stream as an SSE
- // `{"error":…}` payload; it never reaches the `Err` arm (#6724).
- Ok(stream) => Ok(stream.map_items(|item| {
- observe_in_band_failure(&item);
- item
- })),
- Err(e) => {
- log_managed_dispatch_error(&e, "stream");
- maybe_publish_session_expired(&e, "stream");
- Err(e)
- }
- }
- }
-}
+#[path = "openhuman_backend_model_calls.rs"]
+mod calls;
/// Connect timeout for the shared managed-inference client; matches the
/// adapter's own default.
diff --git a/crates/openhuman-core/src/inference/provider/openhuman_backend_model_calls.rs b/crates/openhuman-core/src/inference/provider/openhuman_backend_model_calls.rs
new file mode 100644
index 0000000000..aade880961
--- /dev/null
+++ b/crates/openhuman-core/src/inference/provider/openhuman_backend_model_calls.rs
@@ -0,0 +1,76 @@
+use super::*;
+
+#[async_trait]
+impl ChatModel<()> for OpenHumanBackendModel {
+ fn profile(&self) -> Option<&ModelProfile> {
+ Some(&self.profile)
+ }
+
+ /// Identity for harness response-cache scoping: the backend base URL and
+ /// the default tier/model. The session JWT is deliberately absent — it
+ /// rotates, and a key derived from it would never hit twice — and the
+ /// backend resolves the tier per account anyway, so two accounts sharing
+ /// a cache would need their own namespace, not a credential in the key.
+ fn cache_identity(&self) -> Option<String> {
+ self.base_url()
+ .ok()
+ .map(|base| format!("openhuman:{base}:{}", self.default_model))
+ }
+
+ async fn invoke(
+ &self,
+ state: &(),
+ request: ModelRequest,
+ ) -> tinyinference_llm::Result<ModelResponse> {
+ let model = self.build_wire_model()?;
+ let response = match model
+ .invoke(
+ state,
+ with_thread_id(apply_reasoning_hint(request), self.thread_id.as_deref()),
+ )
+ .await
+ {
+ Ok(response) => response,
+ Err(e) => {
+ log_managed_dispatch_error(&e, "invoke");
+ maybe_publish_session_expired(&e, "invoke");
+ return Err(e);
+ }
+ };
+ Ok(project_managed_usage(response))
+ }
+
+ async fn stream(
+ &self,
+ state: &(),
+ request: ModelRequest,
+ ) -> tinyinference_llm::Result<ModelStream> {
+ let model = self.build_wire_model()?;
+ // NOTE (streaming billing parity): the crate SSE parser sets `raw: None`
+ // on the terminal `Completed` response, so the `openhuman.billing` envelope
+ // is not available to `project_managed_usage` here — a streaming managed
+ // turn's charged USD falls back to the catalog cost estimate (token counts
+ // survive via `UsageDelta`). The authoritative charged amount is recovered
+ // on the non-streaming `invoke` path above. Restoring it for streaming
+ // needs the crate to preserve the final chunk's raw JSON (tracked upstream).
+ match model
+ .stream(
+ state,
+ with_thread_id(apply_reasoning_hint(request), self.thread_id.as_deref()),
+ )
+ .await
+ {
+ // A failure can also arrive *inside* an HTTP 200 stream as an SSE
+ // `{"error":…}` payload; it never reaches the `Err` arm (#6724).
+ Ok(stream) => Ok(stream.map_items(|item| {
+ observe_in_band_failure(&item);
+ item
+ })),
+ Err(e) => {
+ log_managed_dispatch_error(&e, "stream");
+ maybe_publish_session_expired(&e, "stream");
+ Err(e)
+ }
+ }
+ }
+}
diff --git a/crates/openhuman-core/src/inference/provider/openhuman_backend_model_endpoint_tests.rs b/crates/openhuman-core/src/inference/provider/openhuman_backend_model_endpoint_tests.rs
new file mode 100644
index 0000000000..c2e7efa5c9
--- /dev/null
+++ b/crates/openhuman-core/src/inference/provider/openhuman_backend_model_endpoint_tests.rs
@@ -0,0 +1,61 @@
+use super::*;
+
+#[test]
+fn api_key_endpoint_is_bound_to_tinyhumans_or_loopback() {
+ use super::is_managed_endpoint_for_api_key;
+
+ assert!(is_managed_endpoint_for_api_key(
+ "https://api.tinyhumans.ai/openai/v1"
+ ));
+ assert!(is_managed_endpoint_for_api_key(
+ "http://127.0.0.1:18765/openai/v1"
+ ));
+ assert!(is_managed_endpoint_for_api_key(
+ "http://[::1]:18765/openai/v1"
+ ));
+ assert!(!is_managed_endpoint_for_api_key(
+ "https://example.com/openai/v1"
+ ));
+ assert!(!is_managed_endpoint_for_api_key(
+ "http://api.tinyhumans.ai/openai/v1"
+ ));
+}
+
+/// #6724 (review): a 401 reported *inside* a stream must start re-auth just
+/// like a failed `stream()` call does.
+#[tokio::test]
+async fn an_in_band_401_publishes_session_expired() {
+ use crate::core::events::DomainEvent;
+
+ crate::core::bus::init().await.expect("bus init");
+ let mut rx = crate::core::bus::BUS
+ .get()
+ .expect("event bus initialized")
+ .receiver();
+
+ observe_in_band_failure(&ModelStreamItem::ProviderFailed(ProviderError {
+ provider: PROVIDER_LABEL.to_string(),
+ status: Some(401),
+ message: "TEST_MARKER_IN_BAND token expired".to_string(),
+ ..ProviderError::default()
+ }));
+
+ let mut source_seen = None;
+ loop {
+ match rx.try_recv() {
+ Ok(DomainEvent::SessionExpired { source, reason })
+ if reason.contains("TEST_MARKER_IN_BAND") =>
+ {
+ source_seen = Some(source);
+ break;
+ }
+ Ok(_) | Err(tinybus::TryRecvError::Lagged(_)) => continue,
+ Err(_) => break,
+ }
+ }
+ assert_eq!(
+ source_seen.as_deref(),
+ Some("openhuman_backend_model.stream(401)"),
+ "an in-band 401 must publish SessionExpired"
+ );
+}
diff --git a/crates/openhuman-core/src/inference/provider/openhuman_backend_model_tests.rs b/crates/openhuman-core/src/inference/provider/openhuman_backend_model_tests.rs
index c3a0aaf0e3..00a6d9ffb4 100644
--- a/crates/openhuman-core/src/inference/provider/openhuman_backend_model_tests.rs
+++ b/crates/openhuman-core/src/inference/provider/openhuman_backend_model_tests.rs
@@ -700,62 +700,5 @@ fn resolve_bearer_returns_token_for_exp_less_offline_session() {
.expect("an exp-less offline session must resolve (presence-only)");
assert_eq!(token, "test.session.jwt");
}
-#[test]
-fn api_key_endpoint_is_bound_to_tinyhumans_or_loopback() {
- use super::is_managed_endpoint_for_api_key;
-
- assert!(is_managed_endpoint_for_api_key(
- "https://api.tinyhumans.ai/openai/v1"
- ));
- assert!(is_managed_endpoint_for_api_key(
- "http://127.0.0.1:18765/openai/v1"
- ));
- assert!(is_managed_endpoint_for_api_key(
- "http://[::1]:18765/openai/v1"
- ));
- assert!(!is_managed_endpoint_for_api_key(
- "https://example.com/openai/v1"
- ));
- assert!(!is_managed_endpoint_for_api_key(
- "http://api.tinyhumans.ai/openai/v1"
- ));
-}
-
-/// #6724 (review): a 401 reported *inside* a stream must start re-auth just
-/// like a failed `stream()` call does.
-#[tokio::test]
-async fn an_in_band_401_publishes_session_expired() {
- use crate::core::events::DomainEvent;
-
- crate::core::bus::init().await.expect("bus init");
- let mut rx = crate::core::bus::BUS
- .get()
- .expect("event bus initialized")
- .receiver();
-
- observe_in_band_failure(&ModelStreamItem::ProviderFailed(ProviderError {
- provider: PROVIDER_LABEL.to_string(),
- status: Some(401),
- message: "TEST_MARKER_IN_BAND token expired".to_string(),
- ..ProviderError::default()
- }));
-
- let mut source_seen = None;
- loop {
- match rx.try_recv() {
- Ok(DomainEvent::SessionExpired { source, reason })
- if reason.contains("TEST_MARKER_IN_BAND") =>
- {
- source_seen = Some(source);
- break;
- }
- Ok(_) | Err(tinybus::TryRecvError::Lagged(_)) => continue,
- Err(_) => break,
- }
- }
- assert_eq!(
- source_seen.as_deref(),
- Some("openhuman_backend_model.stream(401)"),
- "an in-band 401 must publish SessionExpired"
- );
-}
+#[path = "openhuman_backend_model_endpoint_tests.rs"]
+mod endpoint_tests;
diff --git a/crates/openhuman-core/src/modules/registry/records_mcp_connectors.rs b/crates/openhuman-core/src/modules/registry/records_mcp_connectors.rs
index ebb06a873f..fdd15fc7ae 100644
--- a/crates/openhuman-core/src/modules/registry/records_mcp_connectors.rs
+++ b/crates/openhuman-core/src/modules/registry/records_mcp_connectors.rs
@@ -94,63 +94,63 @@ pub(crate) const TINYCONNECTORS: ModuleRecord = ModuleRecord {
description: "OAuth connector integrations: accounts, actions, triggers, and record sync",
bus_name: "ai.tinyhumans.connectors.Composio",
object_path: "/ai/tinyhumans/connectors/Composio",
- version: "0.11.0",
- release_url: "https://github.com/tinyhumansai/tinyconnectors/releases/tag/v0.11.0",
+ version: "0.11.1",
+ release_url: "https://github.com/tinyhumansai/tinyconnectors/releases/tag/v0.11.1",
assets: &[
PlatformAsset {
host_key: "ubuntu-24.04-x86_64",
- archive: "tinyconnectors-0.11.0-ubuntu-24.04-x86_64.tar.gz",
- sha256: "e57a7e20ee7071695eac7537c55487e7bc41713c119b0931c4793940f4039b61",
+ archive: "tinyconnectors-0.11.1-ubuntu-24.04-x86_64.tar.gz",
+ sha256: "6a182ea082dda6ccd7a35521faf10239fc9d40dfb412b7ad5f77bd46daccfcc1",
},
PlatformAsset {
host_key: "ubuntu-24.04-arm64",
- archive: "tinyconnectors-0.11.0-ubuntu-24.04-arm64.tar.gz",
- sha256: "0baf09c899870840f3cae79f68348dd11aa999a29e0d1c2fc73cbf3ef1315013",
+ archive: "tinyconnectors-0.11.1-ubuntu-24.04-arm64.tar.gz",
+ sha256: "5bee8f3e27b57a88a712e9720b54eb2559913da5b8716c9a5b10e93bf5bd8972",
},
PlatformAsset {
host_key: "ubuntu-22.04-x86_64",
- archive: "tinyconnectors-0.11.0-ubuntu-22.04-x86_64.tar.gz",
- sha256: "72d9885506329465cc8c4b544304f32882d9d2a5c73ec2e21992a8563e4e3b30",
+ archive: "tinyconnectors-0.11.1-ubuntu-22.04-x86_64.tar.gz",
+ sha256: "77490ba89c55acf6a602a5634b855a2bf1da3ea9af72575d802d3e5d8dbebbe8",
},
PlatformAsset {
host_key: "ubuntu-22.04-arm64",
- archive: "tinyconnectors-0.11.0-ubuntu-22.04-arm64.tar.gz",
- sha256: "a9a038c9d3d37da612eea6ec7ca9df7ab8a5922ec3152ab3ee57a2da2f3d9a14",
+ archive: "tinyconnectors-0.11.1-ubuntu-22.04-arm64.tar.gz",
+ sha256: "384ba91126fb14091200026e2c0d76d472a38b726cb8b6282186745848c213ff",
},
PlatformAsset {
host_key: "macos-26-arm64",
- archive: "tinyconnectors-0.11.0-macos-26-arm64.tar.gz",
- sha256: "904d34c761d080ba78e23deb7c2347b3b648e891f54dec4d0f48f79831bec760",
+ archive: "tinyconnectors-0.11.1-macos-26-arm64.tar.gz",
+ sha256: "4e8a00da294802242e06e579dc057358764234f907f6097806f8c15ff7352e12",
},
PlatformAsset {
host_key: "macos-26-x86_64",
- archive: "tinyconnectors-0.11.0-macos-26-x86_64.tar.gz",
- sha256: "63e2c4f251bc7805dd1eb38bdc1eb2386ec1b5141a0a8c4fd8347620ec86a003",
+ archive: "tinyconnectors-0.11.1-macos-26-x86_64.tar.gz",
+ sha256: "b1cd5dcd85a6c7944d9d6751ed06536b7112a94fb0183e7f3c6933f1d619c63c",
},
PlatformAsset {
host_key: "macos-15-arm64",
- archive: "tinyconnectors-0.11.0-macos-15-arm64.tar.gz",
- sha256: "a693e2c49281bc1cee82c9999434282bfe9eb8575e1ae05bf8a634e63c299676",
+ archive: "tinyconnectors-0.11.1-macos-15-arm64.tar.gz",
+ sha256: "c53901e207c02f88a37e43ae32924402f1cbaf8da9a561c570b48063d846fac9",
},
PlatformAsset {
host_key: "macos-15-x86_64",
- archive: "tinyconnectors-0.11.0-macos-15-x86_64.tar.gz",
- sha256: "a5ab99e9356d511212ce34b5a7d203fde90b0a789747e8a7b95b2b6ed5dd2183",
+ archive: "tinyconnectors-0.11.1-macos-15-x86_64.tar.gz",
+ sha256: "ee808d7498e35c6dcd5e30b02afc52db1eb82e548ef7273eb136fd1d69cd2afe",
},
PlatformAsset {
host_key: "windows-2025-x86_64",
- archive: "tinyconnectors-0.11.0-windows-2025-x86_64.zip",
- sha256: "1d9b4b9e89c207f2154292bc0e3447f2a6709110b4fc551c0fef2561e0e8f585",
+ archive: "tinyconnectors-0.11.1-windows-2025-x86_64.zip",
+ sha256: "b3ee7d489424610bf48a226f69f76d8e498f361a232b33f20cb6fda14738efd1",
},
PlatformAsset {
host_key: "windows-2022-x86_64",
- archive: "tinyconnectors-0.11.0-windows-2022-x86_64.zip",
- sha256: "2cf82038c10db0225b27d4ff6ae5c962b5406eb9d35f17b7ea615e73fa2e7fcb",
+ archive: "tinyconnectors-0.11.1-windows-2022-x86_64.zip",
+ sha256: "e8380cb14801da35a3f42b1a9333842357d98779f509326dd5ed70bff0403ec9",
},
PlatformAsset {
host_key: "windows-11-arm64",
- archive: "tinyconnectors-0.11.0-windows-11-arm64.zip",
- sha256: "e234763ed750c0c9b252990825a7339beae375d5434ca7a5ae54615f24224888",
+ archive: "tinyconnectors-0.11.1-windows-11-arm64.zip",
+ sha256: "99d42e4daee8b21ad00a8f7a383ed457f53e802e319e78573c958f15cb51ddcd",
},
],
// Lazy: a user with no connected accounts should not pay to load it, and
diff --git a/crates/openhuman-core/src/threads/ops.rs b/crates/openhuman-core/src/threads/ops.rs
index 3432631754..b37bcc75c9 100644
--- a/crates/openhuman-core/src/threads/ops.rs
+++ b/crates/openhuman-core/src/threads/ops.rs
@@ -46,8 +46,6 @@ use crate::memory::{
#[cfg(test)]
use crate::threads::THREAD_TITLE_LOG_PREFIX;
#[cfg(test)]
-use support::{
- message_to_record, record_to_message, run_to_completion, thread_to_summary,
-};
+use support::{message_to_record, record_to_message, run_to_completion, thread_to_summary};
#[cfg(test)]
use tinyagents_harness::title::{is_auto_generated_thread_title, title_from_user_message};
diff --git a/crates/openhuman-core/src/tools/impl/meta/mod.rs b/crates/openhuman-core/src/tools/impl/meta/mod.rs
index bfabf943ce..015af305e1 100644
--- a/crates/openhuman-core/src/tools/impl/meta/mod.rs
+++ b/crates/openhuman-core/src/tools/impl/meta/mod.rs
@@ -1,7 +1,6 @@
//! Tools *about* the tool surface itself.
//!
-//! Two members: [`collapse`], the shared arithmetic behind a collapsed tool
-//! (`memory`, `todo`, `delegate_to`), and [`deferred`], the host's half of
+//! One member: [`deferred`], the host's half of
//! [`ToolExposure::Deferred`](tinytools::ToolExposure) — which registered tools
//! leave the wire so the harness can advertise its `tool_search` bridge in
//! their place. They sit in their own family rather than under `system/`
@@ -13,8 +12,3 @@ pub mod deferred;
pub use deferred::{
deferred_set, deferred_tool_names, strip_deferred_from_visible, TOOL_SEARCH_NAME,
};
-pub use tinytools::collapse;
-pub use tinytools::collapse::{
- any_external_effect, args_without_action, merge_action_schemas, resolve, strictest_permission,
- unknown_action_message, CollapsedAction,
-};
diff --git a/scripts/ci/agent-runtime-boundary-baseline.json b/scripts/ci/agent-runtime-boundary-baseline.json
index bc45a8aa83..93a6aefd15 100644
--- a/scripts/ci/agent-runtime-boundary-baseline.json
+++ b/scripts/ci/agent-runtime-boundary-baseline.json
@@ -2,7 +2,7 @@
{
"rule": "openhuman-runtime-bridge",
"path": "crates/openhuman-core/src/agent/harness/graph.rs",
- "line": 37,
+ "line": 36,
"text": "use crate::agent::tinyagents::run_turn_via_tinyagents_shared;",
"occurrence": 1
},
@@ -16,49 +16,49 @@
{
"rule": "openhuman-runtime-bridge",
"path": "crates/openhuman-core/src/agent/subagent_host/ops/graph/dispatch.rs",
- "line": 12,
+ "line": 11,
"text": "use crate::agent::tinyagents::{run_turn_via_tinyagents_shared, SubagentScope};",
"occurrence": 1
},
{
"rule": "openhuman-runtime-bridge",
"path": "crates/openhuman-core/src/agent/subagent_host/ops/graph/dispatch.rs",
- "line": 198,
+ "line": 199,
"text": "let run_result = Box::pin(run_turn_via_tinyagents_shared(",
"occurrence": 1
},
{
"rule": "openhuman-runtime-bridge",
"path": "crates/openhuman-core/src/agent/tinyagents/harness_assembly.rs",
- "line": 112,
+ "line": 114,
"text": "pub(super) fn assemble_turn_harness(",
"occurrence": 1
},
{
"rule": "openhuman-runtime-bridge",
"path": "crates/openhuman-core/src/agent/tinyagents/mod.rs",
- "line": 85,
+ "line": 83,
"text": "pub(crate) use turn_runner::{run_root_turn_via_hosted_agent, run_turn_via_tinyagents_shared};",
"occurrence": 1
},
{
"rule": "openhuman-runtime-bridge",
"path": "crates/openhuman-core/src/agent/tinyagents/turn_runner.rs",
- "line": 21,
+ "line": 20,
"text": "use crate::agent::tinyagents::harness_assembly::{assemble_turn_harness, AssembledTurnHarness};",
"occurrence": 1
},
{
"rule": "openhuman-runtime-bridge",
"path": "crates/openhuman-core/src/agent/tinyagents/turn_runner.rs",
- "line": 89,
+ "line": 84,
"text": "pub(crate) async fn run_turn_via_tinyagents_shared(",
"occurrence": 1
},
{
"rule": "openhuman-runtime-bridge",
"path": "crates/openhuman-core/src/agent/tinyagents/turn_runner.rs",
- "line": 266,
+ "line": 260,
"text": "} = assemble_turn_harness(",
"occurrence": 1
},
@@ -100,70 +100,70 @@
{
"rule": "openhuman-task-local",
"path": "crates/openhuman-core/src/agent/harness/fork_context.rs",
- "line": 188,
+ "line": 182,
"text": "pub fn current_parent() -> Option<ParentExecutionContext> {",
"occurrence": 1
},
{
"rule": "openhuman-task-local",
"path": "crates/openhuman-core/src/agent/harness/fork_context.rs",
- "line": 189,
+ "line": 183,
"text": "PARENT_CONTEXT.try_with(|ctx| ctx.clone()).ok()",
"occurrence": 1
},
{
"rule": "openhuman-task-local",
"path": "crates/openhuman-core/src/agent/harness/fork_context.rs",
- "line": 200,
+ "line": 194,
"text": "PARENT_CONTEXT.scope(ctx, Box::pin(future)).await",
"occurrence": 1
},
{
"rule": "openhuman-task-local",
"path": "crates/openhuman-core/src/agent/harness/mod.rs",
- "line": 30,
+ "line": 29,
"text": "pub mod fork_context;",
"occurrence": 1
},
{
"rule": "openhuman-task-local",
"path": "crates/openhuman-core/src/agent/harness/mod.rs",
- "line": 36,
+ "line": 32,
"text": "pub mod sandbox_context;",
"occurrence": 1
},
{
"rule": "openhuman-task-local",
"path": "crates/openhuman-core/src/agent/harness/mod.rs",
- "line": 37,
+ "line": 33,
"text": "pub(crate) mod spawn_depth_context;",
"occurrence": 1
},
{
"rule": "openhuman-task-local",
"path": "crates/openhuman-core/src/agent/harness/mod.rs",
- "line": 38,
+ "line": 34,
"text": "pub mod task_recency_context;",
"occurrence": 1
},
{
"rule": "openhuman-task-local",
"path": "crates/openhuman-core/src/agent/harness/mod.rs",
- "line": 53,
+ "line": 48,
"text": "pub use sandbox_context::{current_sandbox_mode, with_current_sandbox_mode};",
"occurrence": 1
},
{
"rule": "openhuman-task-local",
"path": "crates/openhuman-core/src/agent/harness/mod.rs",
- "line": 54,
+ "line": 49,
"text": "pub(crate) use spawn_depth_context::{with_spawn_depth, MAX_SPAWN_DEPTH};",
"occurrence": 1
},
{
"rule": "openhuman-task-local",
"path": "crates/openhuman-core/src/agent/harness/mod.rs",
- "line": 55,
+ "line": 50,
"text": "pub use task_recency_context::{current_task_recency_window, with_task_recency_window};",
"occurrence": 1
},
@@ -310,7 +310,7 @@
{
"rule": "openhuman-task-local",
"path": "crates/openhuman-core/src/agent/orchestration/tools.rs",
- "line": 73,
+ "line": 71,
"text": "crate::agent::harness::current_parent().map(|parent| {",
"occurrence": 1
},
@@ -415,28 +415,28 @@
{
"rule": "openhuman-task-local",
"path": "crates/openhuman-core/src/agent/session_host/builder/factory.rs",
- "line": 1230,
+ "line": 1198,
"text": "let root = crate::agent::turn_workspace::current()?;",
"occurrence": 1
},
{
"rule": "openhuman-task-local",
"path": "crates/openhuman-core/src/agent/session_host/runtime_session.rs",
- "line": 239,
+ "line": 255,
"text": "if self.auto_save && crate::agent::turn_origin::current_is_user_authored() {",
"occurrence": 1
},
{
"rule": "openhuman-task-local",
"path": "crates/openhuman-core/src/agent/session_host/runtime_session.rs",
- "line": 845,
+ "line": 858,
"text": "workspace_descriptor: crate::agent::harness::current_parent()",
"occurrence": 1
},
{
"rule": "openhuman-task-local",
"path": "crates/openhuman-core/src/agent/session_host/runtime_session.rs",
- "line": 1311,
+ "line": 1328,
"text": "request_id: crate::agent::turn_origin::current_request_id(),",
"occurrence": 1
},
@@ -499,56 +499,56 @@
{
"rule": "openhuman-task-local",
"path": "crates/openhuman-core/src/agent/turn_origin.rs",
- "line": 177,
+ "line": 169,
"text": "pub fn current_is_user_authored() -> bool {",
"occurrence": 1
},
{
"rule": "openhuman-task-local",
"path": "crates/openhuman-core/src/agent/turn_origin.rs",
- "line": 181,
+ "line": 173,
"text": "tokio::task_local! {",
"occurrence": 1
},
{
"rule": "openhuman-task-local",
"path": "crates/openhuman-core/src/agent/turn_origin.rs",
- "line": 186,
+ "line": 178,
"text": "pub static AGENT_TURN_ORIGIN: AgentTurnOrigin;",
"occurrence": 1
},
{
"rule": "openhuman-task-local",
"path": "crates/openhuman-core/src/agent/turn_origin.rs",
- "line": 202,
+ "line": 194,
"text": "AGENT_TURN_ORIGIN.scope(origin, Box::pin(fut)).await",
"occurrence": 1
},
{
"rule": "openhuman-task-local",
"path": "crates/openhuman-core/src/agent/turn_origin.rs",
- "line": 209,
+ "line": 201,
"text": "AGENT_TURN_ORIGIN.try_with(|o| o.clone()).ok()",
"occurrence": 1
},
{
"rule": "openhuman-task-local",
"path": "crates/openhuman-core/src/agent/turn_origin.rs",
- "line": 264,
+ "line": 256,
"text": "Some(origin) => with_origin(origin, fut).await,",
"occurrence": 1
},
{
"rule": "openhuman-task-local",
"path": "crates/openhuman-core/src/agent/turn_origin.rs",
- "line": 300,
+ "line": 292,
"text": "Some(origin) => with_origin(origin, fut).await,",
"occurrence": 2
},
{
"rule": "openhuman-task-local",
"path": "crates/openhuman-core/src/agent/turn_origin.rs",
- "line": 392,
+ "line": 355,
"text": "pub fn current_request_id() -> Option<String> {",
"occurrence": 1
},
@@ -625,7 +625,7 @@
{
"rule": "openhuman-task-local",
"path": "crates/openhuman-core/src/flows/ops.rs",
- "line": 58,
+ "line": 52,
"text": "use crate::agent::turn_origin::{with_origin, AgentTurnOrigin, TrustedAutomationSource};",
"occurrence": 1
},
@@ -674,14 +674,14 @@
{
"rule": "openhuman-task-local",
"path": "crates/openhuman-core/src/flows/tinyflows/caps/agent.rs",
- "line": 596,
+ "line": 407,
"text": "let escalated_origin = escalated_origin_for_nested_harness(turn_origin::current());",
"occurrence": 1
},
{
"rule": "openhuman-task-local",
"path": "crates/openhuman-core/src/flows/tinyflows/caps/agent.rs",
- "line": 609,
+ "line": 420,
"text": "Box::pin(turn_origin::with_origin(",
"occurrence": 1
},
@@ -743,30 +743,30 @@
},
{
"rule": "openhuman-task-local",
- "path": "crates/openhuman-core/src/inference/provider/openhuman_backend_model.rs",
- "line": 140,
- "text": "pub fn with_thread_id(mut self, thread_id: Option<impl AsRef<str>>) -> Self {",
+ "path": "crates/openhuman-core/src/inference/provider/openhuman_backend_model_calls.rs",
+ "line": 29,
+ "text": "with_thread_id(apply_reasoning_hint(request), self.thread_id.as_deref()),",
"occurrence": 1
},
{
"rule": "openhuman-task-local",
- "path": "crates/openhuman-core/src/inference/provider/openhuman_backend_model.rs",
- "line": 484,
- "text": "fn with_thread_id(request: ModelRequest, thread_id: Option<&str>) -> ModelRequest {",
- "occurrence": 1
+ "path": "crates/openhuman-core/src/inference/provider/openhuman_backend_model_calls.rs",
+ "line": 59,
+ "text": "with_thread_id(apply_reasoning_hint(request), self.thread_id.as_deref()),",
+ "occurrence": 2
},
{
"rule": "openhuman-task-local",
"path": "crates/openhuman-core/src/inference/provider/openhuman_backend_model.rs",
- "line": 613,
- "text": ".invoke(state, with_thread_id(request, self.thread_id.as_deref()))",
+ "line": 141,
+ "text": "pub fn with_thread_id(mut self, thread_id: Option<impl AsRef<str>>) -> Self {",
"occurrence": 1
},
{
"rule": "openhuman-task-local",
"path": "crates/openhuman-core/src/inference/provider/openhuman_backend_model.rs",
- "line": 640,
- "text": ".stream(state, with_thread_id(request, self.thread_id.as_deref()))",
+ "line": 536,
+ "text": "fn with_thread_id(request: ModelRequest, thread_id: Option<&str>) -> ModelRequest {",
"occurrence": 1
},
{
@@ -779,35 +779,35 @@
{
"rule": "openhuman-task-local",
"path": "crates/openhuman-core/src/integrations/composio/action_tool.rs",
- "line": 249,
+ "line": 266,
"text": "if matches!(current_sandbox_mode(), Some(SandboxMode::ReadOnly)) {",
"occurrence": 1
},
{
"rule": "openhuman-task-local",
"path": "crates/openhuman-core/src/integrations/composio/tools/execute.rs",
- "line": 10,
+ "line": 12,
"text": "use crate::agent::harness::current_sandbox_mode;",
"occurrence": 1
},
{
"rule": "openhuman-task-local",
"path": "crates/openhuman-core/src/integrations/composio/tools/execute.rs",
- "line": 11,
+ "line": 13,
"text": "use crate::agent::harness::current_task_recency_window;",
"occurrence": 1
},
{
"rule": "openhuman-task-local",
"path": "crates/openhuman-core/src/integrations/composio/tools/execute.rs",
- "line": 153,
+ "line": 167,
"text": "if matches!(current_sandbox_mode(), Some(SandboxMode::ReadOnly)) {",
"occurrence": 1
},
{
"rule": "openhuman-task-local",
"path": "crates/openhuman-core/src/integrations/composio/tools/execute.rs",
- "line": 225,
+ "line": 247,
"text": "let task_window_since = current_task_recency_window().map(|w| {",
"occurrence": 1
},
@@ -828,21 +828,21 @@
{
"rule": "openhuman-task-local",
"path": "crates/openhuman-core/src/mcp/server/tools/dispatch.rs",
- "line": 376,
+ "line": 370,
"text": "crate::agent::turn_origin::with_origin(origin, agent.run_single(&prompt)),",
"occurrence": 1
},
{
"rule": "openhuman-task-local",
"path": "crates/openhuman-core/src/memory/goals/enrich.rs",
- "line": 19,
+ "line": 18,
"text": "use crate::agent::turn_origin::{with_origin, AgentTurnOrigin, TrustedAutomationSource};",
"occurrence": 1
},
{
"rule": "openhuman-task-local",
"path": "crates/openhuman-core/src/memory/goals/enrich.rs",
- "line": 136,
+ "line": 135,
"text": "let response = with_origin(origin, agent.run_single(&prompt))",
"occurrence": 1
},
@@ -870,7 +870,7 @@
{
"rule": "openhuman-task-local",
"path": "crates/openhuman-core/src/security/policy/path_checks.rs",
- "line": 498,
+ "line": 523,
"text": "if let Some(turn_root) = crate::agent::turn_workspace::current() {",
"occurrence": 1
},
@@ -898,7 +898,7 @@
{
"rule": "openhuman-task-local",
"path": "crates/openhuman-core/src/skills/webhooks/ops.rs",
- "line": 173,
+ "line": 171,
"text": "crate::agent::turn_origin::with_origin(",
"occurrence": 1
},
@@ -926,7 +926,7 @@
{
"rule": "openhuman-task-local",
"path": "crates/openhuman-core/src/tools/impl/system/shell.rs",
- "line": 364,
+ "line": 346,
"text": "crate::agent::harness::current_sandbox_mode(),",
"occurrence": 1
},
@@ -968,7 +968,7 @@
{
"rule": "openhuman-task-local",
"path": "crates/openhuman-embed/src/lib.rs",
- "line": 83,
+ "line": 84,
"text": "current_progress_sink, with_progress_sink, ProgressSink, AGENT_PROGRESS_SINK,",
"occurrence": 1
},
@@ -1003,7 +1003,7 @@
{
"rule": "openhuman-upstream-reexport",
"path": "crates/openhuman-core/src/agent/goals/mod.rs",
- "line": 14,
+ "line": 13,
"text": "pub use tinyagents_graph::goals::{ThreadGoal, ThreadGoalStatus};",
"occurrence": 1
},
@@ -1017,14 +1017,14 @@
{
"rule": "openhuman-upstream-reexport",
"path": "crates/openhuman-core/src/agent/harness/artifact_offload/mod.rs",
- "line": 63,
+ "line": 67,
"text": "pub use tinyagents_harness::artifacts::{",
"occurrence": 1
},
{
"rule": "openhuman-upstream-reexport",
"path": "crates/openhuman-core/src/agent/multimodal.rs",
- "line": 51,
+ "line": 52,
"text": "pub use tinyagents_harness::multimodal::{FilePayload, MultimodalError};",
"occurrence": 1
},
@@ -1052,14 +1052,14 @@
{
"rule": "openhuman-upstream-reexport",
"path": "crates/openhuman-core/src/inference/host_runtime/service/mod.rs",
- "line": 7,
+ "line": 6,
"text": "pub use tinyinference_local::service::LocalAiService;",
"occurrence": 1
},
{
"rule": "openhuman-upstream-reexport",
"path": "crates/openhuman-core/src/inference/mod.rs",
- "line": 43,
+ "line": 47,
"text": "pub use tinyinference_local::status::{",
"occurrence": 1
},
@@ -1073,14 +1073,14 @@
{
"rule": "openhuman-upstream-reexport",
"path": "crates/openhuman-core/src/skills/types.rs",
- "line": 16,
+ "line": 7,
"text": "pub use tinytools::{ToolContent, ToolResult};",
"occurrence": 1
},
{
"rule": "openhuman-upstream-reexport",
"path": "crates/openhuman-core/src/tools/mod.rs",
- "line": 76,
+ "line": 70,
"text": "pub use tinytools::{PermissionLevel, Tool, ToolCategory, ToolResult, ToolScope, ToolSpec};",
"occurrence": 1
},
@@ -1094,7 +1094,7 @@
{
"rule": "tinyagents-moved-symbol-alias",
"path": "vendor/tinyagents/crates/tinyagents-harness/src/tool/mod.rs",
- "line": 126,
+ "line": 131,
"text": "pub struct ToolRegistry<State: Send + Sync, Ctx: Send + Sync> {",
"occurrence": 1
},
@@ -1374,10 +1374,24 @@
{
"rule": "tinyagents-tool-calling-facade",
"path": "vendor/tinyagents/crates/tinyagents-harness/src/lib.rs",
- "line": 116,
+ "line": 117,
"text": "pub use tinytools_agent;",
"occurrence": 1
},
+ {
+ "rule": "tinyagents-tool-calling-facade",
+ "path": "vendor/tinyagents/crates/tinyagents-session/src/transcript/jsonl.rs",
+ "line": 12,
+ "text": "use tinytools_agent::dialect::{",
+ "occurrence": 1
+ },
+ {
+ "rule": "tinyagents-tool-calling-facade",
+ "path": "vendor/tinyagents/crates/tinyagents-session/src/transcript/typed_rows_test.rs",
+ "line": 9,
+ "text": "use tinytools_agent::dialect::{NativeToolCall, encode_assistant_envelope, encode_tool_envelope};",
+ "occurrence": 1
+ },
{
"rule": "tinyagents-upstream-reexport",
"path": "vendor/tinyagents/crates/tinyagents-graph/src/lib.rs",
@@ -1388,7 +1402,7 @@
{
"rule": "tinyagents-upstream-reexport",
"path": "vendor/tinyagents/crates/tinyagents-harness/src/tool/discover/mod.rs",
- "line": 28,
+ "line": 33,
"text": "pub use tinytools::rank::{Bm25Index, tokenize};",
"occurrence": 1
},
@@ -1402,14 +1416,14 @@
{
"rule": "tinyagents-upstream-reexport",
"path": "vendor/tinyagents/crates/tinyagents-runtime/src/lib.rs",
- "line": 23,
+ "line": 24,
"text": "pub use tinyagents_session::transcript::TranscriptPartial;",
"occurrence": 1
},
{
"rule": "tinyagents-upstream-reexport",
"path": "vendor/tinyagents/crates/tinyagents-session/src/lib.rs",
- "line": 88,
+ "line": 89,
"text": "pub use tinyagents_harness::error::{Result, TinyAgentsError};",
"occurrence": 1
}
diff --git a/scripts/ci/check-openhuman-rust-layout.mjs b/scripts/ci/check-openhuman-rust-layout.mjs
index 181623cca4..54975df00a 100644
--- a/scripts/ci/check-openhuman-rust-layout.mjs
+++ b/scripts/ci/check-openhuman-rust-layout.mjs
@@ -54,7 +54,7 @@ const LEGACY_LIMIT_ENTRIES = [
// `core/` was pruned from the line limit by name until these pins; its
// oversized files are pinned at the size they had when enforcement began.
["crates/openhuman-core/src/core/all.rs", 1840],
- ["crates/openhuman-core/src/core/all_tests.rs", 2709],
+ ["crates/openhuman-core/src/core/all_tests.rs", 2605],
["crates/openhuman-core/src/core/cli.rs", 803],
["crates/openhuman-core/src/core/events.rs", 2005],
["crates/openhuman-core/src/core/events_tests.rs", 1062],
diff --git a/scripts/kernel-floor.limits b/scripts/kernel-floor.limits
index bcc7f1d9a0..cf95d7fe31 100644
--- a/scripts/kernel-floor.limits
+++ b/scripts/kernel-floor.limits
@@ -13,6 +13,16 @@
# Simulate with: scripts/dep-sim.py --cut <crates>
#
# History
+# 316/299/2 2026-10-01 The refreshed first-party module workspaces add
+# required host-facing crates to the always-on flows
+# profile: TinyBox's core/docker/jail split, TinyComputer
+# accessibility, TinyConnectors' sync crate, TinyFlows'
+# schedule crate, TinyMemory's split host APIs, and
+# TinyRuntime's Python server. Their transitive crates
+# account for the rest of the measured growth. The exact
+# graph is 316 packages / 299 names, with no added native
+# build. Keep this measured ceiling visible for a later
+# feature-gating pass; do not silently mask new growth.
# 304/283/2 2026-09-30 TinyChannels now supplies the always-on CLI channel
# and shared channel runtime helpers through its new
# `tinychannels-runtime` crate. The crate's dependencies
@@ -626,4 +636,4 @@
# into the required host runtime. The migration adds five
# resolved packages and four unique crate names; it does
# not add a native build dependency.
-flows:304:283:2
+flows:316:299:2
diff --git a/vendor/tinyconnectors b/vendor/tinyconnectors
index 000efcb7c4..c8f458a190 160000
--- a/vendor/tinyconnectors
+++ b/vendor/tinyconnectors
@@ -1 +1 @@
-Subproject commit 000efcb7c49e38297327d755ac474c3770c24fc0
+Subproject commit c8f458a190f3496a2c6fc29847e8a19b58d48b4a