Dispute response
Prepare and explicitly file an evidence-bound payment dispute response using native receipt proof, approval, provider execution, and independent readback.
You’re reading version sha-9ddb576e4dd5. Go to the current version
Overview
Turn one provider dispute event and the exact Runx payment history behind it into a reviewable response posture. A good dispute packet does not merely tell a persuasive story: it proves which charge and refund receipts were consulted, which external evidence may be cited, what remains unknown, and why the operator should accept, contest, review, or acknowledge an existing refund.
The default file-response runner prepares the evidence-bound response, files
it through the selected configured provider after one exact approval, and
requires independent readback. respond remains the explicit draft-only
runner, while file consumes an admitted prior response packet without
repeating the evidence work. No runner closes a dispute, moves money, or
invents provider acceptance.
In the manual
Runner
respond
Declared by its execution profile. Read the profile
SKILL.md
Dispute Respond
Turn one provider dispute event and the exact Runx payment history behind it into a reviewable response posture. A good dispute packet does not merely tell a persuasive story: it proves which charge and refund receipts were consulted, which external evidence may be cited, what remains unknown, and why the operator should accept, contest, review, or acknowledge an existing refund.
The default file-response runner prepares the evidence-bound response, files
it through the selected configured provider after one exact approval, and
requires independent readback. respond remains the explicit draft-only
runner, while file consumes an admitted prior response packet without
repeating the evidence work. No runner closes a dispute, moves money, or
invents provider acceptance.
When to use it
Use dispute-respond after a provider has created a bounded dispute event and
the original charge should exist in Runx receipt history. Use refund when the
operator chooses a new reversal rather than a dispute response. If the original
settlement cannot be proven, gather that evidence before contesting.
How it works
- Normalize provider, dispute, charge, amount, currency, reason, and optional response deadline.
- Resolve the exact original charge and every prior refund by content-addressed Runx receipt id. Caller-supplied receipt rows or summary projections are not accepted as substitutes.
- Require complete signature verification, a hosted or CI issuer, and redacted native detail for each linked receipt tree. A receipt signed by a runx home's own local key proves only that operator's word.
- Admit external evidence only as bounded ref, SHA-256 digest, kind, and summary. Raw provider payloads and credentials remain outside the packet.
- Draft one posture using only admitted receipt ids and evidence refs.
- Deterministic finalization rejects invented citations, effect claims, and any completion state the evidence cannot support.
- When the operator deliberately invokes
file, Runx validates the unchanged ready packet, binds it to a SHA-256 digest, obtains approval, and calls the configured provider under the narrowdispute.filescope. - Runx projects only the filing reference, dispute id, request digest, and
status from the provider result, then performs an independent
dispute.readand requires those fields to match before reporting success.
A contest posture must cite delivery or consent evidence. A verified prior
refund forces refund_already_sent or operator_review; the model cannot ignore
it to produce a stronger contest narrative.
Inputs and result
The input includes the normalized dispute event, exact original receipt id, prior refund ids, and bounded external evidence. The result contains the posture, response summary, cited receipt ids and evidence refs, open questions, validation, and an exact provider-filing handoff for later review.
ready_for_review means only that the packet is complete enough for an
operator. The preparation result always reports filing.status: not_filed,
provider_status: not_called, and approval_status: not_requested.
Use the named file runner only after reviewing that packet. Supply the exact
packet, the configured provider name, and one stable idempotency key for that
filing. Runx injects the key into the provider request, rejects a conflicting
nested key, refuses a packet whose decision or filing state has drifted, and
does not accept the mutation response as proof by itself. A successful run must
also return matching dispute.read evidence. Provider credentials remain in
the configured adapter boundary; they never belong in skill inputs or output.
Stop conditions
- Return
needs_more_evidencefor missing, invalid, locally signed, or incompletely verified receipt trees. - Refuse caller-authored receipt detail, raw provider evidence, credentials, or citations not present in the admitted set.
- Do not contest without evidence of delivery, consent, or the provider-specific fact on which the response depends.
- Do not file a packet that is incomplete, failed validation, already marked as filed, or different from the packet approved by the operator.
- Do not claim filing from the mutation response alone. Require the independent provider readback, and do not equate a filed response with dispute acceptance, closure, settlement, or a refund.
Example
A dispute alleges an unrecognized charge. Native history proves the charge but
contains no consent evidence. The packet may recommend operator_review and
name the missing evidence; it should not contest by inference. If a verified
refund receipt already covers the amount, the posture becomes
refund_already_sent and cites that exact receipt. If the operator later invokes
file, the approved packet—not a rewritten summary—is what reaches the provider,
and matching provider readback is the completion proof.
Agent task contract
dispute-response-draft
Choose accept, contest, refund_already_sent, needs_more_evidence, or
operator_review from the admitted dispute, evidence refs, and native redacted
receipt detail. Cite only exact admitted ids and refs. Never claim filing,
provider acceptance, closure, settlement, or a refund not proven by the packet.
Published execution profile
The execution profile published with sha-9ddb576e4dd5, shown as its exact bytes.
| Runner |
|
|---|---|
| Profile digest | sha256:788b8c5d2b3971cf3d950f3a782f1027c02bba13376ea0ee6572905d0821389b |
skill: dispute-respond
version: "0.6.4"
catalog:
kind: graph
audience: operator
visibility: public
role: canonical
execution: read
completion: runtime_receipt
approval: none
category: payments
input_definitions:
dispute_event:
type: object
required: true
description: Normalized provider dispute event with no raw provider fields.
schema:
required: [dispute_id, provider, provider_charge_ref, amount_minor, currency, reason_code]
additionalProperties: false
properties:
dispute_id: { type: string, minLength: 1, maxLength: 256, pattern: '^\S+$' }
provider: { type: string, minLength: 1, maxLength: 64, pattern: '^\S+$' }
provider_charge_ref: { type: string, minLength: 1, maxLength: 256, pattern: '^\S+$' }
amount_minor: { type: integer, minimum: 1 }
currency: { type: string, pattern: '^[A-Z]{3}$' }
reason_code: { type: string, minLength: 1, maxLength: 128, pattern: '^\S+$' }
response_due_at: { type: string, format: date-time }
receipt_ids:
type: array
required: false
description: Up to 100 unique opaque Runx receipt ids for prior refunds.
schema:
maxItems: 100
uniqueItems: true
items: { type: string, minLength: 1, maxLength: 256, pattern: '^\S+$' }
evidence_refs:
type: array
required: false
description: Up to 100 digest-bound evidence references supporting the response.
schema:
maxItems: 100
items:
type: object
required: [ref, digest, kind, summary]
additionalProperties: false
properties:
ref: { type: string, minLength: 1, maxLength: 512, pattern: '^\S+$' }
digest: { type: string, pattern: '^sha256:[0-9a-f]{64}$' }
kind: { type: string, enum: [delivery, consent, support, provider, contract, refund] }
summary: { type: string, minLength: 1, maxLength: 1000 }
runners:
respond:
default: true
inputs:
dispute_event:
definition: dispute_event
original_receipt_id:
type: string
required: true
description: Exact Runx receipt id for the original charge.
schema: { minLength: 1, maxLength: 256, pattern: '^\S+$' }
prior_refund_receipt_ids:
definition: receipt_ids
evidence_refs:
definition: evidence_refs
operator_posture:
type: string
required: false
description: Optional preferred posture; evidence remains authoritative.
schema:
enum: [accept, contest, refund_already_sent, needs_more_evidence, operator_review]
examples:
- dispute_event:
dispute_id: dp_demo_001
provider: stripe
provider_charge_ref: ch_demo_001
amount_minor: 1250
currency: USD
reason_code: product_not_received
original_receipt_id: sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
prior_refund_receipt_ids: []
evidence_refs: []
operator_posture: operator_review
result_from: [finalize, stop]
steps:
- id: admit
inputs:
dispute_event: $input.dispute_event
original_receipt_id: $input.original_receipt_id
prior_refund_receipt_ids: $input.prior_refund_receipt_ids
evidence_refs: $input.evidence_refs
operator_posture: $input.operator_posture
tool: { module: dispute-respond.mjs, export: admitDispute }
outputs:
dispute_context: object
artifacts:
named_emits:
dispute_context: dispute_context
- id: evidence
when:
value: $steps.admit.dispute_context.path
equals: review
tool: receipt.prove
scopes:
- receipt.read
inputs:
receipt_ids: $steps.admit.dispute_context.receipt_ids
- id: draft
when:
value: $steps.admit.dispute_context.path
equals: review
agent: { role: operator, task: dispute-response-draft }
outputs:
response_draft: object
inputs:
dispute_context: $steps.admit.dispute_context
receipt_proof: $steps.evidence.receipt_proof
dispute_event: $input.dispute_event
original_receipt_id: $input.original_receipt_id
prior_refund_receipt_ids: $input.prior_refund_receipt_ids
evidence_refs: $input.evidence_refs
operator_posture: $input.operator_posture
artifacts:
named_emits:
response_draft: response_draft
- id: finalize
when:
value: $steps.admit.dispute_context.path
equals: review
inputs:
dispute_context: $steps.admit.dispute_context
receipt_proof: $steps.evidence.receipt_proof
response_draft: $steps.draft.response_draft
tool: { module: dispute-respond.mjs, export: finalizeResponse }
outputs:
dispute_packet:
type: object
schema:
required: [schema, decision, dispute, posture, response_summary, linked_receipts, evidence, open_questions, receipt_verification, validation, filing, next_action]
additionalProperties: false
properties:
schema: { const: runx.payment.dispute_response.v1 }
decision: { type: string, enum: [ready_for_review, needs_more_evidence] }
dispute:
type: object
required: [dispute_id, provider, provider_charge_ref, amount_minor, currency, reason_code, response_due_at]
additionalProperties: false
properties:
dispute_id: { type: string, maxLength: 256 }
provider: { type: string, maxLength: 64 }
provider_charge_ref: { type: string, maxLength: 256 }
amount_minor: { type: [integer, 'null'], minimum: 1 }
currency: { type: string, pattern: '^(?:[A-Z]{3})?$' }
reason_code: { type: string, maxLength: 128 }
response_due_at: { type: [string, 'null'], maxLength: 64 }
posture: { type: string, enum: [accept, contest, refund_already_sent, needs_more_evidence, operator_review] }
response_summary: { type: string, maxLength: 10000 }
linked_receipts:
type: object
required: [original_charge, prior_refunds, cited]
additionalProperties: false
properties:
original_charge: { type: string, maxLength: 256 }
prior_refunds: { type: array, maxItems: 100, uniqueItems: true, items: { type: string, minLength: 1, maxLength: 256 } }
cited: { type: array, maxItems: 101, uniqueItems: true, items: { type: string, minLength: 1, maxLength: 256 } }
evidence:
type: object
required: [admitted, cited_refs]
additionalProperties: false
properties:
admitted:
type: array
maxItems: 100
items:
type: object
required: [ref, digest, kind, summary]
additionalProperties: false
properties:
ref: { type: string, minLength: 1, maxLength: 512 }
digest: { type: string, pattern: '^sha256:[0-9a-f]{64}$' }
kind: { type: string, enum: [delivery, consent, support, provider, contract, refund] }
summary: { type: string, minLength: 1, maxLength: 1000 }
cited_refs: { type: array, maxItems: 100, uniqueItems: true, items: { type: string, minLength: 1, maxLength: 512 } }
open_questions: { type: array, maxItems: 100, items: { type: string, minLength: 1, maxLength: 1000 } }
receipt_verification:
type: object
required: [matched_receipt_ids, original_receipt_status, issuer_types, tree_status]
additionalProperties: false
properties:
matched_receipt_ids: { type: array, maxItems: 101, uniqueItems: true, items: { type: string, minLength: 1, maxLength: 256 } }
original_receipt_status: { type: string, minLength: 1, maxLength: 100 }
issuer_types: { type: array, maxItems: 101, items: { type: string, enum: [local, hosted, ci] } }
tree_status: { type: string, enum: [intact, unverified] }
validation:
type: object
required: [status, findings]
additionalProperties: false
properties:
status: { type: string, enum: [pass, fail] }
findings:
type: array
maxItems: 500
items:
type: object
required: [code, message]
additionalProperties: false
properties:
code: { type: string, minLength: 1, maxLength: 200 }
message: { type: string, minLength: 1, maxLength: 4000 }
filing:
type: object
required: [provider, dispute_id, status, provider_status, approval_status]
additionalProperties: false
properties:
provider: { type: string, maxLength: 64 }
dispute_id: { type: string, maxLength: 256 }
status: { const: not_filed }
provider_status: { const: not_called }
approval_status: { const: not_requested }
next_action: { type: string, minLength: 1, maxLength: 4000 }
artifacts:
named_emits:
dispute_packet: dispute_packet
packets:
dispute_packet: runx.payment.dispute_response.v1
- id: stop
when:
value: $steps.admit.dispute_context.path
equals: stop
inputs:
dispute_context: $steps.admit.dispute_context
tool: { module: dispute-respond.mjs, export: finalizeResponse }
outputs:
dispute_packet: object
artifacts:
named_emits:
dispute_packet: dispute_packet
packets:
dispute_packet: runx.payment.dispute_response.v1
harness:
files: [fixtures/support/composed.graph]
cases: []
Published package and test evidence.
This exact version passed its recorded harness run: 3 checks passed · 0 failed.
Test result
| Harness result | Passed |
|---|---|
| Tested version | sha-9ddb576e4dd5 |
| Recorded result | 3 checks passed · 0 failed |
| Result source | Reported by the publisher (runx_registry_publish) |
| Suite | runx-harness |
| Test recorded | |
| Test record | Open the recorded run |
Inspect receipt references
sha256:55d83cc9855103d836ba23efdeb42f7d2600cfcb9698432f2b7312b70d46c170sha256:365a2c70ea256beb25c6c61e376b51ecd285b9daeff3ac644dcc061959d0b72esha256:574c03b5ddc5d271c9bb2f9cddb6e49c451bb096fbc9df9e4a736db713f7cf3cPackage identity
| Published revision | sha-9ddb576e4dd5 |
|---|---|
| Content digest | sha256:9ddb576e4dd56015fb66f552b278aaf03d0e80abf869b514a2166f4cc1c49812 |
| SKILL.md digest | sha256:d8983097f5622263771a2de1494ae0247b746e1159440816c59572291a10826e |
| Execution profile digest | sha256:788b8c5d2b3971cf3d950f3a782f1027c02bba13376ea0ee6572905d0821389b |
| Publisher identity | Verified publisher · runx |
| Trust tier | Verified publisherRunx has verified this publisher. This tier is not a code assessment. |
| Attestations |
|
| Source provenance | Not published with this version |
Version history
0.6.5Content digest sha256:beff522ce3b045e03db25d41f831a9f260bb174933325fae19c91d84d7bbcee9sha-9ddb576e4dd5ViewingContent digest sha256:9ddb576e4dd56015fb66f552b278aaf03d0e80abf869b514a2166f4cc1c49812sha-800a9f940dd1Content digest sha256:800a9f940dd108a896226edb794ed4abb2b9fd2781245fa09962370985492f71sha-dfaf8da4dc43Content digest sha256:450a1f99db2f9deffb3d7bcdd3819b9fe4f90de371342395b0efd5cfaf467eb8