From d924a44bb6cd640998f197be7c2eb723cc891cbd Mon Sep 17 00:00:00 2001 From: CI Test Date: Wed, 18 Nov 2026 14:16:25 +0000 Subject: [PATCH 1/5] release: prepare eggpack 0.1.1 and manifest 0.1.2 --- .../contract-and-manifest-surface/SKILL.md | 20 +- .skills/pre-submit-gate/SKILL.md | 16 +- Cargo.lock | 335 ++++++++++++------ Cargo.toml | 2 +- README.md | 1 + architecture/ci.md | 2 +- architecture/github.md | 4 +- architecture/manifest.md | 11 +- architecture/overview.md | 2 +- crates/eggpack-ci/Cargo.toml | 2 +- crates/eggpack-ci/src/tests.rs | 136 ++++--- crates/eggpack-github/Cargo.toml | 2 +- crates/eggpack-github/src/lib.rs | 2 +- crates/eggpack-manifest/Cargo.toml | 8 +- docs/README.md | 2 + docs/quickstart.md | 2 +- docs/release-process.md | 75 ++++ 17 files changed, 406 insertions(+), 216 deletions(-) create mode 100644 docs/release-process.md diff --git a/.skills/contract-and-manifest-surface/SKILL.md b/.skills/contract-and-manifest-surface/SKILL.md index 6702645..ccfcf9d 100644 --- a/.skills/contract-and-manifest-surface/SKILL.md +++ b/.skills/contract-and-manifest-surface/SKILL.md @@ -39,16 +39,16 @@ So "it's optional, so it's safe" is false here. A shape change to the published manifest is a compatibility event, not a convenience. It needs a plan, an ADR if it establishes a public compatibility contract, and downstream coordination. -`eggpack-manifest 0.1.1` is live on crates.io. `0.1.0` remains published and -resolvable. `0.1.1` carries two narrowings of the published acceptance set — -the ADR-0006 all-zeros digest refusal and the document bound that -`ReleaseManifest::validate` now measures — and both are recorded as -compatibility events in -`plans/closure/release-manifest/004-status.md`. `eggup-eggpack` consumes -`=0.1.0` and is the named affected consumer; it pins an exact version, so it -does not pick up `0.1.1` automatically, and its bump needs a plan registered -in the Eggup repository. The other six workspace crates are unpublished; do -not publish one as a side effect of unrelated work. +`eggpack-manifest 0.1.1` is the latest version published on crates.io; `0.1.0` +remains published and resolvable. This tree prepares `0.1.2`, which is not +published by this change. The published `0.1.1` carries two narrowings of the +acceptance set — the ADR-0006 all-zeros digest refusal and the document bound +that `ReleaseManifest::validate` now measures — and both are recorded as +compatibility events in `plans/closure/release-manifest/004-status.md`. +`eggup-eggpack` consumes `=0.1.0` and is the named affected consumer; it pins an +exact version, so it does not pick up later patches automatically, and its bump +needs a plan registered in the Eggup repository. The other six workspace crates +are unpublished; do not publish one as a side effect of unrelated work. ## The two documents say different things diff --git a/.skills/pre-submit-gate/SKILL.md b/.skills/pre-submit-gate/SKILL.md index 73fff61..f6eef86 100644 --- a/.skills/pre-submit-gate/SKILL.md +++ b/.skills/pre-submit-gate/SKILL.md @@ -51,9 +51,10 @@ dependency or version drift silently rewrites `Cargo.lock` and you find out at ## `cargo package` needs the patch flags — copy them, do not invent them -`eggpack-contract` and `eggpack-manifest` are not published to crates.io yet, so -packaging any crate that depends on them fails unless each unpublished -dependency is patched to its local path: +`eggpack-contract` is unpublished. The latest published `eggpack-manifest` is +`0.1.1`; this tree prepares `0.1.2`, which remains unpublished until a separate +authorized release. Package checks patch both to local paths so dependent crates +are validated against the current workspace sources: ```bash cargo package -p eggpack-ci --locked --allow-dirty \ @@ -66,10 +67,11 @@ cargo package -p eggpack-ci --locked --allow-dirty \ The set is exactly the transitive in-workspace dependency closure of the crate being packaged. The authoritative copy for all seven is `scripts/check-local.sh` — -read it rather than reconstructing it. **Never bare `cargo publish`**: the only -crate published from this workspace is `eggpack-manifest` 0.1.0, publication is a -deliberate milestone, and `--allow-dirty` on `package` is for local verification -only. +read it rather than reconstructing it. **Never bare `cargo publish`**: +`eggpack-manifest` is the only crate published from this workspace; `0.1.1` is +the latest published version and the `0.1.2` in this tree is only a candidate. +Publication is a deliberate milestone, and `--allow-dirty` on `package` is for +local verification only. `--allow-dirty` is safe *here* because packaging is a local verification step and publishing is a separate human action. Do not carry that flag into a release. diff --git a/Cargo.lock b/Cargo.lock index bb78dc3..a46c9c7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -8,12 +8,47 @@ version = "2.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa" +[[package]] +name = "annotate-snippets" +version = "0.12.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0258346f92c78dbc5b336b9a5b27c64447aa10643bc64e651db2edb145361564" +dependencies = [ + "anstyle", + "memchr", + "unicode-width", +] + +[[package]] +name = "anstyle" +version = "1.0.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "940b3a0ca603d1eade50a4846a2afffd5ef57a9feac2c0e2ec2e14f9ead76000" + +[[package]] +name = "arraydeque" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7d902e3d592a523def97af8f317b08ce16b7ab854c1985a0c671e6f15cebc236" + [[package]] name = "atomic-waker" version = "1.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0" +[[package]] +name = "autocfg" +version = "1.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53" + +[[package]] +name = "base64" +version = "0.23.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ac07cdecf99051d9a5238b80f35af32cdeba5b336e55d957b318b50137e18da5" + [[package]] name = "base64ct" version = "1.8.3" @@ -43,9 +78,9 @@ checksum = "fc652a48c352aef3ea3aed32080501cf3ef6ed5da78602a020c991775b0aff04" [[package]] name = "cc" -version = "1.4.7" +version = "1.11.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "54413ede23c2daf518f35156dfde027feb2374004d63bd497f983c8db9c0e313" +checksum = "33ef9e3e8154a45c7a95cff4c1299702106ad94062d7bb85fdc5d3a5afd91d45" dependencies = [ "find-msvc-tools", "shlex", @@ -83,6 +118,12 @@ version = "0.8.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b" +[[package]] +name = "core_detect" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f8f80099a98041a3d1622845c271458a2d73e688351bf3cb999266764b81d48" + [[package]] name = "cpufeatures" version = "0.2.17" @@ -94,9 +135,9 @@ dependencies = [ [[package]] name = "crc32fast" -version = "1.5.2" +version = "1.5.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "01a7799fd6b852db0e61728dde9a204c423b44d689dbd432522543614b490e78" +checksum = "2b929dd2a135771f40afabd1073f85eed59c800b7c61901e5c254270497dad64" dependencies = [ "cfg-if", ] @@ -134,9 +175,9 @@ dependencies = [ [[package]] name = "eggfetch-core" -version = "0.2.0" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6cd254b82aa20d1becb6e3e90a5103e8bcc2d7057bb13532096326e43cd98904" +checksum = "c22bdfc6ab683ddf5d5fcf0321b60dfc86c0ec1311284a33c31f536d12c1d2ae" dependencies = [ "bytes", "futures-core", @@ -164,7 +205,7 @@ dependencies = [ [[package]] name = "eggpack-bootstrap" -version = "0.1.0" +version = "0.1.1" dependencies = [ "eggpack-contract", "eggpack-manifest", @@ -178,7 +219,7 @@ dependencies = [ [[package]] name = "eggpack-ci" -version = "0.1.0" +version = "0.1.1" dependencies = [ "eggpack-bootstrap", "eggpack-contract", @@ -186,15 +227,15 @@ dependencies = [ "eggpack-github", "eggpack-manifest", "serde", + "serde-saphyr", "serde_json", - "serde_yaml", "sha2", "tokio", ] [[package]] name = "eggpack-cli" -version = "0.1.0" +version = "0.1.1" dependencies = [ "eggpack-bootstrap", "eggpack-ci", @@ -212,7 +253,7 @@ dependencies = [ [[package]] name = "eggpack-contract" -version = "0.1.0" +version = "0.1.1" dependencies = [ "serde", "toml", @@ -220,7 +261,7 @@ dependencies = [ [[package]] name = "eggpack-core" -version = "0.1.0" +version = "0.1.1" dependencies = [ "command-group", "eggpack-contract", @@ -236,7 +277,7 @@ dependencies = [ [[package]] name = "eggpack-github" -version = "0.1.0" +version = "0.1.1" dependencies = [ "bytes", "eggfetch-core", @@ -254,23 +295,46 @@ dependencies = [ [[package]] name = "eggpack-manifest" -version = "0.1.1" +version = "0.1.2" dependencies = [ "serde", "serde_json", ] +[[package]] +name = "encoding_rs" +version = "0.8.44" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "89253175e704ab869b04f9db224d38630e0211a53841a79181deae0889e169f5" +dependencies = [ + "cfg-if", + "core_detect", + "multiversion_no_op", + "rustversion", + "scopeguard", + "simdutf8", +] + +[[package]] +name = "encoding_rs_io" +version = "0.1.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fba3fe847045ecff794b9c138293a80db914678c453ad63fbf0c6a9eb6e00b22" +dependencies = [ + "encoding_rs", +] + [[package]] name = "equivalent" -version = "1.0.2" +version = "1.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f" +checksum = "00d174d5400e5e8fd687ad1049e2f578285fa914201b1af7e8b112a4546bd826" [[package]] name = "filetime" -version = "0.2.29" +version = "0.2.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5c287a33c7f0a620c38e641e7f60827713987b3c0f26e8ddc9462cc69cf75759" +checksum = "e1255e7a9f1902190d4c10a75f2f7f495d3d3ce13e9ba26e6c48683a0f4dbed7" dependencies = [ "cfg-if", "libc", @@ -278,15 +342,15 @@ dependencies = [ [[package]] name = "find-msvc-tools" -version = "0.1.13" +version = "0.1.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ef25905e51abafe4dcea6c15fec58c57b601cdbd0ee53d22ea1d3016c587d39b" +checksum = "1c66915cc5391097de7a2b0b972e8505aa33c0df401fd3a6811dbdb32881ba48" [[package]] name = "flate2" -version = "1.1.10" +version = "1.1.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6e634e2e0ebac1ee034020da1ca582e17ffe4e0f5e985823721e168928136dcb" +checksum = "626d4928326b646e70f65ed36fc7cf9f206bdb68a0019ee7c6b4709da4e084c4" dependencies = [ "crc32fast", "miniz_oxide", @@ -368,6 +432,16 @@ dependencies = [ "wasi", ] +[[package]] +name = "granit-parser" +version = "2.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "05f05586d4d4df3d47123207826c40b252728b438a1a07bad3c01ee6bea401df" +dependencies = [ + "arraydeque", + "smallvec", +] + [[package]] name = "hashbrown" version = "0.17.1" @@ -415,13 +489,12 @@ checksum = "6dbf3de79e51f3d586ab4cb9d5c3e2c14aa28ed23d180cf89b4df0454a69cc87" [[package]] name = "hyper" -version = "1.11.1" +version = "1.12.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "27b501faa50e7a26c3d3560ca625132f4078a17771f4810baf70475ae48cbe43" +checksum = "2c3e324da4c95177d6291d4c8730197c0d1822f8a9766814a4a44fa5ab797c9c" dependencies = [ "atomic-waker", "bytes", - "futures-channel", "futures-core", "http", "http-body", @@ -472,9 +545,9 @@ dependencies = [ [[package]] name = "icu_collections" -version = "2.3.0" +version = "2.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fa68d21081c4a05d5a901a1c62add574c77048b6a1c67be3b50ce0b60d4ca513" +checksum = "fe090a42a0d3140fed8c63263ed1fecc02422cb2f4bfe55cd8de2de1b8e105dd" dependencies = [ "displaydoc", "potential_utf", @@ -486,9 +559,9 @@ dependencies = [ [[package]] name = "icu_locale_core" -version = "2.3.0" +version = "2.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d56e28588da92eee5c3201a6eff33fabdd49b62269c8938d4ff050ce4d900deb" +checksum = "25d29b57c17c6528d0dc4c2141cfa2d08200465acb537a3909c8b9b8a4a984c0" dependencies = [ "displaydoc", "litemap", @@ -499,9 +572,9 @@ dependencies = [ [[package]] name = "icu_normalizer" -version = "2.3.0" +version = "2.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "12f9cf5f235641ed274641dd81c3f28d870e276763d0797aeeab72317b1c646f" +checksum = "404a3b8c486f205c87fe7f23ab6894d84a4ad76d6e4671ae1981ba7def87c599" dependencies = [ "icu_collections", "icu_normalizer_data", @@ -513,15 +586,15 @@ dependencies = [ [[package]] name = "icu_normalizer_data" -version = "2.3.0" +version = "2.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1563da1ed3e0b3bf3d74c9b85917ac9c56464d2f57242270c09c9e752f8021a0" +checksum = "20f0088bfb7441f7a37fa0c9e20cb1e9cba1cac6b9ce8cd2a6dc44294f8e8cbc" [[package]] name = "icu_properties" -version = "2.3.0" +version = "2.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7e7ca276ad3145661a65914e6daf131ca5120cd3dcee8f8f3214b8875184a148" +checksum = "2ea83d991c56158f7cf898bf86436c1dfe7c07ee82fe88951f2695c9f37a379f" dependencies = [ "displaydoc", "icu_collections", @@ -534,15 +607,15 @@ dependencies = [ [[package]] name = "icu_properties_data" -version = "2.3.0" +version = "2.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e590f038c1464a96894fd6d10127e90a8be4509f56ff7ecef851b15cee0b7caa" +checksum = "b98f29af82d02b163fe50161388350e743bb3107cc8e8c2f7314cb505faddfcf" [[package]] name = "icu_provider" -version = "2.3.1" +version = "2.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d27bbb9d3abbefac45d55f647c9de1d44aafcd1186eb91879afef17c396c3e73" +checksum = "413099315636c588ee8f011190b329b971a09a8fae9d157e01dcae8379468514" dependencies = [ "displaydoc", "icu_locale_core", @@ -586,15 +659,15 @@ dependencies = [ [[package]] name = "itoa" -version = "1.0.18" +version = "1.0.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682" +checksum = "3bd1574e617a9a6c1f8f8181bd7e841e1f20e4277607ef28945765188d6284d4" [[package]] name = "libc" -version = "0.2.189" +version = "0.2.191" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3eaf3ede3fee6db1a4c2ee091bf8a8b4dccdc6d17f656fb07896ee72867612f2" +checksum = "65cd87c9a6d60536580b316ad985726104730a5151c99845f2490428ef91240a" [[package]] name = "litemap" @@ -604,9 +677,9 @@ checksum = "47d9d19d1d6efa0109d2f65ff4c85cddd50bd572e5a00127ab10987290bcefae" [[package]] name = "log" -version = "0.4.34" +version = "0.4.35" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f9f8bd3e56ce4dfc153cf470fffbfa98c7620958b312ca5c3a4b8d5181fd13c6" +checksum = "5d15f86d12da44cd8d4ec3c73984537eb7f4cadcb9776a575a0a8a05ca11005c" [[package]] name = "memchr" @@ -626,15 +699,21 @@ dependencies = [ [[package]] name = "mio" -version = "1.2.3" +version = "1.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4b18443e9c262bfe8fa82f51666e2642c53393f7e5c27b3e1aeab922cff5b9d8" +checksum = "20521a903f02b0a573cd6840e9d0a5a0cc043d361fe924092cd70f8556cc9c4a" dependencies = [ "libc", "wasi", "windows-sys 0.61.2", ] +[[package]] +name = "multiversion_no_op" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "743fb55ba31b18fb1ecef6bdc9aa2743314978ac084044301a7eee33fb99a20d" + [[package]] name = "nix" version = "0.27.1" @@ -646,6 +725,21 @@ dependencies = [ "libc", ] +[[package]] +name = "nohash-hasher" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2bf50223579dc7cdcfb3bfcacf7069ff68243f8c363f62ffa99cf000a6b9c451" + +[[package]] +name = "num-traits" +version = "0.2.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841" +dependencies = [ + "autocfg", +] + [[package]] name = "once_cell" version = "1.21.4" @@ -654,9 +748,9 @@ checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50" [[package]] name = "openssl-probe" -version = "0.2.1" +version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7c87def4c32ab89d880effc9e097653c8da5d6ef28e6b539d313baaacfbafcbe" +checksum = "7e036b411754132fd6b74e94b74e9a13c5cf606fa93d1885c35860d3060820b1" [[package]] name = "pem-rfc7468" @@ -722,9 +816,9 @@ dependencies = [ [[package]] name = "rustls" -version = "0.23.45" +version = "0.23.46" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0d41d731c7d2f962d1ccc364cec258de3c0e93b38c2fb3ba97ac74513048d634" +checksum = "48e13bd8c0e9365c43cfa5c9e8f9ad49d3c8444926c9aac819e0e4dc503c8fdf" dependencies = [ "log", "once_cell", @@ -737,9 +831,9 @@ dependencies = [ [[package]] name = "rustls-native-certs" -version = "0.8.4" +version = "0.8.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dab5152771c58876a2146916e53e35057e1a4dfa2b9df0f0305b07f611fdea4d" +checksum = "4a073f5dc7469f984c52ad2752b63b0807745133b6de880b7b64c1ac4c48aec4" dependencies = [ "openssl-probe", "rustls-pki-types", @@ -749,18 +843,18 @@ dependencies = [ [[package]] name = "rustls-pki-types" -version = "1.15.1" +version = "1.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2f4925028c7eb5d1fcdaf196971378ed9d2c1c4efc7dc5d011256f76c99c0a96" +checksum = "102f35f7de7b06d8c61f1cff6592f5253e0dea431c74867aad5dfd70f44663fb" dependencies = [ "zeroize", ] [[package]] name = "rustls-webpki" -version = "0.103.15" +version = "0.103.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f3c3cf1d8b1e7d4927e2d154c3fcb02979afb9939629c62cd9048d4f07b60ac2" +checksum = "e3a0760a887c14823fca5a1c970b01d47c328c696c0c64829d1df50e8f853fd5" dependencies = [ "ring", "rustls-pki-types", @@ -768,20 +862,26 @@ dependencies = [ ] [[package]] -name = "ryu" +name = "rustversion" version = "1.0.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9774ba4a74de5f7b1c1451ed6cd5285a32eddb5cccb8cc655a4e50009e06477f" +checksum = "cf54715a573b99ac80df0bc206da022bcd442c974952c7b9720069370852e21f" [[package]] name = "schannel" -version = "0.1.29" +version = "0.1.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "91c1b7e4904c873ef0710c1f407dde2e6287de2bebc1bbbf7d430bb7cbffd939" +checksum = "9cb23c424d8ee841bb4d813677ca237e2a610067d594fec130f87d6093495ab5" dependencies = [ "windows-sys 0.61.2", ] +[[package]] +name = "scopeguard" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" + [[package]] name = "security-framework" version = "3.7.0" @@ -815,6 +915,23 @@ dependencies = [ "serde_derive", ] +[[package]] +name = "serde-saphyr" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d43fb82d550b07e6f929a58d7d0935182602f48ddead875f5ee313c41c8f07fe" +dependencies = [ + "annotate-snippets", + "base64", + "encoding_rs_io", + "granit-parser", + "nohash-hasher", + "num-traits", + "serde_core", + "smallvec", + "zmij", +] + [[package]] name = "serde_core" version = "1.0.229" @@ -837,9 +954,9 @@ dependencies = [ [[package]] name = "serde_json" -version = "1.0.151" +version = "1.0.154" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c841b55ecdae098c80dcae9cf767f6f8a0c2cdb3416bbef72181df4d0fe73f14" +checksum = "e7e9cc8b1b85264074fbcc02a88680c4096b1e47df8f739dceb03bf482f04bd6" dependencies = [ "itoa", "memchr", @@ -857,19 +974,6 @@ dependencies = [ "serde", ] -[[package]] -name = "serde_yaml" -version = "0.9.34+deprecated" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6a8b1a1a2ebf674015cc02edccce75287f1a0130d394307b36743c2f5d504b47" -dependencies = [ - "indexmap", - "itoa", - "ryu", - "serde", - "unsafe-libyaml", -] - [[package]] name = "sha2" version = "0.10.9" @@ -893,6 +997,12 @@ version = "0.3.10" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3a219298ac11a56ea9a6d2120044824d6f01aeb034955e7af7bc16858527deea" +[[package]] +name = "simdutf8" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3a9fe34e3e7a50316060351f37187a3f546bce95496156754b601a5fa71b76e" + [[package]] name = "slab" version = "0.4.12" @@ -901,9 +1011,9 @@ checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5" [[package]] name = "smallvec" -version = "1.16.2" +version = "1.16.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f9395f0f0eee849a9b707b2f06bb92a6a422090e2123bb2ef8e87a0e61892a8e" +checksum = "149309498a5f7334b12ddae0cad8aba81ce785fe91755068867e017cf98fee46" [[package]] name = "socket2" @@ -929,9 +1039,9 @@ checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292" [[package]] name = "syn" -version = "3.0.6" +version = "3.0.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8593e8e72159ed2257d083c7a454a85cbf854f37a0966d8d483aff8c8a3ebcee" +checksum = "4ae9ccbea3a7b0b09443036490c8f34a8b1b760fd345e5c0dae0aac718faea79" dependencies = [ "proc-macro2", "quote", @@ -981,9 +1091,9 @@ dependencies = [ [[package]] name = "tinystr" -version = "0.8.4" +version = "0.8.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b1e27c91459209c2986af3dcf603a5a74a4368754ce37414f59acc971167f643" +checksum = "abc840c238154d58f9e86b2792261edfde565a17696e1cda1a449de27979801a" dependencies = [ "displaydoc", "zerovec", @@ -991,9 +1101,9 @@ dependencies = [ [[package]] name = "tokio" -version = "1.53.1" +version = "1.54.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "202caea871b69668250d242070849eb495be178ed697a3e98aebce5bc81a0bed" +checksum = "b52fd3255258d26fac7264ab5a76b53c13367136dc011d3d6ad4f8ed070396a3" dependencies = [ "bytes", "libc", @@ -1017,9 +1127,9 @@ dependencies = [ [[package]] name = "tokio-rustls" -version = "0.26.5" +version = "0.26.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b0c85f2c3ef0b1cd58b36682f4b17aaa995f0e5db534d85692b4903abce21f67" +checksum = "c9cc2678c2cdd569ef8215e2afd7954ada2ae20b4fdd2c5fe6139a3b02d105db" dependencies = [ "rustls", "tokio", @@ -1105,15 +1215,15 @@ checksum = "b6f5e870be6c3b371b77fe0ee0bafb859fa4964b4404c27de1d380043c4dda20" [[package]] name = "unicode-ident" -version = "1.0.26" +version = "1.0.27" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d245f478577f809a851594d02313b640fb437e0bb33866753cff937863096954" +checksum = "a2c754d6c33795a1c324727428e5a7dedb5b06195f9890bdbcba760d3e246563" [[package]] -name = "unsafe-libyaml" -version = "0.2.11" +name = "unicode-width" +version = "0.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "673aac59facbab8a9007c7f6108d11f63b603f7cabff99fabf650fea5c32b861" +checksum = "ca718471876992059f251e33aafc334346ada08042b7661dd1fe313a9bced557" [[package]] name = "untrusted" @@ -1135,9 +1245,18 @@ dependencies = [ [[package]] name = "utf8_iter" -version = "1.0.4" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "af3bd9d3e571c26fcce9d033b87ea5ab061b8d2ffe9b7a5675d810d68f03edf0" +dependencies = [ + "utf_types", +] + +[[package]] +name = "utf_types" +version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be" +checksum = "3a3b425286980a367278453f3b6d28cdcb134b574e5a35824a6ff5eebad50bb6" [[package]] name = "version_check" @@ -1147,9 +1266,9 @@ checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a" [[package]] name = "want" -version = "0.3.1" +version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bfa7760aed19e106de2c7c0b581b509f2f25d3dacaf737cb82ac61bc6d760b0e" +checksum = "ec4cdd0dd910afe868b7ef477227d8d538b46b3075031afee8a9f2acb0a2ed0b" dependencies = [ "try-lock", ] @@ -1166,14 +1285,14 @@ version = "0.26.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "521bc38abb08001b01866da9f51eb7c5d647a19260e00054a8c7fd5f9e57f7a9" dependencies = [ - "webpki-roots 1.0.9", + "webpki-roots 1.0.12", ] [[package]] name = "webpki-roots" -version = "1.0.9" +version = "1.0.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7dcd9d09a39985f5344844e66b0c530a33843579125f23e21e9f0f220850f22a" +checksum = "7265c9301c16a8711c992c2d8da90ee77ef54b1ed51482d6dfeb00dc756b1297" dependencies = [ "rustls-pki-types", ] @@ -1305,9 +1424,9 @@ checksum = "3ad82d2a33cdc9674dc7465672f271e096168fcdbe0f799d9e6db8c5892679dc" [[package]] name = "yoke" -version = "0.8.3" +version = "0.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "709fe23a0424b6a435d82152b1bd3fdfb0833487d5fa90d05d42762a9891fef5" +checksum = "417ef3fcf6c300b7dbd25c85531a746931c02ad536f3cf4786ed1e88223340b3" dependencies = [ "stable_deref_trait", "yoke-derive", @@ -1316,9 +1435,9 @@ dependencies = [ [[package]] name = "yoke-derive" -version = "0.8.3" +version = "0.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "33811428bee40dbceb6d545e95754741d17a6aef9a4849f0fd62e2ba4f412a78" +checksum = "ec8ebde2db3681e8c9980cc27822030e68752690ddfa9473e739aeb4dbde6d71" dependencies = [ "proc-macro2", "quote", @@ -1349,9 +1468,9 @@ dependencies = [ [[package]] name = "zeroize" -version = "1.9.0" +version = "1.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e13c156562582aa81c60cb29407084cdb54c4164760106ab78e6c5b0858cf64e" +checksum = "e13084392c5e4bc371903e2935a5eaeed24905a7511356b883835e18a78f6879" [[package]] name = "zerotrie" @@ -1366,9 +1485,9 @@ dependencies = [ [[package]] name = "zerovec" -version = "0.11.8" +version = "0.11.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bb0464e17806c1d976d5cba29399c7f08e516e279e2ba493f63123b5fca67dd8" +checksum = "f58a2799cfe9a1670c7ea8edbd52ef8edb93cb37a7f83bf31ba9e35d9dae6a40" dependencies = [ "yoke", "zerofrom", @@ -1377,9 +1496,9 @@ dependencies = [ [[package]] name = "zerovec-derive" -version = "0.11.6" +version = "0.11.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "34df6fc39dbd26ddc9c10e6a2984476e13acce22e64e4487636ef494369225da" +checksum = "c3743ddbf47738d929cd1ae2e199d40d0162979dfe31aef8ae646d2bf00bf97a" dependencies = [ "proc-macro2", "quote", diff --git a/Cargo.toml b/Cargo.toml index b844f8b..73c9d31 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ resolver = "2" members = ["crates/eggpack-contract", "crates/eggpack-manifest", "crates/eggpack-core", "crates/eggpack-bootstrap", "crates/eggpack-ci", "crates/eggpack-github", "crates/eggpack-cli"] [workspace.package] -version = "0.1.0" +version = "0.1.1" edition = "2021" rust-version = "1.89" license = "MIT" diff --git a/README.md b/README.md index 8aa8ad5..c2d74e1 100644 --- a/README.md +++ b/README.md @@ -43,6 +43,7 @@ publication remains a separate human action. ## Documentation - [Quickstart](docs/quickstart.md): complete sample release and workflow walkthrough. +- [Release preparation](docs/release-process.md): versioning, verification, and the release/publication boundary. - [Release identity policy](docs/release-identity-policy.md): map `vMAJOR.MINOR.PATCH` tags to unprefixed manifest IDs. - [CLI command reference](crates/eggpack-cli/README.md): commands, flags, inputs, outputs, and exit behavior. - [Guide index](docs/README.md): user guides and reference links. diff --git a/architecture/ci.md b/architecture/ci.md index 85255d5..39b70bc 100644 --- a/architecture/ci.md +++ b/architecture/ci.md @@ -189,7 +189,7 @@ versioned processes, and it will fail at CI runtime rather than at compile time. ## Dependencies / dependents Dependencies: `eggpack-contract`, `eggpack-core`, `serde`, `serde_json`, -`sha2`. Dev-dependencies: `serde_yaml` (for test assertions only), plus +`sha2`. Dev-dependencies: `serde-saphyr` (for test assertions only), plus `eggpack-manifest`, `eggpack-bootstrap`, `eggpack-github`, and `tokio` so the crate's own end-to-end orchestration tests can drive the real downstream crates without a network. diff --git a/architecture/github.md b/architecture/github.md index 0a2a6c5..450b98a 100644 --- a/architecture/github.md +++ b/architecture/github.md @@ -78,7 +78,7 @@ draft to published. | `RemoteRelease` | `1635` | Release summary including `draft`, `immutable`, `upload_url`. | | `RemoteAsset` | `1656` | `{ id, name, size, state, digest }`; `digest` is `Option` shaped `sha256:`. | | `trait GithubApi` | `1674` | The provider seam (`1669-1734`). | -| `EggfetchTransport` | `2264` | Production transport over `eggfetch-core 0.2.0`; `impl GithubApi` at `2395-2627`. | +| `EggfetchTransport` | `2264` | Production transport over `eggfetch-core 0.3.0`; `impl GithubApi` at `2395-2627`. | | `FixtureGithub` | `2661` | In-memory double; `impl GithubApi` at `2824-3022`. | | `fixture_release` / `fixture_asset` | `2786` / `2808` | Constructors for fixture records. | @@ -439,7 +439,7 @@ Dependencies (`crates/eggpack-github/Cargo.toml:14-26`): `eggpack-contract` (layout authority — `DistributionContract`, `ExpandedAssets`), `eggpack-manifest` (`ReleaseManifest`), `eggpack-core` (finalized-release types), `eggpack-bootstrap` (installer rendering), plus `serde` / `serde_json`, -`sha2`, `tokio` (`rt,time,macros,net,io-util`), `eggfetch-core 0.2.0` with +`sha2`, `tokio` (`rt,time,macros,net,io-util`), `eggfetch-core 0.3.0` with `default-features = false` and features `standard-http1`, `tls-rustls`, `tls-native-roots`, `json`, `bytes`, `futures-util`, and `url`. Dev-only: `tokio` with `rt-multi-thread`. diff --git a/architecture/manifest.md b/architecture/manifest.md index 88ebc1e..17c6693 100644 --- a/architecture/manifest.md +++ b/architecture/manifest.md @@ -290,10 +290,13 @@ Two consequences are load-bearing for a downstream consumer: - **`ReleaseManifest` stays at `schema_version: 1`.** No field is added, no field is removed, and the schema version does not move. A consumer that parses `ReleaseManifest v1` keeps parsing it. -- **The published crate takes a patch release.** `crates/eggpack-manifest/Cargo.toml` - carries `version = "0.1.1"`; the workspace version stays `0.1.0` for the - other six crates, and `^0.1.0` dependents resolve `0.1.1` unchanged. - **`0.1.1` is published** — crates.io, checksum +- **The published crate takes a patch release.** At M004, + `crates/eggpack-manifest/Cargo.toml` carried `version = "0.1.1"`, while the + workspace version was `0.1.0` for the other six crates; `^0.1.0` dependents + resolved `0.1.1` unchanged. The current release preparation advances the + workspace version to `0.1.1` and prepares the independently versioned manifest + crate at `0.1.2`; that candidate is not published. **`0.1.1` is published** — + crates.io, checksum `352c3e327159615b763298e911e239f1decc4a2c9e28c28be8ddd28e50515e37`, not yanked, from publication source commit `4ce4fb850ffa0e141f1a807b60c150173507a92b`, tagged diff --git a/architecture/overview.md b/architecture/overview.md index e525c1e..92f8a36 100644 --- a/architecture/overview.md +++ b/architecture/overview.md @@ -380,7 +380,7 @@ runtime identity contract (`ReleaseWorkflowShapeV1`, the in-memory GitHub double `FixtureGithub` and its fault injectors live in `src/lib.rs`, **not** in `tests.rs`, and are not test-gated — they ship in the crate's public API. Depends on `contract`, -`manifest`, `core`, and `bootstrap`; adds `tokio` + `eggfetch-core 0.2.0` for +`manifest`, `core`, and `bootstrap`; adds `tokio` + `eggfetch-core 0.3.0` for HTTP. Materializes a local `StagingPayloadV1` from a finalized release (`prepare_staging_payload`, `prepare_staging_payload_with_presentation`) and reconciles it into a **draft** through the `GithubApi` trait diff --git a/crates/eggpack-ci/Cargo.toml b/crates/eggpack-ci/Cargo.toml index 90f8817..b5b0f77 100644 --- a/crates/eggpack-ci/Cargo.toml +++ b/crates/eggpack-ci/Cargo.toml @@ -19,7 +19,7 @@ serde_json = "1" sha2 = "0.10" [dev-dependencies] -serde_yaml = "0.9" +serde-saphyr = { version = "2.1.1", default-features = false, features = ["deserialize", "serialize"] } eggpack-manifest = { path = "../eggpack-manifest", version = "0.1.0" } eggpack-bootstrap = { path = "../eggpack-bootstrap", version = "0.1.0" } eggpack-github = { path = "../eggpack-github", version = "0.1.0" } diff --git a/crates/eggpack-ci/src/tests.rs b/crates/eggpack-ci/src/tests.rs index 32e7b89..73d317d 100644 --- a/crates/eggpack-ci/src/tests.rs +++ b/crates/eggpack-ci/src/tests.rs @@ -180,14 +180,14 @@ fn rendering_is_deterministic_parseable_read_only_and_hands_off_candidate() { CIPlan::from_json(&encoded.replace("\"schema_version\":1", "\"schema_version\":2")) .is_err() ); - let parsed: serde_yaml::Value = serde_yaml::from_str(&output).unwrap(); + let parsed: serde_json::Value = serde_saphyr::from_str(&output).unwrap(); assert!(parsed.get("jobs").is_some()); - let permissions = parsed["permissions"].as_mapping().unwrap(); + let permissions = parsed["permissions"].as_object().unwrap(); assert_eq!(permissions.len(), 1); assert_eq!(permissions.get("contents").unwrap().as_str(), Some("read")); - let jobs = parsed["jobs"].as_mapping().unwrap(); + let jobs = parsed["jobs"].as_object().unwrap(); for (_, job) in jobs { - let permissions = job["permissions"].as_mapping().unwrap(); + let permissions = job["permissions"].as_object().unwrap(); assert_eq!(permissions.len(), 1); assert_eq!(permissions.get("contents").unwrap().as_str(), Some("read")); } @@ -405,7 +405,7 @@ fn canonical_multi_target_native_and_cross_jobs_are_sorted_and_explicit() { assert!(graph.validate().is_ok()); let github = policy(); let workflow = render_github(&graph, &github).unwrap(); - let parsed: serde_yaml::Value = serde_yaml::from_str(&workflow).unwrap(); + let parsed: serde_json::Value = serde_saphyr::from_str(&workflow).unwrap(); assert!(parsed.get("jobs").is_some()); assert_golden( &workflow, @@ -1030,11 +1030,11 @@ fn m002_renderer_is_deterministic_read_only_pinned_and_gated() { let policy = m002_policy(); let first = render_release_github(&graph, &policy).unwrap(); assert_eq!(first, render_release_github(&graph, &policy).unwrap()); - let parsed: serde_yaml::Value = serde_yaml::from_str(&first).unwrap(); + let parsed: serde_json::Value = serde_saphyr::from_str(&first).unwrap(); assert!(parsed.get("jobs").is_some()); // Read-only permissions everywhere. - for (_, job) in parsed["jobs"].as_mapping().unwrap() { - let permissions = job["permissions"].as_mapping().unwrap(); + for (_, job) in parsed["jobs"].as_object().unwrap() { + let permissions = job["permissions"].as_object().unwrap(); assert_eq!(permissions.len(), 1); assert_eq!(permissions.get("contents").unwrap().as_str(), Some("read")); } @@ -2230,7 +2230,7 @@ fn m003b_rendered_staging_is_least_privilege_and_exact() { vec!["linux-x64"], ); let yaml = render_release_github(&graph, &policy).unwrap(); - let parsed: serde_yaml::Value = serde_yaml::from_str(&yaml).unwrap(); + let parsed: serde_json::Value = serde_saphyr::from_str(&yaml).unwrap(); // Top-level read-only; no id-token write anywhere. assert!(!yaml.contains("id-token: write")); assert!(!yaml.contains("gh release")); @@ -2251,10 +2251,10 @@ fn m003b_rendered_staging_is_least_privilege_and_exact() { let group = concurrency.get("group").unwrap().as_str().unwrap(); assert!(!group.contains("inputs.release_tag")); assert!(group.contains("github.ref")); - let jobs = parsed.get("jobs").unwrap().as_mapping().unwrap(); + let jobs = parsed.get("jobs").unwrap().as_object().unwrap(); let mut writers = Vec::new(); for (name, job) in jobs { - let name = name.as_str().unwrap(); + let name = name.as_str(); let permissions = job.get("permissions").unwrap(); let contents = permissions.get("contents").unwrap().as_str().unwrap(); if contents == "write" { @@ -2271,7 +2271,7 @@ fn m003b_rendered_staging_is_least_privilege_and_exact() { let needs: Vec<&str> = stage .get("needs") .unwrap() - .as_sequence() + .as_array() .unwrap() .iter() .map(|value| value.as_str().unwrap()) @@ -2283,13 +2283,11 @@ fn m003b_rendered_staging_is_least_privilege_and_exact() { assert!(condition.contains("github.ref_type == 'tag'")); // No untrusted PR trigger may reach the write job: the workflow // triggers are push + workflow_dispatch only (no pull_request). - let triggers = parsed.get("on").unwrap().as_mapping().unwrap(); + let triggers = parsed.get("on").unwrap().as_object().unwrap(); assert!(triggers.get("push").is_some()); - assert!(!triggers.keys().any(|key| key - .as_str() - .is_some_and(|name| name.contains("pull_request")))); - let steps = stage.get("steps").unwrap().as_sequence().unwrap(); - let text = serde_yaml::to_string(&serde_yaml::Value::Sequence(steps.clone())).unwrap(); + assert!(!triggers.keys().any(|name| name.contains("pull_request"))); + let steps = stage.get("steps").unwrap().as_array().unwrap(); + let text = serde_saphyr::to_string(&serde_json::Value::Array(steps.clone())).unwrap(); assert!(text.contains("_prepare-stage")); assert!(text.contains("_stage-github-draft")); // Stage consumes the exact aggregate artifact, not rebuilt binaries. @@ -2413,28 +2411,28 @@ fn m003c_tag_source_controls_checkout_input_and_stage_guard() { assert_eq!(fetches, frozen); assert!(frozen > 0); assert!(!dispatch.contains("if: github.event_name == 'push' && github.ref_type == 'tag'")); - let parsed: serde_yaml::Value = serde_yaml::from_str(&dispatch).unwrap(); + let parsed: serde_json::Value = serde_saphyr::from_str(&dispatch).unwrap(); assert!(!contains_unsafe_dispatch_expression_in_run(&dispatch)); - let jobs = parsed.get("jobs").unwrap().as_mapping().unwrap(); + let jobs = parsed.get("jobs").unwrap().as_object().unwrap(); { let job_name = "stage"; let steps = jobs - .get(serde_yaml::Value::String(job_name.to_owned())) + .get(job_name) .unwrap() .get("steps") .unwrap() - .as_sequence() + .as_array() .unwrap(); let validation = steps .iter() .find(|step| { - step.get("name").and_then(serde_yaml::Value::as_str) + step.get("name").and_then(serde_json::Value::as_str) == Some("Resolve and validate immutable release source") }) .unwrap(); let script = validation .get("run") - .and_then(serde_yaml::Value::as_str) + .and_then(serde_json::Value::as_str) .unwrap(); assert!(!script.contains("${{")); assert!(script.contains("EGGPACK_RELEASE_TAG")); @@ -2444,19 +2442,19 @@ fn m003c_tag_source_controls_checkout_input_and_stage_guard() { .get("env") .unwrap() .get("EGGPACK_RELEASE_TAG") - .and_then(serde_yaml::Value::as_str), + .and_then(serde_json::Value::as_str), Some("${{ inputs.release_tag }}") ); let checkout = steps .iter() .position(|step| { - step.get("name").and_then(serde_yaml::Value::as_str) == Some("Check out source") + step.get("name").and_then(serde_json::Value::as_str) == Some("Check out source") }) .unwrap(); let validate = steps .iter() .position(|step| { - step.get("name").and_then(serde_yaml::Value::as_str) + step.get("name").and_then(serde_json::Value::as_str) == Some("Resolve and validate immutable release source") }) .unwrap(); @@ -2490,9 +2488,9 @@ fn m003k_tag_resolution_precedes_checkout_and_treats_values_as_data() { ); policy.staging.as_mut().unwrap().tag_source = StagingTagSource::DispatchInput; let yaml = render_release_github(&graph, &policy).unwrap(); - let parsed: serde_yaml::Value = serde_yaml::from_str(&yaml).unwrap(); + let parsed: serde_json::Value = serde_saphyr::from_str(&yaml).unwrap(); assert!(!contains_unsafe_dispatch_expression_in_run(&yaml)); - let exact_preflight = parsed["jobs"]["preflight"]["steps"].as_sequence().unwrap(); + let exact_preflight = parsed["jobs"]["preflight"]["steps"].as_array().unwrap(); assert!( exact_preflight .iter() @@ -2509,10 +2507,10 @@ fn m003k_tag_resolution_precedes_checkout_and_treats_values_as_data() { reusable_policy.triggers = vec![WorkflowTrigger::WorkflowDispatch]; reusable_policy.staging.as_mut().unwrap().environment = Some("release-staging".into()); let reusable = render_reusable_release_github(&contract, &shape, &reusable_policy).unwrap(); - let reusable_yaml: serde_yaml::Value = serde_yaml::from_str(&reusable).unwrap(); + let reusable_yaml: serde_json::Value = serde_saphyr::from_str(&reusable).unwrap(); assert!(!contains_unsafe_dispatch_expression_in_run(&reusable)); let preflight_steps = reusable_yaml["jobs"]["preflight"]["steps"] - .as_sequence() + .as_array() .unwrap(); let resolve_tag = preflight_steps .iter() @@ -2540,7 +2538,7 @@ fn m003k_tag_resolution_precedes_checkout_and_treats_values_as_data() { assert!(reusable.contains("needs.resolve.outputs.source_sha")); assert!(reusable.contains("needs.preflight.outputs.source_sha")); let resolve_steps = reusable_yaml["jobs"]["resolve"]["steps"] - .as_sequence() + .as_array() .unwrap(); let resolve_checkout = resolve_steps .iter() @@ -3328,13 +3326,13 @@ fn m003d_consumer_execution_matrix() { evidence.outcome, ConsumerValidationOutcome::Failed(ConsumerValidationFailure::Timeout) ); - // Output limit fails (script floods stdout, then would exit 0). + // Output limit fails while the flooder is still alive and must be killed. let mut limited = validator.clone(); limited.stdout_limit = 1024; let script = m003d_write_script( &parent, "flood.py", - "import sys\nsys.stdout.write('x' * 100000)\n", + "import sys, time\nsys.stdout.write('x' * 100000)\nsys.stdout.flush()\ntime.sleep(60)\n", ); let evidence = run_consumer_validator(&m003d_request( &limited, &script, &candidate, size, &sha, &work, None, @@ -3665,7 +3663,7 @@ fn m003m_runner_outcome_maps_onto_consumer_validation_outcome() { let script = m003d_write_script( &parent, "flood.py", - "import sys\nsys.stdout.write('x' * 100000)\n", + "import sys, time\nsys.stdout.write('x' * 100000)\nsys.stdout.flush()\ntime.sleep(60)\n", ); let evidence = run_consumer_validator(&m003d_request( &limited, &script, &candidate, size, &sha, &work, None, @@ -4368,8 +4366,8 @@ fn m003d_consumer_render_gates_and_detects_drift() { policy.release_inputs.as_mut().unwrap().consumer_validators = Some("validators/consumer.json".into()); let yaml = render_release_github(&graph, &policy).unwrap(); - let parsed: serde_yaml::Value = serde_yaml::from_str(&yaml).unwrap(); - let jobs = parsed.get("jobs").unwrap().as_mapping().unwrap(); + let parsed: serde_json::Value = serde_saphyr::from_str(&yaml).unwrap(); + let jobs = parsed.get("jobs").unwrap().as_object().unwrap(); // Consumer validation job runs after core qualification. let validate_job = jobs.get("validate_build_x86_64_unknown_linux_gnu").unwrap(); assert_eq!( @@ -4381,21 +4379,21 @@ fn m003d_consumer_render_gates_and_detects_drift() { let gate_needs: Vec<&str> = gate .get("needs") .unwrap() - .as_sequence() + .as_array() .unwrap() .iter() .map(|value| value.as_str().unwrap()) .collect(); assert_eq!(gate_needs, vec!["validate_build_x86_64_unknown_linux_gnu"]); // Validator receives exact handoff bytes; stage stays the writer. - let text = serde_yaml::to_string(&serde_yaml::Value::Mapping(jobs.clone())).unwrap(); + let text = serde_saphyr::to_string(&serde_json::Value::Object(jobs.clone())).unwrap(); assert!(text.contains("_validate-consumer")); assert!(text.contains("--consumer-validators")); assert!(text.contains("--source-root")); assert!(text.contains("eggpack-consumer-evidence-x86_64-unknown-linux-gnu")); let mut writers = Vec::new(); for (name, job) in jobs { - let name = name.as_str().unwrap(); + let name = name.as_str(); let contents = job .get("permissions") .unwrap() @@ -4767,8 +4765,8 @@ fn m003d_reusable_render_is_tag_independent() { } } // Only stage writes; no publication authority. - let parsed: serde_yaml::Value = serde_yaml::from_str(&first).unwrap(); - let jobs = parsed.get("jobs").unwrap().as_mapping().unwrap(); + let parsed: serde_json::Value = serde_saphyr::from_str(&first).unwrap(); + let jobs = parsed.get("jobs").unwrap().as_object().unwrap(); let mut writers = Vec::new(); for (name, job) in jobs { let contents = job @@ -4779,7 +4777,7 @@ fn m003d_reusable_render_is_tag_independent() { .as_str() .unwrap(); if contents == "write" { - writers.push(name.as_str().unwrap().to_owned()); + writers.push(name.as_str().to_owned()); } } assert_eq!(writers, vec!["stage".to_string()]); @@ -4821,7 +4819,7 @@ fn m003i_mapped_workflow_binds_tag_safely_and_preserves_event_mapping() { assert!(workflow.contains("--identity-mode"), "{workflow}"); assert!(workflow.contains("--tag' \"$EGGPACK_RELEASE_TAG\"")); assert!(workflow.contains("--expected-tag")); - let parsed: serde_yaml::Value = serde_yaml::from_str(&workflow).unwrap(); + let parsed: serde_json::Value = serde_saphyr::from_str(&workflow).unwrap(); assert!(parsed.get("on").is_some()); } @@ -5178,7 +5176,7 @@ fn m006_shape_and_policy() -> (DistributionContract, ReleaseWorkflowShapeV1, Git /// neighbouring job. fn job_text(yaml: &str, job: &str) -> String { serde_json::to_string( - serde_yaml::from_str::(yaml) + serde_saphyr::from_str::(yaml) .unwrap() .get("jobs") .and_then(|jobs| jobs.get(job)) @@ -5187,8 +5185,8 @@ fn job_text(yaml: &str, job: &str) -> String { .unwrap() } -fn job_field(yaml: &str, job: &str, field: &str) -> serde_yaml::Value { - serde_yaml::from_str::(yaml) +fn job_field(yaml: &str, job: &str, field: &str) -> serde_json::Value { + serde_saphyr::from_str::(yaml) .unwrap() .get("jobs") .and_then(|jobs| jobs.get(job)) @@ -5206,8 +5204,8 @@ fn job_runs_on(yaml: &str, job: &str) -> String { fn job_needs(yaml: &str, job: &str) -> Vec { match job_field(yaml, job, "needs") { - serde_yaml::Value::String(one) => vec![one], - serde_yaml::Value::Sequence(items) => items + serde_json::Value::String(one) => vec![one], + serde_json::Value::Array(items) => items .iter() .map(|item| item.as_str().expect("needs entry").to_owned()) .collect(), @@ -5360,8 +5358,8 @@ fn m006_eggsact_five_target_matrix_renders_and_checks_without_drift() { assert!(!job_text(&yaml, job).contains("zig"), "{job} cross tools"); } // Least privilege is unchanged by the widened declaration surface. - let parsed: serde_yaml::Value = serde_yaml::from_str(&yaml).unwrap(); - let jobs = parsed.get("jobs").unwrap().as_mapping().unwrap(); + let parsed: serde_json::Value = serde_saphyr::from_str(&yaml).unwrap(); + let jobs = parsed.get("jobs").unwrap().as_object().unwrap(); let mut writers = Vec::new(); for (name, job) in jobs { let contents = job @@ -5372,7 +5370,7 @@ fn m006_eggsact_five_target_matrix_renders_and_checks_without_drift() { .as_str() .unwrap(); if contents == "write" { - writers.push(name.as_str().unwrap().to_owned()); + writers.push(name.as_str().to_owned()); } } assert_eq!(writers, vec!["stage".to_string()]); @@ -5497,12 +5495,12 @@ fn m006_native_qualification_still_fails_closed() { /// Ordered (name, run-or-uses body) steps of one generated job. fn job_step_bodies(yaml: &str, job: &str) -> Vec<(String, String)> { - let value: serde_yaml::Value = serde_yaml::from_str(yaml).unwrap(); + let value: serde_json::Value = serde_saphyr::from_str(yaml).unwrap(); let steps = value .get("jobs") .and_then(|jobs| jobs.get(job)) .and_then(|job| job.get("steps")) - .and_then(|steps| steps.as_sequence()) + .and_then(|steps| steps.as_array()) .unwrap_or_else(|| panic!("missing steps for job: {job}")); steps .iter() @@ -5537,21 +5535,16 @@ fn step_position(steps: &[(String, String)], needle: &str) -> usize { /// M003e general invariant: every generated job step invoking the Eggpack /// CLI is preceded in the same job by the pinned-tool install step. fn assert_tool_before_use(yaml: &str) { - let value: serde_yaml::Value = serde_yaml::from_str(yaml).unwrap(); + let value: serde_json::Value = serde_saphyr::from_str(yaml).unwrap(); let jobs = value .get("jobs") - .and_then(|jobs| jobs.as_mapping()) + .and_then(|jobs| jobs.as_object()) .expect("rendered workflow has no jobs"); for (name, job) in jobs { let steps = job .get("steps") - .and_then(|steps| steps.as_sequence()) - .unwrap_or_else(|| { - panic!( - "job has no steps: {}", - name.as_str().unwrap_or("") - ) - }); + .and_then(|steps| steps.as_array()) + .unwrap_or_else(|| panic!("job has no steps: {}", name.as_str())); let mut installed = false; for step in steps { let step_name = step @@ -5568,7 +5561,7 @@ fn assert_tool_before_use(yaml: &str) { assert!( installed, "job {} invokes the tool without a preceding install", - name.as_str().unwrap_or("") + name.as_str() ); } } @@ -5580,21 +5573,16 @@ fn assert_tool_before_use(yaml: &str) { /// output file is preceded in the same job by the `mkdir -p` of its /// exact output parent. fn assert_mkdir_before_output(yaml: &str) { - let value: serde_yaml::Value = serde_yaml::from_str(yaml).unwrap(); + let value: serde_json::Value = serde_saphyr::from_str(yaml).unwrap(); let jobs = value .get("jobs") - .and_then(|jobs| jobs.as_mapping()) + .and_then(|jobs| jobs.as_object()) .expect("rendered workflow has no jobs"); for (name, job) in jobs { let steps = job .get("steps") - .and_then(|steps| steps.as_sequence()) - .unwrap_or_else(|| { - panic!( - "job has no steps: {}", - name.as_str().unwrap_or("") - ) - }); + .and_then(|steps| steps.as_array()) + .unwrap_or_else(|| panic!("job has no steps: {}", name.as_str())); let mut created: Vec = Vec::new(); for step in steps { if let Some(run) = step.get("run").and_then(|run| run.as_str()) { @@ -5620,7 +5608,7 @@ fn assert_mkdir_before_output(yaml: &str) { created.iter().any(|dir| dir == required || (required.ends_with('/') && dir.starts_with(required))), "job {} writes without a preceding mkdir for {required}", - name.as_str().unwrap_or("") + name.as_str() ); } } diff --git a/crates/eggpack-github/Cargo.toml b/crates/eggpack-github/Cargo.toml index 98e1d3a..d9f3650 100644 --- a/crates/eggpack-github/Cargo.toml +++ b/crates/eggpack-github/Cargo.toml @@ -20,7 +20,7 @@ serde = { version = "1", features = ["derive"] } serde_json = "1" sha2 = "0.10" tokio = { version = "1", features = ["rt", "time", "macros", "net", "io-util"] } -eggfetch-core = { version = "0.2.0", default-features = false, features = ["standard-http1", "tls-rustls", "tls-native-roots", "json"] } +eggfetch-core = { version = "0.3.0", default-features = false, features = ["standard-http1", "tls-rustls", "tls-native-roots", "json"] } bytes = "1" futures-util = "0.3" url = "2" diff --git a/crates/eggpack-github/src/lib.rs b/crates/eggpack-github/src/lib.rs index 47cd8a0..d843605 100644 --- a/crates/eggpack-github/src/lib.rs +++ b/crates/eggpack-github/src/lib.rs @@ -2130,7 +2130,7 @@ pub async fn stage_with_dir( /// Production GitHub transport with fixed hosts. /// -/// Uses `eggfetch-core 0.2.0` with explicit lean features (`standard-http1`, +/// Uses `eggfetch-core 0.3.0` with explicit lean features (`standard-http1`, /// `tls-rustls`, `tls-native-roots`, `json`) rather than the default /// retry/redirect policy. Retries are disabled and redirects are not followed; /// 3xx responses fail closed. Bounded timeouts and body sizes apply to every diff --git a/crates/eggpack-manifest/Cargo.toml b/crates/eggpack-manifest/Cargo.toml index a439a03..9d8ab63 100644 --- a/crates/eggpack-manifest/Cargo.toml +++ b/crates/eggpack-manifest/Cargo.toml @@ -1,9 +1,9 @@ [package] name = "eggpack-manifest" -# ADR-0006 (Option A) narrows the published digest acceptance set, so this -# crate carries its own patch version. The workspace version stays 0.1.0 for -# the other six crates; `^0.1.0` dependents resolve 0.1.1 unchanged. -version = "0.1.1" +# ADR-0006 (Option A) narrowed the published digest acceptance set, so this +# crate carries its own version. 0.1.1 is published; this release prep advances +# the workspace crates to 0.1.1 and prepares this crate at 0.1.2. +version = "0.1.2" edition.workspace = true rust-version.workspace = true license.workspace = true diff --git a/docs/README.md b/docs/README.md index 63c598e..1acc61c 100644 --- a/docs/README.md +++ b/docs/README.md @@ -6,6 +6,8 @@ x86_64 host because it builds and natively qualifies a Linux x86_64 target. - [Quickstart](quickstart.md): create the sample inputs, build and qualify a release, derive its manifest, and check a generated workflow. +- [Release preparation](release-process.md): versioning, verification, and the + release/publication boundary for Eggpack itself. - [Release identity policy](release-identity-policy.md): optionally map `vMAJOR.MINOR.PATCH` tags to unprefixed manifest IDs. diff --git a/docs/quickstart.md b/docs/quickstart.md index 9d7278a..afb1796 100644 --- a/docs/quickstart.md +++ b/docs/quickstart.md @@ -30,7 +30,7 @@ Build the CLI once: ```sh cargo build -p eggpack-cli EGGPACK=./target/debug/eggpack -$EGGPACK --version # eggpack 0.1.0 +$EGGPACK --version # eggpack 0.1.1 ``` ## 1. Create a scratch release repo diff --git a/docs/release-process.md b/docs/release-process.md new file mode 100644 index 0000000..04ca265 --- /dev/null +++ b/docs/release-process.md @@ -0,0 +1,75 @@ +# Preparing an Eggpack release + +This guide covers release preparation for Eggpack itself. A version bump and a +green CI run do **not** create a tag, stage a draft, publish a crate, or publish +a GitHub release. + +## Release units and current candidates + +Eggpack has two independently versioned release units: + +| Unit | Version source | Current candidate | Publication state | +|---|---|---:|---| +| `eggpack` CLI and the six workspace crates that inherit the workspace version | `[workspace.package].version` in the root `Cargo.toml` | `0.1.1` (from `0.1.0`) | The six crates are not published to crates.io. A workspace version bump does not publish them. | +| `eggpack-manifest` | Its explicit `version` in `crates/eggpack-manifest/Cargo.toml` | `0.1.2` (from `0.1.1`) | `0.1.1` is the latest published version. `0.1.2` is only a candidate until separately authorized and published. | + +Only `eggpack-manifest` has been published from this workspace. It has its own +version because its compatibility and publication history is independent of the +CLI/workspace version. The schema remains v1 unless a separately reviewed +compatibility change says otherwise. `eggup-eggpack` has an exact `=0.1.0` +manifest dependency; a registry release does not update that downstream pin, +which is owned and planned in the Eggup repository. + +## Verification before release + +1. Review the exact source diff and release scope. Confirm that the workspace and + manifest versions are intended, that dependent version requirements still + admit those package versions, and that public manifest behavior has been + reviewed for compatibility. +2. Update `Cargo.lock` and current-facing version documentation. Historical + closure records are evidence of past releases and must not be rewritten. +3. Run the canonical local gate from the intended source tree: + + ```sh + scripts/check-local.sh + ``` + + It runs formatting, locked checks and tests, Clippy, docs, dependency trees, + package checks, and Rust 1.89 checks/tests. Its `cargo package --allow-dirty` + invocations are local verification only; they are not release or publication + commands. +4. Require hosted CI on the exact candidate commit. The current workflow checks + Linux stable, Linux 1.89, macOS stable, and Windows stable; the Windows lane + also checks its MSVC environment and focused portability/orchestration tests. + A prior green run on another SHA is not evidence for the candidate commit. +5. Release only from the reviewed, committed source. Resolve release identity + against the committed checkout and exact tag; do not treat uncommitted tree + state as part of the release. + +## Release and publication boundaries + +The repository currently has only `.github/workflows/ci.yml`, which grants +`contents: read`; it does not define a self-release workflow that builds and +publishes Eggpack CLI assets. The reusable/generated workflows described by the +quickstart are for product repositories, not a configured Eggpack self-release. + +When configured for a product, Eggpack's optional staging path requires an +already-existing exact tag and can create or reconcile a **draft** only. It does +not create or move tags, publish a release, or overwrite immutable assets. A +human must separately review and publish any draft. + +A crates.io publication of `eggpack-manifest` is also a separate, explicit +human-controlled action with its own package-source, compatibility, and +post-publication evidence requirements. Use the completed `eggpack-manifest` +0.1.1 M004 plan and closure as the precedent; do not infer or run a publication +command from this preparation guide. Never use `--allow-dirty` for publication. + +For this preparation, no tag was created, no draft was staged, no package was +published, and no GitHub release was created. + +## References + +- [Quickstart](quickstart.md) — verified local producer and workflow-generation walkthrough. +- [Release identity policy](release-identity-policy.md) — accepted `vMAJOR.MINOR.PATCH` mapping. +- [Local verification gate](../scripts/check-local.sh) and [hosted CI](../.github/workflows/ci.yml). +- [Draft staging boundary](../architecture/github.md) and [manifest compatibility record](../plans/closure/release-manifest/004-status.md). From d80e5fe75fc42ba14ee281880ce51cb50daa7810 Mon Sep 17 00:00:00 2001 From: CI Test Date: Wed, 18 Nov 2026 15:05:50 +0000 Subject: [PATCH 2/5] docs: record eggpack-manifest 0.1.2 release --- .../contract-and-manifest-surface/SKILL.md | 16 +++++---- .skills/pre-submit-gate/SKILL.md | 16 ++++----- architecture/manifest.md | 21 ++++++------ docs/release-process.md | 33 +++++++++++++------ 4 files changed, 52 insertions(+), 34 deletions(-) diff --git a/.skills/contract-and-manifest-surface/SKILL.md b/.skills/contract-and-manifest-surface/SKILL.md index ccfcf9d..eda6231 100644 --- a/.skills/contract-and-manifest-surface/SKILL.md +++ b/.skills/contract-and-manifest-surface/SKILL.md @@ -39,12 +39,16 @@ So "it's optional, so it's safe" is false here. A shape change to the published manifest is a compatibility event, not a convenience. It needs a plan, an ADR if it establishes a public compatibility contract, and downstream coordination. -`eggpack-manifest 0.1.1` is the latest version published on crates.io; `0.1.0` -remains published and resolvable. This tree prepares `0.1.2`, which is not -published by this change. The published `0.1.1` carries two narrowings of the -acceptance set — the ADR-0006 all-zeros digest refusal and the document bound -that `ReleaseManifest::validate` now measures — and both are recorded as -compatibility events in `plans/closure/release-manifest/004-status.md`. +`eggpack-manifest 0.1.2` is the latest version published on crates.io; +`0.1.0` and `0.1.1` remain published and resolvable. Version `0.1.2` was +published from source commit `d924a44bb6cd640998f197be7c2eb723cc891cbd`, with +checksum `4bbbe8d12026adf7c8e8ddaecbed0c6ac403a5621d4dd1ac9949f8daf8149a09` +and tag `eggpack-manifest-v0.1.2`. It adds no runtime or public API change; the +crate delta is version/package metadata and a test comment. The published +`0.1.1` carries two narrowings of the acceptance set — the ADR-0006 all-zeros +digest refusal and the document bound that `ReleaseManifest::validate` now +measures — and both are recorded as compatibility events in +`plans/closure/release-manifest/004-status.md`. `eggup-eggpack` consumes `=0.1.0` and is the named affected consumer; it pins an exact version, so it does not pick up later patches automatically, and its bump needs a plan registered in the Eggup repository. The other six workspace crates diff --git a/.skills/pre-submit-gate/SKILL.md b/.skills/pre-submit-gate/SKILL.md index f6eef86..30786cf 100644 --- a/.skills/pre-submit-gate/SKILL.md +++ b/.skills/pre-submit-gate/SKILL.md @@ -51,10 +51,10 @@ dependency or version drift silently rewrites `Cargo.lock` and you find out at ## `cargo package` needs the patch flags — copy them, do not invent them -`eggpack-contract` is unpublished. The latest published `eggpack-manifest` is -`0.1.1`; this tree prepares `0.1.2`, which remains unpublished until a separate -authorized release. Package checks patch both to local paths so dependent crates -are validated against the current workspace sources: +`eggpack-contract` remains unpublished. `eggpack-manifest 0.1.2` is the +latest published version and is the version carried by this tree. Package checks +patch both to local paths so dependent crates are validated against the current +workspace sources: ```bash cargo package -p eggpack-ci --locked --allow-dirty \ @@ -68,10 +68,10 @@ cargo package -p eggpack-ci --locked --allow-dirty \ The set is exactly the transitive in-workspace dependency closure of the crate being packaged. The authoritative copy for all seven is `scripts/check-local.sh` — read it rather than reconstructing it. **Never bare `cargo publish`**: -`eggpack-manifest` is the only crate published from this workspace; `0.1.1` is -the latest published version and the `0.1.2` in this tree is only a candidate. -Publication is a deliberate milestone, and `--allow-dirty` on `package` is for -local verification only. +`eggpack-manifest` is the only crate published from this workspace; `0.1.2` is +the latest published version. The six workspace crates inheriting the workspace +version remain unpublished. Publication is a deliberate milestone, and +`--allow-dirty` on `package` is for local verification only. `--allow-dirty` is safe *here* because packaging is a local verification step and publishing is a separate human action. Do not carry that flag into a release. diff --git a/architecture/manifest.md b/architecture/manifest.md index 17c6693..db705bd 100644 --- a/architecture/manifest.md +++ b/architecture/manifest.md @@ -293,17 +293,18 @@ Two consequences are load-bearing for a downstream consumer: - **The published crate takes a patch release.** At M004, `crates/eggpack-manifest/Cargo.toml` carried `version = "0.1.1"`, while the workspace version was `0.1.0` for the other six crates; `^0.1.0` dependents - resolved `0.1.1` unchanged. The current release preparation advances the - workspace version to `0.1.1` and prepares the independently versioned manifest - crate at `0.1.2`; that candidate is not published. **`0.1.1` is published** — - crates.io, checksum - `352c3e327159615b763298e911e239f1decc4a2c9e28c28be8ddd28e50515e37`, not + resolved `0.1.1` unchanged. The current release advanced the workspace version + to `0.1.1` and published the independently versioned manifest crate at + `0.1.2`. **`0.1.2` is published** — crates.io, checksum + `4bbbe8d12026adf7c8e8ddaecbed0c6ac403a5621d4dd1ac9949f8daf8149a09`, not yanked, from publication source commit - `4ce4fb850ffa0e141f1a807b60c150173507a92b`, tagged - `eggpack-manifest-v0.1.1`. `0.1.0` remains published and resolvable. - Release Manifest M004 owns the publication and the compatibility record for - both narrowings; its closure record is - `plans/closure/release-manifest/004-status.md`. + `d924a44bb6cd640998f197be7c2eb723cc891cbd`, tagged + `eggpack-manifest-v0.1.2`; hosted run `44322496383` passed all four lanes. + Relative to `0.1.1`, the crate diff contains only version/package metadata and + a test comment; its runtime implementation and public API are unchanged. + `0.1.0` and `0.1.1` remain published and resolvable. Release Manifest M004 + owns the `0.1.1` publication and the compatibility record for both narrowings; + its closure record is `plans/closure/release-manifest/004-status.md`. **`eggup-eggpack` is the affected downstream consumer.** It consumes registry `eggpack-manifest =0.1.0` and must be given the `0.1.1` patch release and told diff --git a/docs/release-process.md b/docs/release-process.md index 04ca265..6626d60 100644 --- a/docs/release-process.md +++ b/docs/release-process.md @@ -8,10 +8,10 @@ a GitHub release. Eggpack has two independently versioned release units: -| Unit | Version source | Current candidate | Publication state | +| Unit | Version source | Version in this tree | Publication state | |---|---|---:|---| -| `eggpack` CLI and the six workspace crates that inherit the workspace version | `[workspace.package].version` in the root `Cargo.toml` | `0.1.1` (from `0.1.0`) | The six crates are not published to crates.io. A workspace version bump does not publish them. | -| `eggpack-manifest` | Its explicit `version` in `crates/eggpack-manifest/Cargo.toml` | `0.1.2` (from `0.1.1`) | `0.1.1` is the latest published version. `0.1.2` is only a candidate until separately authorized and published. | +| The six workspace crates inheriting the workspace version, including `eggpack-cli` | `[workspace.package].version` in the root `Cargo.toml` | `0.1.1` (from `0.1.0`) | The six crates remain unpublished to crates.io; a workspace version bump does not publish them or produce a CLI artifact release. | +| `eggpack-manifest` | Its explicit `version` in `crates/eggpack-manifest/Cargo.toml` | `0.1.2` (from `0.1.1`) | Published 2026-11-18; release identity and verification evidence are below. | Only `eggpack-manifest` has been published from this workspace. It has its own version because its compatibility and publication history is independent of the @@ -58,14 +58,27 @@ already-existing exact tag and can create or reconcile a **draft** only. It does not create or move tags, publish a release, or overwrite immutable assets. A human must separately review and publish any draft. -A crates.io publication of `eggpack-manifest` is also a separate, explicit -human-controlled action with its own package-source, compatibility, and +A crates.io publication of `eggpack-manifest` is a separate, explicit +human-controlled action with package-source, compatibility, and post-publication evidence requirements. Use the completed `eggpack-manifest` -0.1.1 M004 plan and closure as the precedent; do not infer or run a publication -command from this preparation guide. Never use `--allow-dirty` for publication. - -For this preparation, no tag was created, no draft was staged, no package was -published, and no GitHub release was created. +0.1.1 M004 plan and closure as the precedent, and never use `--allow-dirty` +for publication. + +The `eggpack-manifest 0.1.2` publication completed on 2026-11-18 from source +commit `d924a44bb6cd640998f197be7c2eb723cc891cbd`. Hosted CI run +[44322496383](https://github.com/eggstack/eggpack/actions/runs/44322496383) +passed all four lanes on that commit. `cargo package -p eggpack-manifest +--locked` and `cargo publish -p eggpack-manifest --locked --dry-run` passed from +the clean tree. Crates.io reports `0.1.2` as non-yanked with checksum +`4bbbe8d12026adf7c8e8ddaecbed0c6ac403a5621d4dd1ac9949f8daf8149a09`; the +annotated tag `eggpack-manifest-v0.1.2` points at the same source commit. An +external consumer pinned to `=0.1.2` resolved the registry checksum and passed +a schema-v1 JSON parse/round-trip smoke test. Relative to `0.1.1`, the crate +change is version/package metadata and a test comment only; the runtime +implementation and public API are unchanged. + +No GitHub draft or GitHub release was created, and no CLI/workspace crate or +CLI artifact was published. ## References From 17bb2b1b0b791c2d259c295bf783acd84edbdd04 Mon Sep 17 00:00:00 2001 From: CI Test Date: Sat, 21 Nov 2026 06:53:46 +0000 Subject: [PATCH 3/5] chore: upgrade eggfetch-core to 0.4.0 --- Cargo.lock | 4 ++-- architecture/github.md | 4 ++-- architecture/overview.md | 2 +- crates/eggpack-github/Cargo.toml | 2 +- crates/eggpack-github/src/lib.rs | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index a46c9c7..ac531fd 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -175,9 +175,9 @@ dependencies = [ [[package]] name = "eggfetch-core" -version = "0.3.0" +version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c22bdfc6ab683ddf5d5fcf0321b60dfc86c0ec1311284a33c31f536d12c1d2ae" +checksum = "db5ee3c2312c08942874fbc4b44d91c4ef674f19fb5e9d6edd1281c94225f65e" dependencies = [ "bytes", "futures-core", diff --git a/architecture/github.md b/architecture/github.md index 450b98a..3b56dc2 100644 --- a/architecture/github.md +++ b/architecture/github.md @@ -78,7 +78,7 @@ draft to published. | `RemoteRelease` | `1635` | Release summary including `draft`, `immutable`, `upload_url`. | | `RemoteAsset` | `1656` | `{ id, name, size, state, digest }`; `digest` is `Option` shaped `sha256:`. | | `trait GithubApi` | `1674` | The provider seam (`1669-1734`). | -| `EggfetchTransport` | `2264` | Production transport over `eggfetch-core 0.3.0`; `impl GithubApi` at `2395-2627`. | +| `EggfetchTransport` | `2138` | Production transport over `eggfetch-core 0.4.0`; `impl GithubApi for EggfetchTransport` at `2269`. | | `FixtureGithub` | `2661` | In-memory double; `impl GithubApi` at `2824-3022`. | | `fixture_release` / `fixture_asset` | `2786` / `2808` | Constructors for fixture records. | @@ -439,7 +439,7 @@ Dependencies (`crates/eggpack-github/Cargo.toml:14-26`): `eggpack-contract` (layout authority — `DistributionContract`, `ExpandedAssets`), `eggpack-manifest` (`ReleaseManifest`), `eggpack-core` (finalized-release types), `eggpack-bootstrap` (installer rendering), plus `serde` / `serde_json`, -`sha2`, `tokio` (`rt,time,macros,net,io-util`), `eggfetch-core 0.3.0` with +`sha2`, `tokio` (`rt,time,macros,net,io-util`), `eggfetch-core 0.4.0` with `default-features = false` and features `standard-http1`, `tls-rustls`, `tls-native-roots`, `json`, `bytes`, `futures-util`, and `url`. Dev-only: `tokio` with `rt-multi-thread`. diff --git a/architecture/overview.md b/architecture/overview.md index 92f8a36..a1d7ad4 100644 --- a/architecture/overview.md +++ b/architecture/overview.md @@ -380,7 +380,7 @@ runtime identity contract (`ReleaseWorkflowShapeV1`, the in-memory GitHub double `FixtureGithub` and its fault injectors live in `src/lib.rs`, **not** in `tests.rs`, and are not test-gated — they ship in the crate's public API. Depends on `contract`, -`manifest`, `core`, and `bootstrap`; adds `tokio` + `eggfetch-core 0.3.0` for +`manifest`, `core`, and `bootstrap`; adds `tokio` + `eggfetch-core 0.4.0` for HTTP. Materializes a local `StagingPayloadV1` from a finalized release (`prepare_staging_payload`, `prepare_staging_payload_with_presentation`) and reconciles it into a **draft** through the `GithubApi` trait diff --git a/crates/eggpack-github/Cargo.toml b/crates/eggpack-github/Cargo.toml index d9f3650..e534845 100644 --- a/crates/eggpack-github/Cargo.toml +++ b/crates/eggpack-github/Cargo.toml @@ -20,7 +20,7 @@ serde = { version = "1", features = ["derive"] } serde_json = "1" sha2 = "0.10" tokio = { version = "1", features = ["rt", "time", "macros", "net", "io-util"] } -eggfetch-core = { version = "0.3.0", default-features = false, features = ["standard-http1", "tls-rustls", "tls-native-roots", "json"] } +eggfetch-core = { version = "0.4.0", default-features = false, features = ["standard-http1", "tls-rustls", "tls-native-roots", "json"] } bytes = "1" futures-util = "0.3" url = "2" diff --git a/crates/eggpack-github/src/lib.rs b/crates/eggpack-github/src/lib.rs index d843605..726c1be 100644 --- a/crates/eggpack-github/src/lib.rs +++ b/crates/eggpack-github/src/lib.rs @@ -2130,7 +2130,7 @@ pub async fn stage_with_dir( /// Production GitHub transport with fixed hosts. /// -/// Uses `eggfetch-core 0.3.0` with explicit lean features (`standard-http1`, +/// Uses `eggfetch-core 0.4.0` with explicit lean features (`standard-http1`, /// `tls-rustls`, `tls-native-roots`, `json`) rather than the default /// retry/redirect policy. Retries are disabled and redirects are not followed; /// 3xx responses fail closed. Bounded timeouts and body sizes apply to every From eef4f9d0be4014dc0e76489de3f8fe9aedacadb9 Mon Sep 17 00:00:00 2001 From: CI Test Date: Sat, 21 Nov 2026 16:31:38 +0000 Subject: [PATCH 4/5] chore: bump workspace crates to 0.1.2 --- AGENTS.md | 2 +- Cargo.lock | 12 +++++------ Cargo.toml | 2 +- architecture/manifest.md | 8 ++++--- architecture/overview.md | 22 ++++++++++---------- crates/eggpack-manifest/Cargo.toml | 5 +++-- docs/quickstart.md | 2 +- docs/release-process.md | 8 ++++--- plans/registry.md | 2 +- plans/subsystems/release-manifest-roadmap.md | 6 ++++++ 10 files changed, 40 insertions(+), 29 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index d796c3d..e9718bc 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -89,4 +89,4 @@ Read the index in `overview.md` and follow one link. Grouped by what they cover: ## Planning conventions - Closure discipline: `plans/closure//NNN-status.md`. Compilation ≠ closure. History never rewritten — correctives are new `NNNa` plans; superseded material goes to `plans/archive/`. -- Current handoff (source: `plans/registry.md`): CI/Release M003pa is **closed** under `plans/implementation/ci-release-orchestration/003pa-process-group-signal-recheck-corrective.md`; closure `plans/closure/ci-release-orchestration/003pa-status.md` records implementation `329a3dfdb166580de4770b2c6b2f046358983003` and hosted run `44118309795` green on all four lanes; no implementation milestone is **active** and none is registered **ready**; the next action is plan authoring, not implementation; the last open obligation of the 2026-10-23 review chain — Release Manifest M004, the ADR-0006 `eggpack-manifest 0.1.1` patch release and the compatibility record ADR-0006 §5.4 requires — is **closed**: `0.1.1` is published to crates.io (checksum `352c3e327159615b763298e911e239f1decc4a2c9e28c28be8ddd28e50515e37`, tagged `eggpack-manifest-v0.1.1`), and both narrowings the package carries — the ADR-0006 digest rule and the `3ef806f` document bound — are recorded as compatibility events. The 2026-10-23 post-implementation review chain is closed (Build/Qualification M007, M008, M009; CI/Release M003l, M003m, M003n; Planning Hygiene M003; Bootstrap M003a), and **ADR-0006 is accepted** (Option A), having gated CI M003l's digest-acceptance work package only. A follow-up review of that chain's own output registered and closed a second corrective chain: Build/Qualification M007a (digest zero-length read refusal), M008a (floor contradiction mask and ELF offset overflow), M009a (local producer operator defects, including an input-destroying staging path), and CI/Release M003o (renderer panic and digest diagnostics). **The chain's first hosted CI run failed on macOS and registered a third corrective, CI/Release M003p**: the shared bounded runner treated a failed process-group signal as fatal, but macOS refuses to signal a group holding the unreaped zombie of an exited child and reports `EPERM` where Linux signals it successfully, so an output-bound violation was reported as a launch failure. M003p decides by observing whether the child has exited rather than by reading the errno, and hosted run `40263176191` is green on all four lanes. A later review found that this does not prove the whole group is empty; M003pa is active to retry after reaping the leader and accept only a successful retry or `ESRCH`, keeping every other case fail-closed. Both review chains left one obligation open — ADR-0006 §5.2/§9's `eggpack-manifest 0.1.1` publication and the release-manifest compatibility record — and M004 owns it; the `0.1.1` package carries **two** narrowings of the published acceptance set, the ADR-0006 digest rule and the `3ef806f` document bound, and only the first had been recorded. **Blocked** are Ecosystem M004 (Gregg sibling bundle), Ecosystem M005 (CodeGG runfile bundle), and Ecosystem M006 (Egress archive pair), each on its named adoption evidence and bundle/archive review; the provenance/authenticity line is **planned** pending a dedicated trust ADR, and Python/wheel adapters are **planned** behind broader native adoption. Contract M003, Bootstrap M003, and Ecosystem M003a/M003b are closed, so the contract-conformance and bootstrap-installers subsystems have no open work. The next Eggpack line is whatever the registry lists as `ready`; if that table is empty, the next action is plan authoring, not implementation. +- Current handoff (source: `plans/registry.md`): CI/Release M003pa is **closed** under `plans/implementation/ci-release-orchestration/003pa-process-group-signal-recheck-corrective.md`; closure `plans/closure/ci-release-orchestration/003pa-status.md` records implementation `329a3dfdb166580de4770b2c6b2f046358983003` and hosted run `44118309795` green on all four lanes; no implementation milestone is **active** and none is registered **ready**; the next action is plan authoring, not implementation; Release Manifest M004's ADR-0006 publication and compatibility-record obligation is closed (the `eggpack-manifest 0.1.1` event remains historical); the 2026-10-23 review chain and follow-up corrective chains, including CI/Release M003pa, are closed under their closure records. The latest published manifest is `eggpack-manifest 0.1.2`; the six workspace crates now carry source version `0.1.2` but remain unpublished, and matching version numbers do not merge their release identities (see `docs/release-process.md`). **Blocked** are Ecosystem M004 (Gregg sibling bundle), Ecosystem M005 (CodeGG runfile bundle), and Ecosystem M006 (Egress archive pair), each on its named adoption evidence and bundle/archive review; the provenance/authenticity line is **planned** pending a dedicated trust ADR, and Python/wheel adapters are **planned** behind broader native adoption. Contract M003, Bootstrap M003, and Ecosystem M003a/M003b are closed, so the contract-conformance and bootstrap-installers subsystems have no open work. The next Eggpack line is whatever the registry lists as `ready`; if that table is empty, the next action is plan authoring, not implementation. diff --git a/Cargo.lock b/Cargo.lock index ac531fd..6737083 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -205,7 +205,7 @@ dependencies = [ [[package]] name = "eggpack-bootstrap" -version = "0.1.1" +version = "0.1.2" dependencies = [ "eggpack-contract", "eggpack-manifest", @@ -219,7 +219,7 @@ dependencies = [ [[package]] name = "eggpack-ci" -version = "0.1.1" +version = "0.1.2" dependencies = [ "eggpack-bootstrap", "eggpack-contract", @@ -235,7 +235,7 @@ dependencies = [ [[package]] name = "eggpack-cli" -version = "0.1.1" +version = "0.1.2" dependencies = [ "eggpack-bootstrap", "eggpack-ci", @@ -253,7 +253,7 @@ dependencies = [ [[package]] name = "eggpack-contract" -version = "0.1.1" +version = "0.1.2" dependencies = [ "serde", "toml", @@ -261,7 +261,7 @@ dependencies = [ [[package]] name = "eggpack-core" -version = "0.1.1" +version = "0.1.2" dependencies = [ "command-group", "eggpack-contract", @@ -277,7 +277,7 @@ dependencies = [ [[package]] name = "eggpack-github" -version = "0.1.1" +version = "0.1.2" dependencies = [ "bytes", "eggfetch-core", diff --git a/Cargo.toml b/Cargo.toml index 73c9d31..b0a3149 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ resolver = "2" members = ["crates/eggpack-contract", "crates/eggpack-manifest", "crates/eggpack-core", "crates/eggpack-bootstrap", "crates/eggpack-ci", "crates/eggpack-github", "crates/eggpack-cli"] [workspace.package] -version = "0.1.1" +version = "0.1.2" edition = "2021" rust-version = "1.89" license = "MIT" diff --git a/architecture/manifest.md b/architecture/manifest.md index db705bd..83d509d 100644 --- a/architecture/manifest.md +++ b/architecture/manifest.md @@ -293,9 +293,11 @@ Two consequences are load-bearing for a downstream consumer: - **The published crate takes a patch release.** At M004, `crates/eggpack-manifest/Cargo.toml` carried `version = "0.1.1"`, while the workspace version was `0.1.0` for the other six crates; `^0.1.0` dependents - resolved `0.1.1` unchanged. The current release advanced the workspace version - to `0.1.1` and published the independently versioned manifest crate at - `0.1.2`. **`0.1.2` is published** — crates.io, checksum + resolved `0.1.1` unchanged. The subsequent manifest-only release advanced its + explicit version to `0.1.2`, which remains the latest published manifest + version. The current workspace source also carries version `0.1.2` for its six + crates, but those packages remain unpublished; matching numbers are distinct + release units. **`0.1.2` is published** — crates.io, checksum `4bbbe8d12026adf7c8e8ddaecbed0c6ac403a5621d4dd1ac9949f8daf8149a09`, not yanked, from publication source commit `d924a44bb6cd640998f197be7c2eb723cc891cbd`, tagged diff --git a/architecture/overview.md b/architecture/overview.md index a1d7ad4..12c898c 100644 --- a/architecture/overview.md +++ b/architecture/overview.md @@ -288,17 +288,17 @@ redefine a layout name; downstream crates reference these types instead. ### `eggpack-manifest` — final-bytes evidence document Single `src/lib.rs`. Leaf parser/serializer with no I/O (`serde` + `serde_json` -only), and the only crate here that is published for third-party consumption -(`eggpack-manifest 0.1.0` on crates.io, consumed by `eggup-eggpack`). The -published crate took a `0.1.1` patch release carrying the ADR-0006 -all-zeros refusal, published from -`4ce4fb850ffa0e141f1a807b60c150173507a92b` and tagged -`eggpack-manifest-v0.1.1` under Release Manifest M004. That patch carries **two** -narrowings of the published crate's acceptance set: the ADR-0006 digest rule -and the document bound that `ReleaseManifest::validate` now measures, so a -manifest whose canonical encoding exceeds `MAX_DOCUMENT_BYTES` is refused -where `0.1.0` accepted and serialized it. Owns -`ReleaseManifest` plus `TargetRecord`, `ArtifactForm`, `ArtifactRecord`, +only), and the only crate here published for third-party consumption +(`eggpack-manifest 0.1.2` on crates.io, consumed by `eggup-eggpack`). Its `0.1.1` +release under M004 carried the ADR-0006 all-zeros digest refusal and the separate +document-bound narrowing: manifests whose canonical encoding exceeds +`MAX_DOCUMENT_BYTES` are refused where `0.1.0` accepted and serialized them. +The latest published manifest version is `0.1.2`; that release changed package +metadata and a test comment only, with no runtime or public API change. The six +workspace crates now carry source version `0.1.2` independently and remain +unpublished. Exact release evidence is in +[the release guide](../docs/release-process.md). +It owns `ReleaseManifest` plus `TargetRecord`, `ArtifactForm`, `ArtifactRecord`, `BundleRecord`, `ArchiveMemberRecord`, and `ByteEvidence`, with hard bounds `MAX_DOCUMENT_BYTES`, `MAX_TARGETS`, `MAX_RECORDS`, and `MAX_EVIDENCE_REFERENCES`. It describes **final bytes only** — never intent, diff --git a/crates/eggpack-manifest/Cargo.toml b/crates/eggpack-manifest/Cargo.toml index 9d8ab63..830a01f 100644 --- a/crates/eggpack-manifest/Cargo.toml +++ b/crates/eggpack-manifest/Cargo.toml @@ -1,8 +1,9 @@ [package] name = "eggpack-manifest" # ADR-0006 (Option A) narrowed the published digest acceptance set, so this -# crate carries its own version. 0.1.1 is published; this release prep advances -# the workspace crates to 0.1.1 and prepares this crate at 0.1.2. +# crate carries a version independent of the workspace crates. 0.1.2 is the +# latest published manifest version; the workspace crates are separately at +# 0.1.2 in source and remain unpublished. version = "0.1.2" edition.workspace = true rust-version.workspace = true diff --git a/docs/quickstart.md b/docs/quickstart.md index afb1796..38a9dd9 100644 --- a/docs/quickstart.md +++ b/docs/quickstart.md @@ -30,7 +30,7 @@ Build the CLI once: ```sh cargo build -p eggpack-cli EGGPACK=./target/debug/eggpack -$EGGPACK --version # eggpack 0.1.1 +$EGGPACK --version # eggpack 0.1.2 ``` ## 1. Create a scratch release repo diff --git a/docs/release-process.md b/docs/release-process.md index 6626d60..2e02b68 100644 --- a/docs/release-process.md +++ b/docs/release-process.md @@ -10,13 +10,15 @@ Eggpack has two independently versioned release units: | Unit | Version source | Version in this tree | Publication state | |---|---|---:|---| -| The six workspace crates inheriting the workspace version, including `eggpack-cli` | `[workspace.package].version` in the root `Cargo.toml` | `0.1.1` (from `0.1.0`) | The six crates remain unpublished to crates.io; a workspace version bump does not publish them or produce a CLI artifact release. | +| The six workspace crates inheriting the workspace version, including `eggpack-cli` | `[workspace.package].version` in the root `Cargo.toml` | `0.1.2` (from `0.1.1`) | The six crates remain unpublished to crates.io; a workspace version bump does not publish them or produce a CLI artifact release. | | `eggpack-manifest` | Its explicit `version` in `crates/eggpack-manifest/Cargo.toml` | `0.1.2` (from `0.1.1`) | Published 2026-11-18; release identity and verification evidence are below. | Only `eggpack-manifest` has been published from this workspace. It has its own version because its compatibility and publication history is independent of the -CLI/workspace version. The schema remains v1 unless a separately reviewed -compatibility change says otherwise. `eggup-eggpack` has an exact `=0.1.0` +CLI/workspace version. The two release units currently both carry version `0.1.2`; +that matching number does not merge their release identities or publication +states. The schema remains v1 unless a separately reviewed compatibility change +says otherwise. `eggup-eggpack` has an exact `=0.1.0` manifest dependency; a registry release does not update that downstream pin, which is owned and planned in the Eggup repository. diff --git a/plans/registry.md b/plans/registry.md index 3cf73a7..8c06981 100644 --- a/plans/registry.md +++ b/plans/registry.md @@ -94,7 +94,7 @@ Distribution predecessor evidence: |---|---|---|---|---| | Contract and conformance | **complete** | `plans/subsystems/contract-conformance-roadmap.md` | M001-M003 closed | M003 closed on `43fa2d7`; closure `plans/closure/contract-conformance/003-status.md`: additive local `eggpack contract expand` scalar projection over existing schema-v1 semantics, 18 new tests including a process-boundary stdout contract, parity proven against eggsact `d4e6e5c` and stegoeggo `v0.5.0` for every target/alias/field. Roadmap §11 completion definition fully met; no contract milestone remains registered | | External backend evaluation | closed | `plans/subsystems/external-backend-evaluation-roadmap.md` | M001 closed (C) | no production backend adopted; new evidence/plan required to reopen | -| Release manifest | complete | `plans/subsystems/release-manifest-roadmap.md` | M001-M004 closed | M004 published the ADR-0006 `eggpack-manifest 0.1.1` patch release and wrote the compatibility record ADR-0006 §5.4 requires: crates.io, checksum `352c3e327159615b763298e911e239f1decc4a2c9e28c28be8ddd28e50515e37`, not yanked, from publication source commit `4ce4fb850ffa0e141f1a807b60c150173507a92b`, tagged `eggpack-manifest-v0.1.1`; hosted run `40263953007` green on all four lanes. Both narrowings of the published acceptance set — the ADR-0006 digest rule and the `3ef806f` document bound — are recorded as compatibility events. `0.1.0` remains published and resolvable. `eggup-eggpack` pins `=0.1.0` and is the named affected consumer; its bump is consumer-owned. M003 and M003a remain closed and no runtime/package requalification was performed or implied | +| Release manifest | complete | `plans/subsystems/release-manifest-roadmap.md` | M001-M004 closed | M004 published the ADR-0006 `eggpack-manifest 0.1.1` patch release and wrote the compatibility record ADR-0006 §5.4 requires: crates.io, checksum `352c3e327159615b763298e911e239f1decc4a2c9e28c28be8ddd28e50515e37`, not yanked, from publication source commit `4ce4fb850ffa0e141f1a807b60c150173507a92b`, tagged `eggpack-manifest-v0.1.1`; hosted run `40263953007` green on all four lanes. Both narrowings of the published acceptance set — the ADR-0006 digest rule and the `3ef806f` document bound — are recorded as compatibility events. `0.1.0` and `0.1.1` remain published; `0.1.2` is the latest published manifest version (see `docs/release-process.md`). In the current source tree, the six workspace crates also carry version `0.1.2` but remain unpublished; these are separate release units despite matching version numbers. `eggup-eggpack` pins `=0.1.0` and is the named affected consumer; its bump is consumer-owned. M003 and M003a remain closed and no runtime/package requalification was performed or implied | | Build and qualification | complete | `plans/subsystems/build-qualification-roadmap.md` | M001-M009a closed | M009 closed on `eb77d19` + `8950eb9`: six of the nine operator commands the canonical specification names now exist (`check`, `plan`, `package`, `qualify`, `collect`, `manifest`). The new commands and the `ci _*` runners call the same core functions and the same serialization helpers, and the byte-identity between them is proven by test; `eggpack-core` needed no change, which is the strongest evidence that the new surface is thin wiring rather than a second pipeline. M008 closed on `7e7cb6a`: a declared compatibility floor is no longer silently dropped — every target declaring one carries a finite, closed floor verification status on both the `ReleasePlan` and the `QualificationEvidence`, computed by bounded independent ELF `GLIBC_x.y` inspection. M007 closed on `e3c6192`: one canonical bounded file-digest authority in `eggpack-core`, retiring core's three divergent digest implementations | | Bootstrap installers | complete | `plans/subsystems/bootstrap-installers-roadmap.md` | all Eggpack milestones closed | M002b implementation `88ddf2e`, hosted run `37806244313`; POSIX runtime remains on Unix and Windows PowerShell archive runtime passed. M003 completion definition remains satisfied. M003a closed on the ADR-0006 digest-fixture correction: five bootstrap fixtures used the all-zeros digest as a "wrong digest" placeholder, and CI M003l's tightened acceptance rule made that value illegal at manifest validation, so three tests aborted at setup and the installers' digest-mismatch coverage was silently not running | | CI/release orchestration | complete | `plans/subsystems/ci-release-orchestration-roadmap.md` | M003pa closed; no milestone ready | M003k is closed at `plans/closure/ci-release-orchestration/003k-status.md`; M003p is closed at `plans/closure/ci-release-orchestration/003p-status.md`. M003pa is closed at `plans/closure/ci-release-orchestration/003pa-status.md` (implementation `329a3dfdb166580de4770b2c6b2f046358983003`; hosted run `44118309795` passed all four lanes on that exact SHA), correcting M003p by re-signalling after leader reaping and accepting only retry success or `ESRCH`. M003n is closed at `plans/closure/ci-release-orchestration/003n-status.md`: one drift comparison replaces three byte-identical copies, one staging-payload builder replaces two copies that were 85.5% identical, the 845-line `render_release_github_inner` is decomposed, and the CI crate's single 12,221-line source file became a 14-file module tree with a byte-identical public API and byte-identical rendered output. M003m closed on `bd73f5c` (cherry-picked `6a7cb4c`): the CI crate's consumer-validator execution now routes through the workspace's single bounded runner, which terminates the whole process group and bounds its reader-thread joins; the CI-local runner, its bounded readers, and its unbounded drain are deleted, and the CI production region contains no process-spawning code at all. M003l closed on `9cf0bf8` under accepted ADR-0006 (Option A): one SHA-256 hex acceptance rule, one host/target match rule, one floor-applicability rule, one exact-tag safety rule, and one file-digest authority | diff --git a/plans/subsystems/release-manifest-roadmap.md b/plans/subsystems/release-manifest-roadmap.md index 8071cea..d4559c3 100644 --- a/plans/subsystems/release-manifest-roadmap.md +++ b/plans/subsystems/release-manifest-roadmap.md @@ -73,6 +73,12 @@ Post-publication downstream review confirmed that Eggup consumed this handoff an One further Release Manifest implementation **was** implied, and it was missing from this roadmap until M004 was registered: ADR-0006 accepted on 2026-10-23 obliges the published crate to take a `0.1.1` patch release, and no plan or closure record tracked that obligation. M004 owned that publication and the compatibility record ADR-0006 §5.4 requires, and it closed on 2026-10-26: `eggpack-manifest 0.1.1` is published, checksum `352c3e327159615b763298e911e239f1decc4a2c9e28c28be8ddd28e50515e37`, from publication source commit `4ce4fb850ffa0e141f1a807b60c150173507a92b`, tagged `eggpack-manifest-v0.1.1`. `0.1.0` remains published and resolvable. No further Release Manifest implementation is implied. +The latest published `eggpack-manifest` version is `0.1.2`; exact publication +evidence is maintained in `docs/release-process.md`. In the current source tree, +the six workspace crates are also at `0.1.2` but remain unpublished. These are +independent release units: this workspace version bump does not reopen M004 or +bump/publish the manifest crate. + ## 5. Target architecture ```text From edce774bf3597a37789ba59587cc2a5be56e3cee Mon Sep 17 00:00:00 2001 From: CI Test Date: Sat, 21 Nov 2026 18:21:59 +0000 Subject: [PATCH 5/5] chore: refresh dependencies and fix process-group fixture Update compatible lockfile dependencies and correct GitHub architecture citations. Synchronize the live-descendant test fixture and register M003pb. --- AGENTS.md | 2 +- Cargo.lock | 36 +- architecture/github.md | 349 +++++++++--------- crates/eggpack-core/src/builder.rs | 2 +- ...nt-fixture-startup-handshake-corrective.md | 73 ++++ plans/registry.md | 9 +- .../ci-release-orchestration-roadmap.md | 5 +- 7 files changed, 279 insertions(+), 197 deletions(-) create mode 100644 plans/implementation/ci-release-orchestration/003pb-process-group-descendant-fixture-startup-handshake-corrective.md diff --git a/AGENTS.md b/AGENTS.md index e9718bc..2174f13 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -89,4 +89,4 @@ Read the index in `overview.md` and follow one link. Grouped by what they cover: ## Planning conventions - Closure discipline: `plans/closure//NNN-status.md`. Compilation ≠ closure. History never rewritten — correctives are new `NNNa` plans; superseded material goes to `plans/archive/`. -- Current handoff (source: `plans/registry.md`): CI/Release M003pa is **closed** under `plans/implementation/ci-release-orchestration/003pa-process-group-signal-recheck-corrective.md`; closure `plans/closure/ci-release-orchestration/003pa-status.md` records implementation `329a3dfdb166580de4770b2c6b2f046358983003` and hosted run `44118309795` green on all four lanes; no implementation milestone is **active** and none is registered **ready**; the next action is plan authoring, not implementation; Release Manifest M004's ADR-0006 publication and compatibility-record obligation is closed (the `eggpack-manifest 0.1.1` event remains historical); the 2026-10-23 review chain and follow-up corrective chains, including CI/Release M003pa, are closed under their closure records. The latest published manifest is `eggpack-manifest 0.1.2`; the six workspace crates now carry source version `0.1.2` but remain unpublished, and matching version numbers do not merge their release identities (see `docs/release-process.md`). **Blocked** are Ecosystem M004 (Gregg sibling bundle), Ecosystem M005 (CodeGG runfile bundle), and Ecosystem M006 (Egress archive pair), each on its named adoption evidence and bundle/archive review; the provenance/authenticity line is **planned** pending a dedicated trust ADR, and Python/wheel adapters are **planned** behind broader native adoption. Contract M003, Bootstrap M003, and Ecosystem M003a/M003b are closed, so the contract-conformance and bootstrap-installers subsystems have no open work. The next Eggpack line is whatever the registry lists as `ready`; if that table is empty, the next action is plan authoring, not implementation. +- Current handoff (source: `plans/registry.md`): CI/Release M003pa remains **closed** under `plans/implementation/ci-release-orchestration/003pa-process-group-signal-recheck-corrective.md`; closure `plans/closure/ci-release-orchestration/003pa-status.md` records implementation `329a3dfdb166580de4770b2c6b2f046358983003` and hosted run `44118309795` green on all four lanes; corrective M003pb is **active** under `plans/implementation/ci-release-orchestration/003pb-process-group-descendant-fixture-startup-handshake-corrective.md`; no other implementation milestone is **active** or registered **ready**; the descendant fixture is synchronized and five focused runs plus the canonical local gate pass; await explicit commit/push authorization for hosted CI; Release Manifest M004's ADR-0006 publication and compatibility-record obligation is closed (the `eggpack-manifest 0.1.1` event remains historical); the 2026-10-23 review chain and follow-up corrective chains through CI/Release M003pa remain closed under their closure records; M003pb remains active pending authorized hosted CI. The latest published manifest is `eggpack-manifest 0.1.2`; the six workspace crates now carry source version `0.1.2` but remain unpublished, and matching version numbers do not merge their release identities (see `docs/release-process.md`). **Blocked** are Ecosystem M004 (Gregg sibling bundle), Ecosystem M005 (CodeGG runfile bundle), and Ecosystem M006 (Egress archive pair), each on its named adoption evidence and bundle/archive review; the provenance/authenticity line is **planned** pending a dedicated trust ADR, and Python/wheel adapters are **planned** behind broader native adoption. Contract M003, Bootstrap M003, and Ecosystem M003a/M003b are closed, so the contract-conformance and bootstrap-installers subsystems have no open work. M003pb is the current active corrective; after it closes, the next Eggpack line is whatever the registry lists as `ready`; if that table is empty, the next action is plan authoring, not implementation. diff --git a/Cargo.lock b/Cargo.lock index 6737083..ed01709 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -72,15 +72,15 @@ dependencies = [ [[package]] name = "bytes" -version = "1.12.1" +version = "1.12.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fc652a48c352aef3ea3aed32080501cf3ef6ed5da78602a020c991775b0aff04" +checksum = "776dfebd015e2d8732c684a2c71003674ccb49457b539b9e82151ba38e96dd7c" [[package]] name = "cc" -version = "1.11.2" +version = "1.11.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "33ef9e3e8154a45c7a95cff4c1299702106ad94062d7bb85fdc5d3a5afd91d45" +checksum = "02f0e023adb368345ce0ca6cdfc0f24a06554468d0e8503e14a0841de79bfa69" dependencies = [ "find-msvc-tools", "shlex", @@ -359,9 +359,9 @@ dependencies = [ [[package]] name = "form_urlencoded" -version = "1.2.2" +version = "1.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf" +checksum = "afa489199eaffb1211795df1c6236ce1ad0d41a6fa45250add73e3b02420f06e" dependencies = [ "percent-encoding", ] @@ -434,9 +434,9 @@ dependencies = [ [[package]] name = "granit-parser" -version = "2.1.0" +version = "2.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "05f05586d4d4df3d47123207826c40b252728b438a1a07bad3c01ee6bea401df" +checksum = "9bd04d0d9c7079b416b458d2317aea4aa964c81938cb7c20f559758c4f422dc8" dependencies = [ "arraydeque", "smallvec", @@ -769,9 +769,9 @@ checksum = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220" [[package]] name = "pin-project-lite" -version = "0.2.17" +version = "0.2.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd" +checksum = "c938015719552d665fd0553b90d96cd7ff58e83e4c061ca99e6bb78865a72752" [[package]] name = "potential_utf" @@ -917,9 +917,9 @@ dependencies = [ [[package]] name = "serde-saphyr" -version = "2.1.1" +version = "2.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d43fb82d550b07e6f929a58d7d0935182602f48ddead875f5ee313c41c8f07fe" +checksum = "969cde0349344dbbf58b5f9badbfb8f806db13969364eb8007c057ef687007d9" dependencies = [ "annotate-snippets", "base64", @@ -1011,9 +1011,9 @@ checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5" [[package]] name = "smallvec" -version = "1.16.5" +version = "1.16.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "149309498a5f7334b12ddae0cad8aba81ce785fe91755068867e017cf98fee46" +checksum = "3244542535d5de959d90ec55d1b5ff0fd2bb7b1310223907d5f11932847f7b59" [[package]] name = "socket2" @@ -1233,9 +1233,9 @@ checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1" [[package]] name = "url" -version = "2.5.8" +version = "2.5.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ff67a8a4397373c3ef660812acab3268222035010ab8680ec4215f38ba3d0eed" +checksum = "f00cd2407bb42c0ef17be88d4cf020f5cceffd121665bac9b8b9493a369b3b1a" dependencies = [ "form_urlencoded", "idna", @@ -1468,9 +1468,9 @@ dependencies = [ [[package]] name = "zeroize" -version = "1.9.1" +version = "1.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e13084392c5e4bc371903e2935a5eaeed24905a7511356b883835e18a78f6879" +checksum = "85ccff8a4805aba1eaa4cd4afcd49f7557dd2cf5fd79ffc37f8959466effc5aa" [[package]] name = "zerotrie" diff --git a/architecture/github.md b/architecture/github.md index 3b56dc2..2340189 100644 --- a/architecture/github.md +++ b/architecture/github.md @@ -6,8 +6,8 @@ two bounded jobs: turn a finalized release into a local, inspectable `StagingPayloadV1`, and reconcile that payload into a **draft** release on an exact pre-existing tag. It never publishes. -`crates/eggpack-github/src/lib.rs` (3431 lines), tests in `src/tests.rs` -(2059 lines). `#![forbid(unsafe_code)]` and `#![deny(missing_docs)]` at +`crates/eggpack-github/src/lib.rs` (3440 lines), tests in `src/tests.rs` +(2060 lines). `#![forbid(unsafe_code)]` and `#![deny(missing_docs)]` at `lib.rs:9-10`, so every public item carries a doc comment. All citations below are to `crates/eggpack-github/src/lib.rs` unless another path is given. @@ -19,17 +19,17 @@ boundary is enforced in code, not by convention. | Boundary | Enforced where | Citation | | --- | --- | --- | -| Draft-only | `create_release` body hardcodes `"draft": true`; no user input reaches it | `2483-2490` | -| Draft-only | created release re-asserted as a mutable draft before use | `2026-2028` | -| Draft-only | a pre-existing release must already be a mutable draft | `2032-2034` | -| Draft-only | receipt is always `draft: true, immutable: false`, and re-validated | `2204-2205`, `353-355` | -| Never "latest" | `"make_latest": "false"` sent as a string | `2489` | -| Exact existing tag | tag must peel to `payload.source_revision`, checked before **and** after staging | `1990-1997`, `2185-2192` | -| Exact existing tag | the trait has no tag create/update/delete method at all | `1674-1734` | -| No tag mutation | no `target_commitish` in the create body; the tag is never created or moved | `2483-2490` | -| No `--clobber` | the string does not occur in this crate; the only mutating calls are create, upload, and the narrow starter delete | `2602-2626` | -| No auto-publish | no `publish` endpoint and no `draft: false` field; `deny_unknown_fields` rejects such a document | `56`, `2487` | -| No immutable overwrite | `immutable` is read from the API and must be false on create and on reuse | `2380-2381`, `2026`, `2032` | +| Draft-only | `create_release` body hardcodes `"draft": true`; no user input reaches it | `2357-2364` | +| Draft-only | created release re-asserted as a mutable draft before use | `1900-1908` | +| Draft-only | a pre-existing release must already be a mutable draft | `1905-1908` | +| Draft-only | receipt is always `draft: true, immutable: false`, and re-validated | `2070-2084`, `439-452` | +| Never "latest" | `"make_latest": "false"` sent as a string | `2357-2364` | +| Exact existing tag | tag must peel to `payload.source_revision`, checked before **and** after staging | `1873-1880`, `2059-2066` | +| Exact existing tag | the trait has no tag create/update/delete method at all | `1517-1577` | +| No tag mutation | no `target_commitish` in the create body; the tag is never created or moved | `2357-2364` | +| No `--clobber` | the string does not occur in this crate; mutation paths are create, upload, and the narrow starter delete | `2347-2389`, `2427-2474`, `2476-2501`, `1994-2010` | +| No auto-publish | no publish method is exposed; the create request sets `draft: true` | `1517-1577`, `2269-2501`, `2357-2364` | +| No immutable overwrite | `immutable` is read from the API and must be false on create and on reuse | `2248-2255`, `1900-1908` | `--clobber` is a workspace-wide non-goal enforced statically in `eggpack-ci` (`crates/eggpack-ci/src/render_release.rs:1323-1328`), not by a flag @@ -46,16 +46,16 @@ draft to published. | --- | --- | --- | | `GithubError` | `40` | Newtype over a bounded, redacted message; `Display` `42-46`, `fail()` `50-52`. No response body is ever embedded. | | `GitHubDraftPolicyV1` | `95` | Strict per-run policy: `schema_version`, `owner`, `repository`, `tag`, `title`, `body`, `prerelease`, `token_env`, and transport bounds; mapped runtime identity optionally adds the explicitly versioned tuple `release_identity_schema_version`, `release_identity_mode`, `release_id`, and `source_revision`. These fields are omitted for legacy exact-tag serialization; `deny_unknown_fields` remains enforced. | -| `.from_json` / `.to_json` | `153` / `164` | Parses within `MAX_POLICY_JSON` (256 KiB, `26`) and validates; serialization validates first. | -| `.validate` | `170` | `schema_version == 1`; owner/repo/tag/title/body bounds; `token_env` must be `GITHUB_TOKEN` (`179`); timeout 5–120 s; metadata ≤ 8 MB; pages 1–32. | -| `.download_origin` | `195` | `https://github.com///releases/download/` — the exact-tag installer origin. | -| `StagingAssetKind` | `213` | `FinalizedArtifact`, `ChecksumSidecar`, `ReleaseManifest`, `PosixInstaller`, `PowershellInstaller`, `ProductPosixWrapper`, `ProductPowershellWrapper`. The payload schema stays v1; a v1 reader that does not know the wrapper variants rejects such a payload (fail-closed) rather than misreading it — `205-210`. | -| `StagingAsset` | `261` | `name`, `path` (must equal `name`), non-zero `size`, lowercase `sha256`, `media_type`, `kind`. | -| `StagingPayloadV1` | `279` | The materialized plan: identity, owner/repo/tag, title, prerelease, body, and 1–1024 assets sorted by name. | -| `.from_json` / `.to_json` / `.validate` | `306` / `317` / `325` | Bounded at 1 MiB; validates identity bounds, flat names, `path == name`, non-zero size, digest shape, media-type bound, and case-insensitive uniqueness (`360`). | -| `GitHubDraftReceiptV1` | `371` | Producer evidence of the staged draft: `github_release_id`, `draft`, `immutable`, ordered assets, `created`, `uploaded`, `reused`. | -| `.from_json` / `.to_json` / `.validate` | `402` / `413` / `419` | Requires `draft && !immutable` and `uploaded + reused == assets.len()` (`432-438`). | -| `FIXED_MANIFEST_NAME` | `31` | `release-manifest.json` — a **private** constant, not public API. Companion privates: `FIXED_POSIX_NAME` `32`, `FIXED_POWERSHELL_NAME` `33`. | +| `.from_json` / `.to_json` | `157` / `168` | Parses within `MAX_POLICY_JSON` (256 KiB, `26`) and validates; serialization validates first. | +| `.validate` | `174` | `schema_version == 1`; owner/repo/tag/title/body bounds; `token_env` must be `GITHUB_TOKEN` (`213-215`); timeout 5–120 s; metadata ≤ 8 MB; pages 1–32. | +| `.download_origin` | `229-234` | `https://github.com///releases/download/` — the exact-tag installer origin. | +| `StagingAssetKind` | `252-269` | `FinalizedArtifact`, `ChecksumSidecar`, `ReleaseManifest`, `PosixInstaller`, `PowershellInstaller`, `ProductPosixWrapper`, `ProductPowershellWrapper`. The payload schema stays v1; a v1 reader that does not know the wrapper variants rejects such a payload (fail-closed) rather than misreading it — `244-249`. | +| `StagingAsset` | `274-287` | `name`, `path` (must equal `name`), non-zero `size`, lowercase `sha256`, `media_type`, `kind`. | +| `StagingPayloadV1` | `292-315` | The materialized plan: identity, owner/repo/tag, title, prerelease, body, and 1–1024 assets sorted by name. | +| `.from_json` / `.to_json` / `.validate` | `319` / `330` / `338` | Bounded at 1 MiB; validates identity bounds, flat names, `path == name`, non-zero size, digest shape, media-type bound, and case-insensitive uniqueness (`375`). | +| `GitHubDraftReceiptV1` | `384-411` | Producer evidence of the staged draft: `github_release_id`, `draft`, `immutable`, ordered assets, `created`, `uploaded`, `reused`. | +| `.from_json` / `.to_json` / `.validate` | `415` / `426` / `432` | Requires `draft && !immutable` and `uploaded + reused == assets.len()` (`439-452`). | +| `FIXED_MANIFEST_NAME` | `32` | `release-manifest.json` — a **private** constant, not public API. Companion privates: `FIXED_POSIX_NAME` `33`, `FIXED_POWERSHELL_NAME` `34`. | ### Entry points, remote types, transport @@ -68,30 +68,30 @@ draft to published. | `InstallerPresentationV1` | `733` | `schema_version` + `mode`; `generated_default()` and validation follow this type. | | `InstallerPresentationModeV1` | `743` | `GeneratedDefault` or `ProductWrappers(ProductWrapperSourcesV1)`. | | `ProductWrapperSourcesV1` | `753` | Wrapper source paths plus the staged names for the generated exact installers. | -| `GitHubDraftTemplateV1` | `1244` | Identity-independent draft template; must not carry release id, revision, tag, GitHub id, or digests. | -| `.resolve(tag)` / `.resolve_with_identity(...)` | `1302` / `1326` | Legacy resolver keeps exact-tag behavior; the identity resolver carries the finite checked-in mapped ID and source revision for opt-in mode. No templating language. | -| `verify_tag_source` | `1922` | Bounded annotated-tag peel (≤ 8) down to the exact source revision. | -| `stage_with_bytes` | `2127` | Public reconciliation entry point over in-memory bytes. | -| `stage_with_dir` | `2389` | Public reconciliation entry point over a staging directory. | -| `RefTarget` | `1761` | `{ sha, kind }` for `refs/tags/`. | -| `TagObject` | `1770` | One annotated-tag peel step. | -| `RemoteRelease` | `1635` | Release summary including `draft`, `immutable`, `upload_url`. | -| `RemoteAsset` | `1656` | `{ id, name, size, state, digest }`; `digest` is `Option` shaped `sha256:`. | -| `trait GithubApi` | `1674` | The provider seam (`1669-1734`). | +| `GitHubDraftTemplateV1` | `880-907` | Identity-independent draft template; must not carry release id, revision, tag, GitHub id, or digests. | +| `.resolve(tag)` / `.resolve_with_identity(...)` | `961-983` / `985-1002` | Legacy resolver keeps exact-tag behavior; the identity resolver carries the finite checked-in mapped ID and source revision for opt-in mode. No templating language. | +| `verify_tag_source` | `1621-1657` | Bounded annotated-tag peel (≤ 8) down to the exact source revision. | +| `stage_with_bytes` | `1826` | Public reconciliation entry point over in-memory bytes. | +| `stage_with_dir` | `2088` | Public reconciliation entry point over a staging directory. | +| `RefTarget` | `1460` | `{ sha, kind }` for `refs/tags/`. | +| `TagObject` | `1469` | One annotated-tag peel step. | +| `RemoteRelease` | `1478` | Release summary including `draft`, `immutable`, `upload_url`. | +| `RemoteAsset` | `1499` | `{ id, name, size, state, digest }`; `digest` is `Option` shaped `sha256:`. | +| `trait GithubApi` | `1517` | The provider seam (`1517-1577`). | | `EggfetchTransport` | `2138` | Production transport over `eggfetch-core 0.4.0`; `impl GithubApi for EggfetchTransport` at `2269`. | -| `FixtureGithub` | `2661` | In-memory double; `impl GithubApi` at `2824-3022`. | -| `fixture_release` / `fixture_asset` | `2786` / `2808` | Constructors for fixture records. | +| `FixtureGithub` | `2553` | In-memory double; `impl GithubApi` at `2733`. | +| `fixture_release` / `fixture_asset` | `2692` / `2717` | Constructors for fixture records. | ## The `GithubApi` seam -`trait GithubApi: Send + Sync` (`1674-1734`) has seven methods: `get_ref`, +`trait GithubApi: Send + Sync` (`1517-1577`) has seven methods: `get_ref`, `get_tag`, `list_releases`, `create_release`, `list_assets`, `upload_asset`, `delete_asset`. Futures use return-position `impl Future`, so there is no `async_trait` boxing. The trait is why the whole reconciliation flow is testable without a network. -`verify_tag_source` (`1778`), `stage_with_bytes` (`1949`) and `stage_with_dir` -(`2214`) all take `&impl GithubApi`; the transport is the only injected +`verify_tag_source` (`1621-1657`), `stage_with_bytes` (`1826`) and `stage_with_dir` +(`2088`) all take `&impl GithubApi`; the transport is the only injected dependency, so the full sequence — tag resolve, draft lookup, create, upload, verify, receipt — runs against an in-memory double. @@ -100,50 +100,50 @@ What the trait asks of an implementation: - Return the typed records, so validation lives in one place in the core rather than being re-derived per transport. - Surface `502` and `422` as errors whose message **starts with** `http_502` / - `http_422_duplicate` (documented `1714-1715`, classified `1753-1759`). This is + `http_422_duplicate` (documented `1557-1569`, classified `1596-1602`). This is a message-prefix protocol, not a typed error, and it is how the core applies its narrow recovery. - Treat `delete_asset` as reserved: "only the narrow starter recovery may call - this" (`1727`). + this" (`1570-1577`). -The public `upload_asset` boundary takes `Box` (`1723`), while +The public `upload_asset` boundary takes `Box` (`1560-1569`), while the internal core holds a seekable handle through the private `ReadSeek` trait -(`1736-1751`) so it can size-check and hash a file before streaming it. Two -implementations exist: `EggfetchTransport` (`2395-2627`) and `FixtureGithub` -(`2824-3022`). +(`1579-1581`) so it can size-check and hash a file before streaming it. Two +implementations exist: `EggfetchTransport` (`2269-2501`) and `FixtureGithub` +(`2733-2949`). ## `FixtureGithub` and the fault injectors **`FixtureGithub` is not test-gated. It is compiled into the shipped library -and is part of this crate's public API.** The only two conditional attributes in -the crate are `#[cfg(unix)]` at `544` and `#[cfg(test)] mod tests;` at -`3024-3025`. `FixtureGithub` (`2661`), its inherent `impl` (`2665-2783`), -`fixture_release` (`2786`), `fixture_asset` (`2808`) and -`impl GithubApi for FixtureGithub` (`2824-3022`) are all unconditional — even +and is part of this crate's public API.** The crate has a Unix-specific helper (`#[cfg(unix)]`, `643`), the main test +module (`#[cfg(test)] mod tests;`, `2951-2952`), and two additional test-only +modules (`2956-2957`, `3029-3030`). `FixtureGithub` (`2553`), its inherent +`impl` (`2557-2690`), `fixture_release` (`2692`), `fixture_asset` (`2717`) and +`impl GithubApi for FixtureGithub` (`2733-2949`) are all unconditional — even though the section header above them reads "Deterministic fixture transport for -tests" (`2629-2631`). `stage_with_bytes` (`1949`) is likewise public, and its +tests" (`2509-2511`). `stage_with_bytes` (`1826`) is likewise public, and its only in-repo caller is the test suite. -State lives in `FixtureInner` under a `Mutex` (`2638-2663`), seeded with a +State lives in `FixtureInner` under a `Mutex` (`2513-2532`), seeded with a lightweight tag pointing at a commit, ids from 100 / 1000, and -`upload_fail_502_create_starter: true` (`2681`). +`upload_fail_502_create_starter: true` (`2553-2555`, `2574`). | Injector / observer | Line | What it proves | | --- | --- | --- | -| `with_tag` | `2667` | A lightweight tag resolving straight to the source revision is accepted. | -| `set_ref` | `2692` | Tag movement between the pre- and post-stage verify is caught by the TOCTOU guard (`2185`); an unresolvable tag (`None`) fails. | -| `add_tag_object` | `2699` | Annotated tags peel to the exact commit; a chain deeper than `MAX_TAG_PEEL_DEPTH` (8) fails (`1813`). | -| `seed_release` | `2708` | A pre-seeded published or immutable release makes staging reject without mutation (`2032`). | -| `set_asset_page` | `2719` | Pagination edges: a short final page terminates successfully, a full page on the last allowed page fails closed (`1903-1910`); a duplicate or unexpected asset on a later page is still caught. | -| `fail_upload_502_next` | `2728` | On 502 the core re-lists, deletes a single `state == "starter" && size == 0` record for that name, and still returns an error (`2120-2136`). `create_starter = false` proves the same path with no starter present. | -| `fail_upload_422_next` | `2735` | A duplicate-name 422 fails closed immediately with no recovery (`2117-2119`). | -| `rename_next_upload` | `2741` | The server's echoed name is authoritative — a renamed upload response is rejected (`2098-2100`). | -| `digest_mismatch_next` | `2747` | A wrong `sha256` in the upload response is rejected (`2107-2111`) and in the final set (`2176-2181`). | -| `size_mismatch_next` | `2753` | A wrong size in the upload response is rejected (`2104-2106`). | -| `create_calls` | `2759` | Proves no release was created on a pre-flight failure (tag mismatch, absent token). | -| `upload_calls` | `2764` | Proves no upload was attempted before a local digest failure. | -| `delete_calls` | `2769` | Proves the delete path fires **only** in the narrow 502 starter recovery, never for a pre-existing uploaded asset. | -| `assets_for` | `2774` | Reads back the exact post-stage remote asset set. | +| `with_tag` | `2559` | A lightweight tag resolving straight to the source revision is accepted. | +| `set_ref` | `2585` | Tag movement between the pre- and post-stage verify is caught by the TOCTOU guard (`2059-2066`); an unresolvable tag (`None`) fails. | +| `add_tag_object` | `2592` | Annotated tags peel to the exact commit; a chain deeper than `MAX_TAG_PEEL_DEPTH` (8) fails (`1621-1657`). | +| `seed_release` | `2601` | A pre-seeded published or immutable release makes staging reject without mutation (`1905-1908`). | +| `set_asset_page` | `2612` | Pagination edges: a short final page terminates successfully, a full page on the last allowed page fails closed (`1744-1769`); a duplicate or unexpected asset on a later page is still caught. | +| `fail_upload_502_next` | `2621` | On 502 the core re-lists, deletes a single `state == "starter" && size == 0` record for that name, and still returns an error (`1994-2010`). `create_starter = false` proves the same path with no starter present. | +| `fail_upload_422_next` | `2628` | A duplicate-name 422 fails closed immediately with no recovery (`1991-1993`). | +| `rename_next_upload` | `2634` | The server's echoed name is authoritative — a renamed upload response is rejected (`1972-1974`). | +| `digest_mismatch_next` | `2640` | A wrong `sha256` in the upload response is rejected (`1981-1985`) and in the final set (`2050-2055`). | +| `size_mismatch_next` | `2646` | A wrong size in the upload response is rejected (`1978-1980`). | +| `create_calls` | `2662` | Proves no release was created on a pre-flight failure (tag mismatch, absent token). | +| `upload_calls` | `2667` | Proves no upload was attempted before a local digest failure. | +| `delete_calls` | `2672` | Proves the delete path fires **only** in the narrow 502 starter recovery, never for a pre-existing uploaded asset. | +| `assets_for` | `2677` | Reads back the exact post-stage remote asset set. | These injectors are the evidence for draft-only, no-clobber, and verify-after-upload: the only way to observe a remote mutation is a counter the @@ -152,10 +152,11 @@ have prevented the call. Two honest limitations of the double: `create_release` always returns `draft: true, immutable: false`, so the "server returned a non-draft -creation" rejection at `2026` is unreachable through it. Its release listing +creation" rejection at `1900-1902` is unreachable through it. Its release listing pages like the real endpoint (100 per page) and its `create_release` refuses a -tag that already has a release with `422 already_exists`, so release-listing -truncation and duplicate-tag creation are both reachable in tests. +tag that already has a release with `422 already_exists` (`2766-2783`, +`2785-2828`), so release-listing truncation and duplicate-tag creation are both +reachable in tests. ## Staging payload materialization @@ -175,7 +176,7 @@ root plus contract, manifest and policy into an inspectable directory and payload: 1. Validate policy and manifest, require `contract.product.id == - manifest.product_id` (`1044-1050`), reject a symlinked finalized root (`1066`). + manifest.product_id` (`1044-1050`), reject a symlinked finalized root (`1064`). 2. Build the expected inventory from `contract.expand` per manifest target and cross-check it against the manifest form — Direct (`1076-1098`), Bundle (entry count and name set, `1099-1135`), Archive (`1136-1157`); any other pairing fails @@ -189,35 +190,35 @@ payload: `sha256 filename` content against the artifact it names, bounded at 4 KiB and required to end `.sha256` (`1220-1255`). 6. Create the output directory only if absent, require a real non-symlink parent, - and set `0700` on unix (`1257`, `533-551`). Every later failure calls the - `cleanup` closure, which removes the whole output directory (`1258-1260`). + and set `0700` on unix (`1258`, `632-650`). Every later failure calls the + `cleanup` closure, which removes the whole output directory (`1259-1261`). 7. Copy the finalized files exactly (`1262-1271`); write `release-manifest.json` and prove it round-trips to identical bytes (`1272-1295`). 8. Render deterministic installers with `BootstrapSpec { origin, fixture_http: false }` (`1297-1310`) and reject any `latest/download` origin (`1311-1315`). 9. Assign media types and kinds, digest each staged file, sort by name - (`1365-1435`); finalize and validate the payload (`1436-1448`). + (`1365-1432`); finalize and validate the payload (`1436-1448`). The payload is deliberately a **separate materialized artifact** rather than an implicit side effect of uploading. It is a bounded, strictly validated JSON document, and the adapter re-validates it and re-verifies every local file's size and digest against it before touching the network (`verify_file`, -`1789-1820`). Preparation and staging are separate CLI subcommands, so the exact +`1792-1821`). Preparation and staging are separate CLI subcommands, so the exact byte set, ordering, digests and kinds are reviewable before any remote object exists. Determinism is preserved by sorting assets by name in both construction (`1435`) and serialization (`333`). ## Reconciliation: the remote state machine -`stage_with_source` (`1839-2082`) is the whole remote state machine; -`stage_with_bytes` (`1823-1837`) and `stage_with_dir` (`2085-2122`) are thin +`stage_with_source` (`1842-2085`) is the whole remote state machine; +`stage_with_bytes` (`1826-1840`) and `stage_with_dir` (`2088-2122`) are thin adapters over it. -1. Validate the token shape **before any I/O** (`1849-1851`). +1. Validate the token shape **before any I/O** (`1852-1854`). 2. Validate payload and policy; require exact agreement on owner, repository, - tag, title, prerelease and body (`1852-1868`). + tag, title, prerelease and body (`1855-1871`). 3. `verify_tag_source` — the tag must already exist and peel to - `payload.source_revision` (`1870-1877`, implementation `1618-1654`). + `payload.source_revision` (`1873-1880`, implementation `1621-1657`). 4. Paginated release lookup over pages `1..=max_list_pages` (`list_all_releases`), then `find_exact_release`, which fails on more than one same-tag record. A full page on the last permitted page fails closed with @@ -226,81 +227,83 @@ adapters over it. creation attempt for a tag that already has one. 5. If absent, `create_release`, then assert the tag matches and the release is a mutable draft (`1887-1900`). If present, assert it is a mutable draft - (`1903-1905`), the tag matches (`1906-1908`), and title, prerelease and body all match - (`1909-1914`). -6. `check_upload_url` (`1918-1923`) pins the release's `upload_url` to `https`, + (`1905-1908`), the tag matches (`1909-1910`), and title, prerelease and body all match + (`1912-1916`). +6. `check_upload_url` (`1921-1926`) pins the release's `upload_url` to `https`, host `uploads.github.com`, the exact `/repos///releases//assets` path, and no userinfo, - fragment, or query, port 443 or unset (`1672-1692`). -7. Pre-flight `list_all_assets` (`1932`): reject a case-insensitive duplicate - remote name (`1936-1938`) and any asset not in the payload (`1939-1941`). -8. For each payload asset in name order (`1926`): absent remotely → + fragment, or query, port 443 or unset (`1675-1695`). +7. Pre-flight `list_all_assets` (`1935`): reject a case-insensitive duplicate + remote name (`1937-1941`) and any asset not in the payload (`1942-1944`). +8. For each payload asset in name order (`1954-1956`): absent remotely → `verify_file` the local bytes against the payload, then `upload_asset` - (`2083-2095`), rejecting a response whose `name`, `state`, `size` or `digest` - disagrees (`2098-2111`); a `422` fails with no recovery (`2117-2119`); a `502` + (`1957-1969`), rejecting a response whose `name`, `state`, `size` or `digest` + disagrees (`1971-1985`); a `422` fails with no recovery (`1991-1993`); a `502` re-lists, deletes a single zero-byte `starter` for that name if exactly one - exists, and still returns an error (`2120-2136`); present remotely requires + exists, and still returns an error (`1994-2010`); present remotely requires `state == "uploaded"`, exact size, and `digest == "sha256:"` - (`2141-2156`). -9. Final `list_all_assets` (`2160`): no duplicates, count must equal the + (`2015-2029`). +9. Final `list_all_assets` (`2034`): no duplicates, count must equal the expected count, and every expected name must match on state, size and digest - (`2161-2183`). -10. `verify_tag_source` again (`2185-2192`) — the TOCTOU guard, since the tag + (`2035-2056`). +10. `verify_tag_source` again (`2059-2066`) — the TOCTOU guard, since the tag could have moved mid-run. 11. Emit the receipt with `draft: true`, `immutable: false`, the `created` flag, - `uploaded` / `reused` counts, and assets sorted by name (`2194-2210`). + `uploaded` / `reused` counts, and assets sorted by name (`2070-2085`). Pagination is one shared bounded paginator, `list_all_pages`, used for both the release and asset listings: pages `1..=policy.max_list_pages` are fetched, a short page (fewer than `LIST_PAGE_SIZE` = 100, `37`) terminates successfully, and a full page on the last permitted page fails closed with "release/asset -pagination bound exhausted". Default 16 pages, maximum 32 (`100-102`, `141-143`). +pagination bound exhausted". Default 16 pages, maximum 32 (`134-136`, `151-153`, +`222-224`). -Bounded transfer: `streamed_upload_body` (`1869-1891`) streams the asset through +Bounded transfer: `streamed_upload_body` (`1712-1734`) streams the asset through `futures_util::stream::try_unfold` in `UPLOAD_CHUNK_BYTES` (64 KiB, `35`) chunks with an explicit declared length, converting a length that overflows the platform `usize` into an error. The declared length is checked against the real -file size before the request is built (`1873-1874`, `verify_file` at `1917`). +file size before the request is built (`1716-1717`, `verify_file` at `1792-1821`). Source identity: the tag must exist beforehand. The `GithubApi` trait has no -create/update/delete-ref method (`1674-1734`) and the create request omits -`target_commitish` (`2483-2490`), so no code path in this crate can create or +create/update/delete-ref method (`1517-1577`) and the create request omits +`target_commitish` (`2357-2364`), so no code path in this crate can create or move a tag. ## Token handling and redaction -`read_token(env_name)` (`493-502`) requires `env_name == "GITHUB_TOKEN"` (`494`), -reads `std::env::var` (`497`), and rejects an empty value, one over 4096 bytes, -or one containing control characters (`498`). Every failure returns the fixed +`read_token(env_name)` (`583-592`) requires `env_name == "GITHUB_TOKEN"` (`584-585`), +reads `std::env::var` (`587`), and rejects an empty value, one over 4096 bytes, +or one containing control characters (`588-590`). Every failure returns the fixed message `"github token is absent"` — the value is never echoed and the underlying `VarError` is discarded. The same rules are re-checked at every point -of use: the first statement of `stage_with_source` (`1975-1977`) and in -`EggfetchTransport::new` (`2289-2291`). `token_env` is additionally allowlisted -to `GITHUB_TOKEN` in both the policy (`132-134`) and the template (`1174-1176`). +of use: the first statement of `stage_with_source` (`1852-1854`) and in +`EggfetchTransport::new` (`2158-2182`). `token_env` is additionally allowlisted +to `GITHUB_TOKEN` in the policy (`125-127`, `213-215`) and the template +(`895-897`, `941-943`). Redaction, as verified: - `Debug for EggfetchTransport` writes the token field as the literal `""` and uses `finish_non_exhaustive`, so no other field is printed - either (`2271-2278`). + either (`2145-2152`). - The token appears in no serializable type: neither `StagingPayloadV1` - (`206-229`) nor `GitHubDraftReceiptV1` (`298-325`) has a token field, and + (`289-315`) nor `GitHubDraftReceiptV1` (`381-411`) has a token field, and `to_json` validates before encoding. - No error message in the crate interpolates the token or a response body; all failures are fixed strings via `fail()` (`50-52`). - The test `token_absent_rejects_before_io_and_redacts_diagnostics` - (`src/tests.rs:1303-1328`) asserts `create_calls() == 0` and + (`src/tests.rs:1397-1422`) asserts `create_calls() == 0` and `upload_calls() == 0` for an empty token, and that a distinctive secret appears in neither the error string nor the transport's `Debug` output. The token is only ever sent to the GitHub API host. Every request URL is built from `API_BASE` (`https://api.github.com`, `21`) or `UPLOAD_BASE` -(`https://uploads.github.com`, `22`) via `upload_url` (`1854-1867`); the -credential is attached per-request as a bearer `AuthScheme` (`2311-2314`) and -never placed in a URL, query string, or body. `check_upload_url` (`1832-1852`) +(`https://uploads.github.com`, `22`) via `upload_url` (`1697-1710`); the +credential is attached through the bearer-auth helper (`2185-2187`) for API +requests (for example `2278`) and is never placed in a URL, query string, or body. `check_upload_url` (`1675-1695`) additionally rejects a server-supplied `upload_url` pointing anywhere else. The only non-GitHub host anywhere in the crate is the loopback listener in -`src/tests.rs:1357`, a bare `eggfetch-core` client with no credential. +`src/tests.rs:1444-1487`, a bare `eggfetch-core` client with no credential. ## Presentation and product wrappers @@ -309,7 +312,7 @@ crate treats as opaque bytes: it is read from the verified source tree and stage verbatim as the public `install.sh` / `install.ps1`, while the Eggpack-generated *exact* installer is staged beside it under a distinct name (`install-exact.sh` / `install-exact.ps1` in the fixture, -`src/tests.rs:1402-1407`). Per the comment at `1487-1488`, the wrapper is the +`src/tests.rs:1577-1697`). Per the comment at `1322-1324`, the wrapper is the friendly public surface while the generated exact installer remains available as qualified-bootstrap evidence. The crate never parses, interpolates into, or executes a wrapper — `read_wrapper_source` (`851-868`) returns raw bytes, @@ -319,82 +322,82 @@ The mode is opt-in. `generated_default()` (`766-771`) selects `GeneratedDefault`, and `prepare_staging_payload_with_presentation` routes that mode into the one builder with no behavioural difference (`690-710`); `generated_default_preserves_exact_m003a_behavior` -(`src/tests.rs:1418-1458`) asserts byte-identical payloads and identical file +(`src/tests.rs:1512-1574`) asserts byte-identical payloads and identical file inventories. Only an explicit `ProductWrappers` policy changes the public surface, and even then the exact generated installers are still staged and still -carry `PosixInstaller` / `PowershellInstaller` kinds (`1551-1560`) while the -wrappers carry `ProductPosixWrapper` / `ProductPowershellWrapper` -(`1561-1570`). Generating the exact installer is therefore the default and stays +carry `PosixInstaller` / `PowershellInstaller` kinds (`252-269`, `1392-1412`) +while the wrappers carry `ProductPosixWrapper` / `ProductPowershellWrapper` +(`252-269`, `1392-1412`). Generating the exact installer is therefore the default and stays available under the wrapper mode; hand-maintained wrapper bytes are the narrow deviation, not the norm. Bounds and validation: -- `MAX_WRAPPER_BYTES = 1 MiB` (`950`), enforced in `read_wrapper_source` - (`1093-1095`) with a re-stat after read (`1097-1099`). -- Wrapper source paths (`validate_wrapper_source_path`, `1050-1066`): bounded, +- `MAX_WRAPPER_BYTES = 1 MiB` (`717`), enforced in `read_wrapper_source` + (`851-868`) with a re-stat after read. +- Wrapper source paths (`validate_wrapper_source_path`, `817-833`): bounded, relative, no `\`, no NUL, no leading `/`, no `:`, no empty / `.` / `..` segments, segments ≤ 128 bytes, no control characters. -- Wrapper sources must be distinct files (`1033-1035`). +- Wrapper sources must be distinct files (`791-815`). - Generated installer names must be flat, must not collide with each other case-insensitively, and must not collide with the three reserved staging names - (`1036-1043`, `1068-1077`). + (`1032-1041`, `1160-1177`). - The source root must be a real non-symlink directory and the resolved file a - regular non-symlink file beneath it (`1085`, `1090-1092`). + regular non-symlink file beneath it (`851-868`, `870-880`). -`GitHubDraftTemplateV1` (`1113-1140`) exists so a repository can hold a static, +`GitHubDraftTemplateV1` (`880-907`) exists so a repository can hold a static, identity-independent draft template resolved against a tag at run time. It deliberately carries no release id, source revision, exact tag, GitHub release -id, or digest (`1103-1110`), and `resolve` (`1194-1212`) only validates the tag +id, or digest (`870-880`), and `resolve` (`961-983`) only validates the tag with the same `validate_tag` used by the policy and concatenates it onto the fixed title prefix. `draft_template_resolves_distinct_tags_from_identical_bytes` -(`src/tests.rs:1799`) pins that identical template bytes resolve to distinct +(`src/tests.rs:1893-1942`) pins that identical template bytes resolve to distinct per-tag policies. ## Safety properties | Property | Enforced where | Citation | | --- | --- | --- | -| Created release must be a mutable draft | post-create assertion | `1896-1899` | -| Published / immutable release is never adopted | draft + `!immutable` gate | `1902-1905` | -| Tag must already exist and match the source revision | bounded peel, pre and post | `1618-1654`, `1870-1877`, `2056-2063` | -| No tag creation or mutation | no such trait method; no `target_commitish` | `1514-1576`, `2266-2270` | +| Created release must be a mutable draft | post-create assertion | `1900-1902` | +| Published / immutable release is never adopted | draft + `!immutable` gate | `1900-1908` | +| Tag must already exist and match the source revision | bounded peel, pre and post | `1621-1657`, `1873-1880`, `2059-2066` | +| No tag creation or mutation | no such trait method; no `target_commitish` | `1517-1577`, `2357-2364` | | Exact-tag origin only, no `latest/download` | installer content guard | `1311-1315` | -| Local bytes match the payload before upload | size + streamed digest | `1789-1820`, `2112` | -| Upload response name must match | post-upload check | `1969-1971` | -| Upload response state must be `uploaded` | post-upload check | `1972-1974` | -| Fail closed on upload size mismatch | post-upload check | `1975-1977` | -| Fail closed on upload digest mismatch | `sha256:` comparison | `1978-1981` | -| Reuse requires matching state, size and digest | reuse branch | `2141-2156` | -| Duplicate-name 422 fails with no recovery | error branch | `2117-2119` | -| Unexpected remote asset fails closed | pre-flight inventory | `2068-2069` | -| Duplicate remote name (case-insensitive) fails closed | pre-flight inventory | `2065-2067` | -| Final exact-set verification after upload | post-upload inventory | `2160-2183` | -| Two same-tag release records fail closed | exact-release lookup | `1826-1828` | -| Title / prerelease / body drift fails without mutation | existing-draft comparison | `2038-2043` | -| Upload host pinned to `uploads.github.com` over exact https | URL check | `1832-1852` | -| Asset pagination bound fails closed on a full last page | pagination loop | `1903-1910` | -| 3xx fails closed; no redirect to any host | status gate, read and upload | `2325-2327`, `2586-2588` | -| No retries; bounded per-request time and body size | client built with timeout only, no retry configuration | `2261-2263`, `2299-2302` | -| No deletion of a pre-existing uploaded asset | delete only for `state == "starter" && size == 0`, exactly one match | `2120-2134` | -| No clobber / overwrite of an existing draft | reuse-only path; no replace or overwrite endpoint | `2141-2156` | -| Token absent before any I/O | first statement of the core | `1975-1977` | -| Token redacted in diagnostics | literal `""` in `Debug` | `2271-2278` | -| Symlinks, traversal, non-flat names rejected | validators plus `symlink_metadata` checks | `370-490`, `504-531`, `690-694`, `1085-1092` | -| Output dir created absent-only, `0700`, cleaned on failure | private-dir helper plus `cleanup` | `533-551`, `759-762` | -| Payload / receipt schemas strict and bounded | `deny_unknown_fields`, size and count bounds | `56`, `205`, `297`, `252-292`, `346-367` | +| Local bytes match the payload before upload | size + streamed digest | `1792-1821`, `1957-1958` | +| Upload response name must match | post-upload check | `1972-1974` | +| Upload response state must be `uploaded` | post-upload check | `1975-1977` | +| Fail closed on upload size mismatch | post-upload check | `1978-1980` | +| Fail closed on upload digest mismatch | `sha256:` comparison | `1981-1985` | +| Reuse requires matching state, size and digest | reuse branch | `2015-2029` | +| Duplicate-name 422 fails with no recovery | error branch | `1991-1993` | +| Unexpected remote asset fails closed | pre-flight inventory | `1942-1944` | +| Duplicate remote name (case-insensitive) fails closed | pre-flight inventory | `1937-1941` | +| Final exact-set verification after upload | post-upload inventory | `2034-2056` | +| Two same-tag release records fail closed | exact-release lookup | `1659-1673` | +| Title / prerelease / body drift fails without mutation | existing-draft comparison | `1912-1916` | +| Upload host pinned to `uploads.github.com` over exact https | URL check | `1675-1695` | +| Asset pagination bound fails closed on a full last page | pagination loop | `1744-1769` | +| 3xx fails closed; no redirect to any host | status gate, read and upload | `2199-2200`, `2460-2462` | +| No retries; bounded per-request time and body size | client built with timeout only, no retry configuration | `2172-2176`, `2279-2281`, `2447-2449` | +| No deletion of a pre-existing uploaded asset | delete only for `state == "starter" && size == 0`, exactly one match | `1994-2010` | +| No clobber / overwrite of an existing draft | reuse-only path; no replace or overwrite endpoint | `2015-2029` | +| Token absent before any I/O | first statement of the core | `1852-1854` | +| Token redacted in diagnostics | literal `""` in `Debug` | `2145-2152` | +| Symlinks, traversal, non-flat names rejected | validators plus `symlink_metadata` checks | `534-568`, `623-650`, `817-868`, `1064`, `1180-1194` | +| Output dir created absent-only, `0700`, cleaned on failure | private-dir helper plus `cleanup` | `632-650`, `1258-1261` | +| Payload / receipt schemas strict and bounded | `deny_unknown_fields`, size and count bounds | `273`, `291`, `383`, `356-375`, `439-452` | Deliberately **not** enforced here, listed honestly: - **A cap on total uploaded bytes.** There is a per-request response bound and a - platform-`usize` conversion (`1873-1874`), but no maximum asset size. A payload - is bounded by asset count (≤ 1024, `270`) rather than total size. + platform-`usize` conversion (`1716-1717`), but no maximum asset size. A payload + is bounded by asset count (≤ 1024, `356-358`) rather than total size. - **`immutable` defaults to `false` when the API omits it** - (`#[serde(default)]`, `2386-2387`). This is the one place where a missing + (`#[serde(default)]`, `2248-2255`). This is the one place where a missing field resolves to a permissive value, and it is deliberate: making the field mandatory would fail *every* release read against an API that does not return it, which is a strictly worse failure than the one it prevents. The gate at - `2032` therefore sees `immutable == false` without having observed it. In + `1905-1908` therefore sees `immutable == false` without having observed it. In practice the outcome is still fail-closed — a genuinely immutable release rejects the asset upload server-side — but the rejection arrives as a transport error rather than a clear "not a mutable draft", and the field is not evidence @@ -407,7 +410,7 @@ Deliberately **not** enforced here, listed honestly: `crates/eggpack-ci/src/tests.rs:2236-2237`). - **No authenticity, signature, or provenance claim.** Digests in the payload, the upload responses and the receipt are SHA-256 integrity facts only - (`1789-1820`, `1978-1981`, `2062-2072`). + (`1792-1821`, `1981-1985`, `2050-2055`, `2070-2084`). ## Boundaries / non-goals @@ -416,7 +419,7 @@ Not owned or not done by this crate: publication (no `publish` endpoint, no immutable overwrite, release selection, update, and rollback. It does not own build, qualification or finalization (`eggpack-core`); it does not own installer semantics, only calling `eggpack_bootstrap::render_posix_with_policy` / -`render_powershell_with_policy` (`802`, `808`); it does not render CI +`render_powershell_with_policy` (`1301-1305`, `1307-1311`); it does not render CI workflows; and it does not touch registries, Issues, or PRs. The draft is left for a human to publish. @@ -429,7 +432,7 @@ wording. The file digest belongs to `eggpack-core` (`file_digest`, (`crates/eggpack-github/src/lib.rs:604`) applies it and maps each refusal to this crate's staging diagnostic. The exact-tag safety rule belongs to `eggpack-core` (`validate_exact_tag_safety`, -`crates/eggpack-core/src/lib.rs:313`); `validate_tag` +`crates/eggpack-core/src/lib.rs:315`); `validate_tag` (`crates/eggpack-github/src/lib.rs:494`) applies it. The full rule map is in [validation-model.md](validation-model.md). @@ -439,10 +442,10 @@ Dependencies (`crates/eggpack-github/Cargo.toml:14-26`): `eggpack-contract` (layout authority — `DistributionContract`, `ExpandedAssets`), `eggpack-manifest` (`ReleaseManifest`), `eggpack-core` (finalized-release types), `eggpack-bootstrap` (installer rendering), plus `serde` / `serde_json`, -`sha2`, `tokio` (`rt,time,macros,net,io-util`), `eggfetch-core 0.4.0` with -`default-features = false` and features `standard-http1`, `tls-rustls`, -`tls-native-roots`, `json`, `bytes`, `futures-util`, and `url`. Dev-only: -`tokio` with `rt-multi-thread`. +`sha2`, `tokio` (`rt,time,macros,net,io-util`), `eggfetch-core 0.4.0` with `default-features = false` and features +`standard-http1`, `tls-rustls`, `tls-native-roots`, and `json`; direct +dependencies `bytes`, `futures-util`, and `url`. Dev-only: `tokio` with +`rt-multi-thread`. The in-house HTTP stack is a deliberate choice over a heavyweight client: the lean `eggfetch-core` profile gives explicit control over the security-relevant @@ -456,17 +459,17 @@ platform's CA configuration; combined with the fixed `api.github.com` / Dependents: `eggpack-cli` is a hard dependency (`crates/eggpack-cli/Cargo.toml:24`) and the only production caller. `_prepare-stage` uses `GitHubDraftTemplateV1::from_json` -(`crates/eggpack-cli/src/main.rs145`), `InstallerPresentationV1::from_json` -(`:1038`) and `prepare_staging_payload_with_presentation` / -`prepare_staging_payload` (`:1076`, `:1088`); `_stage-github-draft` uses -`StagingPayloadV1::from_json` (`:1118`), `read_token` (`:1124`), -`EggfetchTransport::new` (`:1126`) and `stage_with_dir` (`:1144`). +(`crates/eggpack-cli/src/main.rs:491`), `InstallerPresentationV1::from_json` +(`:1582`) and `prepare_staging_payload_with_presentation` / +`prepare_staging_payload` (`:1620`, `:1632`); `_stage-github-draft` uses +`StagingPayloadV1::from_json` (`:1662`), `read_token` (`:1668`), +`EggfetchTransport::new` (`:1670`) and `stage_with_dir` (`:1688`). `eggpack-ci` depends on this crate **for dev only** (`crates/eggpack-ci/Cargo.toml:25`, under `[dev-dependencies]`), to assert the -rendered workflow invokes exactly those two runner commands and never publishes -or clobbers (`crates/eggpack-ci/src/runner.rs:41-49`, `crates/eggpack-ci/src/runner.rs:71-82`, -`crates/eggpack-ci/src/runner.rs:135-137`, -`crates/eggpack-ci/src/tests.rs:1062-1065`, `m003d_reusable_render_is_tag_independent` (`crates/eggpack-ci/src/tests.rs:4715`)). +rendered workflow invokes exactly those two staging commands and never publishes +or clobbers (`crates/eggpack-ci/src/runner.rs:85-116`, argv mappings at +`:296-356`, staging tests at `crates/eggpack-ci/src/tests.rs:2043-2085` and +`:2219-2324`, `m003d_reusable_render_is_tag_independent` at `:4721`). ## Related deep dives diff --git a/crates/eggpack-core/src/builder.rs b/crates/eggpack-core/src/builder.rs index 5b826b9..64deba2 100644 --- a/crates/eggpack-core/src/builder.rs +++ b/crates/eggpack-core/src/builder.rs @@ -1733,7 +1733,7 @@ mod tests { let mut command = Command::new("sh"); command.args([ "-c", - "sh -c 'printf started > \"$1\"; while [ ! -e \"$2\" ]; do sleep 0.01; done; printf survived > \"$3\"' sh \"$1\" \"$2\" \"$3\" >/dev/null 2>&1 & exit 0", + "sh -c 'printf started > \"$1\"; while [ ! -e \"$2\" ]; do sleep 0.01; done; printf survived > \"$3\"' sh \"$1\" \"$2\" \"$3\" >/dev/null 2>&1 & while [ ! -e \"$1\" ]; do sleep 0.01; done; exit 0", "group-fixture", started_arg.as_str(), release_arg.as_str(), diff --git a/plans/implementation/ci-release-orchestration/003pb-process-group-descendant-fixture-startup-handshake-corrective.md b/plans/implementation/ci-release-orchestration/003pb-process-group-descendant-fixture-startup-handshake-corrective.md new file mode 100644 index 0000000..52811ec --- /dev/null +++ b/plans/implementation/ci-release-orchestration/003pb-process-group-descendant-fixture-startup-handshake-corrective.md @@ -0,0 +1,73 @@ +# CI/Release M003pb — Process-Group Descendant Fixture Startup Handshake Corrective + +Status: active + +Corrects: CI/Release M003pa, closed at implementation 329a3dfdb166580de4770b2c6b2f046358983003 and recorded in plans/closure/ci-release-orchestration/003pa-status.md. That closure remains historical and unchanged. + +Repository baseline (committed HEAD): eef4f9d0be4014dc0e76489de3f8fe9aedacadb9, branch feat/auto-20261117-f257539b. The current worktree also contains the separately requested lockfile update and architecture/github.md citation corrections; they are outside this corrective. + +Roadmap: plans/subsystems/ci-release-orchestration-roadmap.md + +Classification: infrastructure / test reliability. No production capability or process-runner behavior changes. + +## 1. Objective + +Make the live-descendant process-group regression deterministic by ensuring the group leader exits only after its background descendant has written the descendant-started marker. The descendant must then remain alive awaiting the existing release-file handshake until the test terminates the group. Preserve bounded waits and cleanup so a failed fixture cannot leak a process. + +## 2. Why ready and current evidence + +The user's request authorizes fixing the local validation failure and revalidating locally and through hosted CI. No schema, API, dependency, or cross-repository prerequisite is involved. Commit/push remains separately gated on explicit user authorization. + +The saved scripts/check-local.sh output exited 101 in the core unit tests at terminating_an_exited_leader_still_signals_a_live_group_descendant, failing the assertion that the descendant fixture had started (crates/eggpack-core/src/builder.rs:1776). The same focused test passed in isolation. The fixture starts a background shell and immediately exits its leader; the Rust test only then waits a bounded interval for the child's start marker. Scheduling delay can therefore yield a false test failure before the termination behavior is meaningfully exercised. There is no evidence that the production retry logic failed. After the handshake edit, the focused test passed five consecutive runs, formatting and git diff --check passed, and scripts/check-local.sh exited 0. Hosted CI remains pending explicit commit/push authorization. + +## 3. Invariants + +- The production process-group signal/retry implementation and its fail-closed behavior remain unchanged. +- The test proves the descendant is alive after leader exit and before group termination; a release marker still detects an incorrectly surviving descendant. +- Every wait remains bounded; cleanup runs on both success and failure paths; no process is intentionally orphaned. +- No public API, schema, dependency, workflow, release artifact, or publication behavior changes. + +## 4. Scope + +### In scope + +- Strengthen only the Unix test fixture in crates/eggpack-core/src/builder.rs so the leader waits for the descendant-start marker before exiting. +- Keep the existing bounded deadline, release-file handshake, termination assertions, and cleanup; adjust the timeout only if focused evidence demonstrates it is too tight. +- Recheck architecture citations into builder.rs by named construct after the edit; preserve line count if practical. The one-line replacement preserves the file line count, and no architecture citation targets the changed line or a range containing it; the nearby test anchor at builder.rs:1835 remains unchanged. +- Record this corrective in the CI/release roadmap, registry, and AGENTS.md without rewriting M003pa's plan or closure. + +### Out of scope + +- Any changes to production runner or signal semantics, the generated workflow, dependency versions, schemas, or user-facing release behavior. +- Package publication, tags, releases, or remote workflow dispatch. +- Commit or push until explicit user authorization is received. + +## 5. Ordered work packages + +1. Update the fixture command so the background descendant writes its ready marker and waits on the release file, while the group leader waits for the ready marker before exiting. +2. Run the focused regression repeatedly; confirm it observes a successful leader exit, a started live descendant, successful group termination, and no survivor marker. Confirm failure paths still terminate/release the fixture. +3. Reverify source citations, run formatting and the canonical local gate, then request authorization before pushing the exact candidate for hosted CI. + +## 6. Failure, restart, and compatibility + +If startup does not complete before the existing leader deadline, the test must terminate the group, release the fixture if needed, clean temporary files, and fail diagnostically rather than hang or leak. If the focused test exposes a production process-runner failure, stop this test-only corrective and register a separately scoped implementation plan; do not silently change runtime semantics here. There is no migration or compatibility impact. + +## 7. Exact verification + +Run the focused regression five consecutive times with this Bash loop: + +for attempt in 1 2 3 4 5; do cargo test -p eggpack-core --all-targets --all-features --locked terminating_an_exited_leader_still_signals_a_live_group_descendant -- --nocapture || exit; done + +Then run: + +cargo test -p eggpack-core --all-targets --all-features --locked group_signal -- --nocapture +cargo fmt --all -- --check +scripts/check-local.sh + +The canonical gate includes workspace checks, clippy, tests, docs, packaging, and the Rust 1.89 MSRV lane. Hosted CI on the exact implementation SHA (Linux stable, Linux 1.89.0, macOS, Windows) is required for closure, but may be triggered only after explicit authorization to commit and push. Passing older hosted runs on M003pa is not evidence for this candidate. + +## 8. Documentation, acceptance, and stop conditions + +The normative process-execution contract does not change; update the corrective plan, roadmap, registry, and current handoff only. Acceptance requires: the fixture cannot exit its leader before the ready marker exists; five consecutive focused runs pass without a survivor; all architecture citations into the touched source remain accurate; scripts/check-local.sh exits 0; and exact-SHA hosted CI passes all four lanes before closure. Stop if there is any process leak, focused failure, production behavior change, local-gate failure, inaccurate citation, red hosted lane, or missing authorization. Do not close the milestone until all required evidence is recorded. + +Closure evidence will be recorded at plans/closure/ci-release-orchestration/003pb-status.md, preserving this plan and all earlier closure records. diff --git a/plans/registry.md b/plans/registry.md index 8c06981..4c0d78f 100644 --- a/plans/registry.md +++ b/plans/registry.md @@ -97,7 +97,7 @@ Distribution predecessor evidence: | Release manifest | complete | `plans/subsystems/release-manifest-roadmap.md` | M001-M004 closed | M004 published the ADR-0006 `eggpack-manifest 0.1.1` patch release and wrote the compatibility record ADR-0006 §5.4 requires: crates.io, checksum `352c3e327159615b763298e911e239f1decc4a2c9e28c28be8ddd28e50515e37`, not yanked, from publication source commit `4ce4fb850ffa0e141f1a807b60c150173507a92b`, tagged `eggpack-manifest-v0.1.1`; hosted run `40263953007` green on all four lanes. Both narrowings of the published acceptance set — the ADR-0006 digest rule and the `3ef806f` document bound — are recorded as compatibility events. `0.1.0` and `0.1.1` remain published; `0.1.2` is the latest published manifest version (see `docs/release-process.md`). In the current source tree, the six workspace crates also carry version `0.1.2` but remain unpublished; these are separate release units despite matching version numbers. `eggup-eggpack` pins `=0.1.0` and is the named affected consumer; its bump is consumer-owned. M003 and M003a remain closed and no runtime/package requalification was performed or implied | | Build and qualification | complete | `plans/subsystems/build-qualification-roadmap.md` | M001-M009a closed | M009 closed on `eb77d19` + `8950eb9`: six of the nine operator commands the canonical specification names now exist (`check`, `plan`, `package`, `qualify`, `collect`, `manifest`). The new commands and the `ci _*` runners call the same core functions and the same serialization helpers, and the byte-identity between them is proven by test; `eggpack-core` needed no change, which is the strongest evidence that the new surface is thin wiring rather than a second pipeline. M008 closed on `7e7cb6a`: a declared compatibility floor is no longer silently dropped — every target declaring one carries a finite, closed floor verification status on both the `ReleasePlan` and the `QualificationEvidence`, computed by bounded independent ELF `GLIBC_x.y` inspection. M007 closed on `e3c6192`: one canonical bounded file-digest authority in `eggpack-core`, retiring core's three divergent digest implementations | | Bootstrap installers | complete | `plans/subsystems/bootstrap-installers-roadmap.md` | all Eggpack milestones closed | M002b implementation `88ddf2e`, hosted run `37806244313`; POSIX runtime remains on Unix and Windows PowerShell archive runtime passed. M003 completion definition remains satisfied. M003a closed on the ADR-0006 digest-fixture correction: five bootstrap fixtures used the all-zeros digest as a "wrong digest" placeholder, and CI M003l's tightened acceptance rule made that value illegal at manifest validation, so three tests aborted at setup and the installers' digest-mismatch coverage was silently not running | -| CI/release orchestration | complete | `plans/subsystems/ci-release-orchestration-roadmap.md` | M003pa closed; no milestone ready | M003k is closed at `plans/closure/ci-release-orchestration/003k-status.md`; M003p is closed at `plans/closure/ci-release-orchestration/003p-status.md`. M003pa is closed at `plans/closure/ci-release-orchestration/003pa-status.md` (implementation `329a3dfdb166580de4770b2c6b2f046358983003`; hosted run `44118309795` passed all four lanes on that exact SHA), correcting M003p by re-signalling after leader reaping and accepting only retry success or `ESRCH`. M003n is closed at `plans/closure/ci-release-orchestration/003n-status.md`: one drift comparison replaces three byte-identical copies, one staging-payload builder replaces two copies that were 85.5% identical, the 845-line `render_release_github_inner` is decomposed, and the CI crate's single 12,221-line source file became a 14-file module tree with a byte-identical public API and byte-identical rendered output. M003m closed on `bd73f5c` (cherry-picked `6a7cb4c`): the CI crate's consumer-validator execution now routes through the workspace's single bounded runner, which terminates the whole process group and bounds its reader-thread joins; the CI-local runner, its bounded readers, and its unbounded drain are deleted, and the CI production region contains no process-spawning code at all. M003l closed on `9cf0bf8` under accepted ADR-0006 (Option A): one SHA-256 hex acceptance rule, one host/target match rule, one floor-applicability rule, one exact-tag safety rule, and one file-digest authority | +| CI/release orchestration | active | `plans/subsystems/ci-release-orchestration-roadmap.md` | M003pb active; prior process-group behavior remains closed under M003pa | M003k is closed at `plans/closure/ci-release-orchestration/003k-status.md`; M003p is closed at `plans/closure/ci-release-orchestration/003p-status.md`. M003pa is closed at `plans/closure/ci-release-orchestration/003pa-status.md` (implementation `329a3dfdb166580de4770b2c6b2f046358983003`; hosted run `44118309795` passed all four lanes on that exact SHA), correcting M003p by re-signalling after leader reaping and accepting only retry success or `ESRCH`. M003n is closed at `plans/closure/ci-release-orchestration/003n-status.md`: one drift comparison replaces three byte-identical copies, one staging-payload builder replaces two copies that were 85.5% identical, the 845-line `render_release_github_inner` is decomposed, and the CI crate's single 12,221-line source file became a 14-file module tree with a byte-identical public API and byte-identical rendered output. M003m closed on `bd73f5c` (cherry-picked `6a7cb4c`): the CI crate's consumer-validator execution now routes through the workspace's single bounded runner, which terminates the whole process group and bounds its reader-thread joins; the CI-local runner, its bounded readers, and its unbounded drain are deleted, and the CI production region contains no process-spawning code at all. M003l closed on `9cf0bf8` under accepted ADR-0006 (Option A): one SHA-256 hex acceptance rule, one host/target match rule, one floor-applicability rule, one exact-tag safety rule, and one file-digest authority | | Eggup interoperability | complete | `plans/subsystems/eggup-interoperability-roadmap.md` | Eggpack M001a + Eggup adapter M001/M001a + Eggup M003 real-consumer adoption + Eggup M004 registry promotion all closed | The whole producer/consumer package seam is closed end to end; Release Manifest M003a closed the remaining Eggpack-side planning drift, and no Eggpack work remains on this seam; Eggwork Operations M003 remains producer-only | | Ecosystem adoption | blocked | `plans/subsystems/ecosystem-adoption-roadmap.md` | M001/M002/M003a/M003b closed; M004-M006 blocked | Closure `plans/closure/ecosystem-adoption/003b-status.md`. Paired plans: Eggpack `plans/implementation/ecosystem-adoption/003b-eggsearch-seven-target-eggpack-producer-cutover.md` (`325d44e`); Eggsearch `plans/implementation/eggpack-release-adoption/001-seven-target-eggpack-producer-cutover.md` (`377f9e8`, registry `6767062`). Implementation landed at `eggstack/eggsearch@eabbf80`; hosted run `37531104901` staged eggsearch `v0.4.2` as draft `405157598` with the exact 19-asset inventory, glibc 2.17 re-proven on all three GNU targets, ARMv7 required consumer validator green, Windows ARM64 required and green, and zero OIDC permission in generated jobs. Provenance attested the staged bytes in run `37561960304`; the draft was published 2026-10-07, closing the named condition | | Planning hygiene | complete | `plans/subsystems/planning-hygiene-roadmap.md` | M001-M003 closed | M003 closed at `plans/closure/planning-hygiene/003-status.md`: docs/evidence-only post-implementation-review baseline reconciliation — the `architecture/` citation set and line counts were re-based by symbol name against a measured tree SHA, the `ci-consumer-seam.md` and residual `cli.md` drift were closed, the `AGENTS.md` handoff was rewritten from the registry, the CLI command reference was verified, and the review chain was registered; empty production/package/workflow diff. M002 closed at `plans/closure/planning-hygiene/002-status.md`: docs/evidence-only post-M003a handoff reconciliation with an empty production/package/workflow diff; stale/duplicated control-surface text removed and the handoff bound to exact paired-plan paths | @@ -119,7 +119,7 @@ closed at `plans/closure/external-backend-evaluation/001-status.md` (disposition C — design prior art with selected output normalization; no production backend was adopted). -The table below is the **milestone-to-closure index**; it does not imply that every historical row is executable. No implementation plan is currently registered ready or active. +The table below is the **milestone-to-closure index**; it does not imply that every historical row is executable. CI/Release M003pb is the sole active implementation corrective; no other implementation plan is currently registered ready or active. | Subsystem | Milestone | Status | Plan | Dependencies | |---|---|---|---|---| @@ -156,6 +156,7 @@ The table below is the **milestone-to-closure index**; it does not imply that ev | CI orchestration | M003o renderer panic and digest diagnostics corrective | **closed** | `plans/implementation/ci-release-orchestration/003o-renderer-panic-and-digest-diagnostics.md` | Closure `plans/closure/ci-release-orchestration/003o-status.md`; implementation `b205de6`. The workflow renderer's generated-directory check was an assertion that a legal 128-character contract target could trip — it is now a refusal. Two digest diagnostics named a formatting problem where ADR-0006 refuses the well-formed all-zeros digest; they now name the actual reason. The CI crate's 85 public items and every rendered byte are unchanged | | CI orchestration | M003p process-group termination of an already-exited group corrective | **closed** | `plans/implementation/ci-release-orchestration/003p-process-group-termination-of-an-already-exited-group.md` | Closure `plans/closure/ci-release-orchestration/003p-status.md`; implementation `27cb16c`; hosted run `40263176191` green on all four lanes after four failing runs. The first hosted CI run of the 2026-10-23 review chain (`40207520563`) failed on macOS: two CI-crate tests reported `Failed(InterpreterUnavailable)` where they expected `Failed(OutputLimit)`. macOS refuses to signal a process group that holds the unreaped zombie of an exited child and reports the whole signal as `EPERM`; Linux signals it successfully, so the local gate and the Linux lanes never saw it. The runner now decides by observing whether the supervised child has exited rather than by reading the errno: a failed signal is benign when there is nothing left to terminate, and a group holding a live process that cannot be signalled still fails the run closed | | CI orchestration | M003pa process-group signal recheck corrective | **closed** | `plans/implementation/ci-release-orchestration/003pa-process-group-signal-recheck-corrective.md` | Closure `plans/closure/ci-release-orchestration/003pa-status.md`; implementation `329a3dfdb166580de4770b2c6b2f046358983003`; hosted run `44118309795` passed all four lanes on that exact SHA. After leader reaping, only retry success or `ESRCH` is benign; all other retry errors remain fail-closed | +| CI orchestration | M003pb live-descendant fixture startup handshake corrective | **active** | `plans/implementation/ci-release-orchestration/003pb-process-group-descendant-fixture-startup-handshake-corrective.md` | Closure `plans/closure/ci-release-orchestration/003pb-status.md` pending. The local gate initially failed once at fixture startup; after the test-only handshake correction, five focused runs and the canonical local gate passed. Hosted CI awaits explicit push authorization | | Bootstrap installers | M001 generator/direct fixtures | closed | `plans/implementation/bootstrap-installers/001-direct-installer-generator.md` | Closure `plans/closure/bootstrap-installers/001-status.md` | | CI orchestration | M001 CIPlan/GitHub renderer | closed | `plans/implementation/ci-release-orchestration/001-ci-plan-and-github-renderer.md` | Closure `plans/closure/ci-release-orchestration/001-status.md`; hosted run 36040032768 passes all lanes | | CI orchestration | M002 qualification/aggregation gates + drift CLI | closed historically; corrective closed | `plans/implementation/ci-release-orchestration/002-qualification-aggregation-gates-and-drift-cli.md` | Historical closure retained; executable generated-workflow defect corrected and qualified by M002a (`plans/closure/ci-release-orchestration/002a-status.md`) | @@ -337,6 +338,8 @@ The first hosted CI run of that chain found a further defect in the shared bound CI M003p process-group termination of an already-exited group [CLOSED: 27cb16c] | `--> CI M003pa process-group signal recheck [CLOSED: 329a3df] + | + `--> CI M003pb live-descendant fixture startup handshake [ACTIVE] ``` The obligation those two chains left outstanding is tracked by a third line: @@ -363,7 +366,7 @@ ADR-0006 [ACCEPTED 2026-10-23, Option A: digest acceptance set] ## Next handoff -No implementation milestone is currently ready or active. CI/Release M003pa is closed at implementation `329a3dfdb166580de4770b2c6b2f046358983003`; hosted run `44118309795` passed all four lanes on that exact SHA, with the closure record at `plans/closure/ci-release-orchestration/003pa-status.md`. The entries under "Planned / blocked work" require named dependency evidence or further planning before they become eligible. +CI/Release M003pb is active at `plans/implementation/ci-release-orchestration/003pb-process-group-descendant-fixture-startup-handshake-corrective.md` on baseline `eef4f9d0be4014dc0e76489de3f8fe9aedacadb9`. It addresses the one local-gate failure in the process-group fixture; five focused runs and the canonical local gate pass after the synchronization fix. Hosted CI requires explicit authorization to commit and push this candidate. No package publication, tag, release, or remote dispatch is authorized. The other entries under "Planned / blocked work" still require their named dependency evidence or further planning before they become eligible. Every closed milestone retains its closure record, so do not read this section as a shortlist: Contract M001/M002, Release Manifest M001/M001a/M002/M003/M003a, Build/Qualification M001–M006, CI M001/M002/M002a/M003a–M003pa (including M003k), Bootstrap M001/M002/M002a, Eggup Interoperability M001/M001a, Ecosystem M001/M002, External backend evaluation M001, and Planning Hygiene M001 all have accepted closure records under `plans/closure/`. Eggup Interoperability M003 is additionally closed downstream on the real Eggsact consumer. Per-subsystem detail is in `plans/subsystems/*-roadmap.md`; the milestone-to-closure index is the table above. diff --git a/plans/subsystems/ci-release-orchestration-roadmap.md b/plans/subsystems/ci-release-orchestration-roadmap.md index af5b6de..87920d2 100644 --- a/plans/subsystems/ci-release-orchestration-roadmap.md +++ b/plans/subsystems/ci-release-orchestration-roadmap.md @@ -1,6 +1,6 @@ # CI and Release Orchestration Roadmap -Status: complete +Status: active Long-term references: @@ -112,6 +112,8 @@ The first hosted CI run of that chain — run `40207520563` on `d4d5e43` — fai A review of M003p's group-empty assumption found that the supervised leader's exit does not prove the whole process group is empty: a surviving descendant may have closed its output pipes, and `EPERM` does not certify that the group has no live member. **M003pa** corrected that inference while preserving M003p's historical plan and closure. It keeps initial `ESRCH` benign; after another signal error, it reaps an exited leader and retries the group signal, accepting only retry success or retry `ESRCH`. A live/unverified leader or any other retry error remains a hard failure. M003pa closed on implementation `329a3dfdb166580de4770b2c6b2f046358983003`; exact hosted run `44118309795` passed Linux stable, Linux 1.89.0, macOS, and Windows. +A subsequent local-gate run failed once in the M003pa live-descendant test because the group leader exits immediately after launching the background child, before the child-start marker is guaranteed. The focused test passed in isolation, so this is a fixture-startup race rather than evidence against the production signal retry. **M003pb** is active to make the leader wait for the ready marker before exiting; it changes tests only and preserves the M003pa runtime contract. Five consecutive focused runs and the canonical local gate now pass; hosted CI remains pending explicit push authorization. + ## 8. Cross-cutting requirements Least privilege, pinned actions, explicit timeouts, concurrency controls, artifact provenance, no secret leakage in generated summaries. @@ -160,6 +162,7 @@ Build/Qualification M001-M006 and CI M001/M002/M002a/M003c-M003g are closed on t | M003o renderer panic and digest diagnostics corrective | closed | `plans/implementation/ci-release-orchestration/003o-renderer-panic-and-digest-diagnostics.md` | `plans/closure/ci-release-orchestration/003o-status.md`; implementation `b205de6` | The workflow renderer's generated-directory check was an assertion that a legal 128-character contract target could trip; it is now a refusal, so a caller-supplied contract cannot panic the renderer. Two digest diagnostics named a formatting problem where ADR-0006 refuses the well-formed all-zeros digest; they now name the actual reason. The CI crate's 85 public items and every rendered byte are unchanged | | M003p process-group termination of an already-exited group corrective | closed | `plans/implementation/ci-release-orchestration/003p-process-group-termination-of-an-already-exited-group.md` | `plans/closure/ci-release-orchestration/003p-status.md`; implementation `27cb16c`; hosted run `40263176191` green on all four lanes | The first hosted CI run of the 2026-10-23 review chain (`40207520563`) failed on macOS. The shared bounded runner treated a failed process-group signal as fatal, but macOS reports `EPERM` for a group holding the unreaped zombie of an exited child, where Linux signals it successfully. A failed signal is now benign when there is nothing left to terminate, decided by observing the child rather than by reading the errno; a group holding a live process that cannot be signalled still fails closed. The CI crate's 85 public items and every rendered byte are unchanged | | M003pa process-group signal recheck corrective | closed | `plans/implementation/ci-release-orchestration/003pa-process-group-signal-recheck-corrective.md` | `plans/closure/ci-release-orchestration/003pa-status.md`; implementation `329a3dfdb166580de4770b2c6b2f046358983003`; hosted run `44118309795` green on all four lanes | Corrects M003p's overbroad inference that an exited leader proves the group is empty. After leader reaping, only retry success or `ESRCH` is benign; other cases remain fail-closed | +| M003pb live-descendant fixture startup handshake corrective | active | `plans/implementation/ci-release-orchestration/003pb-process-group-descendant-fixture-startup-handshake-corrective.md` | `plans/closure/ci-release-orchestration/003pb-status.md` (pending) | Test-only corrective: synchronize group-leader exit with the descendant-ready marker; preserve bounded cleanup and M003pa process-runner semantics. Five consecutive focused runs and the full local gate passed. Awaiting authorized exact-SHA hosted CI | ## 13. 2026-10-08 corrective addendum — M003i