Repository navigation
fix: instant wallet first call names balance with new:true - #8
Open
eminogrande wants to merge 2 commits into
Open
eminogrande wants to merge 2 commits into
eminogrande wants to merge 2 commits into
Conversation
Live 2026-10-28 at 9513a44: the first real instant-wallet call failed with "pay the network fee ... same request_id" even though creation takes no request id. Cause: operator_admission_budget_exhausted was mapped twice and the later payment sentence overwrote the creation sentence at :81. - drop the duplicate reason key; creation keeps "No new wallet can be opened right now. Existing wallets keep working. Try again later." - tool description, balance action, new and wallet_key state the instant first call: balance with new:true, no wallet_key, no session, no signup; wallet_key always only after the first answer - bare balance (askFirst) names that exact call instead of asking "new or existing?" Text only: no create action, no auto-create, no custody or capacity change. check-wallet-ask asserts the single mapping and both wordings; verified by removing the duplicate and the description sentence in turn.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Live 2026-10-28 at
9513a44339cd(wallet.paymentrequired.com,service_mode: wallet), the single real instant-wallet call returned "The wallet service cannot pay the network fee right now. Try again later with the same request_id." — but creation has no request id to repeat. Diagnosis:wallet-agent-diagnosis/VERDICT.md.Cause
src/mcp-wallet-tool.mjsmappedoperator_admission_budget_exhaustedtwice (:81correct creation text,:91payment retry text). The later key wins, so the creation mapper at:261-266emitted the payment sentence. The schema around:124-141also said "Send wallet_key always" to a first-time caller with no key, and never said thatnew:trueonbalanceis the instant first call; tools-only models asked "new or existing?" instead of calling it.Change (text only)
balanceaction,newandwallet_keystate the exact first call:balancewithnew:true, nowallet_key, no session, no signup;wallet_keyalways only after the first answerbalance(askFirst) names that exact call (src/mcp-wallet-merge.mjs:37)scripts/check-wallet-ask.mjsasserts one mapping, the creation sentence withoutrequest_id, and both wordingsNo
createaction, no auto-create on bare balance, no custody/capacity/behavior change.Verification
npm run checkoknpm run check:askok (wallet ask + settlement fallback)npm run check:ask:regressionok (three negative controls; restored candidate passes)Base
mainalready carries9513a44as squash6cf518e; this branch is cut from the exact live SHA. Open PR #6 also editssrc/mcp-wallet-tool.mjs(lost-key answer) but not these lines.