[GH-ISSUE #174] Make ordinary Agent package archives reproducible #88

Closed
opened 2026-10-20 17:24:16 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @SpicyMarinara on GitHub (Aug 1, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/174

Problem

A clean staging checkout passes catalog validation, but rerunning node scripts/build-agent-catalog.mjs changes every ordinary Agent ZIP checksum even though manifest.json and agents.json payload bytes are unchanged. The ZIP entries inherit checkout/build timestamps and filesystem modes, unlike feature-package archives, which normalize both before packaging.

This makes release-readiness rebuilds appear to contain package drift and prevents byte-for-byte reproduction of the published catalog artifacts.

Expected behavior

Ordinary Agent packages should normalize archive input modes and modification times using the same simple pattern as build-feature-packages.mjs, so identical source payloads produce identical ZIP bytes on repeated builds.

Acceptance criteria

  • Two consecutive ordinary Agent catalog builds produce identical artifact hashes.
  • Catalog validation and lane routing tests pass.
  • Generated artifacts and catalog checksums are refreshed once to the deterministic form.
  • No Agent prompt, manifest behavior, compatibility range, or runtime payload content changes.
Originally created by @SpicyMarinara on GitHub (Aug 1, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/174 ## Problem A clean `staging` checkout passes catalog validation, but rerunning `node scripts/build-agent-catalog.mjs` changes every ordinary Agent ZIP checksum even though `manifest.json` and `agents.json` payload bytes are unchanged. The ZIP entries inherit checkout/build timestamps and filesystem modes, unlike feature-package archives, which normalize both before packaging. This makes release-readiness rebuilds appear to contain package drift and prevents byte-for-byte reproduction of the published catalog artifacts. ## Expected behavior Ordinary Agent packages should normalize archive input modes and modification times using the same simple pattern as `build-feature-packages.mjs`, so identical source payloads produce identical ZIP bytes on repeated builds. ## Acceptance criteria - Two consecutive ordinary Agent catalog builds produce identical artifact hashes. - Catalog validation and lane routing tests pass. - Generated artifacts and catalog checksums are refreshed once to the deterministic form. - No Agent prompt, manifest behavior, compatibility range, or runtime payload content changes.
Author
Owner

@SpicyMarinara commented on GitHub (Aug 1, 2026):

I’m taking this as the v2.4.0 release-readiness blocker and will open a focused draft PR against staging.

<!-- gh-comment-id:5151933061 --> @SpicyMarinara commented on GitHub (Aug 1, 2026): I’m taking this as the v2.4.0 release-readiness blocker and will open a focused draft PR against `staging`.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Agents#88
No description provided.