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(config): add README files for schema and task sources
Steven Enamakeld2f1555a0056
diff --git a/crates/openhuman-core/src/config/schema/README.md b/crates/openhuman-core/src/config/schema/README.mdindex 2f411e899e..de974c4042 100644--- a/crates/openhuman-core/src/config/schema/README.md+++ b/crates/openhuman-core/src/config/schema/README.md@@ -1,64 +1,67 @@# schemaDefines the `Config` struct — the single source of truth for `config.toml` —-and everything needed to load, save, and migrate it. 67 files at this level-plus the `load/`, `cli_overrides/`, and `tools/` subdirectories. AGENTS.md-points contributors here: "Rust configuration is defined under+and everything needed to load, save, and migrate it. AGENTS.md points+contributors here: "Rust configuration is defined under`crates/openhuman-core/src/config/schema/` and loaded through its configoperations" (the operations live in `../ops/`, re-exported as `config::rpc`).`Config` itself is split with `include!`: `types.rs` pulls in`types_part_01.rs` / `types_part_02.rs` (the struct definition, modelconstants, and small helper types) purely to keep any one file under the-repo's ~500-line guideline; treat all three as one unit.+repo's ~500-line guideline; treat all three as one unit. `load_user_state.rs`+sits at this level but is mounted as a submodule of `load/dirs.rs` via+`#[path]`.## Layout — `[section]` → file → struct| `config.toml` section | File | Struct || --- | --- | --- |-| `[agent]` | `agent.rs` | `AgentConfig` (+ `DelegateAgentConfig`, `OrchestratorModelConfig`, `TeamModelConfig`) |+| `[agent]`, `[orchestrator]`, `[teams.*]`, `[agents.*]` | `agent.rs` | `AgentConfig`, `OrchestratorModelConfig`, `TeamModelConfig`, `DelegateAgentConfig` |+| `agent_activity_level` (scalar key) | `activity_level.rs` | `AgentActivityLevel` || `[autonomy]` | `autonomy.rs` | `AutonomyConfig` — feeds `security::SecurityPolicy` |-| `[capability_providers]` | `capability_providers.rs` | `CapabilityProviderConfig` |-| `[channels*]`, security/sandbox sub-blocks | `channels.rs` | `ChannelsConfig`, per-provider configs, `SecurityConfig`, `SandboxConfig` |-| n/a (BYOK cloud providers) | `cloud_providers.rs` | `CloudProviderCreds`, `CloudProviderType` |+| `[[capability_providers]]` | `capability_providers.rs` | `CapabilityProviderConfig` |+| `[channels_config]`, `[sandbox]` | `channels.rs` | `ChannelsConfig` and per-provider configs re-exported from `tinychannels_bus`; `SandboxConfig`, `ResourceLimitsConfig`, `AuditConfig`, and `SecurityConfig` (only `DaemonConfig` embeds the last one) |+| `[claude_agent_sdk]` | `claude_agent_sdk.rs` | `ClaudeAgentSdkConfig` |+| `[[cloud_providers]]`, `primary_cloud`, `*_provider` slugs | `cloud_providers.rs` | `CloudProviderCreds`, `CloudProviderType`, `AuthStyle` || `[context]` | `context.rs` | `ContextConfig` |-| `[dashboard]` | `dashboard.rs` | `DashboardConfig`, `DiagramViewerConfig` |-| `[dictation]` | `dictation.rs` | `DictationConfig` |-| ephemeral inference route | `ephemeral_route.rs` | `EphemeralRoute` |+| `[cost]` | `identity_cost.rs` | `CostConfig`, `ModelPricing` |+| `[dashboard]` | `dashboard.rs` | `DashboardConfig`, `DiagramViewerConfig`, `EventStreamConfig`, `ModelHealthConfig` |+| `[dictation]` | `dictation.rs` | `DictationConfig`, `DictationActivationMode` |+| `[ephemeral_route]` | `ephemeral_route.rs` | `EphemeralRoute` |+| `[heartbeat]`, `[cron]` | `heartbeat_cron.rs` | `HeartbeatConfig`, `CronConfig`, `SubconsciousMode` || `[hooks]` | `hooks.rs` | `HooksConfig` |-| `[heartbeat]`, `[cron]` | `heartbeat_cron.rs` | `HeartbeatConfig`, `CronConfig` || `[hosting]` | `hosting.rs` | `HostingConfig` |-| identity/cost tracking | `identity_cost.rs` | `CostConfig`, `ModelPricing` |-| `[learning]` | `learning.rs` | `LearningConfig` |-| `[local_ai]` | `local_ai.rs` | `LocalAiConfig` |-| `[modules]` | `modules.rs` | `ModulesConfig` — controls only whether compiled-in modules load; the loadable *set* is fixed by `crate::modules::registry` |-| `[node]` (Claude Agent SDK companion) | `node.rs`, `claude_agent_sdk.rs` | `NodeConfig`, `ClaudeAgentSdkConfig` |+| `[learning]` | `learning.rs` | `LearningConfig`, `ReflectionSource` |+| `[local_ai]` | `local_ai.rs` | `LocalAiConfig`, `LocalAiUsage` |+| `[modules]` | `modules.rs` | `ModulesConfig`, `ModuleOverride` — controls only whether compiled-in modules load; the loadable *set* is fixed by `crate::modules::registry` |+| `[node]` | `node.rs` | `NodeConfig` (managed Node.js toolchain for skills) || `[observability]` | `observability.rs` | `ObservabilityConfig`, `AgentTracingConfig` || `[privacy]` | `privacy.rs` | `PrivacyConfig`, `PrivacyMode` || `[proxy]` | `proxy.rs` | `ProxyConfig`, `ProxyScope`, plus `runtime_proxy_config()` / `set_runtime_proxy_config()` process-wide accessors |-| model routing | `routes.rs` | `ModelRouteConfig`, `EmbeddingRouteConfig` |-| `[runtime]` | `runtime.rs` | `RuntimeConfig`, `DockerRuntimeConfig`, `ReliabilityConfig`, `SchedulerConfig`, `ShellConfig` |+| `[[model_routes]]`, `[[embedding_routes]]` | `routes.rs` | `ModelRouteConfig`, `EmbeddingRouteConfig` |+| `[runtime]` (+ `[runtime.docker]`), `[shell]`, `[reliability]`, `[scheduler]` | `runtime.rs` | `RuntimeConfig`, `DockerRuntimeConfig`, `ShellConfig`, `ReliabilityConfig`, `SchedulerConfig` || `[runtime_pool]` | `runtime_pool.rs` | `RuntimePoolConfig`, `RuntimePoolLangConfig` |-| Python runtime pool | `runtime_python.rs` | `RuntimePythonConfig` |-| scheduler gating | `scheduler_gate.rs` | `SchedulerGateConfig`, `SchedulerGateMode` |-| `[memory]`, `[storage]` | `storage_memory.rs` | `MemoryConfig`, `MemoryTreeConfig`, `StorageConfig`, `StorageProviderConfig` |-| `[subconscious]` | `subconscious.rs` | `SubconsciousConfig`, `MedullaLocalConfig` |-| `[subsystems]` | `subsystems.rs` | `SubsystemsConfig` |+| `[runtime_python]` | `runtime_python.rs` | `RuntimePythonConfig` |+| `[scheduler_gate]` | `scheduler_gate.rs` | `SchedulerGateConfig`, `SchedulerGateMode` |+| `[memory]`, `[memory_tree]`, `[storage]` | `storage_memory.rs` | `MemoryConfig`, `MemoryTreeConfig`, `StorageConfig`, `StorageProviderConfig`, `LlmBackend` |+| `[subconscious]` | `subconscious.rs` | `SubconsciousConfig`, `MedullaLocalConfig`, `SubconsciousEngine` |+| `[subsystems]` | `subsystems.rs` | `SubsystemsConfig`, `MemorySubsystemConfig` || `[task_sources]` | `task_sources.rs` | `TaskSourcesConfig` || `[tokenjuice]` | `tokenjuice.rs` | `TokenjuiceConfig` || tool-related sections (see below) | `tools/` | — || `[update]` | `update.rs` | `UpdateConfig`, `UpdateRestartStrategy` |-| voice provider/server sections | `voice_providers.rs`, `voice_server.rs` | `VoiceServerConfig`, activation types |-| top-level `Config` | `types.rs` (+ `_part_01`/`_part_02`) | `Config` |+| `[voice_server]` | `voice_server.rs` | `VoiceServerConfig`, `SttEngine`, `VoiceActivationMode` |+| `[[voice_providers]]`, `stt_provider` / `tts_provider` | `voice_providers.rs` | `VoiceProviderCreds`, `BuiltinVoiceProvider`, `BUILTIN_VOICE_PROVIDERS` |+| top-level `Config` and its scalar keys | `types.rs` (+ `_part_01`/`_part_02`) | `Config`, `ModelRegistryEntry`, `MODEL_*` / `DEFAULT_MODEL` constants || built-in defaults | `defaults.rs` | `impl Default for Config` and per-field `default_*` fns |-| activity level | `activity_level.rs` | `AgentActivityLevel` |`tools/mod.rs` groups the tool-facing sections: `browser.rs` (`BrowserConfig`,`BrowserComputerUseConfig`), `http.rs` (`HttpRequestConfig`, `CurlConfig`),`integrations.rs` (`IntegrationsConfig`, `ComposioConfig`, `SecretsConfig`),`mcp.rs` (`McpServerConfig`, `McpClientConfig`, `GitbooksConfig`),-`multimodal.rs` (`MultimodalConfig`), `search.rs` (`SearchConfig`,-`WebSearchConfig`, `SearxngConfig`).+`multimodal.rs` (`MultimodalConfig`, `MultimodalFileConfig`), `search.rs`+(`SearchConfig`, `WebSearchConfig`, `SearxngConfig`, `SeltzConfig`).Most sections have a matching `*_tests.rs` (some further split into`*_tests_part_0N_tests.rs`); this is the repo's file-size-splitting@@ -67,22 +70,42 @@ convention, not separate modules.## Loading`Config::load_or_init` (in `load/impl_load.rs`) is the entry point used by-`config::ops::loader::load_config_with_timeout`:--1. Resolve the config and workspace directories (`load/dirs.rs`).-2. Read `config.toml`, recovering from non-UTF-8 corruption by falling back to- the `.bak` copy and then to defaults (`impl_load.rs`).-3. Decrypt at-rest secrets (`load/secrets.rs`) — legacy `enc:` values are- force-migrated to `enc2:` (ChaCha20-Poly1305) on read.-4. Apply environment-variable overrides (`load/env.rs`, `load/env_overlay.rs`).+`config::ops::loader::load_config_with_timeout`. For an existing+`config.toml` it runs, in this order:++1. Resolve the config and workspace directories (`load/dirs.rs`,+ `resolve_runtime_config_dirs_with`). With no config file and the default+ config dir, it returns a pre-login in-memory `Config` without writing+ anything.+2. Read and parse `config.toml` (`parse_config_with_recovery`), recovering+ from non-UTF-8 or unparsable content by renaming the file to+ `.corrupted[.<ts>]`, trying the `.bak` copy, and finally falling back to+ defaults with `recovered_from_corruption = true`.+3. Fill `config_path` / `workspace_dir` / `action_dir` (`resolve_action_dir`),+ then apply the two pre-schema-version legacy rewrites in `load/migrate.rs`+ (`migrate_legacy_inference_url`, `migrate_cloud_provider_slugs`).+4. Apply environment-variable overrides — `Config::apply_env_overrides_from`+ in `load/env_overlay.rs` (`include!`s `env_overlay_impl_01_part_0N.rs`);+ `load/env.rs` is only the `EnvLookup` seam that lets tests supply a fake+ environment.5. Run pending schema migrations (`../migrations/`, via- `migrations::run_pending`) and bump `schema_version`.-6. On save, `Config::save()` writes a temp file and hands off to- `load/atomic_commit.rs::commit_replacement`, which fsyncs and renames the- temp file into place and preserves the previous config as `.bak` —- split out specifically so callers can tell "nothing written" (an `Err`- before the rename) from "already committed" (after it) and roll back- in-memory state accordingly.+ `migrations::run_pending`), which bump `schema_version` and save as they go.+6. Decrypt at-rest secrets (`load/secrets.rs`); a legacy `enc:` (XOR) value is+ force-migrated to `enc2:` (ChaCha20-Poly1305 via `security::keyring`) and+ the config is saved again immediately.++A brand-new workspace is instead stamped at `CURRENT_SCHEMA_VERSION`, seeded+via `migrations::seed_new_workspace`, saved (0600 on Unix), and then given the+same env overlay.++`Config::save()` restores CLI-overridden inference fields+(`cli_overrides::restore_persisted_inference_fields`), re-encrypts secrets,+writes and fsyncs a 0600 temp file, then hands off to+`load/atomic_commit.rs::commit_replacement`, which preserves the previous+config as `.bak` and renames the temp file into place. The split exists so+callers can tell "nothing written" (an `Err` before the rename) from "already+committed" (after it) and roll back in-memory state accordingly — the+migrations runner depends on this.`load/mod.rs` also exports `CONFIG_OWNER_MISMATCH_MARKER`: the loader appendsthis marker to a config-read failure when the file's owner differs from the@@ -95,15 +118,17 @@ state.Re-exported through `config::mod` and `config::schema::mod`:- `default_root_openhuman_dir`, `user_openhuman_dir` — the per-user- `~/.openhuman/<user-id>/` root.-- `resolve_action_dir`, `default_action_dir` — the agent's sandboxed- read/write root.+ `~/.openhuman/users/<user-id>/` root.+- `resolve_action_dir`, `default_action_dir`, `action_dir_env_override`+ (`OPENHUMAN_ACTION_DIR`) — the agent's sandboxed read/write root.- `active_workspace_dir` / `active_workspace_dir_cached` — resolve (andsynchronously cache, via `load/active_workspace.rs`) the workspace theloader last resolved, for callers (like the developer Event Log's SSEstream) that cannot afford a disk read per lookup.-- `PRE_LOGIN_USER_ID`, `pre_login_user_dir` — the pre-authentication identity- scope.+- `PRE_LOGIN_USER_ID` (`"local"`), `pre_login_user_dir`,+ `read_active_user_id` / `write_active_user_id` / `clear_active_user` — the+ pre-authentication identity scope and the `active_user.toml` marker+ (implemented in `../load_user_state.rs`).`config` only *describes* these roots. Per AGENTS.md: `action_dir` is theagent's permitted read/write root, and `workspace_dir` stores internal state@@ -118,9 +143,10 @@ into `SecurityPolicy` at startup and on every settings changeProcess-local inference overrides supplied by the standalone CLI(`set_cli_inference_overrides`, `apply_cli_inference_overrides`,-`restore_persisted_inference_fields`, `AppliedInferenceOverride`) — lets a CLI-invocation temporarily swap model/provider without touching the persisted-config.+`restore_persisted_inference_fields` — all `pub(crate)` — and the+`#[doc(hidden)]` `AppliedInferenceOverride` snapshot stored on+`Config::cli_inference_snapshot`) — lets a CLI invocation temporarily swap+model/provider without the override ever reaching the persisted config.## Testsdiff --git a/crates/openhuman-core/src/integrations/task_sources/README.md b/crates/openhuman-core/src/integrations/task_sources/README.mdindex 371ddb6dde..7f89e31e5c 100644--- a/crates/openhuman-core/src/integrations/task_sources/README.md+++ b/crates/openhuman-core/src/integrations/task_sources/README.md@@ -1,17 +1,17 @@# task_sources-Proactive ingestion of work items from external tools. A **task source** is a user-configured pull from a Composio-backed provider (GitHub, Notion, Linear, ClickUp) with a per-provider filter. A periodic poll fetches matching items through the providers' `fetch_tasks` surface; a fetch → dedup → enrich → route pipeline drops a todo card onto the dedicated `task-sources` thread board and, for proactive sources, dispatches a triage turn so an agent can start working immediately. The domain mirrors the `cron` layering: `mod.rs` is export-only, business logic lives in sibling modules, persistence is SQLite, and the RPC surface is wired through `schemas.rs`.+Proactive ingestion of work items from external tools. A **task source** is a user-configured pull from a Composio-backed provider (GitHub, Notion, Linear, ClickUp) with a per-provider filter. A periodic poll runs a fetch → dedup → enrich → route pipeline that drops a todo card onto the dedicated `task-sources` thread board and, for proactive sources, dispatches a triage turn so an agent can start working immediately. **The fetch stage is currently a stub**: `ComposioProvider::fetch_tasks` was deleted upstream (tinymemory v1.13.4) with no replacement, so `pipeline::fetch_tasks_unavailable` refuses every toolkit and only the surrounding stages (dedup, enrichment, routing, storage, reconciliation) are live — see [Notes](#notes--gotchas). The domain mirrors the `cron` layering: `mod.rs` is export-only, business logic lives in sibling modules, persistence is SQLite, and the RPC surface is wired through `schemas.rs`.## Responsibilities- Persist per-source configs (provider + filter + schedule + routing target + optional pinned connection / static executor).- Periodically poll enabled sources (`periodic.rs`) on a global 10-minute tick honoring per-source `interval_secs` (floored to 60s).-- Translate a typed `FilterSpec` into the provider-agnostic `TaskFetchFilter` (`filter.rs`) and fetch via the registered Composio provider.+- Translate a typed `FilterSpec` into the provider-agnostic `TaskFetchFilter` (`filter.rs`); the fetch itself is stubbed (`pipeline::fetch_tasks_unavailable`) until a task-fetch surface exists again.- Dedup ingested items with an edit-aware SHA-256 content hash; re-ingest only when the upstream task changed (`store.rs` + `pipeline.rs`).- Deterministically enrich raw tasks into agent-ready ones — urgency heuristic, summary, linked assignee, templated agent prompt (`enrich.rs`).- Route enriched tasks onto the `task-sources` thread board as todo cards and, for proactive sources, dispatch a triage turn through the same path Composio webhooks use (`route.rs`).- Fire a one-shot fetch when a matching Composio connection is created (`bus.rs`).-- Expose an `openhuman.task_sources_*` RPC surface for CRUD, manual fetch, filter preview, ingested-task listing, and status (`schemas.rs` + `ops.rs`).+- Expose an `openhuman.task_sources_*` RPC surface for CRUD, manual fetch/sync, filter preview, container listing, ingested-task listing, and status (`schemas.rs` + `ops.rs`).## Key files@@ -20,9 +20,9 @@ Proactive ingestion of work items from external tools. A **task source** is a us| `crates/openhuman-core/src/integrations/task_sources/mod.rs` | Export-only: module docstring, `mod`/`pub mod` decls, `pub use` re-exports, and the `all_task_sources_*` controller registry pair. || `crates/openhuman-core/src/integrations/task_sources/types.rs` | Serde domain types: `ProviderSlug`, `FilterSpec` (provider-tagged enum), `SourceTarget`, `FetchReason`, `TaskSource`, `TaskSourcePatch`, `EnrichedTask`, `FetchOutcome`. || `crates/openhuman-core/src/integrations/task_sources/store.rs` | SQLite persistence (`<workspace>/task_sources/sources.db`): `task_sources` + `ingested_tasks` tables, dedup `content_hash`, card-id ledger, migrate-on-open. |-| `crates/openhuman-core/src/integrations/task_sources/ops.rs` | RPC-facing business logic returning `RpcOutcome<T>`: `list`/`get`/`add`/`update`/`remove`/`fetch`/`list_tasks`/`preview_filter`/`status`. |+| `crates/openhuman-core/src/integrations/task_sources/ops.rs` | RPC-facing business logic returning `RpcOutcome<T>`: `list`/`get`/`add`/`update`/`remove`/`fetch`/`sync`/`list_tasks`/`preview_filter`/`list_databases`/`status`. || `crates/openhuman-core/src/integrations/task_sources/schemas.rs` | `task_sources` controller schemas + `all_controller_schemas` / `all_registered_controllers` + thin `handle_*` param parsers delegating to `ops.rs`. |-| `crates/openhuman-core/src/integrations/task_sources/pipeline.rs` | `run_source_once` — the infallible fetch → dedup → enrich → route pass shared by poll, manual RPC, and connection hook; publishes domain events. |+| `crates/openhuman-core/src/integrations/task_sources/pipeline.rs` | `run_source_once` — the infallible fetch → dedup → enrich → route pass shared by poll, manual RPC, and connection hook; publishes domain events. Holds the `fetch_tasks_unavailable` stub and its rationale doc comment. || `crates/openhuman-core/src/integrations/task_sources/filter.rs` | `to_fetch_filter` — flattens a `FilterSpec` variant into the shared `TaskFetchFilter`. || `crates/openhuman-core/src/integrations/task_sources/enrich.rs` | Deterministic, dependency-free `enrich_task`: urgency heuristic, summary, linked assignee, agent prompt. No LLM call. || `crates/openhuman-core/src/integrations/task_sources/route.rs` | `route_enriched` / `add_card` / `board_cards` — appends todo cards to the `task-sources` board (`TASK_SOURCES_THREAD_ID`), removes stale cards on re-ingest, and dispatches a scheduler-gated triage turn for proactive sources. |@@ -54,8 +54,10 @@ Namespace `task_sources` (methods `openhuman.task_sources_<function>`):| `update` | Apply a partial `TaskSourcePatch`. || `remove` | Delete a source by id (cascades `ingested_tasks`). || `fetch` | Fetch one source now (`FetchReason::Manual`) and route new tasks. |+| `sync` | Run `fetch` for every enabled source; returns one `FetchOutcome` per source. || `list_tasks` | List recently ingested tasks for a source (newest first, default limit 50). |-| `preview_filter` | Dry-run a filter — fetch matching tasks WITHOUT routing/recording. |+| `preview_filter` | Dry-run a filter — fetch matching tasks WITHOUT routing/recording. Currently always errors (fetch stub). |+| `list_databases` | List selectable containers (Notion databases) for a provider. Currently always errors (fetch stub). || `status` | Domain master switch + default interval + source counts. |Handlers parse params and delegate to `ops.rs`; schemas reference `FilterSpec`, `TaskSource`, `TaskSourcePatch`, `FetchOutcome`, `NormalizedTask`. Registered into the global registry via `crates/openhuman-core/src/core/all.rs`.@@ -84,14 +86,14 @@ Re-exported into the global agent tool registry via`crates/openhuman-core/src/tools/mod.rs`(`pub use crate::integrations::task_sources::tools::*;`).-`task_source_fetch` and `task_source_preview_filter` currently advertise-themselves as **UNAVAILABLE** in their tool descriptions: the underlying-`ComposioProvider::fetch_tasks` path was removed upstream (tinymemory-v1.13.4), so calling either always fails until it is restored.+`task_source_fetch` and `task_source_preview_filter` advertise themselves+as **UNAVAILABLE** in their tool descriptions for the same reason the fetch+stage is stubbed; calling either always fails until a task-fetch surface is+restored.## Events-Publishes (via `publish_global`, domain `"task_sources"`):+Publishes (via `BUS.publish`, domain `"task_sources"` in `core/events.rs`):- `DomainEvent::TaskSourceFetched` — after a successful fetch pass (counts: fetched/routed/skipped).- `DomainEvent::TaskSourceTaskIngested` — per newly routed task (provider, external_id, title, urgency).@@ -124,7 +126,7 @@ Additive idempotent column migrations (`add_column_if_missing`) backfill `ingest- `crate::core::all` — `ControllerFuture`, `RegisteredController` for the RPC registry.- `crate::core::bus` (`BUS`) + `crate::core::events::DomainEvent` — `BUS.publish`/`BUS.subscribe` for event publish/subscribe.- `crate::config` (+ `config::rpc`) — `Config`, `load_config_with_timeout`; reads the `[task_sources]` block for defaults and the master switch.-- `crate::integrations::composio::providers` — `get_provider`, `ProviderContext`, `NormalizedTask`, `TaskFetchFilter`, `ComposioProvider::fetch_tasks`; the actual external fetch + normalized task shape.+- `crate::integrations::composio::providers` — `NormalizedTask`, `TaskContainer`, `TaskFetchFilter`, `TaskKind` (contract types re-exported from `tinymemory_api::composio::tasks`). The old `get_provider` / `ProviderContext` / `ComposioProvider::fetch_tasks` registry no longer exists; `mod.rs`'s intra-doc link to `fetch_tasks` is stale.- `crate::agent::triage` — `run_triage`, `apply_decision`, `TriageOutcome`, `TriggerEnvelope`; dispatches the proactive agent turn for `AgentTodoProactive` sources.- `crate::threads::todos` (`todos::ops`) — `add`/`remove`, `BoardLocation`, `CardPatch`; the thread-scoped board cards are stored here. Also references `agent::task_board::TaskBoardCard` for `board_cards`.- `crate::cron::scheduler_gate` — `wait_for_capacity` capacity semaphore; gates proactive triage turns behind background-AI throttling.@@ -140,6 +142,7 @@ Additive idempotent column migrations (`add_column_if_missing`) backfill `ingest## Notes / gotchas+- **Fetch is stubbed (tinymemory v1.13.4).** `pipeline::fetch_tasks_unavailable` and `ops::preview_filter` / `ops::list_databases` return an error for every toolkit: the engine's in-process Composio pipeline was deleted upstream and the `tinyconnectors` module exposes only `Execute` and `Sync`, no structured task-fetch member. Re-deriving each toolkit's action selection and response parsing over `Execute` is per-provider work, so the domain refuses cleanly rather than half-porting. Periodic passes therefore record a failed fetch and publish `TaskSourceFetchFailed`.- **Periodic cadence is coarse.** `TICK_SECONDS = 600` is the effective lower bound: any `interval_secs` shorter than 10 minutes is rounded up to the tick. A misconfigured `interval_secs = 0` is floored to `MIN_INTERVAL_SECONDS = 60`. The first immediate-fire tick is skipped so startup isn't slammed.- **Pipeline is infallible at the boundary.** `run_source_once` captures any error into `FetchOutcome::error` (and a failure event) so the scheduler loop never unwinds.- **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.