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
chore: files changed crates/openhuman-core/src/integrations/task_sources/README.md,crates/openhuman-
Steven Enamakel713f55f97950
diff --git a/crates/openhuman-core/src/integrations/task_sources/README.md b/crates/openhuman-core/src/integrations/task_sources/README.mdindex 62571b807e..f21201fb45 100644--- a/crates/openhuman-core/src/integrations/task_sources/README.md+++ b/crates/openhuman-core/src/integrations/task_sources/README.md@@ -120,8 +120,8 @@ Startup wiring is split across three sites; both entry points are idempotentSQLite at `<workspace_dir>/task_sources/sources.db` (WAL, 5s busy timeout, migrate-on-open):-- **`task_sources`**, configured sources: provider, optional connection_id/name, enabled, filter JSON, interval_secs, target, max_tasks_per_fetch, created_at, and last_fetch_at/last_status.-- **`ingested_tasks`**, per-(source, external_id) dedup ledger: edit-aware `content_hash` (SHA-256 over title/body/status/updated_at/url), normalized task `payload`, `ingested_at`. The `card_id` column is a leftover from when tasks were mirrored onto a todo board; it is written as `NULL` and kept only so older databases open unchanged. FK to `task_sources` with `ON DELETE CASCADE`.+- **`task_sources`**: configured sources, provider, optional connection_id/name, enabled, filter JSON, interval_secs, target, max_tasks_per_fetch, created_at, and last_fetch_at/last_status.+- **`ingested_tasks`**: per-(source, external_id) dedup ledger, edit-aware `content_hash` (SHA-256 over title/body/status/updated_at/url), normalized task `payload`, `ingested_at`. The `card_id` column is a leftover from when tasks were mirrored onto a todo board; it is written as `NULL` and kept only so older databases open unchanged. FK to `task_sources` with `ON DELETE CASCADE`.The additive idempotent `ingested_tasks.card_id` migration preserves older databases. App-level defaults (enabled flag, default interval, per-fetch cap, auto_proactive) live in config (`TaskSourcesConfig`), not the store.@@ -152,5 +152,5 @@ The additive idempotent `ingested_tasks.card_id` migration preserves older datab- **Route-then-mark ordering.** A task is marked ingested only after routing succeeds, so a routing failure retries next pass instead of being silently dropped.- **Edit-aware dedup.** `content_hash` includes `url` deliberately (it drives external write-back); a changed hash re-ingests and re-routes.- **`update_source` TOCTOU.** Documented theoretical read-modify-write window across three connections; acceptable at settings-panel scale.-- **Enrichment is intentionally LLM-free**, deterministic and unit-testable; the heavy reasoning happens in the downstream triage turn.+- **Enrichment is intentionally LLM-free**: deterministic and unit-testable; the heavy reasoning happens in the downstream triage turn.- `clear_all` exists for the E2E `test_reset` RPC.diff --git a/crates/openhuman-core/src/tools/toolpacks/README.md b/crates/openhuman-core/src/tools/toolpacks/README.mdindex ee4ac20bff..ed17574dd3 100644--- a/crates/openhuman-core/src/tools/toolpacks/README.md+++ b/crates/openhuman-core/src/tools/toolpacks/README.md@@ -10,8 +10,8 @@ constructed and executable but unadvertised: the agent sees one small tool,## How it works- `types::ToolPack` is the unit: an `id`, a one-line `summary` shown in the- always-on pack index, the `tools` it owns, and `owners` — agent ids the pack- is *not* applied to, because the specialist a family was delegated to+ always-on pack index, the `tools` it owns, and `owners` (agent ids the pack+ is *not* applied to), because the specialist a family was delegated to(`settings_agent` for `system`, `skill_executor` for `skills`, ...) shouldnot pay a `use_skill` round trip on every call of its own belt.- `registry::PACKS` is the compiled-in table. Membership is a build-timediff --git a/crates/openhuman-core/src/web3/x402/README.md b/crates/openhuman-core/src/web3/x402/README.mdindex 9f87ece91b..bf1d33a6b0 100644--- a/crates/openhuman-core/src/web3/x402/README.md+++ b/crates/openhuman-core/src/web3/x402/README.md@@ -14,7 +14,7 @@ dedicated `x402_request` agent tool or as a 402 fallback inside the generic## Compile-time gate (`web3` feature)-`pub mod x402;` (declared in `web3/mod.rs`) is ALWAYS compiled — it is a+`pub mod x402;` (declared in `web3/mod.rs`) is always compiled: it is afacade. The real payment machinery (`ops`, `schemas`, `store`, `tools`,`types`) is gated behind the default-ON `web3` Cargo feature (shared with`web3` and `web3::wallet`). When the feature is off, `stub.rs` takes its@@ -24,9 +24,9 @@ runtime-gated on `DomainGroup::Web3`), `all_x402_registered_controllers`, and`all_x402_controller_schemas` (both empty). `X402RequestTool`'s registrationand the `http_request` 402-retry path are `#[cfg(feature = "web3")]` at theirown call sites, so the rest of the payment surface (`PaymentRecord`, `store`,-`SettlementResponse`, …) is never referenced when the feature is off and does-not need a stub. Signatures must match the real ones exactly; `cargo check---no-default-features` is the only thing that catches drift.+`SettlementResponse`, and so on) is never referenced when the feature is off+and does not need a stub. Signatures must match the real ones exactly;+`cargo check --no-default-features` is the only thing that catches drift.## Key files@@ -39,8 +39,8 @@ not need a stub. Signatures must match the real ones exactly; `cargo check| `ops/evm_payment.rs` | EVM EIP-712 authorization/payload construction (`evm_payment_authorization`, `evm_payment_payload`), `evm_signer` (EVM signer resolution), `build_evm_payment` (signs via `modules::wallet::sign_message`), and a `cfg(test)`-only local `k256` signer used to check the construction against a fixed vector. || `ops/solana_payment.rs` | The Solana instruction builders (ComputeBudget, `TransferChecked`, Memo) and `build_solana_payment`. || `store.rs` | Append-only JSONL payment ledger (`PaymentLedger`) with per-request/daily/monthly budget enforcement and session/daily/monthly spend summaries; `PaymentRecord`, `PaymentStatus`, `SpendingSummary`, `SpendingBudget`, `BudgetCheck`, the process-global `GLOBAL_LEDGER`, `init_global` (re-exported as `init_ledger`), and `with_ledger`/`with_ledger_mut` accessors. |-| `schemas.rs` | RPC controller schemas + handlers for the `x402` namespace: `get_summary`, `list_payments`, `update_budget`. |-| `tools.rs` | `X402RequestTool` (`x402_request`) — purpose-built agent tool for x402 endpoints, as opposed to the generic `http_request` tool's opportunistic 402 fallback. |+| `schemas.rs` | RPC controller schemas and handlers for the `x402` namespace: `get_summary`, `list_payments`, `update_budget`. |+| `tools.rs` | `X402RequestTool` (`x402_request`), a purpose-built agent tool for x402 endpoints, as opposed to the generic `http_request` tool's opportunistic 402 fallback. || `types.rs` | Wire types for the v2 protocol: header names, CAIP-2 network/asset constants (Solana mainnet/devnet, Base/Ethereum, USDC mints/contracts), `PaymentRequired`/`PaymentRequirements`/`PaymentPayload`/`PaymentProof` (Evm/Solana variants), `SettlementResponse`, `ResourceInfo`. || `stub.rs` | Disabled facade compiled when `web3` is off. See Compile-time gate above. || `x402_tests.rs`, `store_tests.rs`, `stub_tests.rs` | Behavior tests, `#[cfg(all(test, feature = "web3"))]` except `stub_tests.rs` which runs only in the disabled build. |@@ -70,11 +70,11 @@ which handles a 402 only as a silent fallback for any endpoint.## Persistence-- **`{workspace_dir}/x402/payments.jsonl`** — one JSON `PaymentRecord` per+- `{workspace_dir}/x402/payments.jsonl`: one JSON `PaymentRecord` perline, appended on every pending/settled/failed payment. Loaded into memoryat `PaymentLedger::new` (via `init_ledger`) and held in the process-global`GLOBAL_LEDGER`, guarded by a `parking_lot::Mutex`.-- **Budget enforcement** (`SpendingBudget`, defaults: 1 USDC per request, 10+- Budget enforcement (`SpendingBudget`, defaults: 1 USDC per request, 10USDC per day, 100 USDC per month, in atomic units) is checked against thein-memory ledger before a payment is built. Daily and monthly totals sumthe `Settled` records for the current UTC day / calendar month. The session@@ -87,41 +87,41 @@ which handles a 402 only as a silent fallback for any endpoint.## Dependencies-- `crate::web3::wallet::secret_material` — fetches the encrypted mnemonic ++- `crate::web3::wallet::secret_material`: fetches the encrypted mnemonic andderivation path for the chain being paid on (`WalletChain::Evm` /`WalletChain::Solana`).-- `crate::security::encryption::rpc::decrypt_secret` — decrypts the mnemonic+- `crate::security::encryption::rpc::decrypt_secret`: decrypts the mnemonicin this process just long enough to hand it to the signer.-- `crate::modules::wallet::{derive_account, sign_message}` — the actual+- `crate::modules::wallet::{derive_account, sign_message}`: the actualderivation and signing happen inside the loaded `tinywallet` native moduleover a confidential bus call; this binary never derives a private key or- holds one. Only the decrypted **mnemonic** passes through this process, in+ holds one. Only the decrypted mnemonic passes through this process, inthe `tinywallet_bus::wire::SecretMaterial` handed to those calls.-- `tinywallet_bus::wire::SecretMaterial`, `tinywallet_bus::Chain` — the wire+- `tinywallet_bus::wire::SecretMaterial`, `tinywallet_bus::Chain`: the wiretypes crossing that seam.-- `crate::config::rpc::load_config_with_timeout` — config needed to reach the+- `crate::config::rpc::load_config_with_timeout`: config needed to reach thewallet module and decrypt the mnemonic.## Used by-- `crates/openhuman-core/src/tools/impl/network/http_request.rs` (~lines- 165-265) — `handle_x402_payment`, gated `#[cfg(feature = "web3")]`, is the- 402 fallback path any HTTP tool call can hit; it calls+- `crates/openhuman-core/src/tools/impl/network/http_request.rs` (around lines+ 165-265): `handle_x402_payment`, gated `#[cfg(feature = "web3")]`, is the+ 402 fallback path any HTTP tool call can hit. It calls`x402::handle_402_and_pay` and records to the same ledger via`x402::store::with_ledger_mut`.-- `crates/openhuman-core/src/tools/ops.rs` — registers `X402RequestTool` as an+- `crates/openhuman-core/src/tools/ops.rs`: registers `X402RequestTool` as anagent tool.-- `crates/openhuman-core/src/core/all.rs` (~line 569) — wires+- `crates/openhuman-core/src/core/all.rs` (around line 569): wires`all_x402_registered_controllers` into the controller registry under`DomainGroup::Web3`.-- `crates/openhuman-core/src/core/jsonrpc.rs` (~line 2477) — calls+- `crates/openhuman-core/src/core/jsonrpc.rs` (around line 2477): calls`init_ledger(&workspace_dir, &x402_session)` at boot, itself runtime-gated on`DomainGroup::Web3`.## Notes / gotchas- The paying account never needs SOL (or ETH/native gas) for the payment- transaction itself — the facilitator is the fee payer / on-chain submitter.+ transaction itself; the facilitator is the fee payer and on-chain submitter.The wallet does still need the payment asset (typically USDC) on the targetchain.- Budget limits live in the process (defaults or env at boot, thendiff --git a/gitbooks/developing/release-policy.md b/gitbooks/developing/release-policy.mdindex 08bb7ed45b..bf6fffe1f4 100644--- a/gitbooks/developing/release-policy.md+++ b/gitbooks/developing/release-policy.md@@ -117,7 +117,7 @@ There is no separate `staging` branch: staging cuts and production releases both- **Naming.** Staging tags use the SemVer pre-release suffix `-staging` (`v1.2.4-staging`) so they sort _before_ the matching production tag.- **Collisions.** Both workflows fail fast if the target tag already exists locally or on `origin`. Resolve by deleting the stale tag (org maintainers only) or bumping past it.- **Rollback (production).** A failed build matrix triggers `cleanup-failed-release`, which deletes both the draft GitHub Release and the `v<version>` tag.-- **Rollback (staging).** A failed staging build deletes the `v<version>-staging` tag. The bump commit on the selected source branch is left in place; the next staging cut continues from the new patch number rather than re-using it (we accept a small “gap” in patch numbers over racing with concurrent merges).+- **Rollback (staging).** A failed staging build deletes the `v<version>-staging` tag. The bump commit on the selected source branch is left in place; the next staging cut continues from the new patch number rather than re-using it (we accept a small "gap" in patch numbers over racing with concurrent merges).- **Who can delete tags.** Same write-access as `main`. Workflow-driven cleanup deletes run with the workflow's token via `actions/github-script` (the GitHub App token is only used by `prepare-build` for the bump commit + tag push); manual deletes (`git push --delete origin <tag>`) require equivalent maintainer permissions.## Release App token: approval gate and rotation