Skip to content

Stabilize store fixtures and expose replay worker errors - #1340

Merged
AnthonyRonning merged 4 commits into
masterfrom
codex-winstore-maple
Oct 28, 2026
Merged

AnthonyRonning merged 4 commits into
masterfrom
codex-winstore-maple

Conversation

@AnthonyRonning

@AnthonyRonning AnthonyRonning commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

The host snapshot fixture recursively read the live SQLite WAL-index (maple.db-shm), whose Windows byte-range locks can reject those reads with OS33. It also took its physical baseline while the fixture's seed write could still be checkpointed. This change drains that seed checkpoint, reopens the same store, and excludes only its exact WAL-index path. Main database, WAL and every other source file still undergo exact byte comparison; every refusal/no-drain/runtime-state assertion remains.

The Linux agent-test failure on this PR exposed a separate owner-lock fixture assumption: dropping its File was immediately followed by a free-lock assertion. The fixture now explicitly calls owner.unlock().unwrap() before dropping it, retaining all missing-path, held-lock and released-lock checks. Linux flock locks follow the open-file description, so duplicated/inherited descriptors can retain a lock after the original descriptor closes. An isolated local duplicate-descriptor experiment demonstrated that distinction and explicit-unlock behavior; the failed CI log does not establish whether that mechanism caused the historical occurrence. Production locking and conservative availability probes are unchanged.

The original replay capture failure is not fixed or explained here. Its Disconnected hid the worker's actual result. If the hook is not entered, this change releases a late hook, joins the worker, and reports its actual error or resumes its original panic. Every normal-path assertion and deadline remains. No replay, storage, ACL, signature or resource-budget behavior changes.

Failure evidence:

  • Original Windows snapshot OS33 and replay hook failure.
  • PR1340 Linux owner-proof failure, synthetic checkout 317b9e86 / PR head 2b406b34: the final free-lock assertion returned false. That test was unchanged from master. Its failed run/log are preserved; no CI rerun was used to conceal it.

Validation:

  • Diagnostic-source Windows full-suite runs 40622387117 (ddb3224b) and 40629115233 (1096bdc9) both passed on the 4-core runner with ordinary parallel workspace tests, 20 complete host iterations and 80 replay subcases per run. These are diagnostic-source results, not current-head native CI.
  • The second diagnostic checkpoint observed 7 peak key pages so far and 0 VirtualLock failures; it was not the final process peak. The memory-lock hypothesis remains unproven. Temporary stress loops, stage tracking and key telemetry are removed; store/keys.rs and store/replay.rs match master.
  • Formatting, the exact owner-proof test and the normal selected Agent hook (ci-lint + ci-test, all strict Clippy feature sets and workspace tests) passed on macOS at 0fbd77fb. The branch was then rebased onto CI/docs-only master c7000803; all edited/tested files are byte-identical. This is local source validation, not Linux/Windows native proof.
  • ci:windows remains applied. Final rebased head 8c2d77e1 CI is run 40639164186; its result is pending.

This remains draft while the original replay cause is investigated. No retries, sleeps, ignored tests, Windows skips, relaxed assertions, CI/release workflow changes or automatic merge are included.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

@AnthonyRonning AnthonyRonning added the ci:windows Run Windows checks on this PR label Oct 28, 2026
@AnthonyRonning AnthonyRonning changed the title Fix store snapshot fixture and expose replay worker errors Stabilize store fixtures and expose replay worker errors Oct 28, 2026
@AnthonyRonning
AnthonyRonning marked this pull request as ready for review October 28, 2026 06:32
@AnthonyRonning
AnthonyRonning merged commit 62fad84 into master Oct 28, 2026
23 checks passed
@AnthonyRonning
AnthonyRonning deleted the codex-winstore-maple branch October 28, 2026 06:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:windows Run Windows checks on this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant