Files
HealthAppRepositoryB/ImplementationPlan/admission-correction.md
T

2.2 KiB

2026-10-20 — owner-directed behavior correction

The latest owner instruction supersedes Q1's permission to introduce admission 503s and a blanket request deadline. Preserve A's public behavior rather than adding policy because the monolith makes it convenient. This is authorized repair, not a new architecture proposal. Original A revision remains 2117236366130775214d9fd2611984d4348f2b79, clean and read-only. Pre-existing B changes (.gitignore, README.md, implementation log and untracked test tools) are retained.

Remove both application admission semaphores, their 503/Retry-After path and the new global 30-second timeout. Do not substitute a higher cap or a new waiting policy. Keep original client cancellation, provider connection/command limits, request transaction cleanup and coherent B snapshots. Use Npgsql's bounded pool without imposing the invented 32-connection default; explicit pool configuration remains a deployment override. Remove the invented settings from new installations. Old configuration keys must not recreate the removed behavior.

Restore the six adopted A dependency-outage assertions from 503 to their original 502. Preserve failure-vs-absence, non-disclosure and no-write assertions. Replace the B-only admission-rejection/deadline tests (which codified the wrong policy) with deterministic held-request tests at 5, 26 and 40 concurrent requests, client cancellation/rollback, and pool-wait cancellation/recovery. Preserve anonymous guidance availability, authorization failures, transaction isolation and all other functional assertions. Add a native HTTPS burst regression against a fresh local instance; do not modify A or reclassify the failed four-hour run.

Run the entire B solution on a disposable database, provisioning tests and native HTTPS regression. Publish a new versioned reviewable release; deployment requires protected server operations and must preserve existing configuration, data, keys and historical measurements. Report implemented/tested versus deployed separately.

Exact retired HTTP transport faults cannot literally be exercised inside one process. Audit the adopted A-facing status contracts explicitly; do not claim all environmental failure combinations are proven equivalent by a finite suite.