Repository navigation
release(linux): validate source artifacts and reproducible Debian packages (#652) - #1399
Conversation
|
Design decision, 2026-10-07, decided by the project owner: policy accepted.
Conditions before merge:
The port and the VPS run are in progress on this branch. Recorded in docs/project/Questions.md by #1422. |
The project owner decided six open design questions on 2026-10-07: orchestration starts as a std.orchestrate library (#723, #1393 closed), request and persistent lifetime domains (#1369), @Lifetime on struct fields with LD5 (#1358), last-use moves without a move keyword or COW (#1354), the type reflection API at Experimental stability (#1365), and the Linux release qualification policy (#1399). Questions.md archives each one. The Flow 3.0 tracker records the library-first rule for orchestration. Follow-up on persistent and TransportSafe is #1421.
2790988 to
7b54679
Compare
The project owner decided six open design questions on 2026-10-07: orchestration starts as a std.orchestrate library (#723, #1393 closed), request and persistent lifetime domains (#1369), @Lifetime on struct fields with LD5 (#1358), last-use moves without a move keyword or COW (#1354), the type reflection API at Experimental stability (#1365), and the Linux release qualification policy (#1399). Questions.md archives each one. The Flow 3.0 tracker records the library-first rule for orchestration. Follow-up on persistent and TransportSafe is #1421.
The project owner decided six open design questions on 2026-10-07: orchestration starts as a std.orchestrate library (#723, #1393 closed), request and persistent lifetime domains (#1369), @Lifetime on struct fields with LD5 (#1358), last-use moves without a move keyword or COW (#1354), the type reflection API at Experimental stability (#1365), and the Linux release qualification policy (#1399). Questions.md archives each one. The Flow 3.0 tracker records the library-first rule for orchestration. Follow-up on persistent and TransportSafe is #1421.
|
Auto-merge disabled by the lane E merge agent: the owner's 2026-10-07 decision makes a recorded qualification run on Linux with the real flowc on the CI VPS a condition of merge, and this PR's own status still lists the Linux parity runs and the VPS qualification as outstanding. Re-enable it once that run is recorded here. |
…ools packaging/linux/qualify-release.sh, packaging/deb/build.sh and packaging/linux/qualify-deb.sh become ./flow tool qualify_linux_archive, ./flow tool build_deb (replacing the earlier dpkg-buildpackage stub) and ./flow tool qualify_deb. They run git, tar, dpkg-deb, sha256sum, cp, ln, find and touch through std.process with no shell. Shared digest, version, archive-root and Fibonacci smoke checks live in tools/build_deb/linux_pkg.flow. qualify_release --mode full on Linux now calls the Flow tool, and the docs name ./flow tool for every step. The shell ratchet no longer sees the three scripts.
7b54679 to
4971c75
Compare
|
Rebased onto main after #1400 (4971c75). The rebase had no conflicts. Local gates on macOS arm64: qualify_release 13/0, packaging_specs 6/0, tests/tools pass, shell_ratchet, script_refs and doc_links pass, and the three new tools build and answer --help. I left this PR out of the merge queue because the owner's 2026-10-07 condition is still listed as outstanding here: one recorded qualification run on Linux with the real flowc on the CI VPS (build the .deb twice from one pinned commit and compare SHA-256, then qualify a git archive tarball and the .deb). Once that run is recorded on this PR, |
Linux qualification and parity on the CI VPS (2026-10-07)Result: PASS. The .deb is reproducible and every parity case matches the old scripts. Host
Qualification (Flow tools at 4971c75)
Checksums: The two .deb builds are byte-identical ( Key output:
Parity: old script (4164ecb) against Flow tool (4971c75)Same inputs for both. Output paths were normalized before the diff.
The only stdout difference is the random temporary directory in two Linux arm64 was not run and remains unqualified. |
On Linux, GCC in GNU mode predefines `linux` as 1, so the emitted `StrList* linux = ...` did not compile and qualify_release failed to build (Dry-run qualify and tests/scripts qualify_release on ubuntu). Rename the local to linux_gate.
Follow-up: Linux build fix for qualify_release (2f70f5f)Hosted CI on 4971c75 failed macOS does not define that macro, so the local gates missed it. Commit 2f70f5f renames the local to Reproduced and re-run on the same CI VPS (Ubuntu 24.04.4, x86_64, as
The new |
Part of #652 (Linux side only). This does not close the macOS Homebrew or frozen-release acceptance gate.
Policy accepted by the project owner on 2026-10-07: local, checksum-gated qualification; a reproducible source-built .deb from a pinned commit with SOURCE_DATE_EPOCH and root ownership; hosted CI is not qualification authority; Linux arm64 is explicitly unqualified. Two conditions before merge: port the three shell scripts to Flow tools, and record one real qualification run on Linux with the real flowc on the CI VPS.
Status: ready to merge. The port is done, and the Linux parity runs and the VPS qualification passed on 2026-10-07 (recorded in #1399 (comment)).
Scope
./flow tool qualify_linux_archive --archive FILE --sha256 DIGEST [--out DIR](waspackaging/linux/qualify-release.sh). Checks the archive SHA-256 before reading it, rejects absolute paths, traversal and more than one source root, unpacks into a temporary directory, boots the deliveredflowCLI, compilesexamples/basics/fibonacci.flowwithFLOW_HOST=flowcand requires exit 55. Writesqualification-linux.txt../flow tool build_deb [--rev COMMIT] [--out DIR](waspackaging/deb/build.sh; replaces the earlierdpkg-buildpackagestub attools/build_deb). Buildsflow_VERSION-1_all.debfromgit archiveof a pinned commit withSOURCE_DATE_EPOCH(default: commit time),--root-owner-groupand gzip. WritesSHA256SUMS.deb.txtanddeb-provenance.txt../flow tool qualify_deb --package FILE --sha256 DIGEST [--out DIR](waspackaging/linux/qualify-deb.sh). Checks the digest and Package field, extracts without root, checks the payload and the/usr/bin/flowsymlink, then runs the same Fibonacci smoke test. Writesqualification-deb.txt.tools/build_deb/linux_pkg.flow. External commands (git, tar, dpkg-deb, sha256sum, cp, ln, find, touch, readlink, cc) run throughstd.processviatools/flow_cli/sys.flow, with no shell../flow tool qualify_release --mode fullon Linux now calls./flow tool qualify_linux_archivewith the digest of the archive it just built.PLATFORMS.md,docs/project/RELEASING.md,docs/project/release-qualification.md,packaging/README.md) name./flow tool ...for every step. The three.shfiles are deleted.Messages, exit codes (0 pass, 1 artifact check failed, 2 bad arguments or host) and record file contents follow the scripts. Known differences: the usage line names
./flow tool NAMEinstead of the script path, and the "missing TOOL" preflight lists only the commands the tool runs.Gates run (macOS arm64, rebased on origin/main d3942f7)
./flow tool shell_ratchet: PASS (2 shell scripts, 12 lines, limit 12)./flow tool python_ratchet: PASS./flow tool script_refs: PASS./flow tool tool_layout: PASS./flow tool doc_links: PASS./flow tool tests/scripts/packaging_specs.flow: 5 passedqualify_releasecompile with the Stage-A flowc. On macOS they stop at the host check (exit 2), as the scripts did.Merge conditions
ghrunner): flowc built from the bootstrap C, the .deb built twice from 4971c75 with matching SHA-2569159af62add4e2c61c596245243489dca5aac17a8e1eaf2c8681aa06f232b0aa, and agit archivesource tarball and the .deb qualified with the real CLI (both PASS). Recorded in release(linux): validate source artifacts and reproducible Debian packages (#652) #1399 (comment).qualify_releaselocal namedlinuxcollided with GCC's predefined macro on Linux. Renamed;tests/scripts/qualify_release.flowfails on 4971c75 and passes 13/0 on 2f70f5f on the VPS, andqualify_release --mode fullreachesgate linux_archive: pass. Recorded in release(linux): validate source artifacts and reproducible Debian packages (#652) #1399 (comment). flowc gap: flowc: Flow identifiers named linux or unix do not compile on Linux (GNU predefined macros) #1442.Linux arm64 remains unqualified.