Skip to content

Inspect Python startup declarations in local wheels - #442

Merged
blitzcrieg1 merged 1 commit into
masterfrom
feature/python-wheel-preflight
Nov 18, 2026
Merged

blitzcrieg1 merged 1 commit into
masterfrom
feature/python-wheel-preflight

Conversation

@blitzcrieg1

Copy link
Copy Markdown
Owner

Summary

  • Add agentmetry scan --wheel PATH for local, pre-install inspection of Python startup declarations.
  • Report executable .pth lines and Python 3.15 .start entries by location and count. Keep declaration contents out of text and JSON.
  • Bound archive reads and report incomplete coverage separately from review findings.
  • Support an optional expected SHA-256 and report publisher provenance as unverified.

Scope

The scanner reads archive metadata and supported startup files. It does not install, extract or run the package, resolve its dependencies, or verify attestations. It does not change the detection ruleset.

Tests

Synthetic wheel fixtures cover the CLI, path-only entries, malformed archives, report privacy, and digest comparisons.

Surface executable .pth lines and .start declarations before installation. Bound archive reads, keep declaration contents out of the report, and report digest comparisons separately from publisher provenance.
@blitzcrieg1
blitzcrieg1 merged commit 4ee950d into master Nov 18, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant