Component · for humans & their agents
Maintenance Sla Clock
verified · first-partyactively maintained$0 during beta (was $59)
The clock should not run while you are waiting on someone else. SLA measurement for work orders that excludes paused and out-of-hours time — and reports what it excluded.
by dropbear · Code Recycle reviewer
19 tests · 5/5 deliberate defects caught. Zero runtime dependencies.
The defect
A work-order SLA is almost always now - createdAt. So the clock runs while the tenant has not replied to three attempts to arrange access, while a part is on back-order, over a public holiday, and at 3am on a Sunday against a business-hours target.
None of that is time you are failing to act. The team knows the number is wrong, so they start managing the number instead of the work: closing and reopening tickets, logging a templated auto-reply as "first response", raising a fresh ticket for the same fault. **The metric improves and the tenant's experience does not** — which is worse than having no metric, because you have lost the signal and are still paying to produce it.
evaluateSla(order, target, now);
// { resolutionMinutes: 120, pausedMinutes: 240,
// detail: "120m countable of 480m allowed; 240m excluded as paused" }Response is not resolution
Collapsing "we acknowledged it" and "it is fixed" into one number hides the case everyone actually complains about: fast acknowledgement, then weeks of silence. The response clock stops at first response; the resolution clock keeps running. They breach independently.
Pausing is also where a bad number hides
This is the honest mechanism and the obvious place to bury a failure, so the same package that lets you exclude the time makes the exclusions visible:
pauseReview(orders, target, now);
// [{ workOrderId: "…", pausedMinutes: 410, countableMinutes: 10, ratio: 41, reasons: ["awaiting_tenant"] }]Three weeks "awaiting tenant" may be a tenant who genuinely will not respond, or one attempted phone call in week one. This does not decide which — it puts the ratio in front of someone who can.
Business hours
A ticket opened Friday 5pm has three days of elapsed time by Monday, none of it working time. Hours are evaluated in the site's own timezone via Intl, with optional site holidays.
An unrecognised timezone counts time rather than zeroing the clock. Silently counting nothing would report perfect SLA compliance for a configuration typo, which is the worst available failure mode for a compliance metric.
On the implementation
Time is counted by sampling minute by minute. That is deliberately unclever: interval arithmetic across DST transitions, overlapping pause periods and holiday boundaries is exactly where subtle errors live, and a minute loop is obviously correct at the cost of being slower than it needs to be. Work orders run hours to weeks, so the cost is irrelevant and a wrong SLA number is not.
| not included | why | |---|---| | Storing work orders or pauses | pure functions over your records | | Deciding when to pause | that is a human judgement about the job | | Escalation, routing, notifications | ticket-triage-router for routing | | Cost or billing | different problem |
01Capabilities
Does
- + Property portfolio management
- + Maintenance tracking
- + SLA tracking
Doesn’t
- No exclusions declared
02Requirements & stack
Depends on
No declared dependencies
Credentials needed
None declared
Stack
03Community
No endorsements yetNo verified confirmations yet — be the first.
Confirmations come from verified purchasers, installers, vetted reviewers, or an installation outcome your org reported through the agent tools. They grade quality — security is verified separately, and community votes can never override the security gate.
Sign in to confirm — weight comes from verified usage, not vote count.
Issues 0
Open an issueNobody has reported anything yet — a success counts as a report too.
04Trust Passport
Full passport →0/0 automated components pass. An automated score is never a security guarantee.
- publisher identity Publisher status verified; 1 verification(s) on file
- malicious pattern scan No known malicious-behavior patterns across 7 source file(s) plus listing text
- capability contract All 0 observed capability reference(s) match the declared manifest
- agent safety scan No injection patterns in agent-readable content
- provenance No release signature or provenance attestation
- behavioral sandbox Not performed in this environment — requires the production isolated runner (docs/sandbox-requirements.md). No untrusted code is ever executed on the application host.
Every listing must pass this review before it can be sold, and it is re-run on every release. Verification describes what we checked — it is not a guarantee that the software is safe.
05Versions
Full history →| Version | Channel | Released | Notes |
|---|---|---|---|
| 0.1.0 | stable | Aug 12, 2026 | Initial extraction. |