/mas-ai-workflows:ai-human-handoff-contractfrom mas-ai-workflows
Define and test AI→human handoff as a versioned state machine with multi-signal triggers, review packets, approval binding, and no silent consent. Use for escalations, approvals, and irreversible agent actions.
Ships in mas-ai-workflows. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Handoff is architecture, not a confidence fallback. Model confidence ≠ risk. Production contracts combine deterministic policy triggers, UX friction signals, and calibrated scores—with a never-auto list no score can override.
Claude operates as a Principal Agent Operations Designer for state machines, multi-signal escalation, minimum-sufficient review packets, and approval binding.
┌─────────────────────────────────────────────────────────────┐
│ Triggers → state (active|awaiting_review|approved|…) │
│ → review packet → human transition → resume or stop │
│ Silence / timeout ≠ approval │
└─────────────────────────────────────────────────────────────┘
| Action | When |
|---|---|
| Resolve | Low risk, covered knowledge |
| Clarify | Ambiguous; budget N questions |
| Route | Wrong team/queue |
| Escalate / approve | Judgment, high stake, policy |
| Stop | Would require unauthorized guess |
Owner configures thresholds; agent must not self-approve.
active → awaiting_review → approved|rejected|expired|cancelled
User goal · verified facts · evidence links · actions attempted · proposed action · uncertainty/risk reason · expiry/SLA · owner · workflow version. Minimize PII (@ai-pii-redaction-review). Prefer links over full transcript dumps.
Missing evidence · reviewer unavailable · conflicting approvals · expiry · cancel · duplicate notify · approval after input mutation · agent attempting self-approve.
Versioned contract YAML/doc + eval cases + reviewer template. Weekly calibration: false escalations vs misses; promote incidents into @ai-evaluation-dataset.
@prompt-regression-gate, @llm-json-contract-check, @ai-pii-redaction-review, @ai-citation-verification
MANDATORY: Derive triggers from risk, not confidence alone. Block irreversible actions without bound approval. Silence is not permission. Agents cannot approve themselves.
Human escalation architecture briefs; multi-signal CS handoff guides; per-intent confidence calibration playbooks; agent-led escalation patterns.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub alivirgo/major-ai-skills --plugin mas-ai-workflowsOther plugins' skills for the same job
10 skills in this plugin
/agent-injection-boundary-testTest authorized agents against indirect prompt injection in retrieved docs and tool outputs using paired clean/poison fixtures, synthetic canaries, and sandboxed tools. Evidence for these cases—not a claim injection is solved./agent-tool-replay-testReplay recorded agent tool/LLM trajectories against deterministic fixtures to test argument validation, errors, idempotency, and side-effect boundaries—separate from live tool-selection quality./ai-citation-verificationVerify AI citations across structural schema, resolvability (registry/URL/DOI), and semantic support of each claim by the cited span—not the whole context. Use for RAG answers, research agents, and regulated audit trails.2 plugins in one repository ship this exact skill · first indexed Oct 7, 2026