Skip to content

fix(verify): preserve original input_dump and previous_manifest_path in VerificationReport - #183

Open
rishiiicreates wants to merge 1 commit into
AOSSIE-Org:mainfrom
rishiiicreates:fix/verify-report-original-path
Open

rishiiicreates wants to merge 1 commit into
AOSSIE-Org:mainfrom
rishiiicreates:fix/verify-report-original-path

Conversation

@rishiiicreates

Copy link
Copy Markdown

closes #74

verify_preprocessing() was calling Path.resolve() directly on the user-supplied input_dump and previous_manifest_path before storing them in VerificationReport. on windows (and across symlinks such as /var on macos or junction points), resolve() alters path casing and expands symlinks, which caused report.input_dump != str(original_path) and failed test_report_stores_input_dump_path.

this PR preserves the exact user-supplied path strings for VerificationReport.input_dump and VerificationReport.previous_manifest_path, while resolving the paths into separate variables for all internal operations (existence checks, hashing, merkle root calculations, manifest chain verification, and the isolated subprocess re-run).

added unit tests in Legacy/tests/test_verify.py verifying that relative input paths and previous manifest paths are preserved verbatim in the report. all 39 tests passing green.

…in VerificationReport

- Keep user-supplied input_dump and previous_manifest_path strings in VerificationReport
- Use resolved Path instances internally for existence checks, file hashing, Merkle calculations, and subprocess execution
- Add tests for relative path and previous manifest path retention in VerificationReport

Closes AOSSIE-Org#74
Copilot AI balanced review requested due to automatic review settings October 6, 2026 01:53

Copilot AI 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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@coderabbitai

coderabbitai Bot commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 50 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: afbd9b32-34d1-4195-a55c-1a003111f843
📥 Commits

Reviewing files that changed from the base of the PR and between 14a21c4 and c02f4cf.

📒 Files selected for processing (2)
  • Legacy/openverifiablellm/verify.py
  • Legacy/tests/test_verify.py
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

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]: verify_preprocessing() stores resolved path instead of original in VerificationReport

2 participants