Skip to content

fix(rubric): preserve source and complete linked guidance - #254

Merged
rng1995 merged 4 commits into
mainfrom
naren/fix-rubric-reference-evidence
Oct 29, 2026
Merged

rng1995 merged 4 commits into
mainfrom
naren/fix-rubric-reference-evidence

Conversation

@rng1995

@rng1995 rng1995 commented Oct 29, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

rubric-eval added YAML separators around the original SKILL.md and omitted root-linked guides. It could therefore judge altered source or incomplete required guidance.

Preserve the original source text and collect reachable relative local Markdown under root-relative source names, including transitive guides. Use existing Markdown parsing and secure no-follow reads, deduplicate cycles, and collect required documents before optional script/reference previews. Missing, unsafe, invalid UTF-8 or oversized required guidance records failed rubric execution with no score and no provider request.

The existing 3,000-byte per-file and 30,000-byte supplementary-body limits remain, with a 256-document ceiling for linked graphs. Rubric criteria, weights and score thresholds are unchanged.

Closes #233.

Verification

  • I am familiar with the contributing guidelines
  • Initial 23 new cases failed before the production fix; final validation includes the review and Windows portability regressions
  • Tested source framing, transitive and cyclic guidance, source-relative paths, exact UTF-8 budgets, required-before-optional collection, unsafe files, and failure before judging
  • A controlled completion exercises the real prompt-building/parsing/scoring pipeline without a provider request
  • Updated CHANGELOG.md
  • Final combined rubric, Markdown, secure-read and workflow suites: 226 passed, 2 platform skips
  • make lint
  • Both complete Python suites on the repair head: Python 3.13 passed; Python 3.12 coverage is still running
  • make build
  • Did not add credentials, private datasets, or proprietary benchmark content

Live model grading was not run.

Review follow-up

Posted two actionable inline findings, reproduced them with failing regressions, and fixed both:

  • Classify non-Markdown assets before enforcing required-guidance path checks; encoded absolute Markdown remains blocked.
  • Deduplicate case-insensitive file aliases using matching bytes after secure reads. Aliases do not consume the supplementary budget twice or reread a large manifest under the smaller limit. Distinct case-sensitive files remain separate, and aliases still pass symlink/hardlink and snapshot checks.

The byte-mismatch guard was mutation-tested: disabling it makes the changed-source regression fail. Existing macOS and Windows CI lanes now include the rubric tests, so the case-insensitive filesystem paths are exercised in CI. The workflow contract suite is included in the passing combined run above.

The initial local four-worker project run was interrupted after 5,328 passed and 12 skipped when review fixes superseded that head. No complete local full-suite success is claimed. Final-head CI runs the complete Python 3.12/3.13 suites.

Both inline review comments are fixed in 7751f2f1260c481caafa5dfd8fd1c184bbc650e6, replied to, and resolved. A formal approval was attempted, but GitHub rejected it with HTTP 422 because the configured account is the PR author. Another maintainer must approve.

Merge and Windows CI repair

Merged main ca4776165e611d3d11facacd0139b7eb68314110, retaining both conflicting changelog entries. The two failing Windows rubric tests relied on Path.write_text newline translation while expecting literal LF strings. Their fixtures now write exact UTF-8 bytes; both tests cover LF and CRLF, and source immutability is checked as bytes. Windows-write emulation passes all four cases. Production source preservation and secure-read checks are unchanged.

Repair head: 213ee9a0c4f69048cf5a4164a2a29f8c70f8f424. GitHub reports no merge conflicts. The repaired Windows CI job passed 2,511 tests with 48 skips, and the full Python 3.13 suite passed. There are 15 successful checks and no failed checks on this head; Python 3.12 coverage is still running and both macOS jobs remain queued. Lint and source/wheel builds pass on the merged branch.

Release Impact

  • Updated CHANGELOG.md

@rng1995 rng1995 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Personal review: the source-preservation and required-guidance regressions pass. One actionable link-classification issue is reproduced below; I will address it with a failing regression before resolving the thread.

@rng1995 rng1995 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Further review identified a case-insensitive filesystem regression in cycle detection. I will fix this together with the earlier link-classification finding and retain secure no-follow validation for every alias.

@rng1995 rng1995 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Review complete on this head. Both inline findings were reproduced, fixed, pushed and resolved. Final rubric/Markdown/secure-read tests: 181 passed, 2 platform skips. Workflow contracts: 42 passed. Lint and source/wheel builds pass; the cached-byte mismatch guard was mutation-tested. Full final-head CI is still running; a complete local project-suite pass is not claimed. I attempted the requested formal APPROVE review, but GitHub returned HTTP 422: "Can not approve your own pull request". The configured account is the PR author, so another maintainer must submit approval.

@rng1995
rng1995 marked this pull request as ready for review October 29, 2026 20:17
@rng1995
rng1995 enabled auto-merge October 29, 2026 21:11
@rng1995
rng1995 disabled auto-merge October 29, 2026 21:17
@rng1995
rng1995 merged commit 935b162 into main Oct 29, 2026
20 checks passed
@rng1995
rng1995 deleted the naren/fix-rubric-reference-evidence branch October 29, 2026 21:17
@rng1995 rng1995 mentioned this pull request Oct 30, 2026
15 of 20 tasks
chrisknvidia pushed a commit that referenced this pull request Oct 30, 2026
* fix(rubric): preserve source and complete linked guidance
* fix(rubric): verify file aliases and ignore non-Markdown assets
* test(rubric): make source-byte fixtures portable across line endings

Signed-off-by: Narendran Raghavan <[email protected]>
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.

[BUG]: Rubric input adds YAML separators and omits root-linked Markdown

1 participant