Repository navigation
wallet: preview unilateral exits across selected proofs - #1653
Conversation
|
/gateway review Review the read-only preview contract. Trace shared transactions, amount and confirmation eligibility, dust and asset fees, the suggested deposit and the SDK on an older daemon. Check for an observable write through an ordinary preview. Report material correctness issues reachable through the new RPC. The execution queue and signed fee cap are separate slices. |
|
❌ gateway review failed: code-review skill failed across all auth modes: You've hit your org's monthly spend limit · ask your admin to raise it at https://claude.ai/admin-settings/usage · your weekly limit resets Nov 29, 6am (UTC) See workflow logs for details. |
e8e0b2a to
fe80208
Compare
|
Claude: Verdict: approve. No merge blockers. The advisory fix is correct. A cooperative round commitment no longer counts as an admission refusal, and the coin is still quoted. Advisory fix (
The same coin stays quotable
The warning crosses RPC and SDK
Tests
Non-blocking follow-up
Good to merge. |
fe80208 to
5f12a87
Compare
|
/gateway review Please review the current commit 5f12a87 against its PR base. Focus on reachable ownership, confirmation gating, and wallet quote correctness within this layer. |
|
❌ gateway review failed: code-review skill failed across all auth modes: You've hit your org's monthly spend limit · ask your admin to raise it at https://claude.ai/admin-settings/usage · your weekly limit resets Nov 29, 6am (UTC) See workflow logs for details. |
|
Claude: I found no blocking issues in this layer. The preview is read-only, its quote is never too low for a fresh selection, and the SDK mapping is correct. Tests were not run here because running them needed approval; I reviewed by reading the code and the callers. What I checked
Follow-ups (not blocking)
|
5f12a87 to
80fd194
Compare
|
/gateway review Re-review 80fd194 against its immediate parent. Check confirmed-spender ownership and per-entry admission within the scope of this PR. Report concrete blockers and distinguish them from follow-ups. |
|
❌ gateway review failed: code-review skill failed across all auth modes: You've hit your org's monthly spend limit · ask your admin to raise it at https://claude.ai/admin-settings/usage · your weekly limit resets Nov 29, 6am (UTC) See workflow logs for details. |
|
Claude: I found no material defects in #1653 at Here is what I traced, in the three areas you asked about. Per-entry refusals
Viable aggregate
Active-job funding
I could not run the new tests: the test commands were blocked by the permission prompt. The verdict comes from reading the code. |
80fd194 to
e88a656
Compare
|
/gateway review Review e88a656 against its immediate parent. Check confirmed-spender recovery and the wallet preview semantics in their respective PRs. |
|
❌ gateway review failed: code-review skill failed across all auth modes: You've hit your org's monthly spend limit · ask your admin to raise it at https://claude.ai/admin-settings/usage · your weekly limit resets Nov 29, 6am (UTC) See workflow logs for details. |
|
Claude: No merge blockers. e88a656 is ready to merge. What changed since 80fd194: formatting only, in Per-entry error partition (
Aggregation (
Documented semantics (
Not blocking, optional follow-up: the handler has no test where some targets are refused and some are viable in one request. The unknown-target test and the quote tests cover each half separately. As requested, I made no edits, ran no tests, and posted nothing. |
e88a656 to
0e35630
Compare
Quote each shared recovery transaction once and project confirmed wallet change across later packages. Expose the selection and per-target status through a read-only wallet RPC so clients can preview without allocating an address or admitting an exit.
0e35630 to
db4fcb0
Compare
A wallet can hold one confirmed output with enough value to pay for several unilateral exits. The existing exit plan allocates distinct coins across the selection and can derive a funding address while preparing its answer. A mobile client needs to price a selection before asking the user to spend.
Add a read-only wallet RPC,
PreviewUnilateralExit. It resolves selected proofs, prices each distinct recovery transaction once, and reports the network fee, wallet-funded portion and estimated transaction count. It tries separate confirmed inputs first and projects change reuse after confirmation. A shortfall produces one estimated deposit amount. A missing target, unusable proof, or economic refusal stays in its original position with an admission error. The remaining viable targets determine fees and the projected deposit. Face value includes every selected descriptor whose amount is known. An active job contributes its full proof cost. Change reuse describes the funding source and can coincide with an existing parent confirmation wait.The preview creates no exit job or wallet reservation. Existing exit commands keep their current admission behavior. The SDK propagates an older server's unsupported-method error. Approval, the enforceable spending limit and optional split pricing are subsequent parts of #1651.
The Go quote tests cover shared ancestry, distinct coins, confirmed change and the change dust boundary. The SDK test covers read-only compatibility. A Bitcoin Core regtest with an LND wallet previewed two real exits twice, observed a deposit requirement, funded one coin and observed a change-reuse estimate. Neither target had an exit job after either preview.
A Bitcoin Core regtest on LND, lwwallet and btcwallet previewed a missing outpoint followed by a viable two-tree target. The first entry retained its admission error. The second remained viable. Selected amount, estimated transaction count, network fee and deposit matched the viable target's standalone quote.