docs+test: reservation release completeness (M-09) - #1095
Conversation
Add the M-09 release-completeness docs: an upgrade/activation runbook (Bridge and RedemptionWatchtower proxy procedures, BridgeGovernance replacement plan, deploy-inert-then-activate sequencing, vault fee reserve operations, keep-core follow-up, pre-audit checklist) and a frozen parameter/economic spec that pins every governable value with an explicit governance sign-off ledger, documents the reserved-fraction target as an accepted off-chain operating rule, and records the open economics items (senior-liquidity option pricing, updateFees delay).
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
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. Comment |
The root code-format CI job runs prettier 2.3.2 (yarn.lock pin), whose markdown line-wrap differs from newer 2.8.x.
Re-run adversarial review — settlement class resolvedA four-track adversarial re-review (mirroring the original Codex pass, max effort, read-only) re-verified every finding against the full stack and hunted for regressions and new bugs in each class. All fourteen findings (C-01, H-01…H-07, M-01…M-06) are confirmed genuinely closed, and the delegatecall router / storage-append architecture is sound. One new Medium was found and fixed during the review; the rest are low-severity notes. Findings verified closed (with the mechanism that closes each)
Architecture: storage parity real ( New Medium — found and fixed in this reviewAcceptance late-settlement reserved-capacity leak (independently surfaced by three of the four tracks). The same review also hardened the late credit to route through the deposit's immutable revealed vault (not the live Residual low-severity notes (documented, not blocking)
VerdictThe settlement state-machine class the original review flagged as not audit-ready is resolved: the single-phase lifecycle is now a two-phase, nonce-bound authorize-then-prove machine with terminal, late-proof-safe settlement records and a claim-equals-anchor backing model. No exploitable High or Critical remains across the stack. |
…1095-propagate-pr1094
…1095-propagate-pr1094
Stacked on #1094 (guards) — top of the settlement-rework stack. Closes the M-09 release-completeness items.
Contents
docs/utxo-reservation-release-runbook.md): the deploy-inert-then-activate sequencing (reservations never go live on a temporary storage layout), the transparent-proxy upgrade procedures for the Bridge (six-library link map, EIP-170 pre-flight, the upgrades-core delegatecall shim, one-timesetReservationRouter) and the RedemptionWatchtower (external-library-linking allowance, per-generation objection surface, no reinitializer), the BridgeGovernance replacement plan (it is non-upgradeable — deploy new +transferGovernance),ReservationVaultfee-reserve operations, the keep-core follow-up, and a pre-audit checklist.docs/utxo-reservation-frozen-spec.md): every governable value pinned with a sign-off ledger, the fee/backing model frozen, the reserved-fraction target documented as an accepted off-chain governance operating rule (no trustless aggregate backing figure exists on-chain), and the open economics items recorded (senior-liquidity option pricing;updateFeesgovernance-delay + initiation-fee snapshot follow-ups).Bridge.ReservationInvariants.test.ts): across accept → re-anchor → dissolve → in-kind redeem → redemption timeout → late settlement, total TBTC supply equals accounted Bitcoin backing (live anchors + dissolved-to-pool) at every quiescent point, financed fees the only supply reductions, zero uncovered fee debt.Stack status (all green: full suite + slither 0.9.0)
H-08 was fixed pre-stack. Full suite 3094 passing / 0 failing at the stack tip.
Re-review
A re-run of the external (Codex) review confirming the settlement class is resolved will be posted as a comment on this PR once complete.