Harden CMA tuning and add structured progress telemetry#6671
Harden CMA tuning and add structured progress telemetry#6671CharlesFauman wants to merge 1 commit into
Conversation
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Parse changes introduced by this PR✓ No card-parse changes detected. |
matthewevans
left a comment
There was a problem hiding this comment.
Changes requested — the tuning artifact admission path fails open, and the central paired-run path lacks a discriminating runtime test.
🔴 Blocker
tools/ai_tune.rs:296-300 maps a missing or unrecognized artifact group to TuneGroup::Eval. The manifest validation at tools/ai_tune.rs:364-522 checks kind, hash, and schedule but does not read or cross-check the producer-manifest group written at tools/ai_tune.rs:2069-2084. A malformed or substituted artifact can therefore enter the evaluation group instead of being rejected.
Please make artifact-group admission fail closed: require an exact known artifact group, require it to agree with the producer manifest's group, and add rejection coverage for missing, unknown, and mismatched groups.
🟡 Non-blocking
The paired-seed loops at tools/ai_tune.rs:1347-1393 and their runner/progress wiring at tools/ai_tune.rs:1896-1991 do not yet have a seam-driven runtime test. Current coverage exercises helper, record, and preflight paths, but does not demonstrate that paired calls receive the same seed and that every outcome contributes to both the denominator and progress accounting. Please add a central-path test that does.
The current parse-diff artifact reports: “✓ No card-parse changes detected.” Paired-seed and performance gates are pending; those are CI evidence only and are not the basis for this request.
Recommendation: address the fail-closed admission validation and add the central runtime test, then request re-review.
Summary
Verification
The structured records intentionally use phase-ai-cma-config-v2 and phase-ai-cma-progress-v2. This draft is source-reviewed and compiled/tested; it is opened as draft for maintainer feedback before any upstream merge.