The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
fix(agent): retain team graph observability
Steven Enamakel5b49e38dfd14
diff --git a/.sdd-progress.md b/.sdd-progress.mdindex b329ecefb7..9cd84c3a7b 100644--- a/.sdd-progress.md+++ b/.sdd-progress.md@@ -12,13 +12,16 @@ in progress. They require direct imports with no compatibility shims and preservOpenHuman policy/security, persistence-root wiring, BUS/progress/RPC projection,and concrete execution adapters.-Orchestration O1-O2: complete locally, pending independent review and paired-commits. `tinyagents-orchestration` is now a correctly spelled default workspace-member with a tested one-way dependency gate and no OpenHuman dependency. It-owns the neutral `TeamLedger`/`TeamWorker` seams, `SessionTeamLedger`,+Orchestration O1-O2: complete locally; independent-review remediation and+verification are complete, pending paired commits. `tinyagents-orchestration`+is now a correctly spelled default workspace member with a tested one-way+dependency gate and no OpenHuman dependency. It+owns the neutral `TeamLedger` seam, `SessionTeamLedger`,dependency-aware `TeamService`, claim selection, and generic member completion-graph. OpenHuman's agent-team controllers, runtime, and topology import that-crate directly; the prior local `types`, `ops`, and `graph` modules and their+graph (including optional host-provided graph-event sinks). OpenHuman's+agent-team controllers, runtime, and topology import that crate directly; the+runtime injects its established `team:<team>:<member>` tracing sink. The prior+local `types`, `ops`, and `graph` modules and theirfacades are deleted. OpenHuman retains its root-parent context, subagentexecution, message delivery/reconciliation, persistence-root selection and RPCschemas. `cargo test -p tinyagents-orchestration` (8 tests), metadata, anddiff --git a/Cargo.lock b/Cargo.lockindex 1af499530a..a66f407c71 100644--- a/Cargo.lock+++ b/Cargo.lock@@ -6516,7 +6516,6 @@ name = "tinyagents-orchestration"version = "2.1.2"dependencies = ["anyhow",- "async-trait","chrono","serde","serde_json",diff --git a/crates/openhuman-core/src/agent/orchestration/agent_teams/runtime.rs b/crates/openhuman-core/src/agent/orchestration/agent_teams/runtime.rsindex 2b874cb7f7..0cc3668792 100644--- a/crates/openhuman-core/src/agent/orchestration/agent_teams/runtime.rs+++ b/crates/openhuman-core/src/agent/orchestration/agent_teams/runtime.rs@@ -27,6 +27,8 @@//! timeline or worker thread" criterion via both paths; a live inbox would be a//! separate orchestration-layer change.+use std::sync::Arc;+use anyhow::{anyhow, Result};use serde_json::json;@@ -42,6 +44,8 @@ use tinyagents_session::run_ledger::{use tinyagents_orchestration::teams::{claimable_task, run_member_graph, MemberOutcome, TeamError};+use crate::agent::tinyagents::observability::GraphTracingSink;+const LOG_TARGET: &str = "agent_team_runtime";/// Fallback worker archetype when a member carries no explicit `agent_id`.const DEFAULT_TEAMMATE_AGENT_ID: &str = "researcher";@@ -417,7 +421,15 @@ async fn drive_member(}};- run_member_graph(run_worker, on_complete, on_failed).await+ run_member_graph(+ Some(Arc::new(GraphTracingSink::new(format!(+ "team:{team_id}:{member_id}"+ )))),+ run_worker,+ on_complete,+ on_failed,+ )+ .await}/// Compose the worker prompt from the task + any pending messages addressed todiff --git a/docs/plans/migrate-agent-orchestration-to-tinyagents.md b/docs/plans/migrate-agent-orchestration-to-tinyagents.mdindex 7f70484466..31d0006097 100644--- a/docs/plans/migrate-agent-orchestration-to-tinyagents.md+++ b/docs/plans/migrate-agent-orchestration-to-tinyagents.md@@ -25,14 +25,12 @@ Existing owners remain authoritative:## Public API-The new crate exposes typed plans and trait seams, never OpenHuman values:+The current crate exposes only the durable team ledger seam and callback member+graph, never OpenHuman values. A future workflow slice may add typed plans and+executor seams only when its engine consumes them:```rustpub trait TeamLedger: Send + Sync { /* team/member/task/event operations */ }-#[async_trait]-pub trait TeamWorker: Send + Sync {- async fn run(&self, request: TeamWorkRequest) -> Result<TeamWorkResult, OrchestrationError>;-}pub trait WorkflowStore: Send + Sync { /* load/upsert workflow snapshots */ }#[async_trait]@@ -55,7 +53,7 @@ crate decisions.Add `crates/tinyagents-orchestration/Cargo.toml`, register it in`vendor/tinyagents/Cargo.toml` default members, and use direct dependencies on-`anyhow`, `async-trait`, `serde`, `serde_json`, `tokio`, `uuid`,+`anyhow`, `serde`, `serde_json`, `tokio`, `uuid`,`tinyagents-harness`, `tinyagents-graph`, and `tinyagents-session`. Forward asingle optional `tracing` feature to the three TinyAgents crates. Do not add`tinytools` unless a public signature needs it, and do not enable graph SQLite@@ -91,9 +89,11 @@ and `cargo test -p tinyagents-orchestration`.### O2 — team service and member graph**RED:** Port `agent_teams/graph_tests.rs` and generic `ops_tests.rs` cases to-the new crate with a fake `TeamLedger`/`TeamWorker`: duplicate names, unknown+the new crate with a fake `TeamLedger`: duplicate names, unknownmember/dependency, self/cycle rejection, ordered messages, claim race result,-quality-gated completion, complete route, failed route, and worker engine error.+quality-gated completion and recovery, non-claimant/owner-mismatch completion,+complete route, failed route, worker engine error, and optional graph-sink+delivery.**GREEN:** Implement typed team service and callback graph. Add the optionalsession-ledger adapter only after the trait suite is green.diff --git a/vendor/tinyagents b/vendor/tinyagentsindex 3bbe25eaa5..960d8e1edf 160000--- a/vendor/tinyagents+++ b/vendor/tinyagents@@ -1 +1 @@-Subproject commit 3bbe25eaa58f6ba0f1b36f1d99699ad2e7a445da+Subproject commit 960d8e1edf67c4b15470eaa0a9b445eb6c0ba683