diff --git a/.skills/contract-and-manifest-surface/SKILL.md b/.skills/contract-and-manifest-surface/SKILL.md index 6702645..eda6231 100644 --- a/.skills/contract-and-manifest-surface/SKILL.md +++ b/.skills/contract-and-manifest-surface/SKILL.md @@ -39,16 +39,20 @@ 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.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 +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..30786cf 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` 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 \ @@ -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.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/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..db705bd 100644 --- a/architecture/manifest.md +++ b/architecture/manifest.md @@ -290,17 +290,21 @@ 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 - `352c3e327159615b763298e911e239f1decc4a2c9e28c28be8ddd28e50515e37`, not +- **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 + `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/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..6626d60 --- /dev/null +++ b/docs/release-process.md @@ -0,0 +1,88 @@ +# 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 | 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. | +| `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` +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 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, 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 + +- [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).