agentleFS
90184479018447/julia-pro-p/skills/principle-loud-failure/SKILL.md

principle-loud-failure

Skill0 starsChanged 4 days agoMITView on GitHub

Surface a failure at the point it happens, with the value and the state that caused it.

The file

Files
SKILL.md

Loud failure

A swallowed failure reappears as a wrong number in a design or a paper, months later, with no path back to the cause. The failure surfaces at the source, carrying what failed and where.

The five shapes to hunt

  1. Empty catch: the exception becomes nothing, [], or a zero.
  2. Weak logging: a message with no operands, the wrong level, or logged and then ignored.
  3. Dangerous fallback: a default that makes a failed computation look like a finished one.
  4. Lost propagation: the stack trace gone, the exception replaced by a generic one, the async task never awaited.
  5. Missing handling: network and file work with no timeout, a partial write with no rollback.

Julia shapes of the same bug

  • try solve(prob) catch; u_prev end returns the previous state as if converged.
  • sol accepted without checking SciMLBase.successful_retcode(sol).
  • NaN carried through a loss instead of raised at the source.
  • @warn inside a hot loop: the message exists, nobody reads it, the run continues wrong.
  • An Optimization or NLsolve result taken without reading retcode or converged.

Case

A flash calculation fails to converge and the wrapper returns the feed composition. The mass balance still closes, the simulation still runs, the design is wrong. Return an error, or a tagged result the caller must handle.

Pairs with

  • debugging-toolkit — the value and state that a silent failure destroys
  • julia-language — where the language makes a failure quiet

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.