Dunning ladder

Choose the next bounded accounts-receivable reminder step, propose a gated send, and escalate instead of exceeding the cadence cap.

You’re reading version sha-d966f51a3ba5. Go to the current version

Overview

dunning-ladder evaluates one overdue receivable against a supplied cadence policy. It chooses the eligible next reminder step while below the hard cap and emits a gated proposal for send-as. It sends nothing itself.

In the manual

Runner

  • decide

Declared by its execution profile. Read the profile

SKILL.md

Dunning Ladder

dunning-ladder evaluates one overdue receivable against a supplied cadence policy. It chooses the eligible next reminder step while below the hard cap and emits a gated proposal for send-as. It sends nothing itself.

Inputs

  • invoice_status: invoice ID, current status, reminders already sent, and an optional non-sensitive customer reference.
  • aging_days: whole days overdue.
  • cadence_policy: ordered steps and a hard cap.

Each step supplies step, min_days, channel, and template.

Outputs

  • decision: chosen step and proposed action.
  • reminder_proposal: channel, template, content digest, and mandatory approval gate.
  • escalation: whether operator escalation is needed and why.

Guardrails

  • Refuse records that are not explicitly overdue.
  • Never propose more reminders than the cadence cap.
  • At the cap, fail the run with an escalation instruction and no proposal.
  • Never send, post, charge, suspend service, or mutate the receivable.
  • Do not include private contact or payment details in the output.
  • A separate governed send-as run must approve and perform any reminder.

The skill gives finance operators a deterministic cadence decision while preventing unbounded or duplicate nagging.

Published execution profile

The execution profile published with sha-d966f51a3ba5, shown as its exact bytes.

Runner
  • decide
Profile digestsha256:6b11d8a7ed2fd4e453881958243888c7b1404fa57315304c1d3f102fc164bd4b
skill: dunning-ladder
version: 0.1.1
catalog:
  kind: skill
  audience: operator
  visibility: public
  role: canonical
  category: payments
runners:
  decide:
    default: true
    inputs:
      invoice_status:
        type: json
        required: true
        description: Bounded receivable state including status and reminders_sent.
      aging_days:
        type: number
        required: true
        description: Whole days the receivable is overdue.
      cadence_policy:
        type: json
        required: true
        description: Ordered reminder steps and a hard cadence cap.
    steps:
      - id: decide
        tool:
          command: node
          args:
            - run.mjs
        inputs:
          invoice_status: $input.invoice_status
          aging_days: $input.aging_days
          cadence_policy: $input.cadence_policy
        outputs:
          decision:
            required: false
          reminder_proposal:
            required: false
          escalation:
            required: false
harness:
  cases:
    - name: within-cap-reminder-proposal
      inputs:
        invoice_status:
          invoice_id: inv-100
          status: overdue
          reminders_sent: 1
          customer_ref: customer-7
        aging_days: 18
        cadence_policy:
          cap: 3
          steps:
            - step: 1
              min_days: 1
              channel: email
              template: friendly-reminder
            - step: 2
              min_days: 14
              channel: email
              template: firm-reminder
            - step: 3
              min_days: 30
              channel: email
              template: final-reminder
      expect:
        status: sealed
        receipt:
          schema: runx.receipt.v1
      operator_journeys:
        - mode: standalone
          confusors:
            - settle-invoice
            - send-as
          request: Decide the next dunning step for this overdue account.
          expected_outcome: Return the next ladder step and a gated message proposal, sending nothing.
        - mode: composed
          request: Continue this dunning-ladder work from evidence already gathered upstream.
          expected_outcome: Return the next ladder step and a gated message proposal, sending nothing.
          prior_evidence:
            - The account balance and dunning history already supplied.
          must_not_repeat:
            - Do not send reminders or charge the account.
    - name: refuse-at-cadence-cap
      inputs:
        invoice_status:
          invoice_id: inv-200
          status: overdue
          reminders_sent: 3
          customer_ref: customer-9
        aging_days: 45
        cadence_policy:
          cap: 3
          steps:
            - step: 1
              min_days: 1
              channel: email
              template: friendly-reminder
            - step: 2
              min_days: 14
              channel: email
              template: firm-reminder
            - step: 3
              min_days: 30
              channel: email
              template: final-reminder
      expect:
        status: failure

Published package and test evidence.

This exact version passed its recorded harness run: 2 checks passed · 0 failed.

Test result

Harness resultPassed
Tested versionsha-d966f51a3ba5
Recorded result2 checks passed · 0 failed
Result sourceReported by the publisher (runx_registry_publish)
Suiterunx-harness
Test recorded
Declared cases2
Test recordOpen the recorded run
Inspect receipt referencessha256:88d8e0af1fc469f0c6b2590099bd814d8489685c2397e036cdd04e2b97bb6238sha256:3f89677d6997f9a539eb494cc54d6db5563cb5e246b7d3f33489138ac9a8884a

Package identity

Published revisionsha-d966f51a3ba5
Content digestsha256:d966f51a3ba5e6a099dfc0c77e84b00d80578e498a1c02546c647d2ab6cc30db
SKILL.md digestsha256:c1caa81e0117ec509fbf6fe78800696d15b50b1ee237e422f377fbd354ff2512
Execution profile digestsha256:6b11d8a7ed2fd4e453881958243888c7b1404fa57315304c1d3f102fc164bd4b
Publisher identityUnverified publisher · luismireles12
Trust tierCommunityPublished through the registry without publisher verification. This tier is not a code assessment.
Attestations
  • Publisher · Declaredluismireles12 · 17 Oct 2026
Source provenanceNot published with this version

Version history

  1. sha-d966f51a3ba5ViewingContent digest sha256:d966f51a3ba5e6a099dfc0c77e84b00d80578e498a1c02546c647d2ab6cc30db
  2. sha-1566c28abf07Content digest sha256:1566c28abf0722080455cf823a900b9be1cd1330131b4a17ede49103af3ffbba
  3. sha-4a887dcf7f68Content digest sha256:4a887dcf7f68d062c03e8dbd5ee9f3dc7a46eb416b86d810cbfe8d086127ceff
  4. sha-53f6aa88a563Content digest sha256:53f6aa88a563e768f1030fd57437c6f073f384d82bec6d0c585c0c32490c0f0e