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 0.6.5. 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.

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

  1. Normalize provider, dispute, charge, amount, currency, reason, and optional response deadline.
  2. 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.
  3. 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.
  4. Admit external evidence only as bounded locator, SHA-256 digest, kind, and summary. Raw provider payloads and credentials remain outside the packet.
  5. Draft one posture using only admitted receipt ids and evidence locators.
  6. Deterministic finalization rejects invented citations, effect claims, and any completion state the evidence cannot support.
  7. 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 narrow dispute.file scope.
  8. Runx projects only the filing reference, dispute id, request digest, and status from the provider result, then performs an independent dispute.read and 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 locators, 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_evidence for 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 locators, and native redacted receipt detail. Cite only exact admitted ids and locators. Never claim filing, provider acceptance, closure, settlement, or a refund not proven by the packet.

Published execution profile

The execution profile published with 0.6.5, shown as its exact bytes.

Runner
  • respond
Profile digestsha256:553fb059e9bbcf775c5ea9ebcb1b582dc51650d9659c15c7ff9ac5cf7963f523
skill: dispute-respond
version: "0.6.5"

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_id, 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_id: { 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:
    type: array
    required: false
    description: Up to 100 digest-bound evidence references supporting the response.
    schema:
      maxItems: 100
      items:
        type: object
        required: [locator, digest, kind, summary]
        additionalProperties: false
        properties:
          locator: { 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:
        definition: evidence
      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_id: ch_demo_001
          amount_minor: 1250
          currency: USD
          reason_code: product_not_received
        original_receipt_id: sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
        prior_refund_receipt_ids: []
        evidence: []
        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: $input.evidence
          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: $input.evidence
          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
        artifacts:
          named_emits:
            dispute_packet: dispute_packet
          packets:
            dispute_packet: runx/dispute-respond.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/dispute-respond.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 resultPassed
Tested version0.6.5
Recorded result3 checks passed · 0 failed
Result sourceRun by the Runx registry at publication
Suiterunx-harness
Test recorded
Test recordOpen the recorded run
Inspect receipt referencessha256:b9a05ec06ca4366bc83fa5d7df60df0940f5264eb77a7c0a8b3a0b6588044071sha256:3d287457eb674af0e81ba758af87b6a4f89625689a2b528f8312b5024a0c832csha256:b30432063bf9a646bab80f2ae55642eb870795212cfa45fceeccfa2b0a686725

Package identity

Published revision0.6.5
Content digestsha256:beff522ce3b045e03db25d41f831a9f260bb174933325fae19c91d84d7bbcee9
SKILL.md digestsha256:cde9896386d6a726c5a53c3bafbb722e9c03f688a5bb9c15b15e1f2ce066adb5
Execution profile digestsha256:553fb059e9bbcf775c5ea9ebcb1b582dc51650d9659c15c7ff9ac5cf7963f523
Publisher identityVerified publisher · runx
Trust tierVerified publisherRunx has verified this publisher. This tier is not a code assessment.
Attestations
  • Publisher · Verifiedrunx · 25 Oct 2026
Source provenanceNot published with this version

Version history

  1. 0.6.5ViewingContent digest sha256:beff522ce3b045e03db25d41f831a9f260bb174933325fae19c91d84d7bbcee9
  2. sha-9ddb576e4dd5Content digest sha256:9ddb576e4dd56015fb66f552b278aaf03d0e80abf869b514a2166f4cc1c49812
  3. sha-800a9f940dd1Content digest sha256:800a9f940dd108a896226edb794ed4abb2b9fd2781245fa09962370985492f71
  4. sha-dfaf8da4dc43Content digest sha256:450a1f99db2f9deffb3d7bcdd3819b9fe4f90de371342395b0efd5cfaf467eb8