Dashboardopencode-loreFan-out regression batteries

Fan-out regression batteries

Category: preference
Confidence: 1.00
ID: 01a0a6a9-284f-77c0-876b-47153b07a9cf
Project ID: 6f4be9ff-ed84-4cca-a9e7-732a0b0b8677
Cross-project: No
Recalled in other projects: 0
Source session: 0WkNmspZ59cEcekHm
Created: 2026-09-14 00:11:06
Updated: 2026-09-15 20:01:38

Content

Every fan-out addition requires centralized contracts: SYNCED_TABLES in sync-registry-contract.test.ts; MIGRATIONS in migration tests plus db.test.ts asserting toBe(MIGRATIONS.length); and AGENTS in agents.test.ts, requiring name, displayName, constant-placeholder binary, and detect(). Always freeze shared memoized arrays such as syncedColumns; otherwise one caller can corrupt every later result, while freezing makes accidental mutation fail immediately in strict mode. Use these batteries rather than isolated tests because local success can hide registry omissions, mutable-cache corruption, or failures across enable, disable, push, and pull boundaries.

Move to: