Audits
How the external integration reliability audit works
See how Enji Guard checks external contracts, state consistency, and recovery from failures.
Audit page External integration reliability auditWhat this audit answers
How reliably does the application interact with external systems during normal operation, failure, and recovery? The audit follows an operation after the first call, when responses, delivery guarantees, and local state determine whether work completes safely.
What Enji Guard inspects
Enji Guard traces outgoing calls, SDKs, incoming events, local state updates, acknowledgments, retries, and recovery. It maps integrations across the repository and follows consequential operations more deeply, checking where shared helpers behave differently at individual call sites.
When a finding depends on a provider guarantee, the audit checks the official documentation for the relevant API or SDK version. It records the URL and section supporting the finding, such as the documented conditions for safe retries or event redelivery.
Diagnostic criteria
The report rates applicable criteria from 0 to 5. An inapplicable criterion or one with insufficient evidence has an explanation in place of a rating.
- Technical contract. Check how the application distinguishes success, pending outcomes, and failure, including malformed or empty replies.
- Waiting and resources. Follow timeouts, cancellation, cleanup, and the effect of a stuck call on other work.
- Errors, limits, and retries. Check whether failures are classified correctly and repeated attempts are safe and bounded.
- Idempotency. Trace operation identity across attempts and whether deduplication protects the actual effect.
- Event delivery. Follow durable acceptance, processing, acknowledgment, and handling of duplicate, late, missing, or reordered events where applicable.
- State consistency. Check what happens when an external effect succeeds but the local update or response is lost.
- Recovery. Trace how stranded work is detected and safely resumed, retried, or reconciled, including manual recovery.
How evidence becomes findings
A finding ties the application’s behavior to a relevant contract and explains the preconditions, safeguards, and supported consequences. The structured report gives a summary, findings with source evidence and confidence, diagnostic criteria, recommendations, scope limits, and a score when supported. Recommendations include a way to verify safe behavior after failure or an uncertain outcome.
Low covers local defects with small impact and straightforward recovery. Medium covers a bounded failure, inconsistency, or recovery gap with concrete consequences. High requires substantial loss of reliability or protection for an important operation, such as lost accepted work or lasting processing blockage. Critical requires evidence of an exceptional reachable mechanism that causes extensive, hard-to-reverse critical data loss or repeated irreversible effects despite applicable safeguards. Unconfirmed possibilities can appear as Info.
How the score works
Enji Guard calculates scores the same way across audits. The calculation starts at 100 and deducts 25 points per Critical finding, 14 per High, 7 per Medium, and 3 per Low. Info findings deduct zero. The calculation counts each independent root cause once when the evidence supports medium or high confidence. One Critical or at least two High findings cap the result at 69. The final score stays within 0–100. Diagnostic criterion ratings do not enter the calculation.
Limitations and boundaries
The audit is read-only and uses repository evidence, documented contracts, and bounded local stub checks when available and authorized. Live provider calls, event replays, charges, and messages are outside its scope. Missing or unclear provider documentation limits the conclusion. If the checked repository has no applicable integration, the audit reports it as inapplicable. Insufficient evidence for an overall assessment can yield an inconclusive result.
Review and rerun
Use the cited provider contract to verify the affected operation and its recovery path under controlled conditions. After a change, rerun against the new commit and check whether the same failure can still leave the application and provider out of sync.
Enji Guard