Repository navigation
fix(server): capacity recovery and verdict fixes from the council review - #808
Merged
Merged
Conversation
…he activity scan - A gap of more than 30 s between samples now holds both classes until they recover, so a background verdict that was open no longer reopens on the first sample after a stall. - Recovery time is measured between samples, not to the read, so a read with no new sample can't end recovery. - Launch, task and Action results read capacity without activity; only environment reads count turns. - The folder inventory has its own 1 s timeout, so a slow volume can't delay the rule signals. Carry-Group: incubator Carry-Observation: Advisory capacity evolves independently of the launch, environment, and CLI results that carry it. Co-Authored-By: Claude <[email protected]>
…s logged - A verdict is `hold` when any rule is breached, and `unknown` only when every reason is unreadable or stale. Before, one unreadable signal, such as Linux memory pressure, hid a real breach as `unknown`. - A defect in one sample is logged as `capacity.sample-failed`, and sampling continues. Before, it ended the sampler silently and every later read was stale. - The activity count for environment reads times out after 1 s, shorter than a peer's 2 s forwarded read, so a slow thread scan drops only activity. Carry-Group: incubator Carry-Observation: Advisory capacity evolves independently of the launch, environment, and CLI results that carry it. Co-Authored-By: Claude <[email protected]>
…d breach Carry-Group: incubator Carry-Observation: Advisory capacity evolves independently of the launch, environment, and CLI results that carry it. Co-Authored-By: Claude <[email protected]>
…change Carry-Group: incubator Carry-Observation: Advisory capacity evolves independently of the launch, environment, and CLI results that carry it. Co-Authored-By: Claude <[email protected]>
lastobelus
marked this pull request as ready for review
November 21, 2026 01:44
Owner
Author
|
@codex review |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. More of your lovely PRs please. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
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.
Two independent reviewers, GPT-6.2 Astra (high) and Claude Fable 5.2 (high), re-reviewed the whole observe-only capacity system after #793, #794 and #797. This PR fixes what they found in verdicts, recovery and launch latency, before capacity step 2 starts acting on verdicts.
What changed
holdwhen a fresh measurement breaches a rule, even if another signal can't be read. Before, one unreadable signal hid the breach asunknown. On Linux, memory pressure is always unreadable, so Linux could never reporthold. A stale sample is stillunknown, even if its last reading breached.t3_environment_readcounts turns, and that count now times out after 1 s, inside a peer's 2 s forwarded read.capacity.sample-failed, and sampling continues. Before, it ended sampling silently, and every later read stayed stale until restart.Not changed
delegate_taskcapacity: still read with one bounded call to the peer. The remote launch starts asynchronously afterdelegate_taskreturns, so there's no launch result to reuse.enforcedfield on the snapshot, for step 2;Validation
vp run check:changed origin/lastcode/mainpassed format, lint, both knip passes, GraphQL, typecheck and tests.Local review: 3 rounds with GPT-6.1 Terra (xhigh), approved.
hold.Implemented with Claude Opus 5.5 through Claude Code.
🤖 Generated with Claude Code