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.14.0\n\nv1.14.0 carries tinyhumansai/tinymemory#136, which adds\n`MemoryMaintenance::backfill_connector_trees` — the engine-side walk that\nre-files connector documents stored before the #6007 routing fix. The host half\nlanded in the previous commit and cannot reach the module until this pin moves:\nagainst 1.13.8 the call answers `UnknownMethod`.\n\nA minor bump rather than a patch, because it adds a contract member.\n\nFour pins move together, as they must:\n\n- `vendor/tinymemory` -> the v1.14.0 commit (c253e70 -> d5ac1ed)\n- the registry descriptor: version, release_url, and all 11 platform assets\n with the checksums the release published\n- `ARTIFACT_CAPABILITIES_PIN`\n- `memory_version` / `memory_sha256` in ci-full.yml, ci-lite.yml and\n e2e-reusable.yml (4 sites), which pin the ubuntu-22.04-x86_64 archive\n independently of the registry\n\nVerified rather than assumed: v1.14.0 has #136's merge (d489cba) as an\nancestor and carries the member in both the engine and the bus vocabulary; all\n11 checksums were taken from the release's own checksum.toml and cross-checked\nback against it, with each archive name and its digest rewritten as one unit;\nand `git diff v1.13.8..v1.14.0 -- crates/tinymemory-api/src/capabilities.rs` is\nempty, so no family was added — `backfill_connector_trees` is a member of the\nexisting `Maintenance` family, the advertised list is unchanged, and the host's\ncapability-count assertion is untouched.\n\nRefs #6012\n
Shanu committed 3 months ago
00fb3fa
01da42c
feat(memory): expose the connector-tree backfill over RPC\n\n#6007 fixed the routing for items synced from then on, and #6013 shipped it.\nNeither recovers the records already stored: the per-item sync gate treats an\ningested document as done, so a re-sync fetches nothing and creates no tree\nrows. On the profile that reported the bug that is ~3000 documents, fully\nembedded in the document store and invisible to tree recall, the memory graph\nand the source row's ingest status. Recovery today means removing and re-adding\nthe account, which re-fetches everything at the provider's expense.\n\nThe walk itself lives in the engine (tinyhumansai/tinymemory#136), beside the\nfunnel the sync path uses, so a backfilled row and a freshly-synced row are the\nsame row. This is the host half: the module forwarder, the guard, and the RPC.\n\n- The forwarder takes the bulk deadline. A pass reads and re-embeds up to its\n whole limit of documents, and the default 30s bus deadline is what made the\n connector sync retry a finished handoff forever.\n- The guard takes the write tier, like every other mutating maintenance member.\n A readonly operator may inspect a store; re-filing thousands of its documents\n is not inspection.\n- `dry_run` defaults to TRUE at the RPC boundary. A pass costs one read and one\n set of chunk embeddings per document against the user's embedding budget\n (#5324), so a caller that omits the field gets the preview and the write is\n something they ask for.\n\nThe response carries four counters rather than one because "did nothing" has\nthree different causes an operator must tell apart: the tree already held\neverything, nothing could be addressed, or there was nothing to look at.\n\nRefs #6012\n
Shanu committed 3 months ago
c5b3f24
a8fad92
Wait for the module on every write, not just nine of them\n\nReview of #6006 found the loading-grace classification backwards. It named\nthe *writes* — nine labels — and treated every other operation as a read it\ncould stop waiting for. The client has seventy. `ingest_document`,\n`ingest_chat`, `ingest_email`, `insert_turn`, `insert_event`, `open_segment`,\n`set_goals`, `append`, `put_document`, `put_relation`, `put_tool_rule`,\n`upsert_facet`, `delete_facet`, `forget_source`, `purge_all` and the whole\nmaintenance family were all bounded, so a cold launch answered them\n`Unavailable` after eight seconds without running them. None of those has a\nretry above it: `insert_turn` is the archivist's post-turn hook, so the call\nwas not delayed but dropped, and early chat memories went with it.\n\nInvert it. `BOUNDED_READ_OPERATIONS` names the thirty-seven reads and\n`loading_grace` returns `None` for everything else, so a member nobody\nclassified — including one a future contract adds — waits for the module.\nThat costs a slow first call on a cold launch and loses nothing, which is the\nright way round for a default.\n\nTwo tests hold it there. One asserts every mutating label is unbounded, plus\nan invented label to pin the unknown-waits default. The other scans the four\nclient sources for every `proxy(...)` and `module_call!` label and fails if\none that reads as a mutation is ever classified as a read, so the guard\nsurvives members being added.\n\nAlso from the review:\n\n- `is_safe_path_component` gates the id, version and host key before a cache\n path is built from them, and `prune_stale_versions` refuses to run when\n either component cannot name a directory. That function calls\n `remove_dir_all`; comparing two equally unvalidated values was not a guard.\n `artifact_dir` returns `Option` and rejects rather than sanitises — a\n registry entry that cannot name a directory is a build mistake, and\n rewriting it quietly would hide that behind a cache that never hits.\n- Both module tests that plant a slot in the process-wide resolution table now\n observe first and assert last, and reset the slot before asserting. An\n assertion that fired early used to leave the slot in `Loading` and turn one\n failure into unrelated failures in whatever ran next. The `tinydocs` test\n also clears the slot on the way in, so an artifact left by the `--ignored`\n module tests cannot be answered from cache ahead of its own config.\n\nThe classification and its tests pushed both files back over the layout gate,\nso the `MemoryProvider` impl joins the other trait impls in\n`memory_part_04.rs` and the source-scan test joins\n`memory_tests_part_01_tests.rs`. The two dispatch macros stay at the end of\n`memory_part_01.rs`: `include!` is textual, and `memory_part_02.rs` uses them.\n
Shanu committed 3 months ago
a6002bc
849f7b3