Repository navigation
fix(runtime): settle Ask claims, HTTP framing and consumer recovery - #1185
Draft
seonghobae wants to merge 3 commits into
Draft
seonghobae wants to merge 3 commits into
seonghobae wants to merge 3 commits into
Conversation
… and mcp start.py rejects the public lineageweave-orchestrator-dev-only token, but backend and mcp still interpolated it as their fallback. Without --env-file the orchestrator read the private token from env_file while clients sent the public value, so every LLM channel failed authentication. Default the client credential to empty so channels stay visibly unavailable (ADR 0045 amendment).
CodeRabbit review on #1184: a plain docker compose up without --env-file gives only the orchestrator the token; backend and mcp need --env-file "$HOME/.env" (make up) or a shell export.
Combine the compose token repair (#1184) with the reviewed runtime repairs: Global Ask claim-generation fencing and completion drain, optional finite transport timeouts that keep explicit null, complete native HTTP framing with explicit response custody, TLS 1.2 floor, analysis/post-content worker connection-loss retry and fixed-name consumer terminal reporting. ADRs 0371, 0376, 0377 and the ADR 0083 null-timeout amendment stay Proposed. Synthetic fixtures only. Refs #1184
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
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. |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This branch stacks the reviewed runtime repairs on top of the compose token repair in #1184 (its head
d2736e60is the parent commit). The tree is exactly the 38-path union that received an independent substantive source review (PASS, no blocking source defect) againstmain91c3e1c7.What changes:
updated_atas a lease generation. Renewal and success/failure settlement are compare-and-set on status plus generation, so a stale owner cannot overwrite a newer owner's result. On completion the worker stops scheduling renewals, drains one already in flight, and lets a lost claim win over a finished answer. External cancellation still cancels without settling as failed.ORCHESTRATOR_ANSWER_TIMEOUT_SECONDSmeans no LineageWeave elapsed socket limit; explicit finite positive values are kept, and an explicit null now survives the post-chat factory instead of restoring a downstream default.Content-Length; a short declared body is rejected even when it is a complete JSON prefix. Detached responses are closed on every failure path. TLS minimum is pinned to 1.2 with certifi verification unchanged.AGENTS.mdguidance on timeout classification.Decision records
ADR 0371 (Ask claim-generation liveness), ADR 0376 (HTTP framing and response custody), ADR 0377 (background consumer terminal reporting) and the ADR 0083 null-timeout amendment are added as Proposed. Merging this PR needs those decisions; the PR is a Draft until they are made.
Verification
All on the exact tree
d1a3c563, with synthetic fixtures only:tests.ymlconditions (Python 3.12,uv sync --frozen,postgres:16-alpineat the pinned digest): exit 0, 2,157 passed, 156 conditional skips, 0 failures. The run used this tree plus one later worker increment that is not in this branch; the 38-path tree itself was covered by targeted runs below.frontend/.Not verified here: hosted GitHub Actions on this head, the production PostgreSQL/Valkey volumes, real provider traffic and the authenticated UI.
Known limits
409 Delivery is already runningoverlap; a bounded re-read is a separate change that needs its own ADR.Refs #1184