{"owner":"genesiscode2026","slug":"genesis-agent-workspace-preflight","channel":"genesiscode2026/genesis-agent-workspace-preflight","version":"1.0.0","artifact_sha256":"6d75863201e9421a4196df1cf93ecb8b492670037d44b4362300f86e314234c2","published_at":"2026-09-17T11:54:10.688Z","price_micro":"19000000","update_price_micro":"5000000","resource_endpoint":"https://x402git.com/api/r/genesiscode2026/genesis-agent-workspace-preflight","version_url":"https://x402git.com/api/v/genesiscode2026/genesis-agent-workspace-preflight","computed":{"artifact_class":"Pack","component_inventory":[{"kind":"scripts","count":4},{"kind":"tests","count":1},{"kind":"docs","count":5},{"kind":"config","count":1},{"kind":"assets","count":1},{"kind":"other","count":1}],"file_count":13,"dir_depth":1,"bytes_text":15389,"bytes_binary":227,"languages":{"Python":10316},"tree":[{"path":".gitignore","size":103,"binary":false},{"path":"CHANGELOG.md","size":601,"binary":false},{"path":"LICENSE","size":1072,"binary":false},{"path":"QUICKSTART.md","size":347,"binary":false},{"path":"README.md","size":2275,"binary":false},{"path":"SECURITY.md","size":282,"binary":false},{"path":"VERSION","size":6,"binary":true},{"path":"bin/genesis-workspace-preflight","size":221,"binary":true},{"path":"genesis_workspace_preflight/__init__.py","size":151,"binary":false},{"path":"genesis_workspace_preflight/__main__.py","size":2526,"binary":false},{"path":"genesis_workspace_preflight/preflight.py","size":5141,"binary":false},{"path":"pyproject.toml","size":614,"binary":false},{"path":"tests/test_preflight.py","size":2277,"binary":false}],"readme_html":"<h2>genesis-agent-workspace-preflight</h2>\n<blockquote><p><strong>Instant preflight health check for repositories before launching autonomous coding agents.</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>Launching autonomous coding agents (Claude Code, Devin, OpenDevin, Cursor Agent) into an unverified repository frequently results in disasters:</p>\n<ul><li>Agents overwrite uncommitted human work in flight.</li><li>Agents stall due to missing CLI prerequisites (<code>git</code>, <code>node</code>, <code>python</code>).</li><li>Sensitive local files (<code>id_rsa</code>, <code>.env.production</code>) get ingested into LLM prompt contexts.</li><li>Full disks cause unexpected write crashes halfway through multi-file refactors.</li></ul>\n<h3>The Solution</h3>\n<p><code>genesis-agent-workspace-preflight</code> runs a complete health audit in under 15ms. It verifies Git working tree status, required toolchains, disk thresholds, and credential exposure before agents begin modifying code.</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>Git State Verification</strong>: Detects dirty working trees, untracked file counts, and detached branches.</li><li><strong>Credential Leak Protection</strong>: Checks for exposed private keys (<code>id_rsa</code>) and uncommitted environment files.</li><li><strong>Runtime Dependency Audit</strong>: Verifies <code>git</code>, <code>python3</code>, and <code>node</code> in system PATH.</li><li><strong>Fast Execution</strong>: Completes full preflight checks in under 15ms.</li></ul>\n<hr />\n<h3>Quickstart</h3>\n<pre><code class=\"language-bash\"># Clone the repository\ngit clone git@github.com:genesiscode2026/genesis-agent-workspace-preflight.git\ncd genesis-agent-workspace-preflight\n\n# Run preflight audit in current repository\n./bin/genesis-workspace-preflight .\n\n# Enforce clean working tree in agent bootstrap scripts\n./bin/genesis-workspace-preflight . --fail-on-warn\n\n# Output JSON for CI / script integration\n./bin/genesis-workspace-preflight . --json\n</code></pre>\n<hr />\n<h3>Commercial Distribution</h3>\n<ul><li><strong>Product Name</strong>: <code>genesis-agent-workspace-preflight</code></li><li><strong>Catalog ID</strong>: <code>E01</code></li><li><strong>Price</strong>: $19</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:54:13.619Z","checks":[{"id":"secrets","tool":"x402git/secrets","tool_version":"2026.09.1","status":"pass","at":"2026-09-17T11:54:13.619Z","findings":0},{"id":"limits","tool":"x402git/limits","tool_version":"2026.09.1","status":"pass","at":"2026-09-17T11:54:13.619Z","findings":0},{"id":"known_vulns","tool":"osv.dev","tool_version":"2026-09-17","status":"pass","at":"2026-09-17T11:54:13.619Z","findings":0,"packages":0},{"id":"known_malware","tool":"osv.dev/MAL","tool_version":"2026-09-17","status":"pass","at":"2026-09-17T11:54:13.619Z","findings":0,"packages":0},{"id":"dep_behaviour","tool":"socket.dev","tool_version":"2026-09-17","status":"findings","at":"2026-09-17T11:54:13.619Z","findings":20,"packages":3},{"id":"capabilities","tool":"x402git/caps","tool_version":"2026.09.1","status":"findings","at":"2026-09-17T11:54:13.619Z","findings":3},{"id":"injection","tool":"x402git/inject","tool_version":"2026.09.1","status":"pass","at":"2026-09-17T11:54:13.619Z","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-workspace-preflight","path":"bin/genesis-workspace-preflight"},{"kind":"capability","check":"capabilities","tier":"disclosed","rule_id":"script","severity":"LOW","description":"Ships the script genesis_workspace_preflight/__main__.py","path":"genesis_workspace_preflight/__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-workspace-preflight","kind":"script"},{"path":"genesis_workspace_preflight/__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.167,"blobs_seen_elsewhere":2,"blobs_total":12,"nearest_listing":"genesiscode2026/genesis-ai-numeric-truth-guard","derivative_of":null},"engineering":{"unique_5gram_ratio":0.534,"type_token_ratio":0.592,"effective_code_lines":110,"effective_doc_words":389,"code_files":4,"test_files":1,"padding_suspected":true,"class_note":"Capped at Pack: unique 5-gram ratio 0.534 is below the 0.6 guard."},"cadence":{"releases":1,"median_days_between_releases":null,"on_time_fraction":null,"days_since_last":0,"score":null,"finished":false},"inventory_sentence":"4 scripts · 1 test file · 5 docs · 1 config file","extensions":{"md":4,"py":4,"toml":1,"(none)":4},"lines_of_code":206,"warnings":["sbom_unavailable"],"repo_meta":{"repo_id":1374262666,"name":"genesis-agent-workspace-preflight","full_name":"genesiscode2026/genesis-agent-workspace-preflight","description":null,"homepage":null,"topics":[],"language":"Python","default_branch":"main","size_kb":7,"created_at":"2026-09-17T10:23:21Z","pushed_at":"2026-09-17T10:23:27Z","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:54:22.050Z","analyzer_version":"0.1.0"},"self_reported":{"description":"Audit workspace hygiene and git status before launching agents","trigger_hint":"When requiring verified Developer Tooling functionality in autonomous workflows"}}