Skip to content

LBA REQ 086

github-actions[bot] edited this page Nov 20, 2026 · 3 revisions

LBA-REQ-086: The cross-plane byte-reproducible extension package (a Windows build equals a Linux build)

Status

Proven

Area

Packaging / boundary (ADR-0067 -- the cross-plane byte-reproducible extension package)

Statement

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.

Rationale

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 tsc output, whose newLine defaults to the platform).

Acceptance Criteria

  • scripts/normalize-vsix.mjs pins, 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.
  • .gitattributes pins LF on the files packaged into the .vsix (and the experiments/ sources bundled into out/acg-mcp-bundle), scoped to avoid the Windows-captured experiment fixtures, and tsconfig.json sets newLine: lf so tsc emits LF on every plane -- the packaged content is identical regardless of a plane's core.autocrlf.
  • .github/workflows/vsix-cross-plane-repro.yml builds the normalized .vsix on ubuntu-latest AND windows-latest and asserts the two sha256 are identical, failing closed when they diverge.
  • The offline gate vsix-cross-plane-repro-workflow-wired proves 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.mjs covers the mode/version pinning.

Verification

Historical statement (no longer implemented)

Supersession

Change Guidance

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).

TestID

T-086

CodeRef

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

RTM Status

Proven

Clone this wiki locally