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(wallet): rewrite wallet and workflows guides in plain prose
Steven Enamakela8f602a71bab
diff --git a/gitbooks/features/wallet.md b/gitbooks/features/wallet.mdindex e0ca35dee3..a7b5dcae56 100644--- a/gitbooks/features/wallet.md+++ b/gitbooks/features/wallet.md@@ -1,114 +1,99 @@---description: >-- Local, non-custodial multi-chain crypto wallet the agent can read balances- from and send transfers with. Keys stay in-core and never cross the wire.+ A local, non-custodial multi-chain crypto wallet the agent can read balances+ from and prepare transfers with. Keys stay in the core and never cross the+ wire.icon: wallet---# Wallet-A deliberately **basic**, **non-custodial** multi-chain crypto wallet owned by the Rust core. It manages one account per supported chain derived from a single recovery phrase, reads balances, and runs a strict **prepare → confirm → execute** flow for native sends and a small set of token transfers.+The wallet is a basic, non-custodial multi-chain crypto wallet owned by the Rust core. It keeps one account per supported chain, all derived from a single recovery phrase. It reads balances and runs a strict prepare, confirm, execute flow for native sends and a small set of token transfers.-It is intentionally minimal: key/account management plus the primitive on-chain operations. Higher-level DeFi (swaps, bridges, generic contract/dapp calls) lives in a separate `web3` module and is **not** part of the wallet's agent or RPC surface.+It is minimal on purpose: key and account management, plus the primitive on-chain operations. Higher-level DeFi (swaps, bridges, generic contract and dapp calls) lives in a separate `web3` module and is not part of the wallet's agent or RPC surface.-The most important property to understand: **signing and broadcast happen entirely in-core from the decrypted recovery phrase. No private keys ever leave the device or cross the network.** This is your money, so the wallet is conservative by design.-----+The key point: signing and broadcast happen entirely in the core, from the decrypted recovery phrase. No private key ever leaves the device or crosses the network. This is your money, so the wallet is conservative by design.## Supported chains and token standards-Setup derives **exactly one account per chain**. EVM is a single account reused across six networks. Only the standards listed below are supported for transfers. Anything else (swaps, arbitrary contract calls) is out of scope for the wallet.+Setup derives exactly one account per chain. The EVM account is reused across six networks. Only the standards below are supported for transfers. Anything else, such as swaps or arbitrary contract calls, is out of scope.-| Chain | Networks | Native | Token standard | Notes |-| ------- | ------------------------------------------------------ | ---------------- | ---------------------------- | -------------------------------------------------------------------------------------------------------------------------- |-| EVM | Ethereum, Base, Arbitrum, Optimism, Polygon, BNB Chain | ETH / BNB / etc. | ERC-20 (BEP-20 on BNB Chain) | One `Evm` account across all six; network selected per request, defaults to Ethereum mainnet. EIP-1559 / typed-tx signing. |-| Bitcoin | Mainnet | BTC | None | P2WPKH (native SegWit). **Rejects token transfers.** Esplora REST for balance/broadcast. |-| Solana | Mainnet / devnet (per RPC) | SOL | SPL | ed25519 signing; native + SPL token transfers. |-| Tron | Mainnet | TRX | TRC-20 | TronGrid REST for native + TRC-20 transfers. |+| Chain | Networks | Native | Token standard | Notes |+| --- | --- | --- | --- | --- |+| EVM | Ethereum, Base, Arbitrum, Optimism, Polygon, BNB Chain | ETH, BNB and others | ERC-20 (BEP-20 on BNB Chain) | One `Evm` account across all six. The network is chosen per request and defaults to Ethereum mainnet. EIP-1559 and typed-tx signing. |+| Bitcoin | Mainnet | BTC | None | P2WPKH (native SegWit). Rejects token transfers. Esplora REST for balance and broadcast. |+| Solana | Mainnet or devnet (per RPC) | SOL | SPL | ed25519 signing. Native and SPL token transfers. |+| Tron | Mainnet | TRX | TRC-20 | TronGrid REST for native and TRC-20 transfers. |-Built-in asset catalogs include the native asset plus common stablecoins per chain (e.g. USDC/USDT as ERC-20/BEP-20, USDC as SPL on Solana, USDT as TRC-20 on Tron).-----+The built-in asset catalogs include the native asset plus common stablecoins per chain, for example USDC and USDT as ERC-20 or BEP-20, USDC as SPL on Solana, and USDT as TRC-20 on Tron.## Onboarding and the recovery phrase-Setup is a single, all-or-nothing operation: it persists a consent flag, the mnemonic word count, the setup source, exactly one derived account per supported chain, and the encrypted recovery phrase. Valid BIP-39 mnemonic word counts are **12, 15, 18, 21, or 24**.+Setup is a single, all-or-nothing operation. It saves a consent flag, the mnemonic word count, the setup source, exactly one derived account per supported chain, and the encrypted recovery phrase. Valid BIP-39 word counts are 12, 15, 18, 21 and 24.-The recovery phrase is the only secret. The wallet stores the per-chain account **addresses** (safe to surface) separately from the secret material, and only the encrypted phrase can reconstruct private keys.-----+The recovery phrase is the only secret. The wallet stores the per-chain account addresses (safe to show) apart from the secret material. Only the encrypted phrase can rebuild private keys.## Key custody and security-The wallet is **non-custodial and local**. There is no server-side key escrow.+The wallet is non-custodial and local. There is no server-side key escrow.-- **The recovery phrase is always encrypted at rest.** It is encrypted via the core `encryption` domain before being persisted anywhere.-- **Preferred home: the OS keychain.** The encrypted phrase lives in the operating system keychain under the key `wallet.mnemonic`, scoped by a workspace-derived user id. Access is gated by the keyring consent policy.-- **Fallback: workspace JSON.** When the keychain is unavailable (e.g. headless), the encrypted phrase falls back to `{workspace_dir}/state/wallet-state.json`. On load, any JSON-resident secret is transparently **migrated into the keychain** when one becomes available, and stripped from the JSON.-- **Atomic, guarded writes.** `wallet-state.json` is written atomically (temp file + fsync + persist) under a process-wide lock. Corrupt or invalid state files are quarantined rather than trusted.-- **Decrypt only at signing time.** Chain signers decrypt the phrase in-core only when deriving a key to sign a confirmed transaction. Plaintext keys are never persisted and never serialized over the wire.+- The recovery phrase is always encrypted at rest. The core `encryption` domain encrypts it before it is saved anywhere.+- The preferred home is the OS keychain. The encrypted phrase lives there under the key `wallet.mnemonic`, scoped by a workspace-derived user id. The keyring consent policy gates access.+- When the keychain is unavailable (for example on a headless machine), the encrypted phrase falls back to `{workspace_dir}/state/wallet-state.json`. When a keychain becomes available, any secret in that JSON is migrated into it and removed from the JSON.+- Writes to `wallet-state.json` are atomic (temp file, fsync, persist) under a process-wide lock. Corrupt or invalid state files are quarantined, not trusted.+- Chain signers decrypt the phrase in the core only when deriving a key to sign a confirmed transaction. Plaintext keys are never saved and never sent over the wire.-See [OS keyring & secret storage](os-keyring-and-secret-storage.md) for how secrets are stored across platforms, and [Privacy & security](privacy-and-security.md) for the broader model.-----+See [OS keyring and secret storage](os-keyring-and-secret-storage.md) for how secrets are stored on each platform, and [Privacy and security](privacy-and-security.md) for the broader model.## Reading balances and chain info-Read-only surfaces require no confirmation:+Read-only surfaces need no confirmation:-- **Status**: onboarding state plus the safe per-chain account addresses.-- **Balances**: native-asset balances per account. Note: only **EVM balances read live** today (Ethereum mainnet); BTC, Solana, and Tron call their providers but fall back to a zero balance with a "provider missing" status on error.-- **Network defaults / supported assets**: per-chain RPC and explorer URLs, capability flags, and the built-in asset catalog.-- **Chain status**: per-chain readiness and the active RPC URL.+- **Status:** onboarding state plus the safe per-chain account addresses.+- **Balances:** native-asset balances per account. Only EVM balances read live today (Ethereum mainnet). BTC, Solana and Tron call their providers but fall back to a zero balance with a "provider missing" status on error.+- **Network defaults and supported assets:** per-chain RPC and explorer URLs, capability flags and the built-in asset catalog.+- **Chain status:** per-chain readiness and the active RPC URL.-RPC endpoints are overridable per chain/network via `OPENHUMAN_WALLET_RPC_*` environment variables. URLs are redacted to scheme + host in logs.+You can override RPC endpoints per chain and network with `OPENHUMAN_WALLET_RPC_*` environment variables. Logs redact URLs to scheme and host.------## Sending transfers: prepare → confirm → execute+## Sending transfers: prepare, confirm, execute-Every write is a two-step, intentional flow. The wallet never sends in one shot.+Every write is a two-step, deliberate flow. The wallet never sends in one shot.-1. **Prepare** (`prepare_transfer`): validates the amount, destination address, and (for tokens) calldata, estimates fees, and returns a **prepared quote** with a `quoteId`. Quotes are held in an in-memory store with a **5-minute TTL**, capped at 64, and are **not** persisted across restarts.-2. **Confirm + execute** (`execute_prepared`): requires `confirmed: true` and a valid `quoteId`. The quote is consumed atomically before broadcast so concurrent confirmations can't double-submit; on failure it's restored with a refreshed TTL so it stays retryable.+1. **Prepare** (`prepare_transfer`) validates the amount, the destination address and (for tokens) the calldata, estimates fees, and returns a prepared quote with a `quoteId`. Quotes sit in an in-memory store with a 5-minute TTL, capped at 64. They are not kept across restarts.+2. **Confirm and execute** (`execute_prepared`) needs `confirmed: true` and a valid `quoteId`. The quote is consumed atomically before broadcast, so concurrent confirmations cannot double-submit. On failure it is restored with a refreshed TTL, so you can retry.-**Quote-owner binding.** Each quote is bound to the chat thread that prepared it. A quote can only be executed by the same owner that prepared it; a `quoteId` leaked into a shared channel returns an indistinguishable "not found" error rather than letting another session hijack it.+Each quote is bound to the chat thread that prepared it. Only that owner can execute it. A `quoteId` leaked into a shared channel returns the same "not found" error as an unknown id, so another session cannot hijack it.-Transfers are limited to **native sends and the token standards in the table above**. Bitcoin rejects token transfers. Swaps, bridges, and generic contract calls are not available here.-----+Transfers are limited to native sends and the token standards in the table above. Bitcoin rejects token transfers. Swaps, bridges and generic contract calls are not available here.## Transaction status tracking-After broadcast, three read-only inspectors let the agent follow a transaction by hash:+After broadcast, three read-only tools let the agent follow a transaction by hash:-- **`tx_status`**: lifecycle state (pending / confirmed / failed / not found).-- **`tx_receipt`**: receipt details (success, fee, block).-- **`lookup_tx`**: the raw transaction payload.-----+- `tx_status`: lifecycle state (pending, confirmed, failed or not found).+- `tx_receipt`: receipt details (success, fee, block).+- `lookup_tx`: the raw transaction payload.## Agent tools and approval safetyThe agent reaches the wallet through six tools:-| Tool | Purpose |-| ------------------------- | --------------------------------------- |-| `wallet_status` | Onboarding status + account addresses. |-| `wallet_chain_status` | Per-chain readiness + active RPC. |+| Tool | Purpose |+| --- | --- |+| `wallet_status` | Onboarding status and account addresses. |+| `wallet_chain_status` | Per-chain readiness and active RPC. || `wallet_prepare_transfer` | Build a validated, fee-estimated quote. |-| `wallet_tx_status` | Transaction lifecycle state by hash. |-| `wallet_tx_receipt` | Transaction receipt by hash. |-| `wallet_lookup_tx` | Raw transaction lookup by hash. |+| `wallet_tx_status` | Transaction lifecycle state by hash. |+| `wallet_tx_receipt` | Transaction receipt by hash. |+| `wallet_lookup_tx` | Raw transaction lookup by hash. |-Notice there is **no agent tool that executes a transfer.** The agent can prepare a quote, but actually moving funds (`execute_prepared`) goes through the RPC surface, where it must be explicitly confirmed and pass the owner-binding check. Combined with the prepare-then-confirm flow and the per-thread quote binding, this keeps the agent from silently spending funds.+No agent tool executes a transfer. The agent can prepare a quote, but moving funds (`execute_prepared`) goes through the RPC surface, where it must be explicitly confirmed and pass the owner-binding check. Together with prepare-then-confirm and per-thread quote binding, this keeps the agent from spending funds silently.-Because these are financial actions, the shape of every write is prepare-then-confirm: a quote is bound to the conversation that asked for it, expires after five minutes, and is consumed when it executes, so two confirmations cannot double-submit. The [approval gate](approval-gate.md) is the second layer, and it only applies once you have turned the autonomy policy on, which is **off by default**. Treat every transfer as a high-stakes action and read that page before relying on the gate.-----+A quote is bound to the conversation that asked for it, expires after five minutes and is consumed when it executes. The [approval gate](approval-gate.md) is the second layer. It applies only once you turn on the autonomy policy, which is off by default. Treat every transfer as high-stakes and read that page before relying on the gate.## See also- [Approval gate](approval-gate.md)-- [Privacy & security](privacy-and-security.md)-- [OS keyring & secret storage](os-keyring-and-secret-storage.md)+- [Privacy and security](privacy-and-security.md)+- [OS keyring and secret storage](os-keyring-and-secret-storage.md)diff --git a/gitbooks/features/workflows.md b/gitbooks/features/workflows.mdindex b8c25fdb03..c7281ab0ad 100644--- a/gitbooks/features/workflows.md+++ b/gitbooks/features/workflows.md@@ -1,9 +1,8 @@---description: >-- Durable, visual automations built on the open-source tinyflows engine. The- agent proposes a workflow in chat; you review it on a canvas, save it, and it- runs on schedules or live app events, pausing for your approval when it- matters.+ Durable, visual automations. The agent proposes a workflow in chat, you+ review it on a canvas and save it, and it runs on schedules or live app+ events, pausing for your approval when it matters.icon: diagram-project---@@ -11,58 +10,60 @@ icon: diagram-project<figure><img src="../.gitbook/assets/workflows.png" alt=""><figcaption><p>A workflow on the visual canvas. The agent proposes the graph; you review each step and save.</p></figcaption></figure>-Chat is great for one-off asks. **Workflows** are for the things you want done _every time_: triage every new support email, file every Linear ticket that mentions your team, post a digest every Monday at 9. Heavily inspired by [n8n](https://n8n.io) and [Zapier](https://zapier.com), a workflow is a saved, typed graph of steps you can see on a canvas and that runs without you. It is backed by the open-source [tinyflows](https://github.com/tinyhumansai/tinyflows) engine and the same trust and approval machinery as the rest of OpenHuman. The difference from n8n and Zapier: you don't build the graph, the agent does.+Chat is good for one-off asks. Workflows are for things you want done every time: triage every new support email, file every Linear ticket that mentions your team, post a digest every Monday at 9.++A workflow is a saved, typed graph of steps. You can see it on a canvas, and it runs without you. It is inspired by [n8n](https://n8n.io) and [Zapier](https://zapier.com), and it runs on the open-source [tinyflows](https://github.com/tinyhumansai/tinyflows) engine with the same trust and approval machinery as the rest of OpenHuman. The difference from n8n and Zapier is that you do not build the graph. The agent does.## The agent builds it, you approve it-You don't drag boxes to get started. Describe the automation in chat, for example _"whenever a new email arrives from a customer, summarize it and post to my Slack"_, and the agent uses its `propose_workflow` tool to draft a complete workflow graph. The proposal shows up in chat as a **Workflow Proposal Card** with a plain-English summary of every step.+You do not drag boxes to get started. Describe the automation in chat, for example "whenever a new email arrives from a customer, summarize it and post to my Slack". The agent uses its `propose_workflow` tool to draft a full workflow graph. The proposal appears in chat as a Workflow Proposal Card with a plain-English summary of every step.-Three design guarantees make this safe:+Three guarantees keep this safe:-- The `propose_workflow` tool **only validates and describes** a candidate graph. It can never persist or enable a flow by itself.-- Every authoring turn is propose-only by default. The usual path from a proposal to a saved workflow is you clicking **Save & enable** on the card, which calls the `flows_create` RPC directly from the app, not from the agent.-- Nothing the agent can do turns a flow **on**. `flows_set_enabled` is off its belt entirely.+- `propose_workflow` only validates and describes a candidate graph. It can never save or enable a flow.+- 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.-Persisting is scoped to two explicit asks. `save_workflow` writes the built graph onto an **already-existing** flow, 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 for clone-then-edit. Both are on the `workflow_builder` agent's named tool list (`crates/openhuman-core/src/flows/agents/workflow_builder/agent.toml`), and both are force-disabled at creation: `CreateWorkflowTool` calls `flows_set_enabled(.., false)` on anything `flows_create` left enabled, and reports the flow's real state rather than the intended one if that second write fails. So a flow the agent creates is born off and stays off until you enable it, and 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/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.## What a workflow is made of-A workflow graph is built from the engine's **22 node kinds**: exactly one `trigger`, plus any mix of `agent` (a full agent turn with tools), `tool_call`, `http_request`, `code` (JavaScript or Python), `shell`, `condition`, `switch`, `transform`, `split_out`, `merge`, `output_parser`, `sub_workflow`, `memory`, `dedup`, `loop`, `spawn`, `gate`, `scatter`, `gather`, `approval`, and `void`.+A workflow graph uses the engine's 22 node kinds: exactly one `trigger`, plus any mix of `agent` (a full agent turn with tools), `tool_call`, `http_request`, `code` (JavaScript or Python), `shell`, `condition`, `switch`, `transform`, `split_out`, `merge`, `output_parser`, `sub_workflow`, `memory`, `dedup`, `loop`, `spawn`, `gate`, `scatter`, `gather`, `approval` and `void`.-The canvas palette offers fifteen of them today: `trigger`, `agent`, `tool_call`, `http_request`, `code`, `condition`, `switch`, `merge`, `split_out`, `transform`, `output_parser`, `sub_workflow`, `memory`, `dedup` and `loop`. The other seven are reachable by importing a graph. Two also have no host adapter wired yet: a `shell` node has no runner, and an `approval` node falls back to pausing the run for `flows_resume` rather than raising its own card.+The canvas palette offers fifteen of them today: `trigger`, `agent`, `tool_call`, `http_request`, `code`, `condition`, `switch`, `merge`, `split_out`, `transform`, `output_parser`, `sub_workflow`, `memory`, `dedup` and `loop`. You can reach the other seven by importing a graph. Two also have no host adapter wired yet. A `shell` node has no runner, and an `approval` node pauses the run for `flows_resume` instead of raising its own card.-A graph is usually a straight line or a fan-out, but it may also contain a **bounded loop**: a `loop` node emits on its `body` port until its `max_iterations` cap (or an optional `condition`) says stop, then emits on `done`. You close the loop by wiring the body's last node back to the `loop` node. The cap is always finite, and `on_exceeded` decides what reaching it means: `error` fails the run and names the loop, `continue` stops looping and carries the last pass's items out through `done`.+A graph is usually a straight line or a fan-out. It can also contain a bounded loop. A `loop` node emits on its `body` port until its `max_iterations` cap (or an optional `condition`) says stop, then emits on `done`. You close the loop by wiring the body's last node back to the `loop` node. The cap is always finite, and `on_exceeded` decides what reaching it means. `error` fails the run and names the loop. `continue` stops looping and carries the last pass's items out through `done`.-Triggers come in several kinds. The ones live today:+These triggers are live today:-- **Schedule**: cron-backed; the flow fires on its schedule and re-registers itself on every app boot.-- **App event**: a live [trigger](integrations/triggers.md) from a connected integration (a new Gmail thread, a Notion change, a Linear ticket) matched by toolkit + trigger slug.-- **Manual**: a Run button on the Workflows page or the `flows_run` RPC.-- **Resume**: continuing a run that paused at an approval gate.+- **Schedule:** cron-backed. The flow fires on its schedule and re-registers itself on every app boot.+- **App event:** a live [trigger](integrations/triggers.md) from a connected integration (a new Gmail thread, a Notion change, a Linear ticket), matched by toolkit and trigger slug.+- **Manual:** a Run button on the Workflows page, or the `flows_run` RPC.+- **Resume:** continuing a run that paused at an approval gate.-A per-flow dispatch lock means a schedule burst can never run the same flow twice concurrently.+A per-flow dispatch lock means a schedule burst can never run the same flow twice at once.-## Trust, approvals, and human-in-the-loop+## Trust, approvals and human-in-the-loop-Every flow run executes under a dedicated trust origin (`TrustedAutomation → Workflow`). The reasoning: the flow's _actions_ (which tools it calls, which URLs it hits) are static graph configuration you approved at save time. The runtime trigger payload (a webhook body, an inbound event) stays **untrusted**: it can feed arguments into those pre-declared actions, but it can never introduce a new action.+Every flow run executes under a dedicated trust origin (`TrustedAutomation → Workflow`). The flow's actions, meaning which tools it calls and which URLs it hits, are static graph configuration you approved at save time. The runtime trigger payload (a webhook body, an inbound event) stays untrusted. It can feed arguments into those pre-declared actions, but it can never add a new action.-On top of that, each flow has a **"Require approval for outbound actions"** switch. With it on, every external-effect tool or HTTP call in the run parks at the [approval gate](approval-gate.md) and waits for a real decision. The run's trust root does not auto-allow anything.+Each flow also has a **Require approval for outbound actions** switch. With it on, every external-effect tool or HTTP call in the run waits at the [approval gate](approval-gate.md) for a real decision. The run's trust root does not auto-allow anything.-When a run pauses, you get a **Flow Approval Card** in your notifications naming the flow and the pending steps. Approve resumes the run (via `flows_resume`) exactly where it stopped. Runs are durable and checkpointed, so "later today" is fine.+When a run pauses, a Flow Approval Card appears in your notifications naming the flow and the pending steps. Approving resumes the run (through `flows_resume`) exactly where it stopped. Runs are durable and checkpointed, so "later today" is fine.## Watching it run-- **`/flows`**: the Workflows hub, showing every flow with its enabled toggle, last-run status (`completed` / `pending approval` / `failed`), and a Run button.-- **`/flows/:id`**: a read-only **canvas view** of the workflow graph, rendered as nodes and edges so you can see exactly what you approved.-- **Run Inspector**: a drawer showing each run step by step (node label, emitted output, and final status), live-polling every 2 seconds until the run finishes.-- Full **run history** is persisted per flow: status, start/finish times, pending approvals, errors, and reconstructed per-step output.+- `/flows` is the Workflows hub. It shows every flow with its enabled toggle, last-run status (`completed`, `pending approval` or `failed`) and a Run button.+- `/flows/:id` is a read-only canvas view of the workflow graph, drawn as nodes and edges, so you can see exactly what you approved.+- The Run Inspector is a drawer that shows each run step by step (node label, emitted output and final status). It polls every 2 seconds until the run finishes.+- Full run history is saved per flow: status, start and finish times, pending approvals, errors and rebuilt per-step output.## RPC surface (for developers)-The `flows` domain (`crates/openhuman-core/src/flows/`) exposes 36 controllers under `openhuman.flows_*`, covering definitions (`create`, `get`, `list`, `update`, `delete`, `set_enabled`, `duplicate`, `validate`, `import`), runs (`run`, `resume`, `cancel`, `list_runs`, `get_run`, history), drafts and the authoring copilot. See the [Agent Harness](../developing/architecture/agent-harness.md) page for how flow runs share the tinyagents execution stack.+The `flows` domain (`crates/openhuman-core/src/flows/`) exposes 36 controllers under `openhuman.flows_*`. They cover definitions (`create`, `get`, `list`, `update`, `delete`, `set_enabled`, `duplicate`, `validate`, `import`), runs (`run`, `resume`, `cancel`, `list_runs`, `get_run`, history), drafts and the authoring copilot. See the [agent harness](../developing/architecture/agent-harness.md) page for how flow runs share the tinyagents execution stack.## See also- [Triggers](integrations/triggers.md): the live app events that fire `app_event` workflows.-- [Approval Gate](approval-gate.md): how pending approvals are surfaced and expire.-- [Cron & Scheduling](native-tools/cron.md): one-shot and recurring agent jobs (workflows are the structured, multi-step upgrade).+- [Approval gate](approval-gate.md): how pending approvals are surfaced and expire.+- [Cron and scheduling](native-tools/cron.md): one-shot and recurring agent jobs. Workflows are the structured, multi-step upgrade.