fix(archreview): P0 tier remediation (8 findings) #120
Reference in New Issue
Block a user
Delete Branch "fix/archreview-p0"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Executes the P0 tier (8/8 findings) of the 2026-07-08 architecture review (
archreview/remediation/00-tracking.md). Work was fanned out across parallel agents on disjoint file sets, then verified.Findings
WorkerClient._events→SingleReader+ claimed-once guard so any future dual-consumer regression throws.CloseExpiredLeasesAsync(IsFaultedReapable+FaultedReason); newFaultedGraceSeconds(default 0).MaxSparseArrayLength(default 1,000,000) enforced before allocation.PumpPendingMessages()refreshes activity, removing the falseStaHungon longReadBulk.Events()emits terminalErrSlowConsumeron overflow instead of closing silently.invokevalidateshresult < 0/MXSTATUS_PROXYvia newError::MxAccess.StreamEventsattach enforces the opening key id →PermissionDeniedon owner mismatch.CLAUDE.mdretention-defaults sentence corrected.Verification
SparseArrayExpander/validator 61,SessionManager/validator 106,EventStreamServiceTests16 + auth 53,GatewaySessionDashboardMirror20).StaRuntimeTests+WorkerPipeSessionTests33/33.WorkerClientTests(Windows host, net10 — can't run on macOS due to the Unix-socket path limit): 18/18, incl. GWC-01'sReadEventsAsync_SecondEnumerator_Throws.gofmtclean,go build/go test ./...(+-race) pass.cargo fmt/check/test(28) andclippy --all-targets -D warningsclean.Windows verification also caught (and this PR fixes) an
xUnit1030build error — the new worker test used.ConfigureAwait(false)in a[Fact]body, which the macOS tree structurally cannot surface.Notes
GatewaySession.cs/SessionManager.csand are committed together with all IDs in the body.