Skip to content

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

Commits on main

chore(modules): re-pin the memory module to tinymemory v1.13.8\n\nv1.13.8 carries tinyhumansai/tinymemory#134, which routes connector items into\nthe memory-tree ingest funnel. Before it, a Composio sync wrote namespace\ndocuments and vector chunks but never `mem_tree_chunks`, so Gmail synced\nthousands of records while tree recall, the Memory Tree graph and the source\nrow's ingest status all reported zero.\n\nThis repo only dev-depends on `tinymemory-tinycortex` — the production engine\nships inside the prebuilt TinyBus module — so that fix reaches nobody until the\npin moves. Four pins move together, because any subset is a red intermediate\nstate:\n\n- `vendor/tinymemory` -> the v1.13.8 commit (ded26ae -> c253e70)\n- the registry descriptor: version, release_url, and all 11 platform assets\n with the checksums published on the release\n- `ARTIFACT_CAPABILITIES_PIN`, which `the_capability_list_matches_the_pinned_release`\n compares against the registry\n- `memory_version` / `memory_sha256` in ci-full.yml, ci-lite.yml and\n e2e-reusable.yml, which pin the ubuntu-22.04-x86_64 archive independently\n (4 sites). `the_ci_workflows_pin_the_same_module_digest_as_the_registry`\n caught these; unfixed, CI downloads the 1.13.8 archive, checks it against the\n 1.13.7 digest and refuses it.\n\nVerified rather than assumed, since a pin aimed at the wrong build fails\nsilently: v1.13.8 has the #134 merge (f143a150) as an ancestor and carries\n`ingest_connector_item_tolerated` at the tag; all 11 checksums were generated\nfrom the release's own checksum.toml and cross-checked back against it, with\neach archive name and its digest rewritten as one unit so a name cannot end up\nbeside the previous release's hash; and\n`git diff v1.13.7..v1.13.8 -- crates/tinymemory-api/src/capabilities.rs` is\nempty, so no family was added and only the pin string moves.\n\nRecovers nothing already on disk — the per-item sync gate treats ingested items\nas done, so existing records need the backfill tracked in #6012.\n\nRefs #6007\n
Shanu committed 3 months ago
b239d66
fix(composio): seal the summary tree after a connector sync writes\n\nTree ingest writes its L0 chunk rows synchronously, but the Memory Tree graph\nand tree-backed recall read *sealed* summaries. A buffer seals on the 50k-token\n`INPUT_TOKEN_BUDGET` or, failing that, on the seven-day\n`DEFAULT_FLUSH_AGE_SECS` force-flush — and nothing on the sync path ever asked\nfor a seal.\n\nSo a large first backfill crossed the token budget repeatedly and looked fine,\nwhile an incremental sync of a handful of messages stayed under it and those\nmemories were invisible for up to a week, with the source row reporting them\ningested the whole time.\n\n`run_sync_pass` now asks the driver to seal once a pass has written something,\nvia `MemoryMaintenance::flush_pending()` (`max_age_secs = 0`, so every buffer is\nconsidered rather than only the stale ones). The enqueue wakes the seal worker,\nso the wait becomes queue-claim plus summariser latency instead of days.\n\nPlaced inside `run_sync_pass` rather than at its callers because it has three\nof them — the budgeted loop here, the Slack trigger RPC and the sync bus — and\none rule spread across call sites is exactly what caused #6007.\n\nAsking once per page is affordable because the queue dedupes on\n`date + hour/3`: while a flush is ready/running the later pages answer\n`enqueued: false` and ride it. The dedupe is a partial unique index over\nready/running rows only, so a completed flush leaves the index and the next\nenqueue succeeds — the three-hour block is the key's granularity, not a\ncooldown.\n\nBest-effort by construction: gated on `written > 0`, a driver serving no\nMaintenance is skipped, and a flush error is a warn. The records are already\ncommitted and an unsealed buffer is a delay rather than a loss, so nothing here\nmay turn a successful sync into a failed one.\n\nTwo residual behaviours are documented in the PR rather than papered over: the\nflush is workspace-wide, so a connector sync also seals what folder and\ngithub_repo sources left pending; and if a flush is already running when a\npass commits, the suppressed enqueue leaves those items for the next sync (the\nperiodic tick does not rescue them — it enqueues the default seven-day age).\n\nRefs #6007\n
Shanu committed 3 months ago
4ce7c12
fix(memory_sources): dispatch Composio rows through the connector in Apply-all\n\nThe per-row Sync button special-cased Composio; the Apply-all sweep did not.\nIt sent every enabled row through `MemorySourceSync::run_source_sync`, which\nthe driver refuses for this kind ("... is synced through the connector module,\nnot this engine"), so "sync everything" failed for exactly the rows a user\nreaches for it to fix.\n\nTwo call sites open-coding one rule is how they drifted, so the decision is now\none pure function — `sync_dispatch` over the registry entry, returning\n`SyncDispatch::{Connector, Driver}` — and both sites match on it. The sweep's\ntrigger closure takes the whole entry rather than the id, because routing needs\nthe kind, the connection and the per-source cap.\n\nThe sweep also hard-errored as a whole when `as_source_sync()` answered `None`,\nwhich for a Composio-only profile turned Apply-all into one flat refusal over a\ncapability none of its rows use — the same finding the row-level path already\ncarries (#5932). The family is now resolved as an `Option` and refused per row,\nwhich is what this sweep already aggregates (#5820).\n\nThe reason stays `manual`: `parse_sync_reason` accepts only `manual`,\n`periodic` and `connection_created`, so a sweep-specific reason would fail\nevery Composio row with "unrecognized sync reason".\n\nThis is the secondary half of #6007. The primary half — connector items never\nreaching `mem_tree_chunks` — is fixed in tinymemory (tinyhumansai/tinymemory#134)\nand reaches users through a module release and registry re-pin, not this change.\n\nRefs #6007\n
Shanu committed 3 months ago
6a58021
Cache native modules and keep memory calls off the download path\n\nEvery launch downloaded every native module again. `installed_artifact`\nlooked for an extraction under `install_dir` that nothing ever wrote, because\ntinybus extracted each release into a temporary directory and kept it alive\nfor the process, so the branch was dead and the download path ran on every\nboot — five archives on the desktop, one at a time behind a single\nprocess-wide lock. On a network where one of the CDN's anycast addresses\ndropped packets, each download waited the OS SYN timeout before the client\ntried the next address: the memory module landed four minutes after boot, and\nevery memory RPC ran into the UI's 30 s deadline while the chat turn's\ncontext assembly waited behind it (the 2026-09-03 "memory not working, chat\ntakes seven minutes" incident).\n\nLoad releases through tinybus's new `load_github_release_cached` into\n`install_dir/<id>/<version>/<host_key>/`. The first launch downloads, verifies\nagainst the registry pin and commits with one rename; every later launch\nre-hashes the archive on disk and maps the library without the network.\nVersions no longer pinned are pruned after a successful load.\n\nReplace the global resolve gate with a slot per module (`modules::resolution`):\nthe first caller runs the load as a process-lifetime task on the module\nruntime, everyone else waits on a watch channel, and a caller that gives up\ncancels nothing. `ensure_loaded_within` bounds the wait, `modules.list`\nreports `Loading`, and `ModuleMemoryProvider` answers reads with the\nretryable `MemoryError::Unavailable` after an 8 s grace instead of hanging —\nwrites still wait it out, since a dropped write is lost work — and reports\n`Degraded`, never `Down`, while loading, so a cold launch cannot trip the\nfallback rebind.\n\nWire the eager load policy at boot: `load_declared_modules` had no product\ncaller since it landed, so TinyMemory's download started on the first memory\ncall, on the request path. `start_bootstrap_jobs` now spawns it behind\n`ServiceSet::memory_queue`, installing the memory host callbacks first. Bound\nthe one memory await left on the chat turn's critical path — the situational\npreference recall — to three seconds.\n\nPin vendor/tinybus to tinyhumansai/tinybus#17 (8b6793a), which carries the\ncache, the client budgets and the direct asset URLs.\n
Shanu committed 3 months ago
10b992e
chore(release): v0.63.21 [skip ci]
github-actions[bot] committed 3 months ago
e2aba85
chore(release): v0.63.21 [skip ci]\n
github-actions[bot] committed 3 months ago
1204681
chore: files changed app/src/services/api/flowsApi.ts
Steven Enamakel committed 3 months ago
18b02a3
chore: files changed src/openhuman/flows/schemas.rs
Steven Enamakel committed 3 months ago
1b26650
test(flows): add description to test fixture
Steven Enamakel committed 3 months ago
e0a9492
chore(release): v0.63.20 [skip ci]
github-actions[bot] committed 3 months ago
0220ba8
chore(release): v0.63.20 [skip ci]\n
github-actions[bot] committed 3 months ago
41ce7ac
chore: files changed app/src/pages/FlowsPage.test.tsx
Steven Enamakel committed 3 months ago
e6c5904
b0ec7a6
chore: files changed app/src/services/api/flowsApi.ts
Steven Enamakel committed 3 months ago
2463738
chore: files changed src/openhuman/flows/store_tests.rs
Steven Enamakel committed 3 months ago
0d36aab
3db6757
chore: files changed src/openhuman/flows/memory_tools.rs
Steven Enamakel committed 3 months ago
6f61060
acf370d
chore: files changed src/openhuman/flows/schemas.rs
Steven Enamakel committed 3 months ago
947cb6d