{"owner":"genesiscode2026","slug":"prediction-audit-calibration-ledger","channel":"genesiscode2026/prediction-audit-calibration-ledger","version":"1.0.0","artifact_sha256":"9787690cffef5e20a10cb7107ecb9926d64ef9de6f24775968cae3982df9dac6","published_at":"2026-09-16T21:17:16.032Z","price_micro":"99000000","update_price_micro":"19000000","resource_endpoint":"https://x402git.com/api/r/genesiscode2026/prediction-audit-calibration-ledger","version_url":"https://x402git.com/api/v/genesiscode2026/prediction-audit-calibration-ledger","computed":{"artifact_class":"Toolkit","component_inventory":[{"kind":"scripts","count":2},{"kind":"tests","count":2},{"kind":"docs","count":14},{"kind":"config","count":2},{"kind":"other","count":1}],"file_count":21,"dir_depth":1,"bytes_text":34673,"bytes_binary":0,"languages":{"Python":13662},"tree":[{"path":".gitignore","size":46,"binary":false},{"path":"AGENT_EVAL.md","size":1300,"binary":false},{"path":"ARCHITECTURE.md","size":2247,"binary":false},{"path":"CHANGELOG.md","size":322,"binary":false},{"path":"DEPENDENCIES.md","size":411,"binary":false},{"path":"LICENSE.md","size":1660,"binary":false},{"path":"LIMITATIONS.md","size":602,"binary":false},{"path":"PREVIEW.md","size":2149,"binary":false},{"path":"QUICKSTART.md","size":1249,"binary":false},{"path":"README.md","size":2534,"binary":false},{"path":"SECURITY.md","size":734,"binary":false},{"path":"SUPPORT.md","size":738,"binary":false},{"path":"TEST_REPORT.md","size":702,"binary":false},{"path":"THIRD_PARTY_NOTICES.md","size":225,"binary":false},{"path":"THREAT_MODEL.md","size":812,"binary":false},{"path":"VERIFICATION.md","size":386,"binary":false},{"path":"commercial-manifest.json","size":1148,"binary":false},{"path":"examples/verify_predictions.py","size":1734,"binary":false},{"path":"release-manifest.json","size":2012,"binary":false},{"path":"src/ledger.py","size":8526,"binary":false},{"path":"tests/test_ledger.py","size":5136,"binary":false}],"readme_html":"<h2>Prediction Audit &amp; Calibration Ledger</h2>\n<blockquote><p><strong>Tamper-evident forecast recording, verification and Brier-score calibration.</strong></p></blockquote>\n<p><img src=\"https://img.shields.io/badge/tests-7%20passed-brightgreen.svg\" alt=\"Tests\" loading=\"lazy\" decoding=\"async\" /> <img src=\"https://img.shields.io/badge/license-Commercial%20Source-blue.svg\" alt=\"License\" loading=\"lazy\" decoding=\"async\" /> <img src=\"https://img.shields.io/badge/dependencies-0%20runtime-green.svg\" alt=\"Zero Runtime Deps\" loading=\"lazy\" decoding=\"async\" /></p>\n<hr />\n<h3>1. WHAT IS THIS?</h3>\n<p>The <strong>Prediction Audit &amp; Calibration Ledger</strong> is a standalone Python library for quantitative funds, research desks, AI signal providers, and prediction markets to record pre-event forecasts in a continuous, tamper-evident cryptographic hash chain and score their realized accuracy using Brier scoring rules upon post-event resolution.</p>\n<h3>2. WHO IS IT FOR?</h3>\n<ul><li>Quantitative researchers and algorithmic trading firms.</li><li>Prediction market operators and signal providers.</li><li>AI forecasting model evaluators seeking mathematical proof of model calibration.</li></ul>\n<h3>3. WHAT PROBLEM DOES IT SOLVE?</h3>\n<p>Without pre-event cryptographic commitments, historical trading signals and prediction records are susceptible to &quot;hindsight bias,&quot; cherry-picking, and retroactive tampering. Running full Web3 blockchain smart contracts for high-frequency predictions incurs prohibitive gas fees and leaks alpha publicly before execution. This ledger provides local, zero-gas, tamper-evident hash chaining.</p>\n<h3>4. WHY PAY FOR IT INSTEAD OF BUILDING IT?</h3>\n<ul><li><strong>Canonical Payload Serialization:</strong> Uses deterministic key sorting to guarantee that identical payloads always yield identical SHA-256 digests.</li><li><strong>Tamper Evidence:</strong> Detects any retroactive field mutation, record deletion, or row reordering during chain traversal.</li><li><strong>Calibrated Brier Scoring:</strong> Implements mathematically validated binary and multi-class Brier scoring algorithms ($BS = \\sum (p_k - o_k)^2$).</li><li><strong>Zero External Dependencies:</strong> Built 100% on Python 3.11+ standard library (<code>hashlib</code>, <code>sqlite3</code>, <code>json</code>, <code>dataclasses</code>).</li></ul>\n<h3>5. WHAT IS VERIFIED?</h3>\n<ul><li><strong>7 / 7 Automated Unit Tests Passed:</strong> Reference mathematical Brier scoring, pre-event commitments, mutation detection, deletion detection, row swapping, SQLite database reopen, and 1,000-record scale test.</li><li><strong>Microsecond Execution:</strong> Traversal and verification of 1,000 chained entries completes in &lt; 15 ms.</li></ul>\n<h3>6. HOW DO I RUN IT?</h3>\n<pre><code class=\"language-bash\"># 1. Run the unit test suite\npython3 -B tests/test_ledger.py\n\n# 2. Run the interactive verification demonstration\npython3 -B examples/verify_predictions.py\n</code></pre>","dependencies":[],"licence":{"verdict":"manual"},"scan":{"verdict":"pass","scanner_version":"2026.09.1","at":"2026-09-16T21:17:19.315Z","checks":[{"id":"secrets","tool":"x402git/secrets","tool_version":"2026.09.1","status":"pass","at":"2026-09-16T21:17:19.315Z","findings":0},{"id":"limits","tool":"x402git/limits","tool_version":"2026.09.1","status":"pass","at":"2026-09-16T21:17:19.315Z","findings":0},{"id":"known_vulns","tool":"osv.dev","tool_version":"2026-09-16","status":"pass","at":"2026-09-16T21:17:19.315Z","findings":0,"packages":0},{"id":"known_malware","tool":"osv.dev/MAL","tool_version":"2026-09-16","status":"pass","at":"2026-09-16T21:17:19.315Z","findings":0,"packages":0},{"id":"dep_behaviour","tool":"socket.dev","tool_version":"2026-09-16","status":"pass","at":"2026-09-16T21:17:19.315Z","findings":0,"packages":0,"reason":"no dependency manifests"},{"id":"capabilities","tool":"x402git/caps","tool_version":"2026.09.1","status":"pass","at":"2026-09-16T21:17:19.315Z","findings":0},{"id":"injection","tool":"x402git/inject","tool_version":"2026.09.1","status":"pass","at":"2026-09-16T21:17:19.315Z","findings":0}],"findings":[],"capabilities":{"tools":[],"runs":[],"hosts":[{"host":"img.shields.io","local":false,"from":"docs","paths":["README.md"]}],"env":[],"install_runs":false,"summary":"links to 1 host in its docs · nothing runs at install"},"counts":{"blocking":0,"disclosed":0,"review":0}},"originality":{"blob_overlap_ratio":0.05,"blobs_seen_elsewhere":1,"blobs_total":20,"nearest_listing":"genesiscode2026/agent-workspace-guard-sdk","derivative_of":null},"engineering":{"unique_5gram_ratio":0.644,"type_token_ratio":0.402,"effective_code_lines":212,"effective_doc_words":1487,"code_files":3,"test_files":2,"padding_suspected":false},"cadence":{"releases":0,"median_days_between_releases":null,"on_time_fraction":null,"days_since_last":null,"score":null,"finished":false},"inventory_sentence":"2 scripts · 2 test files · 14 docs · 2 config files","extensions":{"md":15,"py":3,"json":2,"(none)":1},"lines_of_code":330,"warnings":["sbom_unavailable"],"repo_meta":{"repo_id":1372978677,"name":"prediction-audit-calibration-ledger","full_name":"genesiscode2026/prediction-audit-calibration-ledger","description":"Tamper-evident forecast recording, SHA-256 commitment verification and Brier-score calibration for models and agents.","homepage":null,"topics":["audit","brier-score","forecasting","model-evaluation","prediction","python"],"language":"Python","default_branch":"main","size_kb":16,"created_at":"2026-09-16T12:09:09Z","pushed_at":"2026-09-16T12:09:13Z","licence_spdx":null,"open_issues":null,"stars":null,"forks":null,"watchers":null,"archived":false,"private":true,"html_url":null},"owner":{"login":"genesiscode2026","name":null,"avatar_url":"https://avatars.githubusercontent.com/u/329895054?v=4","bio":null,"blog":null,"company":null,"location":null,"twitter_username":null,"followers":null,"public_repos":1,"created_at":"2026-09-16T08:01:39Z","html_url":"https://github.com/genesiscode2026"},"computed_at":"2026-09-16T21:17:20.422Z","analyzer_version":"0.1.0"},"self_reported":{"description":"Tamper-evident forecast recording, SHA-256 commitment verification and Brier-score calibration for models and agents.","trigger_hint":"When requiring verified Quant Research functionality in autonomous workflows"}}