Skip to content

chore(beads): reopen cold replay amplification - #2650

Merged
Sinity merged 1 commit into
masterfrom
feature/docs/reopen-cold-replay-amplification
Jul 10, 2026
Merged

Sinity merged 1 commit into
masterfrom
feature/docs/reopen-cold-replay-amplification

Conversation

@Sinity

@Sinity Sinity commented Jul 10, 2026 •

Copy link
Copy Markdown
Owner

Summary

Reopens polylogue-3wb after the live v30 cold rebuild falsified its prior closure premise.

Problem

The prior closure proved an already-populated archive had no missing-materialization backlog. It did not prove a cold rebuild avoids replaying every historical session snapshot. The v30 retry selected 17,814 rows / 47.16 GiB and exposed repeated expensive parses and full replacements, including a measured 349-second full_replace.delete_messages operation.

Solution

Record a residual proof-carrying replay-selection design:

  • exhaustive replay remains the reference;
  • only cryptographically proven, prefix-monotone rows in the same origin/path/non-append context may be covered;
  • append, bundle/split, divergent, truncated, tied, failed, missing, and unsupported evidence stays exhaustive;
  • optimized and exhaustive logical indexes must agree through the hjwr differential;
  • mutation checks must fail when a coverage guard or diff table is removed.

The bead is related to hjwr, 1xc.8, and 20d.15 rather than duplicating their scopes.

Verification

  • live py-spy: writer active in _replace_full_session_messages_and_blocks, parse workers idle
  • measured rebuild logs: 408-422 MiB changed=0 parses and 15-349 second full replacements
  • .agent/scripts/bd-graph-lint -> no violations
  • bd dep cycles -> no cycles
  • devtools verify --quick -> 13/13, run 20260710T134048Z-quick-1131134-3c961296

Summary by CodeRabbit

  • Documentation
    • Updated an internal issue with new cold-rebuild performance findings.
    • Added evidence about historical replay behavior, row sizes, parsing, writing, and batch growth.
    • Refined rebuild coverage and acceptance criteria to emphasize correctness and explainable performance.

Problem: the prior closure proved convergence after an already-populated
archive, while the v30 cold rebuild still reparses and fully replaces large
historical session snapshots.

What changed: reopen 3wb with measured v30 evidence, a proof-carrying
prefix-coverage design, anti-vacuity acceptance criteria, and relations to the
deterministic differential, rebuild-safety, and throughput programs.

Verification: the branch changes exactly the polylogue-3wb JSONL record; the
live replay stack and timings substantiate the residual scope.

Co-Authored-By: Codex <[email protected]>
@coderabbitai

coderabbitai Bot commented Jul 10, 2026 •

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 2da125cc-3c8b-4ad4-8382-18db16e5022f

📥 Commits

Reviewing files that changed from the base of the PR and between 3f0e786 and 4568fb2.

📒 Files selected for processing (1)
  • .beads/issues.jsonl

📝 Walkthrough

Walkthrough

The issue polylogue-3wb is reopened after cold v30 rebuild evidence showed that exhaustive historical replay does not preserve the previously reported bounded tail latency. Its notes now include measurements and revised coverage criteria.

Changes

Cold-rebuild investigation

Layer / File(s) Summary
Issue status and evidence
.beads/issues.jsonl
Reopens polylogue-3wb, removes its prior close reason, and records new replay evidence plus revised residual design and acceptance criteria.

Estimated code review effort: 1 (Trivial) | ~2 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title is concise and matches the main change: reopening the cold replay amplification issue.
Description check ✅ Passed The description covers Summary, Problem, Solution, and Verification with concrete details and matches the template well.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/docs/reopen-cold-replay-amplification

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@Sinity
Sinity merged commit 6cee873 into master Jul 10, 2026
13 checks passed
@Sinity
Sinity deleted the feature/docs/reopen-cold-replay-amplification branch July 10, 2026 13:46
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