# Full-suite CI test exclusions (OI-906).
#
# profile-a in .github/workflows/vnx-ci.yml runs pytest "$GITHUB_WORKSPACE/tests" (via scripts/ci/profile_a_pytest_args.sh)
# at directory level (the real checkout, not the vendored .claude/vnx-system
# copy — measured 2026-08-02: the vendored tree produces ~197 layout-artifact
# failures, not code reds). This file is the EXPLICIT exclusion list: every
# path below is red on main (measured 2026-08-01: pytest tests/ --ignore=tests/f39,
# then a sequential confirmation run of the candidates) and is excluded from
# the CI sweep until its repair lands. Nothing is excluded silently.
#
# FORMAT (enforced by the test-exclusion-reason gate in scripts/local-ci.sh via
# scripts/ci/check_test_exclusions.py): every entry MUST carry an inline reason
# ("# <why>"). An entry without a reason, a path that no longer exists, or a
# duplicate path fails local CI. Reason style: the tracking OI plus what was
# measured (red solo with <error>, green solo but red in the full-suite sweep,
# or hangs). A bare path reads as "silently disabled" — the drift this gate
# closes.
#
# Entries with a "CI image" reason are green on main locally but cannot run in
# the minimal CI image (undeclared heavy dependency stack); each names the
# missing stack and the repair path to rejoin the sweep.
#
# Entries with an "ADR-053" reason are green everywhere: the whole file already runs
# as its own blocking Profile A step in the same job, so the parallel copy was pure
# duplicate time. Allowed only with the step and its file:line named, and
# tests/test_ci_gates_still_exist.py fails when that step or its command goes away
# (idem for the single tests ADR-053 removed instead of a whole file).
#
# Tracking item: OI-906 ("CI draait 18 van de 904 testbestanden"). Each
# entry needs its own repair dispatch before it can rejoin the suite.
#
# test_dispatch_envelope.py is NOT listed here: only TestFlagGateClaude is red
# (4 tests), and scripts/ci/profile_a_pytest_args.sh filters it out with -k "not TestFlagGateClaude" so
# the file's 29 green tests still run.
#
# test_receipt_mirror_isolation.py is NOT listed here either: only
# TestGovernEnsureReceiptIsolation::test_ensure_receipt_does_not_touch_real_store
# is red, and ONLY in full-suite collection order on CI — it passes in
# isolation, including after the merge of main. Measured on head 9a01f5cc:
# 1 failed, 15953 passed, where this test is the 1. The stub-teardown in
# tests/test_intelligence_daemon_paths.py fixed its four order-dependent
# sibling tests plus 13 collateral tests (test_learning_loop_tz,
# test_w5b_small_fixes); this one is a different, still unattributed cause and
# a collection-order bisect was deliberately NOT attempted. The args script
# filters it out by name in the same -k expression so the file's other seven
# tests keep running (OI-1051 versmald, PR #1434).
# OI-1213 recheck (2026-08-15): not the preflight-hook mechanism — solo 8 green,
# plus tests/test_mc_v4_columns.py neighbour 32 green. Root cause stays the
# unattributed collection-order effect (OI-1121).
#
# dispatch 20260802-w20b-1310-red-classify (2026-08-02) added the 42 files below
# citing OI-946..OI-953: PR #1310 widened this same sweep from 831 files (the
# ones NOT already listed above) to include these too, and 213 of their tests
# came back red in CI. Classified A/B by running the exact same full-suite
# composition (this file's exclusions + --ignore=tests/f39) on a fresh
# origin/main worktree: 218 failed there too, with 15699 passed on BOTH sides —
# 204 of the 213 branch reds reproduce byte-for-byte on main, and the
# remaining 9 pass in isolation on both main and the branch (order/load-
# dependent, OI-658 class). Zero of the 213 are caused by PR #1310 itself
# (which only touches this workflow, this file, and two conftest.py files —
# no application code). Each new entry cites the OI covering its cluster.
#
# 2026-08-11 de-quarantine (OI-1131 + OI-1133): 29 files removed from this
# list after each ran fully green SOLO on main 12f0b4ee in a plain clone
# (120s per-file timeout) — the 23 files OI-1133 measured green, the OI-949
# dispatch-register/event-log cluster (5 files, repaired by #1447), and
# test_subprocess_dispatch_worktree_isolation.py (7 reds of OI-1131,
# repaired by #1449; reproduced at pre-fix SHA 30d6916b as control).
# Solo-green is not sweep-green: the de-quarantining PR's own Profile A run
# is the full-sweep group check per OI-1133. Files still red stay listed.
# GROUP-CHECK OUTCOME (PR #1458 Profile A, run 31506897662): 6 of the 29
# flipped red in the full sweep on the CI image (35 fails, all inside those
# 6 files) and returned to this list with the failure named per entry.
# 23 files (491 tests) stay de-quarantined; that sweep had no other reds.
#
# 2026-08-15 OI-1213 re-assessment: the six OI-1133 group-check entries below
# were re-checked against the OI-1213 preflight-hook mechanism
# (migrate_future_system registers register_preflight(30, ...) at import; a
# fixture that skips 0029 and applies 0030 fails once that import happens).
# Verdict: NONE of the six is OI-1213 (clean-env solo + tests/test_mc_v4_columns.py
# neighbour all green; none has a 0029/0030 skip fixture). Two of them
# (test_receipt_processor_autopr_rejected_mirror.py, test_receipt_processor_bootstrap.py)
# are red in the sweep for a now-explained reason: the vnx_paths.sh cross-project
# guard (scripts/lib/vnx_paths.sh:221-228) unsets an explicit VNX_STATE_DIR pin
# when VNX_HOME points elsewhere (on CI: the vendored $WORKSPACE/.claude/vnx-system),
# then falls back to $VNX_DATA_DIR/state. There is a SECOND trigger, order-dependent:
# vnx_init calls vnx_paths.ensure_env() (scripts/vnx_init.py:736 ->
# scripts/lib/vnx_paths.py:570-575) which does os.environ.setdefault("VNX_HOME", ...);
# in a combined run test_init_migrate_bootstrap.py injects VNX_HOME into the process
# env, and the two receipt-processor tests spawn bash WITHOUT env= so they inherit it.
# The fix lives in vnx_paths.sh + the subprocess env pinning, not in these files.
# Full write-up: claudedocs/test-quarantaine-verklaring-20260815.md.
#
# 2026-08-15 OI-1227 re-measurement (dispatch-fwd-02): the 98 entries that
# carried only the generic OI-906 inventory reason were each run SOLO with the
# Profile A invocation (pytest -q <file> -p no:cacheprovider --timeout=180,
# 90s wall-cap, clean env). Disposition per entry: B = red solo with the named
# error class (measurement, not the 2026-08-01 inventory), D = hangs past the
# 90s wall-cap. tests/test_dispatch_serialization.py ran 21/21 green solo (A)
# and is REMOVED from this list - its 21 tests rejoin the Profile A sweep.
# No C cases: nothing measured green solo but red in the sweep. The two OI-867
# deepseek split entries were re-confirmed identical by this sweep.
#
#
# tests/migrations/test_auto_apply.py — REPAIRED (dispatch 20260930-rel170-auto-apply-fail-closed):
# the two red tests fed the full migrations dir to a fixture that only has 0020's
# tables; they now hand auto_apply the real 0020 alone. 9/9 green solo.
tests/test_agent_stream_sse.py  # OI-1227: hangs — exceeds 90s wall-cap solo (per-test --timeout=180), no output within cap
tests/test_architecture_doc_drift.py  # ADR-053 (tsk-5): NOT red — this whole file already runs as its own blocking Profile A step "Run architecture doc drift guard unit tests" (.github/workflows/vnx-ci.yml:292) on every PR; the parallel-phase copy cost ~8 s and proved nothing extra. tests/test_ci_gates_still_exist.py fails if that step (or its command) disappears.
tests/test_burnin_certification.py  # hangs without VNX_HEADLESS_CLI=echo; covered by burn-in-headless.yml
tests/test_cli_init.py  # OI-1420 gemeten 21-08: slaagt solo, valt onder volle sweep (29 failed) op ADR-007 fail-closed: project_id conflict for init backfill (marker=<testnaam>, env:VNX_PROJECT_ID='vnx-dev')
tests/test_constraint_enforcer.py  # OI-952: order/load-dependent flake, passes solo on both main and branch (OI-658 class)
tests/test_dashboard_sse_empty_file.py  # OI-1227: exceeds 90s wall-cap solo (per-test --timeout=180)
# tests/test_horizon_parity.py — REPAIRED (OI-1065): the pip-CLI/engine flag drift
# (vnx horizon add --lane-hint, close --attest/--pr/--max-gh-calls, plan-gate
# attest delegation) was the red this exclusion hid. Suite is 85/85 green and
# now rejoins the Profile A sweep so new drift fails the PR, not a red suite
# nobody reads. No heavy-dep stack (sqlite3 + in-repo modules only).
# tests/test_horizon_schema_migration_fix.py — REPAIRED (dispatch 20260930-rel170-auto-apply-fail-closed):
# the pre-27 fixture relied on auto_apply silently skipping 0027-0031 and the
# asserts still expected 31 after the OI-1169 sweep. 35/35 green solo.
tests/test_installer_no_template_leak.py  # OI-1227: red on the Linux runner, run 43587468816: test_no_users_prefix_on_linux_ci fails on /Users/ in .vnx/docs; the Linux-only test skips on macOS
tests/test_pool_provider_mix_integration.py  # OI-2589: red on the Linux runner — post-spawn registration writes to '/events' (run 43580191462)
tests/test_quickstart_validation.py  # OI-1420 gemeten 21-08: slaagt solo, valt onder volle sweep (2 failed) op hetzelfde ADR-007 init-backfill project_id-conflict (env:VNX_PROJECT_ID='vnx-dev'); mode.json en .vnx-data/state worden nooit aangemaakt omdat `vnx init` fail-closed weigert
tests/test_repo_map.py  # OI-1420 + D1 (OI-2589) gemeten run 42318233090 op ff7ef8d8 (Profile A parallel, 13 failed): 11x NameError '_TSParser' (TestExtractPythonSymbols, TestBuildDependencyGraph) en 2x ModuleNotFoundError 'networkx' (TestPersonalizedBoost); de runner heeft geen tree-sitter en geen networkx (bewust niet geïnstalleerd, zie profile-a-prelude/action.yml), lokaal groen: omgeving, geen codefout (CI image-klasse)
tests/test_status_vocab_drift.py  # ADR-053 (tsk-5): NOT red — this whole file already runs as its own blocking Profile A step "Run status vocabulary drift guard unit tests" (.github/workflows/vnx-ci.yml:310) on every PR; the parallel-phase copy cost ~8 s and proved nothing extra. tests/test_ci_gates_still_exist.py fails if that step (or its command) disappears.
tests/test_t0_decision_log.py  # OI-1420 + D1 (OI-2589) gemeten run 42318233090 op ff7ef8d8 (Profile A parallel, 2 failed): TestProcessEventsFileCursorStaleness::test_cursor_resets_when_source_replaced_same_length (assert 0 == 3) en ::test_legacy_cursor_upgrade_enables_same_length_replacement_detection (assert 0 == 1); slaagt solo, valt onder de xdist-sweep (inode-hergebruik, OI-658-klasse)
tests/test_t0_escalations_log.py  # OI-1420 + D1 (OI-2589) gemeten run 42318233090 op ff7ef8d8 (Profile A parallel, 1 failed): TestProcessEventsFileCursorStaleness::test_cursor_resets_when_source_replaced_same_length (assert 0 == 3); slaagt solo, valt onder de xdist-sweep (zelfde inode-hergebruik-klasse als test_t0_decision_log.py, OI-658-klasse)
