Repository navigation
feat: add GoValidate pack-quality gates - #213
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
🚧 Files skipped from review as they are similar to previous changes (3)
📝 WalkthroughWalkthroughThis PR adds a shared pack-quality gate catalog and verifier: ChangesPack Quality Gates for Benchmarks
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
ESLint skipped: no ESLint configuration detected in root package.json. To enable, add Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@docs/benchmarks/govalidate-suite/verify-pack-quality.js`:
- Around line 166-168: The current check uses Number.isFinite(pack.token_count)
which still accepts negatives and fractions; update the validation in
verify-pack-quality.js to require a non-negative integer by replacing the finite
check with a test like Number.isInteger(pack.token_count) && pack.token_count >=
0 (or Number.isSafeInteger if you prefer), and keep the same fail(`Malformed
compare report: pack.token_count must be a non-negative integer`) call when it
fails; refer to pack.token_count and the existing fail(...) invocation to locate
and update the check.
- Around line 107-113: The validation currently allows gates without a prompt
which breaks prompt-based selection; update the gate validation around the check
that references gate and gateName to require that gate.prompt exists and is a
non-empty string (fail with the existing fail(...) helper if missing/invalid),
and change the return object (where prompt is currently returned as typeof
gate.prompt === 'string' ? gate.prompt : null) to always return the validated
string prompt (e.g., prompt: gate.prompt) so requiredLabels and downstream logic
get a concrete prompt value.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro Plus
Run ID: fce9b088-8226-40ca-bee7-1b24c2c1220d
📒 Files selected for processing (6)
docs/benchmarks/2026-05-12-govalidate-report-generation/README.mddocs/benchmarks/govalidate-suite/README.mddocs/benchmarks/govalidate-suite/quality-gates.jsondocs/benchmarks/govalidate-suite/verify-pack-quality.jstests/unit/benchmark-artifact.test.tstests/unit/benchmark-quality.test.ts
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Closes #157
Summary
docs/benchmarks/govalidate-suite/directory with deterministic pack-quality gates and a no-model verifierTest Plan
Summary by CodeRabbit
New Features
Documentation
Tests