@catalyst-cloud/schema 0.1.30 → 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 +1 -1
- package/src/events/registry.ts +7 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@catalyst-cloud/schema",
|
|
3
|
-
"version": "0.1.
|
|
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",
|
package/src/events/registry.ts
CHANGED
|
@@ -1635,6 +1635,13 @@ export const durableEventTypes = {
|
|
|
1635
1635
|
wakes: false,
|
|
1636
1636
|
entity: "runner",
|
|
1637
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
|
+
},
|
|
1638
1645
|
"runner.work.reclaimable": {
|
|
1639
1646
|
rationale:
|
|
1640
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.",
|