Repository navigation
klaud: autosweep AgentX only - #4376
Conversation
Planner candidates, canonical/producer family matrices, smoke dispatch and the perf-changelog entry now cover only agentic-coding points; fixed-seq-len (8k1k) is no longer swept.
|
Claude finished @adibarra's task in 48s —— View job Review of PR #4376
LGTM - no blocking issues found |
| entries = [ | ||
| entry | ||
| for entry in generate_test_config_sweep( | ||
| SimpleNamespace(config_keys=[key]), | ||
| validate_master_config(family_config, root), | ||
| validate_runner_config(runners), | ||
| root, | ||
| ) | ||
| if in_scope(entry) | ||
| ] |
There was a problem hiding this comment.
🔴 In-flight Klaud candidates for fixed-seq-len families can no longer pass final validation. They burn resume sessions and then end as "unexpected-error". On the base branch they would validate. canonical_matrix now drops every non-AgentX point, so a pure 8k1k family regenerates to an empty canonical set. check_matrix then raises "Final matrix omits or changes canonical benchmark points". The PR notes this as possible, but the retry loop makes it costlier than a single failure. Fix: classify such a candidate as out of scope once, either with a terminal outcome or by applying the new scope only to new selections, so it is not resumed repeatedly.
Why this was flagged
The trigger is any Klaud candidate created before this merge whose family has only fixed-seq-len points. Real configs keep agentic and 8k1k curves in separate families, for example qwen3.5-fp8-b200-sglang in nvidia-master.yaml:1125. For such a family, the filter at validation.py:87-96 leaves entries empty. check_matrix (validation.py:223) then raises VerificationError because expected is empty, and resolve_baseline (reporting.py:1214) raises "Baseline source image no longer matches the selected base". In lifecycle.py:819-832 the VerificationError sets validated = False. The cleanup path then calls resume and raises PendingCleanup until MAX_SESSIONS is reached. After that it finishes with outcome "unexpected-error", so each affected PR consumes repeated sessions before it is abandoned. On the base branch the same final sweep would pass validation and be marked "validated". The PR description says in-flight 8k1k PRs "may fail final checking", but nothing gives them a clean terminal outcome.
Verification: validation.py:87-96 now filters through in_scope (validation.py:26-27). For a pure 8k1k family, expected is empty, so line 223 raises "Final matrix omits or changes canonical benchmark points". lifecycle.py:825-834 resumes until MAX_SESSIONS, then ends with outcome="unexpected-error". On the base branch the unfiltered canonical matrix would have validated it.
| rows = throughput_rows(producer, family.split(":", 1)[1]) | ||
| if not isinstance(rows, list) or not all(isinstance(row, dict) for row in rows): | ||
| raise ValueError("the generator did not print a list of matrix rows") | ||
| rows = [row for row in rows if in_scope(row)] |
There was a problem hiding this comment.
🟣 pre-existing, not blocking: An AgentX candidate can be deferred every wave because a same-date fixed-seq-len producer run fails to regenerate, even though those rows are now out of scope. publication (reporting.py:1004-1023) does not filter rows by benchmark_type. resolve_baseline raises PRODUCER_UNAVAILABLE at reporting.py:1244 for any public row's head before checking whether any AgentX point could match. Fix: drop public rows whose benchmark_type is not "agentic_traces" before collecting producer heads and requiring producers. That covers both regenerate_producers and resolve_baseline.
A small fix can ride a push you are already making; otherwise a short reply is enough.
Why this was flagged
This needs the source date's feed to hold fixed-seq-len rows for the same model/hardware/framework/precision/spec/disagg/image. Those rows must come from a different head whose producer_matrix raises ProducerRegenerationError. publication (reporting.py:988-1039) keeps rows of every benchmark_type, so Publication.heads includes that head. regenerate_producers (main.py:832-840) logs the failure and leaves the head out of producers.json. resolve_baseline reaches that row at reporting.py:1243-1245 and raises PRODUCER_UNAVAILABLE without checking whether any AgentX point could match. After this PR, producer_matrix keeps only in-scope rows (validation.py:147), so that head can never contribute a point. select still adds the candidate to baseline_deferred and blocks its family (main.py:907-910) on every wave, because the public data does not change. On the base branch the same block protected in-scope 8k1k points. It now blocks AgentX autosweeps for rows they never use, and still spends a snapshot regeneration per irrelevant head.
Verification: publication (reporting.py:988-1039) never checks benchmark_type, so fixed-seq-len rows stay in Publication.rows. In resolve_baseline, raise VerificationError(PRODUCER_UNAVAILABLE) (reporting.py:1244-1245) happens before it computes matches. The new in_scope filter (validation.py:147) runs after the generator subprocess. On base the same route raises the same PRODUCER_UNAVAILABLE.
Klaud autosweep previously selected and swept both AgentX and fixed-seq-len (8k1k) points. This scopes it to AgentX (
agentic-coding) only.live_families: planner only indexes agentic entries, so candidates come only from AgentX public rows; cluster/node demand computed from AgentX jobs.validation.canonical_matrix/producer_matrix: baseline roster and check-final/finish coverage use only AgentX points.--scenario-type agentic-coding; perf-changelog entry setsscenario-type: [agentic-coding]so the final sweep runs only AgentX.Notes: MODELS.md fixed-seq-len retirement logic is now unreachable for new candidates but left in place. Any in-flight Klaud PR with an 8k1k baseline may fail final checking after this lands.
Verified: klaud + related workflow tests (208 passed), ruff check/format;
live_familieson real configs → 134 families, allagentic_traces.