Metadata-Version: 2.4
Name: repo-agent-surface-pre-open-audit
Version: 1.0.0
Summary: Pre-open repo agent-surface audit: per-harness OPEN / OPEN-QUARANTINED / DO-NOT-OPEN verdict on a received repo's complete agent-control surface, before your agent's first git call.
Author: TextForAgents LLC
License: MIT License
        
        Copyright (c) 2026 TextForAgents LLC
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
Project-URL: Homepage, https://textforagents.com/products/repo-agent-surface-pre-open-audit/
Keywords: agent-security,git,pre-open,audit,mcp,code-review
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Software Development :: Quality Assurance
Classifier: Topic :: Security
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# Pre-open repo agent-surface audit

By TextForAgents LLC. Before your agent opens a repository received as
files (zip, shared drive, archive attached to a bug report), run this
gate — before the agent's first git call. It never executes the tree.

It enumerates the complete agent-control surface on two separately graded
surfaces:

- **EXECUTION** — git-config command sinks (`core.fsmonitor`, `hooksPath`,
  `sshCommand`, filter/diff drivers), hooks and every hooksPath target,
  `.gitattributes` drivers, `.gitmodules` ext:: URLs, MCP server commands,
  npm lifecycle scripts — at any depth and through symlinks.
- **EXAMINATION** — model pins against your pinned policy, review-scope
  exclusions (including implicit "only review X" omissions),
  do-not-reaudit clauses, permission widenings, unbounded agent-binding
  prose.

It issues a per-harness × per-version verdict — OPEN /
OPEN-QUARANTINED / DO-NOT-OPEN — from a maintained patch-status matrix
(matrix version 2026-10-21.1), and a receipt core whose tree hash binds
file contents. The `sanitise` command emits a quarantined copy accepted
only when it re-audits with zero high findings.

Stated plainly: a verdict grades the enumerated agent-control surface
only — it is not a general malware, vulnerability, or safety
determination about the tree's code. Enumeration is complete on the
proven classes, but prose classification is pattern-based: a genuinely
novel paraphrase can escape classification while never escaping
enumeration. Verdicts are matrix-versioned. Willingness to pay is
unmeasured.

## Quickstart

```sh
pip install repo-agent-surface-pre-open-audit
cat > policy.json <<'EOF'
{"min_model_tier": 3, "forbidden_scope_exclusions": ["tests/", "tests", "test/"]}
EOF
preopen-audit audit /path/to/received-tree --harness claude-code --version 2.1.252 --policy policy.json
preopen-audit sanitise /path/to/received-tree /path/to/quarantined-copy
```

Python 3 standard library only. The local CLI processes trees on your
own machine — no tree content leaves it. Hosted API/MCP form with signed
receipts: https://textforagents.com/products/repo-agent-surface-pre-open-audit/
Support: support@textforagents.com
