Skip to content

Fix: prune_batches leaves PrunedUpTo pointing past batches it did not actually remove (Auto-Generated) - #211

Merged
wagmiiii merged 4 commits into
accensa:mainfrom
ndyugwu:driptide/issue-189-1787770270489
Aug 30, 2026
Merged

Fix: prune_batches leaves PrunedUpTo pointing past batches it did not actually remove (Auto-Generated)#211
wagmiiii merged 4 commits into
accensa:mainfrom
ndyugwu:driptide/issue-189-1787770270489

Conversation

@ndyugwu

@ndyugwu ndyugwu commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Closes #189

This pull request was generated automatically and scoped strictly to issue #189.

Changes

Fix prune_batches in ReceiptAnchor to avoid incrementing PrunedUpTo past missing or archived batch entries without deleting them. State the PrunedUpTo invariant clearly in doc comments and SECURITY_MODEL.md, emit an observable event/log when a gap is encountered, and ensure restored batches can never end up below PrunedUpTo by halting pruning or handling missing entries safely. Add test coverage for archived gaps and invariants.

Verification

⚠️ Not verified locally (no build system detected, or the required toolchain isn't installed on the worker). GitHub CI is the source of truth — please check the CI status on this PR before merging.

Linked with Closes #189 so the Drips Wave bot resolves the issue on merge.

@drips-wave

drips-wave Bot commented Aug 26, 2026

Copy link
Copy Markdown

@ndyugwu Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@mergekeeper

mergekeeper Bot commented Aug 26, 2026

Copy link
Copy Markdown

MergeKeeper review unavailable

AI provider review response did not contain valid JSON

No approval or merge action was taken.

@wagmiiii
wagmiiii merged commit 47e9ade into accensa:main Aug 30, 2026
@mergekeeper

mergekeeper Bot commented Aug 30, 2026

Copy link
Copy Markdown

Needs review

Linked to #189, but the diff does not match the issue scope.

The PR removes critical implementation logic from prune_batches and modifies unrelated type signatures like BatchRecord and anchor_batch.

Reviewed commit: 4511463495a826baa556c1fde7e30eb47f407150.

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.

prune_batches leaves PrunedUpTo pointing past batches it did not actually remove

2 participants