@catalyst-cloud/schema 0.1.59 → 0.1.61

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.59",
3
+ "version": "0.1.61",
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",
@@ -882,6 +882,13 @@ export const durableEventTypes = {
882
882
  wakes: false,
883
883
  entity: "ticket",
884
884
  },
885
+ "phase.merge.deferred": {
886
+ rationale:
887
+ "A merge run found checks or review evidence still pending. It wrote no receipt and is not a phase failure (CTC-3290).",
888
+ ingestVerb: "coordination.publish",
889
+ wakes: false,
890
+ entity: "ticket",
891
+ },
885
892
  "phase.merge.failed": {
886
893
  rationale:
887
894
  "ADR-0039 durable-fact example ('a phase started, completed, failed, or was preempted'): the phase reported failure.",
@@ -1835,6 +1842,20 @@ export const durableEventTypes = {
1835
1842
  wakes: false,
1836
1843
  entity: "pull_request",
1837
1844
  },
1845
+ // CTC-3262 — an operator prompt run's terminal outcome (ADR-20260925T051854). Before this the
1846
+ // failure class lived only on the DO's hub-internal `prompt_runs` row and the host log, where no
1847
+ // replica reader could see it. The payload contract is `PromptRunFinishedPayload`
1848
+ // (packages/protocol/src/prompt-run.ts): identifiers, outcome, failure class and duration, never
1849
+ // the prompt text or the receipt summary.
1850
+ "prompt.run.finished": {
1851
+ rationale:
1852
+ "An operator prompt run left `running` for good: its lease was released with a receipt, released without one, refused after the claim, or recovered after an interrupted container. ADR-0039's own durable-fact example ('a runner reported an outcome'), for the third work-unit kind. It fires once per run, in the transaction that closes the run's row.",
1853
+ // ⚠️ Minted inside the mirror DO, like ask.replied: coordination.publish is the closest true verb.
1854
+ ingestVerb: "coordination.publish",
1855
+ // No consumer acts on it yet. A replica reads it from the event cache; nothing needs a wake.
1856
+ wakes: false,
1857
+ entity: "prompt-run",
1858
+ },
1838
1859
  "recovery.deferred": {
1839
1860
  rationale:
1840
1861
  "A real, ENACTED deferral — much lower volume (2,894/mo) than recovery.would-defer's 505k dry-run evaluations, confirming this is the actual decision, not the counterfactual.",