Skip to content

Publish GoValidate v0.23.0 validation benchmark - #238

Merged
mohanagy merged 1 commit into
mainfrom
issue-228-govalidate-validation
May 21, 2026
Merged

mohanagy merged 1 commit into
mainfrom
issue-228-govalidate-validation

Conversation

@mohanagy

@mohanagy mohanagy commented May 21, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • add a dated GoValidate v0.23.0 validation benchmark folder under docs/benchmarks/
  • publish the mixed-result findings, including single-prompt failures, suite wins/losses, and explicit caveats
  • include safe artifact examples plus deterministic answer-quality and pack-quality outputs

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

Summary by CodeRabbit

  • Documentation
    • Added benchmark validation documentation for v0.23.0, including comprehensive test suite results, quality assessments, performance analysis, and comparative metrics across multiple validation scenarios.

Review Change Stack

## 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>
@coderabbitai

coderabbitai Bot commented May 21, 2026 •

Copy link
Copy Markdown
📝 Walkthrough

Walkthrough

This 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.

Changes

GoValidate v0.23.0 Validation Results

Layer / File(s) Summary
Validation scope and framework documentation
docs/benchmarks/2026-05-21-govalidate-v0-23-0-validation/README.md
README frames the validation as a recorded pass with realistic workspace scope and mixed metrics. Covers scope definition, generate . --spi success statistics, smoke suite completion, 10-question suite aggregate results (wins/losses, mean/median token reduction), published artifacts inventory, interpretation notes distinguishing pack_only vs native_agent semantics, reproduction commands, and bottom-line assessment.
Report-generation prompt validation and pack inspection
docs/benchmarks/2026-05-21-govalidate-v0-23-0-validation/report-generation-answer-quality.txt, report-generation-pack-inspection.txt, report-generation-pack-quality.txt, report-generation-pack-only.report.share-safe.json, report-generation.report.share-safe.json
Deep inspection of the "report-generation" prompt including answer-quality gate failure (missing GenerateIdeaReportService), pack inspection output with execution slice steps, pack-quality failure details, detailed pack report JSON with matched nodes/relationships/selection diagnostics, and baseline vs. graphify execution metrics and reduction summary.
Suite highlights and reproduction instructions
docs/benchmarks/2026-05-21-govalidate-v0-23-0-validation/suite-best-win.report.share-safe.json, suite-worst-regression.report.share-safe.json
Captures best-win and worst-regression highlight reports, interpretation notes explaining semantics and routing mismatches, full reproduction commands for validation steps, and bottom-line assessment indicating v0.23.0 is not a universal win.
Individual question suite results
docs/benchmarks/2026-05-21-govalidate-v0-23-0-validation/suite-share-safe/question-001.report.share-safe.json through question-010.report.share-safe.json
Baseline vs. graphify execution metrics for all 10 suite questions, recording token usage, costs, durations, computed reductions, provider provenance, timestamps, and artifact paths for each question's result.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Possibly related issues

  • mohanagy/graphify-ts#228: The main changes add the v0.23.0 GoValidate benchmark/validation artifacts (pack-only/report/share-safe suite, execution_slice inspection, and answer-quality results) that directly implement the validation run and deliverables requested in this issue.

Possibly related PRs

  • mohanagy/graphify-ts#213: The benchmark validation artifacts record docs-artifact pack-quality failures for missing required labels (e.g., IdeaReportController, GenerateIdeaReportService), which directly correspond to the shared GoValidate pack-quality gate definitions and verifier added in this PR.
  • mohanagy/graphify-ts#215: The new benchmark validation reports for "Explain how idea report is getting generated" reflect the deterministic docs-artifact answer-quality gate behavior (e.g., FAIL due to missing required terms like GenerateIdeaReportService), which is introduced by the verifier/rubric changes in this PR.
  • mohanagy/graphify-ts#209: The PR adds documentation/fixture outputs for report.share-safe.json produced by the share-safe proof artifacts feature, which is implemented in this PR.

Poem

🐰 A Validation Hop:
Benchmarks bloom in spring's bright light,
Nine thousand tokens, metrics tight,
Questions answered, regressions shown—
v0.23.0's truth is known!
Mixed results, yet paths are clear,
Graphify grows, quarter by quarter. ✨

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely summarizes the main change: publishing a GoValidate v0.23.0 validation benchmark, which matches the primary purpose of adding benchmark documentation files.
Description check ✅ Passed The description covers the key changes (adding dated benchmark folder, publishing findings, including safe artifacts), provides a test plan, and aligns with the template's Summary and Testing sections adequately.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch issue-228-govalidate-validation

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

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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

📥 Commits

Reviewing files that changed from the base of the PR and between 075f003 and 9cc3a33.

📒 Files selected for processing (18)
  • docs/benchmarks/2026-05-21-govalidate-v0-23-0-validation/README.md
  • docs/benchmarks/2026-05-21-govalidate-v0-23-0-validation/report-generation-answer-quality.txt
  • docs/benchmarks/2026-05-21-govalidate-v0-23-0-validation/report-generation-pack-inspection.txt
  • docs/benchmarks/2026-05-21-govalidate-v0-23-0-validation/report-generation-pack-only.report.share-safe.json
  • docs/benchmarks/2026-05-21-govalidate-v0-23-0-validation/report-generation-pack-quality.txt
  • docs/benchmarks/2026-05-21-govalidate-v0-23-0-validation/report-generation.report.share-safe.json
  • docs/benchmarks/2026-05-21-govalidate-v0-23-0-validation/suite-best-win.report.share-safe.json
  • docs/benchmarks/2026-05-21-govalidate-v0-23-0-validation/suite-share-safe/question-001.report.share-safe.json
  • docs/benchmarks/2026-05-21-govalidate-v0-23-0-validation/suite-share-safe/question-002.report.share-safe.json
  • docs/benchmarks/2026-05-21-govalidate-v0-23-0-validation/suite-share-safe/question-003.report.share-safe.json
  • docs/benchmarks/2026-05-21-govalidate-v0-23-0-validation/suite-share-safe/question-004.report.share-safe.json
  • docs/benchmarks/2026-05-21-govalidate-v0-23-0-validation/suite-share-safe/question-005.report.share-safe.json
  • docs/benchmarks/2026-05-21-govalidate-v0-23-0-validation/suite-share-safe/question-006.report.share-safe.json
  • docs/benchmarks/2026-05-21-govalidate-v0-23-0-validation/suite-share-safe/question-007.report.share-safe.json
  • docs/benchmarks/2026-05-21-govalidate-v0-23-0-validation/suite-share-safe/question-008.report.share-safe.json
  • docs/benchmarks/2026-05-21-govalidate-v0-23-0-validation/suite-share-safe/question-009.report.share-safe.json
  • docs/benchmarks/2026-05-21-govalidate-v0-23-0-validation/suite-share-safe/question-010.report.share-safe.json
  • docs/benchmarks/2026-05-21-govalidate-v0-23-0-validation/suite-worst-regression.report.share-safe.json

Comment on lines +12 to +17
"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,

@coderabbitai coderabbitai Bot May 21, 2026 •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

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.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

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.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

@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.

@mohanagy
mohanagy merged commit 07f895b into main May 21, 2026
7 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.

1 participant