magicblock-labs / magicblock-labs/delegation-program
Verify automatic state-buffer finalization across v2 consumers
@snawaz is already working on this.
Since Sep 17, 2026.
- Dominant language
- Rust
- Stars
- 30
- Forks
- 21
- Avg merge
- 20m
- Merged PRs (30d)
- 1
Description
### Scope
`WriteStateBuffer` owns hashing and freezing the completed upload in #216. Verify that the final write freezes the buffer and later writes cannot mutate it; no separate `FinalizeStateBuffer` or seal instruction is needed.
Consumers must reject incomplete buffers and validate the buffer's account, commit id, and authority for their flow. Keep the API consistent with finalization during upload. This issue covers that integration contract, not a parallel implementation of buffer finalization.
Design: [v2 implementation notes](https://github.com/magicblock-labs/delegation-program/blob/36e1efae94660460fdc6d823afb1fbc4c504e8a6/mimd-0024-impl.md#state-buffer-plan).
### Outcome
Use automatic state-buffer finalization consistently across the v2 API and consuming instructions.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.