# MC 102047 — Bilko demo auth/API hang fix evidence

# MC 102047 — Bilko demo auth/API hang fix evidence

**MC task:** #102047  
**Updated:** 2026-05-26T08:45:03Z  
**Public demo:** https://bilko-demo.alai.no  

This page records the deployment and validation evidence for the Bilko demo auth/API 504/login/private-page hang fix. The fix is intentionally non-destructive and does not claim provider integrations that remain blocked by external prerequisites.

---

# Bilko MC #102047 fix evidence — web API hang handling

Generated: 2026-05-26T08:25Z

## Source
- PR #185: https://github.com/johnatbasicas/bilko/pull/185
- Merge commit: `91b2768cd28f10de681c2b3f5a15c62008ff8727`
- Scope: web client timeout/error handling for API hangs; remove login double-retry hang; invoice action accessible labels.

## Deployment
- Stage build: `62b2478b-c4a5-408e-9a9f-37cb97f30b79` SUCCESS
- Demo web image: `europe-north1-docker.pkg.dev/tribal-sign-487920-k0/bilko/web:stage-91b2768@sha256:798b3f1fd798c9745368d1a792aa33e8d24829127fce0f452d472bd850d9cc48`
- Candidate revision: `bilko-web-demo-00067-vud` (`candidate-91b2768`)
- Promoted: `bilko-web-demo-00067-vud=100%`
- Previous 100% revision: `bilko-web-demo-00065-ker`

## Validation
- Local validation before PR:
  - `npm --workspace apps/web run type-check` PASS
  - `cd apps/e2e && npx tsc --noEmit` PASS
  - `npm --workspace apps/web run build` PASS
  - push hook turbo type-check: 12/12 PASS
- Candidate public smoke: `/tmp/alai/bilko-102047-fix-91b2768-20260526T081730Z/candidate-public-smoke.json` PASS for `/login?country=HR`, `/privacy`, `/`.
- Deployed user acceptance agent:
  - Command: `E2E_USER_ACCEPTANCE=1 ... npx playwright test tests/user-acceptance-agent.spec.ts --project=chromium --no-deps --reporter=line`
  - Result: PASS, 1/1 test.
  - Report: `/tmp/alai/bilko-102047-fix-91b2768-20260526T081730Z/user-acceptance/BUGS.md`
  - Summary: 11/11 steps ok; bugs 0 total; P0/P1/P2/P3 all 0.
- Real demo smoke:
  - Command: `E2E_REAL_DEMO_SMOKE=1 ... npx playwright test tests/real-demo-smoke.spec.ts --project=chromium --no-deps --reporter=line`
  - Result: PASS, 1/1 test.
- Deploy gate:
  - `/tmp/evidence-102047/browser-verification.json`
  - PASS 2/2 flows (`login`, `dashboard` unauth redirect)
  - Screenshots: `/tmp/evidence-102047/browser-screenshots/`
- Cloud Run 5xx after deploy (`bilko-api-demo` or `bilko-web-demo`, since `2026-05-26T08:17:00Z`): none.
  - Evidence: `/tmp/alai/bilko-102047-fix-91b2768-20260526T081730Z/cloudrun-5xx-after-deploy.json`

## Notes
- The original Cloud Run 504 wave was intermittent and not conclusively root-caused in API code.
- Live API recovered before this patch, and post-deploy logs remain clean.
- This patch prevents the user-facing login button/page from hanging indefinitely if API/CORS requests hang again.


## Operational caveat

The original API 504 burst was intermittent and recovered before the web resilience patch was deployed. The deployed client-side fix prevents indefinite login/API hangs and surfaces recoverable errors if an upstream API/CORS request hangs again. Post-deploy Cloud Run 5xx/504 logs were empty for the checked window.