@catalyst-cloud/schema 0.1.60 → 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.60",
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",
@@ -1842,6 +1842,20 @@ export const durableEventTypes = {
1842
1842
  wakes: false,
1843
1843
  entity: "pull_request",
1844
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
+ },
1845
1859
  "recovery.deferred": {
1846
1860
  rationale:
1847
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.",