charge-verify
Verify a returned payment credential and produce provider-side charge receipt evidence.
- License 许可
- MIT
- 所属仓库
- ZachDreamZ/runx
- 最近更新
- 2026-07-17
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- charge-verify
- runx
- { "category": "payments" }
- description
- Verify a returned payment credential and produce provider-side charge receipt evidence.
02 资源文件 1
- 参考文档X.yaml4.4 KB
03 SKILL.md 正文
Charge Verify
Verify a returned payment credential against a priced provider-side challenge.
This skill models the verification step before a provider forwards a paid MCP operation. It selects the settlement-family verifier from profile inputs, checks idempotency evidence, emits a settlement proof reference, and exposes the receipt evidence that a future runtime must seal before forwarding. It does not set prices, issue challenges, receive raw merchant credentials, or forward the upstream tool call.
What this skill does
- Bind to the priced challenge. Confirm that the returned credential
belongs to the exact
charge_price_packet, challenge id, settlement family, counterparty, amount, currency, expiry, and idempotency key. - Run the family verifier. Select the verifier named by the settlement family and verify the credential or proof reference under the admitted provider-side payment authority.
- Check replay and expiry. Reject stale, reused, mismatched, or cross-family credentials before any provider forwarding can happen.
- Produce receipt evidence. Return a redacted settlement proof reference, verification status, idempotency state, and the sealed receipt ref required before forwarding.
- Stop on ambiguity. Return
escalatedwhen the credential family, challenge binding, idempotency state, proof fields, or sealing state cannot be established.
It does not set a price, issue a challenge, widen an authority grant, execute a refund, settle a dispute, or call the paid upstream tool.
When to use this skill
- A provider has already priced a paid MCP operation, issued a challenge, and received a caller credential.
- A test harness needs to prove that payment evidence would seal before a paid provider forwards work.
- A receipt reviewer needs the redacted proof fields that explain why a provider-side charge was accepted or rejected.
When not to use this skill
- To determine what the provider should charge. Use
charge-price. - To accept a credential for a different amount, family, counterparty, operation, or challenge id.
- To inspect raw merchant secrets or print raw credentials into a receipt.
- To recover or refund a failed charge. Verification can report recovery hints, but it does not perform recovery.
Procedure
- Validate all required inputs are present: price packet, challenge packet, returned credential, priced authority, verifier capability, settlement family, and idempotency material.
- Compare the challenge packet against the price packet. Amount, currency, operation, counterparty, expiry, and settlement family must match exactly.
- Confirm the priced payment authority covers the challenged amount and does not allow a broader family, amount, operation, or counterparty than the price requires.
- Confirm the credential claims the same challenge id and idempotency key. A reused key is valid only when the replay policy explicitly declares the prior verification equivalent and sealed.
- Select the verifier through
verify_capability_ref; never infer a verifier from credential shape alone. - Verify the credential with family-specific code and normalize the result to a
redacted
settlement_proof. - Require a sealed receipt ref before returning a forwardable
sealedresult. - Emit redaction notes for every omitted secret-bearing field.
Edge cases and stop conditions
- Amount, currency, operation, or counterparty mismatch: return
escalated; do not attempt a partial acceptance. - Expired challenge: return
escalatedwith recovery hintchallenge_expired. - Replay with unknown prior state: return
escalated; replay is acceptable only when the idempotency policy proves the previous result sealed equivalently. - Verifier capability absent or wrong family: return
escalated; do not fall back to a generic verifier. - Raw secret-bearing credential field in output: redact it and record the
redaction. If the proof cannot be represented safely, return
escalated. - Receipt not sealed: return
escalatedwith recovery hintseal_required; provider forwarding must wait.
Output schema (charge_verification)
decision: sealed | denied | escalated
verification_result:
status: accepted | rejected | replayed | expired | ambiguous
settlement_family: string
challenge_id: string
idempotency_key: string
settlement_proof:
proof_ref: string
family: string
amount: string
currency: string
counterparty: string | null
sealed_receipt_ref: string | null
redactions:
- field: string
reason: string
recovery_hint: sealed | denied | reversal_required | challenge_expired | seal_required | operator_review
findings:
- id: string
severity: error | warning | info
message: string
A sealed decision requires verification_result.status: accepted or
replayed, a non-null sealed_receipt_ref, and no error findings.
Worked example
A caller returns a Stripe SPT credential for challenge ch_test_01. The price
packet, challenge packet, priced authority, credential claim, and idempotency
key all bind to crm.enrich_lead, 0.08 USD, account acct_test_123, and
family stripe-spt. The Stripe verifier accepts the credential and the runtime
seals receipt rcpt_abc. The skill returns decision: sealed, a redacted
settlement_proof.proof_ref, the receipt ref, and redaction notes for omitted
credential material.
If the credential is for 0.10 USD or a different challenge id, the skill
returns decision: escalated; it does not downscope the credential or forward
the provider call.
Inputs
charge_price_packet(required): output fromcharge-price.charge_challenge_packet(required): output fromcharge-challenge.returned_credential(required): caller-returned payment credential.priced_payment_authority(required): admitted provider-side payment term.verify_capability_ref(required): single-use verification capability ref.settlement_family(required): selected settlement family.idempotency(required): challenge idempotency key and replay policy.
04 同仓库更多 Skills
zapier-handoff
Validate a runx execution context and hand off a governed payload to a Zapier Catch Hook with scoped auth, idempotency, and receipt expectations.
x402-pay
Execute a governed x402 payment by delegating to the canonical spend flow with the x402 runtime path selected.
work-plan
Decompose a build objective into governed runx execution steps.
web-fetch
Fetch and extract one web source within an explicit allowlist, returning the content by digest with full provenance.
weather-forecast
Normalize provider weather evidence into an action-safe forecast packet with provenance, uncertainty, and stop conditions for downstream agents.
vuln-triage
Triage dependency or ecosystem vulnerability risk into remediation and advisory packets, grounding on verified CVE evidence when it is supplied.