Build Log
PilotLight's Real Quality Gap Wasn't the Correction Detector — It Was a Missing Instruction/Question Signal
August 25, 2026
Traced PilotLight's real architecture (not the correction-detector hypothesis), built a 10-case evaluation set, found the actual root cause mechanically (an always-visible 'I did it' button sent after questions, not just instructions), fixed it with one new schema field, and confirmed the fix via before/after eval data — using zero Witness calls, since every uncertainty this session was resolved by cheaper mechanisms.
Timeline
What shipped
products/pilotlight/app/api/guide/route.js — added stepType: 'instruction'|'question' to the response schema, system prompt FIELD RULES, SAFE_FALLBACK, and the JSON-repair prompt's schema string
products/pilotlight/app/page.js — the 'I did it' button now only renders when stepType is 'instruction' (or on the very first render before any response exists, preserving prior behavior for that edge case)
Evaluation harness (kept out of the repo per Part VIII's 'do not overbuild' instruction — lives only in this session's scratchpad): cases.json (10 realistic cases), run-baseline.mjs, run-improved.mjs