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
docs(flows): rewrite flows-on-tinyagents for clarity
Steven Enamakel4ea23a35ab91
diff --git a/gitbooks/developing/architecture/flows-on-tinyagents.md b/gitbooks/developing/architecture/flows-on-tinyagents.mdindex ceda24c8e3..baf605f5e0 100644--- a/gitbooks/developing/architecture/flows-on-tinyagents.md+++ b/gitbooks/developing/architecture/flows-on-tinyagents.md@@ -1,25 +1,18 @@---description: >-- How a saved flow runs - lowering a WorkflowGraph onto tinyagents, the- {run,nodes} run-state, the capability seam, agent-nodes-as-nested-graphs, the- two-layer security model, and the one-trigger model.+ How a saved flow runs: the WorkflowGraph lowered onto tinyagents, the run+ state, the capability seam, agent nodes as nested graphs, the two-layer+ security model and the one-trigger model.icon: diagram-project---# Flows on TinyAgents-The **flows** domain ([`crates/openhuman-core/src/flows/`](https://github.com/tinyhumansai/openhuman/tree/main/crates/openhuman-core/src/flows)) drives-saved automations - the workflows a user builds in the canvas or the copilot-builds for them. It does **not** contain a workflow engine. Every flow is run by-the vendored, host-agnostic [`tinyflows`](https://github.com/tinyhumansai/tinyflows) crate, which-**lowers each workflow onto the same [`tinyagents`](https://crates.io/crates/tinyagents)-state-graph engine that the [agent harness](agent-harness.md) runs on.** So a-saved flow is a tinyagents graph, and (after harness unification) each of its-`agent` nodes is _itself_ a tinyagents graph - a graph within a graph.+The flows domain ([`crates/openhuman-core/src/flows/`](https://github.com/tinyhumansai/openhuman/tree/main/crates/openhuman-core/src/flows)) runs+saved automations: the workflows a user builds in the canvas or the copilot+builds for them. It does not contain a workflow engine. The vendored, host-agnostic [`tinyflows`](https://github.com/tinyhumansai/tinyflows) crate runs every flow. It lowers each workflow onto the same [`tinyagents`](https://crates.io/crates/tinyagents) state-graph engine that the [agent harness](agent-harness.md) runs on. A saved flow is therefore a tinyagents graph, and each of its `agent` nodes is itself a tinyagents graph, a graph within a graph.-This page is the flows counterpart to [Agent Harness](agent-harness.md): where-that page explains how one agent _turn_ runs, this one explains how one _flow_-runs, and how the two runtimes compose.+This page is the flows counterpart to [Agent harness](agent-harness.md). That page explains how one agent turn runs. This one explains how one flow runs, and how the two runtimes compose.## Two crates, one engine@@ -28,16 +21,16 @@ runs, and how the two runtimes compose.| `tinyflows` | Host-agnostic workflow model + validate + compile + run. Never hard-codes a vendor; every outside-world effect goes through a capability trait. | [`vendor/tinyflows/`](https://github.com/tinyhumansai/tinyflows) || `tinyagents` | The published state-graph + agent-loop harness both runtimes lower onto. | crate; OpenHuman seam in [`crates/openhuman-core/src/agent/tinyagents/`](https://github.com/tinyhumansai/openhuman/tree/main/crates/openhuman-core/src/agent/tinyagents) || `openhuman::flows` | The host: CRUD/run/resume RPCs, SQLite store, triggers, the builder/scout agents. | [`crates/openhuman-core/src/flows/`](https://github.com/tinyhumansai/openhuman/tree/main/crates/openhuman-core/src/flows) |-| `openhuman::flows::tinyflows` | The **capability seam** - adapters implementing the `tinyflows` traits over real OpenHuman services. | [`crates/openhuman-core/src/flows/tinyflows/`](https://github.com/tinyhumansai/openhuman/tree/main/crates/openhuman-core/src/flows/tinyflows) |+| `openhuman::flows::tinyflows` | The capability seam: adapters implementing the `tinyflows` traits over real OpenHuman services. | [`crates/openhuman-core/src/flows/tinyflows/`](https://github.com/tinyhumansai/openhuman/tree/main/crates/openhuman-core/src/flows/tinyflows) |`tinyflows` is published to crates.io and is deliberately persistence-free andvendor-free (see its [`CLAUDE.md`](https://github.com/tinyhumansai/tinyflows/blob/main/CLAUDE.md)); OpenHuman-is the first downstream host and injects everything real through the seam.+is the first downstream host. It injects everything real through the seam.## The run pipeline-A flow is a [`WorkflowGraph`](https://github.com/tinyhumansai/tinyflows/tree/main/crates/tinyflows/src/model) - a directed-graph of typed [`Node`]s joined by [`Edge`]s, JSON on the wire. Running it is a+A flow is a [`WorkflowGraph`](https://github.com/tinyhumansai/tinyflows/tree/main/crates/tinyflows/src/model), a directed+graph of typed nodes joined by edges, as JSON on the wire. Running it is afixed four-stage pipeline([`vendor/tinyflows/crates/tinyflows/src/lib.rs`](https://github.com/tinyhumansai/tinyflows/blob/main/crates/tinyflows/src/lib.rs),[`compiler.rs`](https://github.com/tinyhumansai/tinyflows/blob/main/crates/tinyflows/src/compiler.rs),@@ -56,30 +49,29 @@ flowchart LRseam["openhuman::flows::tinyflows<br/>capability seam"] -. host-injected .-> run```-1. **validate** ([`validate.rs`](https://github.com/tinyhumansai/tinyflows/blob/main/crates/tinyflows/src/validate.rs)) -+1. validate ([`validate.rs`](https://github.com/tinyhumansai/tinyflows/blob/main/crates/tinyflows/src/validate.rs)) -structural checks over the raw graph: unique node ids, that every referenced- node exists, and **exactly one trigger node** (0 → `MissingTrigger`, >1 →- `MultipleTriggers`). This is the single-trigger invariant the whole model- rests on (see [Trigger model](#the-trigger-model)).-2. **compile** ([`compiler.rs`](https://github.com/tinyhumansai/tinyflows/blob/main/crates/tinyflows/src/compiler.rs)) - runs+ node exists, and exactly one trigger node (0 → `MissingTrigger`, >1 →+ `MultipleTriggers`). The whole model rests on this single-trigger invariant (see [Trigger model](#the-trigger-model)).+2. compile ([`compiler.rs`](https://github.com/tinyhumansai/tinyflows/blob/main/crates/tinyflows/src/compiler.rs)): runsvalidation, then lowers the validated graph onto a fresh `tinyagents` state- graph. **Every tinyflows node becomes a tinyagents graph node**; every+ graph. Every tinyflows node becomes a tinyagents graph node, and everytinyflows edge becomes a graph edge, with conditional/parallel routing and amerge barrier expressed on the tinyagents graph layer. The graph is rebuiltper run so compilation stays independent of any host state.-3. **run** ([`engine.rs`](https://github.com/tinyhumansai/tinyflows/blob/main/crates/tinyflows/src/engine.rs)) - the host+3. run ([`engine.rs`](https://github.com/tinyhumansai/tinyflows/blob/main/crates/tinyflows/src/engine.rs)): the hostcalls `engine::run_with_checkpointer_journaled_observed`([`flows/ops.rs`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-core/src/flows/ops.rs), `flows_run`), whichdrives the compiled graph to completion, folding each node's output into therun state and pausing at approval gates.-4. **outcome** - a `RunOutcome { output, pending_approvals, cancelled }`; the host+4. outcome: a `RunOutcome { output, pending_approvals, cancelled }`; the hostpersists live steps through the `FlowRunObserver` and exports the durablegraph observations to Langfuse([`tinyflows/langfuse_export.rs`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-core/src/flows/tinyflows/langfuse_export.rs)).Because the engine keys persisted state by a caller-supplied `thread_id`,-durable **HITL resume** is `engine::resume_with_checkpointer` over the same-`tinyagents::graph::SqliteCheckpointer` the agent harness uses - opened once per+durable human-in-the-loop resume is `engine::resume_with_checkpointer` over the same+`tinyagents::graph::SqliteCheckpointer` the agent harness uses: opened once perhost at `<workspace_dir>/flows/checkpoints.db`([`caps/ops.rs`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-core/src/flows/tinyflows/caps/ops.rs), `open_flow_checkpointer`).@@ -104,45 +96,45 @@ The entire run's working memory is a single `serde_json::Value` laid out as}```-As the graph executes, a **merge reducer** folds each node's item output into+As the graph executes, a merge reducer folds each node's item output into`nodes.<id>`. Because merging is additive rather than last-writer-wins, a-**fan-in** node can see every predecessor's output at once, and a **fan-out**-(`split_out`) node's parallel branches merge back at the barrier without-clobbering one another - the same reducer pattern the tinyagents graph layer uses-for its own `map_reduce` fan-out (see [Agent Harness](agent-harness.md)).+fan-in node can see every predecessor's output at once, and the parallel branches of a fan-out+(`split_out`) node merge back at the barrier without+clobbering one another. The tinyagents graph layer uses the same reducer pattern+for its own `map_reduce` fan-out (see [Agent harness](agent-harness.md)).-Every **capability node** (agent / tool_call / http_request / code) emits its-output wrapped in a stable **`{ json, text, raw }` envelope**. Downstream nodes-never see the raw completion shape - they bind against the envelope:+Every capability node (agent, tool_call, http_request and code) emits its+output wrapped in a stable `{ json, text, raw }` envelope. Downstream nodes+never see the raw completion shape. They bind against the envelope:-- `=item.json.<field>` - the structured object (when the producer emitted JSON);-- `=item.text` - the prose form;-- `=item.raw` - the untouched producer output.+- `=item.json.<field>` is the structured object, when the producer emitted JSON.+- `=item.text` is the prose form.+- `=item.raw` is the untouched producer output.### The `=`-expression scopeNode config is resolved through jq/jaq `=`-expressions([`vendor/tinyflows/crates/tinyflows/src/expr.rs`](https://github.com/tinyhumansai/tinyflows/blob/main/crates/tinyflows/src/expr.rs)) against a-per-node **scope** with four bindings:+per-node scope with four bindings:| Binding | What it holds || ------- | ------------------------------------------------------------------------------------------- || `item` | the first input item's `json` (the direct predecessor's output) || `items` | every input item's `json`, in edge order |-| `run` | run metadata and the **trigger payload** (`run.trigger`) |-| `nodes` | **every completed node's output, keyed by id**: `{ "<id>": { "item": …, "items": [ … ] } }` |+| `run` | run metadata and the trigger payload (`run.trigger`) |+| `nodes` | every completed node's output, keyed by id: `{ "<id>": { "item": …, "items": [ … ] } }` |-So a node three hops downstream can reach back to a specific ancestor by id --`"=nodes.planner.item.json.plan"` - which is exactly how the demo workflow passes-the planner's structured plan into the drafter's prompt. A `"=item.text"` form is-the short-hand for the immediate predecessor. Missing segments resolve to `null`+So a node three hops downstream can reach back to a specific ancestor by id, for example+`"=nodes.planner.item.json.plan"`. That is how the demo workflow passes+the planner's structured plan into the drafter's prompt. The `"=item.text"` form is+the shorthand for the immediate predecessor. Missing segments resolve to `null`rather than erroring, and a malformed jq program yields `null` rather than-panicking - node wiring never crashes the run.+panicking: node wiring never crashes the run.## The capability seam-`tinyflows` touches nothing real on its own. Everything - LLM calls, tools, HTTP,-code, persistence, sub-workflow lookup - is a **capability trait** the host+`tinyflows` touches nothing real on its own. LLM calls, tools, HTTP,+code, persistence and sub-workflow lookup are each a capability trait that the hostimplements ([`vendor/tinyflows/crates/tinyflows/src/caps/mod.rs`](https://github.com/tinyhumansai/tinyflows/blob/main/crates/tinyflows/src/caps/mod.rs)).`openhuman::flows::tinyflows::caps` supplies one adapter per trait, assembled into a`Capabilities` bundle per run by `build_capabilities`@@ -159,7 +151,7 @@ implements ([`vendor/tinyflows/crates/tinyflows/src/caps/mod.rs`](https://github| `WorkflowResolver` | `sub_workflow` by id | `OpenHumanWorkflowResolver` | the saved-flow store (`load_flow_graph`) || `MemoryProvider` | `memory` | `OpenHumanMemory` | the memory store (`tinyflows/memory_adapter.rs`) |-`AgentRunner` is **optional** in the crate (`Capabilities::agent` is+`AgentRunner` is optional in the crate (`Capabilities::agent` is`Option`): a host without an agent registry leaves it `None` and `agent` nodesfall back to a bare `LlmProvider` completion. OpenHuman always wires it, so`agent` nodes get the real agent runtime described next. Of the remaining@@ -169,26 +161,24 @@ approvals reuse the engine's pause-and-`flows_resume` fallback.## Agent nodes: a graph within the graph-A flow `agent` node names a **registered agent kind** through a trusted+A flow `agent` node names a registered agent kind through a trusted`agent_ref` in its config (a custom specialist, …).`OpenHumanAgentRunner::run_agent` resolves that ref and routes on what it finds:-- **A harness `AgentDefinition` exists** → build a full harness `Agent`+- A harness `AgentDefinition` exists: build a full harness `Agent`(`Agent::from_config_for_agent`) and run the node's request through- `run_single`. That is the _same_ entry the builder/scout and cron+ `run_single`. That is the same entry the builder, scout and cronjobs use, and internally it drives `run_turn_via_tinyagents_shared`([`crates/openhuman-core/src/agent/tinyagents/mod.rs`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-core/src/agent/tinyagents/mod.rs)) -the tinyagents `AgentHarness` tool-call loop. The definition's ToolScope,`sandbox_mode`, and `max_iterations` govern the inner turn.-- **Only a custom `AgentRegistryEntry` exists** (no full definition) → the- persona-shaping fallback: the entry's `system_prompt` (and model, when the node+- Only a custom `AgentRegistryEntry` exists (no full definition): use the+ persona-shaping fallback. the entry's `system_prompt` (and model, when the nodedidn't pin one) is prepended and the request runs through- `OpenHumanLlm::complete` - a single completion, no private tool loop. This- keeps custom registry agents working without a regression.+ `OpenHumanLlm::complete`, a single completion with no private tool loop. This+ keeps custom registry agents working.-The consequence is the nesting the plan set out to achieve: **the flow is a-tinyagents graph whose `agent` nodes each run a nested tinyagents graph (one-agent turn).**+The result is nesting: the flow is a tinyagents graph whose `agent` nodes each run a nested tinyagents graph (one agent turn).```mermaidflowchart TB@@ -213,10 +203,10 @@ Either path returns a JSON value; the `agent` node folds it into thenode's declared schema), so a downstream node's binding is identical whether thenode ran a full agent turn or a bare completion.-`agent_ref` is resolved **from trusted node config only, never from model-output**, so a prompt-injected upstream completion cannot pick an arbitrary agent-kind. The **builder's dry-run** exercises this path too:-`dry_run_workflow` compiles a draft and runs it against `tinyflows`' _mock_+`agent_ref` is resolved from trusted node config only, never from model+output, so a prompt-injected upstream completion cannot pick an arbitrary agent+kind. The builder's dry-run exercises this path too:+`dry_run_workflow` compiles a draft and runs it against `tinyflows`' mockcapabilities wired with a `MockAgentRunner`([`vendor/tinyflows/crates/tinyflows/src/caps/mock.rs`](https://github.com/tinyhumansai/tinyflows/blob/main/crates/tinyflows/src/caps/mock.rs)),so a draft whose `agent` nodes carry an `agent_ref` is self-tested end-to-end@@ -224,10 +214,10 @@ before it is ever saved.## The security model: two gates-A flow run is guarded on **two independent layers**, an outer one owned by the+A flow run is guarded on two independent layers, an outer one owned by theflows runtime and an inner one owned by the agent harness.-**Outer gate - the flow's origin + autonomy tier.** `flows_run`/`flows_resume`+Outer gate: the flow's origin and autonomy tier. `flows_run`/`flows_resume`scope a `TrustedAutomation { source: Workflow { require_approval } }` originaround the whole engine future([`flows/ops.rs`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-core/src/flows/ops.rs), via@@ -237,81 +227,79 @@ around the whole engine futuretheir classified class) in `enforce_node_tier_gate`([`caps/`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-core/src/flows/tinyflows/caps/mod.rs)):-- a `readonly` run **`Block`s** at the network/code boundary and never dispatches;+- a `readonly` run is blocked at the network/code boundary and never dispatches;- a `supervised` run's `Prompt` decision is escalated by `gate_call_for_tier`- into a **forced `ApprovalGate` round-trip** - even when the flow's own+ into a forced `ApprovalGate` round trip, even when the flow's own`require_approval` is `false`, so the tier's "ask me" can't be silently- defeated by a saved flow's default trust;+ defeated by a saved flow's default trust.- a `full` run passes through.-Composio `tool_call` nodes get an extra deny-by-default **curation gate**+Composio `tool_call` nodes get an extra deny-by-default curation gate(`is_curated_flow_tool`): a slug is allowed only if it resolves to a known,-curated, in-scope, connected toolkit action - stricter than the general agent+curated, in-scope, connected toolkit action. This is stricter than the general agenttool-call path, because a flow's slug is a free-form string the author typedrather than one the backend returned from live discovery.-**Inner gate - the agent definition's ToolScope + sandbox.** When an `agent`-node runs a full harness `Agent`, that turn runs under the _same_ `Workflow`+Inner gate: the agent definition's ToolScope and sandbox. When an `agent`+node runs a full harness `Agent`, that turn runs under the same `Workflow`origin (the engine future is already inside `with_origin`), so the autonomy tier-and approval gate apply to the inner turn automatically - **no new origin-wrapper**. On top of that, the agent definition's own `ToolScope`,+and approval gate apply to the inner turn automatically, with no new origin+wrapper. On top of that, the agent definition's own `ToolScope`,`sandbox_mode`, and iteration cap bound what the turn can do, exactly as they dofor a chat sub-agent. So an `agent` node is gated twice: the flow's outerautonomy/origin gate and the agent's inner tool/sandbox gate.`agent_ref` being trusted-config-only is the third leg: untrusted trigger or-upstream data can influence _arguments_ (bounded by the curation + scope +-approval checks) but never _which agent kind or tool identity_ runs.+upstream data can influence arguments (bounded by the curation, scope and+approval checks) but never which agent kind or tool identity runs.## The trigger model-`tinyflows` enforces **exactly one trigger node per graph** at validate time+`tinyflows` enforces exactly one trigger node per graph at validate time([`validate.rs`](https://github.com/tinyhumansai/tinyflows/blob/main/crates/tinyflows/src/validate.rs)). A workflow thereforehas a single entry point, and the trigger's payload is what seeds `run.trigger`in the run state.-That is a _model-level_ constraint, not a product limitation. **Multi-trigger is-a host-side concern today**, handled by the flows domain rather than the engine.+That is a model-level constraint, not a product limitation. Multi-trigger is+a host-side concern today, handled by the flows domain rather than the engine.`FlowTriggerSubscriber` ([`flows/bus.rs`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-core/src/flows/bus.rs)) isthe trigger → run bridge: it subscribes to the normalized domain events a savedflow's single trigger node can bind to and calls `flows::ops::flows_run` for eachmatch:-- **`DomainEvent::FlowScheduleTick`** - a `flow`-type cron job fired; the one+- `DomainEvent::FlowScheduleTick`: a `flow`-type cron job fired; the onenamed flow is loaded, re-checked for a still-live `schedule` trigger, anddispatched with an empty trigger payload.-- **`DomainEvent::ComposioTriggerReceived`** - every enabled flow with an+- `DomainEvent::ComposioTriggerReceived`: every enabled flow with an`app_event` trigger bound to that `toolkit`/`trigger_slug` is dispatched withthe event payload seeded into `run.trigger`.Dispatch is deduped per `flow_id` (a trigger burst can't spawn overlapping runs-for the same flow), while the interactive `flows_run` RPC is deliberately _not_-deduped - a user asking to run a flow again is always honored.+for the same flow), while the interactive `flows_run` RPC is deliberately not+deduped, so a user asking to run a flow again is always honored.-So "run this flow on a schedule **and** when a Gmail message arrives" is+So "run this flow on a schedule and when a Gmail message arrives" isexpressed as two host subscriptions fanning into the same one-trigger graph.-**Model-level multiple triggers on one graph are future work**, tracked as such;-nothing in the seam or the store depends on it today.+Multiple triggers on one graph are future work. Nothing in the seam or the store depends on them today.-## Builder, scout, and executor: one harness+## Builder, scout and executor: one harness-The three agents that touch flows all run on the shared agent harness --`Agent::from_config_for_agent` → `run_single` under a scoped origin - the same+The three agents that touch flows all run on the shared agent harness:+`Agent::from_config_for_agent` → `run_single` under a scoped origin, the samepattern the flow's own `agent` nodes use:| Agent | Registry id | Entry point | Tool belt || --------------------- | -------------------- | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |-| **Builder** (copilot) | `workflow_builder` | `flows_build` ([`ops.rs`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-core/src/flows/ops.rs)) | `propose_workflow` / `revise_workflow` (validate-only), `dry_run_workflow` (compile + run vs. mocks), `save_workflow`, `run_workflow`, catalog/connection reads ([`builder_tools.rs`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-core/src/flows/builder_tools.rs)) |-| **Scout** (discovery) | `flow_discovery` | `flows_discover` ([`ops.rs`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-core/src/flows/ops.rs)) | `suggest_workflows` ([`discovery_tools.rs`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-core/src/flows/discovery_tools.rs)) |-| **Executor** | _(n/a - the engine)_ | `flows_run` / `flows_resume` | the capability seam above |+| Builder (copilot) | `workflow_builder` | `flows_build` ([`ops.rs`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-core/src/flows/ops.rs)) | `propose_workflow` / `revise_workflow` (validate-only), `dry_run_workflow` (compile + run vs. mocks), `save_workflow`, `run_workflow`, catalog/connection reads ([`builder_tools.rs`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-core/src/flows/builder_tools.rs)) |+| Scout (discovery) | `flow_discovery` | `flows_discover` ([`ops.rs`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-core/src/flows/ops.rs)) | `suggest_workflows` ([`discovery_tools.rs`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-core/src/flows/discovery_tools.rs)) |+| 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) asfirst-class registry agents (`agent.toml` + `prompt.md`), on the reasoning tierwith 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_ and confirm-first-_test-runs_ a real flow. The full discover → build → save → run lifecycle:+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:```mermaidsequenceDiagram@@ -343,15 +331,15 @@ sequenceDiagram| [`vendor/tinyflows/crates/tinyflows/src/caps/mod.rs`](https://github.com/tinyhumansai/tinyflows/blob/main/crates/tinyflows/src/caps/mod.rs) | The capability traits + `Capabilities` bundle. || [`crates/openhuman-core/src/flows/tinyflows/caps/`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-core/src/flows/tinyflows/caps/mod.rs) | The host adapters, `build_capabilities`, `open_flow_checkpointer`, the two-layer gate helpers. || [`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/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 builder's `propose` / `revise` / `dry_run` / `save` / `run` tools. || [`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. |## See also-- [Agent Harness](agent-harness.md) - the tinyagents turn every `agent` node (and+- [Agent harness](agent-harness.md): the tinyagents turn every `agent` node (andthe builder/scout) runs on.-- [Security (`crates/openhuman-core/src/security/`)](security.md) - the `SecurityPolicy` /+- [Security (`crates/openhuman-core/src/security/`)](security.md): the `SecurityPolicy` /autonomy tier the outer node gate consults.-- [Architecture overview](README.md) - where flows sit in the bigger picture.+- [Architecture overview](README.md): where flows sit in the bigger picture.