feat: machine passport ledger and viewer (issue #2309)#1768
Open
createkr wants to merge 1 commit intoScottcjn:mainfrom
Open
feat: machine passport ledger and viewer (issue #2309)#1768createkr wants to merge 1 commit intoScottcjn:mainfrom
createkr wants to merge 1 commit intoScottcjn:mainfrom
Conversation
— Give Every Relic a Biography Core Implementation (70 RTC): - Machine passport data structure with hardware fingerprint, name, architecture, provenance - Repair history tracking with parts, technician, cost in RTC - Attestation history with epochs, RTC earned, entropy scores - Benchmark signatures (cache timing, SIMD, thermal, performance) - Lineage notes for ownership transfers and acquisition stories - RESTful API with full CRUD endpoints - Web viewer with CRT/vintage computer aesthetic at /passport/<id> - CLI tool for passport management - Database schema with 5 tables and indexes - Migration script for existing nodes Bonus Features (20 RTC): - PDF generation with vintage computer styling - QR code generation linking to on-chain passport Files: - node/machine_passport.py (974 lines) — Core data model and ledger - node/machine_passport_api.py (623 lines) — REST API endpoints - node/machine_passport_viewer.py (680 lines) — Web viewer with CRT aesthetic - node/migrate_machine_passport.py (194 lines) — Migration script - node/tests/test_machine_passport.py (657 lines) — 24 comprehensive tests - bounties/issue-2309/README.md (555 lines) — Complete documentation - bounties/issue-2309/IMPLEMENTATION_SUMMARY.md (367 lines) — Implementation summary Total: 4,050 lines of code + documentation Validation: - 24/24 tests passing - All acceptance criteria met - Ready for production deployment Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
Contributor
Author
|
RTC payout wallet: RTC1d48d848a5aa5ecf2c5f01aa5fb64837daaf2f35 |
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.
Summary
Implements machine passport ledger capabilities with API + viewer support so each relic machine can carry a persistent biography and attestation-linked history.
Deliverables
Validation
python3 -m pytest -q --noconftest node/tests/test_machine_passport.pyCloses #2309