Oriel — AI & technology worth noticing, every day.

Ambiguous Errors Are the Mind Killer

Web page · https://amit.prasad.me/blog/ambiguous-errors

First seen by Oriel on .

AI summary

This essay argues that opaque software errors create fragile boundaries, and that typed, explicit error contracts should be treated as part of APIs.

  • Examples including HTTP 500, -EINVAL, Status.INTERNAL, and {"status": "error"} show how widespread opaque errors are.
  • At software boundaries, callers must either reverse-engineer failures or treat every error as unsafe, making useful tested components difficult to consume.
  • Errors should encode likely responses—retry, fix input, give up, or blame someone else—and adding typed variants should be considered a breaking API change.
  • At Modal, error contracts let Reinforcement Learning trainers distinguish infrastructure failures from reward-hacking models that deliberately crash sandboxes.
  • The proposed workflow enumerates errors from execution-graph leaves upward, removes nonsensical cases, and strengthens the remaining types.

#error handling #rust #reinforcement learning #api design

Generated by gpt-5.6-sol. Check the original for details.

Metric trends

Last 30 days · Up to 120 recorded samples per source and metric, with reposts kept separate · First and latest retained

Points

Score reported by the source.

  • Lobsters: 6, latest observation ; +5 over observed period since

Comments

Comment count reported by the source.

  • Lobsters: 1, latest observation ; +1 over observed period since

Aliases

SourceExternal IDURL
Lobsterswfkkh4https://amit.prasad.me/blog/ambiguous-errors Read discussion