Skip to content

docs: py7zip overhaul handoff (2026-10-11) - #21

Merged
aliasfoxkde merged 2 commits into
mainfrom
codex/py7zip-handoff-20261011
Oct 11, 2026
Merged

aliasfoxkde merged 2 commits into
mainfrom
codex/py7zip-handoff-20261011

Conversation

@aliasfoxkde

@aliasfoxkde aliasfoxkde commented Oct 11, 2026 •

Copy link
Copy Markdown
Owner

Draft — docs-only handoff, no runtime changes. Do not merge until reviewed.

What this adds

docs/handoffs/2026-10-11-py7zip-overhaul.md (896 lines): execution plan for the requested overhaul — OS/CPU/libc detection, official upstream binary acquisition, integrity/authenticity verification, safe cache/install/update, API/CLI ergonomics, packaging, tests, CI/release, supply-chain and support policy.

Consumes the landed audit docs/handoffs/PLATFORM_ARCHITECTURE_PY7ZIP_2026-10-10.md (F1–F14 → OVH task IDs); adds newly verified evidence and a phased task ledger (OVH-01…29) with acceptance commands, rollback, risks, and decisions required.

Headline findings (all verified in the doc's evidence appendix)

  • First production blocker: pip install py7zip serves 0.6.2 (2024-02-25) — the legacy shell=True runtime; every hardening line is unreleased (PyPI JSON).
  • Bundled binaries identify as official-format "7-Zip (z) 24.00"; the "(z)" marker is official upstream branding (refuted the zstd-fork hypothesis by direct comparison with official 26.04), and no per-artifact provenance is recorded → OVH-02 ledger.
  • Acquisition today pulls from this repo's mutable raw/main with self-pinned digests; the plan switches to github.com/ip7z/7zip release assets with dual-channel digest verification — proven live: local sha256 of 7z2604-linux-x64.tar.xz equals the GitHub API assets[].digest.
  • Official Linux tarball ships statically linked 7zzs (removes the glibc/musl constraint) alongside dynamic 7zz (GLIBC ≤ 2.16), plus License.txt — fixes the redistribution requirement.
  • Isolated python -m build passes, but older ambient setuptools rejects the classifiers ("Python :: 3 :: 9" is not a trove classifier) → OVH-01 is the bounded next task (metadata-only).
  • Branch topology: audit line is 22 commits ahead of and diverged from main (duplicate commits); phase4 worktree dirty (7 binaries) — treated as read-only external work; PR fix: Feat: support local 7zip installations, instead of downloading and running unchecked binaries directly from this Git repo. #8 disposition folded into OVH-17.

Validation

  • Offline suite: unshare -rn python3 -m pytest tests -p no:cacheprovider -q → 128 passed (CPython 3.13.5).
  • Wheel build isolated: succeeds (py7zip-0.7.3-py3-none-any.whl, sha256 d1970a66…); wheel confirmed to ship no binaries.

🤖 Generated with Claude Code

Evidence-backed execution plan for the upstream-anchored binary
acquisition overhaul: verified/inferred/unknown register, first
production blocker (PyPI serves 0.6.2), phased task ledger
(OVH-01..25) consuming the landed 2026-10-10 audit, acceptance
commands, rollback, risks, and cited upstream verification
channels (ip7z/7zip release digests, license terms).

Co-Authored-By: Claude <noreply@anthropic.com>
@bolt-new-by-stackblitz

Copy link
Copy Markdown

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@coderabbitai

coderabbitai Bot commented Oct 11, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Note

Currently processing new changes in this PR. This may take a few minutes, please wait...

⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 9a52dfdd-1403-416e-bd25-3300a9e51075

📥 Commits

Reviewing files that changed from the base of the PR and between 68721cf and 54b20b4.


📒 Files selected for processing (1)
  • docs/handoffs/2026-10-11-py7zip-overhaul.md

 __________________________________________________________
< Your TODOs are evolving. Soon they'll achieve sentience. >
 ----------------------------------------------------------
  \
   \   (\__/)
       (•ㅅ•)
       /   づ
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Resolve independent review of the 2026-10-11 handoff (revision 2):

- Map audit P0.5/D3 publication decision to OVH-21's Consumes column
- Wire audit D1/D2/D4 as ledger gate tasks OVH-26/27/28; D5 to OVH-16;
  no consuming task can start before its decision record exists
- OVH-11: add offline digest-mismatch acceptance test proving
  ArtifactIntegrityError before install/use (fake transport, no
  subprocess); register integration marker (suite is --strict-markers)
- OVH-21: collision-safe version/tag selection (v0.8.0/v0.9.0 occupy
  both remotes + GitHub Releases, verified 2026-10-11); never
  overwrite or force-move tags; trusted-publishing dry-run pointed at
  OVH-21 (was mispointed at OVH-18)
- New gate OVH-29 (P1): macOS provenance/support resolution before any
  darwin asset is pinned in upstream.py
- Separate B0 critical path (5.1) from optional/decision-gated scope
  (CLI port, PR #8 disposition, SECURITY.md); OVH-20 gates the release
  only if packaging changes
- Correct 3.3 macOS inference: official mac tarball IS a universal
  binary (verified 2026-10-11); bundled mac binary is version-evidenced
  (24.00, static strings) but UNPROVEN for provenance
- New provenance evidence: bundled Linux x64 binary is byte-identical
  to official 7zz in 7z2400-linux-x64.tar.xz (Wayback-archived official
  URL; no GitHub 24.00 release exists; upstream published no digest)
- Remove /var/tmp probe-artifact dependency; reproducible URLs +
  digests recorded in A.8; fix bare doc paths (docs/planning/ prefix)

Co-Authored-By: Claude <noreply@anthropic.com>
@aliasfoxkde
aliasfoxkde marked this pull request as ready for review October 11, 2026 03:47
@aliasfoxkde
aliasfoxkde merged commit 31e742a into main Oct 11, 2026
7 checks passed
@aliasfoxkde
aliasfoxkde deleted the codex/py7zip-handoff-20261011 branch October 11, 2026 03:47
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