Finance & insightAutomation
Automation & exceptions
Deterministic rules — no AI in Phase 1. Every rule has an owner, an idempotency key, a retry policy, a human boundary and a kill switch.
Rule reviewer: Anita R. · Mondays 10:00
Active rules
15 / 17
1 paused · 1 off
Runs today
2,418
14,165 in 7 days
Success rate
99.2%
today · 7 d
Staff time saved
41 h
+3 h wk/wkest.
Open exceptions
23
1 critical · 6 owner-level
Approvals waiting
10
1 overdue · 5 on me
Estimated staff hours saved per week
All enabled rules, net of exception-handling time · weeks starting Monday
hours_saved = cases × minutes_saved ÷ 60 − exception_handling_hours
Time study refreshed monthly (last: 14 Sep, 60 observed orders). Overlapping rules are not double-counted. ₹ value per hour to be confirmed by client.
Health right now
Worker queue, retries and failing rules · 10:42
Courier tracking sync auto-paused
3 × HTTP 504 since 08:15 · 17 shipments without update
Supplier import: 38 rows rejected
Prime IT · IMP-0332 · missing HSN code
Settlement matching partial
4 unmatched lines · ₹18,420 · Finance
Global pause: off
Last used 14 Aug · payment provider incident · 42 min
12 sOldest queued job
14Retries · 24 h · 11 recovered
3Failed → exception
| Rule | When → then | Owner | Status | Runs 7 d · success | Saved | Last failure |
|---|
17 rulesCandidates not yet built: A29 abandoned carts (P2), A30 forecasting (P2), A31 invoice OCR (P2), A33 seller payouts (P2), A34/A35 (P3)
| Run | Rule | Entity | Started | Duration | Attempt | Result | Detail |
|---|---|---|---|---|---|---|---|
| JOB-88231 | A06 Reservation expiry | R-5534 | 10:40:02 | 38 ms | 1/5 | Succeeded | 1 unit released · availability event sent |
| JOB-88230 | A05 Payment → reserve → pick | TXO-10496 | 10:39:47 | 212 ms | 1/5 | Succeeded | Pick task PT-3318 · SP Road |
| JOB-88229 | A09 Payment webhook | pay_Nx9C4… | 10:39:46 | 9 ms | 1/1 | Skipped · duplicate | Event evt_Nx9C… already processed at 10:39:44 — no second effect |
| JOB-88226 | A14 Status notification | TXO-10488 | 10:36:10 | 1.2 s | 2/4 | Retrying in 3 m 40 s | WhatsApp provider 429 (rate limit) · backoff 2 m → 4 m · SMS fallback after attempt 4 |
| JOB-88221 | A04 Availability refresh | SSD01-N | 10:31:55 | 84 ms | 1/5 | Succeeded | ATP 63 → 61 · storefront + search updated |
| JOB-88207 | A01 Supplier import | IMP-0332 | 09:12:18 | 41 s | 1/1 | Partial | 1,204 rows staged for review · 38 rejected (missing HSN) → EX-2238 |
| JOB-88213 | A13.2 Courier tracking sync | 17 shipments | 08:15:04 | 30.0 s | 3/3 | Failed → rule auto-paused | HTTP 504 × 3 · evidence below · EX-2240 |
| JOB-88174 | A13 Courier booking | TXO-10479 | 08:15:31 | 4.1 s | 2/5 | Succeeded after retry | 1st attempt timed out · same idempotency key → no double booking · AWB 1490 2281 7736 |
| JOB-88188 | A19 Owner daily digest | DIG-0926 | 08:00:00 | 6.4 s | 1/3 | Succeeded | Email + WhatsApp delivered to Rajesh M. · 2 decisions listed |
| JOB-88161 | A10 Settlement matching | SETL-2609 | 07:10:12 | 18 s | 1/1 | Partial | 412 lines matched · 4 unmatched (₹18,420) → Finance queue |
| JOB-88102 | A14 Status notification | TXO-10461 | 06:05:40 | 0.4 s | 1/1 | Failed · not retried | Customer opted out of WhatsApp on 24 Sep → permanent error, no retry · email sent instead |
| JOB-88044 | A09 Payment webhook | evt_Nw1… | 02:14:09 | 5 ms | 1/1 | Rejected | Signature invalid → rejected, not processed · security alert to Deepa K. |
Failed job JOB-88213 · Courier tracking sync
Rule A13.2 v2 · owner Anita R. (Operations) · exception EX-2240 · provider ticket DLV-58213
- 08:14:59 · Scheduled run started
- 08:15:04 · Attempt 1 → HTTP 504 after 30 s
- 08:17:15 · Attempt 2 → HTTP 504 after 30 s
- 08:21:52 · Attempt 3 → HTTP 504 after 30 s
- 08:22:23 · Rule auto-paused · EX-2240 raised
Customer impact: 17 shipments show “Status update delayed” on the tracking page instead of an outdated status. No orders, payments or stock were changed.
# request (credentials redacted)
GET https://track.courier.example/v2/shipments?awb=1490228…,+16
Authorization: Bearer ••••••••Q7fA
X-Idempotency-Key: trk:2026-09-26T08:15
# response · attempt 3
HTTP/1.1 504 Gateway Timeout (30,002 ms)
x-provider-request-id: 7f3a9c1e-44b2
body: {"error":"upstream_timeout","retry_after":null}
# checks
provider status page ........ degraded since 08:02
other endpoints (booking) ... OK · 4.1 s
last successful sync ........ 07:45:02 · 212 shipments
affected AWBs ............... 17 (list attached to EX-2240)
| Severity | Exception · evidence | Entity | Age | Assignee | Due | Escalation path | Recommended actions |
|---|
Showing 13 of 23 · resolved items keep their resolution reason · 3 exceptions recurred ≥ 5× this month → flagged for policy review, not more owner callsApproval & exception ageing report →
| Type | Item · requested by | Why approval is needed | Value | Deadline | Approver → alternate | Decision |
|---|
Each decision records approver, reason and time — bulk review is allowed only where every item keeps its own decision history.Decided today: 7 (5 by staff within delegated authority)
A051A
Payment → reserve → pick task
Kill switch · rule is running
Turning it off stops new runs immediately. In-flight runs finish; queued work moves to the owner’s manual queue. Nothing is replayed automatically when re-enabled.
Template: blueprint §12.3 · every field is required before a rule can be enabled in production.
Stop rule ?
What happens: new runs stop now · in-flight runs complete · queued items move to the manual queue · the rule owner and reviewer are notified · the change is audited.
Resume courier tracking sync
A health check runs first (1 test call). If it passes, the rule resumes and the 17 delayed shipments are re-synced once — the sync is read-only, so repeating it is safe.
Pause automation
Incident control (§20.4) · requires Owner or Ops admin · audited
Propose an automation rule
Observed first (§12.1), valued (§12.4), then built and reviewed
Phase 1 rules are deterministic. Suggestions that need judgement (compatibility answers, forecasting, invoice OCR) are logged for Phase 2/3 review — not built as rules.