Skip to content

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

Commits on main

7d869de
fix(toolpacks): pass agent_id to strip_packed_from_visible
Steven Enamakel committed 3 months ago
b752cd1
b4943fc
Exclude the turn's own thread from recall, and correct a doc comment\n\nBoth from review on the PR.\n\nThe engine bump introduced `RecallOpts::exclude_session_id` and this call site\nleft it `None` behind a TODO, on the reasoning that `session_id` already scopes\nto a session and excluding the same one would empty the result. The engine's\nown documentation settles it the other way: the exclusion drops document-kind\nhits only, while `session_id` and `cross_session` scope the episodic and event\ntiers. Different tiers, so scoping to a session and excluding it is not a\ncontradiction — and the doc names this exact situation, because the harness\nsaves the user's message as a `[conversation]` document tagged with the active\nthread before the agent runs. Without the exclusion a recall issued during that\nturn can return its own trigger as the best hit.\n\nThe test for it asserts the request rather than the result, and that distinction\nwas not free. Teaching `StubMemory` to filter every row by the field — which is\nthe obvious reading — broke `a_thread_hint_narrows_scope_and_keeps_unscoped_rows`\nand `cross_session_with_a_thread_hint_recalls_other_sessions`, both of which\nrequire the *same-session* row to come back, because a thread hint narrows to a\nsession rather than away from it. A flat row list cannot represent the\ndocument-versus-KV split the real filter turns on, so a stub that applies it to\neverything asserts a backend behaviour that does not exist. The stub records\nwhich exclusion was asked for instead. Asking for the right one is the part that\nlives here; applying it is the engine's, and the engine's suite has the tiers.\n\nThe `queue_stats` doc claimed it propagates errors "unlike `store_stats`".\n`store_stats` propagates too. The two differ only in their log text, and the\nsentence now says what is actually true about both.\n
Shanu committed 3 months ago
eb64af6
Retry failed queue work through the driver, not the engine's queue\n\nTwo files leave the direct-reference ratchet with this — the first to leave it\nat all. `config/ops/model.rs` and `inference/embeddings/rpc.rs` now name\n`tinymemory_core` nowhere.\n\nBoth called `requeue_failed_after_provider_change`, which is\n`store::requeue_failed` plus a wake. The tree RPC's "retry failed" control\ncalled that same pair by hand. `Maintenance::retry_failed` is the pair, as one\noperation, because a caller that requeues and forgets the wake leaves rows on\n`ready` until the next scheduled window — which, to whoever pressed the button,\nis indistinguishable from a retry that did nothing.\n\nThe host keeps the gate in front of it. Only an embedder change un-parks\nanything; an unrelated model or memory-window save leaves terminally-failed\njobs parked rather than restarting them into the same external failure. That\nrule is the host's, so it stays here, and the two tests that pin it now pin it\ndirectly: they record whether the driver was asked, and read the count out of\nthe outcome line, instead of counting rows in `mem_tree_jobs`. Whether the ask\nmoves a row is the driver's, and the driver's suite has a real queue to prove\nit against.\n\n`FixedDiagnostics` grew the counters those tests read. Its `retry_failed` also\nreports a caller-chosen number, because "requeued 0" and "requeued 1" are\ndifferent answers to the user and a double that always said zero could not tell\nthem apart.\n\n`backfill_in_progress` deliberately stays a direct engine call, with the reason\nat the call site. It is a process-global, and the module serves one store per\nmemory subtree in a single process, so a second subtree's backfill would answer\n`true` for this one. Review upstream caught that when it was briefly a\n`QueueStats` field: a global behind a per-store API is harder to notice than a\nglobal that looks like one. Scoping it belongs in the engine.\n
Shanu committed 3 months ago
f48c5f3
bef163d
be3cbe1
test(human): wrap HumanPage test in MemoryRouter
Steven Enamakel committed 3 months ago
cb764fc
chore(appearance): remove trailing blank line in test file
Steven Enamakel committed 3 months ago
8b7b3b0
feat(a): add initial project documentation
Steven Enamakel committed 3 months ago
00b1c13
fix(agent_cli): handle missing config file gracefully
Steven Enamakel committed 3 months ago
6901bf0
9e8f152