Repository navigation
Publish GoValidate v0.23.0 validation benchmark - #238
Conversation
## Summary - add a dated GoValidate v0.23.0 validation folder with honest mixed-result reporting - include publishable share-safe examples plus deterministic answer and pack gate outputs - separate direct pack inspection from pack_only and native_agent interpretations ## Test Plan - published graphify-ts 0.23.0 validation run on the real GoValidate workspace - 3-question native_agent smoke suite - full 10-question native_agent suite - path-safety scan on committed artifacts Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
📝 WalkthroughWalkthroughThis PR adds complete benchmark validation documentation and results for graphify-ts v0.23.0. It includes a comprehensive README framing the validation run, detailed inspection results for a single "report-generation" prompt, full 10-question suite comparison reports with share-safe artifacts, and interpretation notes on mixed metric outcomes across baseline and graphify execution modes. ChangesGoValidate v0.23.0 Validation Results
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Possibly related issues
Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 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/2026-05-21-govalidate-v0-23-0-validation/report-generation-pack-only.report.share-safe.json`:
- Around line 12-17: The JSON has inconsistent reduction fields: recalc
reduction_ratio and effective_reduction_ratio from the actual token counts
instead of leaving them as 1; compute reduction_ratio = graphify_prompt_tokens /
baseline_prompt_tokens and effective_reduction_ratio =
graphify_effective_prompt_tokens / baseline_effective_prompt_tokens (or the
inverse if your convention is baseline/graphify) and replace the current values
for reduction_ratio and effective_reduction_ratio wherever they occur (notably
near the fields baseline_prompt_tokens, graphify_prompt_tokens,
baseline_effective_prompt_tokens, graphify_effective_prompt_tokens), and apply
the same fixes to the corresponding records for entries 23–26.
🪄 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: d1adc493-434d-46cc-a3cb-020752f6f91c
📒 Files selected for processing (18)
docs/benchmarks/2026-05-21-govalidate-v0-23-0-validation/README.mddocs/benchmarks/2026-05-21-govalidate-v0-23-0-validation/report-generation-answer-quality.txtdocs/benchmarks/2026-05-21-govalidate-v0-23-0-validation/report-generation-pack-inspection.txtdocs/benchmarks/2026-05-21-govalidate-v0-23-0-validation/report-generation-pack-only.report.share-safe.jsondocs/benchmarks/2026-05-21-govalidate-v0-23-0-validation/report-generation-pack-quality.txtdocs/benchmarks/2026-05-21-govalidate-v0-23-0-validation/report-generation.report.share-safe.jsondocs/benchmarks/2026-05-21-govalidate-v0-23-0-validation/suite-best-win.report.share-safe.jsondocs/benchmarks/2026-05-21-govalidate-v0-23-0-validation/suite-share-safe/question-001.report.share-safe.jsondocs/benchmarks/2026-05-21-govalidate-v0-23-0-validation/suite-share-safe/question-002.report.share-safe.jsondocs/benchmarks/2026-05-21-govalidate-v0-23-0-validation/suite-share-safe/question-003.report.share-safe.jsondocs/benchmarks/2026-05-21-govalidate-v0-23-0-validation/suite-share-safe/question-004.report.share-safe.jsondocs/benchmarks/2026-05-21-govalidate-v0-23-0-validation/suite-share-safe/question-005.report.share-safe.jsondocs/benchmarks/2026-05-21-govalidate-v0-23-0-validation/suite-share-safe/question-006.report.share-safe.jsondocs/benchmarks/2026-05-21-govalidate-v0-23-0-validation/suite-share-safe/question-007.report.share-safe.jsondocs/benchmarks/2026-05-21-govalidate-v0-23-0-validation/suite-share-safe/question-008.report.share-safe.jsondocs/benchmarks/2026-05-21-govalidate-v0-23-0-validation/suite-share-safe/question-009.report.share-safe.jsondocs/benchmarks/2026-05-21-govalidate-v0-23-0-validation/suite-share-safe/question-010.report.share-safe.jsondocs/benchmarks/2026-05-21-govalidate-v0-23-0-validation/suite-worst-regression.report.share-safe.json
| "baseline_prompt_tokens": 2749, | ||
| "graphify_prompt_tokens": 2835, | ||
| "reduction_ratio": 1, | ||
| "baseline_effective_prompt_tokens": 2749, | ||
| "graphify_effective_prompt_tokens": 2835, | ||
| "effective_reduction_ratio": 1, |
There was a problem hiding this comment.
Fix inconsistent reduction ratio fields in the published artifact.
baseline_prompt_tokens and graphify_prompt_tokens differ, but the ratio fields are all set to 1 (no change). This makes the benchmark output internally inconsistent and can mislead downstream readers/parsers.
📌 Suggested correction
- "reduction_ratio": 1,
+ "reduction_ratio": 0.9697,
...
- "effective_reduction_ratio": 1,
+ "effective_reduction_ratio": 0.9697,
...
- "reduction_ratio_estimated": 1,
+ "reduction_ratio_estimated": 0.9697,
Also applies to: 23-26
🤖 Prompt for 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.
In
`@docs/benchmarks/2026-05-21-govalidate-v0-23-0-validation/report-generation-pack-only.report.share-safe.json`
around lines 12 - 17, The JSON has inconsistent reduction fields: recalc
reduction_ratio and effective_reduction_ratio from the actual token counts
instead of leaving them as 1; compute reduction_ratio = graphify_prompt_tokens /
baseline_prompt_tokens and effective_reduction_ratio =
graphify_effective_prompt_tokens / baseline_effective_prompt_tokens (or the
inverse if your convention is baseline/graphify) and replace the current values
for reduction_ratio and effective_reduction_ratio wherever they occur (notably
near the fields baseline_prompt_tokens, graphify_prompt_tokens,
baseline_effective_prompt_tokens, graphify_effective_prompt_tokens), and apply
the same fixes to the corresponding records for entries 23–26.
There was a problem hiding this comment.
Checked this against the committed artifact and the compare runtime. The inconsistency is real in the emitted 0.23.0 JSON, but it comes from the existing report format rather than this benchmark folder: computeReductionRatio() rounds baseline / graphify to one decimal in src/infrastructure/compare.ts:642-646, so 2749 / 2835 becomes 1.0 and serializes here as 1.
I am leaving the published report.share-safe.json unchanged in this PR because it is intended to mirror the actual 0.23.0 CLI output. Recalculating the ratio fields inside the artifact would make the published example stop matching the real emitted report.
If we want higher-precision ratio fields, that should be a follow-up code change in compare rather than a manual edit to the captured benchmark artifact.
There was a problem hiding this comment.
@mohanagy, that makes complete sense — the artifact is a faithful capture of what 0.23.0 actually emitted, and editing the ratio fields would undermine its value as a reference. The rounding in computeReductionRatio() is the right place to fix this.
Would you like me to open a GitHub issue to track the follow-up precision improvement in src/infrastructure/compare.ts?
✏️ Learnings added
Learnt from: mohanagy
Repo: mohanagy/graphify-ts PR: 238
File: docs/benchmarks/2026-05-21-govalidate-v0-23-0-validation/report-generation-pack-only.report.share-safe.json:12-17
Timestamp: 2026-05-21T19:32:18.424Z
Learning: In `src/infrastructure/compare.ts` lines 642-646, `computeReductionRatio()` computes `baseline / graphify` and rounds to **one decimal place**. This means token ratios very close to 1 (e.g., 2749/2835 ≈ 0.9697) serialize as `1.0` in emitted report JSON. Published benchmark artifacts in `docs/benchmarks/` are intentional faithful mirrors of the actual CLI output and should **not** be manually edited to correct this rounding — any precision fix belongs in `compare.ts` itself.
Note: Learnings are effective only in the context of similar code segments. To apply general coding guidelines, please configure review instructions. You can manage existing learnings in the app.
Summary
docs/benchmarks/Test Plan
graphify-ts 0.23.0validation run on the real GoValidate workspaceSummary by CodeRabbit