Skip to content

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

Commits on main

78714e7
89d7537
21ef4f2
9b122aa
96187a9
chore(deps): update tinymemory subproject commit
Steven Enamakel committed 3 months ago
e2df3d2
fix(memory): handle empty chunk list in read RPC
Steven Enamakel committed 3 months ago
f3125ce
ebc63ca
fix(provider): handle missing memory provider gracefully
Steven Enamakel committed 3 months ago
e6d6cdb
Merge pull request #5688 from senamakel/module-bus-wiring
Steven Enamakel committed 3 months ago
523ef35
chore(tests): add missing test file for navConfig
Steven Enamakel committed 3 months ago
bd4d8e2
Read the memory pipeline's diagnostics through the contract\n\n`pipeline_status` and `backfill_status` answered from `SELECT`s against\nTinyCortex's `mem_tree_chunks` and `mem_tree_jobs`. They ask the bound driver\nnow, using the `Maintenance` methods added upstream for these call sites. The\nraw-connection door is gone from this file: `rusqlite::OptionalExtension`,\n`queue::store` and `JobStatus` all fall out with it.\n\nFour defects go with them, all the same shape — numbers that have to agree\nbeing read at different instants:\n\n- The job counters were five separate reads. `failed_unrecoverable` is a\n subset of `failed`, and a retry landing between the two could report more\n unrecoverable failures than failures.\n- The chunk count and the extracted count were separate statements, so a write\n between them could put the numerator above the denominator and render an\n extraction coverage over 100%.\n- `queue_idle_ms` re-read the eligible count and the timestamps it measures\n against, so a settle in the gap manufactured an idle window that never\n existed.\n- The newest failure and the success watermark that supersedes it were read on\n one connection *deliberately* — the #5427 review caught that race. Serving\n the failure alone would have handed this caller two round trips where it had\n one, so `QueueFailure` carries the watermark and the guarantee survives the\n move.\n\nTwo functions became pure as a result. `queue_idle_ms` derives from a snapshot\ninstead of querying, and the supersession rule splits out of the fetch as\n`blocking_cause`. Both are the parts with edge cases — an untimestamped\nfailure, a watermark on the same millisecond, a reason this build has no code\nfor — and all three now have tests, which they did not when reaching them\nmeant standing up a store.\n\nThat is the trade this makes in testing generally. A handler reading through\nthe contract cannot be proven by writing rows behind it: the real driver is a\ncompiled module a unit test cannot load, so a test workspace binds the null\ndriver and every diagnostic reads empty. `binding::FixedDiagnostics` plus\n`install_diagnostics_for_test` put a driver in between, and the tests split\nalong the seam — what the host *derives* stays here, what a store *is* moves to\nthe driver's conformance suite, where a real store exists and an ingest can be\nasserted to raise a count. Three `read_rpc_tests` needed the same treatment\nwithout naming a migrated handler, because `vault_health_check_rpc` folds\n`pipeline_status_rpc` in.\n\nTwo behaviours are preserved deliberately rather than improved in passing. An\nempty store still reports `Some(0.0)` coverage — `None` has always meant\n"unavailable", and whether a store with nothing to extract should read as 0% is\na decision about what the panel shows. And `doctor` still counts rows itself:\n`store_stats` answers exactly its question, but it is `async` and that module's\nown doc is explicit that `run` stays blocking-only with async probes hoisted\ninto the caller.\n\nThis sheds no dependency on its own. `tinymemory-core` stays linked while chunk\nreads, the re-embed queue and the ingest pipeline still name it from this file\n— the allowlist entry says which, and says what left.\n
Shanu committed 3 months ago
56f83f8
9c5cf7d
848e2c4
7a569af