Invoicing · 25 / 26

Runbooks and Incident Playbooks

First-response runbooks for the receivables platform: severity levels, safety switches and playbooks for the incidents most likely to matter.

How to use these

These are the first-response procedures for the situations most likely to matter. Each names its trigger, how it is detected, the steps in order and when it is over. They are short on purpose: the on-call person should be able to act in the first fifteen minutes.

SeverityMeaningExamplesResponse
SEV1Harm or loss in progress, or a safety control has failedA misapplication, a wrong invoice batch, a data disclosurePage now, switch to read-only, incident lead named
SEV2Major degradation, no harm yetProvider outage with fallback failing, a block-rate spikeRespond in 30 minutes
SEV3Minor degradation or a quality dropA slow tool, a failing nightly evaluationNext business day

The three switches

SwitchEffectWho may use it
Read-only modeApplications, credits, holds and messages are disabled; reading and proposals continuePlatform or security on-call, AR (Accounts Receivable) operations lead
Queue-only modeModels are bypassed; rules match exact payments and everything else waits for a personPlatform on-call
OffThe platform stops and AR staff work manuallyIncident lead

1 · Misapplied cash (SEV1)

Trigger: The no-basis query returns a row, or a customer reports a payment applied to the wrong invoices.

Detect: Alert from the telemetry query, an AR clerk report or a customer complaint.

  1. Contain

    Switch to read-only mode. Page the security on-call and the AR operations lead.

  2. Preserve

    Record the trace identifier, the payment, the candidates and the basis. Do not edit logs.

  3. Make good

    Reverse the application, apply correctly and hold dunning on the affected customers. Contact the customer through AR staff.

  4. Find the path

    Trace why the basis was allowed: a rule, a threshold, a changed prompt or a contract-test gap. Check the last release.

  5. Fix and prove

    Fix the cause, add a regression case, and rerun the full evaluation set before leaving read-only mode.

Exit: No misapplication in two clean weeks of traffic, a review written, and the fix in the release gate.

Sequence: responding to misapplied cash

Response to misapplied cash The alert pages the on-call engineer, who switches the platform to read-only, reverses the application and applies it correctly, holds dunning, contacts the customer through AR staff, traces the cause and adds a regression case before the platform leaves read-only. Alert On-call engineer Safety switch ERP AR staff Evaluation set application without valid basis acknowledge, open incident read-only mode reverse and reapply correctly hold dunning, contact customer trace the basis path add regression case full evaluation set passes leave read-only
Response to misapplied cash

The order matters: contain first, make good second, find the cause third, and prove the fix before the platform is allowed to act again.

2 · Wrong invoices released (SEV1)

Trigger: A batch of invoices has wrong prices, tax or duplicates, found by a customer, the anomaly check or the finance team.

Detect: Customer reports, a spike in disputes with the same cause, or the billing reconciliation.

  1. Stop the run

    Pause the invoice run and delivery for the affected rules. Page billing and finance systems.

  2. Scope

    Find every affected invoice using the stored rule identifiers and prices.

  3. Make good

    Issue corrected invoices or credits through the normal approvals, and notify affected customers with a clear note.

  4. Root cause

    Check for a price-list change, a rule change, a tax engine update or a data issue. The model only flags; pricing is code.

  5. Fix

    Add a validation to the run and a case to the evaluation set before resuming.

Exit: Reconciliation clean for three runs and the new validation in place.

3 · Hidden instructions or an active attack on documents (SEV2)

Trigger: The block-rate anomaly alert fires, or one sender or customer produces many blocks.

Detect: Blocks by detection and sender from the telemetry queries; Prisma AIRS events.

  1. Look

    Open the blocks-by-detection query. Is it one detection, one sender or everywhere?

  2. Contain

    Block or quarantine the sender at intake. Tighten the profile for the affected detection if needed.

  3. Check for effect

    Confirm no application or message resulted for the cases involved. The unscanned call count must be zero.

  4. Hold the line

    If tools were involved, move to read-only. Notify the credit manager if a customer account was targeted.

  5. Learn

    Add the patterns to the adversarial set. Review whether the profile needs a permanent change.

Exit: Block rate back inside its normal band for 24 hours and the new cases passing.

4 · Model provider or gateway outage (SEV2)

Trigger: Error rate or latency on the gateway rises, or a provider status page reports an incident.

Detect: Latency and error alerts; gateway fallback counts.

  1. Confirm failover

    Check that traffic moved to the second provider and that quality alerts are quiet.

  2. If both fail

    Rules still match exact payments. Everything else queues for AR staff. Tell the desk to expect more volume.

  3. Protect the budget

    Watch cost and fallback counts. Fallback models can have different prices.

  4. Communicate

    Post a status note for the desk. Warn finance if month-end items may slip.

  5. Recover

    Return to the primary gradually, watch the evaluation canary, and review the failover timing.

Exit: Primary restored, canary clean, and the outage written up with timings.

5 · Roll back a model alias or prompt

Trigger: Online evaluators or alerts show a drop in extraction, groundedness or match accuracy after a change.

Detect: Online evaluator alerts, correction rate, cost per payment.

  1. Confirm

    Compare the new and previous versions on the canary slice. Is the drop real?

  2. Roll back

    Repoint the alias or prompt to the previous version. It is one configuration change in version control.

  3. Verify

    Check the live metrics return within an hour.

  4. Diagnose

    Run the evaluation set on both versions and find the failing categories.

  5. Return

    Fix, pass the gate and release again as a canary.

Exit: Metrics back to baseline and a regression case added.

6 · A wrong or poisoned contract clause in the index

Trigger: A dispute draft cites a clause that is wrong, or a diff shows a clause that nobody approved.

Detect: A collector report, the ingestion diff review or a grounding failure on the evaluation set.

  1. Remove

    Disable the clause or revert the document version in the source table. The index syncs automatically.

  2. Scope

    Find disputes that cited the clause and whose outcomes it affected.

  3. Make good

    Reopen affected disputes and correct any credits or messages through the normal approvals.

  4. Trace the source

    Check who changed the source and how it passed review. Treat an unapproved change as a security event.

  5. Strengthen

    Add the clause to the grounding set and tighten review for that contract type.

Exit: Index matches the approved sources and the affected disputes are corrected.

7 · Suspected exposure of bank details or contacts (SEV1)

Trigger: A scan finds a bank account or contact in telemetry, a table, a trace or a draft, or a customer reports seeing another customer's data.

Detect: Telemetry audit, output scan alerts, a clerk or customer report.

  1. Contain

    Stop the path involved: read-only mode, disable the exporter or restrict the table.

  2. Assess

    Which data, how many people, who could see it, and for how long?

  3. Notify

    Bring in security and privacy at once. Notification duties are decided by privacy and legal.

  4. Remediate

    Delete or mask the data, fix the control that failed and rotate any credentials involved.

  5. Prevent

    Add a telemetry scan rule and a test, and review similar paths.

Exit: Data removed, notifications made as decided, and the control proven by test.

After every incident

  1. Write it up

    Within three days: timeline, impact, cause, what worked, what did not. Blameless.

  2. Add a test

    Every incident leaves at least one regression case in the evaluation set or the contract tests.

  3. Update the model

    Revise the threat model and the runbook if the incident taught something new.

  4. Report

    Include it in the monthly governance review with its open actions.

Build this for your business

This example is a receivables platform for a distributor, but the same pattern, deterministic financial rules, a governed gateway, runtime security, grounded evidence and measured quality, fits any back-office process that moves money. We can scope a pilot on your own systems.

Book a discovery call