Skip to content

Bind the PHP 8.3.37 setup archives to their immutable mirror - #421

Merged
rmcdaniel merged 2 commits into
mainfrom
general/php-archive-mirror-20261119
Nov 19, 2026
Merged

rmcdaniel merged 2 commits into
mainfrom
general/php-archive-mirror-20261119

Conversation

@rmcdaniel

@rmcdaniel rmcdaniel commented Nov 19, 2026 •

Copy link
Copy Markdown
Member

Data PR 1 (archives) from qualification/PHP-ARCHIVE-UPDATES.md, for #420 item 2.

Only qualification/php-linux-bootstrap.json changes: both setup rows gain the mirror record written by scripts/php_archive_mirror.py adopt. No file under .github/ changes.

Row Upstream asset Mirror release Mirror asset Size SHA-256
Ubuntu 24.04 768105765 php-sha256-115f855a722d95ce 768749741 42620774 115f855a722d95ce592032a58bf25d8d622d4b266ab476bf7e6f2f2f75b6aac4
Ubuntu 26.04 768113262 php-sha256-07e4b1bf60b6ddf0 768751028 42104271 07e4b1bf60b6ddf01db7801266dc1a59ac79c774abb65d976c37e0188da5c32a

Procedure:

  1. Downloaded each upstream asset by exact ID into a fresh empty directory; size and SHA-256 equal the catalog and the live release digest.
  2. python3 -I -S -B scripts/php_archive_mirror.py plan --archive-dir DIR passed (strict inspector reproduced metadata 3b66abc2… for ubuntu24 and 929756ce… for initial).
  3. Ran the two planned gh release create commands. Both releases are published, immutable: true, one asset each.
  4. Downloaded both mirror assets again by ID: sizes and SHA-256 match, and the bytes are identical (cmp) to the upstream downloads.
  5. adopt --release-json for each tag.

The native policy data gate re-checks live upstream and mirror metadata and re-inspects the mirrored bytes.

Tests: the committed catalog now carries mirror records, so tests that substitute synthetic archive bytes into a row clear that row's mirror, the adopt/unmirrored-fetch and pin-gate tests start from an explicitly unmirrored catalog, and a new test checks both committed rows fetch only their mirror asset. These are tests/ changes only; still no .github/ change.

Native policy gate at head 34c12ba5 (run 44587433067, runtime 0bde98cd) data_gate: {"archives": [{"asset_id": 768105765, "profile": "ubuntu24", "metadata_sha256": "3b66abc2…"}, {"asset_id": 768113262, "profile": "initial", "metadata_sha256": "929756ce…"}], "changed": ["qualification/php-linux-bootstrap.json"], "data_change": true, "pins": [], "workflows": []}

🤖 Generated with Claude Code

Adds the `mirror` record for both setup rows in
qualification/php-linux-bootstrap.json, written by
`scripts/php_archive_mirror.py adopt` from the published immutable
releases in durable-workflow/php-archives:

- 24.04: php-sha256-115f855a722d95ce, asset 768749741
- 26.04: php-sha256-07e4b1bf60b6ddf0, asset 768751028

Each mirror asset has the cataloged name, size and SHA-256. Data only;
no file under .github/ changes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@rmcdaniel rmcdaniel added the agent:general Pull request opened by General agent label Nov 19, 2026
The committed catalog now carries mirror records, so tests that substitute
synthetic archive bytes into a row clear that row's mirror (the synthetic
bytes have no mirror release). The adopt and unmirrored-fetch tests start
from an explicitly unmirrored catalog, the pin-gate test commits an
unmirrored pin, and a new test checks that both committed setup rows fetch
only their immutable mirror asset.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent:general Pull request opened by General agent

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant