TASK ARCHIVE: nuclear-pyramid-docx-offload#

SUMMARY#

The Nuclear Pyramid archive’s 13MB book download (From Gravitons to Galaxies.docx) was offloaded from the site’s nginx → static-site path to a GitHub Release asset. The nuclear-pyramid-archive build pipeline now rewrites both docx hrefs in index.php during transform_html, so deploys stay reproducible. Repository: Texarkanine/nuclear-pyramid-archive (branch fix-docx-download at archive time).

REQUIREMENTS#

IMPLEMENTATION#

Design context (from prior creative exploration): Option B (“offload docx only”) was chosen over build separation + DO path routes because ~97% of asset bytes were one file; Option A remains a valid upgrade if image traffic or archive size grows.

TESTING#

LESSONS LEARNED#

PROCESS IMPROVEMENTS#

TECHNICAL IMPROVEMENTS#

NEXT STEPS#

None for this task. Deploy nuclear-pyramid-archive when ready so production matches committed docs/site/.


Inlined reflection (ephemeral file removed)#

Requirements vs outcome: All planned requirements delivered; release created by operator; code was transform + docs only.

Plan accuracy: File list and order were right. Surprises: release asset used dotted filename in URL; re-transform surfaced unrelated about.php overlay diff. Original plan over-specified tests; operator shortened.

Build & QA: Regex backreference handled both quote styles; QA only flagged empty test/ debris.

Million-dollar question: A generic “external asset URL table” would be the foundational design for many offloaded files; for one large asset, the dedicated method is appropriate.