@catalyst-cloud/schema 0.1.29 → 0.1.31

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@catalyst-cloud/schema",
3
- "version": "0.1.29",
3
+ "version": "0.1.31",
4
4
  "type": "module",
5
5
  "description": "Typed Drizzle schema = single source of truth for the per-tenant Mirror DO SQLite store (CTC-13 / ADR-0002). Shared by the mirror Worker, the host-sync replica, and the browser OPFS replica.",
6
6
  "license": "MIT",
@@ -1030,6 +1030,13 @@ export const durableEventTypes = {
1030
1030
  wakes: false,
1031
1031
  entity: "ticket",
1032
1032
  },
1033
+ "phase.pr.park": {
1034
+ rationale:
1035
+ "ADR-0039 durable-fact example ('a phase started, completed, failed, or was preempted'): the pr phase was PARKED — a terminal-until-released outcome, distinct from `phase.pr.failed`, which a reader must be able to tell apart (CTC-1322). Paired with the already-registered `phase.pr.revive`.",
1036
+ ingestVerb: "coordination.publish",
1037
+ wakes: false,
1038
+ entity: "ticket",
1039
+ },
1033
1040
  "phase.pr.preempted": {
1034
1041
  rationale:
1035
1042
  "ADR-0039 durable-fact example ('a phase started, completed, failed, or was preempted'): a higher-priority worker preempted this phase.",
@@ -1628,6 +1635,13 @@ export const durableEventTypes = {
1628
1635
  wakes: false,
1629
1636
  entity: "runner",
1630
1637
  },
1638
+ "runner.work.pr-lease-starved": {
1639
+ rationale:
1640
+ "CTC-1327 — a ticket whose `validate` phase completed (the ADVANCE_TABLE transition that moves it into the review slot) still has NO lease row at all for its `pr` phase after a bounded window: the dispatcher has never even attempted it. ADR-0039 durable-fact example ('work became eligible'/'a runner reported an outcome'), and the ticket's own Gherkin acceptance signal — a positive observation (leases carries no row for this ticket+phase, not an inferred absence), deduped per ticket via a bare `pr-lease-starved.<ticket>` id since the underlying condition resolves in one direction only: once any pr lease is ever granted this fact can never legitimately recur for the same ticket. NOT wake-eligible: nothing needs to wake a dispatcher on its own inability to dispatch — this is a diagnostic trail for a human/operator to notice, not a trigger.",
1641
+ ingestVerb: "coordination.publish",
1642
+ wakes: false,
1643
+ entity: "ticket",
1644
+ },
1631
1645
  "runner.work.reclaimable": {
1632
1646
  rationale:
1633
1647
  "CTC-1118 D5 — the MirrorDO alarm's existence-push found eligible work whose lease row still records a holder with a PAST deadline: a tenure that died without releasing, now being re-driven. ADR-0039 durable-fact example ('work became eligible'/'a runner reported an outcome') and the ticket's own Gherkin acceptance signal — a positive observation (a deadline verifiably passed while a holder was recorded), deduped per lapsed tenure via (ticket, phase, generation) so a unit that stays eligible across several alarm passes does not re-emit. NOT wake-eligible: the existence-push that discovers this already proceeds with its own /ensure call in the same pass, so nothing needs to wake on this event alone.",