Skip to content

SCA-2380: make recovery admission and playback timeouts deterministic - #25373

Merged
Git-on-my-level merged 6 commits into
mainfrom
agent/m1-studio-codex-sol/1bcea2fd0a20
Nov 15, 2026
Merged

Git-on-my-level merged 6 commits into
mainfrom
agent/m1-studio-codex-sol/1bcea2fd0a20

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Nov 15, 2026 •

Copy link
Copy Markdown
Member

The recovery hung-connect test must expire deterministically while preserving cancellation, second-target admission and socket cleanup. Playback uses the scoped Future.result timeout fix now also landed on main, with stronger retained checks for running/non-cancelled Futures and successful real completion callbacks.

Remaining diff against merged main:

  • backend/tests/unit/test_live_recovery_matrix.py: drives expiry of the actual dial timeout context; asserts target admission, exact reservation accounting and socket cleanup.
  • backend/tests/unit/test_sync_playback_metadata.py: explicitly imports concurrent.futures.TimeoutError, documents/scopes the wait stub, preserves the production timeout argument, and retains running/non-cancelled and no-cooldown completion assertions.

Normal integration from reviewed 65ec384 merges main abc63c9 (#25383) in commit 4830250. Playback was the only conflict and was resolved by preserving the entire reviewed file. Recovery is also byte-identical to 65ec; codec and backlog match main. The integration commit's full tree is identical to 65ec (c40afb6036ba89620832b8442e68472c7dade9c0), preserving all reviewed source while adding the main ancestry.

Validation uses the isolated task checkout's own Python 3.11 environment and existing M1 bin/omi-heavy with TERM/KILL bounds:

  • Canonical backend/test.sh over recovery and playback with the default 0.10/1.00 CPU guard.
  • Real-clock ratchet selected through its owning backend/scripts/run-slow-guardrails-ci.sh.
  • make preflight, explicit PR metadata validation, and normal hooks/typechecking/publication.

Focused tests: 109 passed (103 recovery, 6 playback), with 3 existing slow recovery cases deselected. Owning real-clock ratchet: 11 passed, 3511 unrelated cases deselected. make preflight: 36 checks; explicit metadata validation: 4 checks. Normal publication hooks passed 1934 tests (103 recovery, 6 playback, 1825 lifecycle contracts), 36 preflight checks and backend typechecking with 0 errors. Exact commands and hook receipts are attached to SCA-2380.

Immediately before push, main advanced to 6ed88ea. Its live-member notes changes touch none of the four relevant test files; a read-only merge-tree against that main is clean. The single tested integration remains based on abc63. Fresh current-main merge-ref CI is left to the existing root watch. The previous 65ec hosted CI was green; new-head hosted CI belongs to the existing root watch. No prior CI result substitutes for the new head. No new reviewer or watcher is requested.

Prior integrations adopted main's landed codec and backlog repairs rather than stacking alternate fixtures/caches. Those two files are not part of this PR's authored diff. No authored production, .github, guard, allowlist, threshold, marker, skip or activation changes; no PR merge or deployment.

Product invariants affected

none

@Git-on-my-level Git-on-my-level changed the title test(backend): stabilize recovery, native codec and backlog timing test(backend): stabilize recovery, codec, backlog and playback timing Nov 15, 2026
@Git-on-my-level Git-on-my-level changed the title test(backend): stabilize recovery, codec, backlog and playback timing test(backend): make recovery admission and playback timeouts deterministic Nov 15, 2026
@Git-on-my-level Git-on-my-level changed the title test(backend): make recovery admission and playback timeouts deterministic SCA-2380: make recovery admission and playback timeouts deterministic Nov 15, 2026
@Git-on-my-level
Git-on-my-level merged commit 55b9c76 into main Nov 15, 2026
69 checks passed
@Git-on-my-level
Git-on-my-level deleted the agent/m1-studio-codex-sol/1bcea2fd0a20 branch November 15, 2026 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant