Label: complexity: high
Points: 200
Description
Creators offering invoices with implicit payment SLAs (e.g. "paid within 24h of creation") need a way to track compliance across their invoice history for reporting purposes.
Technical Context
New src/slaTracker.ts. Computes timeToFirstPayment and timeToFullFunding per invoice from Invoice.payments timestamps (requires ledger-time correlation, reuse src/timeMachine.ts's getInvoiceAtTime pattern).
Acceptance Criteria
Label: complexity: high
Points: 200
Description
Creators offering invoices with implicit payment SLAs (e.g. "paid within 24h of creation") need a way to track compliance across their invoice history for reporting purposes.
Technical Context
New
src/slaTracker.ts. ComputestimeToFirstPaymentandtimeToFullFundingper invoice fromInvoice.paymentstimestamps (requires ledger-time correlation, reusesrc/timeMachine.ts'sgetInvoiceAtTimepattern).Acceptance Criteria
computeSlaReport(invoices: Invoice[], slaMs: number)returns{ withinSla: number, breached: number, avgTimeToFund: number }src/index.ts