@bli-cockpit/telemetry-core 0.1.19 → 0.1.20

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.
@@ -19,11 +19,22 @@ export const RAW_EVIDENCE_UPLOAD_DEFAULT_CHUNK_BYTES = RAW_EVIDENCE_UPLOAD_MAX_C
19
19
  // by Vercel's ~4.5MB request-body limit (see header comment). 192 chunks
20
20
  // * 3 MiB gives a 576 MiB protocol ceiling above the current file cap.
21
21
  export const RAW_EVIDENCE_UPLOAD_MAX_CHUNK_COUNT = 192;
22
- // Final-object cap. The commit route still assembles and redaction-scans text
23
- // in memory, so keep this below V8's string ceiling with practical headroom for
24
- // buffers and redaction copies. 256 MiB covers the largest observed fleet
25
- // session (118 MiB) with >2x headroom. Raising it requires a streaming commit.
26
- export const RAW_EVIDENCE_UPLOAD_MAX_FILE_BYTES = 256 * 1024 * 1024;
22
+ // Final-object cap. The server's Supabase project-level (global) storage
23
+ // limit was raised from 50 MiB to 512 MiB on 2026-07-04 (BLI-2528; see
24
+ // docs/runbooks/cockpit-stuck-evidence-uploads.md) after that ceiling silently
25
+ // rejected every larger raw-evidence object for 57 days, so this constant must
26
+ // track the server's real ceiling rather than trail it. It cannot simply BE
27
+ // 512 MiB, though: the commit route (apps/dashboard .../evidence/upload/commit)
28
+ // still assembles the object into one Buffer and calls
29
+ // `assembled.toString("utf8")` for the secret-content scan, and 512 MiB
30
+ // (536,870,912 bytes) is 24 bytes PAST V8's `MAX_STRING_LENGTH`
31
+ // (536,870,888 on Node 22 / this repo's pinned runtime) — a file at the literal
32
+ // 512 MiB ceiling would crash the commit route with a RangeError instead of
33
+ // committing, the same silent-loss failure mode BLI-2528 was about. 500 MiB
34
+ // keeps ~12.6 MiB of real headroom under that hard ceiling for the
35
+ // Buffer.concat + string-conversion overhead, while still fitting the chunk
36
+ // protocol's 576 MiB ceiling (192 chunks * 3 MiB).
37
+ export const RAW_EVIDENCE_UPLOAD_MAX_FILE_BYTES = 500 * 1024 * 1024;
27
38
  export const RAW_EVIDENCE_UPLOAD_MAX_OBJECTS_PER_BEGIN = 25;
28
39
  export const CODEX_SESSION_REPORT_MAX_SESSIONS = 200;
29
40
  const SafeLabelSchema = z
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bli-cockpit/telemetry-core",
3
- "version": "0.1.19",
3
+ "version": "0.1.20",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",