You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
patch explainer: every embedded-payload error is reported as "payload cannot be inflated" (patch.mjs:26 checks error.diagnostics) #1084
archify patch explainer reports "Embedded native diagram payload cannot be inflated." for every problem with the page's embedded payload. When the page has no prepared payload at all (for example, the wrong HTML file was passed), has two of them, or holds invalid JSON, the specific message that embedded() raises is lost.
Reproduced on v3.2.0 and on main (25cf370). Windows 11, Node 24.
Embedded native diagram payload cannot be inflated.
[explainer/patch-payload] Embedded native diagram payload cannot be inflated. Fix: Rebuild the original artifact before patching..
Expected
[explainer/patch-payload] The artifact must contain one original draft and prepared resource payload. with its fix "Use an artifact produced by the formal explainer CLI.", which is what embedded() raises. For invalid JSON: "Embedded draft payload is invalid."
Cause
archify/explainer/patch.mjs:26: catch (error) { if (error.diagnostics) throw error; fail('payload','Embedded native diagram payload cannot be inflated.', …) }. The errors raised by fail() carry their diagnostics on archifyDiagnostics (that is what commandPatch reads), so error.diagnostics is always undefined and every embedded() failure is replaced. Checking error.archifyDiagnostics keeps the specific message.
Reproduced: missing or duplicate prepared payloads and invalid JSON lost their specific diagnostic and were reported as inflation failures. Fixed in 897cbbf0.
The catch now preserves error.archifyDiagnostics, while retaining the legacy error.diagnostics route. The original message and repair advice survive. A genuinely corrupt gzip payload still produces the inflation diagnostic.
Tests cover all four cases through preparePanelPatch, plus the public CLI when an ordinary native page is mistakenly passed to patch explainer. They verify that the original page and previous output remain unchanged. Existing successful patch cases also pass. Full regression: 3,473 passes/133 conditional skips; Chrome: 324 passes/no skips. The same package is installed and hash/mode checked across 213 managed files, with CLI checks on macOS Node 22.23.2 and 26.0.0.
Completed on dev through #1089, integrated by #1102 at commit 10b4dd5. Original contribution history is retained.
Missing/duplicate/invalid prepared payloads retain their specific diagnostics; actual decompression failures retain the fallback.
The exact integrated candidate 98efbfc passed CI run 40177166414: 19 successful jobs, no failures, two deployment-only skips. Closing as completed in the development branch; this does not announce a release or a live installation.
Activity
fix(explainer): preserve heading text, payload diagnostics and locali…
BlueboxC commentedon Oct 24, 2026
Reproduced: missing or duplicate prepared payloads and invalid JSON lost their specific diagnostic and were reported as inflation failures. Fixed in 897cbbf0.
The catch now preserves
error.archifyDiagnostics, while retaining the legacyerror.diagnosticsroute. The original message and repair advice survive. A genuinely corrupt gzip payload still produces the inflation diagnostic.Tests cover all four cases through
preparePanelPatch, plus the public CLI when an ordinary native page is mistakenly passed topatch explainer. They verify that the original page and previous output remain unchanged. Existing successful patch cases also pass. Full regression: 3,473 passes/133 conditional skips; Chrome: 324 passes/no skips. The same package is installed and hash/mode checked across 213 managed files, with CLI checks on macOS Node 22.23.2 and 26.0.0.BlueboxC
tt-a1i commentedon Oct 25, 2026
Completed on
devthrough #1089, integrated by #1102 at commit 10b4dd5. Original contribution history is retained.Missing/duplicate/invalid prepared payloads retain their specific diagnostics; actual decompression failures retain the fallback.
The exact integrated candidate 98efbfc passed CI run 40177166414: 19 successful jobs, no failures, two deployment-only skips. Closing as completed in the development branch; this does not announce a release or a live installation.
fix(explainer): preserve patch payload diagnostics