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-confidence-cues.md
View on GitHub---
title: Agent output with no rationale or sources
slug: trust-no-confidence-cues
category: trust
defaultTier: fix-this-sprint
surfaces: agent-chat, agent-dashboard
ax-pattern: Confidence Cues
detection: hybrid
related: trust-no-uncertainty-markers
---
## Agent output with no rationale or sources
Agent says "You should refactor this function" with no explanation. User can't evaluate the advice: follows it blindly or ignores it. Neither builds trust.
## What goes wrong
Agent responds with a confident directive and nothing else. User can't tell if it came from docs, past conversations, or hallucination. One wrong answer and they stop trusting all responses, having never had a way to tell good from bad.
## Detection
**Surfaces:** agent-chat, agent-dashboard
**Auditability:** hybrid
**Static signals:**
1. Find agent output components (`role="assistant"`, `<AssistantMessage>`, `<AiResponse>`).
2. Check for citation, source, reasoning, or thinking child components.
3. Flag output containers with zero rationale children.
**Concrete commands:**
```bash
rg -l 'role.*assistant|AssistantMessage|AiResponse|completion' --type=ts src/
rg -A 15 'role.*assistant|<AssistantMessage|<AiResponse' --type=ts src/ | rg -v 'Citation|Source|Reasoning|Thinking'
```
**Judgment signals:**
- Even if `<Sources>` exists, check whether it's populated vs. always empty.
- A rationale section for some response types but not others is a partial pass.
**False-positive guards:**
- Skip `// ax-audit-ignore:trust-no-confidence-cues`, test, and Storybook files.
- Skip status-only messages ("Done!" confirmations).
## Fix
Add inline rationale: sources, reasoning steps, or a collapsible thinking section.
## Examples
**Anti-pattern (fails):**
```tsx
<div className="agent-response" role="assistant">
<Markdown>{completion.text}</Markdown>
</div>
```
**Applied (passes):**
```tsx
<div className="agent-response" role="assistant">
<Markdown>{completion.text}</Markdown>
{completion.reasoning && <ThinkingBlock steps={completion.reasoning} />}
{completion.sources.length > 0 && <CitationList sources={completion.sources} />}
</div>
```
## Default tier and overrides
**Defaults to:** `fix-this-sprint`
| Surface | Tier |
|---|---|
| Agent tool execution | fix-this-sprint |
| Agent chat | fix-this-sprint |
| Agent config | backlog |
| Agent dashboard | fix-this-sprint |
## Suppression
```tsx
{/* ax-audit-ignore:trust-no-confidence-cues, status-only messages need no rationale */}
<AgentMessage content={statusText} />
```
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 |