Skip to content

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

chore: files changed docs/gitbooks/en/developing/agent-observability.md,docs/gitbooks/en/developing/

Steven Enamakel2023ac225505
diff --git a/docs/gitbooks/en/developing/agent-observability.md b/docs/gitbooks/en/developing/agent-observability.md
index 53ec9450bd..132d2d288a 100644
--- a/docs/gitbooks/en/developing/agent-observability.md
+++ b/docs/gitbooks/en/developing/agent-observability.md
@@ -120,8 +120,9 @@ go as OTLP/HTTP JSON to the OpenHuman backend's Langfuse proxy,
backend call uses. The backend stamps the signed-in user on every span, injects
the project keys server-side and forwards to Langfuse v4's
`/api/public/otel/v1/traces` with `x-langfuse-ingestion-version: 4`. Clients
-never hold Langfuse credentials directly. Flow runs export the same way
-(`crates/openhuman-core/src/flows/tinyflows/langfuse_export.rs`).
+never hold Langfuse credentials directly. Flow runs export their graph
+observations through `crates/openhuman-core/src/agent/progress_tracing/flow_export.rs`;
+`crates/openhuman-core/src/flows/ops/execution.rs` adapts the engine journal.
Langfuse v4 has no trace record of its own and filters observations directly,
so the exporters copy the trace name, session, tags, release, environment and
diff --git a/docs/gitbooks/en/developing/architecture/flows-on-tinyagents.md b/docs/gitbooks/en/developing/architecture/flows-on-tinyagents.md
index f42d0bcf4a..9a0726414a 100644
--- a/docs/gitbooks/en/developing/architecture/flows-on-tinyagents.md
+++ b/docs/gitbooks/en/developing/architecture/flows-on-tinyagents.md
@@ -66,8 +66,9 @@ flowchart LR
run state and pausing at approval gates.
4. outcome: a `RunOutcome { output, pending_approvals, cancelled }`; the host
persists live steps through the `FlowRunObserver` and exports the durable
- graph observations to Langfuse
- ([`tinyflows/langfuse_export.rs`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-core/src/flows/tinyflows/langfuse_export.rs)).
+ graph observations to Langfuse through the generic exporter
+ ([`agent/progress_tracing/flow_export.rs`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-core/src/agent/progress_tracing/flow_export.rs));
+ `flows/ops/execution.rs` adapts the engine journal.
Because the engine keys persisted state by a caller-supplied `thread_id`,
durable human-in-the-loop resume is `engine::resume_with_checkpointer` over the same
@@ -301,9 +302,10 @@ pattern the flow's own `agent` nodes use:
| Executor | (the engine) | `flows_run` / `flows_resume` | the capability seam above |
Both agents live under
-[`crates/openhuman-core/src/flows/agents/`](https://github.com/tinyhumansai/openhuman/tree/main/crates/openhuman-core/src/flows/agents) as
-first-class registry agents (`agent.toml` + `prompt.md`), on the reasoning tier
-with narrow, safety-reviewed tool belts. The builder is tool-assisted
+[`crates/openhuman-core/src/agent/registry/agents/`](https://github.com/tinyhumansai/openhuman/tree/main/crates/openhuman-core/src/agent/registry/agents)
+as first-class registry agents (`agent.toml` + a host `prompt.rs` builder).
+Their archetype text comes from TinyFlows Copilot over the module bus. They run
+on the reasoning tier with narrow, safety-reviewed tool belts. The builder is tool-assisted
end-to-end: it proposes graphs (validate-only), dry-runs them against mock
capabilities as a self-test loop, and only then saves a real flow and test-runs it with confirmation first. The full discover → build → save → run lifecycle:
@@ -339,8 +341,8 @@ sequenceDiagram
| [`crates/openhuman-core/src/flows/ops.rs`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-core/src/flows/ops.rs) | `flows_run` / `flows_resume` / `flows_build` / `flows_discover` and CRUD. |
| [`crates/openhuman-core/src/flows/bus.rs`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-core/src/flows/bus.rs) | `FlowTriggerSubscriber`: the host-side multi-trigger bridge. |
| [`crates/openhuman-core/src/flows/builder_tools.rs`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-core/src/flows/builder_tools.rs) | The Composio-bound builder reads; the authoring tools are `tinyflows_copilot::tools`, bound by `flows/builder_host.rs`. |
-| [`crates/openhuman-core/src/flows/agents/`](https://github.com/tinyhumansai/openhuman/tree/main/crates/openhuman-core/src/flows/agents) | `workflow_builder` + `flow_discovery` agent definitions. |
-| [`crates/openhuman-core/src/flows/tinyflows/langfuse_export.rs`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-core/src/flows/tinyflows/langfuse_export.rs) | Post-run export of the durable graph observations. |
+| [`crates/openhuman-core/src/agent/registry/agents/`](https://github.com/tinyhumansai/openhuman/tree/main/crates/openhuman-core/src/agent/registry/agents) | `workflow_builder` + `flow_discovery` definitions and host renderers. |
+| [`crates/openhuman-core/src/agent/progress_tracing/flow_export.rs`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-core/src/agent/progress_tracing/flow_export.rs) | Generic post-run graph observation export to Langfuse. |
## See also
diff --git a/docs/gitbooks/en/features/workflows.md b/docs/gitbooks/en/features/workflows.md
index c7281ab0ad..57e27c4f67 100644
--- a/docs/gitbooks/en/features/workflows.md
+++ b/docs/gitbooks/en/features/workflows.md
@@ -24,7 +24,7 @@ Three guarantees keep this safe:
- Every authoring turn is propose-only by default. Normally you click **Save & enable** on the card, which calls the `flows_create` RPC from the app, not from the agent.
- Nothing the agent can do turns a flow on. `flows_set_enabled` is not one of its tools.
-The agent can save in two explicit cases. `save_workflow` writes the built graph onto an existing flow. That is the case when you started the build: the Workflows page prompt bar creates the flow first and opens the copilot on it. When there is no flow yet and you explicitly ask for one ("create this and save it"), the agent may also use `create_workflow`, or `duplicate_flow` to clone a saved flow so you can edit the copy. Both are on the `workflow_builder` agent's tool list (`crates/openhuman-core/src/flows/agents/workflow_builder/agent.toml`), and both force the flow off at creation. `CreateWorkflowTool` calls `flows_set_enabled(.., false)` on anything `flows_create` left enabled. If that second write fails, it reports the flow's real state, not the intended one. So a flow the agent creates starts off and stays off until you enable it. A real test run of a saved flow always needs your confirmation first.
+The agent can save in two explicit cases. `save_workflow` writes the built graph onto an existing flow. That is the case when you started the build: the Workflows page prompt bar creates the flow first and opens the copilot on it. When there is no flow yet and you explicitly ask for one ("create this and save it"), the agent may also use `create_workflow`, or `duplicate_flow` to clone a saved flow so you can edit the copy. Both are on the `workflow_builder` agent's tool list (`crates/openhuman-core/src/agent/registry/agents/workflow_builder/agent.toml`), and both force the flow off at creation. `CreateWorkflowTool` calls `flows_set_enabled(.., false)` on anything `flows_create` left enabled. If that second write fails, it reports the flow's real state, not the intended one. So a flow the agent creates starts off and stays off until you enable it. A real test run of a saved flow always needs your confirmation first.
## What a workflow is made of
diff --git a/docs/module-boundary-inventory.md b/docs/module-boundary-inventory.md
index e3383240ee..693d3f4dd2 100644
--- a/docs/module-boundary-inventory.md
+++ b/docs/module-boundary-inventory.md
@@ -506,8 +506,10 @@ Tool names, descriptions, parameter schemas, permissions and the
`agent_prompt::resolve_completion_model` are upstream; the dedup exactly-once
settle contract was already `tinyflows::nodes::control_flow::dedup_settle`, so
only the per-flow lock and the run-finished subscriber remain in
-`flows/bus/dedup_commit.rs`. `observability.rs` and `langfuse_export.rs` call
-`tinyflows::observe::{step_status_str, to_exporter_observations}`.
+`flows/bus/dedup_commit.rs`. `observability.rs` calls
+`tinyflows::observe::step_status_str`; `flows/ops/execution.rs` converts the
+engine observation journal for the generic exporter in
+`agent/progress_tracing/flow_export.rs`.
Stays host: `search_tool_catalog`, `get_tool_contract`,
`get_tool_output_sample`, `list_connectable_toolkits` and