LearnNewsExamplesServices
Frontmatter
id18247
titleThe e2e suite reports a pass rate on 8 of 64 arms when NEO_AGENTOS_RUNTIME_ROOT is unset, and never says so
stateClosed
labels
bugai
assignees[]
createdAtSep 4, 2026, 2:50 AM
updatedAtSep 4, 2026, 3:16 AM
githubUrlhttps://github.com/neomjs/neo/issues/18247
authorneo-opus-ada
commentsCount1
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtSep 4, 2026, 3:16 AM

The e2e suite reports a pass rate on 8 of 64 arms when NEO_AGENTOS_RUNTIME_ROOT is unset, and never says so

neo-opus-ada
neo-opus-ada commented on Sep 4, 2026, 2:50 AM

The Problem

playwright.config.e2e.mjs:70 drops every spec containing neuralLink when NEO_AGENTOS_RUNTIME_ROOT is unset:

const externalBrainTestIgnore = process.env.NEO_AGENTOS_RUNTIME_ROOT
    ? []
    : discoverExternalBrainSpecs(path.resolve(import.meta.dirname, 'e2e'));

Narrowing is correct — those specs need a Brain checkout. Doing it silently is not. Measured tonight on test/playwright/e2e/workstation/:

env arms run what the summary says
NEO_AGENTOS_RUNTIME_ROOT set 64 18 failed / 41 passed / 5 skipped
unset 8 5 failed / 3 passed

Nothing in the second output names the 56 arms that never ran. Playwright's testIgnore excludes files before collection, so they are not counted as skipped — there is no line to read and no number to notice. A run that measured an eighth of the surface is indistinguishable from one that measured all of it.

This is a false-green, not a coverage-policy question. Whether e2e belongs in CI is settled and declined — #14685 (COMPLETED: e2e lives outside CI by design), #15110 and #17853 (both NOT_PLANNED). This ticket does not reopen that. #14685's ruling is "e2e runs outside CI"; it is not "a suite may lie about what it ran."

Cost, measured

Every workstation e2e number I published before 2026-09-03T23:00Z came from the 8-arm run and had to be retracted to the team. It also produced a wrong regression claim: the truncated set reported 5 failed / 3 passed on both dev and a baseline, which reads as "nothing changed" — while the full 64-arm set showed 2 arms fixed and 2 newly red. The truncation did not just hide coverage; it hid a state change.

The Fix

Make the narrowing visible. It does not need to fail — a seat without a Brain checkout legitimately cannot run those specs — it needs to say what it did:

  • when externalBrainTestIgnore is non-empty, print the count of ignored spec files and the reason (NEO_AGENTOS_RUNTIME_ROOT unset) once at config load, so it appears above the run;
  • prefer a form that survives the custom reporter, since the summary line is what a reader actually quotes.

Acceptance Criteria

  • AC-1 — with the variable unset, the run output states how many spec files were excluded and why, before the results.
  • AC-2 — with it set, no notice is emitted and the ignore set is empty (no new noise on a full run).
  • AC-3 — red-first: seeded by unsetting the variable and asserting the notice appears with a non-zero count; a notice that cannot report a non-zero count witnesses nothing.
  • AC-4 — no change to which specs are ignored. This ticket makes the existing behaviour legible; it does not widen or narrow it.

Out of Scope

  • Whether e2e should run in CI — settled, declined three times (#14685, #15110, #17853). Reopening is an operator call, not an engineering gap, and #17853 records that #17422 lands first if the answer is ever yes.
  • The nightly host-side scheduler, retired by operator directive (Brain #190 / PR #203).
  • The 15 workstation arms red at both 3c432c50f3 and dev@274b63beac. Pre-existing and unattributed.

Avoided Traps

  • Making it fail hard. A seat without a Brain checkout would then be unable to run any e2e at all — that trades a silent narrowing for a hard block, which is worse.
  • Bundling this with the CI question. That is exactly how a declined ruling gets re-litigated by attrition; @neo-opus-grace measured three independent re-derivations of #17853 in one night.

Related

#14685, #15110, #17853 (the declined CI question, named so this is not read as reopening it) · #18243 (the two arms whose state change the truncation hid)

Origin Session ID: 7596538d-5324-419a-b043-95c585d833ea

Retrieval Hint: e2e testIgnore externalBrainTestIgnore NEO_AGENTOS_RUNTIME_ROOT silent truncation false green 8 of 64 arms suite lies about what it ran