agentleFS
panjosepanjose/Co-Scientist/skills/convergence-check/SKILL.md

convergence-check

Skill5 starsChanged 6 months agoApache-2.0View on GitHub

Evaluate whether a hypothesis newly entered the current top-k set and update the convergence counter deterministically.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 2 are distinctive, and 5 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.

  • 5

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    when consumed by the evolution loop, updated state/EVOLUTION_STATE.json

    line 24
  2. Very specific:

    Read packages/agent_contracts/pipeline_control.py and confirm the exact EvolutionStateContract shape before writing …

    line 29
  3. Distinctive:

    Treat the top-k sets as caller-supplied frontier inputs.

    line 30
  4. Very specific:

    Use from tools import evaluate_convergence as the stable invocation surface.

    line 35
  5. Very specific:

    Read the candidate hypothesis_id, the previous and current top-k sets, and the current convergence count.

    line 42
  6. Very specific:

    When used by the evolution loop, persist the returned entered_top_k and convergenceCount values into state/EVOLUTION_STATE.json.

    line 45
  7. Distinctive:

    Do not fold additional stopping logic into this skill.

    line 51

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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-check

Goal:

  • Evaluate whether a hypothesis newly entered the current top-k set and update the convergence counter deterministically.

Inputs:

  • hypothesis_id
  • previous_top_k_ids
  • current_top_k_ids
  • current convergence count
  • caller-owned state/EVOLUTION_STATE.json

Outputs:

  • ConvergenceCheckResult
  • updated convergence count
  • when consumed by the evolution loop, updated state/EVOLUTION_STATE.json

Context Loading:

  • Open skills/shared-references/schema-index.md.
  • Read packages/agent_contracts/pipeline_control.py and confirm the exact EvolutionStateContract shape before writing state/EVOLUTION_STATE.json.
  • Treat the top-k sets as caller-supplied frontier inputs. This skill only evaluates the rule and updates the counter.

Execution Contract:

  • This skill is deterministic and must not call an LLM.
  • Use from tools import evaluate_convergence as the stable invocation surface.
  • The exported helper is implemented in packages/agent_mechanics/convergence_check.py.
  • The helper signature is evaluate_convergence(hypothesis_id, previous_top_k_ids, current_top_k_ids, current_convergence_count) -> ConvergenceCheckResult.

Execution Steps:

  1. Open skills/shared-references/schema-index.md, then read packages/agent_contracts/pipeline_control.py before writing state/EVOLUTION_STATE.json.
  2. Read the candidate hypothesis_id, the previous and current top-k sets, and the current convergence count.
  3. Call tools.evaluate_convergence(hypothesis_id, previous_top_k_ids, current_top_k_ids, current_convergence_count).
  4. Return the ConvergenceCheckResult to the caller.
  5. When used by the evolution loop, persist the returned entered_top_k and convergenceCount values into state/EVOLUTION_STATE.json.
  6. Validate any updated state/EVOLUTION_STATE.json artifact before declaring completion.

Artifact Rules:

  • The convergence rule is fixed: entering the top-k frontier resets the counter to zero; otherwise the counter increments by one.
  • Do not fold additional stopping logic into this skill. Stop decisions belong to evolution state management and completion verification.

Completion Rule:

  • This skill is complete only when the deterministic result has been produced and any caller-owned state/EVOLUTION_STATE.json update matches that result exactly.

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.