Skip to content

fix: validate receipt lineage parents#20

Open
sedge-bot wants to merge 1 commit into
mainfrom
fix/receipt-log-parent-validation
Open

fix: validate receipt lineage parents#20
sedge-bot wants to merge 1 commit into
mainfrom
fix/receipt-log-parent-validation

Conversation

@sedge-bot
Copy link
Copy Markdown
Collaborator

Summary

  • make receipt-log validation reject parent_receipt values that do not exist in the same log
  • document that validate now checks lineage links, not only required fields and duplicate IDs
  • add regression coverage for unknown parent receipts

Test Plan

  • python3 -m unittest tools/receipt-log/test_receipt_log.py -v
  • python3 tools/receipt-log/receipt_log.py validate
  • python3 tools/receipt-log/receipt_log.py fingerprint --json + python3 -m json.tool
  • python3 -m py_compile tools/receipt-log/receipt_log.py tools/receipt-log/test_receipt_log.py
  • git diff --check
  • python3 -m unittest discover -s tools/receipt-log -p 'test_*.py' -v
  • python3 -m unittest discover -s tools/proposal-pile -p 'test_*.py' -v
  • /opt/sedge/.local/bin/uv run --extra dev pytest -q (13 passed)

Refs #9

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