@catalyst-cloud/schema 0.1.31 → 0.1.33
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 +63 -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.33",
|
|
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
|
@@ -750,6 +750,20 @@ export const durableEventTypes = {
|
|
|
750
750
|
wakes: false,
|
|
751
751
|
entity: "ticket",
|
|
752
752
|
},
|
|
753
|
+
"phase.merge.park": {
|
|
754
|
+
rationale:
|
|
755
|
+
"ADR-0039 durable-fact example ('a phase started, completed, failed, or was preempted'): the merge phase was PARKED after N consecutive failures (CTC-1270) — a terminal-until-released outcome, distinct from `phase.merge.failed`, which a reader must be able to tell apart. Paired with `phase.merge.revive`.",
|
|
756
|
+
ingestVerb: "coordination.publish",
|
|
757
|
+
wakes: false,
|
|
758
|
+
entity: "ticket",
|
|
759
|
+
},
|
|
760
|
+
"phase.merge.revive": {
|
|
761
|
+
rationale:
|
|
762
|
+
"ADR-0039 durable-fact example ('a phase started, completed, failed, or was preempted'): a repeated-failure park of the merge phase was revived (CTC-1270) — the paired fact to `phase.merge.park`.",
|
|
763
|
+
ingestVerb: "coordination.publish",
|
|
764
|
+
wakes: false,
|
|
765
|
+
entity: "ticket",
|
|
766
|
+
},
|
|
753
767
|
"phase.monitor-deploy.abandoned": {
|
|
754
768
|
rationale:
|
|
755
769
|
"ADR-0039 durable-fact example ('a phase started, completed, failed, or was preempted'): the phase's worker abandoned it — a lifecycle terminal fact.",
|
|
@@ -1142,6 +1156,13 @@ export const durableEventTypes = {
|
|
|
1142
1156
|
wakes: false,
|
|
1143
1157
|
entity: "ticket",
|
|
1144
1158
|
},
|
|
1159
|
+
"phase.remediate.park": {
|
|
1160
|
+
rationale:
|
|
1161
|
+
"ADR-0039 durable-fact example ('a phase started, completed, failed, or was preempted'): the remediate phase was PARKED after N consecutive failures (CTC-1270) — a terminal-until-released outcome, distinct from `phase.remediate.failed`, which a reader must be able to tell apart. Paired with `phase.remediate.revive`.",
|
|
1162
|
+
ingestVerb: "coordination.publish",
|
|
1163
|
+
wakes: false,
|
|
1164
|
+
entity: "ticket",
|
|
1165
|
+
},
|
|
1145
1166
|
"phase.remediate.preempted": {
|
|
1146
1167
|
rationale:
|
|
1147
1168
|
"ADR-0039 durable-fact example ('a phase started, completed, failed, or was preempted'): a higher-priority worker preempted this phase.",
|
|
@@ -1163,6 +1184,13 @@ export const durableEventTypes = {
|
|
|
1163
1184
|
wakes: false,
|
|
1164
1185
|
entity: "ticket",
|
|
1165
1186
|
},
|
|
1187
|
+
"phase.remediate.revive": {
|
|
1188
|
+
rationale:
|
|
1189
|
+
"ADR-0039 durable-fact example ('a phase started, completed, failed, or was preempted'): a repeated-failure park of the remediate phase was revived (CTC-1270) — the paired fact to `phase.remediate.park`.",
|
|
1190
|
+
ingestVerb: "coordination.publish",
|
|
1191
|
+
wakes: false,
|
|
1192
|
+
entity: "ticket",
|
|
1193
|
+
},
|
|
1166
1194
|
"phase.rescue.dispatched": {
|
|
1167
1195
|
rationale:
|
|
1168
1196
|
"ADR-0039 durable-fact example ('a phase started, completed, failed, or was preempted'): work became eligible and was dispatched to a worker.",
|
|
@@ -1219,6 +1247,13 @@ export const durableEventTypes = {
|
|
|
1219
1247
|
wakes: false,
|
|
1220
1248
|
entity: "ticket",
|
|
1221
1249
|
},
|
|
1250
|
+
"phase.research.park": {
|
|
1251
|
+
rationale:
|
|
1252
|
+
"ADR-0039 durable-fact example ('a phase started, completed, failed, or was preempted'): the research phase was PARKED after N consecutive failures (CTC-1270) — a terminal-until-released outcome, distinct from `phase.research.failed`, which a reader must be able to tell apart. Paired with `phase.research.revive`.",
|
|
1253
|
+
ingestVerb: "coordination.publish",
|
|
1254
|
+
wakes: false,
|
|
1255
|
+
entity: "ticket",
|
|
1256
|
+
},
|
|
1222
1257
|
"phase.research.preempted": {
|
|
1223
1258
|
rationale:
|
|
1224
1259
|
"ADR-0039 durable-fact example ('a phase started, completed, failed, or was preempted'): a higher-priority worker preempted this phase.",
|
|
@@ -1247,6 +1282,13 @@ export const durableEventTypes = {
|
|
|
1247
1282
|
wakes: false,
|
|
1248
1283
|
entity: "ticket",
|
|
1249
1284
|
},
|
|
1285
|
+
"phase.research.revive": {
|
|
1286
|
+
rationale:
|
|
1287
|
+
"ADR-0039 durable-fact example ('a phase started, completed, failed, or was preempted'): a repeated-failure park of the research phase was revived (CTC-1270) — the paired fact to `phase.research.park`.",
|
|
1288
|
+
ingestVerb: "coordination.publish",
|
|
1289
|
+
wakes: false,
|
|
1290
|
+
entity: "ticket",
|
|
1291
|
+
},
|
|
1250
1292
|
"phase.review.abandoned": {
|
|
1251
1293
|
rationale:
|
|
1252
1294
|
"ADR-0039 durable-fact example ('a phase started, completed, failed, or was preempted'): the phase's worker abandoned it — a lifecycle terminal fact.",
|
|
@@ -1450,6 +1492,20 @@ export const durableEventTypes = {
|
|
|
1450
1492
|
wakes: false,
|
|
1451
1493
|
entity: "ticket",
|
|
1452
1494
|
},
|
|
1495
|
+
"phase.validate.park": {
|
|
1496
|
+
rationale:
|
|
1497
|
+
"ADR-0039 durable-fact example ('a phase started, completed, failed, or was preempted'): the validate phase was PARKED after N consecutive failures (CTC-1270) — a terminal-until-released outcome, distinct from `phase.validate.failed`, which a reader must be able to tell apart. Paired with `phase.validate.revive`.",
|
|
1498
|
+
ingestVerb: "coordination.publish",
|
|
1499
|
+
wakes: false,
|
|
1500
|
+
entity: "ticket",
|
|
1501
|
+
},
|
|
1502
|
+
"phase.validate.revive": {
|
|
1503
|
+
rationale:
|
|
1504
|
+
"ADR-0039 durable-fact example ('a phase started, completed, failed, or was preempted'): a repeated-failure park of the validate phase was revived (CTC-1270) — the paired fact to `phase.validate.park`.",
|
|
1505
|
+
ingestVerb: "coordination.publish",
|
|
1506
|
+
wakes: false,
|
|
1507
|
+
entity: "ticket",
|
|
1508
|
+
},
|
|
1453
1509
|
"phase.verify.abandoned": {
|
|
1454
1510
|
rationale:
|
|
1455
1511
|
"ADR-0039 durable-fact example ('a phase started, completed, failed, or was preempted'): the phase's worker abandoned it — a lifecycle terminal fact.",
|
|
@@ -1614,6 +1670,13 @@ export const durableEventTypes = {
|
|
|
1614
1670
|
wakes: { consumerClass: "dispatcher" },
|
|
1615
1671
|
entity: "ticket",
|
|
1616
1672
|
},
|
|
1673
|
+
"relay.phase.wip.recorded": {
|
|
1674
|
+
rationale:
|
|
1675
|
+
"CTC-1096 — a shutting-down runner published a partial artifact and recorded a resume point for (ticket, phase) in the tenant DO's own relay_phase_wip. A durable fact about work that was preserved, not work that completed: it never advances relay_phase_state. NOT wake-eligible — the lease release that follows it in the same shutdown sequence already makes the unit immediately reclaimable, so waking the dispatcher on this too would double-drive the same successor.",
|
|
1676
|
+
ingestVerb: "artifacts.event",
|
|
1677
|
+
wakes: false,
|
|
1678
|
+
entity: "ticket",
|
|
1679
|
+
},
|
|
1617
1680
|
"runner.container.stopped": {
|
|
1618
1681
|
rationale:
|
|
1619
1682
|
"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.",
|