Skip to content

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
docs(agent): document shared tool spec schemas
Steven Enamakel committed 2 months ago
0866c61
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: render billing responses independently
Steven Enamakel committed 2 months ago
9c8c9ec
fix: render billing responses independently\n\n
Steven Enamakel committed 2 months ago
56cbc95
fix: harden billing summary integration
Steven Enamakel committed 2 months ago
7c8638b
fix: harden billing summary integration\n\n
Steven Enamakel committed 2 months ago
bd169ce
chore: files changed src/openhuman/tools/toolpacks/ops.rs
Steven Enamakel committed 2 months ago
a2bdf4f
test(feedback): cover the type-pill guard that keeps warned-submission advice\n\nThe guard added in the previous commit is a deliberate behaviour change with no\ntest, which is fair to object to: re-clicking the already-selected type pill used\nto call `setSubmittedQuality(null)` and discard the advice from an\naccepted-with-warning submission, and now it does not.\n\nIt was intentional. The advice outlives the draft it was about, so the only thing\nthat should discard it is an edit, and selecting the type you are already on is\nnot one. This PR also made it far easier to hit: the control went from two\nfull-width buttons, where re-clicking the active one was an unlikely misclick, to\nadjacent pills where it is an easy one.\n\nTwo tests, because the guard has two halves and only one of them is the change:\n\n- `keeps warned-submission advice when the already-selected type is re-clicked`\n is the new behaviour. Revert-checked: with both guards removed it fails on\n "Unable to find an element with the text: Add steps to reproduce.", naming the\n assertion rather than erroring in setup.\n- `discards warned-submission advice when the type actually changes` pins the\n behaviour the guard must NOT swallow. It passes either way by design -- a\n guard that skipped the reset outright would leave stale advice on a draft\n whose type just changed, and this is what would catch that.\n\nClaude-Session: https://claude.ai/code/session_016mWvL5s6eJP7gUeaw5AsMT\n
M3gA-Mind committed 2 months ago
0ed229a