dunning-ladder
--- name: dunning-ladder description: Read an overdue receivable and a cadence policy, decide the next reminder step within the cap, and emit a gated reminder-send proposal, escalating once the cadence cap is reached. runx: category: payments ---
You’re reading version sha-0c905b11beef. Go to the current version
Overview
In the manual
- name: dunning-ladder description: Read an overdue receivable and a cadence policy, decide the next reminder step within the cap, and emit a gated reminder-send proposal, escalating once the cadence cap is reached. runx: category: payments
- When to use
- When not to use
- Procedure
- Edge cases
- Output schema
- Inputs
Runner
dunning
Declared by its execution profile. Read the profile
SKILL.md
name: dunning-ladder description: Read an overdue receivable and a cadence policy, decide the next reminder step within the cap, and emit a gated reminder-send proposal, escalating once the cadence cap is reached. runx: category: payments
Dunning & AR Reminder Ladder
Accounts-receivable dunning needs a capped, governed cadence, not unbounded nagging. This skill reads an overdue receivable and a cadence policy, decides the next reminder step within the cap, and emits a gated reminder-send proposal, escalating once the cadence cap is reached. The send-as catalog skill performs the gated reminder.
When to use
- A receivable is overdue and a dunning step needs to be selected.
- The sender wants to enforce a cap on total reminders before escalation.
- A governed, auditable reminder trail is required.
When not to use
- The receivable is not actually overdue (aging_days <= 0).
- The cap has already been reached and escalation has already occurred.
- Direct, ungoverned communication is acceptable.
Procedure
- Read invoice_status, aging_days, and cadence_policy.
- If aging_days <= 0, refuse: the record is not overdue.
- If the current step index exceeds the cadence cap, escalate with no reminder.
- Otherwise, compute the next step within the cap and emit a reminder_proposal.
- The reminder_proposal is a gated Effect for the send-as catalog skill; this skill sends nothing itself.
Edge cases
- aging_days <= 0: not overdue, return refused.
- step index >= cap: escalate, no further reminder.
- Partial or missing policy: return refused with clear reason.
Output schema
decision:
step: int # Current step index (0-based)
action: string # "remind" | "escalate" | "refused"
reminder_proposal: # null when action is not "remind"
channel: string # "email" | "sms" | "letter"
content_digest: string # SHA256 of the proposed reminder content
escalation: # null when action is not "escalate"
reason: string # Why escalation was triggered
recommended_action: stringInputs
invoice_status(string, required): Current status of the invoice (e.g. "overdue", "paid", "pending").aging_days(number, required): Number of days the invoice is overdue.cadence_policy(object, required):{ "steps": [{"max_days": number, "channel": string}], "cap": number }.
Published execution profile
The execution profile published with sha-0c905b11beef, shown as its exact bytes.
| Runner |
|
|---|---|
| Profile digest | sha256:ec4074c246a84f973023653180b52d2754633d96430717643adc9bb4e439ee53 |
skill: dunning-ladder
version: 0.1.0
catalog:
kind: skill
audience: public
visibility: public
role: canonical
runners:
dunning:
default: true
inputs:
invoice_status:
type: string
required: true
description: Current status of the invoice.
aging_days:
type: number
required: true
description: Number of days the invoice is overdue.
cadence_policy:
type: object
required: true
description: Cadence policy with steps array and cap.
steps:
- id: dunning
tool:
command: node
args:
- ./run.mjs
timeout_seconds: 30
input_mode: none
inputs:
invoice_status: $input.invoice_status
aging_days: $input.aging_days
cadence_policy: $input.cadence_policy
harness:
cases:
- name: within-cap-reminder
inputs:
invoice_status: overdue
aging_days: 15
cadence_policy:
steps:
- max_days: 7
channel: email
- max_days: 21
channel: email
- max_days: 45
channel: letter
cap: 3
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: cap-reached-escalate
inputs:
invoice_status: overdue
aging_days: 60
cadence_policy:
steps:
- max_days: 7
channel: email
- max_days: 14
channel: email
- max_days: 30
channel: letter
cap: 3
expect:
status: failure
Published package and test evidence.
The latest recorded test covers an earlier version, sha-97b2b060ffb4. It does not establish a result for this version.
Test result
| Harness result | An earlier version was tested |
|---|---|
| Tested version | sha-97b2b060ffb4Not this page’s version, sha-0c905b11beef |
| Recorded result | 2 checks passed · 0 failed |
| Result source | Reported by the publisher (runx_registry_publish) |
| Suite | runx-harness |
| Test recorded | |
| Declared cases | 2 |
Package identity
| Published revision | sha-0c905b11beef |
|---|---|
| Content digest | sha256:0c905b11beef8566e215388f6ef4a2b51368b5e6a3f6341df554d5f2ec773185 |
| SKILL.md digest | sha256:4dba59e715f4198a9bc744e308a010765275f3ad548e5270359a99da52b6c87d |
| Execution profile digest | sha256:ec4074c246a84f973023653180b52d2754633d96430717643adc9bb4e439ee53 |
| Publisher identity | Unverified publisher · codeboost-tr |
| Trust tier | CommunityPublished through the registry without publisher verification. This tier is not a code assessment. |
| Attestations |
|
| Source provenance | Not published with this version |
Version history
sha-97b2b060ffb4Content digest sha256:97b2b060ffb40828bba1ed89687da5110d58d087cb35ad84b410c0c0791a47aasha-54454be0bebdContent digest sha256:54454be0bebd0ecfd28467179558161688cc45cf6e69c21829ace7d0adb20c3esha-7d8a258c964aContent digest sha256:7d8a258c964ac3f1d1fa36d161d7608978d6c076713b5fb4e3e9766d4d3b64bbsha-0c905b11beefViewingContent digest sha256:0c905b11beef8566e215388f6ef4a2b51368b5e6a3f6341df554d5f2ec773185