@catalyst-cloud/schema 0.1.42 → 0.1.43
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 +2 -2
- package/src/events/registry.ts +25 -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.43",
|
|
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",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"scripts": {
|
|
22
22
|
"typecheck": "tsc --noEmit",
|
|
23
23
|
"test": "vitest run",
|
|
24
|
-
"test:coverage": "vitest run --coverage",
|
|
24
|
+
"test:coverage": "vitest run --coverage && bun ../../scripts/coverage-per-file.ts",
|
|
25
25
|
"generate": "drizzle-kit generate",
|
|
26
26
|
"build": "tsc -p tsconfig.build.json",
|
|
27
27
|
"build:bundle": "bun scripts/build-bundle.ts && prettier --write src/migrations.generated.ts"
|
package/src/events/registry.ts
CHANGED
|
@@ -1926,6 +1926,31 @@ export const telemetryEventTypes = {
|
|
|
1926
1926
|
reason:
|
|
1927
1927
|
"The raw (pre-sampling) rate-limit reading behind account.ratelimit.sampled — same gauge family.",
|
|
1928
1928
|
},
|
|
1929
|
+
"board-health.action.applied": {
|
|
1930
|
+
reason:
|
|
1931
|
+
"CTC-1346 — one per remediation attempt the recurring board-health sweep makes, keyed (action, outcome), including every named refusal (rate floor, remediation cap, action failure). CTC-748's own lesson: an unlogged refusal is indistinguishable from a trigger that never ran.",
|
|
1932
|
+
sampling: { kind: "always" },
|
|
1933
|
+
},
|
|
1934
|
+
"board-health.sweep.completed": {
|
|
1935
|
+
reason:
|
|
1936
|
+
"CTC-1346 — the sweep's own per-pass heartbeat, carrying scanned/truncated/flagged/actioned/deferred. The signal whose ABSENCE is the alert (AC3, the CTC-748 lesson applied to the sweep's own liveness); sampling it away would make a real gap ambiguous with ordinary sampling loss.",
|
|
1937
|
+
sampling: { kind: "always" },
|
|
1938
|
+
},
|
|
1939
|
+
"board-health.sweep.gap": {
|
|
1940
|
+
reason:
|
|
1941
|
+
"CTC-1346 — the sweep's SELF-detected gap: this pass observed that the previous pass ran longer ago than the expected interval. Rare and high-value, never sampled away.",
|
|
1942
|
+
sampling: { kind: "always" },
|
|
1943
|
+
},
|
|
1944
|
+
"board-health.sweep.heartbeat-gap": {
|
|
1945
|
+
reason:
|
|
1946
|
+
"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.",
|
|
1947
|
+
sampling: { kind: "always" },
|
|
1948
|
+
},
|
|
1949
|
+
"board-health.verdict.sampled": {
|
|
1950
|
+
reason:
|
|
1951
|
+
"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.",
|
|
1952
|
+
sampling: { kind: "counted" },
|
|
1953
|
+
},
|
|
1929
1954
|
"catalyst.linear.read": {
|
|
1930
1955
|
reason:
|
|
1931
1956
|
"A Linear API read trace — ADR-0039's own telemetry example ('read traces'). By far the single largest type in the census (1.36M lines/mo); replaying every poll would archive the poll loop, not the coordination history.",
|