Skip to content

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

Re-anchor the composio scopes refusal on the message it now emits\n\n`Rust Core Coverage` is red on main:\n\n composio_raw_coverage_e2e::composio_controller_registry_and_scope_handlers_cover_validation_edges\n assertion failed: memory_missing.contains("memory client not initialised")\n\nThe string does not exist anywhere in `src/`. `bafc23214` ("Stop booting the\nsecond in-process memory engine", #5725, merged 15:39) removed the\nin-process engine handle that produced it and moved the storage half onto\nthe bound driver. The assertion was never re-anchored, so it has been\nasserting a message the product no longer emits ever since — an orphaned\ntest in the sense of #5757 / #5776.\n\nIt survived its own PR because the coverage lane is changed-modules-scoped\nand that PR did not touch a module which routes to `tests/raw_coverage`.\n\n`ops::user_scopes::save` refuses on three deliberately distinguishable\ngrounds: "memory driver unavailable" (nothing bound), "does not serve Graph"\n(bound, wrong family), and "kv_put failed" (bound, right family, the write\nitself failed). Measured rather than assumed — the first re-anchor here\nguessed the Graph arm and was wrong. What this path actually reaches is:\n\n [composio][scopes] kv_put failed: the module host policy was never\n published, so module 'tinymemory' cannot be loaded; ...\n\nThe module provider binds and does serve Graph; the cdylib is simply never\nloaded in a test binary that runs no boot sequence.\n\nPinned: the `[composio][scopes]` tag and the `kv_put failed` arm, which is\nwhat makes this a fail-closed assertion — the handler must refuse rather\nthan report a save it did not perform, and it must refuse on the write\nrather than on one of the other two grounds. Deliberately NOT pinned: the\nreason after the colon, which belongs to the module loader rather than to\nthis handler. Pinning another component's wording here is how the previous\nassertion came to be orphaned in the first place.\n\nSwept the rest of the suite rather than assuming this was the only one: of\n399 distinct long `.contains("…")` assertions under tests/raw_coverage, 202\nname strings absent from `src/`, but all 202 are fixture data — none was\npresent in `src/` at 2026-08-20 and removed since. Against unfixed main the\nsame sweep returns exactly one true orphan, this one, which is how I know\nthe method sees what it is meant to see.\n\nVerified: the target passes with the fix and fails without it, naming this\nassertion ("must fail CLOSED on the backing write ...").\n

M3gA-Mind4ff4c448c85e
diff --git a/tests/raw_coverage/composio_raw_coverage_e2e.rs b/tests/raw_coverage/composio_raw_coverage_e2e.rs
index 5cd288f38d..8505fbbf87 100644
--- a/tests/raw_coverage/composio_raw_coverage_e2e.rs
+++ b/tests/raw_coverage/composio_raw_coverage_e2e.rs
@@ -868,13 +868,43 @@ async fn composio_controller_registry_and_scope_handlers_cover_validation_edges(
.await
.expect_err("write must be bool");
assert!(invalid_write.contains("invalid 'write'"));
+ // The storage half must refuse rather than report a write it did not do.
+ //
+ // This used to assert "memory client not initialised", the refusal the
+ // in-process engine handle produced. `1bf2037a0` ("Stop booting the second
+ // in-process memory engine", openhuman#5725) removed that handle and moved
+ // the storage half onto the bound driver, so the string stopped existing
+ // anywhere in `src/` — and this assertion went on asserting it, failing every
+ // lane that runs raw_coverage. It survived review because the coverage lane
+ // is changed-modules-scoped and did not run this target.
+ //
+ // Re-anchored on the arm this path actually reaches. `save` refuses on three
+ // grounds and they are deliberately distinguishable: "memory driver
+ // unavailable" (nothing bound), "does not serve Graph" (bound, wrong family),
+ // and "kv_put failed" (bound, right family, the write itself failed). Here
+ // the module provider binds and does serve Graph, so it is the third — the
+ // module cdylib is never loaded in a test binary that runs no boot sequence.
+ //
+ // The tag and the arm are pinned; the reason after the colon is NOT. That
+ // text belongs to the module loader, not to this handler, and pinning
+ // another component's wording here is how the previous assertion became
+ // orphaned in the first place.
let memory_missing = composio_call(
set_scopes,
json!({ "toolkit": "gmail", "read": true, "write": true, "admin": false }),
)
.await
- .expect_err("memory client not initialised");
- assert!(memory_missing.contains("memory client not initialised"));
+ .expect_err("the backing write must fail with no module host policy published");
+ assert!(
+ memory_missing.starts_with("[composio][scopes] "),
+ "the refusal must be tagged as the scopes storage half's, so a failure here \
+ points at this handler rather than at whatever it called; got: {memory_missing}"
+ );
+ assert!(
+ memory_missing.contains("kv_put failed"),
+ "set_user_scopes must fail CLOSED on the backing write rather than reporting \
+ a save it did not perform; got: {memory_missing}"
+ );
}
#[test]