loom-dead-code-check
Dead Code Detection
Overview
Dead code — written but never called, imported, or used — is a direct signal of incomplete integration: a function nothing calls means the feature isn't wired up. In loom it serves two roles: wiring verification (catch implemented-but-unintegrated code) and code quality (cleanup). Most valuable in integration-verify stages as a final gate over all implementation stages.
⚠️
truthsis GONE as a standalone field. Put dead-code checks in the first-classdead_code_checkfield (a goal-backward layer, run byloom check) or inacceptance(a build/lint command that exits non-zero on findings). A top-leveltruths:block is silently ignored and false-passes.
If dead code survives implementation it usually means: feature not wired (command unregistered, route unmounted), test code never run, refactor leftovers, or an incomplete implementation.
The dead_code_check field (preferred, first-class)
dead_code_check is a goal-backward check evaluated by loom check <stage-id>. Schema: