agentleFS
tamesystemstamesystems/intent-engineering-skills/skills/harden-check/SKILL.md

harden-check

Skill0 starsChanged 40 days agoMITView on GitHub

Attack an engineering guardrail for realistic bypasses and close the cheap escape hatches that would let contributors or agents make verification green without satisfying the invariant.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    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:

    Name the protected invariant: Read the check and its intended scope before attacking it.

    line 12
  2. Distinctive:

    Prioritize cheap consequential bypasses: Do not ban every escape hatch in existence.

    line 14
  3. Distinctive:

    Keep exceptions explicit: When an escape hatch is legitimately necessary, require narrow scope and visible justification where practical …

    line 15

≈ “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

Harden Check

A check is only as strong as its cheapest routine bypass. Adversarially inspect a guardrail without turning the repository into a prison.

Work

  1. Name the protected invariant. Read the check and its intended scope before attacking it.
  2. Enumerate realistic bypasses. Depending on the stack, inspect suppressions/disable comments, @ts-ignore/@ts-nocheck, unsafe assertions, skipped/focused tests, ignored paths, mocks that erase the seam, config edits, alternate scripts, generated-file exclusions, or CI paths that omit the check.
  3. Prioritize cheap consequential bypasses. Do not ban every escape hatch in existence. Close bypasses that are easy, likely, and capable of defeating the invariant without conspicuous review.
  4. Keep exceptions explicit. When an escape hatch is legitimately necessary, require narrow scope and visible justification where practical rather than prohibiting all exceptions.
  5. Prove the hardening. Demonstrate at least one previously plausible bypass is now rejected or made conspicuous, and that legitimate code still passes.
  6. Do not protect the checker from intentional governance. Maintainers must still be able to deliberately change policy through review. The goal is to prevent accidental or opportunistic evasion, not make configuration immutable.

Return

  • Invariant
  • Bypasses examined
  • Bypasses closed
  • Legitimate exception path
  • Proof
  • Remaining exposure

Failure signals

Banning useful language features globally without evidence, making policy impossible to evolve, treating any config change as malicious, or adding more complexity than the protected invariant warrants.

Done when

The consequential cheap bypasses are closed or made explicitly reviewable, the intended exception path remains usable, and the hardened guardrail is proven on representative cases.

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.