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-sources): honour the sync depth, say why a sync stopped, repair older memories, release leases on quit\n\nFollow-ups from tracing why a Gmail source that said "100 items synced"\nstopped picking up new mail, plus the two gaps the memory-stack review found.\n\nSync depth reaches Gmail. The per-source "Sync depth (days)" cap was logged\nand nothing else: the connector request had no field for it. tinyconnectors\n1.8 adds `depth_days`; `run_sync_pass` now resolves the cap from the\nmemory-sources registry (one place, for all five callers — `max_items` showed\nwhat open-coding the rule in each does) and sends it. The module turns it into\nGmail's own `after:` search term. Zero and absent read as unbounded, which is\nwhat every earlier release did.\n\nA stopped sync says why. The module reports when the day's request budget is\nspent; the host dropped it, so the completed detail read "ingested 0 item(s)"\nand the row said "Up to date" — the opposite of what happened. The note now\nrides after the count (the UI's parse contract holds) and the row shows\n"budget spent" or "more to sync", as the run actually ended.\n\nNo more "Maxed" badge. It compared chunks against an item cap; one email is\nseveral chunks, so it lit long before the cap. It returns when the status\ncarries an item count.\n\n"Repair older memories". The backfill RPC from openhuman#6012 had no entry\npoint in the app: no button, and the agent's tool list is fixed. A button on\nthe Sources panel previews with a dry run and asks before the real pass,\nbecause the real pass embeds every document it files.\n\nLeases released on quit (tinymemory#133, host half). The embedded server's\ngraceful path is a cancellation token, not SIGTERM, so the core's shutdown\nhooks never ran and nothing called the memory driver's `shutdown`; every\nlaunch waited the job leases out. `memory::exit::shutdown_for_exit` runs in\nthe server's post-drain block, per-driver bounded, and the Tauri shell gives\nthe server a bounded moment to drain before aborting it.\n\nAlso: the status prefix normalises the toolkit the way the engine keys the\nrows.\n\nvendor/tinyconnectors points at the fix commit for now; it moves to the\nrelease tag, with the registry re-pin, before this merges.\n
Shanu committed 3 months ago
01fc2fa
fix(composio): seal one source tree after a sync, not the whole workspace\n\nCloses tinyhumansai/tinymemory#135, and does it host-side — that issue said the\nfix needed a contract addition, a release and a re-pin, and that was wrong.\n`MemoryTree::flush_source_tree` has been on the contract all along, is served by\nthe pinned module, and OpenHuman already calls it from `flush_source_tree_rpc`.\n\nThe swap removes the race rather than narrowing it. `flush_pending` enqueues,\nand that queue dedupes on `date + hour/3`, so a request landing while an earlier\nflush was already running was suppressed — and if that flush had walked past the\nbuffer this pass just wrote, nothing remained queued for it. The periodic tick\ndoes not rescue those either: it enqueues the default seven-day age and steps\nover a buffer written minutes ago. `flush_source_tree` bypasses the queue\nentirely, so there is no dedupe key and nothing to be suppressed against.\n\nIt also settles the second-order complaint from the #6011 review: `flush_pending`\nis workspace-wide, so a Gmail sync sealed whatever a folder or `github_repo`\nsource had left pending. This seals one scope.\n\nThe scope is built exactly as the ingest funnel builds `path_scope` —\n`{toolkit}:{connection_id}`, toolkit lowercased — because it has to name the\nsame tree the items were filed under; a drift seals nothing and reports `Ok(0)`\nwhile doing it. Calling it unconditionally is safe: the contract makes an empty\nscope `Ok(0)` rather than an error, and an unknown scope `Ok(0)` too.\n\nAlso fixes the pin note, which claimed to have been re-read at v1.14.1 while the\nverification command still read `v1.13.8..v1.14.0` — a comment asserting a check\nit does not perform. The range now names the pinned tag, and the command was run\nagainst it: empty, so the family list still stands.\n\nRefs #6012\n
Shanu committed 3 months ago
36710ea
Bound every read against a loading module, not a third of them\n\nInverting this list to name the reads made it safe from lost writes, but\nnot complete. It named 37 of the 141 operations the client dispatches, so\nthe other 104 waited unbounded — and 41 of those are genuine reads.\n\nAmong them: summary_forest, retrieve_children, root_summaries_with_caps,\nentities, relations, source_totals and source_sync_state. Those are the\ntree, graph and sources panels, which is to say the screens whose blank\ncold-launch state this change exists to fix. They would still have hung\nfor the length of a module download.\n\nThe guard test could not have caught it. Its call-site pattern required\nthe operation literal on the same line as the macro, but most call sites\nwrap, so it scanned 70 of the 141 labels and passed on the half it could\nsee. It now matches across line breaks and finds all 141.\n\nIt also only ever asserted one direction — that no write is classified as\na read — which is the direction that loses data and the reason an\nincomplete read list sailed through. The assertion is now a partition:\nevery dispatched label must appear in BOUNDED_READ_OPERATIONS or in\nUNBOUNDED_WRITE_OPERATIONS, never both, and no listed write may lack a\ncall site. A new member fails the build until someone classifies it.\n\ncapture_snapshot stays unbounded: it persists a snapshot despite reading\nlike a getter. source_ingest_status joins store_stats as a read whose name\ncarries a mutation marker, replacing a one-off equality check with a named\nlist so the marker heuristic can stay blunt.\n
Shanu committed 3 months ago
4e3727f
fix(modules): satisfy the Rust file-layout gate, and re-pin to v1.14.1\n\nTwo things CI caught that `cargo check` cannot.\n\n**The layout gate.** `Rust Quality` runs `check-openhuman-rust-layout.mjs`,\nwhich caps a non-test source file at 750 lines. The new forwarder and the pin\nnote pushed `memory_part_01.rs` to 757 and `memory_part_02.rs` to 761.\n\nRebalanced by moving whole top-level items into later parts rather than\ncompressing the prose — the parts are `include!`d in order into one module, so\nitem order is semantically free, and the comments here carry the reasoning.\n`SOURCE_SYNC_BUS_TIMEOUT` moved with the `MemorySourceSync` impl it documents;\n`impl MemoryIngest` moved into part_02. The `module_call!` macros deliberately\nstayed put: `macro_rules!` is textually scoped, so moving them past their use\nsites in part_02 would not compile. Now 737/653/697, with headroom — landing at\nexactly 750 would just make the next edit fail.\n\n**v1.14.1.** Picks up tinymemory#137 (the engine's shutdown hooks run instead of\nbeing dropped) on top of #136's backfill member, so both ship in one pin rather\nthan two. Same four sites; all 11 checksums cross-checked against the release's\nown checksum.toml, 0 mismatches, none unpinned. `names.rs` and `capabilities.rs`\nare unchanged from v1.14.0, so the wire vocabulary and the advertised family\nlist both stand.\n\nAlso rewords the pin note: review read "adds BackfillConnectorTrees" beside\n"capabilities.rs is empty" as a contradiction and asked for a\n`Capability::BackfillConnectorTrees` variant. There is none — `Capability` is\nthe family enum and the addition is a method inside `Maintenance` — so the note\nnow separates member from family before using either term.\n\nRefs #6012\n
Shanu committed 3 months ago
33da9ef