Dashboard › opencode-lore › Distillation
3f259eeb-21d8-4991-8683-3f8edd29ffb3["lore_tm_v1_kOuGftMM2C04Rlske6DBZuelJNmx2w7ih0JnhgZkdRE","lore_tm_v1_Iy36zqEGQymU8w8gb02Zf61_9kB89MVLET9GfCBcgMI","lore_tm_v1_A8jvUXGWkaxgeV7CCTO5ygpBqpMjRi5hDLx14UCvk6c","lore_tm_v1_FVcLUngh_wuxOv3K9nk804f3Jl3WLOxaOIh5EGqImck","lore_tm_v1_Sg2-mCoHe9GymB3PSdF16HlXkCQX1NvrHvA8OJC4EKc","lore_tm_v1_P-nuGjK3PIkId_3X0BV1kow5_bSuU0cjXN82Jd8IoVU","lore_tm_v1_jMagKYQ2gmywIsgEAPScRsWvz_jpwAETPyLZuzYFidw","lore_tm_v1_HPQgfQpgkNYZQuwyNLZeTBvRmA47i38hJAl84p1Fsrg","lore_tm_v1_oRpCXtH_gynR2rLfInlp2vwbdTJrk_hBxGaqwr5xxV0","lore_tm_v1_nqBnPpqoa3FlIJHMZIzrFmnBGLwap9vfYBZfcyo94hw"]
Date: Sep 16, 2026
SYNCED_TABLES → packages/core/test/sync-registry-contract.test.ts, covering table shape, pull-only/no-capture invariant, and composite primary-key correctness; 2. MIGRATIONS → db.test.ts schema-version assertion plus migration-specific tests, including one toBe(MIGRATIONS.length) assertion; 3. AGENTS → agents.test.ts, requiring every agent to expose name, displayName, binary, and detect(), with binary a constant placeholder string.SYNCED_TABLES; 2. per-operation sync invariants in packages/core/src/sync-data.ts via assertSyncInvariants, enforcing no pull-only outbox, profiles ≤ 1, and every state row referencing a registered table; 3. sequence properties in packages/gateway/test/sync.property.test.ts, covering invariants after every operation, prune-floor liveness, eventual convergence, no ping-pong, and currentTier correctness.pnpm test, pnpm run typecheck, pnpm run lint, and pnpm run format:check; inspect exit codes because blank output tails can hide errors; run property tests ×10; hash-verify that the working tree remains unmodified; and provide per-point PASS / FAIL / CONCERN / MUST-FIX verdicts with file:line evidence plus an overall MERGE / DO-NOT-MERGE verdict.TypeError in strict mode rather than silently corrupting the cache.db().query monkeypatches are shadowed by the tracing Proxy; SQL-counting tests must use the log.registerSink({ withDbSpan }) seam.packages/core/test/cgroup-memory.test.ts; it calls the public headroom reader twice while /proc/self/cgroup membership changes, so an implementation caching the old cgroup path would return the stale budget and fail for stale admission.packages/core/test/cgroup-memory.test.ts run passed: 1 test file passed, all 14 tests passed, duration 1.51s (transform 932ms, setup 1.02s, import 19ms, tests 15ms, environment 0ms).MODEL_MAX_TOKENS.1; the primary worker always runs.packages/core/src/embedding/local.ts, availableMemoryHeadroom() combines constrainedMemoryLimit(), Linux readLinuxCgroupMemoryHeadroomBytes(), and when available process.availableMemory() through resolveMemoryHeadroom(); Bun omits process.availableMemory() because its implementation currently aliases host freemem() inside constrained cgroups.packages/core/src/embedding/local.ts, containerFreeBytes() clamps host freemem() through clampFreeToContainerLimit(raw, constrainedMemoryLimit(), availableMemoryHeadroom()).packages/core/src/embedding/pool.ts, the primary worker is spawned whenever this.slots.length === 0, with its own OOM backoff rather than pool sizing intended to protect constrained hosts.packages/core/src/embedding/pool.ts, pool growth currently requires at least one healthy slot, all eligible workers busy, total active plus retired workers below this.ceiling, and liveFreemem() at least (number of unhealthy slots + 1) * PER_WORKER_MEM_BUDGET_BYTES.packages/core/src/embedding/pool.ts, liveFreemem() returns 0 when constrainedMemoryLimit() > 0 but availableMemoryHeadroom() is undefined; otherwise it calls clampFreeToContainerLimit(raw, constrained, headroom).packages/core/src/embedding/pool.ts, each new LocalProvider receives the pool ceiling as its memory divisor, so each worker sizes its token cap from free / ceiling; the intended invariant is that provisioned workers collectively remain within one EMBED_MEM_FRACTION share of free memory rather than each independently claiming half.