@catalyst-cloud/schema 0.1.23 → 0.1.24

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.23",
3
+ "version": "0.1.24",
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",
@@ -1607,6 +1607,13 @@ export const durableEventTypes = {
1607
1607
  wakes: { consumerClass: "dispatcher" },
1608
1608
  entity: "ticket",
1609
1609
  },
1610
+ "runner.container.stopped": {
1611
+ rationale:
1612
+ "CTC-1118 D4 — RunnerDispatchDO observed its own Container stop (activity expiry, a platform rollout SIGTERM, or an orderly exit) and reported it to the tenant DO. A positive observation ('a container stopped'), never an inferred absence — the entitlement plane's epistemic rule (entitlement.ts's RevokeRequest.observation). NOT wake-eligible: the report only collapses a held lease's deadline (existence-plane, never ownership — ADR-0037 Amendment 7), it does not itself create new eligible work for the dispatcher.",
1613
+ ingestVerb: "coordination.publish",
1614
+ wakes: false,
1615
+ entity: "runner",
1616
+ },
1610
1617
  "runner.start.failed": {
1611
1618
  rationale:
1612
1619
  "CTC-951 — the MirrorDO alarm's existence-push (ADR-0037 Amendment 7) tried to start a tenant runner and the platform refused it. ADR-0039 durable-fact example ('a runner reported an outcome'): the first failure of a backoff episode. NOT wake-eligible — a start failure must never itself trigger the dispatcher, or the dispatch plane would wake on its own retry clock.",
@@ -1621,6 +1628,13 @@ export const durableEventTypes = {
1621
1628
  wakes: false,
1622
1629
  entity: "runner",
1623
1630
  },
1631
+ "runner.work.reclaimable": {
1632
+ rationale:
1633
+ "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.",
1634
+ ingestVerb: "coordination.publish",
1635
+ wakes: false,
1636
+ entity: "ticket",
1637
+ },
1624
1638
  "session.ended": {
1625
1639
  rationale: "An agent session ended — a real lifecycle boundary fact.",
1626
1640
  ingestVerb: "coordination.publish",