{"owner":"genesiscode2026","slug":"genesis-ai-numeric-truth-guard","channel":"genesiscode2026/genesis-ai-numeric-truth-guard","version":"1.0.0","artifact_sha256":"174c15cdbd1008850d0a4a9266d784131320768ebf8c2438f6649cb93e26e70c","published_at":"2026-09-17T11:50:23.503Z","price_micro":"49000000","update_price_micro":"9000000","resource_endpoint":"https://x402git.com/api/r/genesiscode2026/genesis-ai-numeric-truth-guard","version_url":"https://x402git.com/api/v/genesiscode2026/genesis-ai-numeric-truth-guard","computed":{"artifact_class":"Toolkit","component_inventory":[{"kind":"scripts","count":4},{"kind":"tests","count":4},{"kind":"docs","count":5},{"kind":"config","count":1},{"kind":"assets","count":1},{"kind":"other","count":1}],"file_count":16,"dir_depth":2,"bytes_text":15946,"bytes_binary":221,"languages":{"Python":9847},"tree":[{"path":".gitignore","size":103,"binary":false},{"path":"CHANGELOG.md","size":675,"binary":false},{"path":"LICENSE","size":1072,"binary":false},{"path":"QUICKSTART.md","size":692,"binary":false},{"path":"README.md","size":2479,"binary":false},{"path":"SECURITY.md","size":279,"binary":false},{"path":"VERSION","size":6,"binary":true},{"path":"bin/genesis-numeric-guard","size":215,"binary":true},{"path":"genesis_numeric_guard/__init__.py","size":136,"binary":false},{"path":"genesis_numeric_guard/__main__.py","size":2818,"binary":false},{"path":"genesis_numeric_guard/guard.py","size":4492,"binary":false},{"path":"pyproject.toml","size":648,"binary":false},{"path":"tests/fixtures/financial_data.json","size":108,"binary":false},{"path":"tests/fixtures/fraudulent_report.md","size":86,"binary":false},{"path":"tests/fixtures/valid_report.md","size":172,"binary":false},{"path":"tests/test_guard.py","size":2186,"binary":false}],"readme_html":"<h2>genesis-ai-numeric-truth-guard</h2>\n<blockquote><p><strong>Deterministic financial and numeric truth auditor rejecting unsupported numbers in AI reports.</strong></p></blockquote>\n<p><img src=\"https://img.shields.io/badge/version-1.0.0-blue.svg\" alt=\"Version\" loading=\"lazy\" decoding=\"async\" /> <img src=\"https://img.shields.io/badge/License-MIT-yellow.svg\" alt=\"License: MIT\" loading=\"lazy\" decoding=\"async\" /> <img src=\"https://img.shields.io/badge/dependencies-0-brightgreen.svg\" alt=\"Zero Dependencies\" loading=\"lazy\" decoding=\"async\" /></p>\n<hr />\n<h3>The Problem</h3>\n<p>Financial summaries, executive briefings, and metrics dashboards generated by Large Language Models frequently hallucinate critical numbers:</p>\n<ul><li>Invented revenue totals, margins, and churn rates.</li><li>Misstated dates, percentages, and financial quantities.</li><li>Confident fabrications that pass human visual inspection because the surrounding narrative sounds polished and plausible.</li></ul>\n<h3>The Solution</h3>\n<p><code>genesis-ai-numeric-truth-guard</code> cross-references every single number, currency, percentage, and quantity in an AI-generated report against authoritative ground-truth datasets (JSON or CSV). Any figure not backed by ground truth is rejected with line numbers and context snippets.</p>\n<hr />\n<h3>Key Features</h3>\n<ul><li><strong>Zero Third-Party Dependencies</strong>: Pure Python 3 standard library.</li><li><strong>Universal Format Ingestion</strong>: Ingests JSON (nested structures/objects) and CSV/TSV spreadsheets as ground truth.</li><li><strong>Robust Number Tokenizer</strong>: Parses currencies (<code>$</code>, <code>€</code>, <code>£</code>), thousands separators (<code>1,250,000</code>), decimals, and percentages.</li><li><strong>Configurable Rounding Tolerance</strong>: Supports flexible relative tolerances (e.g. 1% default) for derived ratios and rounding artifacts.</li><li><strong>Strict CI Pipeline Gate</strong>: Exits with code 1 upon detecting any unsupported numerical claim.</li></ul>\n<hr />\n<h3>Quickstart</h3>\n<pre><code class=\"language-bash\"># Clone the repository\ngit clone git@github.com:genesiscode2026/genesis-ai-numeric-truth-guard.git\ncd genesis-ai-numeric-truth-guard\n\n# Audit a markdown report against financial data\n./bin/genesis-numeric-guard --ground-truth ./data.json --report ./executive_summary.md\n\n# Pipe report from another process via stdin\ncat report.md | ./bin/genesis-numeric-guard --ground-truth data.csv --report -\n\n# Output machine-readable JSON report\n./bin/genesis-numeric-guard --ground-truth data.json --report report.md --json\n</code></pre>\n<hr />\n<h3>Commercial Distribution</h3>\n<ul><li><strong>Product Name</strong>: <code>genesis-ai-numeric-truth-guard</code></li><li><strong>Catalog ID</strong>: <code>P12</code></li><li><strong>Price</strong>: $49</li><li><strong>Seller</strong>: <code>genesiscode2026</code></li><li><strong>Authorized Payout Rail</strong>: USDC on Base (<code>0xC6F86e170411182114FcCdb28793dC76B5e8D144</code>)</li><li><strong>License</strong>: MIT</li></ul>","dependencies":[],"licence":{"spdx":"MIT","verdict":"pass"},"scan":{"verdict":"pass","scanner_version":"2026.09.1","at":"2026-09-17T11:50:26.544Z","checks":[{"id":"secrets","tool":"x402git/secrets","tool_version":"2026.09.1","status":"pass","at":"2026-09-17T11:50:26.544Z","findings":0},{"id":"limits","tool":"x402git/limits","tool_version":"2026.09.1","status":"pass","at":"2026-09-17T11:50:26.544Z","findings":0},{"id":"known_vulns","tool":"osv.dev","tool_version":"2026-09-17","status":"pass","at":"2026-09-17T11:50:26.544Z","findings":0,"packages":0},{"id":"known_malware","tool":"osv.dev/MAL","tool_version":"2026-09-17","status":"pass","at":"2026-09-17T11:50:26.544Z","findings":0,"packages":0},{"id":"dep_behaviour","tool":"socket.dev","tool_version":"2026-09-17","status":"findings","at":"2026-09-17T11:50:26.544Z","findings":20,"packages":3},{"id":"capabilities","tool":"x402git/caps","tool_version":"2026.09.1","status":"findings","at":"2026-09-17T11:50:26.544Z","findings":3},{"id":"injection","tool":"x402git/inject","tool_version":"2026.09.1","status":"pass","at":"2026-09-17T11:50:26.544Z","findings":0}],"findings":[{"kind":"capability","check":"capabilities","tier":"disclosed","rule_id":"build-hook","severity":"MODERATE","description":"[build-system] runs when this is installed","path":"pyproject.toml"},{"kind":"capability","check":"capabilities","tier":"disclosed","rule_id":"script","severity":"LOW","description":"Ships the script bin/genesis-numeric-guard","path":"bin/genesis-numeric-guard"},{"kind":"capability","check":"capabilities","tier":"disclosed","rule_id":"script","severity":"LOW","description":"Ships the script genesis_numeric_guard/__main__.py","path":"genesis_numeric_guard/__main__.py"},{"kind":"behaviour","check":"dep_behaviour","tier":"review","rule_id":"gptAnomaly","severity":"LOW","description":"setuptools 84.0.0 (direct, dev only) — flagged for review by Socket's classifier as anomalous","package":{"ecosystem":"pypi","name":"setuptools","version":"84.0.0","direct":true,"dev":true},"source":"socket.dev"},{"kind":"behaviour","check":"dep_behaviour","tier":"review","rule_id":"gptAnomaly","severity":"LOW","description":"setuptools 84.0.0 (direct, dev only) — flagged for review by Socket's classifier as anomalous","package":{"ecosystem":"pypi","name":"setuptools","version":"84.0.0","direct":true,"dev":true},"source":"socket.dev"},{"kind":"behaviour","check":"dep_behaviour","tier":"review","rule_id":"gptAnomaly","severity":"LOW","description":"setuptools 84.0.0 (direct, dev only) — flagged for review by Socket's classifier as anomalous","package":{"ecosystem":"pypi","name":"setuptools","version":"84.0.0","direct":true,"dev":true},"source":"socket.dev"},{"kind":"behaviour","check":"dep_behaviour","tier":"review","rule_id":"gptAnomaly","severity":"LOW","description":"setuptools 84.0.0 (direct, dev only) — flagged for review by Socket's classifier as anomalous","package":{"ecosystem":"pypi","name":"setuptools","version":"84.0.0","direct":true,"dev":true},"source":"socket.dev"},{"kind":"behaviour","check":"dep_behaviour","tier":"disclosed","rule_id":"envVars","severity":"LOW","description":"setuptools 84.0.0 (direct, dev only) — reads environment variables","package":{"ecosystem":"pypi","name":"setuptools","version":"84.0.0","direct":true,"dev":true},"source":"socket.dev"},{"kind":"behaviour","check":"dep_behaviour","tier":"disclosed","rule_id":"filesystemAccess","severity":"LOW","description":"setuptools 84.0.0 (direct, dev only) — reads or writes files","package":{"ecosystem":"pypi","name":"setuptools","version":"84.0.0","direct":true,"dev":true},"source":"socket.dev"},{"kind":"behaviour","check":"dep_behaviour","tier":"disclosed","rule_id":"hasNativeCode","severity":"MODERATE","description":"setuptools 84.0.0 (direct, dev only) — ships compiled native code","package":{"ecosystem":"pypi","name":"setuptools","version":"84.0.0","direct":true,"dev":true},"source":"socket.dev"},{"kind":"behaviour","check":"dep_behaviour","tier":"disclosed","rule_id":"shellAccess","severity":"MODERATE","description":"setuptools 84.0.0 (direct, dev only) — runs shell commands","package":{"ecosystem":"pypi","name":"setuptools","version":"84.0.0","direct":true,"dev":true},"source":"socket.dev"},{"kind":"behaviour","check":"dep_behaviour","tier":"disclosed","rule_id":"urlStrings","severity":"LOW","description":"setuptools 84.0.0 (direct, dev only) — contains hard-coded URLs","package":{"ecosystem":"pypi","name":"setuptools","version":"84.0.0","direct":true,"dev":true},"source":"socket.dev"},{"kind":"behaviour","check":"dep_behaviour","tier":"disclosed","rule_id":"usesEval","severity":"MODERATE","description":"setuptools 84.0.0 (direct, dev only) — evaluates code at runtime","package":{"ecosystem":"pypi","name":"setuptools","version":"84.0.0","direct":true,"dev":true},"source":"socket.dev"},{"kind":"behaviour","check":"dep_behaviour","tier":"review","rule_id":"gptAnomaly","severity":"LOW","description":"setuptools 84.0.0 (direct, dev only) — flagged for review by Socket's classifier as anomalous","package":{"ecosystem":"pypi","name":"setuptools","version":"84.0.0","direct":true,"dev":true},"source":"socket.dev"},{"kind":"behaviour","check":"dep_behaviour","tier":"review","rule_id":"gptAnomaly","severity":"LOW","description":"setuptools 84.0.0 (direct, dev only) — flagged for review by Socket's classifier as anomalous","package":{"ecosystem":"pypi","name":"setuptools","version":"84.0.0","direct":true,"dev":true},"source":"socket.dev"},{"kind":"behaviour","check":"dep_behaviour","tier":"review","rule_id":"gptAnomaly","severity":"LOW","description":"setuptools 84.0.0 (direct, dev only) — flagged for review by Socket's classifier as anomalous","package":{"ecosystem":"pypi","name":"setuptools","version":"84.0.0","direct":true,"dev":true},"source":"socket.dev"},{"kind":"behaviour","check":"dep_behaviour","tier":"disclosed","rule_id":"envVars","severity":"LOW","description":"setuptools 84.0.0 (direct, dev only) — reads environment variables","package":{"ecosystem":"pypi","name":"setuptools","version":"84.0.0","direct":true,"dev":true},"source":"socket.dev"},{"kind":"behaviour","check":"dep_behaviour","tier":"disclosed","rule_id":"filesystemAccess","severity":"LOW","description":"setuptools 84.0.0 (direct, dev only) — reads or writes files","package":{"ecosystem":"pypi","name":"setuptools","version":"84.0.0","direct":true,"dev":true},"source":"socket.dev"},{"kind":"behaviour","check":"dep_behaviour","tier":"disclosed","rule_id":"hasNativeCode","severity":"MODERATE","description":"setuptools 84.0.0 (direct, dev only) — ships compiled native code","package":{"ecosystem":"pypi","name":"setuptools","version":"84.0.0","direct":true,"dev":true},"source":"socket.dev"},{"kind":"behaviour","check":"dep_behaviour","tier":"disclosed","rule_id":"shellAccess","severity":"MODERATE","description":"setuptools 84.0.0 (direct, dev only) — runs shell commands","package":{"ecosystem":"pypi","name":"setuptools","version":"84.0.0","direct":true,"dev":true},"source":"socket.dev"},{"kind":"behaviour","check":"dep_behaviour","tier":"disclosed","rule_id":"urlStrings","severity":"LOW","description":"setuptools 84.0.0 (direct, dev only) — contains hard-coded URLs","package":{"ecosystem":"pypi","name":"setuptools","version":"84.0.0","direct":true,"dev":true},"source":"socket.dev"},{"kind":"behaviour","check":"dep_behaviour","tier":"disclosed","rule_id":"usesEval","severity":"MODERATE","description":"setuptools 84.0.0 (direct, dev only) — evaluates code at runtime","package":{"ecosystem":"pypi","name":"setuptools","version":"84.0.0","direct":true,"dev":true},"source":"socket.dev"},{"kind":"behaviour","check":"dep_behaviour","tier":"disclosed","rule_id":"missingLockfile","severity":"LOW","description":"Socket SBOM Resolver (transitive) — no lockfile, so installs are not reproducible","package":{"ecosystem":"generic","name":"Socket SBOM Resolver","direct":false,"dev":false},"source":"socket.dev"}],"capabilities":{"tools":[],"runs":[{"path":"pyproject.toml","kind":"build_hook","detail":"[build-system]"},{"path":"bin/genesis-numeric-guard","kind":"script"},{"path":"genesis_numeric_guard/__main__.py","kind":"script"}],"hosts":[{"host":"github.com","local":false,"from":"docs","paths":["SECURITY.md"]},{"host":"img.shields.io","local":false,"from":"docs","paths":["README.md"]},{"host":"keepachangelog.com","local":false,"from":"docs","paths":["CHANGELOG.md"]},{"host":"semver.org","local":false,"from":"docs","paths":["CHANGELOG.md"]}],"env":[],"install_runs":true,"summary":"runs 2 scripts · links to 4 hosts in its docs · runs at install"},"counts":{"blocking":0,"disclosed":16,"review":7}},"cadence_sentence":"One release so far.","originality":{"blob_overlap_ratio":0.133,"blobs_seen_elsewhere":2,"blobs_total":15,"nearest_listing":"genesiscode2026/genesis-agent-memory-hygiene","derivative_of":null},"engineering":{"unique_5gram_ratio":0.67,"type_token_ratio":0.56,"effective_code_lines":152,"effective_doc_words":450,"code_files":4,"test_files":4,"padding_suspected":false},"cadence":{"releases":1,"median_days_between_releases":null,"on_time_fraction":null,"days_since_last":0,"score":null,"finished":false},"inventory_sentence":"4 scripts · 4 test files · 5 docs · 1 config file","extensions":{"md":6,"py":4,"json":1,"toml":1,"(none)":4},"lines_of_code":227,"warnings":["sbom_unavailable"],"repo_meta":{"repo_id":1374262009,"name":"genesis-ai-numeric-truth-guard","full_name":"genesiscode2026/genesis-ai-numeric-truth-guard","description":null,"homepage":null,"topics":[],"language":"Python","default_branch":"main","size_kb":8,"created_at":"2026-09-17T10:22:41Z","pushed_at":"2026-09-17T10:22:47Z","licence_spdx":"MIT","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":6,"created_at":"2026-09-16T08:01:39Z","html_url":"https://github.com/genesiscode2026"},"computed_at":"2026-09-17T11:50:35.043Z","analyzer_version":"0.1.0"},"self_reported":{"description":"Reject or flag unsupported numbers in AI reports","trigger_hint":"When requiring verified Financial & Data Integrity functionality in autonomous workflows"}}