Skip to content

fix(benchmark): reject malformed visual defect lists before passing runs - #402

Merged
tt-a1i merged 2 commits into
tt-a1i:mainfrom
nbt0:codex/benchmark-visual-defects
Sep 15, 2026
Merged

tt-a1i merged 2 commits into
tt-a1i:mainfrom
nbt0:codex/benchmark-visual-defects

Conversation

@nbt0

@nbt0 nbt0 commented Sep 13, 2026

Copy link
Copy Markdown
Contributor

A passed visual review with a reviewer identity and defects: "clipping" is normalized to an empty list, allowing an otherwise valid first attempt to report firstPassUsable: 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.mjs on Windows with Node 22.23.2: 19 passed, 0 failed.
  • The regression covers omitted, null, string, object, boolean, numeric, empty-array, and non-empty-array values, while asserting the semantic and renderer gates pass.
  • git diff --check passed.
  • The full suite was not rerun on this isolated branch. An earlier run on the unchanged base had Windows/environment failures; this PR does not claim an all-green full suite.

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.

@coderabbitai

coderabbitai Bot commented Sep 13, 2026 •

Copy link
Copy Markdown

Review Change StackReview Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: 1c91989d-272b-48e4-b1d1-55681fa1a44e

📥 Commits

Reviewing files that changed from the base of the PR and between 6db72a9 and b4e257b.

📒 Files selected for processing (2)
  • archify/test/ordinary-model-floor.test.mjs
  • benchmarks/ordinary-model-floor/benchmark.mjs

Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.


📝 Summary

Reviewed base 18911058008f17dc065af23a2cdc9bfeff6d3f7a and head 1579cc946567ff7eff9b2bc20cf2ad171d4e50ae. Passed visual reviews now require an explicit defects array. Empty arrays pass; malformed, missing, and non-empty values block acceptance. Skipped reviews remain unchanged. Author-reported validation passed on Windows with Node 22.23.2: 19 tests and git diff --check. The full suite was not rerun. No reused evidence at another revision or observed CI result was identified. Static tests do not establish browser or perceptual acceptance.

Walkthrough

verify now requires passed visual reviews to include an explicit defects array. Invalid or missing values produce an invalid visual review with a specific reason. The new test covers eight input shapes and verifies exit status, receipt fields, and firstPassUsable.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~10 minutes

Merge Risk: ⚪ Minimal · up to f490d

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)

Check name Status Explanation Resolution
Validation Evidence ❓ Inconclusive Evidence is sufficient for the focused change, but final-head CI is not complete. Evaluated head: b4e257be592942b9e5b0d21494ccba6c3cc75980; base: 6db72a9aea3d0f67a6a034e41f8a5491476a11c1. The PR r… Wait for CI run 34727971628 to complete, then record the conclusions for test (18) and webm-artifact on head b4e257be592942b9e5b0d21494ccba6c3cc75980. If either check fails, investigate and rerun the affected check after correction;…
✅ Passed checks (1 passed)
Check name Status Explanation
Contribution Scope ✅ Passed The PR meets the contribution-scope check. It explains the current-main failure, the intended result, and the focused approach. It states preserved behavior for skipped reviews, array handling, exit s…
Full details: Validation Evidence

Explanation

Evidence is sufficient for the focused change, but final-head CI is not complete. Evaluated head: b4e257be592942b9e5b0d21494ccba6c3cc75980; base: 6db72a9aea3d0f67a6a034e41f8a5491476a11c1. The PR reports node --test archify/test/ordinary-model-floor.test.mjs with 19 passing tests on Windows and git diff --check passed; the diff adds coverage for all eight defect shapes and asserts semantic and renderer gates. The non-visual and no-generated-artifact explanations are applicable. Observed final-head CI has successful Node 20, 22, and 24 test jobs, package smoke jobs, and zip-freshness, but test (18) and webm-artifact remain in progress. Pending checks cannot prove a current final-head pass.

Resolution

Wait for CI run 34727971628 to complete, then record the conclusions for test (18) and webm-artifact on head b4e257be592942b9e5b0d21494ccba6c3cc75980. If either check fails, investigate and rerun the affected check after correction; no screenshot or package regeneration is required for this non-visual change unless the changed scope expands.


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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@tt-a1i tt-a1i left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@tt-a1i
tt-a1i merged commit d15010a into tt-a1i:main Sep 15, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants