Skip to content

feat: a second demo scenario so reviewers can click through every path - #49

Merged
Vishwas1345 merged 3 commits into
mainfrom
feat/demo-shared-outages
Oct 19, 2026
Merged

Vishwas1345 merged 3 commits into
mainfrom
feat/demo-shared-outages

Conversation

@Vishwas1345

Copy link
Copy Markdown
Owner

Why

The live demo only showed three outcomes: an approved retry that resolves, a retry blocked by policy, and "not enough evidence". A reviewer never saw a dependency recheck, an escalation, a failed verification, a cooldown block, or two lookalike failures kept apart.

What

  • shared-outages scenario (15 simulated labs, seeded beside the training event; 55 in total):
    • 6-lab license-server outage → AI proposes RECHECK_DEPENDENCY → policy passes → approval with countdown → runs → verification fails (a recheck changes no lab) → manual review. Investigating again within 5 minutes is blocked at rate_limit.
    • 5-lab quota exhaustion → AI recommends ESCALATE_MANUAL → straight to manual review, nothing to approve.
    • Two PROVISION_TIMEOUT failures on one cache, 25 minutes apart → two incidents, near-miss score 0.60 < 0.70.
  • The incident page now shows the near miss, which correlation already recorded but the UI never displayed.
  • The local "Run demo scenario" button seeds both scenarios, as the live boot does.
  • README: an "Every path, one incident each" table for reviewers. DESIGN, ACCEPTANCE, QUALITY, PLAN and ARCHITECTURE updated. Screenshots retaken from a fresh run.

No policy, executor or fixture-model logic changed. The training event's output is byte-identical (hashed before and after for three seeds).

Verification

  • Lint, typecheck: clean. Unit: API 993, web 163. Fresh clone (npm ci): same.
  • Integration: 243 passed, twice, on a fresh database (clean-db-check.sh). New: shared-outages.int.test.ts, plus a demo-route case.
  • Coverage: API 98.45% lines, web 93.33%.
  • Deploy image smoke (deploy-image-smoke.sh): two containers at once, 55 labs, idle reset works, 147 MiB of 512.
  • E2E journey on a fresh compose stack: passes, with new steps for the lookalike pair and the failed verification.
  • Mutation-checked: the lookalike gap at 10 min (150 tests fail); the epoch on the training event (51 fail); the recheck cooldown removed and verification forced to pass (integration fails both times); the near-miss line removed (E2E fails); the web button ignoring a failure (2 fail).
  • Walked every path in a browser on a fresh stack; final states: 1 resolved, 3 in manual review, 8 open (untouched).

🤖 Generated with Claude Code

Vishwas1345 and others added 3 commits October 19, 2026 11:27
… takes

shared-outages adds 15 simulated labs beside the training event: a
license-server outage (a recheck that runs and fails verification, then
its cooldown), a quota exhaustion (escalated to a person), and two
lookalike timeouts too far apart in time to merge. Both scenarios share
one provisioning event helper; the training event's output is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The incident page now says how close the nearest other failure came to
joining, which correlation already recorded. The local demo button runs
both scenarios, as the live demo seeds them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Vishwas1345
Vishwas1345 merged commit bccb970 into main Oct 19, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant