The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Commits on main
fix(memory): name the stale module binding instead of a bare NotFound\n\nA folder memory source added after login syncs forever with `NotFound` even\nthough the host's config.toml has it. Only a restart clears it.\n\nThe memory module is handed `config_path` once, when it loads, and\n`ensure_loaded` is a no-op once the module is Ready — `Claim::Done(Ready)`\nreturns without looking at the `config` it was passed. `rebind_workspace` swaps\nthe host's binding under a lock and tells the module nothing. So a process that\nboots signed out loads the module against the pre-login profile, and after login\nthe host writes `[[memory_sources]]` into the real profile's config.toml while\nthe module keeps reading the old one. Every id the host registers is unknown to\nit. Staging never saw this because it always boots with a stored session, so the\nworkspace resolves before the module loads.\n\nThe binding is not repaired here, and that is deliberate. `modules/host.rs`\nstates that tinybus never unloads a library and that there is no shutdown path\nbecause there is nothing a shutdown could reclaim. Re-resolving would initialise\na second module instance over a library whose first instance is still mapped and\nstill holding its SQLite handles, with no way to tear it down — worse than the\nbug. The two workable shapes, a reconfigure entry point or per-call path\nresolution, both need a new tinymemory-module release and a registry pin bump,\nso neither can ship from this repo.\n\nWhat the host can do is stop the failure being anonymous, at both points where\nit can see it.\n\n`describe_source_sync_failure` uses a fact the host already has: `sync_rpc`\nreads its own registry three lines above, for the enabled gate. When the host\nhas the source and the driver answers NotFound, the two registries disagree, and\nthe message now says so and names the restart. A NotFound for an id the host\ndoes not have either is a genuinely missing source and passes through unchanged\n— diagnosing that as drift would send the reader down the wrong path — as does\nevery non-NotFound failure.\n\n`rebind_workspace` now warns when it rebinds while the module is already Ready,\nwhich is the moment the binding goes stale, rather than leaving a NotFound on a\nsync minutes later as the only evidence.\n\nRevert-checked: with the diagnosis reduced to a pass-through, the drift test\nfails on its own assertion, quoting the bare driver string it is meant to\nreplace (23 passed, 1 failed). Restored: 24 passed. Wider: memory::sources 47,\nruntime::context 18, modules:: 147.\n M3gA-Mind committed 2 months ago
535a130 fix(agent): make load_skill's listing agree with the gate that refuses it\n\nTwo defects, one root: the pack surface disagreed with itself about what a\nsession may call.\n\n**1. `HideFromPrompt` was being read as a denial.** `ToolPolicyDecision::\nis_denied()` is `!matches!(action, Allow)`, so it answers true for a tool that\nis merely withheld from the prompt. But `HideFromPrompt` is the normal, healthy\nstate of every withheld packed tool — AGENTS.md's disclosure table is explicit\nthat `Withheld` means "Schemas on the wire: no (reached via `load_skill` /\n`use_skill`)", "Registered and callable: **yes**".\n\n`channel_permission_block`'s inner `use_skill` check gated on `is_denied()`, so\nit refused *every* withheld packed tool — the entire pack mechanism for every\nnon-owner, not an edge case, and `use_skill` is the only route those tools have.\n`ToolPolicyDecision::blocks_execution()` now names the distinction the codebase\nneeded: a disclosure mask is not an execution denial. The direct-call path keeps\nusing `is_denied()`, deliberately — a tool the model was never shown has no\nbusiness being called by name.\n\n**2. The listing advertised what the gate would refuse.** `load_skill` rendered\nevery tool in a pack that this build compiled, and `use_skill` then refused the\nones the session genuinely cannot execute. A non-owner was handed a menu it\ncould not order from: the orchestrator loaded `workflows`, read\n`propose_workflow` off the listing, called it, and was told it "is not allowed\nin the current session". The denial named no alternative, so the model retried —\na live chat turn died on the repeated-failure breaker after six identical\ndenials.\n\n`registry.rs` claimed non-owners "reach them through `use_skill`". The gate\n(`70b2c5f54`, 2026-08-21) predates the comment asserting it (`a8f0a002b`,\n2026-08-23), and defect 1 is why the claim stopped being true.\n\nThree seams:\n\n* `render_pack_filtered` takes the same predicate the gate applies, and skips\n what the gate would refuse. `render_pack` keeps the unfiltered behaviour for\n callers with no session.\n* The middleware renders `load_skill` (it is the only layer holding the\n session), placed AFTER the permission and policy gates so neither becomes\n advisory for this one tool.\n* Both the listing and the `use_skill` denial name a route out, from one shared\n `route_sentence`, so they cannot tell the model different stories.\n\nThe route is derived from the session's own tool set: every synthesised\n`delegate_*` tool publishes its target agent on the erased host-extension slot\n(`traits::delegation_target`), so the hint can name `build_workflow` only when\nthis session actually holds it. A static owner-to-tool table was the obvious\nalternative and is worse — it duplicates each agent's `delegate_name` and could\nname a delegate the session was never built with.\n\nThe orchestrator prompt now routes workflow authoring to `build_workflow`.\n\nThis was never specific to `workflows`. A static read of the orchestrator's\nreachable tools against every pack finds 94 tools across 10 packs that\n`load_skill` would list and the gate would refuse — `documents`, `audio` and\n`system` are packs it can call nothing in at all. `audio` is ownerless, so it is\nthe one pack that still gets no route; left alone as a product decision.\n M3gA-Mind committed 2 months ago
4e21d9b fix(test): fail loudly if the built-in agent registry does not load\n\n`load_builtins().unwrap_or_default()` absorbed a registry load failure into an\nempty delegate set. Every pack delegate — `do_crypto`, `build_workflow`,\n`run_skill`, `setup_skills`, `use_mcp_server`, `setup_mcp_server`,\n`discover_workflows` — would then resolve against nothing and be reported as a\nphantom name. A broken registry would have surfaced as a list of fake stale\ntools: the exact failure this test exists to report, raised for a reason that\nhas nothing to do with a stale table.\n\n`load_builtins` documents that built-in TOML is baked into the binary and must\nalways parse, so an `Err` is a broken invariant, not a condition to swallow.\n`.expect` with a diagnostic naming the consequence.\n\nFound by tinysweeper on #6217.\n\nVerified: product features pass; CI's gates-off command\n(`--no-default-features --lib -- tools::ops::tests::`) 72 passed, 0 failed;\nfull `tools::` + `agent::registry` 1904 passed, 0 failed.\n M3gA-Mind committed 2 months ago
2e29fba