agentleFS
orenluxyorenluxy/fable-method/skills/convergence-guard/SKILL.md

convergence-guard

Skill1 starsChanged 4 months agoMITView on GitHub

Stop-loss discipline for implementation sessions - detect fix-loops and runaway token burn, and stop to replan instead of patching. Consult during any debugging or implementation session, especially when tests keep failing, the same file keeps being edited, or the user mentions stoploss, token budget, fix loops, or "why is this taking so long".

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    STOP is not "give up." It is a mandatory replan checkpoint:

    line 25
  2. Distinctive:

    Wait for the user's call. Resuming the old strategy requires their explicit approval.

    line 31

≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Convergence Guard (stoploss)

Principle: the most expensive failure mode in agentic work is the fix-loop — repeatedly patching symptoms of a wrong plan. Tokens spent in a fix-loop are worse than wasted: they deepen commitment to a broken approach. This skill defines when to STOP.

External tool detection — check first

At session start (the PostToolUse hook does this automatically too): if a stoploss command exists on PATH or a stoploss.config.* file exists in the project, the user has a dedicated stoploss tool. Defer to it: run stoploss report (or its documented equivalent) when checking convergence, and treat its thresholds as authoritative over the defaults below.

Native thresholds (when no external tool is present)

Track mentally and via IMPLEMENTATION_NOTES.md:

  1. Same-file churn: the same file edited 5+ times in one session without its tests turning green → WARNING: state it explicitly and re-examine the approach before the next edit. 8+ edits → STOP.
  2. Three-strike rule: 3 consecutive fix attempts for the same failing test/behavior, each failing → STOP. Attempt #4 with the same strategy is forbidden.
  3. Deviation pressure: 3+ entries under Deviations in IMPLEMENTATION_NOTES.md touching the same subsystem → STOP.
  4. Scope creep: the session has touched 2x more files than the plan anticipated → pause and re-confirm scope with the user.

What STOP means

STOP is not "give up." It is a mandatory replan checkpoint:

  1. Freeze edits. No more code changes.
  2. Summarize for the user: what was attempted, what failed each time, what the failures have in common.
  3. State the hypothesis the fix-loop was implicitly betting on, and why the evidence now contradicts it.
  4. Propose 2 alternative approaches (different strategy, not different patch), with cost estimates.
  5. Wait for the user's call. Resuming the old strategy requires their explicit approval.

Anti-patterns

  • "One more try" past a threshold. Thresholds exist precisely because in-the-loop judgment is compromised in a loop.
  • Silently resetting the counter after a partial success. A test flipping green then red again counts as a strike, not a reset.
  • Treating STOP as failure. Detecting a wrong plan after 3 attempts instead of 15 is the system succeeding.

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.