You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat: restore per-field confidence scoring in write interpretation #81
rawWriteInterpretationSchema previously included a confidence: z.record(z.string(), z.number()) field intended to let the LLM express per-field confidence (e.g. {"scheduleFields.time": 0.6}). This was removed in #80 because z.record() generates additionalProperties in JSON Schema, which OpenAI's structured outputs API rejects.
write-commit.ts uses confidence thresholds (CONFIDENCE_THRESHOLD = 0.75, CORRECTION_THRESHOLD = 0.9) to decide whether to commit a field or push it to needsClarification. With confidence removed, all fields now default to 1.0 (fully trusted), so this signal is lost.
Goal
Restore confidence scoring in a way that's compatible with OpenAI structured outputs.
Approach
Replace z.record(z.string(), z.number()) with an explicit fixed-key object covering all possible field paths:
Activity