# 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/integration/test_gemini_streaming_gated.py  # OI-1227: red solo — TestDefaultOffBehavior expects 'done' got 'failed' (1 failed, 6 passed)
# 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/pool/test_pool_lease_e2e.py  # OI-1227: red solo — project-id resolution yields 'vnx-dev' not 'test-project' (2 failed, 6 passed)
tests/test_adapter_conformance.py  # OI-1227: red solo — HeadlessAdapter.shutdown() unexpected kwarg 'graceful' (1 failed, 30 passed)
tests/test_adr007_dispatches_repair.py  # OI-1227: red solo — 70-line gate flags run() at 78 lines (2 failed, 65 passed)
tests/test_adr007_structural_conformance.py  # OI-1227: red solo — sqlite3: cannot start a transaction within a transaction (1 failed, 1 passed)
tests/test_agent_stream_sse.py  # OI-1227: hangs — exceeds 90s wall-cap solo (per-test --timeout=180), no output within cap
tests/test_agent_validation.py  # OI-1227: red solo — T0IntelligenceGatherer: 'Developer' not valid (1 failed)
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_auto_report_integration.py  # OI-1227: red solo — manual report status parsed 'contract_invalid' not 'success' (1 failed, 38 passed)
tests/test_behavior_contracts.py  # OI-1227: red solo — routing_policy lanes missing BehaviorContract: kimi x4 (1 failed, 22 passed)
tests/test_bench_headless_routing.py  # OI-1227: red solo — 'claude-sonnet-4-6' not in HEADLESS_FORCED_MODELS (3 failed, 2 passed)
tests/test_bench_seed_integrity.py  # OI-1227: red solo — expected 9 task verifiers, found 13 (1 failed, 13 passed)
tests/test_billing_safety.py  # OI-951: doc/content drift the test already asserts against, red on main too
tests/test_build_t0_state_exception_handling.py  # OI-1227: red solo — build_t0_state.py exited 1 on main (1 failed, 1 passed)
tests/test_burnin_certification.py  # hangs without VNX_HEADLESS_CLI=echo; covered by burn-in-headless.yml
tests/test_busy_terminal_certification.py  # OI-1227: red solo — rc_check_terminal call not found in busy-term dispatch (6 failed, 5 errors, 35 passed)
tests/test_claude_github_review_linkage.py  # OI-1227: red solo — MagicMock not JSON serializable in request handler (3 failed, 33 passed)
tests/test_cli_flag_forwarding.py  # OI-1227: red solo — RGM lambda got unexpected kwarg 'strict' (1 failed, 17 passed)
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_codex_pr311_findings.py  # OI-1227: red solo — IntelligenceSelector._record_pattern_usage missing (3 failed, 12 passed)
tests/test_codex_r2_fixes.py  # OI-1227: red solo — ((count++)) post-increment still present in dispatcher loop (1 failed, 11 passed)
tests/test_constraint_enforcer.py  # OI-952: order/load-dependent flake, passes solo on both main and branch (OI-658 class)
tests/test_conversation_resume.py  # OI-1227: red solo — serve_dashboard resume api broken: session-id/conflict asserts fail (4 failed, 16 passed)
tests/test_dashboard_feature.py  # OI-1227: red solo — serve_dashboard._format_duration missing (11 failed, 51 passed)
tests/test_dashboard_kanban_certification.py  # OI-1227: red solo — serve_dashboard._DIR_TO_STAGE missing (6 failed, 9 passed)
tests/test_dashboard_sse_empty_file.py  # OI-1227: exceeds 90s wall-cap solo (per-test --timeout=180)
tests/test_delivery_failure_codes.py  # OI-1227: red solo — ValueError: substring not found in 8 setup errors (21 passed)
tests/test_dispatch_agent_default_instruction.py  # OI-1227: red solo — default-instruction subprocess rc != 0 (2 failed, 17 passed)
tests/test_dispatch_manifest.py  # OI-1227: red solo — auto-commit dispatch-id assert not True (1 failed, 8 passed)
tests/test_dispatcher_drain_lifecycle.py  # OI-1227: red solo — subprocess_dispatch recovery module attr error (3 failed, 16 passed)
tests/test_error_contracts.py  # OI-1227: red solo — '|| true' suppression still present in shell critical path (1 failed, 3 passed)
tests/test_gate_dispatch_id.py  # OI-1227: red solo — dispatch-id propagation to claude-github assert False (1 failed, 11 passed)
tests/test_gate_evidence_accuracy.py  # OI-1227: red solo — verdict='fail' with non-terminal status must still enforce report_path (4 failed, 16 passed)
tests/test_gate_execution_certification.py  # OI-1227: red solo — MagicMock vs int comparison in evidence-chain lifecycle (7 failed, 6 passed)
tests/test_gate_status_schema.py  # OI-1227: red solo — status=completed not accepted as pass (1 failed, 25 passed)
tests/test_gemini_prompt_no_duplicate.py  # OI-1227: red solo — FILE: markers appear >once in inlined prompt (3 failed, 1 passed)
tests/test_governance_blockers_fix.py  # OI-1227: red solo — recorded_ts not assigned from now_ts (2 failed, 28 passed)
tests/test_governance_digest_certification.py  # OI-1227: red solo — digest file not created (14 failed, 34 passed)
tests/test_governance_digest_runner.py  # OI-1227: red solo — digest runner output missing (11 failed, 20 passed)
tests/test_headless_dispatch_daemon_wave5.py  # OI-1227: red solo — deliver_with_recovery not called on fallback path (2 failed, 11 passed)
tests/test_headless_inspect.py  # OI-1227: red solo — HealthSummary.status_label missing (13 failed, 8 passed)
# 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 solo — developer machine paths found in shipped sources (2 failed, 6 passed)
tests/test_intelligence_ab_framework.py  # OI-1227: red solo — AB-framework conn lambda unexpected kwarg 'timeout' (2 failed, 9 passed)
tests/test_litellm_agentic_runner.py  # OI-1227: red solo — full-loop subprocess rc != 0 (1 failed, 17 passed)
tests/test_observability_linkage.py  # OI-1227: red solo — events-dir guard NotADirectoryError (4 failed, 13 passed)
tests/test_open_items_gate_certification.py  # OI-1227: red solo — serve_dashboard._read_gate_config missing (2 failed, 8 passed)
tests/test_pattern_id_stability.py  # OI-1227: red solo — IntelligenceSelector._record_pattern_usage missing (1 failed, 8 passed)
tests/test_pattern_matching.py  # OI-1227: red solo — ModuleNotFoundError: cli_output (1 collection error)
tests/test_per_pr_closure.py  # OI-1227: red solo — 'contradiction_gemini_review' missing from evidence set (9 failed, 13 passed)
tests/test_plan_gate_panel.py  # OI-946: DB/migration precondition chain (init/migrate/track bootstrap) red on main too
tests/test_planning_cli.py  # OI-946: DB/migration precondition chain (init/migrate/track bootstrap) red on main too
tests/test_pool_manager_real_spawn.py  # OI-1227: red solo — sqlite3 FOREIGN KEY constraint failed (1 failed, 9 passed)
tests/test_pool_provider_mix_integration.py  # OI-1227: red solo — terminal_leases has no column 'state' (1 failed, 15 passed)
tests/test_pool_state_repo.py  # OI-1227: red solo — sqlite3 FOREIGN KEY constraint failed (6 failed, 3 passed)
tests/test_pr10_provider_string_canon.py  # OI-1227: registry key 'deepseek_harness' != 'deepseek' (OI-867 deepseek proxy/harness split)
tests/test_pr2_requeue_clear_context.py  # OI-1227: red solo — absent ClearContext defaults 'true' != 'false' (1 failed, 15 passed)
tests/test_project_status_hook.py  # OI-1227: red solo — project-status hook subprocess rc != 0 (1 failed, 2 passed)
tests/test_provider_dispatch_contract_integration.py  # OI-1227: red solo — litellm tool-shape lane None != 'openai_tools' (2 failed, 17 passed)
tests/test_provider_dispatch_entry.py  # OI-1227: red solo — litellm route subprocess rc != 0 (1 failed, 17 passed)
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_receipt_classifier.py  # OI-1227: red solo — classifier_providers.ollama_provider.subprocess missing (1 failed, 15 passed)
tests/test_receipt_instruction_hash.py  # OI-1227: red solo — manifest sha256 read failed (2 failed, 7 passed)
tests/test_receipt_v2_pr4_wiring.py  # OI-948: receipt v2 PR4/PR5: NoneType has no attribute status, red on main too
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_review_adapters.py  # OI-1227: red solo — ValueError not raised for unknown adapter (7 failed, 28 passed)
tests/test_runtime_facade_registry_integration.py  # OI-1227: red solo — Invalid terminal_id 'A0' must match ^T[0-9]+$ (1 failed, 19 passed)
tests/test_safe_autonomy_cutover.py  # OI-1227: red solo — ModuleNotFoundError: fpd_certification (3 failed, 35 passed)
tests/test_schema_init_view_ordering.py  # OI-1227: red solo — legacy v21 bootstrap first run fails (3 failed, 15 passed)
tests/test_semantics_cleanup.py  # OI-1227: red solo — ValueError: substring not found in 8 setup errors (5 passed)
tests/test_serve_dashboard_api.py  # OI-1227: red solo — serve_dashboard._read_gate_config missing (4 failed, 63 passed)
tests/test_session_ids_staleness.py  # OI-1227: red solo — read_events_with_timeout does not refresh session_id (1 failed, 5 passed)
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_strategy_roadmap.py  # OI-1227: red solo — roadmap file not found (RoadmapValidationError) (1 failed, 33 passed)
tests/test_strategy_roadmap_real_file.py  # OI-1227: red solo — committed roadmap not found (RoadmapValidationError) (1 failed)
tests/test_subprocess_cheap_lane.py  # OI-1227: red solo — cheap-lane routes to kimi, expected None (5 failed, 30 passed)
tests/test_subprocess_dispatch_identity.py  # OI-1227: red solo — delivered env leaks ANTHROPIC_AUTH_TOKEN (1 failed, 5 passed)
tests/test_subprocess_health.py  # OI-1227: red solo — deliver-with-recovery file not found (3 failed, 13 passed)
tests/test_subprocess_w3e_robustness.py  # OI-1227: red solo — cannot import _classify_completion from delivery (3 failed, 14 passed)
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)
tests/test_t0_skill_consistency.py  # OI-1227: red solo — no bash blocks found in CLAUDE.md (2 failed, 6 passed)
tests/test_terminal_state_reconciler.py  # OI-1227: red solo — reconciler 'idle' != 'blocked' (2 failed, 10 passed)
tests/test_tmux_adapter.py  # OI-1227: red solo — ModuleNotFoundError: tmux_adapter_cli (3 failed, 42 passed)
tests/test_tmux_adapter_interface.py  # OI-1227: red solo — TmuxAdapter.shutdown() unexpected kwarg 'graceful' (2 failed, 27 passed)
tests/test_track_cli.py  # OI-1227: red solo — track db file not found (15 failed, 3 passed)
tests/test_track_v23_cli.py  # OI-1227: red solo — track v23 subprocess ret != 0 (4 failed, 6 passed)
tests/test_w_init_project_id_threading.py  # OI-1227: red solo — migration linter flags new DEFAULT 'vnx-dev' (1 failed, 26 passed)
tests/test_wave7_deepseek_smoke.py  # OI-1227: smoke routes litellm:deepseek on dispatch_allowed:false (OI-867 deepseek proxy/harness split)
tests/test_week_1_skills.py  # OI-1227: red solo — vendored vnx-system dispatcher file not found (1 failed, 3 passed)
tests/test_wheel_install.py  # OI-1227: red solo — wheel-install smoke exit 1 (1 failed)
tests/test_wiring_completeness.py  # OI-1227: red solo — smart-router route not called (1 failed, 13 passed)
tests/test_worker_heartbeat.py  # OI-1227: red solo — sqlite3 FOREIGN KEY constraint failed (1 failed, 20 passed)
tests/unit/test_codex_event_normalizer.py  # OI-1227: red solo — unknown-event type expected 'error' got 'info' (4 failed, 31 passed)
