Repository navigation
spec(normative): req-sc-004 zip with uniform limits (#4234); req-lk-015 content_hash anchor (#4092) - #4236
Merged
Daniel Meppiel (danielmeppiel) merged 4 commits intoNov 20, 2026
Conversation
#4234) Amendment 0.1.70: req-sc-004(a) admits application/zip alongside tar.gz and rejects every other container; every archive limit (size and entry caps, req-sc-002 traversal, absolute-path and link rejections, and any further implementation limit) applies identically to both containers. Appendix B's reserved archive-container item is aligned. Fixes #4234 Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Daniel Meppiel (danielmeppiel)
requested a review
from Sergio Sisternes (sergio-sisternes-epam)
as a code owner
November 20, 2026 10:15
Name the one limit set both containers share: the size cap, an entry cap counted as entries are read, and refusal of path traversal, absolute paths, links and duplicate entry paths. Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Contributor
There was a problem hiding this comment.
🔵 Needs a closer look
Human review is needed to confirm the still-open #4235 companion implementation and per-format limit/cleanup regressions, since this amendment tests only specification wording rather than runtime guarantees.
No open issues 🎉
What changed in this PR
Adopts OpenAPM amendment 0.1.70 to align registry archive requirements with APM's ZIP-based publishing flow. This PR changes the specification and conformance assertions, not runtime extraction behavior.
Changes:
- Accepts both
tar.gzandzip, with identical size, entry-count, and path-safety limits and cleanup on violations. - Updates the requirements manifest and appendices to record adoption without changing the statement count.
- Extends conformance assertions to pin ZIP acceptance and the shared limits.
| File | Description |
|---|---|
tests/spec_conformance/test_manifest_reqs.py |
Updates assertions for accepted containers and shared archive limits. |
docs/src/content/docs/specs/openapm-v0.1.md |
Revises req-sc-004 and records amendment 0.1.70 in the appendices. |
docs/public/specs/manifests/openapm-v0.1.requirements.yml |
Adds a note describing the adopted archive requirements. |
Review effort: Balanced
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
…p-archives # Conflicts: # docs/src/content/docs/specs/openapm-v0.1.md
Daniel Meppiel (danielmeppiel)
deleted the
danielmeppiel-spec-zip-archives
branch
November 20, 2026 10:54
7 of 12 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
APM publishes and installs zip registry archives (
apm publish,apm packand the release flow produce.zip), but OpenAPMreq-sc-004(a)required consumers to rejectapplication/zip. This adopts amendment 0.1.70, which revisesreq-sc-004in place per the steward ruling on #4234:application/gzipover tar (tar.gz) orapplication/zip(zip), and rejects every other container.A violation fails closed, and no entry of the archive remains extracted.
Spec slot: 0.1.70 is the next free slot after 0.1.69. #4006 (0.38) renumbers at merge per the existing plan.
Also in this PR: amendment 0.1.71, req-lk-015 re-anchor (Part of #4092, steward ruling)
req-lk-015(Section 5.6.4, consumer MUST) is revised in place. Every git-sourced lock entry MUST recordcontent_hash, asha256envelope over the package tree (byte stream perreq-lk-016). A frozen install andapm auditMUST recompute it atresolved_commitand fail closed, with a diagnostic naming the entry, the expected envelope and the observed envelope.tree_sha256and its Section 5.6.4 byte representation are reserved for v0.2.content_hashis required for git entries;tree_sha256is reserved), the Section 5.6.4 editorial note, the Section 7.5 replay prose, and the informative lockfile examples (nowcontent_hash).lockfile_versionare unchanged, and the count stays 149.req-lk-015conformance test pins the new text, and the manifest gains a note.Issue and approved scope
Issue: Fixes #4234; Part of #4092 (req-lk-015)
Human scope-approval comment: the steward ruling on #4234, relayed by the 0.37 Stream H lead.
Does this PR complete the issue, or what remains? Yes, for the spec. Verifying the zip caps in code is owned by the S lead.
Type of change
Testing
pytest tests/spec_conformance --collect-only(683 collected),gen_statement(no diff),orphan_check(OK) and ruff. CI validates the rest.req-sc-004conformance assertions now pin the zip admission and the identical-limits clause.Changelog
Spec conformance (OpenAPM v0.1)
docs/src/content/docs/specs/openapm-v0.1.mdupdated (req-sc-004prose in place, Appendix B and D; the anchor and Appendix C row are unchanged).docs/public/specs/manifests/openapm-v0.1.requirements.ymlgains areq-sc-004note.@pytest.mark.req("req-sc-004")intests/spec_conformance/test_manifest_reqs.pyis extended.CONFORMANCE.{md,json}regenerated; no changes.