Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

Commits on main

test(memory): restore the flows guards, and drop the seam installers' remains\n\nFour review findings, all of them fair.\n\n**Two spawned threads that install nothing.** `worker_c_modules_e2e` and\n`agent_turn_overrides_e2e` each kept a named thread with an 8 MiB stack running\n`|| {}`, under a comment describing memory host seams it no longer installs.\nThe seams cannot come back — `memory::host_impls` went with the engine — so the\nceremony goes instead of the closure. `agent_turn_overrides_e2e` loses its\n`MEMORY_SEAMS_INIT` static and four calls with it.\n\n**Two flows tests deleted for one engine-bound assertion each.**\n`memory_node_remember_user_scope_is_rejected_and_never_touches_user_memory`\nchecked three layers: the tinyflows compiler refusing a `remember`/`scope:\n"user"` node, the adapter refusing it again through the capability\n`build_capabilities` wires, and the user's real `GLOBAL_NAMESPACE` store being\nuntouched. Only the third needed an engine. The first is asserted nowhere else\nin this crate — I checked before restoring — and the second is not redundant\nwith `memory_adapter_tests::remember_rejects_user_scope`, because what it pins\nis that the capability a real run *receives* is that adapter, rather than\nsomething assembled differently on the way. A user-scope memory leak is the\nfailure this guards, which is a poor thing to delete as collateral.\n\nThe third layer is not replaced, and saying so is better than a substitute: the\ndriver this crate now binds has no user store to leave untouched, so an\nassertion against it would pass whether or not the guard held.\n\n`memory_node_dry_run_uses_mock_memory_and_never_touches_the_real_store` loses\nits two real-store reads for the same reason and keeps the half that still\ndistinguishes the paths — the dry run comes back with `MockMemory`'s `mem_1`\necho, which no real adapter produces, so a dry run that reached the real store\nfails the assertion rather than passing quietly.\n\n**Two assertions that asserted nothing.** `context_query`'s check had been\nreduced to `let _ = &queried.value;` when its content assertion went (that half\nwas semantic ranking, which is the driver's and is asserted upstream) — which\nwould have let a handler that stopped calling the driver pass. It now pins the\nhandler's own contract, the log tag it emits. And `make_memory`'s `_cfg` binding\nsurvived only because the underscore silenced the warning; it selected nothing\nand read as though it still did.\n
Shanu committed 2 months ago
99c62cd
revert(bench): keep the profiling binaries, which never measured the engine\n\nBoth `[[bin]]`s behind the `rss-bench` gate went out with the engine. Only one\nof them was ever about it.\n\n`rss_bench.rs` names no engine symbol at all — it builds an `Agent` roster over\nits own in-file `NoopMemory` and samples RSS, and its own doc comment explains\nthat it hand-rolls that store rather than asking the factory, because\n`create_memory(backend = "none")` never returned a no-op backend. It was deleted\nonly because it shared a feature gate with `library-profile`, and the CI lane\nthat builds it (`Rust RSS Benchmark`, report-only, #5046) would have been red on\nevery rust-core PR from here on.\n\n`library_profile` is 12 files and 2 of them touch the engine: `memory_ingest`\ndrained its queue and `cold_phases` checkpointed its bootstrap through\n`tinymemory_core::store::MemoryClient`. Those two are gone. The other six\nscenarios — agent-turn, long-agent, workflow, fleet, skill-run, subagent-storm —\nmeasure the agent harness, the flows engine and a real `node` child, and named\nno engine symbol. So does everything in `scripts/profile/`, all seven scripts of\nwhich invoke this binary.\n\nThe feature that gated them is now `rss-bench = []`. It used to read\n`["dep:tinycortex", "dep:tinymemory-core"]`, and that was never for the\nbenchmark's sake: a `[[bin]]` cannot use a dev-dependency, so this feature was\nwhat turned the engine on for the two scenarios that are now gone. `dhat` and\n`rss-bench-dhat` come back with it, because `library-heap.sh` needs them; both\nstay default-OFF and out of `product-features.txt`, and `cargo tree -e normal -i\ndhat` under the product set finds nothing.\n\n**The `rss-bench` arm of the test-provider override had to come back too, and\nthis is the part I got wrong first time.** Six `library_profile` scenarios plus\nits `mock.rs` call `factory::test_provider_override`, which is `#[cfg]`-gated on\n`any(test, e2e-test-support, rss-bench)`. Dropping `rss-bench` from that cfg\nmade the profiling binary dial a real provider — a hermetic benchmark quietly\nlosing its mock. tinysweeper flagged it; I checked three of the twelve files,\nfound nothing, and called it a false positive. The compiler found the other six.\n\nScenario lists are reconciled with what `dispatch` actually answers.\n`library-bench.sh` had drifted before this branch touched it — it swept\n`subagents` and `subconscious`, neither of which has been a scenario for some\ntime (the subconscious domain was removed from the product outright), so a full\nsweep exited non-zero on two entries that could never run. The measurement\ntables in `docs/library-benchmarking.md` are left as recorded: they are a log of\nwhat was measured when, not a description of what runs today.\n
Shanu committed 2 months ago
6a21262
chore(ci): declare the tinymemory pin drift, and correct the memory README\n\n**Pin gate.** `check-module-pins.mjs` compares the version `modules::registry`\nnames against the submodule's `git describe`, because a module is pinned twice —\nas the contract this build compiles against and as the artifact loaded at\nruntime — and when the two disagree the build is green and the failure lands on\na user's machine (openhuman#5727). The submodule now sits 15 commits past\nv1.15.2 while the registry keeps the published v1.15.2 artifact, so the gate\nfires.\n\nThe exemption states why that cannot become a runtime mismatch, and the claim\nwas checked rather than asserted: the entire v1.15.2..5c55431 delta to the\ncrates this build ships is one additive re-export (`pub use\ntinymemory_bus::chrono` in tinymemory-api, so a driver crate depending on the\ncontract alone can name the `DateTime<Utc>` two `MemoryTree` methods already\ntake), one `#[cfg(test)] mod summarise_tests;` line in tinymemory-core, and 31\nlines of doc comment. Zero removals, no method added or changed, no wire slot\nmoved, `CONTRACT_VERSION` untouched. Everything else in the range is\n`tinymemory-conformance`, a test-only crate that is not in the artifact at all.\n\n`expect` pins the exact describe output, so the drift cannot widen without\nanother reviewable edit, and the entry says to delete it at tinymemory's next\nrelease.\n\n**README.** It described a module that is mostly `pub use tinymemory_core::…`\nand told the reader to prefer that crate in new code. Neither has been true\nsince openhuman#5560 drained the product callers, and after this branch the\ncrate is in neither the normal nor the dev graph — so the advice pointed at\nsomething unreachable. It now says what AGENTS.md says: prefer\n`tinymemory_api`, never `tinymemory_core`. The dead `host_impls.rs` link is\ngone with it (the file went with the engine), which is what the Markdown Link\nCheck caught.\n\nThe layer rules are corrected the same way: persistence goes through the bound\ndriver and its capability families, not through `tinymemory_core::store::*`.\n
Shanu committed 2 months ago
e652c77
fix(memory): give the auto-save tests a store that retains\n\n`make_sqlite_memory` asked the engine's factory for a `backend = "sqlite"`\nstore. Replacing it with `noop_memory()` dropped the one property its two\ncallers depend on, because both write through the agent and then assert on\n`count()`.\n\nOne failed outright — "Expected at least 2 memory entries, got 0". The other,\n`auto_save_disabled_does_not_store`, kept passing, and that is the worse half:\nit asserts the store is empty, and a store that is always empty agrees whether\nor not auto-save was actually disabled. It has been unable to fail since the\nswap.\n\nThe sibling swap was correct and is worth contrasting, because it is why this\none slipped through: `make_memory` passed `backend = "none"`, so a no-op is\nexactly what it already had — `runtime_tests` even asserts "a `backend = none`\nmemory has nothing to recall". The two fixtures differ only in a config field,\nwhich is where to look when replacing an engine fixture. A green suite is not\nevidence; an always-empty store is agreeable.\n\n`RetainingMemory` is a `HashMap` behind a lock, upserting on\n`(namespace, key)` because that is the entry tier's own rule and because\naccumulating would make a count assertion measure retries. `recall` matches by\nsubstring rather than ranking — a test that needs relevance order is asserting\nan engine's scoring model and belongs upstream.\n\nThe fixture is renamed `make_retaining_memory`. Nothing in either caller was\never about SQL, and the name should say which property is load-bearing.\n\nCloses #6161\n
Shanu committed 2 months ago
003e41e
test(memory): stop asserting one engine's behaviour from handler tests\n\nFour assertions in three handler tests were pinning TinyCortex's semantics\nrather than the handler wiring the test is named for. Each passed only because\nthe fixture used to boot that engine, and each is asserted upstream against the\nengine itself.\n\n`guards_the_module_driver_and_keeps_its_identity` compared the guard's id with\n`binding::MODULE_ID`. That asserted two things at once — that the guard is\ntransparent, and that the fixture happens to bind a driver calling itself\n`tinymemory` — and only the first is the subject. The second held by luck, and\nworse, it made a transparent guard indistinguishable from one returning a\nsynthetic `MODULE_ID`. The id is now read off the bound driver, which is what\n"advertises the driver underneath it" actually means and which tells those two\ncases apart.\n\n`graph_handlers_roundtrip_relation_rows` asserted `subject.to_uppercase()` and\n`"ATLAS"`. `MemoryGraph::put_relation` keys a relation on\n`(namespace, subject, predicate, object)` and says nothing about normalising\nany of them; upper-casing entity names is TinyCortex's policy, and a second\ndriver preserving case would fail a test about handler wiring. The round trip\nis now asserted case-insensitively.\n\n`direct_document_handlers_roundtrip_through_namespace` asserted that\n`context_query`'s result mentions "ownership" — semantic retrieval, a driver\nranking a query against document content. `envelope_memory_handlers_*` asserted\nthat a `put_document` write surfaces through `memory_recall_memories` as one\n`kind: "document"` memory — a cross-family projection the contract does not\nrequire, since documents and recall have separate accessors and separate\nstorage. TinyCortex folds one into the other; a driver that keeps them apart is\nequally conformant, and a handler test is not the place that decides which.\n\nBoth keep the calls and the envelope checks. What they drop is the part that\nmade them pass or fail on which engine happened to be bound.\n
Shanu committed 2 months ago
deb0026
chore(release): v0.63.24 [skip ci]
github-actions[bot] committed 2 months ago
9404515
chore(release): v0.63.24 [skip ci]\n
github-actions[bot] committed 2 months ago
dac05e8
fix(chat): categorize the canonical web-search name; instrument the turn footer\n\nBoth from Codex review on #6169, both verified against the tree before fixing.\n\n`categorizeTool` mapped `web_search` but not `web_search_tool`. `web_search` is\nonly the settings-family id the core expands from — `tools/user_filter.rs:79-80`\ndeclares `id: "web_search", rust_names: &["web_search_tool"]`, and\n`test/e2e/specs/harness-search-tool-flow.spec.ts:10` says it outright: *"NOT\n`web_search`"*. So the entry never matched a real timeline row.\n\nFixed in the shared map rather than in this PR's filter, because the map has two\nconsumers and both were wrong: the legacy rail gave a real search row the\n`other` icon and the generic "Ran N steps" group summary, and (since this PR)\nthe answer-only filter kept it on the main transcript. `toolTimelineFormatting`\nalready special-cases the canonical name in three other places — the label\ntable, the provider list, and the attribution switch — so this follows the\nfile's own convention; the category map was the one place that had not.\n\nThe footer button is a native control, so it takes `data-analytics-id`\ndirectly per AGENTS.md:173, named to match the `chat-*` ids already in\n`Conversations.tsx`.\n\nOne knock-on, which is the fix working: `coalesces legacy assistant segments`\nbuilds a row named `tool` that `recoverTimelineToolNames` renames to\n`web_search_tool` from the envelope *before* the visibility filter runs, so a\nrecovered name now decides visibility exactly as a declared one does and the\nsearch moves to the rail. The test's subject — one bubble, final text not\nduplicated — is unchanged; its "owns one trail" assertion moved to\n`processTrail`, which is where the trail now lives.\n\nRevert-checked: dropping the map entry fails the new `categorizeTool` case,\n`drops a read-only step to the rail`, and the coalescing test.\n\nClaude-Session: https://claude.ai/code/session_016mWvL5s6eJP7gUeaw5AsMT\n
M3gA-Mind committed 2 months ago
c966a80
test(memory): restore the host tests deleted for an incidental engine import\n\nAn audit of every deleted assertion against upstream found that five `tests/`\ntargets were removed for the wrong reason. Each is about *this* crate's\nbehaviour and named the engine once or twice in passing, and the pass that\nremoved them keyed on "does this file reference the engine" rather than on\nwhat it asserts.\n\n near90_closure_raw_coverage_e2e 23 host refs : 1 engine\n agent_session_turn_raw_coverage_e2e 21 : 1\n agent_archivist_debug_round21_raw_coverage 13 : 2\n agent_turn_overrides_e2e 12 : 1\n memory_sync_round23_raw_coverage_e2e 8 : 1\n\n18 tests come back. `memory_sync_round23`'s subject is\n`integrations::composio::identity_store` — this host's own port — and it\nmerely imported `is_self_identity_any_toolkit` alongside; `agent_turn_overrides`\nand `agent_session_turn` assert turn-override and session-turn behaviour and\nneeded only *a* memory to construct an agent with.\n\nThat last need is now `tests/support/noop_memory.rs`. It has to live under\n`tests/` rather than reuse `memory::test_support::noop_memory`, because that\none is `pub(crate)` and a `tests/*.rs` target links this crate as an ordinary\ndependency where crate-private items are invisible — the same wall\n`host_impls::install_for_tests` hit from the other side.\n\n`ollama_embeddings_fallback_e2e` was restored by the same sweep and deleted\nagain on inspection: its subject is `effective_embedding_settings_probed`,\nwhich is defined in `tinymemory_core::store::factories`. Host-reference count\nmade it look host-owned; the API it exercises settles it. Counting references\nis a filter, not a verdict.\n\nFour more tests went in the other direction. `raw_coverage_all` carries\n`required-features`, so a default-feature `cargo test` **silently skips it and\nstill exits 0** — the trap AGENTS.md names. Verified against\n`scripts/ci/product-features.sh`, three of its files still drove the engine\nthrough `setup_provider`, `fts5`, `segments`, `profile`, `sources::sync` and\n`sources::status`. Those are gone now, and every check from here uses the\nproduct feature set.\n\nRefs #6161\n
Shanu committed 2 months ago
2d25cbb
feat(chat): show the answer on /chat, move the explanation to the rail\n\nOne turn could stack a reasoning disclosure, narration prose, a tool-call\ngroup and a spinner before the answer landed. The main surface now carries\nthe answer, one status line while running, one footer once settled, and\nanything the user must see or act on. Everything explaining how the agent\ngot there is one click away in the process rail.\n\nNothing is dropped from storage. `reasoning_content` on the persisted\nassistant line, `TranscriptItem::Thinking` in the turn snapshot, and the\nderived-transcript projection are all untouched — this changes only what is\npainted, and reverting the three deletions in `assistantParts` restores the\nold surface exactly.\n\n## Out of the transcript\n\n- Reasoning, both emit sites: the settled `kind: 'thinking'` transcript item\n and the live `streaming.thinking` unshift. `RunningStatus` is now the\n in-flight signal; a turn that has produced only thinking mints no tail at\n all, which is the phase the status line was written for.\n- Narration prose. It was separable with no wire change: the answer comes\n from the persisted `msg.content`, narration from the streamed transcript,\n and they were already distinct arguments to `assistantParts`. The core\n also already marks interim narration explicitly — `chat_interim`, flushed\n at `ToolCallStarted` — which is what resets the live preview per round.\n- The arguments and results of read-only tool steps.\n\n## The side-effect exception\n\nAn agent acting on the world behind a collapsed panel is a trust problem,\nnot a clutter fix, so `toolRowStaysOnMainSurface` is a fail-SAFE allowlist:\nonly categories `categorizeTool` can *prove* are read-only are collapsed.\n`other` — where every unmapped tool lands — keeps its line, as do `fetch`\nand `browse` (a `curl` can POST). A failed call and a parked approval stay\nwhatever their category, and so does a delegation row: its card is the only\nroute to the sub-agent drawer on this surface.\n\nThis is a stand-in. The core already models this precisely as\n`PermissionLevel` on every tool; it is simply not on the wire, since\n`AgentProgress::ToolCallStarted` carries no permission field. Plumbing it\nthrough to `ToolTimelineEntry` deletes the allowlist.\n\n## The door\n\n`TurnFooter` renders `8 steps · 2 tools` under a settled answer and opens\n`AgentProcessSourcePanel` on that turn's own trail, which it carries with\nthe click — the thread-wide live slices hold only the newest turn, so they\nare the wrong answer for any older turn. A new `ThreadComponents.TurnFooter`\nseam mirrors `RunningStatus`; `turnFooterHost` mirrors `subagentDrawerHost`,\nbecause the consumer renders from inside the transcript.\n\nProcess reads as process: the footer takes `text-content-muted text-xs`, the\nsame treatment `InferenceStatusLine` already carries, and\n`--muted-foreground` is defined as `var(--content-muted)` so the two token\nsystems are one grey. The answer keeps full-contrast `text-foreground`;\nerrors and approval cards are untouched.\n\n## Tests\n\nThe projection tests pinned the old rendering and are inverted, not deleted.\nTwo fixture changes are worth naming: the `tool()` helper defaulted to\n`web_search`, so five tool-identity assertions would have gone vacuous under\nthe new filter and now default to `file_write`; the recovered-names fixture\nlikewise. A test asserting the unconditional row claim was removed after a\nrevert-check showed it passing under its own revert — both passes filter, so\nit proved nothing the visibility tests do not.\n\nRevert-checked: the read-only filter, the live-tail reasoning removal, the\nhost guard and the muted styling each fail their own assertion when undone.\n\nClaude-Session: https://claude.ai/code/session_016mWvL5s6eJP7gUeaw5AsMT\n
M3gA-Mind committed 2 months ago
8b93cd3