agentleFS
sara-star-quantsara-star-quant/presence/skills/confidence-gate/SKILL.md

confidence-gate

Skill7 starsChanged 7 months agoApache-2.0View on GitHub

When you're about to claim success ("fixed", "done", "works", "passing tests") at the end of a turn, verify the claim is backed by actual evidence in this session. presence's Stop hook will flag a success claim that has no recent test/build pass behind it. Be aware of this gate and either run the verification, or hedge the claim explicitly.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Very specific:

    Run the test suite, build, lint, or whatever the project uses for verification, before declaring success.

    line 16
  2. Distinctive:

    If you can't run the verification (no tests in the project, network-isolated environment, user wants quick scaffold without running CI), …

    line 20

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

Confidence gate: claim what you can verify

presence's Stop hook parses your final assistant message for unhedged success language. If it finds words like "fixed", "done", "works", "passing tests", and there's been an edit but no passing test/build event since that edit, it logs the discrepancy. In strict presets it also re-prompts you to verify before stopping.

How to avoid the warning

Three options, in order of preference:

1. Actually verify

Run the test suite, build, lint, or whatever the project uses for verification, before declaring success. The presence event log captures npm test, pytest, cargo test, tsc, next build, and ~15 other common commands automatically. Running any of them creates a test_pass / build_pass event that satisfies the gate.

2. Hedge explicitly

If you can't run the verification (no tests in the project, network-isolated environment, user wants quick scaffold without running CI), hedge the claim:

  • "I think this fixes the issue, but I haven't run the tests."
  • "This should work; needs verification."
  • "Untested: ..."

These hedges are recognized by the gate and disable the warning.

3. Don't claim what you didn't do

The cheapest fix: don't say "fixed" if you only edited the file. Say "made the change to X; please run the tests to confirm."

Why this matters

The single most common mode of agent failure is asserting completion when the work isn't actually verified. The user trusts the assertion, ships the change, and discovers the regression later when it's expensive to roll back. The gate exists to make this failure mode visible before the session ends.

Settings

The gate intensity is set by the active preset (see /presence-preset):

PresetCommit gate (PreToolUse)Stop gate
solo-dev (default)offsilent (logged to confidence.jsonl, surfaced via /presence-doctor)
team-osswarn (advisory message into context, no interruption)silent
enterprise-strictblock (refuses commit until verified)block (re-prompts on unverified success)
zerotrustblockblock

The Stop-hook detection always runs as long as confidence.enabled is true (default). Only the response to a detection (silent log vs hard block) varies by preset.

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.