HK-hub/AgentSkills / ax-audit
ax-audit
VerifiedAudits agentic applications for architecture and trust: tool parity, tool granularity, context injection, completion signals, approval gates, confidence cues, escape hatches, intent handshakes, memory visibility, and adaptive canvases. Produces a ship-readiness verdict plus an AX Relationship Summary. Use when reviewing agentic feature PRs or asking "is this agent-native", "AX review", "critique this AI feature", "does this earn user trust", or "audit this for AX". For traditional frontend UX use ui-audit.
rules-ax/trust-no-escalation-path.md
View on GitHub---
title: High-stakes agent action with no human escalation
slug: trust-no-escalation-path
category: trust
defaultTier: release-blocker
surfaces: agent-tool-execution, agent-chat
ax-pattern: Escape Hatch (escalation dimension)
detection: code-auditable
related: control-no-approval-gate, control-no-escape-hatch
---
## High-stakes agent action with no human escalation
Agent handles a refund, medical question, or legal inquiry with no way to hand off to a human: it gives a dangerous answer or refuses entirely. An escalation path is the trust floor.
## What goes wrong
User asks about a billing dispute. Agent applies a partial credit that doesn't match. No "talk to a person" button. It keeps trying, makes things worse, user files a chargeback.
## Detection
**Surfaces:** agent-tool-execution, agent-chat
**Auditability:** code-auditable
**Static signals:**
1. Find action handlers for high-stakes operations (financial, medical, legal, account deletion).
2. Check for escalation/handoff logic. Flag high-stakes handlers with no escalation path.
**Concrete commands:**
```bash
rg -l 'refund|payment|delete.*account|send.*email|legal|medical' --type=ts src/
rg 'escalat|handoff|transfer.*human|transfer.*agent' --type=ts src/
```
**Judgment signals:**
- An escalation tool never referenced in the system prompt is effectively invisible.
**False-positive guards:**
- Skip `// ax-audit-ignore:trust-no-escalation-path`, test, and Storybook files.
## Fix
Add `escalate_to_human(reason, context)` as an agent tool. Surface it in the UI as "Talk to a person."
## Examples
**Anti-pattern (fails):**
```tsx
const agentTools = {
processRefund: async (amount: number) => {
await api.refund(amount);
return { success: true, message: "Refund processed." };
},
};
```
**Applied (passes):**
```tsx
const agentTools = {
processRefund: async (amount: number) => {
if (amount > ESCALATION_THRESHOLD) return { escalate: true, reason: "Exceeds limit" };
await api.refund(amount);
return { success: true };
},
escalateToHuman: async (reason: string, ctx: AgentContext) => {
await support.transfer({ reason, transcript: ctx.messages });
return { message: "Connecting you with a team member." };
},
};
```
## Default tier and overrides
**Defaults to:** `release-blocker`
| Surface | Tier |
|---|---|
| Agent tool execution | release-blocker |
| Agent chat | release-blocker |
| Agent config | backlog |
| Agent dashboard | fix-this-sprint |
## Suppression
```tsx
{/* ax-audit-ignore:trust-no-escalation-path, internal admin tool, operator is the human */}
<AgentToolPanel tools={adminTools} />
```
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |