Repository navigation
fix(spec): unlock the archive lock before its file closes - #91
runewright[bot] wants to merge 3 commits into
Approved
- Eligibility · Permissive mode · Add a custom policy
- Correctness
Note
More information about how approvability works can be found in our Help Center.
Details
Eligibility
The change explicitly releases the archive lock when its existing scope ends, preventing inherited descriptor copies from delaying retries. Transaction locking scope and archive data operations remain unchanged, with a focused regression test added.
Additional Thinking
Code
Introduces a HeldLock wrapper that explicitly unlocks the spec archive lock on drop before closing its file. Both transaction acquisition and read-only health diagnosis retain the existing lock scope. Adds a Unix duplicate-descriptor regression test and changelog entry; journal, recovery, and archive mutation behavior are unchanged.
Review Context
The author does not own the three changed files; ownership is supporting context, not an approval prerequisite. No unresolved review comments or correctness findings were supplied. Both convention-agent results are unknown, with no customer requirement making them prerequisites. The added regression test was inspected; no execution result was supplied.
Verdict
This narrowly changes lock release at the existing lifetime boundary, preventing inherited descriptor copies from extending contention after a transaction ends. Acquisition, mutual exclusion during transactions, permanent lock-file handling, and persistent-data operations remain unchanged. No obvious material risk requires human judgment.
Notes:
@Runewright isn't a code owner for 3 files:
• CHANGELOG.md (owned by N4M3Z)
• rune-docs/src/spec/transaction/tests.rs (owned by N4M3Z)
• rune-docs/src/spec/transaction/mod.rs (owned by N4M3Z)
Agent Credits: 30 credits
Approvability runs at a flat rate of 30 credits whenever the agent is asked for a verdict.