@catalyst-cloud/schema 0.1.50 → 0.1.51
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 +36 -18
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@catalyst-cloud/schema",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.51",
|
|
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
|
@@ -791,68 +791,86 @@ export const durableEventTypes = {
|
|
|
791
791
|
wakes: false,
|
|
792
792
|
entity: "ticket",
|
|
793
793
|
},
|
|
794
|
-
//
|
|
795
|
-
// `phase.
|
|
796
|
-
//
|
|
794
|
+
// CTC-1530 — `intake` joins `RELAY_PHASES` at its HEAD, gated dark behind `CATALYST_INTAKE_PHASE`.
|
|
795
|
+
// This block mirrors `phase.remediate.*`'s own set exactly (no git/rebase-specific suffixes —
|
|
796
|
+
// intake never touches a branch), so the generic phase-lifecycle/park machinery every relay phase
|
|
797
|
+
// already shares works for it with no special-casing. Supersedes CTC-1597's placeholder
|
|
798
|
+
// declaration of the same family (a smaller, `phase.triage.*`-shaped set, since at that point
|
|
799
|
+
// `intake` was still dormant outside `RELAY_PHASES`) now that this ticket makes it a real,
|
|
800
|
+
// lease-backed, preemptable phase.
|
|
797
801
|
"phase.intake.abandoned": {
|
|
798
802
|
rationale:
|
|
799
|
-
"ADR-0039 durable-fact example ('a phase started, completed, failed, or was preempted'): the phase's worker abandoned it — a lifecycle terminal fact.
|
|
803
|
+
"ADR-0039 durable-fact example ('a phase started, completed, failed, or was preempted'): the phase's worker abandoned it — a lifecycle terminal fact.",
|
|
800
804
|
ingestVerb: "coordination.publish",
|
|
801
805
|
wakes: false,
|
|
802
806
|
entity: "ticket",
|
|
803
807
|
},
|
|
804
808
|
"phase.intake.boot-resume": {
|
|
805
809
|
rationale:
|
|
806
|
-
"ADR-0039 durable-fact example ('a phase started, completed, failed, or was preempted'): the daemon restarted and resumed this phase — a real coordination fact about continuity across a restart.
|
|
810
|
+
"ADR-0039 durable-fact example ('a phase started, completed, failed, or was preempted'): the daemon restarted and resumed this phase — a real coordination fact about continuity across a restart.",
|
|
807
811
|
ingestVerb: "coordination.publish",
|
|
808
812
|
wakes: false,
|
|
809
813
|
entity: "ticket",
|
|
810
814
|
},
|
|
811
|
-
"phase.intake.
|
|
815
|
+
"phase.intake.boot-resume-gated": {
|
|
812
816
|
rationale:
|
|
813
|
-
"ADR-0039 durable-fact example ('a phase started, completed, failed, or was preempted'): the
|
|
817
|
+
"ADR-0039 durable-fact example ('a phase started, completed, failed, or was preempted'): the daemon restarted but gated (did not immediately resume) this phase.",
|
|
814
818
|
ingestVerb: "coordination.publish",
|
|
815
819
|
wakes: false,
|
|
816
820
|
entity: "ticket",
|
|
817
821
|
},
|
|
818
|
-
"phase.intake.
|
|
822
|
+
"phase.intake.complete": {
|
|
819
823
|
rationale:
|
|
820
|
-
"ADR-0039 durable-fact example ('a phase started, completed, failed, or was preempted'): the phase
|
|
824
|
+
"ADR-0039 durable-fact example ('a phase started, completed, failed, or was preempted'): the phase reported success.",
|
|
821
825
|
ingestVerb: "coordination.publish",
|
|
822
|
-
wakes:
|
|
826
|
+
wakes: false,
|
|
823
827
|
entity: "ticket",
|
|
824
828
|
},
|
|
825
829
|
"phase.intake.failed": {
|
|
826
830
|
rationale:
|
|
827
|
-
"ADR-0039 durable-fact example ('a phase started, completed, failed, or was preempted'): the phase reported failure.
|
|
831
|
+
"ADR-0039 durable-fact example ('a phase started, completed, failed, or was preempted'): the phase reported failure.",
|
|
828
832
|
ingestVerb: "coordination.publish",
|
|
829
833
|
wakes: false,
|
|
830
834
|
entity: "ticket",
|
|
831
835
|
},
|
|
832
|
-
"phase.intake.
|
|
836
|
+
"phase.intake.orphan-detected": {
|
|
833
837
|
rationale:
|
|
834
|
-
"ADR-0039 durable-fact example ('a phase started, completed, failed, or was preempted'):
|
|
838
|
+
"ADR-0039 durable-fact example ('a phase started, completed, failed, or was preempted'): an orphaned phase-agent worker was detected — a coordination fact (state discovered), not a sample.",
|
|
835
839
|
ingestVerb: "coordination.publish",
|
|
836
840
|
wakes: false,
|
|
837
841
|
entity: "ticket",
|
|
838
842
|
},
|
|
839
|
-
"phase.intake.
|
|
843
|
+
"phase.intake.park": {
|
|
840
844
|
rationale:
|
|
841
|
-
"ADR-0039 durable-fact example ('a phase started, completed, failed, or was preempted'): the phase
|
|
845
|
+
"ADR-0039 durable-fact example ('a phase started, completed, failed, or was preempted'): the intake phase was PARKED after N consecutive failures (CTC-1270) — a terminal-until-released outcome, distinct from `phase.intake.failed`, which a reader must be able to tell apart. Paired with `phase.intake.revive`.",
|
|
842
846
|
ingestVerb: "coordination.publish",
|
|
843
847
|
wakes: false,
|
|
844
848
|
entity: "ticket",
|
|
845
849
|
},
|
|
846
|
-
"phase.intake.
|
|
850
|
+
"phase.intake.preempted": {
|
|
847
851
|
rationale:
|
|
848
|
-
"ADR-0039 durable-fact example ('a phase started, completed, failed, or was preempted'):
|
|
852
|
+
"ADR-0039 durable-fact example ('a phase started, completed, failed, or was preempted'): a higher-priority worker preempted this phase.",
|
|
853
|
+
ingestVerb: "coordination.publish",
|
|
854
|
+
wakes: false,
|
|
855
|
+
entity: "ticket",
|
|
856
|
+
},
|
|
857
|
+
"phase.intake.reclaim": {
|
|
858
|
+
rationale:
|
|
859
|
+
"ADR-0039 durable-fact example ('a phase started, completed, failed, or was preempted'): ownership of orphaned work was reclaimed by a new worker — an ownership transition akin to a lease reassignment.",
|
|
860
|
+
ingestVerb: "coordination.publish",
|
|
861
|
+
wakes: false,
|
|
862
|
+
entity: "ticket",
|
|
863
|
+
},
|
|
864
|
+
"phase.intake.resumed-after-preemption": {
|
|
865
|
+
rationale:
|
|
866
|
+
"ADR-0039 durable-fact example ('a phase started, completed, failed, or was preempted'): the phase resumed after being preempted earlier — the paired fact to *.preempted.",
|
|
849
867
|
ingestVerb: "coordination.publish",
|
|
850
868
|
wakes: false,
|
|
851
869
|
entity: "ticket",
|
|
852
870
|
},
|
|
853
871
|
"phase.intake.revive": {
|
|
854
872
|
rationale:
|
|
855
|
-
"ADR-0039 durable-fact example ('a phase started, completed, failed, or was preempted'): a
|
|
873
|
+
"ADR-0039 durable-fact example ('a phase started, completed, failed, or was preempted'): a repeated-failure park of the intake phase was revived (CTC-1270) — the paired fact to `phase.intake.park`.",
|
|
856
874
|
ingestVerb: "coordination.publish",
|
|
857
875
|
wakes: false,
|
|
858
876
|
entity: "ticket",
|