Repository navigation
Build with Nirium: reproducible notebook run records (Audit Trail, testnet) - #471
Open
Nuruddeen61 wants to merge 21 commits into
Open
Nuruddeen61 wants to merge 21 commits into
Nuruddeen61 wants to merge 21 commits into
Conversation
Implement functions to sign and anchor a run-record hash through the Nirium Audit Trail. Includes receipt saving functionality.
Implement analysis function to compute statistics from input file and save results.
Added README.md for building reproducible run records with Nirium, including usage instructions and receipts table.
Add unit tests for record building and verification
Add a newline at the end of the output JSON file.
Updated usage instructions and added verification details in README.
|
@Nuruddeen61 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed and why
Closes #382
Adds
examples/build-reproducible-notebook/: a workflow that hashes a run's input files, code and output files into one run record, signsnirium-audit-v1:<sha256>with my own stellar:testnet key, and anchors the hash through the published Python SDK (Agent.anchor_audit_record) against the testnet node.check_run.pyrecomputes the record from the files and runsnpx nirium-cli verify. No Nirium package is changed. Large files are hashed locally and never uploaded; only the record hash is public.Package(s) touched
How this was tested
Network: testnet (https://nirium-agent.fly.dev), tag
wave11-reproducible-notebook, signed with my own keyGC3ADSZYQZWOQASTNZQ4PWA7GR6FAETSQBS4Q4EGZZXNZQYST3JXH5XT.Receipt CIDs (two runs, different inputs):
QmdvnYaQEtqrQQ19hZ7hphbU6GAKknnvS9aMGezq5iMNVKQmYgs3Ae89A7jFf9mkZYfk97UEg7gTBPB2E2TcDd5EyaYQFrom a fresh clone of this branch:
Tampered cases (appending a line to an input / a result file) both fail with
FAIL: files changed ...; full output is in the README.Offline tests (HTTP mocked):
python tests/test_all.py-> 6 tests, OK.Demo video: adding shortly.
Checklist
Co-Authored-By:trailer naming the model (see CONTRIBUTING.md)AI assistance disclosure: the code and README were drafted with Claude (Sonnet 5.5) and I ran, verified and committed them myself. My commits were made through the GitHub web editor and do not carry a Co-Authored-By trailer yet. Maintainers: tell me if you want me to add it, or add it when merging.