diff --git a/Cargo.lock b/Cargo.lock
index 7b84c69059a..e5f68719d2b 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3846,7 +3846,7 @@ dependencies = [
"js-sys",
"log",
"wasm-bindgen",
- "windows-core 0.62.2",
+ "windows-core 0.57.0",
]
[[package]]
@@ -9180,7 +9180,7 @@ dependencies = [
[[package]]
name = "tinyagents-definition"
-version = "3.0.0"
+version = "3.1.4"
dependencies = [
"anyhow",
"async-trait",
@@ -9193,7 +9193,7 @@ dependencies = [
[[package]]
name = "tinyagents-harness"
-version = "3.0.0"
+version = "3.1.4"
dependencies = [
"anyhow",
"async-trait",
@@ -9235,7 +9235,7 @@ dependencies = [
[[package]]
name = "tinyagents-harness-tools"
-version = "3.0.0"
+version = "3.1.4"
dependencies = [
"anyhow",
"async-trait",
@@ -9268,7 +9268,7 @@ dependencies = [
[[package]]
name = "tinyagents-hooks"
-version = "3.0.0"
+version = "3.1.4"
dependencies = [
"anyhow",
"async-trait",
@@ -9286,7 +9286,7 @@ dependencies = [
[[package]]
name = "tinyagents-live"
-version = "3.0.0"
+version = "3.1.4"
dependencies = [
"serde_json",
"tinyagents-harness",
@@ -9297,7 +9297,7 @@ dependencies = [
[[package]]
name = "tinyagents-orchestration"
-version = "3.0.0"
+version = "3.1.4"
dependencies = [
"async-trait",
"chrono",
@@ -9320,7 +9320,7 @@ dependencies = [
[[package]]
name = "tinyagents-registry"
-version = "3.0.0"
+version = "3.1.4"
dependencies = [
"anyhow",
"chrono",
@@ -9335,7 +9335,7 @@ dependencies = [
[[package]]
name = "tinyagents-runtime"
-version = "3.0.0"
+version = "3.1.4"
dependencies = [
"anyhow",
"async-trait",
@@ -9355,7 +9355,7 @@ dependencies = [
[[package]]
name = "tinyagents-session"
-version = "3.0.0"
+version = "3.1.4"
dependencies = [
"anyhow",
"async-trait",
@@ -9380,7 +9380,7 @@ dependencies = [
[[package]]
name = "tinyagents-storage-kit"
-version = "3.0.0"
+version = "3.1.4"
dependencies = [
"data-encoding",
"serde",
@@ -9394,7 +9394,7 @@ dependencies = [
[[package]]
name = "tinyagents-tasks"
-version = "3.0.0"
+version = "3.1.4"
dependencies = [
"serde",
"serde_json",
@@ -10362,7 +10362,7 @@ dependencies = [
[[package]]
name = "tinyliveagents"
-version = "0.1.0"
+version = "0.1.1"
dependencies = [
"async-trait",
"base64 0.22.1",
@@ -12343,7 +12343,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.48.0",
]
[[package]]
diff --git a/crates/openhuman-app/Cargo.lock b/crates/openhuman-app/Cargo.lock
index 597fe6f9edc..ffbbff5ea0b 100644
--- a/crates/openhuman-app/Cargo.lock
+++ b/crates/openhuman-app/Cargo.lock
@@ -7562,7 +7562,7 @@ dependencies = [
[[package]]
name = "tinyagents-definition"
-version = "3.0.0"
+version = "3.1.4"
dependencies = [
"anyhow",
"async-trait",
@@ -7575,7 +7575,7 @@ dependencies = [
[[package]]
name = "tinyagents-harness"
-version = "3.0.0"
+version = "3.1.4"
dependencies = [
"anyhow",
"async-trait",
@@ -7617,7 +7617,7 @@ dependencies = [
[[package]]
name = "tinyagents-harness-tools"
-version = "3.0.0"
+version = "3.1.4"
dependencies = [
"anyhow",
"async-trait",
@@ -7650,7 +7650,7 @@ dependencies = [
[[package]]
name = "tinyagents-hooks"
-version = "3.0.0"
+version = "3.1.4"
dependencies = [
"anyhow",
"async-trait",
@@ -7668,7 +7668,7 @@ dependencies = [
[[package]]
name = "tinyagents-live"
-version = "3.0.0"
+version = "3.1.4"
dependencies = [
"serde_json",
"tinyagents-harness",
@@ -7679,7 +7679,7 @@ dependencies = [
[[package]]
name = "tinyagents-orchestration"
-version = "3.0.0"
+version = "3.1.4"
dependencies = [
"async-trait",
"chrono",
@@ -7702,7 +7702,7 @@ dependencies = [
[[package]]
name = "tinyagents-registry"
-version = "3.0.0"
+version = "3.1.4"
dependencies = [
"anyhow",
"chrono",
@@ -7717,7 +7717,7 @@ dependencies = [
[[package]]
name = "tinyagents-runtime"
-version = "3.0.0"
+version = "3.1.4"
dependencies = [
"anyhow",
"async-trait",
@@ -7737,7 +7737,7 @@ dependencies = [
[[package]]
name = "tinyagents-session"
-version = "3.0.0"
+version = "3.1.4"
dependencies = [
"anyhow",
"async-trait",
@@ -7762,7 +7762,7 @@ dependencies = [
[[package]]
name = "tinyagents-storage-kit"
-version = "3.0.0"
+version = "3.1.4"
dependencies = [
"data-encoding",
"serde",
@@ -7776,7 +7776,7 @@ dependencies = [
[[package]]
name = "tinyagents-tasks"
-version = "3.0.0"
+version = "3.1.4"
dependencies = [
"serde",
"serde_json",
@@ -8117,7 +8117,7 @@ dependencies = [
[[package]]
name = "tinyliveagents"
-version = "0.1.0"
+version = "0.1.1"
dependencies = [
"async-trait",
"base64 0.22.1",
diff --git a/crates/openhuman-rpc/src/server/http/events_tests.rs b/crates/openhuman-rpc/src/server/http/events_tests.rs
index 7d179831836..2ab1661a444 100644
--- a/crates/openhuman-rpc/src/server/http/events_tests.rs
+++ b/crates/openhuman-rpc/src/server/http/events_tests.rs
@@ -114,20 +114,16 @@ async fn events_stream_forwards_only_the_bound_client() {
client_id: "another-client".into(),
..Default::default()
},
- message: None,
error_type: Some("wrong_client_probe".into()),
error_source: None,
- error_retryable: None,
});
publish_web_channel_event(WebChannelEvent::UserError {
context: crate::core_host::web_chat::WebEventContext {
client_id: "stream-client".into(),
..Default::default()
},
- message: None,
error_type: Some("right_client_probe".into()),
error_source: None,
- error_retryable: None,
});
let chunk = tokio::time::timeout(std::time::Duration::from_secs(1), body.next())
diff --git a/crates/openhuman-rpc/src/server/socketio_tests.rs b/crates/openhuman-rpc/src/server/socketio_tests.rs
index c497293dad3..0ff9a7f5e17 100644
--- a/crates/openhuman-rpc/src/server/socketio_tests.rs
+++ b/crates/openhuman-rpc/src/server/socketio_tests.rs
@@ -217,7 +217,7 @@ async fn web_events_reach_client_and_thread_rooms_once_with_compat_aliases() {
.all(|(_, payload)| payload["full_response"] == "finished"));
assert!(reconnected_packets
.iter()
- .all(|(_, payload)| payload["context"]["threadId"] == "thread-1"));
+ .all(|(_, payload)| payload["thread_id"] == "thread-1"));
assert_empty_queue(&mut initiator_rx);
assert_empty_queue(&mut reconnected_rx);
assert_empty_queue(&mut unrelated_rx);
diff --git a/docs/storage-schema.md b/docs/storage-schema.md
index f38eda3bef7..9b58dc23fd2 100644
--- a/docs/storage-schema.md
+++ b/docs/storage-schema.md
@@ -65,7 +65,7 @@ Record shapes and migrations stay with their owners.
| `ledger.tool_effects` | `run` (`run_id`)
`started` (`started_ms`)
`status` (`status`) | | |
| `ledger.workflow_runs` | `definition` (`definition_id`)
`status` (`status`)
`thread` (`parent_thread_id`)
`updated` (`updated_ms`) | | |
| `session.transcript_entries` | `by_stem_written` (`stem`, `written`)
`by_stem` (`stem`, `seq`) | | |
-| `session.transcripts` | `by_agent_id` (`agent_id`, `created_ms`)
`by_agent_name` (`agent_name`, `created_ms`)
`by_thread` (`thread_id`, `created_ms`) | | |
+| `session.transcripts` | `by_agent_id_created` (`agent_id`, `created_ms`)
`by_agent_name_created` (`agent_name`, `created_ms`)
`by_thread_created` (`thread_id`, `created_ms`) | | |
| `session.turn_states` | `by_thread` (`thread_id`) | | |
| `tsd.counters` | | | |
| `tsd.kv` | `kv_by_key` (`owner`, `ns`, `key`) | | |
diff --git a/scripts/ci/agent-runtime-boundary-baseline.json b/scripts/ci/agent-runtime-boundary-baseline.json
index e3139950f39..677f6d7ae75 100644
--- a/scripts/ci/agent-runtime-boundary-baseline.json
+++ b/scripts/ci/agent-runtime-boundary-baseline.json
@@ -440,34 +440,6 @@
"text": "pub struct RetryPolicy {",
"occurrence": 1
},
- {
- "rule": "tinyagents-openhuman-domain-name",
- "path": "vendor/tinyagents/crates/tinyagents-harness/src/turn_runner/mod_api_tests.rs",
- "line": 2,
- "text": "use crate::progress::AgentProgress;",
- "occurrence": 1
- },
- {
- "rule": "tinyagents-openhuman-domain-name",
- "path": "vendor/tinyagents/crates/tinyagents-harness/src/turn_runner/mod_api_tests.rs",
- "line": 97,
- "text": "let started = |call_id: &str| AgentProgress::ToolCallStarted {",
- "occurrence": 1
- },
- {
- "rule": "tinyagents-openhuman-domain-name",
- "path": "vendor/tinyagents/crates/tinyagents-harness/src/turn_runner/mod_api_tests.rs",
- "line": 137,
- "text": "fn tool_completed(call_id: &str) -> AgentProgress {",
- "occurrence": 1
- },
- {
- "rule": "tinyagents-openhuman-domain-name",
- "path": "vendor/tinyagents/crates/tinyagents-harness/src/turn_runner/mod_api_tests.rs",
- "line": 138,
- "text": "AgentProgress::ToolCallCompleted {",
- "occurrence": 1
- },
{
"rule": "tinyagents-openhuman-domain-name",
"path": "vendor/tinyagents/crates/tinyagents-orchestration/src/run_progress_ledger/mod_tests.rs",
diff --git a/scripts/ci/check-agent-runtime-boundary.mjs b/scripts/ci/check-agent-runtime-boundary.mjs
index 589576efa97..9b886821477 100644
--- a/scripts/ci/check-agent-runtime-boundary.mjs
+++ b/scripts/ci/check-agent-runtime-boundary.mjs
@@ -166,7 +166,19 @@ const openhumanDomainTypes = new Set([
"WorkspacePolicy",
]);
-function isNativeAgentProgressReference(path, text, source = text) {
+// A harness module that imports the harness's own `crate::progress::AgentProgress`
+// names the native type, not OpenHuman's. A `*_tests.rs` file wired with
+// `use super::*;` inherits its parent module's imports, so it is native when
+// that parent is.
+const ownsNativeAgentProgressImport = (source) =>
+ /^\s*use\s+crate::progress::AgentProgress\s*;\s*$/m.test(rustCode(source));
+
+function isNativeAgentProgressReference(
+ path,
+ text,
+ source = text,
+ parentSource = null,
+) {
const harness = "vendor/tinyagents/crates/tinyagents-harness/src/";
if (
/\b(?:openhuman(?:_[A-Za-z0-9_]+)?|tinyagents(?:_[A-Za-z0-9_]+)?)\s*::\s*AgentProgress\b/.test(
@@ -184,19 +196,16 @@ function isNativeAgentProgressReference(path, text, source = text) {
/^\s*pub\s+use\s+progress::AgentProgress\s*;\s*$/.test(text)
)
return true;
- if (path === `${harness}turn_runner/types.rs`) {
- const ownsImport = /^\s*use\s+crate::progress::AgentProgress\s*;\s*$/m.test(
- rustCode(source),
- );
- return ownsImport;
- }
+ if (!path.startsWith(harness)) return false;
if (path === `${harness}turn_runner/mod_tests.rs`)
return /\bcrate\s*::\s*progress\s*::\s*AgentProgress\b/.test(text);
- if (path === `${harness}progress_tests.rs`)
- return /^\s*use\s+crate::progress::AgentProgress\s*;\s*$/m.test(
- rustCode(source),
- );
- return false;
+ if (ownsNativeAgentProgressImport(source)) return true;
+ return (
+ path.endsWith("_tests.rs") &&
+ parentSource !== null &&
+ /^\s*use\s+super::\*\s*;\s*$/m.test(rustCode(source)) &&
+ ownsNativeAgentProgressImport(parentSource)
+ );
}
// Names moved out of compatibility layers. Values identify their sole owner;
@@ -570,6 +579,10 @@ function assertSelfTests() {
const nativeTypes =
"use crate::progress::AgentProgress;\nProgress(Box)";
const progressTests = "use crate::progress::AgentProgress;";
+ const workTrackerPath =
+ "vendor/tinyagents/crates/tinyagents-harness/src/turn_runner/work_tracker.rs";
+ const workTrackerTestsPath =
+ "vendor/tinyagents/crates/tinyagents-harness/src/turn_runner/work_tracker_tests.rs";
if (
!isNativeAgentProgressReference(progressPath, "pub enum AgentProgress {") ||
!isNativeAgentProgressReference(
@@ -590,6 +603,33 @@ function assertSelfTests() {
"let event = AgentProgress::ContextCompacting;",
progressTests,
) ||
+ !isNativeAgentProgressReference(
+ workTrackerPath,
+ "AgentProgress::IterationStarted { .. } => {",
+ progressTests,
+ ) ||
+ !isNativeAgentProgressReference(
+ workTrackerTestsPath,
+ "fn iteration_started() -> AgentProgress {",
+ "use super::*;",
+ progressTests,
+ ) ||
+ isNativeAgentProgressReference(
+ workTrackerTestsPath,
+ "fn iteration_started() -> AgentProgress {",
+ "use super::*;",
+ "use openhuman_core::AgentProgress;",
+ ) ||
+ isNativeAgentProgressReference(
+ workTrackerTestsPath,
+ "fn iteration_started() -> AgentProgress {",
+ "use super::*;",
+ ) ||
+ isNativeAgentProgressReference(
+ "vendor/tinyagents/crates/tinyagents-session/src/lib.rs",
+ "AgentProgress::IterationStarted { .. } => {",
+ progressTests,
+ ) ||
isNativeAgentProgressReference(
"vendor/tinyagents/crates/tinyagents-session/src/lib.rs",
"pub enum AgentProgress {",
@@ -875,6 +915,11 @@ for (const path of await filesUnder(
}
const crateName = tinyagentsCrateName(path);
const lines = codeLines(source);
+ const parentSource = path.endsWith("_tests.rs")
+ ? await readFile(path.replace(/_tests\.rs$/, ".rs"), "utf8").catch(
+ () => null,
+ )
+ : null;
let firstForwardingLine;
for (const { line, text, raw } of lines) {
if (!text.trim()) continue;
@@ -926,7 +971,12 @@ for (const path of await filesUnder(
continue;
if (
name === "AgentProgress" &&
- isNativeAgentProgressReference(relative(repoRoot, path), text, source)
+ isNativeAgentProgressReference(
+ relative(repoRoot, path),
+ text,
+ source,
+ parentSource,
+ )
)
continue;
if (new RegExp(`\\b${escapeRegex(name)}\\b`).test(text)) {
diff --git a/vendor/tinyagents b/vendor/tinyagents
index c3d7d323972..e096d8b8c86 160000
--- a/vendor/tinyagents
+++ b/vendor/tinyagents
@@ -1 +1 @@
-Subproject commit c3d7d3239725ffe587a96b282dbc3c519feea347
+Subproject commit e096d8b8c8609ded16681191fe20cddbf18986d3