The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
docs: add e2e runner consolidation plan
Steven Enamakela77dab591587
diff --git a/docs/plans/2026-10-20-e2e-runner-consolidation.md b/docs/plans/2026-10-20-e2e-runner-consolidation.mdnew file mode 100644index 0000000000..ca4620f147--- /dev/null+++ b/docs/plans/2026-10-20-e2e-runner-consolidation.md@@ -0,0 +1,243 @@+# One runner per E2E flow — issue 236 implementation plan++Design baseline: `4636903680f5474430db8d837384e209fbf2b46a` on the OpenHuman fork epic. This is a design deliverable, not an implementation or a claim that the gates below have passed. Implement after fork issue 233 finishes. Issues 234 and 235 have already landed. Use a Luna implementation agent and an independent reviewer; the orchestrator reviews receipts and merges fork PRs. Preserve checkpoint and merge commits.++## Outcome and runner rule++Playwright owns browser-rendered product behavior: navigation, forms, chat rendering, keyboard interaction, settings persistence and browser media errors. It runs the real standalone core and checksum-pinned modules against the existing local mock backend. Merely calling core RPC does not justify WDIO. WDIO owns an assertion only when it depends on the actual desktop process: real Tauri IPC, launch bearer/URL/relay, OS/window or deep-link entry, notification plugin permissions, process restart, PTT or other host orchestration. Keep the existing Wry driver; do not restore CEF/CDP assumptions.++A mixed spec is split by assertions, not renamed wholesale. Move every distinct SPA assertion to Playwright and prove it runs before deleting its native source. Retain only the host-dependent assertions on desktop. No new backend-only browser tests are needed to justify deletion; existing Rust wire tests remain authoritative for module/controller behavior. Do not delete a stronger native test merely because its browser twin has the same name.++The documented basename allowlist will contain exactly these five mixed files, with the restricted native responsibilities below:++| Basename | Native assertions retained | Playwright responsibility |+| --- | --- | --- |+| `smoke.spec.ts` | Live WebDriver session, mapped native window/app chrome, nonempty main webview and normal embedded-core startup | Browser root/chrome, standalone core bootstrap URL/token and RPC reachability |+| `login-flow.spec.ts` | Actual desktop window/process and desktop auth deep-link entry, token consume/profile, expired/invalid and bypass entry | Web callback entry, token consume/profile and browser bypass |+| `auth-access-control.spec.ts` | Desktop reauthentication/device deep-link handoff and native auth-expiry event delivery | Generic account/billing/logout/revocation UI and cleared authoritative auth state |+| `notifications.spec.ts` | Real notification permission and notification plugin command calls | Integration notification body/title and System Events/empty Alerts UI |+| `settings-data-management.spec.ts` | Confirm Clear App Data initiates the real desktop restart/reset | Confirmation, Cancel and signed-in UI behavior |++`tauri-commands.spec.ts` remains native only. Move its browser bootstrap/RPC assertions into the existing browser `smoke.spec.ts`, then delete its browser file. Both `core-port-conflict-recovery` copies only assert normal startup: move their useful startup assertions to the respective smoke cases, delete both files and record that neither established occupied-port recovery. Do not claim new port-conflict coverage.++This plan does not move the 24 non-twin native files wholesale. They have no losing twin in this issue. Keep them discoverable, preserve their existing skips and do not call all their generic SPA behavior a desktop requirement. A future new test must follow the rule above. Cross-runner renamed full-flow duplication is forbidden even if basename intersection becomes empty.++## Audit inventory: all 51 post-233 pairs++Paths in the table are relative to `app/test/{e2e,playwright}/specs/`; each basename below exists in both at the design baseline. There are currently 52 intersections: `telegram-channel-flow.spec.ts` is the additional pair being retired by issue 233 and is excluded from this issue. Recheck that dependency before execution. “PW” means retain/strengthen the browser file, then remove the native file and its master-runner entry after the migration passes. “Mixed” means apply the restricted split above, not retaining both original suites unchanged.++| # | Basename | Owner and required preservation before deletion |+| --- | --- | --- |+| 1 | `agent-review.spec.ts` | PW. Preserve reach-shell and privacy Product Analytics label/toggle copy. Managed onboarding now completes automatically; use the current self-hosted onboarding test for actual step interaction, not obsolete welcome-step text. |+| 2 | `auth-access-control.spec.ts` | Mixed. Preserve desktop reauth/device token consume and event-delivered expiration. Move four billing/dashboard entry/handoff assertions plus UI logout credential clearing and revoked-session return-to-Welcome into browser cases. PW bypass must continue asserting zero token-consume requests. |+| 3 | `card-payment-flow.spec.ts` | PW. Current Account `account-open-billing` presence, Plan & billing handoff and back-to-settings navigation. No historical card processing claim. |+| 4 | `channels-smoke.spec.ts` | PW with mandatory migration M1: actual Telegram badge Not configured → Connected → Not configured, matching real RPC status on both edges; retain Discord panel presence. |+| 5 | `chat-conversation-history.spec.ts` | PW with M3. Preserve both user turns and first assistant in the second model request, final canary and durable transcript containing both exchanges. Existing PW only proves request context and visible canary. |+| 6 | `chat-harness-cancel.spec.ts` | PW with M3. Observe an early delta before cancel, no late chunks in DOM or durable transcript, no in-flight entry, composer/send enabled. Existing browser case lacks durable cancellation oracle. |+| 7 | `chat-harness-scroll-render.spec.ts` | PW. Preserve bold/code/link structure, overflow/bottom anchor, scroll-up release and native distance tolerances. Keep browser indented code block completeness and href assertion. |+| 8 | `chat-harness-send-stream.spec.ts` | PW with M3. Streaming request flag, full reply, finished in-flight state, durable prompt+reply, nonempty workspace transcript list/positive sizes. Browser title currently overstates persistence. |+| 9 | `chat-harness-wallet-flow.spec.ts` | PW with M4. Recovery Phrase real UI, visible Copy action/saved confirmation plus durable consentGranted=true, source=generated and EVM/BTC/Solana/Tron accounts. Do not replace state oracle with canned text. |+| 10 | `chat-multi-tool-round.spec.ts` | PW with M5. Existing browser case uses web_fetch/web_search while native uses file_read/grep. Retain browser cards and add the native distinct file-read then code-search fixture/order in the same owner. Do not pretend different tool families are identical. |+| 11 | `chat-tool-call-flow.spec.ts` | PW. Preserve browser’s stronger one final bubble, second paragraph once, successful terminal tool outcome/body, done status, no running/task-insights and no in-flight turn. |+| 12 | `chat-tool-error-recovery.spec.ts` | PW. Interrupted-turn error, reenabled composer, cleared in-flight and successful new send/reply; preserve native’s final in-flight oracle explicitly. |+| 13 | `command-palette.spec.ts` | PW with M6. Preserve five seed actions, Enter navigation/Escape, reopen-after-close listener survival, mod+/ directory headings/New Chat/Toggle Sidebar and unfocused ? opening/closing. Existing arrow-key companion remains. |+| 14 | `composio-triggers-flow.spec.ts` | PW. ACTIVE Gmail manage dialog, trigger-toggles and New Gmail Message label, using existing local Composio fixtures. |+| 15 | `connectivity-state-differentiation.spec.ts` | PW. Same navigator.onLine/offline event and exact device-offline copy; do not invent core restart or backend reconnect coverage from this test. |+| 16 | `connector-gmail-composio.spec.ts` | PW. Card selectable, failed state stays usable, expired auth management/reconnect affordance remains signed in. Transfer the explicit native reconnect affordance if absent. |+| 17 | `conversations-web-channel-flow.spec.ts` | PW with M3. Preserve UI send and actual inference request, no chat_send-unavailable error; add native in-flight navigation-away/back continuation and no generic error. |+| 18 | `core-port-conflict-recovery.spec.ts` | Remove both after moving normal startup into native/browser smoke. No occupied port is established by either source. |+| 19 | `cron-jobs-flow.spec.ts` | PW with M2. Replace fallback-or-error success with actual row, Pause→Resume persisted after Refresh, Resume→Pause and Remove/UI+RPC absence. Keep no scheduler-execution or guaranteed-auto-seed claim: native creates missing seed too. |+| 20 | `crypto-payment-flow.spec.ts` | PW. Current Plan & billing/Open dashboard handoff/explanation and explicit user action; replace stale moved-to-web text with current account UI selectors already used by card/account tests. No crypto transaction claim. |+| 21 | `gmail-flow.spec.ts` | PW with M7. Preserve setup/cancel, current management/disconnect and card returns to Connect; revoked/expired state stays signed in, reauthorization opens setup after disconnect, post-disconnect state blocked. Some native checks only prove shell survives: describe their actual assertion. |+| 22 | `guided-tour-gates.spec.ts` | PW with M8. Migrate current native seven-step chat→Apps contract, final seeded welcome note, no lingering Skip and pending reload. Existing browser ten-step/home-card expectations contradict current source. |+| 23 | `harness-composio-tool-flow.spec.ts` | PW. Both drive scripted Gmail action then final subject/canary; preserve rendered subject and final reply. Do not claim the canned subject proves live Gmail execution. |+| 24 | `local-model-runtime.spec.ts` | PW. Retired settings/local-model-debug lands Connections LLM tab, hash excludes legacy slug and Runtime Status absent. Browser currently only checks Connections substring. |+| 25 | `login-flow.spec.ts` | Mixed. Keep host entry assertions only; preserve token/profile/onboarding outcome plus invalid/expired/bypass cases in their actual host. Web callback stays web. |+| 26 | `logout-relogin-onboarding.spec.ts` | PW with M9. Add native same-account completion survives logout/relogin case. Keep browser explicit-reset→automatic-completion case separately; it tests a different precondition. |+| 27 | `navigation-settings-panels.spec.ts` | PW with M10. Union actual visited native settings/memory-data, /brain, developer-options, account, appearance, tools and browser inventory. Preserve nonblank checks/back-to-chat; resolve redirects from AppRoutes, not stale comments. |+| 28 | `navigation-smoothness.spec.ts` | PW with M10. Union actual routes including notifications and Memory query, two consecutive cycles, route budget/nonblank and final /home→/chat content. |+| 29 | `navigation.spec.ts` | PW with M10. Add native /flows and /connections?tab=brain plus memory-page marker. Keep browser /human and legacy /home,/skills,/activity,/intelligence redirect inventory. Keep >50 nonblank threshold on comparable native routes; sparse Human can retain its current >20 rule. |+| 30 | `notifications.spec.ts` | Mixed. Native only permission-state enum and real plugin invocation. Browser already owns stronger visible notification title/body and System Events/Alerts empty state. |+| 31 | `onboarding-modes.spec.ts` | PW. Self-hosted Inference→Search(skip)→Vault, labels/order, completion flag, no retired Voice/OAuth/Embeddings steps; managed automatic chat landing/completion. |+| 32 | `runtime-picker-login.spec.ts` | PW with M9. Preserve welcome self-hosted/managed/provider choices, complete custom wizard, managed auth/me + completion and logout welcome choices. Existing browser only provider login/logout. Reuse onboarding helper, no duplicated full wizard. |+| 33 | `settings-account-preferences.spec.ts` | PW. Account/preferences/language, generated phrase configured accounts, analytics snapshot, billing action; keep browser’s additional time-zone persistence. |+| 34 | `settings-advanced-config.spec.ts` | PW with M10. Keep triage/autonomy/Composio direct→backend persistence. Add native retired notifications→account and agent-chat→LLM redirects; about Check for updates and local-model/LLM destinations, alongside browser Resources/current controls. |+| 35 | `settings-ai-skills.spec.ts` | PW. Providers/routing tabs and Tools toggles. Preserve existing tracked #6395 default-model reload skip as a skip, never count it as passing evidence. |+| 36 | `settings-channels-permissions.spec.ts` | PW. Telegram/Web selection/redux state, analytics privacy control and label. Keep browser privacy-mode-options. |+| 37 | `settings-data-management.spec.ts` | Mixed with M11. Browser confirmation/Cancel; native only confirmed destructive clear/restart. Never count arbitrary WebDriver exception as restart success. |+| 38 | `settings-feature-preferences.spec.ts` | PW with M10. Union all native retired feature/notifications routes; preserve channel redux, enabled-tools snapshot, mascot color and custom voice. Keep browser manifest mascot selection/Human route coverage. |+| 39 | `skill-execution-flow.spec.ts` | PW. Authenticated shell, core.ping and Connections content only. Does not prove execution. |+| 40 | `skill-lifecycle.spec.ts` | PW. Connections route, current Apps/Messaging/Tools labels and flows_list array. No install/uninstall lifecycle claim. |+| 41 | `skill-multi-round.spec.ts` | PW. Chat route plus actual chat-agent-panel marker. Neither source proves multi-round execution; do not create another scripted canary. |+| 42 | `skill-oauth.spec.ts` | PW. Current connector row/action affordance after login only. No OAuth roundtrip claim. |+| 43 | `skill-socket-reconnect.spec.ts` | PW. Authenticated chat baseline only. Neither source reconnects socket. |+| 44 | `skills-registry.spec.ts` | PW. Current Apps/Messaging/Tools/MCP UI plus existing sources/browse/search/filter RPC assertions. Native conditional install/uninstall must be inventoried as conditional: if actual current UI exposes its affordance, preserve its request assertion in existing install browser suite; never fabricate an executed lifecycle when branch was absent. |+| 45 | `smoke.spec.ts` | Mixed. See restricted responsibility and bootstrap transfer from browser Tauri/port files. |+| 46 | `tauri-commands.spec.ts` | Native only for real IPC URL/token/relay and driver screenshot. Transfer browser standalone bootstrap/ping/about-app checks to browser smoke before removing browser copy. |+| 47 | `user-journey-full-task.spec.ts` | PW. Send/user bubble, tool timeline, final reply and navigation-away/back persistence. Native timeline OR final canary is weaker; retain canonical browser tool assertions elsewhere rather than duplicating full flow. |+| 48 | `user-journey-settings-round-trip.spec.ts` | PW. Preserve account Plan & billing/Open dashboard text, >50 content, memory/developer routes and final chat readiness. |+| 49 | `voice-mode.spec.ts` | PW. Mode/text toggle, live Human controls, denied/missing mic specific errors and no phantom beep/user message. Both hosted STT-status RPC shape cases preserved. Native skipped mic block/#435 stays documented as unverified; do not manufacture PTT proof. Existing non-twin native PTT host coverage remains separately owned. |+| 50 | `webhooks-ingress-flow.spec.ts` | PW. Preserve exact registrations/logs/clear/unregister outcomes and native response log messages, not browser’s weaker array/number checks. Stub-level RPC contract, not real ingress. |+| 51 | `webhooks-tunnel-flow.spec.ts` | PW. Stronger browser create/list/delete and mock traffic retained; add native legacy Webhooks route→Connections redirect. |++## Migration recipes and gates++Every migration uses existing `bootAuthenticatedPage`, `callCoreRpc`, mock controls and supported element helpers. Import common E2E element operations from `app/test/e2e/helpers/element-helpers.ts` where applicable; extend the shared abstraction when required instead of adding another platform-specific raw element helper. Do not expose new production-only test handles or inject JavaScript into child webviews. Browser locator assertions can continue the existing Playwright idiom. Reset each fixture/user and restore overridden behavior in finally/afterEach. Never use assertion `A || fallback error` as proof of success.++### M1 — channel badge lifecycle++In `app/test/playwright/specs/channels-smoke.spec.ts`, preserve current panel presence then add one actual lifecycle case. Use the surviving issue-233 RPC field contract directly through browser `callCoreRpc`:++```ts+const channel = { channel: 'telegram', authMode: 'bot_token' };+await callCoreRpc('openhuman.channels_disconnect', channel);+// Require a status entry selected by channel_id === telegram AND auth_mode === bot_token.+await callCoreRpc('openhuman.channels_connect', {+ ...channel,+ credentials: { bot_token: '111111:e2e-channels-smoke-token' },+});+```++Read `openhuman.channels_status` before/after; missing status is a failure. Navigate `/channels`, assert `[data-testid="skill-row-channel-telegram"] [data-slot="badge"]` exact `Not configured`; after connect navigate chat→channels and require `Connected` and connected RPC status; disconnect, remount and require both disconnected. No BotAPI fake or listener needed. Run this browser case against the real pinned module before removing native source/helper consumers. Do not delete the issue-233 retained native helper until all its remaining imports are gone.++### M2 — cron row lifecycle++Replace browser fallback test in `cron-jobs-flow.spec.ts`. `app/src/utils/tauriCommands/cron.ts` already calls coreRpcClient directly; no product change is needed to make cron work in web. Use `cron_list` to find morning_briefing; if absent create with the native existing `cron_create` compatibility call and require nonempty generated id; if paused enable via `cron_update`. Do not claim this proves auto-seeding. Render `/settings/cron-jobs`, click `cron-refresh`, assert row id and toggle aria-label Pause. Click row toggle, expect Resume, click Refresh, still Resume; toggle back, expect Pause. Create separate disabled removable agent job via `cron_add` `{name:'e2e_remove_me', schedule:{kind:'cron',expr:'0 8 * * *'},job_type:'agent',prompt:'E2E disposable cron job'}`; refresh, click `cron-job-remove-${id}`, require row absence and cron_list excludes id. Poll DOM/RPC rather than fixed sleeps. If seed wrapper is no longer valid, use current schemas and preserve setup semantics; do not weaken row assertion. Run all three lifecycle actions before deleting native.++### M3 — chat persistence and continuation++Add focused private helpers in `app/test/playwright/helpers/chat-transcript.ts` only if more than one spec needs them. They must use `callCoreRpc` and the same host test-support methods as the native sources: `openhuman.test_support_read_workspace_file` and `openhuman.test_support_list_workspace_files`. Copy the existing native params/path derivation, not an invented timestamped transcript glob; identify the current thread from the existing Redux/thread helper. Fail on missing thread/file or unsuccessful RPC. Read durable content only after turn terminal state. Preserve the live UI send/cancel assertions: RPC is an oracle, not the driver.++For send-stream assert prompt+reply in durable transcript, nonempty listed transcript entries/positive sizes and no running turn for this id. For history assert both exchanges persisted as well as exact second request context. For cancel wait for a known early delta, press Stop, wait for terminal state, require early data retained and every late piece absent from both DOM and persisted transcript. Add the native tab-switch case to conversations-web-channel: send delayed reply, navigate away before completion, return to the same thread and require completed content, recorded request and no error. Do not substitute a new thread/canned preexisting message. Keep browser tool terminal/result/one-bubble assertions intact. Run each affected test with fresh core/workspace if cumulative memory requires it.++### M4 — wallet durable state++Use the exact native wallet read/state oracle from `chat-harness-wallet-flow.spec.ts` after the browser’s generated-phrase confirmation. Preserve consent/source/all four chain identities. Reuse `settings-account-preferences` wallet configuration RPC oracle too, but it alone does not assert consent/source/all chains. Do not log phrase/private material or put them in receipts.++### M5 — distinct multi-tool family++The native `chat-multi-tool-round` fixture invokes file_read then grep, while browser invokes web_fetch then web_search_tool. Keep both distinct UI tool adapters under the one browser file. Transfer native local file setup through supported test-support RPC/host fixture, force the same tool sequence, expand the group, assert exactly two cards and file-read before code-search plus final rendered answer. Existing web pair remains unchanged. Require fixture tool result failure to fail the case; do not just count model requests. This preserves coverage; names alone are not equivalence evidence.++### M6 — shortcut directory++In browser `command-palette.spec.ts`, add reopen/close after existing palette case; mod+/ opens keyboard-shortcuts-list with New Chat, Toggle Sidebar, Navigation; Escape closes. Blur active input, press ?, assert directory and close. Use platform modifier as existing browser keyboard helper does. Keep `command-palette-keyboard.spec.ts` arrow selection/filter/empty-result behavior. Both files run before native deletion.++### M7 — Gmail and auth-state distinction++Reuse existing Composio modal helpers/fixtures and current skill-install-composio-gmail selectors. Add explicit Cancel/setup, disconnect→Connect, reopen setup, failed/expired state remains authenticated and no stale Connected card after disconnect. Existing native revoked/expired checks are mostly shell survival; do not turn them into an invented backend-refresh assertion. Preserve distinct native modal/manage and browser disconnect accessibility assertions. Restore mock connection state after each case.++### M8 — current guided tour++Read `app/src/components/walkthrough/walkthroughSteps.ts` and its tests. Current source has seven steps; starts chat-agent-panel, next skills-grid at Connections Apps, ends chat-agent-panel. Replace browser stale home-card/home-cta/1 of 10 assumptions with the native current seven-step route/target assertions. Preserve browser Skip→completed=true/pending=null and native final preseeded welcome note, no Skip after finish, pending flag reload. Do not import source step array into test to generate expected assertions: write independent expected seven route/target literals from current contract. Run browser tour plus existing `AppWalkthrough.test.tsx` before native deletion. A stale browser assertion can legitimately fail before this test repair; do not change product to satisfy stale ten-step expectations.++### M9 — onboarding preconditions++Add same-account completed=true → UI logout → reauthenticate same user → chat with completed=true and zero onboarding-layout to browser logout-relogin. Do not reset onboarding flag in this case. Keep its current explicit false reset case separately. Runtime-picker unique welcome choices/provider buttons and custom/managed completion can reuse private browser onboarding helper rather than rerun full wizard inside two files. Preserve `/auth/me` request oracle for managed login. Generic UI logout must go through settings; existing helper named logoutViaSettings actually calls auth_clear_session directly and cannot stand in for the UI click assertion. Keep desktop deep-link auth only in allowlisted native files.++### M10 — route and preference unions++Update browser route inventories from actual native invocations and current `AppRoutes.tsx`/settings route elements. Add `/flows` and Memory `tab=brain`/memory-page; legacy `/brain`, `/settings/memory-data`, `/settings/agent-chat`, `/settings/local-model-debug`, removed features and notifications routes; preserve browser existing aliases/Human. Exact final hash/query should be independently written and escaped (question mark is literal). Native comments disagree with current routes; code and active expectations determine the contract. Preserve each existing nonblank/timing budget and two-pass cycle. Account billing requires Plan & billing and Open dashboard; browser generic Account/Billing match alone loses that assertion. Keep settings persistence snapshots and additional browser time-zone/mascot assertions. Do not merge unrelated route tests into one weaker “root has text” catchall.++### M11 — desktop reset++Keep only confirmed full-state reset in native settings-data-management; move confirmation/Cancel to browser. Existing native catches any stale session error and calls it a successful restart: strengthen host proof before using it as the retained contract. Capture the launched app PID/start time and existing session ownership through the supported session launcher, initiate clear, require owned process exit/restart signal and cleared authoritative state from a new supported session/health bootstrap. Do not kill unrelated processes. If current driver cannot reattach, require explicit owned process lifecycle observation and record post-restart UI as unverified; an arbitrary thrown element lookup is not proof. This is a host harness test change, not permission to change product reset behavior or add child-webview injection.++## Bite-sized execution sequence++### Task 1 — freeze baseline and enumerate contracts++Wait for issue 233 merge, then create/reuse implementation worktree from latest fork epic with the existing worktree helper. Preserve this plan commit and normally merge accepted base if needed. Record base SHA, submodule gitlinks, native/web source input hashes and tool/module versions. Assert exactly 51 pairs before this issue’s edits; if dependency changed another pair, update inventory from actual diff before deleting it.++Create a review receipt under the workflow ledger (not product source): each table row lists native case labels, active/skipped/conditional state, browser destination test label, distinct assertions and actual run result. Transfer only real assertions; logs and catch-and-pass placeholders are not claims. Record preexisting skips with linked issues. This receipt is the reviewer’s deletion checklist.++Start fork CI Full baseline immediately, using a separate immutable measurement ref so an advancing epic cannot change its source. See measurement procedure below. Do not wait idly: migrations can proceed while this exact baseline runs.++### Task 2 — migrate channels and cron++Implement M1/M2 in the existing browser files; run each against current built core and pinned modules. Read complete raw output and exit code. Only after both pass delete their native files and `run(...)` entries in `app/scripts/e2e-run-all-flows.sh`; remove only now-unused helper exports/imports. Preserve issue-233 helper decisions until imports really vanish. Update matrix/README/example references that actually cite removed native paths.++### Task 3 — migrate chat contracts++Implement M3/M4/M5, preserving browser-only stronger assertions. Run send-stream, cancel, history, conversations, wallet and both multi-tool scenarios separately with their actual source head/binary receipts. Then remove their native copies and entries. Run unchanged browser tool-call, error-recovery, scroll-render and user-journey-full-task once, verify existing stronger assertions and delete their native copies. Do not treat RPC backend-only results as a substitute for rendered UI assertions.++### Task 4 — migrate navigation, tour and account UI++Implement M6–M10 and table-specific additional selectors. Run every changed browser file/case, plus command-palette-keyboard and AppWalkthrough focused unit tests. Remove native counterparts only after their unique contracts have a passing owner. Keep tracked skipped model selection and voice intent marked unverified. Delete low-value duplicate native skill shell specs after corresponding browser owner cases pass; do not introduce additional canary scripts. Transfer exact webhook stub result/log oracles before deletion. Preserve conditional skill install/uninstall assertions only when their affordance actually exists; current supported install suite owns the live behavior.++### Task 5 — narrow desktop exceptions and remove port/Tauri browser copies++Apply the mixed splits, leaving only five documented basename exceptions. Preserve actual deep-link transport/window/notification commands and implement M11 through existing supported launcher controls. Transfer browser Tauri bootstrap, ping/about_app capabilities into browser smoke and native normal startup into native smoke. Run both smoke owners and each narrowed host case on freshly provenance-verified binaries. Delete both port files and browser Tauri file. Remove no entire mixed file through a generic SPA classification.++Update `app/package.json` scripts that still target deleted native skills/cron files to the supported browser session (correct working directory and paths); retain user-facing script names where useful. Search both deleted full paths and stems across scripts/workflows/docs/test matrices. Remove dead suite categories only once there are no retained native members; do not silently skip a whole category with an unmatched name.++### Task 6 — rebalance without reducing process isolation++Change `.github/workflows/ci-full.yml`, `.github/workflows/e2e-playwright.yml`, `.github/workflows/e2e-reusable.yml`, `app/scripts/e2e-run-shards.sh` and existing shard self-tests. Initial concrete topology:++- Native Linux: reduce eight suite groups to four: `foundation=auth,navigation,system`; `chat=chat,skills,journeys`; `connections=providers,provider-web,connectors`; `settings=settings,notifications`. All existing retained native suite members belong to exactly one group; payments/webhooks are empty after their twins move. Keep native full build-once artifact fanout, fail-fast=false, individual fresh session/workspace and current timeout. macOS/Windows full matrices must use the same four group definitions for release callers, although CI Full still disables those OS lanes. Do not enable unsupported OS drivers. Preserve explicitly disabled Slack spec as disabled, not newly discover it. Fix existing chip-tabs-keyboard double registration across navigation/settings so one full run schedules it once without losing a user-addressable suite (dedupe resolved spec paths).+- Playwright: keep 64 logical ordinary shards, `workers:1`, fresh core AND workspace for every logical shard. Distribute serial shard indexes across four independent hosted jobs (lanes 1–4), each runs its 16 indexes: lane1 1,5,…61; lane2 2,6,…62; lane3 3,7,…63; lane4 4,8,…64. This changes one long job into four memory-isolated jobs, not 64 simultaneous cores. Do not reduce logical 64 just to reduce boot time: existing per-context memory regressions justify isolation.+- Keep the nine existing special isolations: Connections aliases, Connections deep links and seven individually named skills-search-install cases. Assign their indexes 0–8 round-robin to lanes; every special case starts its own core/workspace. Exclude their titles from ordinary shard discovery exactly as now. Remove stale exclusion for already-deleted subagent spec only after proving no remaining matching active case is being suppressed.+- Add `app/scripts/e2e-web-shards.sh --lane=N --lanes=4` as the single scheduling loop shared by CI Full and manual Playwright; use `--list` to print JSON units without launching. Preserve exact case-title regex escaping for `-g`; title punctuation is literal and count must be nine special units. Script fails nonzero if any assigned unit fails, runs remaining assigned units to provide full signal, captures exit codes explicitly (no pipeline-last-command masking), writes one receipt per unit. Every workspace has lane and unit in its path. Core, Vite and mock ports remain sequential/private inside each job. Do not share mutable module data/workspace between lanes.+- Manual Playwright currently compiles its own bundle in the test job. Split it into build-once artifact job plus four lane jobs using the CI Full artifact packaging/restoration recipe; do not compile four identical cores. Use distinct artifact names including run id; retain source-hash marker check, pinned modules and browser dependencies. Extract a reusable build recipe only if it eliminates actual duplication without changing feature tuples. Manual workflow keeps its current failing behavior (no continue-on-error).++Add meaningful Node self-tests for scheduling: four lanes’ union exactly 64 ordinary + nine special units, no duplicate, indexes in bounds, every special assigned once, unchanged exclusion set, invalid lane rejected, unit failure propagated while later units run and unique workspaces. Stub the session command for this test; do not boot apps for mechanical scheduler checks. Extend existing `scripts/__tests__/e2e-run-shards.test.mjs` so all three OS matrices/local list agree, retained native paths resolve, no scheduled native path duplicated, no empty advertised group. Run shell syntax and Node tests before triggering hosted measurement.++The four native groups are a concrete initial rebalance, not a claim of equal runtime. Record shard test-step durations from the after run. If one group dominates >2× the median, split/redistribute its explicit retained spec membership within the same four-job budget using measured durations, rerun that topology and report the actual final numbers. Never move a flow to a second runner to balance counts.++### Task 7 — ownership documentation and guard++Before writing GitBook content apply `write-docs` skill. Add `docs/gitbooks/en/developing/e2e-testing.md` and link it under Developing in `docs/gitbooks/en/SUMMARY.md`; preserve sync metadata and conventions. Document the rule, five exceptions with their distinct native/browser assertions, current scheduling, exact local commands, and how to add a new test. State unavailable platform/native intents honestly. Update existing references instead of creating a second contradictory runner guide.++Add `scripts/ci/check-e2e-runner-ownership.mjs` with five explicit `{basename, reason}` entries (or read the equivalent checked-in manifest used by the doc). It compares actual spec basenames, fails unallowlisted duplicates, stale allowlist entries, missing reason or listed file absent. Hook into existing JS quality/script gate with a package script `e2e:ownership:check`. Add Node tests for those actual failure conditions using temporary fixture trees under checkout `target/` (not system temp quota); no tests mirroring string literals only. It cannot prove semantic equivalence, so independent review must also check narrowed mixed files and renamed flows. Do not allowlist broad glob or all current intersections.++### Task 8 — final union gates, review and measurements++Run `pnpm lint`, `pnpm format:check`, `pnpm docs:check`, `pnpm --filter openhuman-app typecheck:e2e`, focused relevant frontend unit tests, scheduler/ownership Node tests and shell syntax. Use `scripts/ci-cancel-aware.sh` for long commands. Changes are tests/scripts/docs/workflows: no needless Rust source edits or broad Cargo suites. Required binary build is still necessary to prove desktop/web runtime inputs after issue-228 production parser changes; the historical `0d...` native binary predates those inputs. Build each needed artifact with the repository’s normal scripts, single admitted Cargo job on this box, blank RUSTC_WRAPPER if required and never export CARGO_TARGET_DIR. Record source SHA, production-input hash, build command, artifact hash and feature tuple. Exact-content artifact reuse is valid only if actual relevant input identity is verified, not because test source is the only file just edited.++Run all migrated browser cases in fresh isolated units. Run retained/narrowed native host cases on the actual Wry harness, not browser simulations. For all final native shard memberships and all browser ordinary/special units, collect a real current union run; individual migration passes alone cannot establish suite scheduling or shared-session stability. Record raw passed/failed/skipped counts, retries and actual exit per unit, including failures. Baseline-prove unrelated failures only with matching fixture/features/environment and exact failing case; keep acceptance scope honest. Fix introduced failures before merging. Do not remove assertions, increase general timeouts or add retries to manufacture a green timing result.++## Continue-on-error decision++Keep CI Full Playwright `continue-on-error: true` and its current exclusion from `CI Full Gate` in the initial consolidation. The historical sample is partly red and offers no green-after evidence for making a newly primary SPA lane required. Explicitly state that moving SPA tests reduces current required desktop UI protection until web is stabilized; this is a material risk, not evidence that the lane is green.++After the complete current after run passes all 73 units on the exact candidate SHA, inspect retries/failures and run a second complete after run on that same SHA. If both runs finish every unit with no flaky/retried failures and no newly excluded/skipped active test, remove continue-on-error AND add `playwright-e2e` to `ci-full-gate.needs` and the results map together in a separate reviewed commit; rerun the current candidate workflow and confirm an injected scheduler failure unit test proves nonzero propagation. Otherwise keep the flag and report observed failures with existing #3615 reference; do not call that stabilization complete. The issue asks for a decision, not unconditional removal. Manual workflow remains strict. Never add the lane to needs while leaving COE true: GitHub would mask failed steps as success.++## Timing evidence and fork-only trigger++Historical baseline is upstream run `39011962001`, captured in workflow receipt `8089-baseline-ci-full-jobs.json`:++| Scope | Observed wall time | Limitation |+| --- | --- | --- |+| Playwright job | 78m55s | Historical source/cache context |+| Playwright test step | 76m46s | 64 serial shards + special units |+| Native build start through last desktop shard finish | 39m32s | Chat shard failed; not a green suite comparison |+| Combined E2E envelope | 86m29s | Includes build/fanout; not total CI Full duration |++No after time exists yet. Do not put an estimate into the PR body as a measurement.++Before migrations, root may create immutable fork-only `measure/8089-236-before` at the accepted pre-consolidation epic SHA (design audit tip463 is an available baseline; prefer post-233 accepted tip for clean attribution). Do not move it while its run is active. Dispatch only:++```sh+gh workflow run ci-full.yml -R senamakel/openhuman --ref measure/8089-236-before+gh run list -R senamakel/openhuman --workflow ci-full.yml --event workflow_dispatch --limit 10 --json databaseId,headSha,headBranch,status,url+```++This workflow explicitly supports workflow_dispatch, has read-only contents/packages/actions permissions, no secrets inherit, and calls testing workflows only; it does not publish or trigger release workflows. Only the CI Fast/Lite completion listener exists, not a CI Full release listener. Verify actual run headSha matches the pinned measurement ref. Never dispatch promote-main-to-release or release workflows to collect timings. If fork Actions is disabled, enable it under the epic skill authorization and record the change.++After candidate source is frozen and pushed to its explicit fork feature ref, run the same ci-full dispatch on immutable `measure/8089-236-after` at that exact SHA. Pushing a fork feature/epic branch does not automatically trigger CI Full because its push/PR branch filters target release. Dispatch is therefore required. Capture run id, attempt, head SHA, event, all jobs/steps through:++```sh+gh run view RUN_ID -R senamakel/openhuman --json databaseId,headSha,headBranch,conclusion,startedAt,updatedAt,jobs,url+```++In implementation use the actual numeric id returned by run discovery, store JSON and downloaded logs in the central ledger receipts. The uppercase RUN_ID in this documented command denotes that returned argument, not an invented fixed run. Record pinned container digest/runner image, build cache hits, source-hash artifact reuse, module versions/checksums, retry counts, cancellations, failed units and counts. Inspect actual test steps even when job conclusion is success under COE. Poll live run handles; a pending/observational timeout is not a reason to restart. Cancellation/retry is reported separately, never substituted invisibly for the first attempt.++Compute from actual UTC timestamps: PW test envelope = earliest lane test-step start to latest lane test-step finish; PW job envelope = earliest lane job start to latest lane job finish; native envelope = native build start to latest native shard completion; combined = earliest applicable web/native build start to latest web/native lane completion. Also report summed runner seconds to distinguish lower wall time from higher total compute. Baseline and after must use identical scopes. Show the new fork pre-233 or post-233 baseline separately from historical upstream baseline; if tip463 was used before233 landed, attribute Telegram cleanup as intervening scope rather than claiming all savings came from236. If a run failed/short-circuited, label its duration noncomparable, still report it, and obtain a completed run rather than omitting failed cases to shrink time.++PR body must include actual before/after run links and SHA, these measured durations, native four/PW four-by-sixteen topology, suite counts, retry/cache caveats, five exceptions, COE decision and all migration gates. Open ready fork PR against `epic/8089-test-ownership`; use explicit `HEAD:refs/heads/<feature>` push. Root owns at-most-two review rounds, merge verification and ledger updates. Do not close236 until basename/semantic ownership, complete migrations, rebalance, documentation, local gates and actual timing evidence are all proven.++## Independent review checklist and design risks++Reviewer compares all 51 native/browser source pairs against the inventory receipt, not just ten samples. Every losing active assertion must have a named surviving passing owner; skipped/conditional/log-only paths remain explicitly unverified. Review stronger native channel/cron/durable chat/multi-tool/directory/onboarding contracts and stronger browser voice/tool/final-bubble cases first. Inspect every allowlisted native file for generic UI leftovers and every rename for disguised full-flow duplication.++Primary risks: current browser stale tour/billing/skills assumptions; shared-session native reset lifecycle; module fixture availability; failing inherited tests; fresh-core memory overhead; external hosted job capacity and cold caches; browser COE masking; and several retained non-twin native generic flows outside this bounded twin cleanup. None justify deleting meaningful assertions. Native four-shard or browser four-lane changes are measurable initial defaults, not guessed runtime promises. Root can adjust grouping from observed durations without user approval while preserving ownership and process isolation.