Envoy TODOs

Self-healing error reporting

When envoy encounters a problem (bad model tier name, missing note, API error), it should:• Write an error note to scratch/envoy-errors/{timestamp}• Log it for debugging• In some cases, automatically patch the affected note (e.g., if model-tiers is malformed, fix it)• This would replace manual debugging and reduce turnaround when APIs change

Examples:• If phase note specifies invalid model tier → auto-patch the phase note with DEFAULT_MODEL• If OpenAI model goes deprecated → detect 404 from API and suggest update to envoy/model-tiers• If notes_client.read_doc fails → write diagnostics to scratch/envoy-errors

version 4  ·  updated 2026-08-24