fix(noema): bound orchestrator health cancellation latency - #670
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthrough헬스 응답의 취소 작업을 대기하지 않는 방식으로 변경합니다. 취소 실패가 원래의 크기 초과 또는 읽기 오류를 대체하지 않도록 합니다. 중단 및 동기 예외 상황을 테스트합니다. Changes헬스 응답 취소 처리
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~12 minutes Change: Bug fix Merge Risk: ⚪ Minimal · up to Oversized health responses retain their fail-closed rejection even when cancellation stalls or fails, with reader locks released independently. The change is ready to merge. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
seonghobae
left a comment
There was a problem hiding this comment.
Exact-head direct review on 14b4c9a46692df0084a03b9a3b2ae4acf1178a83: no actionable finding. The two production changes are limited to best-effort cancellation after a final oversize decision; synchronous and asynchronous cleanup faults cannot replace the primary error, and reader-lock release remains independent. The hostile stalled-cancellation and synchronous-throw cases cover both streamed overflow and advertised Content-Length paths. The final delta only documents the shared bounded test helper. Base is protected main@643106a6c6db859a612854052d1d209354f97fee, behind 0; all four exact-head hosted gates are terminal SUCCESS and there are zero review threads. This COMMENT records direct review evidence and is not self-approval.
…alth-cancel-liveness-authority-20260912 docs(noema): converge #670 health cancellation authority
Purpose
Close a Noema-owned consumer-side liveness gap in
verifyOrchestratorHealthzwithout moving provider/model routing or contextual-orchestrator service authority into Noema.Hosted RED → causal repair
Protected
main@643106a6c6db859a612854052d1d209354f97feeawaited cancellation cleanup after an already-decisive health-response size violation in two paths: advertisedContent-Length > 65,536and streamed body overflow. A hostile or wedged upstream body could therefore keep the Noema health preflight pending even though fail-closed rejection had already been decided.Test-only exact
73d25fcf93e458242830ee6498fbe97fcd176532adds bounded hostile failsafes for both cancellation paths and requires reader-lock release to remain independent. Because same-branch concurrency twice cancelled historical runs before an unambiguous result, Draft RED-only evidence lane #671 was created at that same exact commit. Hosted CI 34685998987 passed exact checkout, toolchain, base/lock control, install and typecheck, then failed specifically at release tests. This is the unambiguous executable RED; #671 contains no production repair.The first source repair made cancellation completion best-effort. Review then found a second causal gap: a cancellation implementation may throw synchronously before returning a promise, which would replace the primary oversize classification and, for the reader path, could skip lock release. Additional hostile tests bind both synchronous-throw paths.
Exact
c19682d1df245cdb869d8074fa8913ab91ef03f3catches synchronous cleanup faults as well as asynchronous rejection, never waits for cancellation completion after the size decision is final, and releases the consumed reader lock independently. Final exact14b4c9a46692df0084a03b9a3b2ae4acf1178a83adds the required public JSDoc for the shared hostile-test failsafe helper without changing runtime behavior. Base→head is behind 0 and limited toscripts/lib/orchestrator-gateway.mjsplustest/orchestrator-gateway-stream-bound.test.ts.Exact-head GREEN
On
14b4c9a46692df0084a03b9a3b2ae4acf1178a83:A fresh exact-head direct review found no actionable issue, and the PR has zero review threads. CodeRabbit's substantive review covered
c19682d…; its JSDoc-only delta attempt was rate-limited and is not represented as independent approval.Boundary
No provider selection, model routing, credential ownership, outbound/destination authority, quarantine/security authority, or contextual-orchestrator server behavior is added to Noema. The change is limited to Noema's already-authorized health-response consumer cleanup semantics.
Successor evidence
#671 is a RED-only evidence PR whose sole valid delta is an ancestor of this PR and remains in the current test file. It must not be merged. After this PR is normally merged, #671 may be closed only as a verified complete-successor case, preserving its hosted RED evidence by reference.
Merge authority
No gate weakening, force push, destructive rebase or self-approval. Merge requires exact head
14b4c9a46692df0084a03b9a3b2ae4acf1178a83, fresh unchanged protected base643106a6c6db859a612854052d1d209354f97fee, four terminal SUCCESS gates, and zero unresolved threads.