human-in-the-loop-design — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited human-in-the-loop-design (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
When designing agent autonomy boundaries, building escalation gates, calibrating confidence thresholds, or implementing approval workflows. Use for any system where an AI agent must decide between acting autonomously and requesting human guidance.
Core principle: Maximum VALUE, not maximum autonomy — the goal is not to minimize human involvement. The goal is to maximize the value delivered. Sometimes the highest-value action is asking the human. The art is knowing WHEN.
| Impact \ Reversibility | Easily Reversible | Hard to Reverse | Irreversible |
|------------------------|------------------------|------------------------|------------------------|
| Low Impact | AUTONOMOUS | AUTONOMOUS | CONFIRM |
| Medium Impact | AUTONOMOUS | CONFIRM | APPROVE |
| High Impact | CONFIRM | APPROVE | APPROVE + WAIT |
Levels:
- AUTONOMOUS: Agent acts without asking (log for audit)
- CONFIRM: Agent acts but shows what it did (user can undo)
- APPROVE: Agent proposes, human approves before execution
- APPROVE + WAIT: Agent proposes, human approves, agent waits for explicit "go" AUTONOMOUS (act freely):
- Reading files
- Running read-only queries
- Searching codebases
- Generating suggestions (not applying them)
CONFIRM (act, show, allow undo):
- Editing existing files
- Creating new files in expected locations
- Running tests
- Installing dev dependencies
APPROVE (propose, wait for yes):
- Deleting files
- Modifying configuration
- Running destructive commands
- Changing auth/security code
- Making API calls with side effects
APPROVE + WAIT (high ceremony):
- Deploying to production
- Modifying database schema
- Changing payment logic
- Force-pushing to shared branches
- Deleting user data Always escalate when:
- Confidence < 0.7 on the correct approach
- Action is irreversible AND high-impact
- Multiple valid approaches exist with no clear winner
- Task contradicts prior user guidance
- Security-sensitive code is being modified
- User's intent is ambiguous
Escalation format:
"I need your input on [X].
Context: [what I understand about the situation]
Options: [A, B, C with tradeoffs]
My recommendation: [preferred option + why]
What I'm uncertain about: [specific uncertainty]"Rules:
Principles:
- Fast: approval should take <5 seconds for clear cases
- Informative: show WHAT will happen, not just ask "ok?"
- Defaulted: suggest the likely answer (approve/reject)
- Skippable: allow bulk-approve for repetitive low-risk items
- Auditable: log every approval decision with timestamp and rationale
Good approval request:
"I'd like to add an index on users.email (migration file ready).
This will lock the table for ~2 seconds during deploy.
[Approve] [Reject] [Show migration SQL first]"
Bad approval request:
"Can I make a database change?"Rules:
Calibration goal:
When the agent says "I'm 90% confident" → it should be correct 90% of the time
When the agent says "I'm 50% confident" → it should be correct 50% of the time
Measuring calibration:
- Collect (confidence, actual_outcome) pairs from eval runs
- Plot calibration curve (expected accuracy vs actual accuracy)
- Perfect calibration = diagonal line
- Overconfident = curve below diagonal (says 90%, is right 70%)
- Underconfident = curve above diagonal (says 50%, is right 80%)
Fixing miscalibration:
- Overconfident: lower confidence thresholds (escalate more)
- Underconfident: raise thresholds (escalate less, trust yourself)
- Recalibrate after major model/prompt changesRules:
Explanation structure:
1. WHAT: what you're asking about (specific, concrete)
2. WHY: why you can't decide autonomously (the uncertainty)
3. OPTIONS: what the choices are (with tradeoffs)
4. RECOMMENDATION: what you'd do if forced to decide
5. CONTEXT_GAP: what information would let you decide next time
Good explanation:
"I found two approaches to implement caching (Redis vs in-memory).
Redis is more robust but adds infrastructure cost.
In-memory is simpler but won't survive restarts.
I'd lean toward Redis for production, but I don't know your infra budget.
If you tell me the acceptable monthly cost, I can decide this autonomously next time."
Bad explanation:
"Should I use Redis or in-memory caching?" Trust levels:
Level 1 — New agent (restrictive):
- APPROVE for any write operation
- CONFIRM for most read operations
- Escalation rate: high (~30% of actions)
Level 2 — Established (standard):
- AUTONOMOUS for reads and standard writes
- CONFIRM for destructive operations
- APPROVE for irreversible high-impact actions
- Escalation rate: moderate (~10%)
Level 3 — Trusted (permissive):
- AUTONOMOUS for most operations
- CONFIRM for irreversible actions
- APPROVE only for production deploys and security changes
- Escalation rate: low (~3%)
Level transitions:
- Promote: 20 consecutive successful autonomous actions without user correction
- Demote: 1 autonomous action that user explicitly reverses or flags as wrong
- Demotion is faster than promotion (trust is earned slowly, lost quickly) Metrics to monitor:
- Escalation rate: % of actions that require human input
- False escalation rate: % of escalations where human says "just do it"
- Missed escalation rate: % of autonomous actions that were wrong
- Approval latency: time between escalation and human response
- Rubber-stamp rate: % of approvals decided in <2 seconds (too fast = not reading)
Healthy ranges:
- Escalation rate: 5-15% (too low = risky, too high = annoying)
- False escalation rate: <20% (too high = boundaries too tight)
- Missed escalation rate: <2% (too high = boundaries too loose)
- Rubber-stamp rate: <30% (too high = approval fatigue, redesign needed)Rules:
Before marking a task done when this skill was active:
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.