Scenario A — Plan Enrollment Duplicate Submission
Business symptom: a customer double-clicks "Enroll," or a client retries a request after a timeout whose original call actually succeeded. Engineering area: transactions / idempotency / Spring Data JPA. Risk: MEDIUM. Isolation: every action below operates only on a dedicated, disposable synthetic "Triage Scenario Customer" — never real customer data.
One click runs the whole thing for real — reproduce the bug, pull the real evidence, ask the model to diagnose it, have it write and compile a real fix, then run the real tests. The only thing it won't do for you is the last step: approving the fix is a real, separate action that needs a real admin login below, on purpose.
Other scenarios: Scenario B — Appointment Downstream Resilience · Scenario C — Admin Search Postgres Type Inference
1. Reproduce
The same enrollment request is submitted twice against the isolated triage customer.
2. Investigate
Real evidence: the resulting plan-history rows and the defective method'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. Historical Reference Patch
HISTORICAL REFERENCE, not a live proposal: the real diff that actually fixed this exact defect in production (commit 2155a8a) — shown for comparison against the AI-generated candidate above.
5. Verification
Runs the real, focused regression tests proving this fix (Test Impact Analysis: only the affected classes, 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.