GapDetector + ExecutionStateTracker + EnvProber + enhanced audit logging.
Generator dynamically lifts function cap based on gap scope (stub tasks
no longer limited to 2 functions). Gate rewritten with deterministic-first
routing (gap → keywords → LLM fallback). 514 tests green + 63 diagnostic.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>