agentleFS
saint0xsaint0x/my-skills/env-harness/SKILL.md

env-harness

Skill1 starsChanged 3 months agoMITView on GitHub

Use when validating, repairing, or hardening evaluation harnesses, runtime environments, route guards, sandboxes, canaries, and dependency stacks for RLM or RL systems. Especially useful when metrics look suspicious, harness behavior may mask model weakness, or production-shaped tests must prove real execution and safety boundaries.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈9

    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:

    Use this skill when the environment or harness could be part of the result.

    line 8
  2. Distinctive:

    Never optimize a model against an untrusted harness.

    line 12
  3. Distinctive:

    Before trusting a run, verify:

    line 16
  4. Distinctive:

    no stale server or trainer process owns memory

    line 25
  5. Distinctive:

    When a number changes, identify which layer changed.

    line 42
  6. Distinctive:

    read-only plans remain read-only

    line 74
  7. Distinctive:

    When a gate fails:

    line 81
  8. Distinctive:

    Add a narrow regression test before repair.

    line 85
  9. Distinctive:

    Always label the pass as model-weight improvement, runtime-route improvement, harness/scorer repair, environment repair, or …

    line 91

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

Env Harness

Use this skill when the environment or harness could be part of the result.

Principle

Never optimize a model against an untrusted harness. Prove what the harness measures before treating metrics as model truth.

Validate The Stack

Before trusting a run, verify:

  • correct repo and branch
  • clean or intentionally dirty worktree
  • correct Python/runtime path
  • correct vendor dependency path
  • correct GPU runtime visibility
  • correct model and adapter lineage
  • correct local-files-only behavior when required
  • no stale server or trainer process owns memory
  • artifacts are from the run being discussed
  • stdout summary matches results/latest.json

Harness Layers

Inspect changes by layer:

  1. dataset contract
  2. prompt wrapper
  3. decoder or route policy
  4. argument repair
  5. sandbox/execution backend
  6. scorer
  7. artifact writer
  8. promotion decision

When a number changes, identify which layer changed.

Route Guard Rules

Route guards are production behavior, not eval hacks.

Good guards:

  • scope intent to the active prompt segment
  • honor explicit toolcall headers
  • fail closed on safety-critical prompts
  • record override reason
  • preserve already-correct routes
  • have narrow tests for each repair

Bad guards:

  • scan stale context and override current intent
  • silently transform model failure into success
  • green a fixture while OOD remains broken
  • conflate tool selection with argument correctness

Canary Discipline

Executable canaries should prove:

  • exact JSON or action tokens
  • exact tool and arguments
  • allowed mutations only
  • expected failures observed
  • recovery path works
  • approval pauses happen at unsafe boundaries
  • read-only plans remain read-only
  • endpoint/client proof exists when user interaction matters

Expected failures are part of the signal. Do not hide them.

Debug Workflow

When a gate fails:

  1. Print prompt, expected output, generated output, score object, route details, and execution result.
  2. Classify the failure as data, route, decoder, model, environment, scorer, or artifact issue.
  3. Add a narrow regression test before repair.
  4. Rerun the focused failing case.
  5. Rerun the full gate only after the focused failure is green.

Reporting

Always label the pass as model-weight improvement, runtime-route improvement, harness/scorer repair, environment repair, or documentation-only clarification.

That label prevents fake model progress.

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.