assignment-user-matcher 1.8.0 → 1.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (165) hide show
  1. package/README.md +240 -12
  2. package/dist/index.d.ts +3 -1
  3. package/dist/index.d.ts.map +1 -1
  4. package/dist/index.js +23 -1
  5. package/dist/matcher.class.d.ts +44 -2
  6. package/dist/matcher.class.d.ts.map +1 -1
  7. package/dist/matcher.class.js +393 -4
  8. package/dist/queries/pagination.d.ts +5 -1
  9. package/dist/queries/pagination.d.ts.map +1 -1
  10. package/dist/queries/pagination.js +14 -3
  11. package/dist/schedule/policy.d.ts +35 -0
  12. package/dist/schedule/policy.d.ts.map +1 -0
  13. package/dist/schedule/policy.js +62 -0
  14. package/dist/scheduling/constraints/availability.d.ts +44 -0
  15. package/dist/scheduling/constraints/availability.d.ts.map +1 -0
  16. package/dist/scheduling/constraints/availability.js +142 -0
  17. package/dist/scheduling/constraints/consecutive.d.ts +25 -0
  18. package/dist/scheduling/constraints/consecutive.d.ts.map +1 -0
  19. package/dist/scheduling/constraints/consecutive.js +215 -0
  20. package/dist/scheduling/constraints/constraint.d.ts +35 -0
  21. package/dist/scheduling/constraints/constraint.d.ts.map +1 -0
  22. package/dist/scheduling/constraints/constraint.js +97 -0
  23. package/dist/scheduling/constraints/contract.d.ts +21 -0
  24. package/dist/scheduling/constraints/contract.d.ts.map +1 -0
  25. package/dist/scheduling/constraints/contract.js +106 -0
  26. package/dist/scheduling/constraints/cost.d.ts +18 -0
  27. package/dist/scheduling/constraints/cost.d.ts.map +1 -0
  28. package/dist/scheduling/constraints/cost.js +65 -0
  29. package/dist/scheduling/constraints/daily-rest.d.ts +22 -0
  30. package/dist/scheduling/constraints/daily-rest.d.ts.map +1 -0
  31. package/dist/scheduling/constraints/daily-rest.js +118 -0
  32. package/dist/scheduling/constraints/duty-quota.d.ts +20 -0
  33. package/dist/scheduling/constraints/duty-quota.d.ts.map +1 -0
  34. package/dist/scheduling/constraints/duty-quota.js +95 -0
  35. package/dist/scheduling/constraints/engagement-floor.d.ts +28 -0
  36. package/dist/scheduling/constraints/engagement-floor.d.ts.map +1 -0
  37. package/dist/scheduling/constraints/engagement-floor.js +79 -0
  38. package/dist/scheduling/constraints/fairness.d.ts +34 -0
  39. package/dist/scheduling/constraints/fairness.d.ts.map +1 -0
  40. package/dist/scheduling/constraints/fairness.js +149 -0
  41. package/dist/scheduling/constraints/group-composition.d.ts +19 -0
  42. package/dist/scheduling/constraints/group-composition.d.ts.map +1 -0
  43. package/dist/scheduling/constraints/group-composition.js +92 -0
  44. package/dist/scheduling/constraints/hour-budget.d.ts +13 -0
  45. package/dist/scheduling/constraints/hour-budget.d.ts.map +1 -0
  46. package/dist/scheduling/constraints/hour-budget.js +59 -0
  47. package/dist/scheduling/constraints/in-shift-breaks.d.ts +24 -0
  48. package/dist/scheduling/constraints/in-shift-breaks.d.ts.map +1 -0
  49. package/dist/scheduling/constraints/in-shift-breaks.js +97 -0
  50. package/dist/scheduling/constraints/intervals.d.ts +5 -0
  51. package/dist/scheduling/constraints/intervals.d.ts.map +1 -0
  52. package/dist/scheduling/constraints/intervals.js +17 -0
  53. package/dist/scheduling/constraints/max-shift-duration.d.ts +7 -0
  54. package/dist/scheduling/constraints/max-shift-duration.d.ts.map +1 -0
  55. package/dist/scheduling/constraints/max-shift-duration.js +38 -0
  56. package/dist/scheduling/constraints/min-rest.d.ts +22 -0
  57. package/dist/scheduling/constraints/min-rest.d.ts.map +1 -0
  58. package/dist/scheduling/constraints/min-rest.js +60 -0
  59. package/dist/scheduling/constraints/min-staffing.d.ts +14 -0
  60. package/dist/scheduling/constraints/min-staffing.d.ts.map +1 -0
  61. package/dist/scheduling/constraints/min-staffing.js +59 -0
  62. package/dist/scheduling/constraints/night-work.d.ts +24 -0
  63. package/dist/scheduling/constraints/night-work.d.ts.map +1 -0
  64. package/dist/scheduling/constraints/night-work.js +163 -0
  65. package/dist/scheduling/constraints/no-overlap.d.ts +7 -0
  66. package/dist/scheduling/constraints/no-overlap.d.ts.map +1 -0
  67. package/dist/scheduling/constraints/no-overlap.js +36 -0
  68. package/dist/scheduling/constraints/notice.d.ts +44 -0
  69. package/dist/scheduling/constraints/notice.d.ts.map +1 -0
  70. package/dist/scheduling/constraints/notice.js +140 -0
  71. package/dist/scheduling/constraints/one-shift-per-day.d.ts +7 -0
  72. package/dist/scheduling/constraints/one-shift-per-day.d.ts.map +1 -0
  73. package/dist/scheduling/constraints/one-shift-per-day.js +35 -0
  74. package/dist/scheduling/constraints/overtime.d.ts +47 -0
  75. package/dist/scheduling/constraints/overtime.d.ts.map +1 -0
  76. package/dist/scheduling/constraints/overtime.js +149 -0
  77. package/dist/scheduling/constraints/protections.d.ts +21 -0
  78. package/dist/scheduling/constraints/protections.d.ts.map +1 -0
  79. package/dist/scheduling/constraints/protections.js +93 -0
  80. package/dist/scheduling/constraints/qualification.d.ts +18 -0
  81. package/dist/scheduling/constraints/qualification.d.ts.map +1 -0
  82. package/dist/scheduling/constraints/qualification.js +78 -0
  83. package/dist/scheduling/constraints/rest-days.d.ts +30 -0
  84. package/dist/scheduling/constraints/rest-days.d.ts.map +1 -0
  85. package/dist/scheduling/constraints/rest-days.js +133 -0
  86. package/dist/scheduling/constraints/rolling-hours.d.ts +24 -0
  87. package/dist/scheduling/constraints/rolling-hours.d.ts.map +1 -0
  88. package/dist/scheduling/constraints/rolling-hours.js +147 -0
  89. package/dist/scheduling/constraints/start-interval.d.ts +20 -0
  90. package/dist/scheduling/constraints/start-interval.d.ts.map +1 -0
  91. package/dist/scheduling/constraints/start-interval.js +53 -0
  92. package/dist/scheduling/constraints/support.d.ts +48 -0
  93. package/dist/scheduling/constraints/support.d.ts.map +1 -0
  94. package/dist/scheduling/constraints/support.js +97 -0
  95. package/dist/scheduling/constraints/time-off.d.ts +7 -0
  96. package/dist/scheduling/constraints/time-off.d.ts.map +1 -0
  97. package/dist/scheduling/constraints/time-off.js +42 -0
  98. package/dist/scheduling/constraints/weekly-rest.d.ts +22 -0
  99. package/dist/scheduling/constraints/weekly-rest.d.ts.map +1 -0
  100. package/dist/scheduling/constraints/weekly-rest.js +92 -0
  101. package/dist/scheduling/cost.d.ts +56 -0
  102. package/dist/scheduling/cost.d.ts.map +1 -0
  103. package/dist/scheduling/cost.js +120 -0
  104. package/dist/scheduling/engine/construction.d.ts +22 -0
  105. package/dist/scheduling/engine/construction.d.ts.map +1 -0
  106. package/dist/scheduling/engine/construction.js +97 -0
  107. package/dist/scheduling/engine/explain.d.ts +12 -0
  108. package/dist/scheduling/engine/explain.d.ts.map +1 -0
  109. package/dist/scheduling/engine/explain.js +24 -0
  110. package/dist/scheduling/engine/objective.d.ts +73 -0
  111. package/dist/scheduling/engine/objective.d.ts.map +1 -0
  112. package/dist/scheduling/engine/objective.js +164 -0
  113. package/dist/scheduling/engine/prng.d.ts +5 -0
  114. package/dist/scheduling/engine/prng.d.ts.map +1 -0
  115. package/dist/scheduling/engine/prng.js +24 -0
  116. package/dist/scheduling/engine/propagation.d.ts +19 -0
  117. package/dist/scheduling/engine/propagation.d.ts.map +1 -0
  118. package/dist/scheduling/engine/propagation.js +40 -0
  119. package/dist/scheduling/engine/search.d.ts +50 -0
  120. package/dist/scheduling/engine/search.d.ts.map +1 -0
  121. package/dist/scheduling/engine/search.js +127 -0
  122. package/dist/scheduling/engine/state.d.ts +28 -0
  123. package/dist/scheduling/engine/state.d.ts.map +1 -0
  124. package/dist/scheduling/engine/state.js +96 -0
  125. package/dist/scheduling/engine/timeline.d.ts +179 -0
  126. package/dist/scheduling/engine/timeline.d.ts.map +1 -0
  127. package/dist/scheduling/engine/timeline.js +416 -0
  128. package/dist/scheduling/engine/verdicts.d.ts +18 -0
  129. package/dist/scheduling/engine/verdicts.d.ts.map +1 -0
  130. package/dist/scheduling/engine/verdicts.js +74 -0
  131. package/dist/scheduling/index.d.ts +10 -0
  132. package/dist/scheduling/index.d.ts.map +1 -0
  133. package/dist/scheduling/index.js +29 -0
  134. package/dist/scheduling/model.d.ts +53 -0
  135. package/dist/scheduling/model.d.ts.map +1 -0
  136. package/dist/scheduling/model.js +379 -0
  137. package/dist/scheduling/operations.d.ts +134 -0
  138. package/dist/scheduling/operations.d.ts.map +1 -0
  139. package/dist/scheduling/operations.js +376 -0
  140. package/dist/scheduling/provenance.d.ts +33 -0
  141. package/dist/scheduling/provenance.d.ts.map +1 -0
  142. package/dist/scheduling/provenance.js +70 -0
  143. package/dist/scheduling/rules.d.ts +23 -0
  144. package/dist/scheduling/rules.d.ts.map +1 -0
  145. package/dist/scheduling/rules.js +37 -0
  146. package/dist/scheduling/scheduler.class.d.ts +24 -0
  147. package/dist/scheduling/scheduler.class.d.ts.map +1 -0
  148. package/dist/scheduling/scheduler.class.js +150 -0
  149. package/dist/scheduling/time.d.ts +132 -0
  150. package/dist/scheduling/time.d.ts.map +1 -0
  151. package/dist/scheduling/time.js +256 -0
  152. package/dist/scheduling/types.d.ts +932 -0
  153. package/dist/scheduling/types.d.ts.map +1 -0
  154. package/dist/scheduling/types.js +19 -0
  155. package/dist/scoring/match-score.d.ts.map +1 -1
  156. package/dist/scoring/match-score.js +1 -3
  157. package/dist/types/matcher.d.ts +195 -1
  158. package/dist/types/matcher.d.ts.map +1 -1
  159. package/dist/utils/keys.d.ts +3 -0
  160. package/dist/utils/keys.d.ts.map +1 -1
  161. package/dist/utils/keys.js +15 -0
  162. package/dist/validation/assignment-lint.d.ts +24 -0
  163. package/dist/validation/assignment-lint.d.ts.map +1 -0
  164. package/dist/validation/assignment-lint.js +132 -0
  165. package/package.json +4 -2
