audit_component_with_codex
Conduct a structured adversarial audit on a web component with cached results for unchanged surfaces and fresh reviews on changes. References helix defect-class corpus for defect identification.
Instructions
Run a structured codex adversarial audit against one component. Caches results by contract-surface hash so unchanged surfaces hit cache instantly; surface changes force a fresh review. Findings reference the helix defect-class corpus (01–14). Use this BEFORE shipping an extending component or migrating between helix versions.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tagName | Yes | Custom element tag name (e.g. "hx-button"). Must match a declaration in the loaded CEM. | |
| force | No | Skip the cache and force a fresh codex run. Default false. Use when you suspect a stale audit or want a deterministic re-evaluation. | |
| auditsRoot | No | Override the audits output directory. Defaults to <projectRoot>/audits/. Use for monorepo setups that prefer per-package audit dirs. | |
| libraryId | No | Optional library ID for multi-library workspaces (resolved by the dispatcher). |