Scenario B — Appointment Downstream Resilience (Wrong Retry Predicate)
Business symptom: checking technician appointment availability calls a real downstream HTTP service; a client-error response (HTTP 400) is never a transient condition, so retrying it can never help — only waste calls and delay the answer. Engineering area: HTTP integration / Resilience4j retry classification. Risk: LOW. Isolation: the "buggy" retry policy is a private, unregistered instance inside a dedicated Triage service — never wired into the real production path real customers' appointment checks use.
Other scenarios: Scenario A — Plan Enrollment Idempotency · Scenario C — Admin Search Postgres Type Inference
1. Reproduce
A real HTTP call to the synthetic downstream appointment provider, requesting a scenario that returns a genuine HTTP 400 (client error), wrapped in the currently-active retry policy.
2. Investigate
Real evidence: the actual number of HTTP attempts made, and the defective retry predicate's actual source.
3. AI Diagnosis
One real, on-demand model call over the evidence above — not scripted, not told the answer in advance.
4. AI-Generated Candidate Patch
A real, on-demand model call writes the actual fix given the defective file and the evidence above — not told the answer. Applied and compiled in an isolated workspace, never the real repository.
4b. Production Reference
REFERENCE, not a live proposal: this scenario's defect was deliberately seeded for training purposes (not a historical production incident), so instead of a git commit, this shows the REAL, already-correct, already-tested retry predicate already live elsewhere in this codebase for the same downstream call — for comparison against the AI-generated candidate above.
5. Verification
Runs the real, focused regression test proving this fix (Test Impact Analysis: only the affected class, not the full suite).
6. Human Approval Required
Applying this fix to the isolated triage scenario requires real ADMIN authorization — the same admin1/admin2 demo credentials used throughout this portfolio. An anonymous or USER-role attempt is rejected server-side, not just hidden in the UI.
Incident Resolved
7. Promote This Candidate to REAL Production (Advanced)
Distinct from Step 6 above (which only flips this isolated demo's own state): this commits the exact AI-generated candidate file shown in Step 4 to a dedicated branch, pushes it, deploys the REAL Customer App, and re-runs this exact reproduction against the newly-deployed production build. Requires real ADMIN authorization. A real human must exercise this — nothing in this system can promote a candidate on its own.