package/README.md CHANGED
@@ -385,9 +385,15 @@ The wait clock always survives an escalation: requeues go through `addAssignment
385
385
 
386
386
  Subscribe via `onAssignmentLifecycle` for `escalated` (`{ fromWorkerId, level, blockedPreviousOwner }`) and `escalationExhausted` (`{ level, parked }`) events; `expired` is still emitted first, so existing consumers are unaffected. Parked assignments are reachable with `getParkedAssignments()`, returned to the queue with `unparkAssignment(id, { resetEscalation? })`, and report `_status: 'parked'` from `getAssignment()` — they never read as "not found". `getEscalationLevel(id)` reports how far an assignment has climbed.
387
387
 
388
+ #### `failed` — the worker-reported outcome
389
+
390
+ `failAssignment(userId, assignmentId, reason?)` now emits `{ kind: 'failed', taskId, workerId, reason?, failedAt }`. It previously emitted nothing at all, so an explicit failure was the one terminal transition invisible to `onAssignmentLifecycle` (the workflow event stream did hear it). It is deliberately distinct from `completionBreached` with `action: 'fail'`: that is a deadline a policy acted on, this is a person reporting that the work could not be done. No `assignment` snapshot rides along — the record stays in the completed store carrying `_failedBy` / `_failureReason`, so `getAssignment()` can still answer for it.
391
+
392
+ A host that `switch`es exhaustively over `AssignmentLifecycleEvent` will see a new `kind` here; the union is additive and every existing branch keeps its shape.
393
+
388
394
  ### SLA policies (`Assignment.sla`)
389
395
 
390
- Escalation owns the *response* side (how long a matched user has to accept). `SlaPolicy` owns everything after that: how long the accepting user has to finish, how many times the work may be refused before it is pulled from rotation, and an absolute freshness cutoff after which the work is moot.
396
+ Escalation owns the _response_ side (how long a matched user has to accept). `SlaPolicy` owns everything after that: how long the accepting user has to finish, how many times the work may be refused before it is pulled from rotation, and an absolute freshness cutoff after which the work is moot.
391
397
 
392
398
  ```ts
