Code audit

External integration reliability

Enji Guard checks how your app handles external services in normal use, failures and recovery.

  • Repository and branch
  • Read-only

What did the integrations audit find?

Worked 4 s · Enji Guard via MCP  ›

Score 68/100 — needs attention. 2 findings:

  • CriticalA warehouse outage cancels open orders
  • Medium riskA stalled tracking call blocks the queue

Fix them.

Worked 52 s  ›

Done. Both fixed and covered with tests:

  • Warehouse errors no longer cancel orders
  • Tracking calls time out; the queue keeps moving

Failure tests pass. Ready for your review.

What the audit checks

Seven areas, from API contracts to recovery.

  • API contract

    How code reads success, pending status, and errors.

  • Waits and resources

    Timeouts, cancellation, and cleanup after a failure.

  • Errors and retries

    Retry conditions, attempt caps, and provider limits.

  • Idempotency

    Same key for retries, a new key for a new operation.

  • Event delivery

    Acknowledgments, redelivery, duplicates, order and gaps.

  • State consistency

    How local records match external outcomes.

  • Recovery

    How the app or operator finds and resumes stuck work.

From service call to recovery

What a report can find at each step

  1. External call

    Check the API or SDK version and timeouts for external calls.

  2. Response handling

    Trace how code interprets success, pending status, and errors.

  3. Record the outcome

    Check local updates when the service response is lost.

  4. Event delivery

    Check acknowledgment, redelivery, and event order.

  5. Retry

    Check retry limits and which attempts share an operation key.

  6. Recovery

    Check how interrupted operations are detected and resumed.

What's in the report

  • A 0–100 score
  • Findings with code locations, impact, and next steps
  • Scope — what was checked and what wasn't

What the audit is not

  • Does not test APIs in production
  • Does not rate the service provider itself
  • Does not penalize unclear provider documentation

Connect a repository

GitHub or GitLab. The audit doesn't change your code.