Skip to content

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

Commits on main

test(e2e): sharpen the autoload and goal-clear cases, and scope the target in CI\n\nReview follow-ups.\n\nAutoload: the three agents all ran outside any thread scope, so the test proved\nsuppression between two agents rather than across the thread change #1725 is\nactually about. The prior conversation now runs under one thread id and the\ncontrol and suppressed turns under another. The scopes deliberately do not steer\nthe lookup — autoload is latest_for_agent(agent_definition_name) and never reads\nthe ambient thread id, which is the defect itself — but the control now states\nthe stronger fact that the transcript is replayed even under a different thread\nid, and a future change making autoload thread-scoped will fail it loudly rather\nthan passing while quietly changing what the test means.\n\nGoal clear: clear_for_current_thread was only exercised against an\nalready-completed goal, which a completed goal is excluded from later prompts\nanyway, so a clear that silently no-opped on an ACTIVE goal would have passed.\nA second, still-active goal is now seeded, cleared, and asserted absent from a\nlater turn as well as from the store. Verified it does remove an active goal —\nthis strengthens the assertion rather than pinning a gap.\n\nCI scoping: domain_integration_targets() mapped only src/openhuman/memory/**,\nso a regression in core_turn.rs or the goal runtime could merge through CI Lite\nwithout ever executing this target. Maps the two directories the suite actually\nguards — agent/harness/session/** and threads/goals/** — rather than all of\nagent/**, which would drag the target onto most PRs in the tree for no signal.\n
M3gA-Mind committed 3 months ago
9b2848b
test(e2e): cover per-turn TurnOverrides and the terminal thread-goal APIs\n\nopenhuman#5844 shipped four per-turn suppressions and two terminal goal APIs\nwith no test in any e2e lane. Inside the unit lane the coverage was thinner\nthan it looked: suppress_active_goal appears only as a field set to true in the\nmemory-agent test's struct literal, with nothing asserting the goal block is\nabsent, and suppress_transcript_autoload appears once, as false -- it was never\nexercised at all.\n\nAdds tests/agent_turn_overrides_e2e.rs, a dedicated core-lane target rather\nthan an addition to raw_coverage_all, which is changed-modules-scoped and so\nwould not run on a source-only PR.\n\nFour tests, each driving a real Agent::turn against a scripted model and\nasserting on what reaches the provider:\n\n- suppress_active_goal keeps the [thread goal] block out of the prompt\n- suppress_transcript_autoload does not replay another conversation's\n transcript into a deliberately cleared history\n- the overrides are consumed by exactly one turn and then reset\n- complete_for_current_thread stops the goal reaching later turns, and\n clear_for_current_thread removes the row\n\nEvery test carries its own control asserting the un-overridden turn DOES carry\nthe thing, because a suppression test with no control passes happily when the\nfeature it suppresses never ran.\n\nThe control and measured agents deliberately use separate workspaces. agent_with\nbuilds with auto_save(true) under one agent_definition_name, so two agents\nsharing a workspace means the second auto-loads the first's transcript -- which\nstill contains the [thread goal] block. Sharing one workspace makes two of these\ntests fail at their product assertions while their controls pass, which reads\nexactly like a product bug and is not one.\n\nRevert-checked: with the suppressions forced off and complete_for_current_thread\nneutralised, all four fail naming their own assertions (:370, :456, :510, :610);\nrestored, all four pass.\n
M3gA-Mind committed 3 months ago
794c4a6
fix(test): compile and run 32 tests that no module ever declared\n\nTwo sibling *_tests.rs files were left behind when their code moved, and\nnothing declared either one. Cargo globs `tests/*.rs` but not inside `src/`,\nso an undeclared unit-test file is silently never compiled. Both read as\ncoverage and verified nothing.\n\ntools/schema_tests.rs (15 tests) — `schema.rs` became a re-export shim over\n`tinyagents_harness::tool`, so `use super::*` no longer supplies the `json!`\nmacro the way it did when the implementation lived here. Wired via\n`#[path]` and given the one missing import.\n\nintegrations/composio/bus_tests.rs (17 tests) — cannot be wired where it sat:\n`integrations/composio/bus.rs` is a `pub use ...::bus::*` shim, and a glob\nre-export cannot carry the private items these assert on\n(`TRIAGE_DISABLED_ENV`, `triage_disabled`). Relocated to\nmemory/sync/composio/bus_tests.rs, beside the module that defines them, which\nwas already wired and held one unrelated test.\n\nAll 32 pass unmodified — the code had been relocated, not rewritten, so the\ncontracts they pin still hold. No assertion was changed, weakened or skipped.\n\nProven non-vacuous by fault injection rather than by their passing: dropping\n"yes"/"YES" from the triage truthy list fails `triage_disabled_flag_parser`\non "expected 'yes' to disable triage", and removing "minLength" from\nGEMINI_UNSUPPORTED_KEYWORDS fails three schema tests on their own assertions.\nBoth faults restored; 33 pass.\n
M3gA-Mind committed 3 months ago
902925b
edee560
39388f6
3e7ad26
fix(mcp): flag subagents run_subagent will not dispatch
Nguyen Thanh Dat committed 3 months ago
b05dc58