You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Repair the pyrefly failures currently blocking the main lint workflow. The fix restores the missing import in LM training, makes the labeled eval mixed-precision policy explicitly nullable, gives Jinja global mutation a type pyrefly accepts, and narrows completed trace eval metrics without relying on helper-predicate inference.
inlines _is_completed_dataset_result as explicit isinstance(..., Mapping) guards (semantically equivalent — the helper was exactly those two checks)
✅
Method. 2 sonnet agents reviewed against the relevant CLAUDE.md / AGENTS.md files (root, lib/levanter/, lib/marin/). 2 opus agents independently audited the diff for bugs and broken call sites. One CLAUDE.md agent flagged the inlined isinstance check as "silent fallback replacing an assert" in trace_labeled_eval.py; on validation this is a false positive — the removed assert sat after _is_completed_dataset_result had already returned True, so it was a type-narrowing assertion that could never fire. Behavior is byte-equivalent.
Check PR status
Locate CLAUDE.md / AGENTS.md files for changed paths
Summarize PR changes
Run 4 parallel review agents (2 CLAUDE.md compliance, 2 bug-spotting)
Validate each flagged issue
Emit stats event (skipped — permission required for uv run was not granted; per skill, best-effort)
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
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.
Repair the pyrefly failures currently blocking the main lint workflow. The fix restores the missing import in LM training, makes the labeled eval mixed-precision policy explicitly nullable, gives Jinja global mutation a type pyrefly accepts, and narrows completed trace eval metrics without relying on helper-predicate inference.