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(plans): make browser e2e lane required by default
Steven Enamakel39f3de8372f3
diff --git a/docs/plans/2026-10-20-e2e-runner-consolidation.md b/docs/plans/2026-10-20-e2e-runner-consolidation.mdindex 01e02bea73..14f35b6e71 100644--- a/docs/plans/2026-10-20-e2e-runner-consolidation.md+++ b/docs/plans/2026-10-20-e2e-runner-consolidation.md@@ -196,13 +196,27 @@ Add `scripts/ci/check-e2e-runner-ownership.mjs` with five explicit `{basename, rRun `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.+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 (including any explicitly separated advisory legacy selection), 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+## Continue-on-error decision: preserve required protection-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.+The default final topology makes the entire primary Playwright matrix required. Remove CI Full `playwright-e2e.continue-on-error`, add `playwright-e2e` to `ci-full-gate.needs` and add `["Playwright E2E"]="${{ needs['playwright-e2e'].result }}"` to its results map in the same workflow change as runner migration. Preserve `if: always()` on the final gate and fail on every result other than success. All four lane jobs use fail-fast=false so a failed lane does not cancel evidence from its peers. Manual Playwright remains strict. No migrated native contract may land on a globally advisory runner: deleting its native copy and requiring its browser owner are one atomic reviewable outcome.-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.+Source feasibility is direct: `app/scripts/e2e-web-session.sh` already forwards all CLI arguments to `pnpm exec playwright test`, whose exit code propagates; CI Full’s existing results loop rejects nonsuccess needs. The scheduler must retain every nonzero unit exit while continuing remaining assigned units, then return nonzero if any failed. No new test tagging or framework is needed for the default. Test the scheduler propagation with stubbed success/failure units and test the actual workflow needs/results membership. Merely adding the job to needs while keeping COE would mask failures and is forbidden.++Collect one complete exact-candidate-SHA after run with this final strict workflow, all four lanes, all73 logical units and all actual discovered tests. Inspect actual case outcomes and retries, not just the aggregate job conclusion. A complete green run plus correct gate wiring proves this candidate; do not demand two additional full runs by default. Repeat only when an observed flaky retry, incomplete/cancelled unit, source change or unresolved scheduling concern requires evidence. If a successful measurement preceded the strict gate change, the gate commit changes the candidate: dispatch once on the final SHA to verify that actual wiring. A focused earlier migration run is not a substitute for this complete after run.++### Narrow fallback only for proven unrelated legacy failures++If the strict full run exposes unchanged legacy failures, first establish exact-case baseline evidence and attempt the scoped test/fixture repair. Do not restore global COE or weaken new/migrated assertions to obtain a pass. A transparent split is permitted only when the failing legacy file owns none of the migrated/retained native contracts and independent review confirms the partition. The relevant native-to-browser owners are the49 browser files in the table (all51 rows except both-copy port retirement and browser Tauri retirement), plus `command-palette-keyboard.spec.ts`, any existing browser install owner used by row44 and any companion that receives an assertion. Those files are an indivisible required set; every active case in them stays required, including browser-only stronger cases. File-level selection avoids fragile title/tag classification.++Implement such an evidence-driven split in the existing scheduling script with two explicit file arrays resolved from actual discovery: required contains the full owner set and all otherwise healthy files; diagnostic contains only exact unchanged failing legacy basenames with a linked existing issue and baseline receipt. The arrays must be disjoint, cover every discovered browser spec exactly once and contain no unknown path. Feed the selected paths as positional CLI arguments to the existing web-session command; special-unit selection and ordinary grep exclusions apply only when their file is in that selection. Keep fresh core/workspace per logical unit and unique mode/lane/unit paths. The diagnostic selection must run all its active tests, preserve their traces/results and fail its command normally; only its separate job may be advisory.++Use distinct workflow job ids: `playwright-e2e` for the required four-lane matrix (no COE, included in final gate) and `playwright-legacy-diagnostic` for the explicitly listed legacy selection (COE true, excluded from final gate, labelled advisory). They share the same prepared artifact and scheduling script. Keep the diagnostic job separate because a COE matrix member can make an aggregate needs result falsely reassuring. Both jobs run on every CI Full invocation; fail-fast=false and step/unit exit receipts expose all failures. The manual workflow runs both selections strictly, preserving its existing diagnostic behavior. No test is omitted, skipped, duplicated or renamed to move it into diagnostics. The current source offers no trustworthy blanket legacy-failure list, so do not prequarantine any file from a historic red label alone.++Extend scheduler tests for disjoint/exhaustive file discovery, required owner coverage, no empty diagnostic job, exact special-case selection and failure propagation in both modes. In fallback mode the total logical unit count may exceed73 because primary and diagnostic discovery shard independently; record actual counts/timings and do not keep claiming73. Do not reduce per-process isolation to compensate for that overhead. A failure inside any required-owner file remains a required failure to fix; partial-file quarantine would hide the migrated protection and is outside this plan.++The PR and documentation must state the final decision explicitly: either the complete browser lane is required and green, or all migrated contracts remain required and green while named unchanged legacy files still execute in the advisory job with actual failure evidence. Verify every migrated contract maps to a required job before its native deletion merges. Record unresolved legacy failures separately; their advisory result cannot support a full-suite green claim.## Timing evidence and fork-only trigger@@ -242,4 +256,4 @@ PR body must include actual before/after run links and SHA, these measured duratReviewer 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/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.+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; incorrect primary/legacy gate partitioning; 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.