Skip to content

Quota-bound wait recovery test fails on main #7435

Open

Description

@hhyykk

On main at aec2a1b, four cases of tests/test_quota_bound_wait_recovery.py::test_bound_wait_recovers_original_turn_before_selecting_successor fail (monitor_changed and todo_done, each with file and sqlite). The failure is an assertion on a result with 'ok': False.

Main's Python test workflow run 40371465209 also reports failures for this test (2 test IDs in its failed-job log).

The cause has not been investigated.

Activity

  1. Aboysky commented on Oct 27, 2026

    @Aboysky

    Thanks for the clear repro. I'd like to take a shot at this one — I'll re-run the four failing parameterizations on current main to confirm they're still red, then dig into why the recovery path returns ok: false for monitor_changed / todo_done. I'll follow up here with a diagnosis and a PR.

  2. Aboysky commented on Oct 28, 2026

    @Aboysky

    Follow-up from my earlier comment: the root cause was 155dee1 retiring the unmigrated read fallback — this test still read the source Markdown before initializing canonical authority. #7502 (00f6be3) landed that migration on main: the test now seeds authority via read_fixture_todos(state) before any CLI read. Verified on main 787f15e (Node 24): pytest tests/test_quota_bound_wait_recovery.py → 4 passed. I'm closing my PR #7503 as superseded; this issue looks closable as fixed.

  3. LIHUA919 commented on Nov 21, 2026

    @LIHUA919
    Contributor

    Verification receipt on current main — clean source checkout at 23dacd5fb449194c6a8d83e9764534cdbdd081b4 (2026-11-21):

    LOOPX_TEST_PYTHON=python3 PYTHONPATH=. uv run --extra test pytest tests/test_quota_bound_wait_recovery.py -q
    ....                                                                     [100%]
    4 passed in 7.39s
    

    All four originally failing parameterizations (monitor_changed / todo_done × file / sqlite) pass. Same 4-passed result before and after npm ci --ignore-scripts in the checkout, so the recovery CLI path is exercised with the TS dependencies present.

    Fix chain on main:

    • 00f6be3e4 "test: supply canonical planning facts to existing readback journeys" (landed via test: restore canonical fixture and durable recovery regression coverage #7502). The pre-fix test called cli("todo", "list", ...) before initialize_canonical_authority(...); with 155dee190 having retired the unmigrated read fallback, that first CLI read failed and the recovery result carried ok: false in the monitor_changed / todo_done cases. The commit replaces the pre-initialization CLI read with read_fixture_todos(state), so canonical authority is seeded before any CLI read.
    • 793e15fb4 ([codex] Follow captured quota context in recovery fixtures #8093) later aligned the same fixtures with captured quota context; the module remains green on the current tip.

    This matches the earlier finding above (4 passed at 787f15e82). From this rerun the issue looks closable as fixed; leaving the close to maintainers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions