@catalyst-cloud/schema 0.1.56 → 0.1.58
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 +14 -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.58",
|
|
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
|
@@ -2121,6 +2121,15 @@ export interface TelemetryEventSpec {
|
|
|
2121
2121
|
* time CTC-1510 read it — re-measure before citing it, don't re-derive it from this text.
|
|
2122
2122
|
*/
|
|
2123
2123
|
export const telemetryEventTypes = {
|
|
2124
|
+
"telemetry.ingest.tenant-forged": {
|
|
2125
|
+
reason:
|
|
2126
|
+
"CTC-2788 — a gateway payload named a tenant other than its token's on `account_id` or " +
|
|
2127
|
+
"`catalyst.tenant`, and the gateway overwrote it. Rare by construction: a current runner image " +
|
|
2128
|
+
"emits `catalyst.tenant` equal to its own tenant, so this fires only on a stale or wrong token, " +
|
|
2129
|
+
"or on a deliberate forgery. Each occurrence is independently actionable (which tenant held the " +
|
|
2130
|
+
"token, which tenant was claimed, which signal), so it is never sampled away.",
|
|
2131
|
+
sampling: { kind: "always" },
|
|
2132
|
+
},
|
|
2124
2133
|
"account.ratelimit.sampled": {
|
|
2125
2134
|
reason: "A periodic provider rate-limit budget reading — a gauge, not a state transition.",
|
|
2126
2135
|
},
|
|
@@ -2158,6 +2167,11 @@ export const telemetryEventTypes = {
|
|
|
2158
2167
|
"CTC-1346 AC3 — the INDEPENDENT fleet-wide observer's own verdict that one tenant's board-health sweep has gone quiet (or its probe failed outright — a failed probe is a gap, never a pass). Distinct from board-health.sweep.gap: that one is self-detected by the sweep itself; this one survives the sweep's OWN process/DO going fully unresponsive.",
|
|
2159
2168
|
sampling: { kind: "always" },
|
|
2160
2169
|
},
|
|
2170
|
+
"watchdog.job.silent": {
|
|
2171
|
+
reason:
|
|
2172
|
+
"CTC-2797 — a scheduled watchdog job on the mirror Worker's cron whose last SUCCESSFUL run is older than 3x its declared cadence (including one that has never succeeded — duration then measured from its registration — and one whose mode flag could not be resolved). A red GitHub run used to be free visibility for these jobs; a silently dead Worker job has none. Rare and high-value, never sampled away.",
|
|
2173
|
+
sampling: { kind: "always" },
|
|
2174
|
+
},
|
|
2161
2175
|
"board-health.verdict.sampled": {
|
|
2162
2176
|
reason:
|
|
2163
2177
|
"CTC-1346 — a per-verdict count from the recurring board-health sweep (do/board-health-classify.ts). Gauge-shaped: only the collapsed count matters. Every verdict bucket is emitted every pass, zeros included, so a bucket falling to zero is distinguishable from the sweep having stopped.",
|