[PR #175] [MERGED] Fix reproducibility of ordinary Agent archives #840

Closed
opened 2026-10-20 17:31:30 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/175
Author: @SpicyMarinara
Created: 8/1/2026
Status: ✅ Merged
Merged: 8/1/2026
Merged by: @SpicyMarinara

Base: staging ← Head: agent/reproducible-agent-archives


📝 Commits (1)

  • 8e35caa fix: make agent archives reproducible

📊 Changes

32 files changed (+112 additions, -106 deletions)

View changed files

📝 artifacts/background-1.0.3.zip (+0 -0)
📝 artifacts/card-evolution-auditor-1.0.2.zip (+0 -0)
📝 artifacts/character-tracker-1.0.2.zip (+0 -0)
📝 artifacts/chess-1.0.4.zip (+0 -0)
📝 artifacts/combat-1.0.3.zip (+0 -0)
📝 artifacts/continuity-1.0.2.zip (+0 -0)
📝 artifacts/custom-tracker-1.0.2.zip (+0 -0)
📝 artifacts/cyoa-1.0.3.zip (+0 -0)
📝 artifacts/director-1.0.2.zip (+0 -0)
📝 artifacts/echo-chamber-1.0.2.zip (+0 -0)
📝 artifacts/eightball-1.0.4.zip (+0 -0)
📝 artifacts/expression-1.0.4.zip (+0 -0)
📝 artifacts/haptic-1.0.2.zip (+0 -0)
📝 artifacts/html-1.0.2.zip (+0 -0)
📝 artifacts/illustrator-1.0.4.zip (+0 -0)
📝 artifacts/knowledge-retrieval-1.0.3.zip (+0 -0)
📝 artifacts/knowledge-router-1.0.3.zip (+0 -0)
📝 artifacts/lorebook-keeper-1.0.2.zip (+0 -0)
📝 artifacts/persona-stats-1.0.2.zip (+0 -0)
📝 artifacts/poker-1.0.4.zip (+0 -0)

...and 12 more files

📄 Description

Closes #174

Why this change

The v2.4.0 release audit found that rebuilding unchanged ordinary Agent packages changed every ZIP checksum because archive entries inherited checkout timestamps and filesystem modes. The payload files were byte-identical, but the artifacts could not be reproduced byte for byte.

What changed

  • Normalize ordinary Agent archive entries to mode 0644 and the same fixed timestamp used by feature-package builds.
  • Rebuild the 28 affected ordinary Agent archives once in deterministic form.
  • Refresh the generated v2, v3, and legacy catalog checksums and sizes.
  • Leave prompts, manifests, compatibility ranges, and runtime payload bytes unchanged.

Validation evidence

  • npm ci passed with zero vulnerabilities.
  • Two consecutive full ordinary Agent builds produced byte-identical hashes for all 28 rebuilt archives.
  • node scripts/test-catalog-lanes.mjs passed.
  • node scripts/validate-catalog.mjs passed: 31 packages; v2=31, v3=31, legacy=v2.
  • GitHub Catalog validation and branch-policy checks passed.
  • Engine v2.4 staging resolved the 31-package Agents v2 staging catalog, installed Prose Guardian, Character Tracker, and Storyboard from the current payload-equivalent published archives, then loaded all three offline from disk.
  • git diff --check passed.

Manual validation

  • Install/update representative Writer, Tracker, and Misc packages from the rebuilt staging archives after merge.
  • Restart the Engine and verify the rebuilt installed packages remain available offline.
  • Confirm Engine staging reads the rebuilt Agents staging catalog before promotion.

Summary by CodeRabbit

  • Chores
    • Refreshed package catalog metadata and artifact checksums across catalog versions.
    • Updated artifact size information where applicable.
    • Standardized generated artifact timestamps and file permissions for consistent builds.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Agents/pull/175 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 8/1/2026 **Status:** ✅ Merged **Merged:** 8/1/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `agent/reproducible-agent-archives` --- ### 📝 Commits (1) - [`8e35caa`](https://github.com/Pasta-Devs/Marinara-Agents/commit/8e35caa5d0026a4c63e7d992a43e5ad280ca131a) fix: make agent archives reproducible ### 📊 Changes **32 files changed** (+112 additions, -106 deletions) <details> <summary>View changed files</summary> 📝 `artifacts/background-1.0.3.zip` (+0 -0) 📝 `artifacts/card-evolution-auditor-1.0.2.zip` (+0 -0) 📝 `artifacts/character-tracker-1.0.2.zip` (+0 -0) 📝 `artifacts/chess-1.0.4.zip` (+0 -0) 📝 `artifacts/combat-1.0.3.zip` (+0 -0) 📝 `artifacts/continuity-1.0.2.zip` (+0 -0) 📝 `artifacts/custom-tracker-1.0.2.zip` (+0 -0) 📝 `artifacts/cyoa-1.0.3.zip` (+0 -0) 📝 `artifacts/director-1.0.2.zip` (+0 -0) 📝 `artifacts/echo-chamber-1.0.2.zip` (+0 -0) 📝 `artifacts/eightball-1.0.4.zip` (+0 -0) 📝 `artifacts/expression-1.0.4.zip` (+0 -0) 📝 `artifacts/haptic-1.0.2.zip` (+0 -0) 📝 `artifacts/html-1.0.2.zip` (+0 -0) 📝 `artifacts/illustrator-1.0.4.zip` (+0 -0) 📝 `artifacts/knowledge-retrieval-1.0.3.zip` (+0 -0) 📝 `artifacts/knowledge-router-1.0.3.zip` (+0 -0) 📝 `artifacts/lorebook-keeper-1.0.2.zip` (+0 -0) 📝 `artifacts/persona-stats-1.0.2.zip` (+0 -0) 📝 `artifacts/poker-1.0.4.zip` (+0 -0) _...and 12 more files_ </details> ### 📄 Description Closes #174 ## Why this change The v2.4.0 release audit found that rebuilding unchanged ordinary Agent packages changed every ZIP checksum because archive entries inherited checkout timestamps and filesystem modes. The payload files were byte-identical, but the artifacts could not be reproduced byte for byte. ## What changed - Normalize ordinary Agent archive entries to mode `0644` and the same fixed timestamp used by feature-package builds. - Rebuild the 28 affected ordinary Agent archives once in deterministic form. - Refresh the generated v2, v3, and legacy catalog checksums and sizes. - Leave prompts, manifests, compatibility ranges, and runtime payload bytes unchanged. ## Validation evidence - `npm ci` passed with zero vulnerabilities. - Two consecutive full ordinary Agent builds produced byte-identical hashes for all 28 rebuilt archives. - `node scripts/test-catalog-lanes.mjs` passed. - `node scripts/validate-catalog.mjs` passed: 31 packages; v2=31, v3=31, legacy=v2. - GitHub Catalog validation and branch-policy checks passed. - Engine v2.4 staging resolved the 31-package Agents v2 staging catalog, installed Prose Guardian, Character Tracker, and Storyboard from the current payload-equivalent published archives, then loaded all three offline from disk. - `git diff --check` passed. ## Manual validation - [ ] Install/update representative Writer, Tracker, and Misc packages from the rebuilt staging archives after merge. - [ ] Restart the Engine and verify the rebuilt installed packages remain available offline. - [ ] Confirm Engine staging reads the rebuilt Agents staging catalog before promotion. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Chores** * Refreshed package catalog metadata and artifact checksums across catalog versions. * Updated artifact size information where applicable. * Standardized generated artifact timestamps and file permissions for consistent builds. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-20 17:31:30 +07:00
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#840
No description provided.