Skip to content

HK-hub/AgentSkills / ax-audit

ax-audit

Verified

Audits 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.

FileKindSize
SKILL.mdskill md8.7 KB
references/agent-native-principles.mdmarkdown3.6 KB
references/ax-evolution-curve.mdmarkdown3.0 KB
references/feature-playbooks.mdmarkdown6.7 KB
references/output-format.mdmarkdown4.8 KB
references/ship-readiness.mdmarkdown5.5 KB
rules-arch/_sections.mdmarkdown1.8 KB
rules-arch/_template.mdmarkdown2.2 KB
rules-arch/comm-no-approval-gate.mdmarkdown3.2 KB
rules-arch/comm-no-completion-signal.mdmarkdown2.9 KB
rules-arch/comm-no-progress-visibility.mdmarkdown2.7 KB
rules-arch/context-no-checkpoint-resume.mdmarkdown2.8 KB
rules-arch/context-no-injection.mdmarkdown2.6 KB
rules-arch/context-starvation.mdmarkdown2.6 KB
rules-arch/granularity-static-api-mapping.mdmarkdown2.9 KB
rules-arch/granularity-workflow-shaped-tool.mdmarkdown2.8 KB
rules-arch/parity-crud-incomplete.mdmarkdown2.5 KB
rules-arch/parity-no-tool-parity.mdmarkdown2.3 KB
rules-arch/parity-orphan-ui-action.mdmarkdown2.4 KB
rules-ax/_sections.mdmarkdown2.9 KB
rules-ax/_template.mdmarkdown2.5 KB
rules-ax/comm-no-generative-momentum.mdmarkdown2.6 KB
rules-ax/comm-no-intent-handshake.mdmarkdown3.1 KB
rules-ax/comm-no-progress-signal.mdmarkdown2.8 KB
rules-ax/context-memory-not-visible.mdmarkdown3.0 KB
rules-ax/context-no-adaptive-canvas.mdmarkdown2.9 KB
rules-ax/context-under-contextual.mdmarkdown2.9 KB
rules-ax/control-no-approval-gate.mdmarkdown2.8 KB
rules-ax/control-no-escape-hatch.mdmarkdown2.7 KB
rules-ax/control-over-conversational.mdmarkdown2.3 KB
rules-ax/trust-no-confidence-cues.mdmarkdown2.5 KB
rules-ax/trust-no-escalation-path.mdmarkdown2.6 KB
rules-ax/trust-no-uncertainty-markers.mdmarkdown2.5 KB

rules-arch/parity-crud-incomplete.md

View on GitHub
---
title: Entity with incomplete CRUD tool coverage
slug: parity-crud-incomplete
category: parity
defaultTier: release-blocker
surfaces: agent-tool-execution, agent-config, agent-dashboard
agent-native-principle: Parity
detection: code-auditable
related: parity-no-tool-parity
---

## Entity with incomplete CRUD tool coverage

Entity has create and read tools but no update or delete: the agent creates a note but can't fix a typo, lists tasks but can't mark one complete.

## What goes wrong

Agent creates a note. User spots a typo. No `update_note` tool exists. Agent says "I can't edit it." The agent generated work instead of completing it.

## Detection

**Surfaces:** agent-tool-execution, agent-config, agent-dashboard

**Static signals:**
1. List all entity types from tool definitions.
2. For each entity, verify create/read/update/delete tools exist.
3. Flag entities with <4 CRUD operations.

**Concrete commands:**
```bash
rg 'name:\s*["\x27](create|get|list|update|edit|delete|remove)_(\w+)' \
  --type=ts -o --no-filename src/tools/ | awk -F'_' '{print $2}' | sort | uniq -c | sort -n
rg 'name:\s*["\x27]create_' --type=ts -o --no-filename src/tools/ | \
  sed 's/.*create_//' | sed 's/["\x27]//' | while read e; do
    rg -q "update_${e}|edit_${e}" src/tools/ || echo "MISSING update: $e"; done
```

**False-positive guards:**
- Skip immutable entities (audit logs, event streams) and `// ax-audit-ignore:parity-crud-incomplete`.

## Fix

Add the missing CRUD tools. Every entity needs all four.

```ts
// before: [createNote, listNotes]: after: add update and delete
export const updateNote = tool({
  name: "update_note",
  execute: async ({ noteId, ...fields }) => api.patch(`/notes/${noteId}`, fields),
});
export const deleteNote = tool({
  name: "delete_note",
  execute: async ({ noteId }) => api.delete(`/notes/${noteId}`),
});
```

## Default tier and overrides

**Defaults to:** `release-blocker`: incomplete CRUD strands agents mid-workflow.

## Examples

**Anti-pattern (fails):**
```ts
export const createTask = tool({ name: "create_task", /* ... */ });
export const listTasks = tool({ name: "list_tasks", /* ... */ });
// No update_task, no delete_task: agent can't mark tasks complete
```

**Applied (passes):**
```ts
// All four CRUD operations present
export const tools = [createTask, listTasks, getTask, updateTask, deleteTask];
```

## Suppression
```ts
// ax-audit-ignore:parity-crud-incomplete, audit_log is intentionally immutable
export const listAuditLogs = tool({ name: "list_audit_log", /* ... */ });
```
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: 472kUpdated Claude CodeCodexVerifiedInstall
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: 472kUpdated Claude CodeCodexVerifiedInstall
rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first.Stars: 194kUpdated Claude CodeCodexVerifiedInstall