Repository navigation
fix(benchmark): reject malformed visual defect lists before passing runs - #402
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 SummaryReviewed base Walkthrough
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to The benchmark change is covered by focused regression tests and introduces no remaining merge-blocking risk. 🚥 Pre-merge checks | ✅ 1 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (1 passed)
Full details: Validation EvidenceExplanation Evidence is sufficient for the focused change, but final-head CI is not complete. Evaluated head: Resolution Wait for CI run 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. Comment |
tt-a1i
left a comment
There was a problem hiding this comment.
Reviewed b4e257b. No blocking findings. The explicit array check prevents malformed or missing defect lists from becoming a clean visual pass, while preserving empty-array acceptance and non-empty-array rejection. All 19 benchmark tests passed locally; the new regression fails against the main implementation. No packaged runtime or visual output changes. Current reported CI checks pass.
A passed visual review with a reviewer identity and
defects: "clipping"is normalized to an empty list, allowing an otherwise valid first attempt to reportfirstPassUsable: true.Require an explicit defects array before accepting a passed visual review. Missing or incorrectly typed lists now produce an invalid visual-review gate. Empty arrays still pass, and non-empty arrays retain their defects and prevent acceptance. Optional skipped reviews are unchanged.
Validation:
node --test archify/test/ordinary-model-floor.test.mjson Windows with Node 22.23.2: 19 passed, 0 failed.git diff --checkpassed.Visual evidence
Not applicable: only benchmark metadata validation and its regression test change; no Viewer or diagram presentation changes.
Scope and artifacts
No schema or packaged runtime changes; no package regeneration is needed. This is a narrow fix with a concrete reproduction under CONTRIBUTING.md's small-fix path.