# Evidence-First Live Diagnostic and Repair

- id: evidence-first-live-diagnostic-repair
- type: prompt
- category: production-reliability
- detail: https://agents.proofandstate.com/products/evidence-first-live-diagnostic-repair

## Summary
Diagnose and repair external-write failures without duplicate side effects by ranking evidence, separating ambiguous outcomes, and requiring authoritative provider readback before success.

## Problem
External API calls can return ambiguous or misleading local success while the provider-side effect is absent, duplicated, delayed, or unknown.

## Core outcomes
- Read-only failure reconnaissance
- Provider-first evidence hierarchy
- Explicit external-write outcome model
- Idempotent and correlation-safe repair
- Official readback before success

## Requirements
- TypeScript or JavaScript service with external API writes
- Durable transaction store
- Official provider read/status/receipt APIs
- Test runner
- Local no-write execution path
- Explicit authority for real diagnostic writes
- Durable idempotency or correlation mechanism

## Boundaries
- Successful local execution is not provider success
- Ambiguous evidence remains unresolved
- Live diagnostic writes must be explicitly authorised
- Repair must not create duplicates

## Tags
- debugging
- external-writes
- provider-readback
- idempotency
- reconciliation

## Canonical source
- repository: AyobamiH/agent-shop-products (main)
- payload path: products/evidence-first-live-diagnostic-repair/PROMPT.md

## Not published
Price, ratings, reviews, sales figures and full PROMPT.md / SKILL.md payload bodies are not published.