393
399
  await matcher.addAssignment({
@@ -404,14 +410,14 @@ await matcher.addAssignment({
404
410
  matcher.startMaintenance(); // SLA clocks are swept by the maintenance tick
405
411
  ```
406
412
 
407
- | Field | Meaning | Default |
408
- | -------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------- |
409
- | `completeWithinMs` | Completion deadline, measured from `acceptAssignment()`. Swept by `processCompletionDeadlines()` | none |
410
- | `expireAfterMs` | Absolute freshness cutoff from **first enqueue** — survives requeues and applies in every state (queued, pending, accepted). Swept by `processSlaExpiries()` | none |
411
- | `maxRejections` | Refusal budget. Explicit `rejectAssignment()` calls **and** blocking no-response expiries (`escalation.onNoResponse: 'block'`) count; idle/operator releases don't | none |
412
- | `onCompletionBreach` | `'notify'` (event only, worker keeps it) / `'requeue'` (take back, block breacher) / `'fail'` / `'park'` | `'notify'` |
413
- | `onMaxRejections` | `'park'` / `'fail'` / `'keep'` (keep offering; budget becomes measurement-only) | `'park'` |
414
- | `onExpire` | `'drop'` (remove entirely) / `'park'` (retain for inspection) | `'drop'` |
413
+ | Field | Meaning | Default |
414
+ | -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ---------- |
415
+ | `completeWithinMs` | Completion deadline, measured from `acceptAssignment()`. Swept by `processCompletionDeadlines()` | none |
416
+ | `expireAfterMs` | Absolute freshness cutoff from **first enqueue** — survives requeues and applies in every state (queued, pending, accepted). Swept by `processSlaExpiries()` | none |
417
+ | `maxRejections` | Refusal budget. Explicit `rejectAssignment()` calls **and** blocking no-response expiries (`escalation.onNoResponse: 'block'`) count; idle/operator releases don't | none |
418
+ | `onCompletionBreach` | `'notify'` (event only, worker keeps it) / `'requeue'` (take back, block breacher) / `'fail'` / `'park'` | `'notify'` |
419
+ | `onMaxRejections` | `'park'` / `'fail'` / `'keep'` (keep offering; budget becomes measurement-only) | `'park'` |
420
+ | `onExpire` | `'drop'` (remove entirely) / `'park'` (retain for inspection) | `'drop'` |
415
421
 
416
422
  Semantics worth knowing:
417
423
 
@@ -427,24 +433,67 @@ Lifecycle events: `completionBreached` (`{ workerId, action }`), `slaExpired` (`
427
433
 
428
434
  **Learning integration.** Breach outcomes flow into the contextual bandit as ordinary rewards (TTL expiry and completion breach → `expire`; completion breach with `'fail'` → `fail`), so per-user/per-tag stats and the automatic routing-weight vetoes pick up chronic breachers with no extra configuration. The default feature extractor also emits `sla:hasDeadline` and `sla:tightness` (normalized against `learningSlaTightnessReferenceMs`, default 1h) for assignments with a completion deadline, letting the model learn that tight-deadline work needs fast finishers. Custom feature extractors are unaffected.
429
435
 
436
+ ### Scheduled assignments (`Assignment.schedule`)
437
+
438
+ Escalation owns the response clock and `SlaPolicy` owns the post-accept contract; `SchedulePolicy` owns the **offer window**: when the work becomes visible to matching at all (`notBefore`), and how long an offer may go un-accepted before it is pulled (`notAfter`). Acceptance ends the schedule's authority — completion pressure is `sla.completeWithinMs`'s job.
439
+
440
+ ```ts
441
+ await matcher.addAssignment({
442
+ id: 'callback-42',
443
+ tags: ['callbacks'],
444
+ schedule: {
445
+ notBefore: Date.parse('2026-08-07T09:00:00Z'), // invisible to matching until 9:00
446
+ notAfter: Date.parse('2026-08-07T11:00:00Z'), // parked if nobody accepted by 11:00
447
+ onMiss: 'park', // or 'drop'
448
+ },
449
+ });
450
+
451
+ matcher.startMaintenance(); // schedule clocks are swept by the maintenance tick
452
+ ```
453
+
454
+ | Field | Meaning | Default |
455
+ | ----------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- |
456
+ | `notBefore` | Epoch ms. Held in a dedicated scheduled store — no matching, no workflow targeting, no wait clock — until the scheduled sweep enqueues it | none |
457
+ | `notAfter` | Epoch ms. Absolute offer deadline; applies only while un-accepted (scheduled, queued, or pending). Valid without `notBefore`. Must be `> notBefore` when both are set | none |
458
+ | `onMiss` | `'park'` (retain for inspection) / `'drop'` (remove entirely) when `notAfter` elapses un-accepted | `'park'` |
459
+
460
+ Semantics worth knowing:
461
+
462
+ - **Clocks anchor at activation.** A held assignment has no wait clock and no SLA freshness stamp; both start when the sweep (or a forced early assign) enqueues it. `getQueueStats().oldestWaitingMs` never counts held work.
463
+ - **Acceptance kills the offer clock.** Once accepted, a passing `notAfter` is a non-event — late completion is governed by `sla.completeWithinMs` alone.
464
+ - **A miss beats activation.** When one sweep finds both timestamps in the past, the assignment parks/drops directly; it never transits the queue or emits `scheduleActivated`.
465
+ - **The offer deadline never extends.** `notAfter` is absolute, so rejection requeues carry the same deadline — a re-offered assignment can still miss.
466
+ - **Fire-once, replica-safe.** Sweep entries are claimed with a `ZREM` before acting, so concurrent replicas can run the sweep in parallel.
467
+ - **Sweep granularity.** Schedule clocks fire on the maintenance tick (`processScheduledAssignments()`), not at the exact millisecond.
468
+ - **Recurrence is out of scope.** Materialize each occurrence as its own assignment from your scheduler/shift tool; re-adding an existing id never resets its clocks, so materialization is idempotent. The [`scheduling` module](#shift-scheduling-scheduling-module) is that shift tool if you need one — it produces dated occurrences you can feed straight in.
469
+ - **Operator override.** `assignToUser(id, userId)` refuses held assignments; `{ force: true }` early-activates (clocks anchor there). If the user then rejects and `notBefore` is still in the future, the assignment returns to the scheduled store.
470
+ - **Unparking.** `unparkAssignment(id, { resetSchedule: true })` strips the schedule policy; without it a miss-parked assignment misses again on the next sweep.
471
+
472
+ Lifecycle events: `scheduleActivated` (`{ taskId, at }`) and `scheduleMissed` (`{ ownerId, state, action, assignment }` — the snapshot is the last surviving copy on the `'drop'` path).
473
+
474
+ **Introspection.** Held assignments are listed by `getScheduledAssignments()`, read as `_status: 'scheduled'` from `getAssignment()`, and counted separately in `getAssignmentCounts().scheduled` and `getQueueStats().scheduled` (excluded from `total` and pagination, like parked items). Misses bump the `scheduleMisses` counter in `getSlaStats(tag?)`.
475
+
476
+ **Learning integration.** Misses feed the contextual bandit as `expire` outcomes — a pending-state miss penalizes the user who sat on the offer, so automatic routing-weight vetoes pick up chronic missers with no extra configuration.
477
+
430
478
  ### `startMaintenance(options?)` / `stopMaintenance()` / `runMaintenanceOnce(options?)`
431
479
 
432
480
  Deadlines are not self-firing — something has to sweep them. `startMaintenance()` runs every enabled sweep on one tick:
433
481
 
482
+ - `scheduled` (default on) — schedule activations and offer-window misses (`schedule.notBefore` / `schedule.notAfter`). Runs first in the pass so a just-activated assignment's other clocks start from the same tick.
434
483
  - `responseDeadlines` (default on) — expiry, escalation, parking.
435
484
  - `completionDeadlines` (default on) — SLA completion deadlines (`sla.completeWithinMs`).
436
485
  - `slaExpiries` (default on) — SLA freshness TTLs (`sla.expireAfterMs`).
437
486
  - `workflowStepTimeouts` (default on when `enableWorkflows`) — the step-timeout index. **Note:** `startOrchestrator()` consumes the event stream but does not sweep step timeouts; without maintenance, `timeoutMs` on a workflow step never fires.
438
487
  - `idleUsers` (default on when `idleUserTimeoutMs` is set).
439
488
 
440
- `runMaintenanceOnce()` does one pass and returns a `MaintenanceReport` (`expiredMatches`, `escalations`, `parked`, `completionBreaches`, `slaExpiries`, `expiredSteps`, `releasedIdleUsers`, `tookMs`) — use it from a host that already owns a tick (a multi-tenant worker, a serverless schedule) instead of holding a timer per matcher. `startAutoReleaseInterval()` remains as a deprecated alias that sweeps response deadlines only.
489
+ `runMaintenanceOnce()` does one pass and returns a `MaintenanceReport` (`expiredMatches`, `escalations`, `parked`, `completionBreaches`, `slaExpiries`, `scheduleActivations`, `scheduleMisses`, `expiredSteps`, `releasedIdleUsers`, `tookMs`) — use it from a host that already owns a tick (a multi-tenant worker, a serverless schedule) instead of holding a timer per matcher. `startAutoReleaseInterval()` remains as a deprecated alias that sweeps response deadlines only.
441
490
 
442
491
  ### `getQueueStats(): Promise<QueueStats>`
443
492
 
444
493
  Live operational snapshot for dashboards:
445
494
 
446
- - `queued` / `pending`: assignment counts by state.
447
- - `oldestWaitingMs`: age of the longest-waiting unaccepted assignment, or `null`. The wait clock starts at first enqueue and survives reject/expiry requeues; it stops when a user accepts the assignment or it is removed.
495
+ - `queued` / `pending` / `scheduled`: assignment counts by state (`scheduled` = held by `schedule.notBefore`, not yet in the queue).
496
+ - `oldestWaitingMs`: age of the longest-waiting unaccepted assignment, or `null`. The wait clock starts at first enqueue and survives reject/expiry requeues; it stops when a user accepts the assignment or it is removed. Held (scheduled) assignments have no wait clock yet.
448
497
  - `perUser`: every user's `backlog` depth, effective `maxBacklogSize` cap, and `paused` state.
449
498
 
450
499
  ### `removeUser(userId: string): Promise<void>`
@@ -757,6 +806,86 @@ const preview = await matcher.previewMatch(
757
806
  Use it for autosuggestion UIs: render the ranked best-fit workers with score
758
807
  breakdowns and blocked reasons before the operator commits the task.
759
808
 
809
+ ### Pre-flight checks (`lintAssignment` / `checkAssignmentReadiness`)
810
+
811
+ The runtime is deliberately forgiving — an invalid schedule window or an
812
+ unusable SLA object normalizes away silently, and an assignment whose tags no
813
+ user carries just sits queued. The pre-flight helpers surface those problems
814
+ _before_ `addAssignment()`:
815
+
816
+ ```typescript
817
+ import { lintAssignment } from 'assignment-user-matcher';
818
+
819
+ // Pure and Redis-free — run it host-side, in a form validator, anywhere:
820
+ const issues = lintAssignment(assignment, { matchExpirationMs: 60000 });
821
+ // [{ severity: 'error', code: 'schedule-window-inverted', message: '...' }, ...]
822
+
823
+ // Live version: same lint plus checks against the current user pool:
824
+ const report = await matcher.checkAssignmentReadiness(assignment);
825
+ // {
826
+ // issues, // lint + live findings, each { severity, code, message, tag? }
827
+ // eligibleUserCount, // who could take it right now (same rules as previewMatch)
828
+ // uncoveredTags, // tags no active (non-paused) user can serve
829
+ // evaluatedAt,
830
+ // }
831
+ ```
832
+
833
+ Static codes (from `lintAssignment`): `no-tags`, `schedule-window-inverted`,
834
+ `schedule-ignored`, `schedule-window-elapsed`, `schedule-notbefore-past`,
835
+ `offer-window-tight` (offer window shorter than one response deadline),
836
+ `schedule-notafter-shadowed-by-sla-ttl` (the freshness TTL fires first, so
837
+ `notAfter` never does), `sla-ignored`, `escalation-ignored`.
838
+
839
+ Live codes (from `checkAssignmentReadiness`): `duplicate-id` (re-adding keeps
840
+ the original wait/TTL clocks), `tag-uncovered` (per tag; paused users don't
841
+ count as coverage), `no-eligible-users`.
842
+
843
+ Tag coverage mirrors the matching semantics exactly: users with
844
+ `routingWeights` cover a tag when the effective weight is positive (wildcards
845
+ honored, weight `0` is a veto); users without them cover it via tag
846
+ membership. `checkAssignmentReadiness()` is read-only and safe to call from
847
+ dashboards or admission pipelines; it never claims or records anything.
848
+
849
+ ### Queue overlook (`auditQueue`)
850
+
851
+ When work sits in the queue and nobody knows why, `auditQueue()` answers both
852
+ of the usual questions at once — _who is blocked by what_ and _is anything
853
+ sweeping the clocks_:
854
+
855
+ ```typescript
856
+ const audit = await matcher.auditQueue({ minWaitingMs: 60_000 });
857
+ // {
858
+ // scanned, // queued assignments examined (longest-waiting first)
859
+ // entries: [{ // assignments nobody can take right now
860
+ // assignmentId, tags, waitingMs,
861
+ // eligibleUserCount, // 0 for stuck work
862
+ // uncoveredTags, // tags no active user can serve
863
+ // blockers, // reason -> blocked-user count, e.g.
864
+ // }], // { backlogFull: 3, paused: 1, rejectedPreviously: 1, noTagMatch: 4 }
865
+ // sweepBacklog: { // past-due entries sitting unswept in each deadline index
866
+ // scheduleActivations, scheduleMisses,
867
+ // responseDeadlines, completionDeadlines, slaExpiries,
868
+ // },
869
+ // }
870
+ ```
871
+
872
+ - **`blockers`** tallies the hard-rule reasons across ineligible users, using
873
+ the same `MatchTraceReason` kinds as decision traces (`paused`,
874
+ `backlogFull`, `rejectedPreviously`, `assignmentVeto`, `cidrMismatch`,
875
+ `skillThreshold`, `geoDistance`, …). Users excluded by plain tag/weight
876
+ mismatch are counted as `noTagMatch`.
877
+ - **`sweepBacklog`** counts deadline-index entries already in the past.
878
+ Values that stay nonzero across calls are the classic "assignments never
879
+ process" cause: no maintenance tick is running — start one with
880
+ `startMaintenance()` or call `runMaintenanceOnce()` from your own tick.
881
+ - Note that with `enableDefaultMatching` on (the default), tag-mismatched
882
+ work is still routable through the injected `default` tag, so stuckness
883
+ then comes from paused users, full backlogs, vetoes, and rejections rather
884
+ than tag gaps.
885
+ - Options: `limit` (default 100, longest-waiting first), `minWaitingMs`
886
+ (ignore fresh work), `includeHealthy` (also report matchable entries).
887
+ Read-only, O(scanned × users) — a diagnostic, not a hot path.
888
+
760
889
  ## Adaptive Matching with Reinforcement Learning
761
890
 
762
891
  The matcher includes an opt-in, Redis-backed contextual bandit that learns from
@@ -1368,6 +1497,105 @@ Performance test finished.
1368
1497
 
1369
1498
  This demonstrates the library's impressive performance even with large numbers of assignments and shows how subsequent matching operations can be even faster after initial assignment distribution.
1370
1499
 
1500
+ ## Shift Scheduling (`scheduling` module)
1501
+
1502
+ A companion engine for **rostering**: generating fair, constraint-compliant timetables that assign employees to shifts over a period. Unlike the matcher, this module is **pure and Redis-free** — `solveSchedule(input)` is a synchronous in-process function; wrap it in your own queue if you need one.
1503
+
1504
+ ```ts
1505
+ import { solveSchedule } from 'assignment-user-matcher';
1506
+
1507
+ const result = solveSchedule({
1508
+ period: { startDate: '2026-01-05', endDate: '2026-01-11' },
1509
+ employees: [
1510
+ { id: 'alice', tags: ['nurse'], timeOff: [{ date: '2026-01-07' }], maxHoursForPeriod: 40 },
1511
+ { id: 'bob', tags: ['nurse', 'lead'], timeOff: [] },
1512
+ ],
1513
+ shifts: [
1514
+ { id: 'day', name: 'Day', startTime: '08:00', endTime: '16:00', minEmployees: 1, tagRequirements: { nurse: 1 } },
1515
+ { id: 'night', name: 'Night', startTime: '22:00', endTime: '06:00', minEmployees: 1 }, // overnight
1516
+ ],
1517
+ objective: 'balanced', // or 'standard'
1518
+ seed: 42, // reproducible runs
1519
+ timeBudgetMs: 10_000, // improvement-loop wall clock
1520
+ });
1521
+
1522
+ // result.status: 'optimal' | 'feasible' | 'partial'
1523
+ // result.assignments: [{ shiftInstanceId: 'day@2026-01-05', employeeId, date, reasons }]
1524
+ // result.violations: structured report of unfilled slots, tag shortfalls, soft min-hours misses
1525
+ ```
1526
+
1527
+ Modeling rules: every shift occurrence gets a unique **shift-instance id** (`<templateId>@<date>`), overnight shifts (`endTime <= startTime`) roll into the next day explicitly, and durations are resolved through a **DST-correct clock** — pass `period.timeZone` and a 22:00–06:00 shift is 7h on the spring transition and 9h on the autumn one, not 8h. Working time is the span less `unpaidBreakMinutes`, scaled by any duty classification, so hour budgets see 8h15 for a 9h shift with a 45-minute break.
1528
+
1529
+ Constraints are self-contained TypeScript classes behind a common interface. Override hardness/weights or register customs via `constraints: { overrides, custom }`.
1530
+
1531
+ ### Working-time rules
1532
+
1533
+ The `rules` field is the labour-law layer. Every field is optional and **every value is caller-supplied** — the library ships the _shapes_ EU working-time law takes, never a jurisdiction's numbers, because those differ per member state, per sector and per collective agreement, and change without notice. This is plain JSON, so a template or an LLM can produce it and the same payload can back a public API.
1534
+
1535
+ ```ts
1536
+ const result = solveSchedule({
1537
+ period: { startDate: '2026-01-05', endDate: '2026-02-01', timeZone: 'Europe/Berlin' },
1538
+ employees,
1539
+ shifts,
1540
+ rules: {
1541
+ dailyRest: { minMinutes: 660 }, // Art 3 floor; ES/RO use 720
1542
+ weeklyRest: { minMinutes: 2100, windowDays: 7 }, // 35h; EE uses 2880
1543
+ workingTime: {
1544
+ maxPerDayMinutes: 600, // DE ArbZG §3
1545
+ rollingAverages: [{ maxMinutes: 2880, windowDays: 7 }], // 48h in ANY 7 days
1546
+ },
1547
+ nightWork: { window: { from: '23:00', to: '06:00' }, maxShiftMinutes: 480 },
1548
+ breaks: [
1549
+ { afterMinutes: 360, minMinutes: 30 },
1550
+ { afterMinutes: 540, minMinutes: 45 },
1551
+ ],
1552
+ consecutive: { maxWorkingDays: 6, forbiddenSuccessions: [{ fromTag: 'night', toTag: 'early' }] },
1553
+ fairness: [
1554
+ { dimension: 'nights', weight: 2 },
1555
+ { dimension: 'weekends', weight: 1 },
1556
+ ],
1557
+ },
1558
+ history, // previous-period tail, so the 1st of the month is not non-compliant by construction
1559
+ });
1560
+ ```
1561
+
1562
+ Rules cover: daily rest (rolling window, reduction allowances, clock-band containment), weekly rest (two-level floor plus average), rolling working-time averages with absence neutralisation, overtime (ordinary-vs-overtime split, consent, per-day and per-window caps, time-off-in-lieu), duty-type volume quotas, night work (configurable band, per-shift cap, averaging, hazardous absolute cap, volume quotas, prohibited bands), in-shift breaks, consecutive days and nights, forbidden shift successions, minimum start interval, Sunday and holiday rules, minimum engagement, publication and change notice, availability and preferences, date-valid qualifications, group composition, statutory protections, contract limits, and fairness.
1563
+
1564
+ `Employee.rules` overrides the global set per person — that is how age classes, individual opt-outs and hazardous-work status are expressed. `Employee.personId` aggregates several contracts onto one natural person, which rest and window rules require.
1565
+
1566
+ Break entitlements are checked against shift design: `unpaidBreakMinutes` (deducted from working time) and `paidBreakMinutes` (working time, and the only thing that discharges a `paid: true` break rule). Deadline arithmetic that needs a "now" — notably whether a cancellation of a published assignment fell inside `notice.cancellationDeadlineMinutes` — is anchored by the optional `asOf` input; without it every cancellation is treated as late, the conservative reading.
1567
+
1568
+ **Overtime** is regulated separately from total working time where national law does so. `rules.overtime` defines the ordinary baseline (`ordinaryPerDayMinutes` / `ordinaryPerWeekMinutes`; a person's `contract.weeklyMinutes` overrides the weekly figure, so a part-timer's overtime starts at their agreed hours), caps the overtime portion per rolling 24h or per rolling window, and with `requiresConsent` makes any overtime conditional on the employee's recorded `overtimeConsent`. With `compensation: 'timeOff'`, each employee's period overtime accrues a `timeOffInLieu` entry in `result.ledger`.
1569
+
1570
+ **Duty-type quotas** (`rules.dutyQuotas`) cap how much of one duty type a person may hold over a rolling window, matched on `shiftTypeTag` — e.g. "at most 30 hours of stand-by in any 28 days". `maxMinutes` counts _elapsed_ duty minutes (a stand-by cap limits clock occupation, which is exactly the time a duty classification keeps out of the working-time budget); `maxCount` caps occurrences.
1571
+
1572
+ ### Labour cost
1573
+
1574
+ `Employee.cost` prices the roster: hourly rate, premium bands (`night` / `sunday` / `holiday`, stacked additively or by maximum), an overtime step (`overtimeAfterMinutes` + `overtimeMultiplier`), and a `standbyRateFraction` paying the non-working remainder of a duty-classified span (e.g. stand-by owed at 1/10 of the wage). When any employee carries a cost model, `result.cost` reports `{ totalCents, byEmployee }`.
1575
+
1576
+ Cost joins the _solve_ objective only when asked: `objectives: { costWeightPerEuro: n }` adds a soft term of `n` points per euro, so the solver prefers cheaper rosters among otherwise-equal ones — and can never trade a legal breach or an unfilled slot for a saving, because score levels are lexicographic. The same arithmetic drives `repairSchedule`'s per-candidate `marginalCostCents` (which accounts for the overtime step, so the same shift is dearer in the hands of someone already at their threshold). Objective weights are hashed into `provenance.rulesHash` alongside the rules.
1577
+
1578
+ ### Operational APIs
1579
+
1580
+ ```ts
1581
+ checkCompliance(input, roster); // validate a hand-edited or externally-produced roster
1582
+ explainCandidate(input, who, shift); // every rule's verdict, with numbers
1583
+ repairSchedule(input, disruption, published); // minimal-perturbation re-plan + ranked candidates
1584
+ diagnoseInfeasibility(input); // why it cannot be solved, before solving
1585
+ ```
1586
+
1587
+ `repairSchedule` is the call-in path: everything untouched is pinned, so you get a **diff** rather than an unrecognisable new roster, plus a ranked list of who can lawfully cover, each with compliance verdicts, marginal cost and a rationale. All four share the solver's constraint set — there is deliberately no second validation path.
1588
+
1589
+ ### Compliance boundary
1590
+
1591
+ Ranking uses declared qualifications, contractual availability, legal limits, cost, and fairness debt computed from **realised** assignment counts. It never consumes reliability scores, no-show prediction, acceptance history or learned per-worker behaviour, and the module is not wired to the matcher's learning layer. Under AI Act Annex III point 4(b), allocating on individual behaviour or traits is high-risk, and the Art 6(3) narrow-task filter has an absolute carve-back for profiling — so that boundary is what keeps this a constraint solver. `result.provenance` records `{ engineVersion, seed, rulesHash, profilingFree }` for audit.
1592
+
1593
+ Infeasibility is never silent: understaffed periods return a best-effort partial schedule with `status: 'partial'`, an `unfilledSlots` count, and per-slot violations; slots with zero eligible employees are reported before the search runs. Violations carry `actual`, `required`, `unit` and `citation`. Malformed input throws `ScheduleValidationError`.
1594
+
1595
+ `'optimal'` means _no known improvement_, not a proof of optimality.
1596
+
1597
+ Scale (500 employees × 31 days × 3 shifts/day, full EU rule set — `pnpm benchmark:scheduling`): first feasible ~0.4s, converged within the time budget, compliance re-check ~0.1s, repair ~0.15s.
1598
+
1371
1599
  ## Important Considerations (Disclaimer)
1372
1600
 
1373
1601
  - **Optimized for a Specific Use Case:** `assignment-user-matcher` is primarily designed and optimized for scenarios with a **relatively small set of active users processing a large volume of incoming assignments** (e.g., call centers, customer support teams, back-office operations). While it might work for other scenarios, its performance characteristics are best suited for this model.
package/dist/index.d.ts CHANGED
@@ -1,9 +1,11 @@
1
1
  import AssignmentMatcher from './matcher.class';
2
- export type { Assignment, MatcherOptions, options, Stats, QueueStats, UserLoadInfo, User, GeoMatchResult, GeoMatchingFunction, ReliabilityMetrics, AssignmentStatus, FairnessMode, FairnessConfig, MatchTraceReason, MatchCandidateTrace, MatchDecisionTrace, MatchDecisionMode, MatchExplanation, MatchPreview, MatchPreviewInput, DecisionTraceQuery, AssignmentLifecycleEvent, EscalationPolicy, EscalationSweepResult, CompletionDeadlineSweepResult, SlaExpirySweepResult, SlaPolicy, SlaStats, MaintenanceOptions, MaintenanceReport, } from './matcher.class';
2
+ export type { Assignment, MatcherOptions, options, Stats, QueueStats, UserLoadInfo, User, GeoMatchResult, GeoMatchingFunction, ReliabilityMetrics, AssignmentStatus, FairnessMode, FairnessConfig, MatchTraceReason, MatchCandidateTrace, MatchDecisionTrace, MatchDecisionMode, MatchExplanation, MatchPreview, MatchPreviewInput, DecisionTraceQuery, AssignmentLifecycleEvent, EscalationPolicy, EscalationSweepResult, CompletionDeadlineSweepResult, SlaExpirySweepResult, SlaPolicy, SlaStats, SchedulePolicy, ScheduleSweepResult, AssignmentLintIssue, AssignmentLintContext, AssignmentReadinessReport, QueueAuditOptions, QueueAuditEntry, QueueAuditReport, MaintenanceOptions, MaintenanceReport, } from './matcher.class';
3
+ export { lintAssignment, userCoversTag } from './validation/assignment-lint';
3
4
  export type { WorkflowDefinition, WorkflowDefinitionInput, WorkflowDefinitionSummary, WorkflowInstance, WorkflowInstanceStatus, WorkflowStep, WorkflowRouting, WorkflowTargetUser, WorkflowMachineTask, WorkflowExternalTask, WorkflowTaskType, WorkflowEvent, WorkflowEventType, AssignmentResult, ParallelBranchState, DeadLetterEntry, AuditEntry, CircuitBreakerState, WorkflowInstanceWithSnapshot, WorkflowInstanceQuery, WorkflowInstancePage, WorkflowTransition, LearningOutcome, LearningRewards, LearningFeatures, LearningAssignmentContext, LearningFeatureExtractor, LearningDecisionRecord, LearningEpisodeRecord, LearningSignals, LearningSample, LearningStats, LearningTagStat, AutoRoutingWeightsOptions, AutoRoutingWeightsPolicy, PendingAssignmentInfo, WorkflowEngineMetrics, MachineTaskHandler, WorkflowHost, PaginationOptions, PaginationResult, AssignmentCounts, } from './matcher.class';
4
5
  export { explainMatchScore, type MatchScoreExplanation } from './scoring/match-score';
5
6
  export { extractMatchFeatures, cosineSimilarity } from './learning/features';
6
7
  export { synthesizeRoutingWeights, DEFAULT_AUTO_WEIGHTS_OPTIONS } from './learning/auto-weights';
8
+ export { ShiftScheduler, solveSchedule, ScheduleValidationError, DEFAULT_MIN_REST_MINUTES, PeriodClock, checkCompliance, explainCandidate, repairSchedule, rankCandidates, diagnoseInfeasibility, hours, days, weeklyAverageOver, type AssignmentPair, type AvailabilityRule, type ComplianceReport, type ConstraintOptions, type ConstraintViolation, type DailyRestRule, type Disruption, type DutyClassification, type DutyQuota, type Employee, type HistoricalAssignment, type InfeasibilityReport, type LedgerEntry, type ModelContext, type NightWorkRule, type ObjectiveWeights, type OvertimeRule, type RepairCandidate, type RepairResult, type RuleVerdict, type ScheduleInput, type ScheduleResult, type ScheduledAssignment, type SchedulingConstraint, type SearchState, type Severity, type ShiftInstance, type ShiftTemplate, type TimeOffEntry, type WeeklyRestRule, type WorkingTimeLimits, type WorkingTimeRules, } from './scheduling';
7
9
  export { WorkflowBuilder, WorkflowStepBuilder, workflow, linearWorkflow, approvalWorkflow } from './workflow-builder';
8
10
  export { normalizeWorkflowDefinition, validateWorkflowDefinition } from './workflow-validation';
9
11
  export * from './utils/cidr';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,iBAAiB,MAAM,iBAAiB,CAAC;AAEhD,YAAY,EACR,UAAU,EACV,cAAc,EACd,OAAO,EACP,KAAK,EACL,UAAU,EACV,YAAY,EACZ,IAAI,EACJ,cAAc,EACd,mBAAmB,EACnB,kBAAkB,EAClB,gBAAgB,EAChB,YAAY,EACZ,cAAc,EACd,gBAAgB,EAChB,mBAAmB,EACnB,kBAAkB,EAClB,iBAAiB,EACjB,gBAAgB,EAChB,YAAY,EACZ,iBAAiB,EACjB,kBAAkB,EAClB,wBAAwB,EACxB,gBAAgB,EAChB,qBAAqB,EACrB,6BAA6B,EAC7B,oBAAoB,EACpB,SAAS,EACT,QAAQ,E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,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,iBAAiB,MAAM,iBAAiB,CAAC;AAEhD,YAAY,EACR,UAAU,EACV,cAAc,EACd,OAAO,EACP,KAAK,EACL,UAAU,EACV,YAAY,EACZ,IAAI,EACJ,cAAc,EACd,mBAAmB,EACnB,kBAAkB,EAClB,gBAAgB,EAChB,YAAY,EACZ,cAAc,EACd,gBAAgB,EAChB,mBAAmB,EACnB,kBAAkB,EAClB,iBAAiB,EACjB,gBAAgB,EAChB,YAAY,EACZ,iBAAiB,EACjB,kBAAkB,EAClB,wBAAwB,EACxB,gBAAgB,EAChB,qBAAqB,EACrB,6BAA6B,EAC7B,oBAAoB,EACpB,SAAS,EACT,QAAQ,EACR,cAAc,EACd,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,yBAAyB,EACzB,iBAAiB,EACjB,eAAe,EACf,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,GACpB,MAAM,iBAAiB,CAAC;AAGzB,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAG7E,YAAY,EACR,kBAAkB,EAClB,uBAAuB,EACvB,yBAAyB,EACzB,gBAAgB,EAChB,sBAAsB,EACtB,YAAY,EACZ,eAAe,EACf,kBAAkB,EAClB,mBAAmB,EACnB,oBAAoB,EACpB,gBAAgB,EAChB,aAAa,EACb,iBAAiB,EACjB,gBAAgB,EAChB,mBAAmB,EACnB,eAAe,EACf,UAAU,EACV,mBAAmB,EACnB,4BAA4B,EAC5B,qBAAqB,EACrB,oBAAoB,EACpB,kBAAkB,EAClB,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,yBAAyB,EACzB,wBAAwB,EACxB,sBAAsB,EACtB,qBAAqB,EACrB,eAAe,EACf,cAAc,EACd,aAAa,EACb,eAAe,EACf,yBAAyB,EACzB,wBAAwB,EACxB,qBAAqB,EACrB,qBA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EAAE,2BAA2B,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AAGhG,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,OAAO,EAAE,iBAAiB,EAAE,KAAK,WAAW,EAAE,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AAExF,OAAO,EAAE,iBAAiB,EAAE,CAAC;AAC7B,eAAe,iBAAiB,CAAC"}
package/dist/index.js CHANGED
@@ -17,9 +17,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
17
17
  return (mod && mod.__esModule) ? mod : { "default": mod };
18
18
  };
19
19
  Object.defineProperty(exports, "__esModule", { value: true });
20
- exports.AssignmentMatcher = exports.createKeyBuilders = exports.validateWorkflowDefinition = exports.normalizeWorkflowDefinition = exports.approvalWorkflow = exports.linearWorkflow = exports.workflow = exports.WorkflowStepBuilder = exports.WorkflowBuilder = exports.DEFAULT_AUTO_WEIGHTS_OPTIONS = exports.synthesizeRoutingWeights = exports.cosineSimilarity = exports.extractMatchFeatures = exports.explainMatchScore = void 0;
20
+ exports.AssignmentMatcher = exports.createKeyBuilders = exports.validateWorkflowDefinition = exports.normalizeWorkflowDefinition = exports.approvalWorkflow = exports.linearWorkflow = exports.workflow = exports.WorkflowStepBuilder = exports.WorkflowBuilder = exports.weeklyAverageOver = exports.days = exports.hours = exports.diagnoseInfeasibility = exports.rankCandidates = exports.repairSchedule = exports.explainCandidate = exports.checkCompliance = exports.PeriodClock = exports.DEFAULT_MIN_REST_MINUTES = exports.ScheduleValidationError = exports.solveSchedule = exports.ShiftScheduler = exports.DEFAULT_AUTO_WEIGHTS_OPTIONS = exports.synthesizeRoutingWeights = exports.cosineSimilarity = exports.extractMatchFeatures = exports.explainMatchScore = exports.userCoversTag = exports.lintAssignment = void 0;
21
21
  const matcher_class_1 = __importDefault(require("./matcher.class"));
22
22
  exports.AssignmentMatcher = matcher_class_1.default;
23
+ // Pre-flight lint (pure, Redis-free) — usable host-side before addAssignment
24
+ var assignment_lint_1 = require("./validation/assignment-lint");
25
+ Object.defineProperty(exports, "lintAssignment", { enumerable: true, get: function () { return assignment_lint_1.lintAssignment; } });
26
+ Object.defineProperty(exports, "userCoversTag", { enumerable: true, get: function () { return assignment_lint_1.userCoversTag; } });
23
27
  // Decision-trace scoring explainer (same numbers as calculateMatchScore, plus reasons)
24
28
  var match_score_1 = require("./scoring/match-score");
25
29
  Object.defineProperty(exports, "explainMatchScore", { enumerable: true, get: function () { return match_score_1.explainMatchScore; } });
@@ -31,6 +35,24 @@ Object.defineProperty(exports, "cosineSimilarity", { enumerable: true, get: func
31
35
  var auto_weights_1 = require("./learning/auto-weights");
32
36
  Object.defineProperty(exports, "synthesizeRoutingWeights", { enumerable: true, get: function () { return auto_weights_1.synthesizeRoutingWeights; } });
33
37
  Object.defineProperty(exports, "DEFAULT_AUTO_WEIGHTS_OPTIONS", { enumerable: true, get: function () { return auto_weights_1.DEFAULT_AUTO_WEIGHTS_OPTIONS; } });
38
+ // Shift scheduling (pure, Redis-free rostering engine)
39
+ var scheduling_1 = require("./scheduling");
40
+ Object.defineProperty(exports, "ShiftScheduler", { enumerable: true, get: function () { return scheduling_1.ShiftScheduler; } });
41
+ Object.defineProperty(exports, "solveSchedule", { enumerable: true, get: function () { return scheduling_1.solveSchedule; } });
42
+ Object.defineProperty(exports, "ScheduleValidationError", { enumerable: true, get: function () { return scheduling_1.ScheduleValidationError; } });
43
+ Object.defineProperty(exports, "DEFAULT_MIN_REST_MINUTES", { enumerable: true, get: function () { return scheduling_1.DEFAULT_MIN_REST_MINUTES; } });
44
+ Object.defineProperty(exports, "PeriodClock", { enumerable: true, get: function () { return scheduling_1.PeriodClock; } });
45
+ // Operational APIs: validate a hand-edited roster, explain a candidate,
46
+ // repair around a call-in, diagnose an impossible problem.
47
+ Object.defineProperty(exports, "checkCompliance", { enumerable: true, get: function () { return scheduling_1.checkCompliance; } });
48
+ Object.defineProperty(exports, "explainCandidate", { enumerable: true, get: function () { return scheduling_1.explainCandidate; } });
49
+ Object.defineProperty(exports, "repairSchedule", { enumerable: true, get: function () { return scheduling_1.repairSchedule; } });
50
+ Object.defineProperty(exports, "rankCandidates", { enumerable: true, get: function () { return scheduling_1.rankCandidates; } });
51
+ Object.defineProperty(exports, "diagnoseInfeasibility", { enumerable: true, get: function () { return scheduling_1.diagnoseInfeasibility; } });
52
+ // Rule-authoring arithmetic (weekly-average → rolling-window-total, etc.)
53
+ Object.defineProperty(exports, "hours", { enumerable: true, get: function () { return scheduling_1.hours; } });
54
+ Object.defineProperty(exports, "days", { enumerable: true, get: function () { return scheduling_1.days; } });
55
+ Object.defineProperty(exports, "weeklyAverageOver", { enumerable: true, get: function () { return scheduling_1.weeklyAverageOver; } });
34
56
  // Workflow builder DSL
35
57
  var workflow_builder_1 = require("./workflow-builder");
36
58
  Object.defineProperty(exports, "WorkflowBuilder", { enumerable: true, get: function () { return workflow_builder_1.WorkflowBuilder; } });
@@ -1,7 +1,7 @@
1
1
  import { type PaginationOptions, type PaginationResult, type AssignmentCounts } from './queries/pagination';
2
2
  import { type WorkflowHost, type MachineTaskHandler } from './managers/WorkflowManager';
3
- import type { RedisClientType, User, Assignment, Stats, PendingAssignmentInfo, QueueStats, MatcherOptions, WorkflowDefinition, WorkflowDefinitionInput, WorkflowDefinitionSummary, WorkflowInstance, WorkflowEvent, AssignmentResult, DeadLetterEntry, AuditEntry, WorkflowInstanceWithSnapshot, WorkflowInstanceQuery, WorkflowInstancePage, LearningSignals, LearningSample, LearningStats, LearningTagStat, ReliabilityMetrics, CircuitBreakerState, WorkflowEngineMetrics, FairnessMode, FairnessConfig, MatchDecisionTrace, MatchExplanation, MatchPreview, MatchPreviewInput, DecisionTraceQuery, EscalationSweepResult, CompletionDeadlineSweepResult, SlaExpirySweepResult, MaintenanceOptions, MaintenanceReport, SlaStats } from './types/matcher';
4
- export type { RedisClientType, User, Assignment, Stats, PendingAssignmentInfo, QueueStats, UserLoadInfo, MatcherOptions, options, FairnessMode, FairnessConfig, GeoMatchResult, GeoMatchingFunction, ReliabilityMetrics, WorkflowInstanceStatus, WorkflowRouting, MatchTraceReason, MatchCandidateTrace, MatchDecisionTrace, MatchDecisionMode, MatchExplanation, MatchPreview, MatchPreviewInput, DecisionTraceQuery, AssignmentLifecycleEvent, EscalationPolicy, EscalationSweepResult, CompletionDeadlineSweepResult, SlaExpirySweepResult, MaintenanceOptions, MaintenanceReport, SlaPolicy, SlaStats, } from './types/matcher';
3
+ import type { RedisClientType, User, Assignment, Stats, PendingAssignmentInfo, QueueStats, MatcherOptions, WorkflowDefinition, WorkflowDefinitionInput, WorkflowDefinitionSummary, WorkflowInstance, WorkflowEvent, AssignmentResult, DeadLetterEntry, AuditEntry, WorkflowInstanceWithSnapshot, WorkflowInstanceQuery, WorkflowInstancePage, LearningSignals, LearningSample, LearningStats, LearningTagStat, ReliabilityMetrics, CircuitBreakerState, WorkflowEngineMetrics, FairnessMode, FairnessConfig, MatchDecisionTrace, MatchExplanation, MatchPreview, MatchPreviewInput, DecisionTraceQuery, EscalationSweepResult, CompletionDeadlineSweepResult, SlaExpirySweepResult, ScheduleSweepResult, MaintenanceOptions, MaintenanceReport, SlaStats, AssignmentReadinessReport, QueueAuditOptions, QueueAuditReport } from './types/matcher';
4
+ export type { RedisClientType, User, Assignment, Stats, PendingAssignmentInfo, QueueStats, UserLoadInfo, MatcherOptions, options, FairnessMode, FairnessConfig, GeoMatchResult, GeoMatchingFunction, ReliabilityMetrics, WorkflowInstanceStatus, WorkflowRouting, MatchTraceReason, MatchCandidateTrace, MatchDecisionTrace, MatchDecisionMode, MatchExplanation, MatchPreview, MatchPreviewInput, DecisionTraceQuery, AssignmentLifecycleEvent, EscalationPolicy, EscalationSweepResult, CompletionDeadlineSweepResult, SlaExpirySweepResult, ScheduleSweepResult, MaintenanceOptions, MaintenanceReport, SlaPolicy, SlaStats, SchedulePolicy, AssignmentLintIssue, AssignmentLintContext, AssignmentReadinessReport, QueueAuditOptions, QueueAuditEntry, QueueAuditReport, } from './types/matcher';
5
5
  export type { WorkflowDefinition, WorkflowDefinitionInput, WorkflowDefinitionSummary, WorkflowInstance, WorkflowStep, WorkflowTargetUser, WorkflowMachineTask, WorkflowExternalTask, WorkflowTaskType, WorkflowEvent, WorkflowEventType, AssignmentResult, ParallelBranchState, DeadLetterEntry, AuditEntry, CircuitBreakerState, WorkflowInstanceWithSnapshot, WorkflowInstanceQuery, WorkflowInstancePage, WorkflowTransition, LearningOutcome, LearningRewards, LearningFeatures, LearningAssignmentContext, LearningFeatureExtractor, LearningDecisionRecord, LearningEpisodeRecord, LearningSignals, LearningSample, LearningStats, LearningTagStat, AutoRoutingWeightsOptions, AutoRoutingWeightsPolicy, WorkflowEngineMetrics, } from './types/matcher';
6
6
  export type { MachineTaskHandler, WorkflowHost } from './managers/WorkflowManager';
7
7
  export type { AssignmentStatus, PaginationOptions, PaginationResult, AssignmentCounts } from './queries/pagination';
@@ -23,6 +23,9 @@ export default class AssignmentMatcher implements WorkflowHost {
23
23
  acceptedAssignmentsKey: string;
24
24
  private acceptedAssignmentsExpiryKey;
25
25
  private assignmentsSlaExpiryKey;
26
+ private scheduledAssignmentsKey;
27
+ private scheduledActivateAtKey;
28
+ private scheduleNotAfterKey;
26
29
  private keys;
27
30
  private enableWorkflows;
28
31
  private streamConsumerGroup;
@@ -258,6 +261,25 @@ export default class AssignmentMatcher implements WorkflowHost {
258
261
  previewMatch(input: MatchPreviewInput, opts?: {
259
262
  userIds?: string[];
260
263
  }): Promise<MatchPreview>;
264
+ /**
265
+ * Pre-flight check for an assignment before (or without) adding it:
266
+ * static policy lint (schedule conflicts, policies that would be silently
267
+ * ignored, missing tags) plus live findings against the current pool —
268
+ * tags no active user can serve, ids that already exist, and whether
269
+ * anyone is eligible right now under the same rules as `previewMatch()`.
270
+ * Read-only: never claims, writes, or records decisions.
271
+ */
272
+ checkAssignmentReadiness(assignment: Assignment): Promise<AssignmentReadinessReport>;
273
+ /**
274
+ * Queue-wide overlook: why is queued work not moving? Examines the
275
+ * longest-waiting queued assignments against the current pool (same hard
276
+ * rules as matching) and reports, per stuck assignment, who is blocked by
277
+ * what — plus the past-due entries sitting unswept in every deadline
278
+ * index, which is the tell-tale of a missing or lagging maintenance tick.
279
+ * Read-only and O(scanned assignments × users): a diagnostic, not a hot
280
+ * path — cap with `limit` on very large queues.
281
+ */
282
+ auditQueue(options?: QueueAuditOptions): Promise<QueueAuditReport>;
261
283
  /** Build and record this pass's decision traces; failures never break matching. */
262
284
  private recordPassTraces;
263
285
  /** Exclusion sets used to enrich traces with prefiltered (vetoed/rejected/paused) users. */
@@ -339,6 +361,7 @@ export default class AssignmentMatcher implements WorkflowHost {
339
361
  private initStreamConsumerGroup;
340
362
  addUser(user: User): Promise<User>;
341
363
  addAssignment(assignment: Assignment): Promise<Assignment>;
364
+ private enqueueAssignment;
342
365
  removeAssignment(id: string): Promise<string>;
343
366
  removeUser(userId: string): Promise<string>;
344
367
  /**
@@ -707,11 +730,25 @@ export default class AssignmentMatcher implements WorkflowHost {
707
730
  * holds it.
708
731
  */
709
732
  processSlaExpiries(): Promise<SlaExpirySweepResult>;
733
+ /**
734
+ * Sweep the schedule clocks: close offer windows (`schedule.notAfter`)
735
+ * that elapsed while un-accepted, then enqueue held assignments whose
736
+ * `notBefore` arrived. Misses run first so an assignment whose whole
737
+ * window is already past parks/drops directly instead of transiting the
738
+ * queue. Each zset entry fires once: the zRem claim makes concurrent
739
+ * replicas skip entries another sweep already took.
740
+ */
741
+ processScheduledAssignments(): Promise<ScheduleSweepResult>;
710
742
  /**
711
743
  * Assignments held out of matching because their escalation ladder was
712
744
  * exhausted under `onExhausted: 'park'` — nobody answered, all the way up.
713
745
  */
714
746
  getParkedAssignments(): Promise<Assignment[]>;
747
+ /**
748
+ * Assignments held out of the queue by `schedule.notBefore`, waiting for
749
+ * the scheduled sweep to activate them.
750
+ */
751
+ getScheduledAssignments(): Promise<Assignment[]>;
715
752
  /**
716
753
  * Return a parked assignment to the queue, optionally resetting its
717
754
  * escalation level so the ladder can run again from the top.
@@ -720,11 +757,16 @@ export default class AssignmentMatcher implements WorkflowHost {
720
757
  * Without it an unparked assignment whose freshness TTL already elapsed
721
758
  * will simply expire again on the next TTL sweep.
722
759
  *
760
+ * `resetSchedule` strips the schedule policy. Without it an assignment
761
+ * parked by a missed offer window (`schedule.notAfter`) will simply
762
+ * miss again on the next scheduled sweep.
763
+ *
723
764
  * @returns false when the id was not parked
724
765
  */
725
766
  unparkAssignment(id: string, opts?: {
726
767
  resetEscalation?: boolean;
727
768
  resetSla?: boolean;
769
+ resetSchedule?: boolean;
728
770
  }): Promise<boolean>;
729
771
  /** Current escalation level of an assignment (0 = never escalated). */
730
772
  getEscalationLevel(id: string): Promise<number>;
@@ -1 +1 @@
1
- {"version":3,"file":"matcher.class.d.ts","sourceRoot":"","sources":["../src/matcher.class.ts"],"names":[],"mappings":"AAMA,OAAO,EAMH,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACxB,MAAM,sBAAsB,CAAC;AAoC9B,OAAO,EAAmB,KAAK,YAAY,EAAE,KAAK,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AACzG,OAAO,KAAK,EACR,eAAe,EACf,IAAI,EACJ,UAAU,EACV,KAAK,EACL,qBAAqB,EACrB,UAAU,EAEV,cAAc,EACd,kBAAkB,EAClB,uBAAuB,EACvB,yBAAyB,EACzB,gBAAgB,EAChB,aAAa,EACb,gBAAgB,EAChB,eAAe,EACf,UAAU,EACV,4BAA4B,EAC5B,qBAAqB,EACrB,oBAAoB,EAKpB,eAAe,EACf,cAAc,EACd,aAAa,EACb,eAAe,EAGf,kBAAkB,EAClB,mBAAmB,EACnB,qBAAqB,EACrB,YAAY,EACZ,cAAc,EAGd,kBAAkB,EAElB,gBAAgB,EAChB,YAAY,EACZ,iBAAiB,EACjB,kBAAkB,EAGlB,qBAAqB,EACrB,6BAA6B,EAC7B,oBAAoB,EACpB,kBAAkB,EAClB,iBAAiB,EAEjB,QAAQ,EACX,MA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