Repository navigation
LBA REQ 086
LBA-REQ-086: The cross-plane byte-reproducible extension package (a Windows build equals a Linux build)
Proven
Packaging / boundary (ADR-0067 -- the cross-plane byte-reproducible extension package)
The system shall package the .vsix byte-identically on the windows and linux planes -- pinning its
OS-dependent zip metadata (entry timestamp, mode, version-made-by) and forcing LF on its packaged content -- so
a fail-closed gate proves a windows build and a linux build of the same commit have the same sha256.
ADR-0066 made the .vsix reproducible on a SINGLE plane, but the plane model is that a plane is the
OS the extension runs in (windows, linux), and a genuine corroboration needs a windows- and a linux-plane
witness to agree on ONE artifact. Two facts blocked that: the human reviews on windows and CI publishes on
linux, so a Windows build != a Linux build meant the reviewed vsixSha256 (LBA-REQ-068/069) was never the
shipped one (the v1.0.0 defect); and two independent planes each computed a different hash, so "the planes
agree on the same .vsix" was unprovable. The divergence is OS-dependent zip metadata (mtime, mode, host byte)
- CRLF-vs-LF packaged content (including
tscoutput, whosenewLinedefaults to the platform).
-
scripts/normalize-vsix.mjspins, for every entry, the DOS mod-time/date (1980-01-01), the external file attributes (regular file, mode 0644), and the version-made-by host (Unix) -- so entry metadata no longer depends on the building plane's OS or umask. -
.gitattributespins LF on the files packaged into the.vsix(and theexperiments/sources bundled intoout/acg-mcp-bundle), scoped to avoid the Windows-captured experiment fixtures, andtsconfig.jsonsetsnewLine: lfsotscemits LF on every plane -- the packaged content is identical regardless of a plane'score.autocrlf. -
.github/workflows/vsix-cross-plane-repro.ymlbuilds the normalized.vsixonubuntu-latestANDwindows-latestand asserts the two sha256 are identical, failing closed when they diverge. - The offline gate
vsix-cross-plane-repro-workflow-wiredproves the workflow builds on both planes + compares the sha + fails closed, and that the determinism prerequisites (newLine: lf, the LF.gitattributes) hold;test/normalize-vsix.mjscovers the mode/version pinning.
the normalizer is scripts/normalize-vsix.mjs; the LF pins are in .gitattributes +
tsconfig.json; the dual-OS proof is .github/workflows/vsix-cross-plane-repro.yml; the offline gate is
vsix-cross-plane-repro-workflow-wired. This cross-plane identity is the foundation for the two-plane
corroboration re-seal (LBA-REQ-024/026). Authored under the singular-requirement directive (one shall).
scripts/normalize-vsix.mjs; test/normalize-vsix.mjs; test/package-files.mjs; .gitattributes; tsconfig.json; .github/workflows/vsix-cross-plane-repro.yml; experiments/verify-local-gates.mjs
Proven