@bli-cockpit/telemetry-core 0.1.102 → 0.1.103

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.
@@ -100,6 +100,19 @@ export declare const CollectorDiskReadingSchema: z.ZodObject<{
100
100
  }>;
101
101
  }, z.core.$strict>;
102
102
  export type CollectorDiskReading = z.infer<typeof CollectorDiskReadingSchema>;
103
+ /**
104
+ * Ticket 24980. Raw evidence this machine staged and Tower never accepted, for longer than
105
+ * `STUCK_EVIDENCE_AFTER_HOURS`. Before this the count lived only in the laptop's own `cockpit status`:
106
+ * 65 objects on the reference Mac failed from 2026-10-17 while doctor, Setup and the ops board read green.
107
+ * A count and the reason most of them carry, nothing else. A staged copy whose bytes are gone from the
108
+ * disk is not counted: there is nothing left to send, and its session re-stages from the source.
109
+ */
110
+ export declare const STUCK_EVIDENCE_AFTER_HOURS = 24;
111
+ export declare const RawEvidenceStuckReadingSchema: z.ZodObject<{
112
+ object_count: z.ZodNumber;
113
+ top_reason: z.ZodNullable<z.ZodString>;
114
+ }, z.core.$strict>;
115
+ export type RawEvidenceStuckReading = z.infer<typeof RawEvidenceStuckReadingSchema>;
103
116
  export declare const CollectorHeartbeatSchema: z.ZodObject<{
104
117
  schema_version: z.ZodLiteral<"collector-heartbeat.v1">;
105
118
  generated_at: z.ZodString;
@@ -146,6 +159,10 @@ export declare const CollectorHeartbeatSchema: z.ZodObject<{
146
159
  staging_at_cap: "staging_at_cap";
147
160
  }>;
148
161
  }, z.core.$strict>>;
162
+ raw_evidence_stuck: z.ZodOptional<z.ZodObject<{
163
+ object_count: z.ZodNumber;
164
+ top_reason: z.ZodNullable<z.ZodString>;
165
+ }, z.core.$strict>>;
149
166
  memory_install: z.ZodOptional<z.ZodObject<{
150
167
  schema_version: z.ZodLiteral<"memory-install-receipt.v1">;
151
168
  checked_at: z.ZodString;
@@ -98,6 +98,20 @@ export const CollectorDiskReadingSchema = z
98
98
  gate: CollectorDiskGateSchema,
99
99
  })
100
100
  .strict();
101
+ /**
102
+ * Ticket 24980. Raw evidence this machine staged and Tower never accepted, for longer than
103
+ * `STUCK_EVIDENCE_AFTER_HOURS`. Before this the count lived only in the laptop's own `cockpit status`:
104
+ * 65 objects on the reference Mac failed from 2026-10-17 while doctor, Setup and the ops board read green.
105
+ * A count and the reason most of them carry, nothing else. A staged copy whose bytes are gone from the
106
+ * disk is not counted: there is nothing left to send, and its session re-stages from the source.
107
+ */
108
+ export const STUCK_EVIDENCE_AFTER_HOURS = 24;
109
+ export const RawEvidenceStuckReadingSchema = z
110
+ .object({
111
+ object_count: z.number().int().nonnegative().max(1_000_000),
112
+ top_reason: z.string().trim().min(1).max(120).regex(/^[a-z0-9_:.-]+$/iu).nullable(),
113
+ })
114
+ .strict();
101
115
  export const CollectorHeartbeatSchema = z
102
116
  .object({
103
117
  schema_version: z.literal(COLLECTOR_HEARTBEAT_SCHEMA_VERSION),
@@ -208,6 +222,8 @@ export const CollectorHeartbeatSchema = z
208
222
  * predates it or could not measure", never "the disk is fine".
209
223
  */
210
224
  disk: CollectorDiskReadingSchema.optional(),
225
+ /** Ticket 24980. Evidence never accepted for over a day. Absent: an older collector, or a read that failed. */
226
+ raw_evidence_stuck: RawEvidenceStuckReadingSchema.optional(),
211
227
  /**
212
228
  * BLI-3729. Is BLI Memory actually switched on for both agent hosts on
213
229
  * this machine? Six words computed by reading the host configs BACK, not
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bli-cockpit/telemetry-core",
3
- "version": "0.1.102",
3
+ "version": "0.1.103",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",