Skip to content

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

docs(architecture): add progress tracing documentation

Steven Enamakel5ecaaf0aedca
diff --git a/crates/openhuman-core/src/agent/progress_tracing/README.md b/crates/openhuman-core/src/agent/progress_tracing/README.md
index 7b46e9d4ee..cbd304a218 100644
--- a/crates/openhuman-core/src/agent/progress_tracing/README.md
+++ b/crates/openhuman-core/src/agent/progress_tracing/README.md
@@ -12,17 +12,17 @@ content).
## Key files
- `agent/progress_tracing.rs` (parent module file) declares the submodules
- below it. `collector/` — `SpanCollector` (pure state machine: feed it
+ below it. `collector/` holds `SpanCollector` (a pure state machine: feed it
progress events plus a timestamp, it accumulates finished `TraceSpan`s).
- `types.rs` — `TraceContext`, `RunType`, `SpanKind`/`SpanStatus`.
- `serialize.rs` — `spans_to_ndjson`. `export.rs` — the local file/log
+ `types.rs` has `TraceContext`, `RunType`, `SpanKind`/`SpanStatus`.
+ `serialize.rs` has `spans_to_ndjson`. `export.rs` has the local file/log
exporter `export_spans`, and the two run-completion entry points
`export_run_trace` / `export_run_trace_from_journal`. Each entry point runs
two independent, best-effort paths: a Langfuse push when
`observability.share_usage_data` is on (the default), and local NDJSON
export to `export_path` or the app log when
`observability.agent_tracing.enabled` is on (opt-in).
-- `otlp.rs` — the remote agent-turn exporter. It turns completed live spans
+- `otlp.rs`: the remote agent-turn exporter. It turns completed live spans
into OTLP/HTTP JSON, preserves the root turn's input/output, maps
TinyInference messages into role-labeled conversations, puts usage only on
model generations, and summarizes repeated internal tool discovery.
@@ -32,7 +32,7 @@ content).
`observability.share_usage_data`; local NDJSON export remains optional.
- `langfuse.rs` + `langfuse/` retain the legacy batch projection for
compatibility tests and the flow-run exporter. Agent turns use `otlp.rs`.
-- `journal_projection.rs` — `spans_from_observations` rebuilds spans from the
+- `journal_projection.rs`: `spans_from_observations` rebuilds spans from the
durable `AgentObservation` journal instead of the live stream, by folding
journalled events through the same `SpanCollector`, so a UI/supervisor can
attach after a run. Its match is exhaustive over
diff --git a/gitbooks/developing/architecture/tauri-shell.md b/gitbooks/developing/architecture/tauri-shell.md
index bca32d4fcd..ad8361c877 100644
--- a/gitbooks/developing/architecture/tauri-shell.md
+++ b/gitbooks/developing/architecture/tauri-shell.md
@@ -84,7 +84,7 @@ React (fetch)
→ embedded openhuman core server (tokio task in this process)
```
-The renderer talks to the local core **directly over HTTP** (`app/src/services/coreRpcClient.ts` invokes `core_rpc_url` / `core_rpc_token` once, then issues plain `fetch()` calls. The `relay_http_rpc` Tauri command is a host-side fallback used only when the RPC URL is **not** a trustworthy origin for the secure `tauri://localhost` webview (e.g. a self-hosted runtime on a LAN IP, blocked as mixed content) #3865): the Rust host delegates to `openhuman_rpc::post_json_rpc` from the shared `crates/openhuman-rpc` crate (feature `http-client`): 30 s timeout, redirects disabled when a bearer is present, status + body mirrored back verbatim as `HttpRpcResponse`. The shell adds only the gateway transport guard (`validate_remote_transport`, feature `gateways`) before delegating.
+The renderer talks to the local core **directly over HTTP**: `app/src/services/coreRpcClient.ts` invokes `core_rpc_url` / `core_rpc_token` once, then issues plain `fetch()` calls. The `relay_http_rpc` Tauri command is a host-side fallback used only when the RPC URL is **not** a trustworthy origin for the secure `tauri://localhost` webview (e.g. a self-hosted runtime on a LAN IP, blocked as mixed content, #3865). In that case the Rust host delegates to `openhuman_rpc::post_json_rpc` from the shared `crates/openhuman-rpc` crate (feature `http-client`): 30 s timeout, redirects disabled when a bearer is present, status + body mirrored back verbatim as `HttpRpcResponse`. The shell adds only the gateway transport guard (`validate_remote_transport`, feature `gateways`) before delegating.
`CoreProcessHandle` in `core_process.rs` owns the embedded server task (started via `openhuman_core::core::jsonrpc::run_server_embedded_with_ready` with a per-launch random bearer token) and handles stale-listener/port-conflict recovery.