| name | causal-deep-audit |
| description | Orchestrate evidence-first audits across public products, repositories, pull requests, UX flows, content, conversion paths, and agent actions using the connected Liminal repositories. Use when the user asks for a deep audit, causal audit, multi-lens review, or a combined QA/product/business assessment. |
Causal Deep Audit
Purpose
Produce a defensible audit in which every conclusion can be walked backward to an observation, every observation is bound to scope and time, and uncertainty is preserved instead of polished away.
Required inputs
Resolve from the request or repository context:
- target and canonical origin or repository;
- public surface, authenticated surface, code, PR, or mixed scope;
- authorization boundary;
- exact commit SHA when code or a PR is evaluated;
- device, locale, account, and environment profiles;
- business goal or user journey being protected;
- prohibited actions and stop conditions.
Do not invent missing authorization. Narrow the audit instead.
Execution graph
0. Readiness and authority
Apply the IFP/TIP boundary:
Undefined -> Configured -> Feedback Received -> Corrected -> Ready
Record the exact ready state. If target, authority, identity, or environment is ambiguous, return BLOCKED_BY_BOUNDARY or NEEDS_EVIDENCE for the affected branch.
1. Capture signals
Invoke evidence-capture.
Collect source, rendered, runtime, accessibility, network, console, temporal, and journey evidence only inside the declared boundary. Build a T-Trace-compatible ordered observation sequence.
When an approved logo, brand mark, wordmark, responsive lockup, favicon, or site identity transfer is load-bearing, invoke logo-fidelity-transfer. Bind the approved reference to canonical SVG geometry and exact browser-rendered selector captures; do not treat a visually plausible approximation as verified identity.
2. Adjudicate causality
Invoke causal-adjudication.
Separate:
observation -> product signal -> defect candidate -> confirmed defect
Root cause remains a hypothesis until supported by code, reproducible state transition, or discriminating counterfactual evidence.
3. Freeze repository identity
When a repository or pull request is in scope, invoke exact-head-governance.
Initial and final head identity must match. A force-push, stale review, unavailable check, or partial collection cannot produce PASS or CONFIRMED_DEFECT for code-level claims.
4. Gate the conclusion
Apply the Pythia boundary:
ALLOW_REPORT — evidence supports the stated claim inside scope;
ESCALATE — a human semantic, legal, product, or severity decision is required;
BLOCK — authority, identity, freshness, or evidence requirements failed.
The gate authorizes a report state, not execution, deployment, contact, disclosure, or merge.
5. Retrieve and replay memory
Invoke replay-memory.
Use prior audits to find analogous failure patterns and successful discriminating tests. Memory is advisory and may not override current exact evidence.
6. Model user and business impact
Invoke product-impact.
Trace the defect through user goal, friction, trust, conversion, support cost, operational risk, and recovery. Mark all unmeasured financial values as scenarios, not facts.
7. Select the next transition
Invoke transition-next-action.
Return the smallest justified action that preserves cooperation and evidence integrity. Do not jump from a public symptom directly to a remediation claim.
Mandatory audit lenses
For a deep audit, cover all applicable lenses:
- functional correctness;
- state and temporal consistency;
- UX, accessibility, and recovery;
- content and semantic integrity;
- visual identity and reference fidelity when brand assets are in scope;
- performance and reliability;
- privacy, authority, and security boundary;
- causal validity and competing explanations;
- product, conversion, and operational impact;
- evidence freshness, replayability, and exact identity.
A lens can be NOT_APPLICABLE, but it cannot silently disappear.
Output contract
Return these sections in order:
- Scope and authority
- Executive verdict
- Confirmed findings
- Needs-evidence findings
- Causal graph
- Competing explanations and counterfactuals
- User and business impact
- Evidence ledger
- Limitations and non-claims
- Prioritized next actions
Each finding must include:
- stable finding ID;
- claim level;
- severity and confidence;
- affected journey and profiles;
- observation trace IDs;
- causal parent and competing causes;
- reproduction status;
- freshness and exact source identity;
- user impact;
- business-impact status: measured, modeled, or unknown;
- next discriminating test;
- authority boundary.
Fail-closed rules
- Search snippets, cached pages, and prior reports are discovery signals only.
- Source-only text does not prove visible impact.
- One browser profile does not prove cross-profile consistency.
- A successful HTTP response does not prove journey success.
- Correlation does not prove cause.
- Absence of an observed error does not prove absence of a defect.
- Unavailable evidence cannot be converted into approval.
- Prior memory cannot replace current reproduction.
- A pixel similarity score cannot approve a logo or trademark transfer.
- Automated review cannot grant ownership, remediation authority, external submission, deployment, or merge.
Security-specialized extension
When the request includes threat modeling, AppSec, credentials, authorization, secrets, injection, supply chain, CI exploitation, distributed lifecycle, resource exhaustion, race conditions, or security review of agent skills, invoke cyber-causal-audit.
For WebSocket, Redis, Pub/Sub, reconnect, heartbeat, subscription, duplicate-delivery, stale-generation, or zombie-cleanup questions, invoke websocket-redis-lifecycle inside cyber-causal-audit.
The security route adds:
- external-skill source, license, exact-SHA, permission, and prompt-injection checks;
- repository-grounded threat boundaries and attacker capabilities;
- explicit security and lifecycle invariants;
- static, differential, and variant analysis;
- bounded discriminating tests;
- a mandatory false-positive gate;
- separate vulnerability, root-cause, severity, and confidence claims.
Security findings additionally include the asset and trust boundary, attacker capability and preconditions, violated invariant, reachability status, confidentiality/integrity/availability/accountability/safety impact, false-positive adjudication, and a separate vulnerability-versus-root-cause claim level.
A security route remains advisory. A suspicious pattern does not prove reachability or exploitability; an analog repository does not prove another product uses the same implementation; and automated review does not authorize credentials, exploitation, production stress, disclosure, remediation, deployment, or merge.