Skip to content

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

Commits on main

fix(app): stop lint:ui-tokens reporting success on a scan it could not run\n\n`lint:ui-tokens` and `lint:commands-tokens` were `! rg <pattern> <paths...>`,\nrelying on ripgrep's 0 = matched / 1 = no match to make the negation the gate.\n\nripgrep has a third exit code: 2, for an error — most commonly a path that does\nnot exist. `! 2` is also 0, so once any scanned directory was deleted the check\nbegan reporting success regardless of what the remaining files contained. It\nstill printed the violations it found; nothing read them.\n\nThat is not hypothetical. 93fb9e25 ("refactor: remove TinyPlace from core and\napp", #5847) deleted `src/components/orchestration/` while it was still on\n`lint:ui-tokens`'s path list, so the guard has been silently off since\n2026-08-30 — the run prints `rg: src/components/orchestration/: No such file or\ndirectory (os error 2)` and then passes.\n\nFix, in two parts:\n - drop the stale path from the list;\n - move the scan into scripts/lint-token-scan.sh, which validates every path\n up front (naming the offending one) and handles ripgrep's exit code\n explicitly. Anything that is not a clean 0/1 is a failure. A guard that\n cannot look must never report that it looked and found nothing.\n\n`lint:commands-tokens` had the identical shape with a path that happens to\nstill exist; it moves to the same scanner rather than being left latent.\n\nVerified by running the script, not by reading it:\n - clean tree, all paths present -> exit 0\n - stale path restored to the list -> exit 1, names the path\n - real violation planted in src/components/dashboard/ -> exit 1, names the file\n - old inline form, same violation + missing path -> exit 0 (the bug)\n
M3gA-Mind committed 3 months ago
d885d60
fix(ci): make the domain e2e coverage gate measure what it claims to\n\nThe gate reported 100% for five namespaces it had measured nothing in, and\nnever looked at ~50 more at all. Three defects, all provable:\n\n(a) Discovery read only files whose PATH matched /(^|\/)schemas?(\.rs|\/)/.\n The 2026-08-30 include! split (#5856/#5857) moved ControllerSchema literals\n into *_part_NN.rs siblings that the pattern does not match -- flows into\n flows_schema_part_01/02.rs, and the same for threads, tools, composio,\n inference, memory/sources, mcp/registry, agent/learning, agent/orchestration.\n 13 files and 180 controllers went invisible in one commit with no signal.\n Restoring the old filter on top of this change drops discovery from 625\n controllers / 83 namespaces to 445 / 72.\n\n The path filter bought nothing a content match does not: a file with no\n ControllerSchema literal contributes nothing either way. Dropped it.\n\n(b) percent = expected.size === 0 ? 100 : ... turned "measured nothing" into a\n pass. On this tree the old script prints, verbatim:\n\n | channels | channels | 0/0 | 100.0% | - |\n | composio | composio | 0/0 | 100.0% | - |\n | threads | threads | 0/0 | 100.0% | - |\n | tools | tools | 0/0 | 100.0% | - |\n | memory_sources | memory_sources | 0/0 | 100.0% | - |\n\n indistinguishable from genuine full coverage. A namespace named in MODULES\n with no discovered controllers is now a hard failure with its own message,\n which says explicitly that nothing was measured.\n\n channels is the case that made this load-bearing rather than theoretical:\n its 20 controllers are declared in the vendored tinychannels-bus crate as\n ChannelControllerSchema literals, and openhuman's adapter only maps them\n across with a dynamic namespace field no static scan can read. Added that\n crate as a second schema root, as\n app/src/services/__tests__/rpcMethods.test.ts already does for the same\n reason. channels now measures 18/20.\n\n(c) MODULES was the SCOPE of the check, so a namespace nobody added a line for\n was never measured at any threshold: webhooks, skill_runtime, subagent,\n mcp_setup, flows, skills, cron, voice, workflow_run, team, billing, medulla\n and ~40 more. MODULES is now presentational grouping only; every discovered\n namespace is measured whether or not it is listed. A list you must remember\n to extend is a list that silently stops covering things.\n\nHonest numbers, not tuned -- threshold left at 90:\n\n before: 17 namespaces, 4 failing\n after : 83 namespaces, 625 controllers, 359 named by an e2e target (57.4%),\n 62 namespaces below 90%, 39 of them at 0%\n\nThe worst are whole namespaces with no Rust e2e at all: webhooks 0/13,\nlearning 0/11, medulla 0/9, session_db 0/6, skill_runtime 0/6, mcp_setup 0/6,\nsocket 0/5, memory_goals 0/5, test_support 0/5.\n\nAlso documented, not fixed: coverage is a string match, so a method NAMED by an\ne2e target counts as covered without being provably invoked. Measured both\ncheap tightenings before leaving it -- comment-only credit is exactly zero\ntoday (390 methods with comments, 390 without), and bare-list-entry credit is\nnot separable by line shape, because rustfmt puts a long call's method argument\non its own line and a list element looks identical. Separating them needs an AST.\n\nscripts/__tests__/coverage-script-help.test.mjs still passes.\n
M3gA-Mind committed 3 months ago
f63e718
e3cf920
bb71708
test(settings): address review — two vacuous assertions and formatting\n\nReview fixes for #5886.\n\n**Prettier (YellowSnnowmann, 5 threads).** All six Playwright specs violated\nimport-sort and line width. Fixed with the repo-local binary\n(`app/node_modules/.bin/prettier`) — my earlier `npx --prefix app prettier`\nruns had reported clean, so the local binary is the one to trust.\n\n**Two of my assertions were genuinely vacuous. Both reviewers were right.**\n\nCodeRabbit, SandboxSettingsPanel.validation: the refusal tests awaited\n`waitFor(() => expect(mockGet).toHaveBeenCalled())` before asserting\n`mockUpdate` was NOT called. `mockGet` fires on mount, so that condition is\nalready true and `waitFor` resolves on its first tick — before a blur handler's\npromise chain can reach `mockUpdate`. The negative assertion would have passed\nwith the guard removed. Replaced with a real two-macrotask flush. Same file: the\nempty-limit-fields test waited on the ABSENCE of '512', which is also true while\nnothing has loaded; it now waits for a positive signal (the populated image\nfield) first.\n\nCodeRabbit, PrivacyModeSection.status: `toHaveTextContent('')` is a documented\nfalse positive — jest-dom treats an empty expected string as matching anything\n(it now throws rather than assert). Replaced with `toBeEmptyDOMElement()`, which\nactually checks emptiness.\n\n**One ask I am pushing back on, with evidence** (tinysweeper, "missing-async" on\nthe disabled-while-loading test): the claim is that the assertion could pass\neven if the component never disabled the options. It cannot. `status` is\ninitialised to 'loading' and the options are rendered disabled from the first\nrender, and `getByTestId` throws if they are absent rather than passing\nvacuously. Directly verified by setting `disabled={false}` in the component:\nBOTH disabled tests fail. Reply posted on the thread.\n\n**Walkthrough dismiss (CodeRabbit):** added to the navigation spec. It was\nalready handled — `seedBrowserCoreMode` sets `openhuman:walkthrough_completed`,\nwhich is why the suite passed without it — but the dismiss is free and keeps\nthe spec robust if that seed changes. Noted as defence-in-depth in the comment.\n\nVerification note: the four behavioural checks above were executed and their\nfault-injection proofs observed BEFORE the no-local-builds rule took effect.\nNothing here has been run since; the formatting and typecheck results quoted in\nthe threads are from that same window. CI is the check from here.\n
M3gA-Mind committed 3 months ago
31316cf
style: apply prettier to the specs in this branch
M3gA-Mind committed 3 months ago
e8ee0f1
test(e2e): agent-profile create/activate/delete against the core\n\nMy jsdom specs (ProfileEditorPage.payload, ProfilesPanel.actions) assert the\npayload the panel BUILDS and the errors it renders, with the API mocked. Nothing\nin any lane proves a profile actually reaches `profiles_upsert`, comes back in\n`profiles_list`, survives a reload, and disappears on delete.\n\n7 tests, each comparing against the core's own list over RPC: creating a profile\npersists and lists it; a created profile is custom, not built-in, and offers\nDelete; it survives a reload; Set as active moves `activeProfileId` and the row\nstops offering the action; delete removes it from core and list; dismissing the\nconfirm keeps it; and Edit hydrates from the core with the id read-only.\n\nFive of these failed on the first run for a reason that had nothing to do with\nthe app, now FINDING-8 in the bug list: **core RPC payload nesting is not\nuniform.** `wallet_status` and `config_get_privacy_mode` nest their payload\nunder a second `result`; `profiles_list` returns `{ activeProfileId, profiles }`\ndirectly. Copying the idiom that works for wallet yields `undefined` here —\nand `res.result?.profiles ?? []` fails silently as an empty array, so\n"the core contains X" fails while "the core does NOT contain X" passes\nVACUOUSLY. My precondition was green for the wrong reason throughout.\n\nSame family, same trap: `profiles_select` and `profiles_delete` take snake_case\n`profile_id`, while `profiles_upsert` takes a camelCase `profile` object.\nPassing `profileId` is accepted and ignored, so a cleanup helper wrapped in\n`.catch()` leaks state into the next test invisibly.\n\nBoth are fixed here and verified against the live RPC rather than inferred.\n
M3gA-Mind committed 3 months ago
633f1d9
test(e2e): verify privacy mode reaches the core, not just the radio\n\nPrivacy Mode is the data-egress posture (#4435): local_only, standard, or\nsensitive. Believing you are in local_only while the core still holds standard\nis the entire risk, and it is not observable from the DOM — the radio can show\nthe click when the write failed or never happened.\n\nSo every assertion reads `openhuman.config_get_privacy_mode` back from the core\nand compares. `settings-account-preferences.spec.ts` persists the *analytics*\ntoggle; nothing in any lane drives the egress mode.\n\n8 tests: the selector loads the mode the core actually holds rather than a\ndefault; a mode set outside the UI shows on next open; choosing local_only and\nsensitive each write through; switching twice leaves the core on the last one;\nthe posture survives a reload; re-selecting the current posture does not disturb\nit; and exactly one posture is selected at a time.\n\nTwo selector facts this surfaced, both in the bug list:\n\nThe radios are `sr-only` inside their label card (PrivacyModeSection.tsx:113-123),\nso `getByTestId(...).click()` times out. The symptom is READ assertions passing\nwhile WRITE assertions hang — which reads as "the save is broken" rather than\n"the click never landed". The fix is to click the visible label, whose `htmlFor`\nis `privacy-mode-option-<mode>-input` — not the testid string.\n\nAnd they are Radix items, so selection is `aria-checked` / `data-state`, never\nthe native `.checked` property. My exclusivity check counted `.checked` and got\n0 instead of 1. Had I phrased it as "no more than one", it would have passed on\nany build and proved nothing.\n
M3gA-Mind committed 3 months ago
8b9f5e3
6fb7f1c