watch: add lock-free REOPENED ring for published/beside state tracking #214

Closed
github-bot wants to merge 1 commit from gh-pr/214/head into gh-pr/214/base
Owner

@⁠Androtim on GitHub · 2026-11-30 06:37 UTC · original
Androtim:feat/iter211-watch-reopened-ring → main · +127 −2 · 1 files · 1 commits · closed without merging

Summary

  • Replace PUBLISHED and BESIDE raw Bits globals in crates/victory-gpu/src/watch.rs with Noted(Bits, bool) wrappers that record reopening events (PUBLISHED.clear and BESIDE.set) into a lock-free sequence ring (REOPENED / REOPENED_SEQ).
  • Add reopened_seq(), reopened_since(since), and published_now(start, end) query helpers so closed-list range certification can verify whether any block reopened since close without walking or re-asking the full journal.
  • Add unit tests reopened_ring_records_published_clears_and_beside_sets_in_sorted_order and reopened_since_returns_none_when_ring_overflows.

Verification

  • cargo run -p xtask -- policy (asset policy: 311 files ok)
  • cargo test -p victory-gpu --lib watch:: -- --test-threads=1 (54 passed; 0 failed)
  • cargo test -p victory-gpu --features diagnostics --lib watch:: -- --test-threads=1 (57 passed; 0 failed)
  • cargo clippy --workspace --all-targets -- -D warnings (exit 0)
  • cargo clippy --workspace --all-targets --features diagnostics -- -D warnings (exit 0)
**@⁠Androtim** on GitHub · 2026-11-30 06:37 UTC · [original](https://github.com/Androtim/MiniVI/pull/214) `Androtim:feat/iter211-watch-reopened-ring` → `main` · +127 −2 · 1 files · 1 commits · closed without merging ## Summary - Replace `PUBLISHED` and `BESIDE` raw `Bits` globals in `crates/victory-gpu/src/watch.rs` with `Noted(Bits, bool)` wrappers that record reopening events (`PUBLISHED.clear` and `BESIDE.set`) into a lock-free sequence ring (`REOPENED` / `REOPENED_SEQ`). - Add `reopened_seq()`, `reopened_since(since)`, and `published_now(start, end)` query helpers so closed-list range certification can verify whether any block reopened since close without walking or re-asking the full journal. - Add unit tests `reopened_ring_records_published_clears_and_beside_sets_in_sorted_order` and `reopened_since_returns_none_when_ring_overflows`. ## Verification - `cargo run -p xtask -- policy` (`asset policy: 311 files ok`) - `cargo test -p victory-gpu --lib watch:: -- --test-threads=1` (`54 passed; 0 failed`) - `cargo test -p victory-gpu --features diagnostics --lib watch:: -- --test-threads=1` (`57 passed; 0 failed`) - `cargo clippy --workspace --all-targets -- -D warnings` (exit 0) - `cargo clippy --workspace --all-targets --features diagnostics -- -D warnings` (exit 0)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 20:19:00 +00:00
github-bot closed this pull request 2026-12-01 20:19:00 +00:00
Author
Owner

@⁠Androtim on GitHub · 2026-11-30 08:12 UTC · original

GitHub reports merge conflicts against current \main\ (\98c171). Please rebase on \main\ so we can test it in the next wave.

**@⁠Androtim** on GitHub · 2026-11-30 08:12 UTC · [original](https://github.com/Androtim/MiniVI/pull/214#issuecomment-7272611444) GitHub reports merge conflicts against current \main\ (\98c171\). Please rebase on \main\ so we can test it in the next wave.
Author
Owner

@⁠Androtim on GitHub · 2026-11-30 10:02 UTC · original

Automated triage for the maintainers (not an approval).

Verdict: needs-rebase · CI (check): passing

This PR no longer merges cleanly into main.

To change the verdict: Rebase onto current main and resolve conflicts; CI and triage will run again automatically.


Generated with Antigravity CLI (agy).

**@⁠Androtim** on GitHub · 2026-11-30 10:02 UTC · [original](https://github.com/Androtim/MiniVI/pull/214#issuecomment-7275043559) <!-- minivi-triage v1 head=ffeb2be7e1d693ba4de11c47e977b170eb1cda28 verdict=needs-rebase ci=passing at=2026-11-30T10:03:29Z --> Automated triage for the maintainers (not an approval). **Verdict:** `needs-rebase` · **CI (`check`):** `passing` This PR no longer merges cleanly into `main`. **To change the verdict:** Rebase onto current `main` and resolve conflicts; CI and triage will run again automatically. --- _Generated with Antigravity CLI (`agy`)._
Author
Owner

@⁠Androtim on GitHub · 2026-12-01 01:39 UTC · original

Closing stale/conflicted backlog PR per #276. Superseded by the active root-architecture replacement pillars with isolated plain --release A/B verification.

**@⁠Androtim** on GitHub · 2026-12-01 01:39 UTC · [original](https://github.com/Androtim/MiniVI/pull/214#issuecomment-7297744037) Closing stale/conflicted backlog PR per #276. Superseded by the active root-architecture replacement pillars with isolated plain --release A/B verification.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/Androtim--MiniVI!214
No description provided.