Tier: M (2-4 days) Type: perf
Context
Spectre TEE agents run for months. A small SDK leak becomes an OOM kill in production. Build a long-running harness + CI gate to catch leaks before mainnet.
Scope
test/leak/scan-leak.test.ts running scanAnnouncements in a tight loop
- Synthetic 10k-announcement dataset, 10k iterations
- v8 heap snapshots at intervals; fail on slope > N KB/iter
- Profiling outputs (flame graphs) committed
- CI nightly job
Acceptance criteria
Files to start with
- New:
test/leak/scan-leak.test.ts
- Node v8 docs
Tier: M (2-4 days) Type: perf
Context
Spectre TEE agents run for months. A small SDK leak becomes an OOM kill in production. Build a long-running harness + CI gate to catch leaks before mainnet.
Scope
test/leak/scan-leak.test.tsrunningscanAnnouncementsin a tight loopAcceptance criteria
Files to start with
test/leak/scan-leak.test.ts