Control-plane tests fail on main when scenario Goals lack canonical authority
On main at aec2a1b24, 144 of the 247 tests in 13 files under tests/control_plane/ fail. The scenario Goals in these tests have no canonical authority. The failures are CanonicalAuthorityRequired errors plus assertion and type errors.
Failures by error type (13 files, base aec2a1b24): CanonicalAuthorityRequired 53, AssertionError 81, TypeError 9, AttributeError 1, other 0 (144 total).
A pull request with a test-only fix will reference this issue. The fix initializes canonical authority through the reviewed cold-import CLI path. The 23 contrast cases in test_actual_default_model_behavior_portfolio.py are marked strict xfail and cite #7403. That issue tracks a harness defect in loopx/control_plane/testing, which the fix does not change.
Current-source reproduction update on an isolated, clean main checkout at 225698b313f3bcd5c967220013b4a2254c586792:
python -m pytest -q tests/control_plane/test_actual_default_model_behavior_portfolio.py tests/test_quota_bound_wait_recovery.py
54 passed in 129.56s
That is all 50 current portfolio tests, without xfail/skip, plus all four original bound-wait cases from #7435. The selected_work_vs_required_vision_replan source-relation failure from #7403 no longer reproduces through this complete portfolio module on this source.
Main includes the fixture/contract reconciliation in #7459 and the later complete-context qualification repair 98ca82923. This observation does not choose or impose an older proposed source repair over the current contract.
Scope: this reruns the portfolio module and the separately reported wait recovery, not all 13 modules / 247 historical cases in this issue. I am therefore recording a verified reduction of the original failure set, not claiming complete closure of #7433 or broader model/installed-host qualification. A preliminary run overlapping source preparation encountered a runtime-startup failure and is excluded from this clean, fixed-source result.
Verification receipt on current main — clean source checkout at 23dacd5fb449194c6a8d83e9764534cdbdd081b4 (2026-11-21). This extends the 2026-10-30 partial rerun (portfolio + bound-wait, 54 tests) to the complete tests/control_plane/ tree on this source.
Run: LOOPX_TEST_PYTHON=python3 PYTHONPATH=. uv run --extra test pytest tests/control_plane/ -q -n 8 -m "not stage2c_e2e" --dist loadfile (Python 3.12.13, pytest 9.2.0, npm dev dependencies installed, chat web bundle built in the checkout).
- Collected: 16,517 tests (56
stage2c_e2edeselected, matching the main CI pytest selection). - Split-run totals: 8,061 passed / 139 skipped in group 1 and 8,177 passed / 81 skipped in group 2 — zero
CanonicalAuthorityRequiredanywhere in the output. - Host-environment artifacts, diagnosed and re-run green (disclosed, not silently dropped): 59 red results (54 errors in
test_chat_cold_source_import.py/test_chat_goal_storage.py, 4 failures intest_chat_completion_execution_proof.py) came from the checkout missing the built chat web bundle (LoopX Chat bundle is missing … bundle-manifest.json); afternpm run build:chatinapps/presentation/dashboardthose three files pass 106/106. One budget-smoke failure (test_hot_path_interface_budget_fixture.py::test_budget_smoke_isolates_and_restores_ambient_routes,dashboard_status_json25,167 > 25,000 chars) was inflated by this macOS host's long default temporary-directory path; with a shortTMPDIRit passes. Net: 16,517 selected → 16,297 passed, 220 skipped, 0 unexplained failures.
The issue never enumerated its 13 failing files, so the complete-tree rerun is the verification basis: tests/control_plane/ has grown from 606 to 716 test files since aec2a1b24, the whole current tree is green on this tip, and the reported canonical-authority failure mode no longer reproduces anywhere in it. test_actual_default_model_behavior_portfolio.py now collects 51 tests with no xfail/skip markers — the 23 strict-xfail contrast cases citing #7403 are gone and the module passes unmarked.
Fix chain on main since aec2a1b24:
60dc26eb0(#7459) — the test-only fixture/contract reconciliation this issue announced: disposable canonical authority initialized once after source authoring through the saved-import helper, entry Goal created through the first-party owner, plus contract-sidedelivery_allowedmoved to must_differ.00f6be3e4(#7502) — canonical planning facts supplied to the remaining readback journeys (also the #7435 repair).98ca82923— complete-context retention in model portfolio qualification.793e15fb4(#8093) — recovery fixtures follow captured quota context.
From this complete rerun the issue looks closable as fixed (with the #7403 harness question tracked separately); leaving the close to maintainers.