diff --git a/.opencode/skills/release-workflow/SKILL.md b/.opencode/skills/release-workflow/SKILL.md index 05f7349..119ea55 100644 --- a/.opencode/skills/release-workflow/SKILL.md +++ b/.opencode/skills/release-workflow/SKILL.md @@ -31,8 +31,9 @@ to ship in seam → adapter → leaf order. ## The exact-pin cascade -`eggup-eggpack` pins its Eggup dependencies exactly (`=0.2.0`). Every other -crate uses a caret requirement. Consequence: +The current `eggup-eggpack` workspace source pins its Eggup dependencies +exactly to `=0.2.1`; the published `eggup-eggpack 0.2.0` remains pinned to +`=0.2.0`. Every other workspace crate uses a caret requirement. Consequence: - A fix published to a caret consumer (`eggup-curl`, `eggup-eggfetch`, `eggup-service`) is inherited automatically on the next resolve — **within the diff --git a/AGENTS.md b/AGENTS.md index 539b7e8..ccd28d5 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -19,7 +19,7 @@ Full dependency rules and per-crate boundary rationale: - `crates/eggup-curl` — external-curl adapter, no embedded HTTP/TLS stack; depends only on `eggup-acquisition`. Must not know `eggup-eggfetch` exists. Transport composition lives in the seam, never in an adapter. - `crates/eggup-service` — manager-neutral lifecycle; depends only on `eggup-core` (+ `windows-args`, + `windows-service` on Windows). - `crates/eggup-archive` — bounded allowlisted local tar.gz/zip extraction; deps `tar`, `zip`, `flate2`, `fs_at`, `sha2`, dev-dep `eggup-core`. No transport, authenticity, or live-installation policy. -- `crates/eggup-eggpack` — optional leaf adapter for Eggpack ReleaseManifest v1; published (`=0.2.0`), depends on `core` + `archive` + `acquisition` (each pinned `=0.2.0`, local paths) + `eggpack-manifest = "=0.1.1"` from the registry; its exact dependency list is owned by `crates/eggup-eggpack/Cargo.toml`. Only crate allowed to touch producer types. +- `crates/eggup-eggpack` — optional leaf adapter for Eggpack ReleaseManifest v1; latest published version is `0.2.0` (its immutable package pins Eggup dependencies at `=0.2.0`). The workspace source candidate is `0.2.1` and its three local pins are `=0.2.1`; it depends on `core` + `archive` + `acquisition` (local paths) + `eggpack-manifest = "=0.1.2"` from the registry. Its exact dependency list is owned by `crates/eggup-eggpack/Cargo.toml`. Only crate allowed to touch producer types. - `crates/eggup-transport-footprint` — non-published (`publish = false`) footprint fixtures: `curl_only` / `eggfetch_only` / `dual` binaries behind `required-features`, with a source-level linkage-discipline guard in `tests/cross_link_guard.rs`. The isolated single-adapter configurations are built by `stable` and `macos` and checked at the MSRV floor by `msrv`; `windows-check` builds none of them. New crates must join `Cargo.toml` members, inherit the 5 shared keys (`version`, `edition`, `rust-version`, `license`, `repository`), and set `[lints] workspace = true`. The 7 library crates also carry `#![forbid(unsafe_code)]` and `#![deny(missing_docs)]`; `eggup-transport-footprint` is the sole exception (binary-only, no `lib.rs`, and no `README.md`/`CHANGELOG.md` — see §3.4 of the governance deep dive). @@ -35,7 +35,8 @@ gaps are in [`architecture/tooling-governance.md`](architecture/tooling-governan # + cargo clippy --workspace --all-targets --all-features --locked -- -D warnings # + cargo test --workspace --all-targets --all-features --locked # + cargo doc --workspace --no-deps --locked -# + cargo tree --workspace --locked # review step, not a gate +# + cargo tree --workspace --locked # executed for resolution; review boundary output manually +# + ./scripts/check-docs-truth.sh # source versions, published versions, and docs truth ``` `cargo tree` always exits 0 on a resolvable graph. Read it: the dependency-boundary rules are enforced by **human review only**. diff --git a/CHANGELOG.md b/CHANGELOG.md index 31ceacc..69a8f1f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -403,10 +403,12 @@ claims are made by any of these crates. ## Unreleased -Nothing in this section has been published. The current published baselines -are `0.2.0` for all seven published crates; `eggup-transport-footprint` is -`publish = false` and has no registry version. This dependency refresh does -not authorize publication or consumer migration. +Nothing in this section has been published. The latest published version is +`0.2.0` for all seven publishable crates; `eggup-transport-footprint` is +`publish = false` and has no registry version. This section includes M007 +dependency maintenance and M016 preparation of an `eggup-core 0.2.1` package +candidate. Neither records explicit upload authorization or a publication, and +no consumer migration has occurred. - `eggup-archive`: update the ZIP dependency from `6.0.0` to `9.6.1`, keeping explicit bounded extraction behavior and the public API unchanged. This @@ -417,6 +419,13 @@ not authorize publication or consumer migration. `eggup-eggpack 0.2.0` package. - Refresh compatible lockfile dependencies, including the patched Rustls, `rustls-webpki`, and `webpki-roots` versions. +- `eggup-core` M016: prepare the `0.2.1` package to include the three existing + authoritative contract documents. This is package-content-only; the Core + `0.2.0` registry artifact remains unchanged, and the candidate is not yet published. +- `eggup-eggpack`: align the three local exact pins to workspace source version + `=0.2.1`. The published `eggup-eggpack 0.2.0` archive and its `=0.2.0` pins + are unchanged; the `0.2.1` source candidate is not yet published, and no + Eggpack publication is authorized. ## 0.1.1 diff --git a/Cargo.lock b/Cargo.lock index d60f2b0..f93bfd2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -221,9 +221,9 @@ dependencies = [ [[package]] name = "eggpack-manifest" -version = "0.1.1" +version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "352c3e327159615b763298e911e239f1decc4a2c9e28c28be8ddd28e50515e37" +checksum = "4bbbe8d12026adf7c8e8ddaecbed0c6ac403a5621d4dd1ac9949f8daf8149a09" dependencies = [ "serde", "serde_json", @@ -231,11 +231,11 @@ dependencies = [ [[package]] name = "eggup-acquisition" -version = "0.2.0" +version = "0.2.1" [[package]] name = "eggup-archive" -version = "0.2.0" +version = "0.2.1" dependencies = [ "eggup-core", "flate2", @@ -247,7 +247,7 @@ dependencies = [ [[package]] name = "eggup-core" -version = "0.2.0" +version = "0.2.1" dependencies = [ "self-replace", "sha2", @@ -255,14 +255,14 @@ dependencies = [ [[package]] name = "eggup-curl" -version = "0.2.0" +version = "0.2.1" dependencies = [ "eggup-acquisition", ] [[package]] name = "eggup-eggfetch" -version = "0.2.0" +version = "0.2.1" dependencies = [ "eggfetch-core", "eggup-acquisition", @@ -273,7 +273,7 @@ dependencies = [ [[package]] name = "eggup-eggpack" -version = "0.2.0" +version = "0.2.1" dependencies = [ "eggpack-manifest", "eggup-acquisition", @@ -289,7 +289,7 @@ dependencies = [ [[package]] name = "eggup-service" -version = "0.2.0" +version = "0.2.1" dependencies = [ "eggup-core", "windows-args", @@ -298,7 +298,7 @@ dependencies = [ [[package]] name = "eggup-transport-footprint" -version = "0.2.0" +version = "0.2.1" dependencies = [ "eggup-acquisition", "eggup-curl", diff --git a/Cargo.toml b/Cargo.toml index 79d8235..7208e32 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,7 +12,7 @@ members = [ ] [workspace.package] -version = "0.2.0" +version = "0.2.1" edition = "2021" rust-version = "1.89" license = "MIT" diff --git a/architecture/acquisition.md b/architecture/acquisition.md index 9288ea8..44f4de9 100644 --- a/architecture/acquisition.md +++ b/architecture/acquisition.md @@ -46,11 +46,13 @@ Crates that depend on it: |---|---|---| | `eggup-eggfetch` | `0.2` (caret) + path | native HTTP adapter; implements `AcquisitionTransport` | | `eggup-curl` | `0.2` (caret) + path | external-process adapter; implements `AcquisitionTransport` | -| `eggup-eggpack` | `=0.2.0` exact pin + path | `use eggup_acquisition::{AcquisitionRequest, FetchLimits}` only (`eggup-eggpack/src/lib.rs:6`) — binds requests, never transports | +| `eggup-eggpack` | workspace source `=0.2.1` exact pin + path; published `0.2.0` retains `=0.2.0` | `use eggup_acquisition::{AcquisitionRequest, FetchLimits}` only (`eggup-eggpack/src/lib.rs:6`) — binds requests, never transports | | `eggup-transport-footprint` | `0.2` (caret) + path | `curl_only.rs` / `eggfetch_only.rs` use `AcquisitionRequest` + `FetchLimits`; `dual.rs` uses `ComposedTransport` + `CompositionPolicy` | The caret/exact-pin split is deliberate: adapters inherit a seam fix on the next -resolve, `eggup-eggpack` does not +resolve; the published `eggup-eggpack 0.2.0` exact pin does not. The workspace +source candidate has moved its local pin to `=0.2.1`, but that does not update +the immutable published package. ([acquisition-transport-roadmap.md](../plans/subsystems/acquisition-transport-roadmap.md#m010--eggup-acquisition-013-publication), M010). The `0.1.0` caret became `0.2` in the `0.2.0` publication train (Acquisition Transport M017): the seam's `0.2.0` is source-breaking @@ -589,8 +591,9 @@ caller set a `User-Agent`; that is the claim, and it is what M014 delivers. It is explicitly **not** placement parity: the two controls live in different types and are deliberately not aligned. `eggup-eggfetch`'s control lives in `EggfetchConfig`, whose `user_agent` is a public field of a public, -non-`#[non_exhaustive]` struct in a crate published at `0.2.0`; moving it -would be a source break for published consumers. `eggup-curl`'s control lives +non-`#[non_exhaustive]` struct in the `eggup-eggfetch 0.2.0` registry release; +moving it would be a source break for published consumers. `eggup-curl`'s +control lives on `CurlTransport` because `CurlConfig`'s fields are public and **not** `#[non_exhaustive]` (`curl/src/lib.rs:58-76`), so adding a field there would be source-breaking for every external struct-literal construction. Each diff --git a/architecture/core-transaction.md b/architecture/core-transaction.md index f88080a..a7a668c 100644 --- a/architecture/core-transaction.md +++ b/architecture/core-transaction.md @@ -838,7 +838,7 @@ What the tests actually demonstrate, by area: | Permission handling | `bound_source_preserves_executable_intent_that_the_fresh_stage_masks` (`lib.rs:485`), `bound_source_does_not_widen_a_non_executable_source` (`lib.rs:541`), `transaction_owned_state_is_owner_private` (`lib.rs:1624`) | Executable intent survives `0600` staging without widening a non-executable source; stage, backup, and lock modes | | Structural error classification | `fault_category_is_structural_not_message_substring` (`lib.rs:575`) | `Injected` is a real variant, not a substring match on message text | | Integrity ordering | `integrity_verification_precedes_candidate_validation` (`lib.rs:1231`), `unverified_integrity_none_cannot_commit` (`lib.rs:1578`), `hashes_known_bytes_and_parses_strict_sidecars` (`lib.rs:1209`) | No candidate runs before integrity; `NotRequired` cannot be committed through a real path; strict sidecar parsing | -| Bounded execution | `bounded_candidates_are_exact_and_environment_is_cleared` (`lib.rs:1302`), `bounded_runner_kills_timeouts_and_limits_output` (`lib.rs:1353`), `cross_member_identity_requires_bundle_agreement` (`lib.rs:1380`) | Exact stdout matching, environment clearing, kill-on-timeout, output cap, cross-member agreement | +| Bounded execution | `bounded_candidates_are_exact_and_environment_is_cleared` (`lib.rs:1399`), `bounded_runner_kills_timeouts_and_limits_output` (`lib.rs:1440`), `cross_member_identity_requires_bundle_agreement` (`lib.rs:1458`) | Exact stdout matching, environment clearing, kill-on-timeout, output cap, cross-member agreement | | Ownership | `ownership_owned_allows_replacement_and_reports_no_failure` (`lib.rs:1462`), `ownership_foreign_and_unknown_fail_closed_with_zero_mutation` (`lib.rs:1472`), `ownership_absent_create_policy_is_enforced` (`lib.rs:1487`), `ownership_flapping_between_preflight_and_lock_fails` (`lib.rs:1501`), `exact_digest_verifier_proves_ownership` (`lib.rs:1703`), `absent_only_verifier_never_authorizes_replacement` (`lib.rs:1720`) | All four ownership values, absent-policy enforcement, the double-call flap contract, and the relative power of the three verifiers | | Filesystem safety | `missing_parent_fails_without_creating_directories` (`lib.rs:1532`), `symlinked_parent_fails_closed` (`lib.rs:1544`), `destination_links_fail_immediately_before_backup` (`lib.rs:1154`), `staged_mutation_after_validation_fails_before_live_mutation` (`lib.rs:1556`) | Live parents are never created; symlinked parents and hard-linked/symlinked destinations fail closed; staged tampering is caught under the lock | | Commit and rollback | `commits_a_complete_multi_member_generation_and_releases_lock` (`lib.rs:646`), `partial_commit_failure_restores_every_old_member` (`lib.rs:889`), `rollback_removes_new_members_that_were_absent_before_commit` (`lib.rs:918`), `precommit_and_backup_failures_restore_old_state` (`lib.rs:1095`) | Generation-consistent commit, lock release on success, per-member restore, removal of members that were absent pre-commit | diff --git a/architecture/eggfetch-adapter.md b/architecture/eggfetch-adapter.md index 41d64cf..78408bd 100644 --- a/architecture/eggfetch-adapter.md +++ b/architecture/eggfetch-adapter.md @@ -466,8 +466,8 @@ here as well as in [acquisition.md](acquisition.md) §11.1. makes. The finding is closed at the capability level. - **Parity is capability parity, not placement parity.** This adapter's control lives in `EggfetchConfig`, whose `user_agent` is a public field of a public, - non-`#[non_exhaustive]` struct in a crate published at `0.2.0`; moving it - would be a source break for published consumers, so it stays where it is. + non-`#[non_exhaustive]` struct in the `eggup-eggfetch 0.2.0` registry release; + moving it would be a source break for published consumers, so it stays where it is. The curl adapter's control lives on `CurlTransport` because `CurlConfig`'s fields are public and **not** `#[non_exhaustive]`, so adding a field there would be source-breaking for every external struct-literal construction. diff --git a/architecture/eggpack-adapter.md b/architecture/eggpack-adapter.md index 84acae2..925d2b6 100644 --- a/architecture/eggpack-adapter.md +++ b/architecture/eggpack-adapter.md @@ -70,15 +70,15 @@ Runtime dependencies ([`Cargo.toml`](../crates/eggup-eggpack/Cargo.toml)): | Dependency | Constraint | Source | |---|---|---| -| `eggup-core` | `=0.2.0` | local path `../eggup-core` | -| `eggup-archive` | `=0.2.0` | local path `../eggup-archive` | -| `eggup-acquisition` | `=0.2.0` | local path `../eggup-acquisition` | -| `eggpack-manifest` | `=0.1.1` | crates.io registry | - -The three Eggup edges are exact-pinned so the published crate cannot silently -resolve a different published seam; the producer edge is registry-only so the -published crate has no VCS source requirement. Both facts are asserted as -tests, not just comments — see +| `eggup-core` | `=0.2.1` | local path `../eggup-core` | +| `eggup-archive` | `=0.2.1` | local path `../eggup-archive` | +| `eggup-acquisition` | `=0.2.1` | local path `../eggup-acquisition` | +| `eggpack-manifest` | `=0.1.2` | crates.io registry | + +The workspace-source candidate pins its three Eggup edges to `=0.2.1`; the +published `eggup-eggpack 0.2.0` artifact remains unchanged and pins `=0.2.0`. +The producer edge is registry-only so the published crate has no VCS source +requirement. Both facts are asserted as tests, not just comments — see [Testing approach](#testing-approach). The adapter has **no direct `sha2` runtime dependency**. The archive digest is @@ -123,7 +123,7 @@ unless stated otherwise. | Item | Line | Role | |---|---|---| -| `MAX_MANIFEST_BYTES: usize` | `lib.rs:61` | Maximum accepted UTF-8 JSON document size, re-exported from Eggpack's `MAX_DOCUMENT_BYTES` (`eggpack-manifest 0.1.1` `src/lib.rs:12`, value `1_048_576`, i.e. 1 MiB). The adapter re-exports rather than re-derives the bound, so the two cannot drift. | +| `MAX_MANIFEST_BYTES: usize` | `lib.rs:61` | Maximum accepted UTF-8 JSON document size, re-exported from Eggpack's `MAX_DOCUMENT_BYTES` (`eggpack-manifest 0.1.2` `src/lib.rs:12`, value `1_048_576`, i.e. 1 MiB). The adapter re-exports rather than re-derives the bound, so the two cannot drift. | ### Projection data types @@ -253,11 +253,12 @@ as the enforcement point: - `adapter_pins_registry_eggpack_manifest_and_no_producer_crates` ([`tests/interoperability.rs:972`](../crates/eggup-eggpack/tests/interoperability.rs)) - asserts the manifest contains `eggpack-manifest = "=0.1.1"` and that it + asserts the manifest contains `eggpack-manifest = "=0.1.2"` and that it contains no `git =`, `rev =`, `branch =`, or `tag =` edge; asserts all three - Eggup edges stay `=0.2.0` — derived from the adapter's own - `env!("CARGO_PKG_VERSION")` rather than a hardcoded literal, so the invariant - is "pinned to *our* version" and survives the next workspace bump; and asserts + Eggup edges match the adapter's own `env!("CARGO_PKG_VERSION")` rather than a + hardcoded literal, so the invariant is "pinned to *our* version" and survives + future workspace bumps (currently `=0.2.1` in this unpublished source + candidate); and asserts `eggpack-core`, `eggpack-contract`, and `eggpack-bootstrap` appear nowhere. - `adapter_source_claims_no_producer_or_service_authority` ([`tests/interoperability.rs:1023`](../crates/eggup-eggpack/tests/interoperability.rs)) diff --git a/architecture/overview.md b/architecture/overview.md index 0f5f91f..b5def91 100644 --- a/architecture/overview.md +++ b/architecture/overview.md @@ -43,9 +43,12 @@ manager, and producer concerns. ## Dependency graph Derived from the `crates/*/Cargo.toml` manifests. Arrows point from dependent to -dependency (compile-time direction). All 8 crates carry the workspace version -`0.2.0`; all seven library crates are published at `0.2.0` on crates.io. -The 0.2.0 line is one lockstep train published from a single source commit, +dependency (compile-time direction). All 8 crates carry workspace version +`0.2.1`. + +The seven published library crates still have latest registry version `0.2.0`; +this branch prepares Core M016 only, and no `0.2.1` package is published. The +`0.2.0` line is one lockstep train published from a single source commit, because `eggup-acquisition`'s next release is source-breaking and the workspace shares one version; per-crate checksums, package dependency graphs, and the registry-only fixture results are recorded in the five publication @@ -76,7 +79,7 @@ In plain dependency order, deepest first: 4. **`eggup-curl`** → `eggup-acquisition` only. External-process adapter, no HTTP/TLS stack. 5. **`eggup-service`** → `eggup-core` + `windows-args` (+ `windows-service` on Windows). Lifecycle adapters. 6. **`eggup-archive`** → `tar`, `zip`, `flate2`, `fs_at`, `sha2` (dev-dep `eggup-core`). Bounded local extraction. -7. **`eggup-eggpack`** → `eggup-core` + `eggup-archive` + `eggup-acquisition` (`=0.2.0`) + `eggpack-manifest =0.1.1`. Leaf producer adapter. +7. **`eggup-eggpack`** → `eggup-core` + `eggup-archive` + `eggup-acquisition` (`=0.2.1` in the workspace source candidate) + `eggpack-manifest =0.1.2`. Leaf producer adapter. 8. **`eggup-transport-footprint`** → `eggup-acquisition` + optional `eggup-curl` / `eggup-eggfetch`. **Non-published** footprint fixtures. Two consequences worth knowing before reviewing anything: @@ -100,21 +103,20 @@ binary-only with no `lib.rs`, so it relies on the workspace lint table for `unsafe_code` and has no `missing_docs` enforcement ([tooling-governance.md](tooling-governance.md) §3.4). -*Figures are a snapshot of the working tree at the time this table was -corrected. `eggup-core` and `eggup-curl` were being edited concurrently at -that moment, so their line counts need re-derivation once those edits land.* +LOC figures reflect the current checked-in Rust source; test counts are the +number of `#[test]` functions under each crate's `src/` and `tests/` trees. | Module (crate) | Role | LOC / tests | Key capabilities | Deep dive | |---|---|---|---|---| -| `eggup-core` | Policy-neutral local mechanics | 7181 / 110 | `InstallPlan` → `Prepared` → `Verified` → `Validated` → `Receipt`; SHA-256 integrity, bounded candidate execution, caller-proven `Absent \| Owned \| Foreign \| Unknown`, `MutationLock` + opt-in `StaleLockVerifier` recovery, locked ownership + staged-digest revalidation, commit/rollback, `commit_with_post_commit`, `InstallPlan::for_current_executable` self-update | [core-transaction.md](core-transaction.md) | -| `eggup-acquisition` | Transport-neutral seam, fixtures, composition | 2229 / 50 | `AcquisitionRequest`, `FetchLimits` + `effective()` = `min(request, adapter)`, `CancelFlag`, `Success \| NotFound` vs hard failure (`InvalidInput`/`Transport`/`Timeout`/`TooLarge`/`Cancelled`/`Io`/`Unavailable`), `AcquisitionTransport`, `FixtureTransport`, `ComposedTransport` + `CompositionPolicy`, exclusive 0600 temp + no-clobber promotion, URL redaction | [acquisition.md](acquisition.md) | -| `eggup-eggfetch` | Native HTTP adapter | 1229 / 31 | `EggfetchConfig::strict()` single policy point (timeout ceilings, redirect bound, explicit `ProxyDecision`, HTTP/1 + Rustls), status classification, streaming artifacts, sync-over-async bridge, category-only redacted errors | [eggfetch-adapter.md](eggfetch-adapter.md) | -| `eggup-curl` | External curl adapter | 2532 / 38 | `CurlConfig::strict()` single policy point (explicit executable, opt-in PATH discovery, connect/total ceilings, redirect/protocol/proxy explicit, `--disable` against curlrc), direct-process execution with kill/reap, same-request HTTP status capture, private temp + no-clobber promotion | [curl-adapter.md](curl-adapter.md) | -| `eggup-service` | Manager-neutral lifecycle | 11700 / 174 | `ServiceSpec` / `Ownership` / `LifecycleSnapshot`, `ServiceManager` + `TestDoubleManager`, `SystemExecutor` (allowlisted paths, cleared env, bounded I/O), `atomic_write_definition`, systemd / launchd / cron / Windows SCM adapters, `commit_with_lifecycle`, `UpdateRuntimeDisposition` + `plan_unix`/`plan_windows` + `DirectRuntimeControl` + `commit_with_disposition` | [service-lifecycle.md](service-lifecycle.md) | +| `eggup-core` | Policy-neutral local mechanics | 7180 / 110 | `InstallPlan` → `Prepared` → `Verified` → `Validated` → `Receipt`; SHA-256 integrity, bounded candidate execution, caller-proven `Absent \| Owned \| Foreign \| Unknown`, `MutationLock` + opt-in `StaleLockVerifier` recovery, locked ownership + staged-digest revalidation, commit/rollback, `commit_with_post_commit`, `InstallPlan::for_current_executable` self-update | [core-transaction.md](core-transaction.md) | +| `eggup-acquisition` | Transport-neutral seam, fixtures, composition | 2229 / 49 | `AcquisitionRequest`, `FetchLimits` + `effective()` = `min(request, adapter)`, `CancelFlag`, `Success \| NotFound` vs hard failure (`InvalidInput`/`Transport`/`Timeout`/`TooLarge`/`Cancelled`/`Io`/`Unavailable`), `AcquisitionTransport`, `FixtureTransport`, `ComposedTransport` + `CompositionPolicy`, exclusive 0600 temp + no-clobber promotion, URL redaction | [acquisition.md](acquisition.md) | +| `eggup-eggfetch` | Native HTTP adapter | 1229 / 30 | `EggfetchConfig::strict()` single policy point (timeout ceilings, redirect bound, explicit `ProxyDecision`, HTTP/1 + Rustls), status classification, streaming artifacts, sync-over-async bridge, category-only redacted errors | [eggfetch-adapter.md](eggfetch-adapter.md) | +| `eggup-curl` | External curl adapter | 2634 / 38 | `CurlConfig::strict()` single policy point (explicit executable, opt-in PATH discovery, connect/total ceilings, redirect/protocol/proxy explicit, `--disable` against curlrc), direct-process execution with kill/reap, same-request HTTP status capture, private temp + no-clobber promotion | [curl-adapter.md](curl-adapter.md) | +| `eggup-service` | Manager-neutral lifecycle | 11706 / 182 | `ServiceSpec` / `Ownership` / `LifecycleSnapshot`, `ServiceManager` + `TestDoubleManager`, `SystemExecutor` (allowlisted paths, cleared env, bounded I/O), `atomic_write_definition`, systemd / launchd / cron / Windows SCM adapters, `commit_with_lifecycle`, `UpdateRuntimeDisposition` + `plan_unix`/`plan_windows` + `DirectRuntimeControl` + `commit_with_disposition` | [service-lifecycle.md](service-lifecycle.md) | | `eggup-archive` | Bounded local archive extraction | 3717 / 59 | Explicit tar.gz/zip member allowlists, finite compressed/decompressed budgets, regular-file-only extraction, private root, no-clobber files, streamed SHA-256/size evidence, `ExtractedArchive` → `PersistedExtraction` → `BoundExtraction` handoff, internal `DirectoryGuard` cleanup | [archive-extraction.md](archive-extraction.md) | | `eggup-eggpack` | Optional Eggpack ReleaseManifest v1 adapter (leaf) | 855 / 71 | `project` / `project_json`, `bind_requests` (tightened byte caps), `default_destinations`, `materialize_artifact_set[_with_destinations]`, direct/bundle installable vs archive extraction-required, `core_plan_for_archive*`, `bind_archive_members`, `install_ids` | [eggpack-adapter.md](eggpack-adapter.md) | | `eggup-transport-footprint` | Non-published footprint fixtures | 45 / 2 | Three `required-features` binaries — `curl_only`, `eggfetch_only`, `dual` — that pin which transport stacks a consumer links; measures the cost of the transport choice | [transport-footprint.md](transport-footprint.md) | -| tooling + governance | Workspace, verification, planning | — | `scripts/check-local.sh` (fmt/clippy/test/doc/tree), CI (stable, MSRV 1.89, macOS, Windows), workspace lints, `plans/` ADRs + subsystem roadmaps + closure records + registry, and the agent-facing surface (`AGENTS.md` + `.opencode/skills/`) | [tooling-governance.md](tooling-governance.md) | +| tooling + governance | Workspace, verification, planning | — | `scripts/check-local.sh` (fmt/clippy/test/doc/tree + docs truth), CI (stable, MSRV 1.89, Linux systemd, macOS, Windows), workspace lints, `plans/` ADRs + subsystem roadmaps + closure records + registry, and the agent-facing surface (`AGENTS.md` + `.opencode/skills/`) | [tooling-governance.md](tooling-governance.md) | ### Source layout inside the larger crates @@ -259,12 +261,12 @@ Contract-level detail that belongs to no single crate: - [ADRs](../plans/adrs/README.md) — accepted decisions, superseded not rewritten - [closure records](../plans/closure/README.md) — requirement → evidence matrices -Publication state: `eggup-core`, `eggup-archive`, `eggup-acquisition`, -`eggup-curl`, `eggup-eggfetch`, `eggup-eggpack`, and `eggup-service` are -published at `0.2.0`. The 0.2.0 line is one lockstep train from a single -source commit; checksums and registry-only qualification are in the five -publication closure records under `plans/closure/`. The `v0.1.1`, `v0.1.2`, -and `v0.1.3` tags were not moved. +Registry snapshot: the latest published version for each of the seven library +crates (`eggup-core`, `eggup-archive`, `eggup-acquisition`, `eggup-curl`, +`eggup-eggfetch`, `eggup-eggpack`, and `eggup-service`) remains `0.2.0`. The +`0.2.0` line is one lockstep train from a single source commit; checksums and +registry-only qualification are in the five publication closure records under +`plans/closure/`. The `v0.1.1`, `v0.1.2`, and `v0.1.3` tags were not moved. `eggup-transport-footprint` is `publish = false` by design and has no registry version. CI never publishes; releases are manual — see [tooling-governance.md](tooling-governance.md) §8. diff --git a/architecture/service-lifecycle.md b/architecture/service-lifecycle.md index 3c05755..1f361a7 100644 --- a/architecture/service-lifecycle.md +++ b/architecture/service-lifecycle.md @@ -62,7 +62,7 @@ absolute paths. ## Position in the workspace ```text -eggup-core (sha2 only) +eggup-core (sha2; self-replace on Windows) ^ | eggup-service -> windows-args (=0.2.0) @@ -75,18 +75,18 @@ eggup-service -> windows-args (=0.2.0) **Windows-target dependency**, so the Linux/macOS build never links it. - `windows-args` is cross-platform and is used for the SCM command-line parser, so the ownership tests in `windows_scm.rs` run on every host. -- **The crate is current with the workspace.** It is on crates.io at - `0.1.0`, `0.1.1`, `0.1.2`, `0.1.3`, and `0.2.0`; the `0.1.2` service publication came - from `7fb84bc`, after the shared `v0.1.2` tag, which remains the core/archive - source tag. Service M011 published the `0.1.3` owned failed-systemd - quiescence correction from source `feb6ae5`; its exact checksum and registry - qualification are in the M011 closure. Service M017 published `0.2.0` from - the train's shared source commit `b612608` — the first publication that - carries the stdin-verdict fix the published `0.1.3` lacks; its checksum and - registry qualification are in the M017 closure record. - `eggup-core`, `eggup-archive`, `eggup-acquisition`, `eggup-eggfetch`, - `eggup-eggpack`, and `eggup-curl` are also published at `0.2.0`. - `eggup-transport-footprint` is `publish = false` +- **The crate's registry history.** `eggup-service` is available on crates.io at + `0.1.0`, `0.1.1`, `0.1.2`, `0.1.3`, and `0.2.0`. The `0.1.2` service + publication came from `7fb84bc`, after the shared `v0.1.2` tag, which remains + the core/archive source tag. Service M011 published the `0.1.3` owned + failed-systemd quiescence correction from source `feb6ae5`; its exact checksum + and registry qualification are in the M011 closure. Service M017 published + `0.2.0` from the train's shared source commit `b612608` — the first publication + that carries the stdin-verdict fix the published `0.1.3` lacks; its checksum + and registry qualification are in the M017 closure record. + + The latest registry version for each of the other six published library crates + remains `0.2.0`; `eggup-transport-footprint` is `publish = false` ([registry.md](../plans/registry.md)). - Dependency order position: 5th deepest in [overview.md's dependency graph](overview.md#dependency-graph). It is a leaf diff --git a/architecture/tooling-governance.md b/architecture/tooling-governance.md index b378013..ce87757 100644 --- a/architecture/tooling-governance.md +++ b/architecture/tooling-governance.md @@ -55,7 +55,7 @@ dependency of one crate silently activate in another. `[workspace.package]` (`Cargo.toml:14-19`) declares exactly five keys: ```toml -version = "0.2.0" +version = "0.2.1" edition = "2021" rust-version = "1.89" license = "MIT" @@ -95,13 +95,13 @@ review-critical. | Crate | Dependencies | Boundary rule | |---|---|---| -| `eggup-core` | `sha2 = "0.10"` | Sole dep. No transport, no service manager, no Eggpack | +| `eggup-core` | `sha2 = "0.10"`; Windows-only `self-replace = "1.5"` | Non-Windows graph remains `sha2` only; no transport, service manager, or Eggpack | | `eggup-acquisition` | *(none)* | Zero-dependency seam | | `eggup-eggfetch` | `eggup-acquisition`, `eggfetch-core`, `tokio`, `futures-util` | Must not know `eggup-curl` exists | | `eggup-curl` | `eggup-acquisition` | Must not know `eggup-eggfetch` exists; no embedded HTTP/TLS stack | | `eggup-archive` | `flate2`, `fs_at`, `sha2`, `tar`, `zip` (+ dev-dep `eggup-core`) | No transport, no authenticity, no live-install policy | | `eggup-service` | `eggup-core`, `windows-args` (+ `windows-service` on Windows) | Manager-neutral; `windows-service` is `cfg(windows)`-gated | -| `eggup-eggpack` | `eggup-core`, `eggup-archive`, `eggup-acquisition`, `eggpack-manifest = "=0.1.1"` (no direct runtime `sha2`) | Only crate allowed to touch producer types | +| `eggup-eggpack` | `eggup-core`, `eggup-archive`, `eggup-acquisition`, `eggpack-manifest = "=0.1.2"` (no direct runtime `sha2`) | Only crate allowed to touch producer types | | `eggup-transport-footprint` | `eggup-acquisition` (+ optional `eggup-curl` / `eggup-eggfetch`) | Composition lives in the seam, not in an adapter | Two boundary properties worth naming explicitly because a manifest edit can @@ -114,16 +114,18 @@ silently break them: (`crates/eggup-archive/Cargo.toml`). Core does not depend on archive; the arrow is one-way, and the test fixtures are what need the transaction types. -**Exact-pin asymmetry.** `eggup-eggpack` pins its in-workspace deps with exact -requirements (`=0.2.0`) and takes `eggpack-manifest` as `=0.1.1` from the -registry. Every other crate uses a caret requirement — and every one of them -now carries the literal `"0.2"`, which matches the workspace version -`0.2.0` (`eggup-eggfetch` → `eggup-acquisition`, `eggup-curl` → -`eggup-acquisition`, `eggup-service` → `eggup-core`, and all three in -`eggup-transport-footprint`). These resolve correctly through the path -dependencies, so the build is not broken. The pin style still differs by crate -for no stated reason, which means a version bump has to be reasoned about -per-crate rather than applied uniformly. +**Exact-pin asymmetry.** In the current workspace source candidate, +`eggup-eggpack` pins its in-workspace deps with exact requirements +(`=0.2.1`) and takes `eggpack-manifest` as `=0.1.2` from the registry. The +immutable published `eggup-eggpack 0.2.0` still pins its Eggup edges at +`=0.2.0` and its producer edge at `=0.1.0`. Every other current workspace crate uses a caret requirement, +`"0.2"`, which resolves against the local path packages at source version +`0.2.1` (`eggup-eggfetch`/`eggup-curl` → `eggup-acquisition`, +`eggup-service` → `eggup-core`, and the footprint fixtures). This local +alignment does not make the other six crates `0.2.1` registry releases; only +Core is in M016's publication scope. The distinct exact-pin behavior is +intentional for the adapter; +review downstream version coupling per release plan. **The `0.2.0` widening was load-bearing, not cosmetic.** The seam's `0.2.0` is source-breaking (`AcquisitionError::Io(String)` became @@ -249,7 +251,7 @@ and with `plans/registry.md`: | Assertion | What it checks | |---|---| | 1 | No checked surface (`docs/`, `README.md`, `AGENTS.md`, `architecture/*.md`) states a version literal outside the known set — the registry history unioned with the version the manifests declare. A literal the same clause explicitly disclaims ("not a `0.1.4`") is not a claim | -| 2 | No checked surface states the current version as a version other than the one the manifests declare — a "workspace version" paragraph must not name another version, "published at `X`" must name the current version (except in `docs/crates.md`, which records each crate's published history), and an exact pin `=X` may survive only where it states the eggpack exact-pin policy. The clause is anchored to the manifest version, so the next train needs no edit of it | +| 2 | Workspace-source version claims must match the manifest. Published-version claims are validated per crate against that crate's released changelog headings and `publish` flag, so a single-crate release preparation may legitimately have source `0.2.1` while the registry still has `0.2.0`. Exact pins are allowed where they describe the Eggpack pin policy | | 3 | No `docs/` file and no `architecture/*.md` deep dive states a normative rule without linking the contract that owns it. The owning deep dive is exempt: it is the owner, not a leak | | 4 | The root `CHANGELOG.md` `Unreleased` section does not contradict the published section. The published set is derived from the crate changelogs' version headings rather than a literal, so the clause keeps policing the next train without another edit | | 5 | No milestone carries two statuses in `plans/registry.md` — three-cell tables included, not only the four-cell ones — and the registry names its authoritative table | @@ -448,17 +450,18 @@ Entry point `plans/README.md`. Normative process document: |---|---|---| | Canonical long-term documents | 4 | `plans/000`–`003` | | Accepted ADRs | 5 | `plans/adrs/ADR-0001`…`0005` | -| Subsystem roadmaps | 7 | `plans/subsystems/*-roadmap.md` | -| Implementation plans | 62 | `plans/implementation//NNN-*.md` | -| Closure records | 61 | `plans/closure//NNN-status.md` | -| Closure directories | 8 | 7 subsystems plus `planning-closure-hygiene-corrective` | +| Subsystem roadmaps | 8 | `plans/subsystems/*-roadmap.md` | +| Implementation plans | 101 | `plans/implementation//NNN-*.md` (README excluded) | +| Closure records | 99 | `plans/closure//NNN-status.md` | +| Closure directories | 9 | 8 subsystems plus `planning-closure-hygiene-corrective` | The subsystem set is: `verified-update-core`, `acquisition-transport`, `archive-extraction`, `service-lifecycle`, `distribution-bootstrap`, -`consumer-adoption`, `eggpack-manifest-interoperability`. The eighth closure -directory, `planning-closure-hygiene-corrective`, is a docs-only workstream that -holds plans `001`–`012` and has no subsystem roadmap — it exists to reconcile -the registry and closure records against reality. +`consumer-adoption`, `eggpack-manifest-interoperability`, and +`transport-footprint`. The ninth closure directory, +`planning-closure-hygiene-corrective`, is a docs-only workstream that holds +plans `001`–`015` and has no subsystem roadmap — it exists to reconcile the +registry and closure records against reality. ### 6.2 Normative documents and their mutability @@ -655,24 +658,26 @@ Releases are manual, and this is recorded as a deliberate design decision in the registry: the M009 core/archive publication row states "manual only, no release CI added." -| Crate | Workspace version | On crates.io | Note | -|---|---|---|---| -| `eggup-core` | 0.2.0 | 0.1.0, 0.1.1, 0.1.2, 0.1.3, **0.2.0** | Sole dep `sha2`; transaction mechanics | -| `eggup-archive` | 0.2.0 | 0.1.2, 0.1.3, **0.2.0** | Bounded extraction | -| `eggup-acquisition` | 0.2.0 | 0.1.0, 0.1.1, 0.1.2, 0.1.3, **0.2.0** | Zero-dependency seam | -| `eggup-eggfetch` | 0.2.0 | 0.1.0, 0.1.1, 0.1.2, 0.1.3, **0.2.0** | Native HTTP adapter | -| `eggup-curl` | 0.2.0 | 0.1.2, **0.2.0** | External-curl adapter | -| `eggup-eggpack` | 0.2.0 | 0.1.2, 0.1.3, **0.2.0** | Only crate touching producer types; pins `=0.2.0` | -| `eggup-service` | 0.2.0 | 0.1.0, 0.1.1, 0.1.2, 0.1.3, **0.2.0** | Carries the stdin-verdict fix the published `0.1.3` lacks | -| `eggup-transport-footprint` | 0.2.0 | none (`publish = false`) | Binary-only fixture crate, non-publishable by design | - -All 8 crates share workspace version `0.2.0`; all seven library crates are on -crates.io at `0.2.0`. The 0.2.0 line is one lockstep train, published in -dependency order — the seam, then the adapters, then the leaf — because a -crate is published only after every in-workspace dependency it names is on the -registry. `eggup-curl` skipped `0.1.3` entirely: its next release after -`0.1.2` is `0.2.0`, because the seam's source break forced the whole -version-lockstep workspace forward. +| Crate | Workspace source version | Latest published | Published versions | Note | +|---|---|---|---|---| +| `eggup-core` | 0.2.1 | 0.2.0 | 0.1.0, 0.1.1, 0.1.2, 0.1.3, **0.2.0** | Non-Windows runtime graph is `sha2`; Windows also uses `self-replace`; M016 prepares contract-doc packaging | +| `eggup-archive` | 0.2.1 | 0.2.0 | 0.1.2, 0.1.3, **0.2.0** | Bounded extraction; current dependency refresh remains unpublished | +| `eggup-acquisition` | 0.2.1 | 0.2.0 | 0.1.0, 0.1.1, 0.1.2, 0.1.3, **0.2.0** | Zero-dependency seam | +| `eggup-eggfetch` | 0.2.1 | 0.2.0 | 0.1.0, 0.1.1, 0.1.2, 0.1.3, **0.2.0** | Native HTTP adapter | +| `eggup-curl` | 0.2.1 | 0.2.0 | 0.1.2, **0.2.0** | External-curl adapter | +| `eggup-eggpack` | 0.2.1 | 0.2.0 | 0.1.2, 0.1.3, **0.2.0** | Only crate touching producer types; source candidate pins `=0.2.1`; published `0.2.0` retains `=0.2.0` | +| `eggup-service` | 0.2.1 | 0.2.0 | 0.1.0, 0.1.1, 0.1.2, 0.1.3, **0.2.0** | Carries the stdin-verdict fix the published `0.1.3` lacks | +| `eggup-transport-footprint` | 0.2.1 | — | none (`publish = false`) | Binary-only fixture crate, non-publishable by design | + +All 8 crates share workspace source version `0.2.1`; crates.io still reports +`0.2.0` as the latest published version for all seven publishable crates. The +`0.2.1` source is an unpublished preparation candidate, not a registry release. +The `0.2.0` line is one historical lockstep train, published in dependency +order — the seam, then the adapters, then the leaf — because a crate is +published only after every in-workspace dependency it names is on the registry. +`eggup-curl` skipped `0.1.3` entirely: its next release after `0.1.2` is +`0.2.0`, because the seam's source break forced the whole version-lockstep +workspace forward. **The `0.1.x` line stays on crates.io.** No published version is withdrawn and no tag is moved; `v0.1.1`, `v0.1.2`, and `v0.1.3` remain where they are, @@ -702,11 +707,14 @@ Ordered by how expensive a miss is. `eggup-eggfetch` and `eggup-curl`? 4. **ADR-0004 classification** — is this work that belongs to Eggup, or producer work that belongs to Eggpack? `distribution-bootstrap` stays archived. -5. **Run `./scripts/check-local.sh`** and treat all 5 lines as gates, including - reading the `cargo tree` output rather than skimming past it (§4.2). +5. **Run `./scripts/check-local.sh`** and require every command to pass. The + script executes five Cargo commands plus the network-free documentation + check; `cargo tree` resolves the graph, but boundary compliance still needs + human review of its output (§4.2). 6. **Feature-gated change?** If the change lives behind a feature flag, check - which CI lane actually compiles it. Non-default features are built only by - `stable` and `macos` (§5.3) — not by `msrv`, not on Windows. + which CI lane actually compiles it. `stable` and `macos` build the three + footprint configurations; `msrv` checks all three at Rust 1.89; no Windows + lane builds them (§5.3). 7. **Platform-sensitive change?** Do not infer Windows or macOS behavior from a local Linux run. Confirm the relevant lane ran, and if the change is outside the curated Windows subset, treat Windows evidence as `not run` and say so. @@ -723,8 +731,9 @@ Ordered by how expensive a miss is. 11. **Registry updated** — status transitions, blockers, and next dependency transitions only; no plan detail duplicated. Roadmap status table reconciled. 12. **If publishing** — confirm it is a tracked publication milestone, that - `cargo package`/dry-run was qualified, that downstream exact pins - (`eggup-eggpack` → `=0.2.0`) are accounted for, and that CI still does not + `cargo package`/dry-run was qualified, that the downstream exact pins in the + current source and published adapter are accounted for (workspace `=0.2.1`; + published `eggup-eggpack 0.2.0` still uses `=0.2.0`), and that CI still does not publish. See the `release-workflow` skill. 13. **Did the prose move with the code?** If the change touched an enum, a variant, a CI lane, a dependency edge, a command, or a publication status, @@ -749,8 +758,9 @@ Ordered by how expensive a miss is. - [`../docs/`](../docs/README.md) — user-facing adoption guidance (quickstart, crate choice, releases). Non-normative; points at the contracts rather than restating them (§7.4). -- [core-transaction.md](core-transaction.md) — the crate whose sole `sha2` - dependency makes the boundary in §2.4 checkable. +- [core-transaction.md](core-transaction.md) — the crate whose non-Windows + dependency graph contains only `sha2` and whose Windows graph also includes + `self-replace`; the target-specific boundary is in §2.4. - [acquisition.md](acquisition.md) — the zero-dependency seam both adapters and the footprint fixtures depend on. - [eggfetch-adapter.md](eggfetch-adapter.md), [curl-adapter.md](curl-adapter.md) @@ -762,7 +772,9 @@ Ordered by how expensive a miss is. - [transport-footprint.md](transport-footprint.md) — the feature-gated binaries that `msrv` and `windows-check` do not build (§5.3). - [eggpack-adapter.md](eggpack-adapter.md) — the only crate allowed to depend - on `eggpack-manifest` and to pin `=0.2.0` exactly. + on `eggpack-manifest`; the workspace-source candidate pins its Eggup edges + at `=0.2.1` and its producer edge at `=0.1.2`. Published `0.2.0` retains + its Eggup `=0.2.0` and producer `=0.1.0` pins. - [ADR-0005](../plans/adrs/ADR-0005-local-archive-extraction-safety-contract.md) — the archive safety contract; the ADR to read before touching `eggup-archive` boundaries. @@ -828,14 +840,11 @@ Corrected in the doc-hygiene pass recorded in the workspace history: | The same pass reconciled all seven roadmap **status tables** correctly but missed the milestone **bodies** and header `Status:` lines: acquisition M010 and core M012 read `Status: ready.`, archive M004 read `Status: blocked on Acquisition M010`, Eggpack M005 read `Status: blocked on Acquisition M010, Core M013, and Archive M004` | Each body entry reconciled to its closure record, and the acquisition/core headers — which still advertised M010/M011 and M012/M013 as open — rewritten. The asymmetry was real and within single files: M011 and M013 bodies were updated by the closing commit while M010 and M012 in the *same* files were missed. A drift class was added for reconciling a summary table while leaving its prose behind | | `consumer-adoption-roadmap.md` held Gregg M004 and EggPool M007 as `blocked` in both prose and status-table rows, gated on "Core M012 + M013; Acquisition M010" | All four gates closed 2026-10-06. Both rows now read `authorable`, with the published `eggup-core 0.1.3` / `eggup-acquisition 0.1.3` named as the satisfied evidence. They stay *intentionally unwritten* — no plan file exists, which is a separate fact from being blocked | -### Open — code-level, needs a milestone, not a doc edit +### Open — tracked residuals and ongoing corrections | Location | Drift | Why it is not fixed here | |---|---|---| -| `crates/eggup-transport-footprint/Cargo.toml:16,24,29` | **Closed 2026-10-24.** The pins were `"0.1.0"` for `eggup-acquisition`, `eggup-curl`, and `eggup-eggfetch` while `[workspace.package] version` was `0.1.3` | Resolved by the `0.2.0` publication train: all three are now `"0.2"`, matching the workspace `0.2.0`. The seam's `0.2.0` is source-breaking, so the caret had to widen or a consumer's lockfile could resolve a seam the adapters cannot compile against | -| `plans/implementation/**` | 14 of 62 plans ship fewer than 16 sections and 17 omit a `Repository baseline:` line; `Primary class:` is frequently outside the template enum (only 2 of 62 use a single template value verbatim) | Historical records. The template is `plans/implementation/README.md`; conforming old plans is not worth rewriting evidence. New plans should follow the template exactly | -| `crates/eggup-service/Cargo.toml:24` and the footprint manifest | **Closed 2026-10-24.** Both required peers at caret `0.1.0` while the workspace was at `0.1.3`, so they did **not** participate in the exact-pin cascade that §8 describes for `eggup-eggpack` | The service manifest now requires `eggup-core = "0.2"`. That widening was load-bearing, not cosmetic: leaving it at `^0.1.0` would let a consumer's lockfile resolve `eggup-core 0.1.3`, which lacks `stdin_data` and cannot compile `eggup-service 0.2.0`. The footprint manifest's three requirements moved to `"0.2"` for the same reason. The exact-pin style that §8 describes for `eggup-eggpack` is unchanged and still applies to it alone | -| `architecture/transport-footprint.md` §"Testing approach" and the CI matrix in §5 | **Closed 2026-10-24.** No CI job built the isolated single-adapter configurations (`--no-default-features --features curl`, `--features eggfetch`): every lane that built the bins built only the dual configuration, so the claim "links no Eggfetch code" was never verified by CI. The crate also had no `plans/subsystems/` roadmap | Both halves are now done. The `stable` lane builds all three isolated configurations (`ci.yml:26-28`), the `msrv` lane checks all three at the 1.89 floor (`ci.yml:52-54`), and the `macos` lane builds the `curl` and `eggfetch` configurations (`ci.yml:97-98`), so "links no Eggfetch code" is machine-checked on every lane that carries it. `plans/subsystems/transport-footprint-roadmap.md` exists and owns the crate. Registry finding 12 was closed by **Transport Footprint M001** (`plans/closure/transport-footprint/001-status.md`), and this row had simply not been reconciled to that closure | -| `crates/eggup-core/Cargo.toml:15-19` (`exclude = ["docs/", …]`) | `crates/eggup-core/docs/{domain,verification,transaction}.md` — the crate's authoritative contract docs — are excluded from the published package, so a consumer on crates.io or docs.rs never receives the contract it is bound to | Removing `"docs/"` from `exclude` is a manifest change with no consumer effect until `eggup-core` is republished — **and that republication has now happened**: the published `eggup-core 0.2.0` ships *with* the exclusion, so the consumer impact is live for the current published line, not hypothetical. Owned by **Verified Update Core M016 — `eggup-core` contract-doc packaging** (`plans/subsystems/verified-update-core-roadmap.md`): it must remove `"docs/"` from `exclude`, qualify `cargo package -p eggup-core --list`, and authorize the republication that delivers the docs. Recorded as open finding 14 and named as the follow-on of planning C013 at `plans/closure/planning-closure-hygiene-corrective/013-status.md` | +| `plans/implementation/**` | Some older plans predate or do not fully match the current 16-section template | Historical records. The template is `plans/implementation/README.md`; conforming old plans is not worth rewriting evidence. New plans should follow the template exactly | +| `crates/eggup-core/Cargo.toml` package selection | `crates/eggup-core/docs/{domain,verification,transaction}.md` are the authoritative contract docs. The active `0.2.1` source candidate no longer excludes `docs/`, but package-list and artifact proofs are still pending; the immutable published `eggup-core 0.2.0` package still lacks them | Owned by **Verified Update Core M016** (`plans/implementation/verified-update-core/016-eggup-core-contract-doc-packaging.md`). Finding 14 remains open until a published artifact and registry readback prove the documents are present. Explicit maintainer upload authorization is still required. | | `plans/closure/eggpack-manifest-interoperability/004a-status.md` | Still asserts `git log 39ff626..HEAD -- crates/` **is empty**; it now returns 4 commits | Deliberate. The record is an immutable 2026-10-01 snapshot, and rewriting it would edit historical evidence. The `registry.md` line that made the same claim *as a live status statement* is corrected; the closure record is not | | `plans/archive/` | Holds only its own `README.md`; no superseded material has ever been moved there, though `plans/README.md` describes it as retained-for-traceability | A policy directory with no content is not wrong. Pruning it would remove a documented mechanism; populating it is a separate authoring decision | diff --git a/architecture/transport-footprint.md b/architecture/transport-footprint.md index 82ccdc9..2a0b15b 100644 --- a/architecture/transport-footprint.md +++ b/architecture/transport-footprint.md @@ -52,13 +52,13 @@ separately exposed — the crate's *only* public feature surface is `curl`, | Crate | Manifest requirement | Resolved version | Note | |---|---|---|---| -| `eggup-acquisition` | `"0.2"` (path) | `0.2.0` | The seam, and the only unconditional dependency | -| `eggup-curl` | `"0.2"` (path, optional) | `0.2.0` | External-process adapter | -| `eggup-eggfetch` | `"0.2"` (path, optional) | `0.2.0` | Native in-process HTTP/TLS adapter | +| `eggup-acquisition` | `"0.2"` (path) | `0.2.1` | The seam, and the only unconditional dependency | +| `eggup-curl` | `"0.2"` (path, optional) | `0.2.1` | External-process adapter | +| `eggup-eggfetch` | `"0.2"` (path, optional) | `0.2.1` | Native in-process HTTP/TLS adapter | The requirement literals above are the ones in [`crates/eggup-transport-footprint/Cargo.toml`](../crates/eggup-transport-footprint/Cargo.toml); -the resolved versions are the current workspace version (`0.2.0`). The manifest +the resolved versions are the current workspace source version (`0.2.1`). The manifest is authoritative and is not changed by this document. It inherits the 5 shared workspace keys (`version`, `edition`, `rust-version`, @@ -97,10 +97,12 @@ until it lands in a consumer's dependency graph and binary size. These binaries are the fixture that makes the cost visible. Measured on this workspace at commit `ae9b47a` (macOS, `debug` profile, exact -commands in [Verification](#verification)). The workspace version has since -advanced to `0.2.0`; the counts below are the dated capture and are -not re-derived — the commands in [Verification](#verification) reproduce them at -the current baseline. +commands in [Verification](#verification)). The current workspace source +candidate is `0.2.1`; the counts and version labels below remain the dated +capture and are not re-derived. The commands in [Verification](#verification) +reproduce the build configurations at the current baseline, but may not produce +the same counts or binary sizes; the displayed dependency-tree labels describe +the captured `0.2.0` graph. | Configuration | Unique crates in the resolved tree | `curl_only` / `eggfetch_only` / `dual` binary size | |---|---|---| diff --git a/crates/eggup-archive/README.md b/crates/eggup-archive/README.md index f7b4365..495737f 100644 --- a/crates/eggup-archive/README.md +++ b/crates/eggup-archive/README.md @@ -74,8 +74,8 @@ the foreign replacement stays untouched. Member handles are single-owner and move-only: never clone a bound handle and assume an independent cursor. Supported order is stage, then close/consume handles, then handle-authorized cleanup. A failed bound stage copy never reopens the recorded path as -fallback. Egress M006 and Eggpack M002 stay blocked until M001d closes with -hosted qualification. +fallback. Egress M006 and Eggpack M002 are closed: M001d delivered the handle-backed +source handoff, with hosted qualification recorded in their closure records. This crate performs no network access, authenticity policy, external process invocation, live installation mutation, metadata restoration, or service diff --git a/crates/eggup-core/CHANGELOG.md b/crates/eggup-core/CHANGELOG.md index b006260..5892d3d 100644 --- a/crates/eggup-core/CHANGELOG.md +++ b/crates/eggup-core/CHANGELOG.md @@ -424,8 +424,15 @@ changelogs for changes that cross the boundary. ## Unreleased -Nothing in this section has been published. `0.2.0` is the published baseline on -crates.io, and no publication milestone authorizes these entries. +Nothing in this section has been published. `0.2.0` is the latest published +baseline on crates.io. M016 prepares package content for target version +`0.2.1`; no explicit upload authorization or publication is recorded. + +- **Package-content preparation (M016; target `0.2.1`, unpublished).** Include + the existing `docs/domain.md`, `docs/verification.md`, and `docs/transaction.md` + in the package. The Rust API, runtime behavior, and dependency graph do not + change, and no consumer migration is required. The immutable Core `0.2.0` + archive still lacks these files. ## 0.1.3 — 2026-10-06 diff --git a/crates/eggup-core/Cargo.toml b/crates/eggup-core/Cargo.toml index fd89658..0cafb33 100644 --- a/crates/eggup-core/Cargo.toml +++ b/crates/eggup-core/Cargo.toml @@ -13,7 +13,6 @@ authors = ["David Bowman"] keywords = ["update", "installer", "integrity", "rollback", "deployment"] categories = ["os", "filesystem"] exclude = [ - "docs/", "tests/", "benches/", ] diff --git a/crates/eggup-core/src/lib.rs b/crates/eggup-core/src/lib.rs index b912ea2..af0afdc 100644 --- a/crates/eggup-core/src/lib.rs +++ b/crates/eggup-core/src/lib.rs @@ -90,6 +90,93 @@ mod tests { ExistingAsOwnedVerifier } + #[cfg(unix)] + struct NativeBoundedTestHelper { + _root: InstallationRoot, + executable: std::path::PathBuf, + } + + #[cfg(unix)] + fn native_bounded_test_helper() -> &'static Path { + static HELPER: std::sync::OnceLock = std::sync::OnceLock::new(); + HELPER + .get_or_init(|| { + let root = InstallationRoot::new().expect("create native-helper root"); + let source = root.path().join("bounded_test_helper.rs"); + let executable = root.path().join("bounded-test-helper"); + fs::write(&source, BOUNDED_TEST_HELPER_SOURCE) + .expect("write native bounded-test helper source"); + + let rustc = std::env::var_os("RUSTC").unwrap_or_else(|| "rustc".into()); + let output = std::process::Command::new(rustc) + .arg("--edition=2021") + .arg(&source) + .arg("-o") + .arg(&executable) + .output() + .expect("run rustc to build the native bounded-test helper"); + assert!( + output.status.success(), + "native bounded-test helper compilation failed: {}", + String::from_utf8_lossy(&output.stderr) + ); + + NativeBoundedTestHelper { + _root: root, + executable, + } + }) + .executable + .as_path() + } + + #[cfg(unix)] + fn bounded_test_helper_copy(root: &InstallationRoot, name: &str) -> std::path::PathBuf { + use std::os::unix::fs::PermissionsExt; + + let path = root.path().join(name); + fs::copy(native_bounded_test_helper(), &path) + .expect("copy native helper into private fixture root"); + fs::set_permissions(&path, fs::Permissions::from_mode(0o755)) + .expect("set native helper executable permissions"); + path + } + + #[cfg(unix)] + const BOUNDED_TEST_HELPER_SOURCE: &str = r#" +use std::env; +use std::io::{self, Write}; +use std::path::Path; +use std::thread; +use std::time::Duration; + +fn main() { + let executable = env::args_os().next().expect("argv[0]"); + let name = Path::new(&executable) + .file_name() + .and_then(|name| name.to_str()) + .expect("UTF-8 helper mode name"); + let stdout = io::stdout(); + let mut output = stdout.lock(); + match name { + "identity-main" => output.write_all(b"eggup 1.2.3\n").expect("write identity"), + "secret" => { + let inherited = env::var_os("PATH").is_some() + || env::var_os("EGGUP_SECRET").is_some(); + output + .write_all(if inherited { b"present" } else { b"unset" }) + .expect("write environment result"); + } + "timeout" => thread::sleep(Duration::from_secs(2)), + "noisy" => output.write_all(b"1234567890").expect("write noisy output"), + "bundle-main" | "bundle-helper" => { + output.write_all(b"bundle 9\n").expect("write bundle identity"); + } + other => panic!("unknown bounded-test helper mode: {other}"), + } +} +"#; + fn commit_verified( prepared: super::PreparedTransaction, verifier: &dyn OwnershipVerifier, @@ -1299,19 +1386,25 @@ mod tests { #[cfg(unix)] #[test] - fn bounded_candidates_are_exact_and_environment_is_cleared() { - use std::os::unix::fs::PermissionsExt; + fn bounded_runner_test_helper_is_native_executable() { + let executable = fs::read(native_bounded_test_helper()).expect("read native helper"); + assert!( + !executable.starts_with(b"#!"), + "bounded-test helper must not be a script" + ); + } + #[cfg(unix)] + #[test] + fn bounded_candidates_are_exact_and_environment_is_cleared() { let inputs = InstallationRoot::new().unwrap(); let install = InstallationRoot::new().unwrap(); - let script = inputs - .write_file("main", b"#!/bin/sh\nprintf 'eggup 1.2.3\\n'\n") - .unwrap(); - fs::set_permissions(&script, fs::Permissions::from_mode(0o755)).unwrap(); + let script = bounded_test_helper_copy(&inputs, "identity-main"); let digest = super::hash_file(&script).unwrap(); - let member = ArtifactMember::new(MemberId::new("main").unwrap(), script, "bin/main") - .unwrap() - .with_integrity(super::IntegrityRequirement::Sha256(digest)); + let member = + ArtifactMember::new(MemberId::new("main").unwrap(), script, "bin/identity-main") + .unwrap() + .with_integrity(super::IntegrityRequirement::Sha256(digest)); fs::create_dir_all(install.path().join("bin")).unwrap(); let verified = InstallPlan::new( ProductId::new("eggup").unwrap(), @@ -1336,13 +1429,7 @@ mod tests { TransactionDisposition::Committed ); - let secret_script = inputs - .write_file( - "secret", - b"#!/bin/sh\nprintf '%s' \"${EGGUP_SECRET-unset}\"\n", - ) - .unwrap(); - fs::set_permissions(&secret_script, fs::Permissions::from_mode(0o755)).unwrap(); + let secret_script = bounded_test_helper_copy(&inputs, "secret"); let output = super::run_bounded(&super::CommandSpec::new(secret_script)).unwrap(); assert!(output.success(), "bounded candidate output: {output:?}"); assert_eq!(output.stdout(), b"unset"); @@ -1351,18 +1438,9 @@ mod tests { #[cfg(unix)] #[test] fn bounded_runner_kills_timeouts_and_limits_output() { - use std::os::unix::fs::PermissionsExt; - let fixture = InstallationRoot::new().unwrap(); - let timeout_script = fixture - .write_file("timeout", b"#!/bin/sh\nsleep 2\n") - .unwrap(); - let noisy_script = fixture - .write_file("noisy", b"#!/bin/sh\nprintf '1234567890'\n") - .unwrap(); - for path in [&timeout_script, &noisy_script] { - fs::set_permissions(path, fs::Permissions::from_mode(0o755)).unwrap(); - } + let timeout_script = bounded_test_helper_copy(&fixture, "timeout"); + let noisy_script = bounded_test_helper_copy(&fixture, "noisy"); let timed_out = super::run_bounded( &super::CommandSpec::new(timeout_script).timeout(Duration::from_millis(20)), ) @@ -1378,19 +1456,10 @@ mod tests { #[cfg(unix)] #[test] fn cross_member_identity_requires_bundle_agreement() { - use std::os::unix::fs::PermissionsExt; - let inputs = InstallationRoot::new().unwrap(); let install = InstallationRoot::new().unwrap(); - let main = inputs - .write_file("main", b"#!/bin/sh\nprintf 'bundle 9\\n'\n") - .unwrap(); - let helper = inputs - .write_file("helper", b"#!/bin/sh\nprintf 'bundle 9\\n'\n") - .unwrap(); - for path in [&main, &helper] { - fs::set_permissions(path, fs::Permissions::from_mode(0o755)).unwrap(); - } + let main = bounded_test_helper_copy(&inputs, "bundle-main"); + let helper = bounded_test_helper_copy(&inputs, "bundle-helper"); let main_digest = super::hash_file(&main).unwrap(); let helper_digest = super::hash_file(&helper).unwrap(); let verified = InstallPlan::new( @@ -1398,12 +1467,16 @@ mod tests { ReleaseId::new("r9").unwrap(), install.path(), ArtifactSet::new(vec![ - ArtifactMember::new(MemberId::new("main").unwrap(), main, "bin/main") + ArtifactMember::new(MemberId::new("main").unwrap(), main, "bin/bundle-main") .unwrap() .with_integrity(super::IntegrityRequirement::Sha256(main_digest)), - ArtifactMember::new(MemberId::new("helper").unwrap(), helper, "bin/helper") - .unwrap() - .with_integrity(super::IntegrityRequirement::Sha256(helper_digest)), + ArtifactMember::new( + MemberId::new("helper").unwrap(), + helper, + "bin/bundle-helper", + ) + .unwrap() + .with_integrity(super::IntegrityRequirement::Sha256(helper_digest)), ]) .unwrap(), ) diff --git a/crates/eggup-eggpack/CHANGELOG.md b/crates/eggup-eggpack/CHANGELOG.md index 9a85010..815bb18 100644 --- a/crates/eggup-eggpack/CHANGELOG.md +++ b/crates/eggup-eggpack/CHANGELOG.md @@ -52,12 +52,20 @@ evidence only. ## Unreleased -Unpublished dependency maintenance only; package version remains `0.2.0`. -No publication or consumer migration is authorized by this milestone. +Unpublished dependency maintenance and workspace pin alignment only. The +latest published `eggup-eggpack` remains `0.2.0`; local source uses workspace +version `0.2.1`. No Eggpack publication or consumer migration is authorized. - Advance the exact registry pin for `eggpack-manifest` from `=0.1.0` to `=0.1.1`, and update the test ZIP dependency from `6.0` to `9.6.1`. The adapter API and projected behavior remain unchanged. +- Eggpack M008 separately advances the workspace-source exact registry pin + from `=0.1.1` to `=0.1.2`, the latest published release at this source + baseline. Its production source is byte-identical to 0.1.1, so the adapter + API and projected behavior remain unchanged. +- Align the three local exact Eggup dependency pins to `=0.2.1` for the + workspace source version. The published `eggup-eggpack 0.2.0` package keeps + its original `=0.2.0` pins and is not republished by Core M016. ## 0.1.3 — 2026-10-06 diff --git a/crates/eggup-eggpack/Cargo.toml b/crates/eggup-eggpack/Cargo.toml index 54e3ec3..88b82d8 100644 --- a/crates/eggup-eggpack/Cargo.toml +++ b/crates/eggup-eggpack/Cargo.toml @@ -17,10 +17,10 @@ categories = ["development-tools"] workspace = true [dependencies] -eggup-core = { version = "=0.2.0", path = "../eggup-core" } -eggup-archive = { version = "=0.2.0", path = "../eggup-archive" } -eggup-acquisition = { version = "=0.2.0", path = "../eggup-acquisition" } -eggpack-manifest = "=0.1.1" +eggup-core = { version = "=0.2.1", path = "../eggup-core" } +eggup-archive = { version = "=0.2.1", path = "../eggup-archive" } +eggup-acquisition = { version = "=0.2.1", path = "../eggup-acquisition" } +eggpack-manifest = "=0.1.2" [dev-dependencies] serde = { version = "1", features = ["derive"] } diff --git a/crates/eggup-eggpack/README.md b/crates/eggup-eggpack/README.md index fcc6947..36b28c4 100644 --- a/crates/eggup-eggpack/README.md +++ b/crates/eggup-eggpack/README.md @@ -8,4 +8,4 @@ Consumers that fetch manifest bytes should call `project_json(&bytes, canonical_ Manifest `install` values are producer default identity only; they do not authorize replacement of a filesystem destination. `ManifestProjection::default_destinations` exposes that default map with no I/O, and `materialize_artifact_set` / `core_plan_for_archive` use it as compatibility wrappers that preserve prior behavior. Consumers with their own destination policy — for example, updating the exact running executable in place, including a renamed basename — call `materialize_artifact_set_with_destinations` or `core_plan_for_archive_with_destinations` with an exact `MemberId` -> destination map. Missing, extra, or colliding destinations fail closed; invalid destinations fail through Eggup destination validation. Member identity, exact size, SHA-256 evidence, acquired-file relationships, and permission intent are unchanged, and replacement authorization stays downstream in `eggup-core` ownership verification at commit time. -The crate is published to crates.io and depends on the published `eggpack-manifest 0.1.1` registry crate. Its runtime dependencies are `eggup-core`, `eggup-archive`, and `eggup-acquisition` (each exact-pinned) plus `eggpack-manifest`; the archive digest is computed by `eggup_core::hash_file`, so the crate declares no direct `sha2` runtime dependency. `sha2` remains a dev-dependency only, so the integration fixtures can compute their digests independently of the crate under test. Manifest evidence is producer-established input only: the adapter selects no release, verifies no authenticity, and authorizes no destination. SHA-256 is integrity evidence only. Lower Eggup crates remain independent of Eggpack's producer build, CI, and bootstrap crates. +The current workspace-source candidate is `eggup-eggpack 0.2.1` and pins `eggpack-manifest = "=0.1.2"` from crates.io. The published `eggup-eggpack 0.2.0` artifact remains immutable and retains its original `eggpack-manifest = "=0.1.0"` edge. The candidate's runtime dependencies are `eggup-core`, `eggup-archive`, and `eggup-acquisition` (each exact-pinned) plus `eggpack-manifest`; the archive digest is computed by `eggup_core::hash_file`, so the crate declares no direct `sha2` runtime dependency. `sha2` remains a dev-dependency only, so the integration fixtures can compute their digests independently of the crate under test. Manifest evidence is producer-established input only: the adapter selects no release, verifies no authenticity, and authorizes no destination. SHA-256 is integrity evidence only. Lower Eggup crates remain independent of Eggpack's producer build, CI, and bootstrap crates. diff --git a/crates/eggup-eggpack/tests/interoperability.rs b/crates/eggup-eggpack/tests/interoperability.rs index a935ebd..1a4ce04 100644 --- a/crates/eggup-eggpack/tests/interoperability.rs +++ b/crates/eggup-eggpack/tests/interoperability.rs @@ -18,13 +18,11 @@ use std::time::Duration; const LINUX_TARGET: &str = "x86_64-unknown-linux-gnu"; const ALIAS_TARGET: &str = "linux-x64"; -// Producer-source identity for the registry pin below. The adapter pins the -// exact crates.io release of Eggpack's manifest schema; see the registry -// promotion evidence at `eggstack/eggpack: plans/closure/release-manifest/003-status.md`. -// `PROMOTED_EGGPACK_REV` preserves the source revision qualified by the original -// 0.1.0 promotion; the dependency itself is now advanced to 0.1.1. +// Historical source identity for Eggpack's original 0.1.0 registry promotion. +// The exact registry pin below tracks the current qualified producer schema; +// 0.1.2's published production source matches 0.1.1. const PROMOTED_EGGPACK_REV: &str = "678bbf04f5a02827003a1d9ab83ba4f0e6360e41"; -const PROMOTED_EGGPACK_CRATE_VERSION: &str = "=0.1.1"; +const PROMOTED_EGGPACK_CRATE_VERSION: &str = "=0.1.2"; const DIRECT_MANIFEST: &str = include_str!("fixtures/direct-manifest.json"); const DIRECT_PROJECTION_JSON: &str = include_str!("fixtures/projection-direct.json"); @@ -978,7 +976,7 @@ fn adapter_pins_registry_eggpack_manifest_and_no_producer_crates() { )), "eggpack-manifest must be the exact registry dependency \ eggpack-manifest = \"{PROMOTED_EGGPACK_CRATE_VERSION}\" (crates.io \ - version of the source at {PROMOTED_EGGPACK_REV})" + original source baseline {PROMOTED_EGGPACK_REV})" ); for forbidden in [ "git =", diff --git a/docs/releases.md b/docs/releases.md index ea4c06a..d6bb7dc 100644 --- a/docs/releases.md +++ b/docs/releases.md @@ -1,9 +1,11 @@ # Versions and upgrades -This page is a snapshot checked against crates.io on 2026-11-14. The latest -published version is **0.2.0** for each of the seven library crates. Check -crates.io again when choosing a version, since registry state can change -independently of this repository. +This page was checked against crates.io on 2026-11-18. The latest published +version is **0.2.0** for each of the seven library crates. The workspace source +version is being prepared at `0.2.1`, but that candidate has not been published; +all seven registry packages remain at `0.2.0`. Check crates.io again when +choosing a version, since registry state can change independently of this +repository. | Crate | Latest published version | |---|---| @@ -22,11 +24,12 @@ remain available. Because Eggup is pre-1.0, a `0.1` requirement does not accept ## Exact-pin behavior The workspace crates generally use caret requirements for their Eggup -dependencies. `eggup-eggpack` pins its Eggup dependencies exactly to `0.2.0`, -so a later fix to `eggup-core`, -`eggup-archive`, or `eggup-acquisition` will not reach an already published -`eggup-eggpack` until that adapter is republished. Check the resolved dependency -graph if you depend on `eggup-eggpack`. +dependencies. The published `eggup-eggpack 0.2.0` pins its Eggup dependencies exactly to +`0.2.0`, so a later fix to `eggup-core`, `eggup-archive`, or +`eggup-acquisition` will not reach that published adapter until it is +republished. The local workspace pins are being aligned to `=0.2.1` for the +unpublished source candidate; this does not change the registry package. Check +the resolved dependency graph if you depend on `eggup-eggpack`. ## Earlier-version limitations diff --git a/plans/closure/eggpack-manifest-interoperability/008-status.md b/plans/closure/eggpack-manifest-interoperability/008-status.md new file mode 100644 index 0000000..dec9b8d --- /dev/null +++ b/plans/closure/eggpack-manifest-interoperability/008-status.md @@ -0,0 +1,109 @@ +# Eggpack Manifest Interoperability M008 — Closure and Verification Record + +Status: **closed** — the source-pin refresh is qualified; every acceptance criterion has evidence and no unresolved M008 findings remain. This closure does not authorize publication or merge. + +Source plan: plans/implementation/eggpack-manifest-interoperability/008-eggpack-manifest-0.1.2-source-pin-refresh.md + +Source roadmap: plans/subsystems/eggpack-manifest-interoperability-roadmap.md + +Reviewed repository baseline: 47b202b5f35fe8dd05d5bd9c2b456b08688f3b4d, the Core M016 candidate on release/0.2.1-preparation. + +Implementation commit: 31af43f024525fef543cabdeb44586c408a239a3. + +Pull request: https://github.com/eggstack/eggup/pull/4, based on release/0.2.1-preparation. Implementation qualification head: 31af43f024525fef543cabdeb44586c408a239a3. + +Hosted qualification: push run 44347961501 and pull-request run 44348100277 both tested that exact head. All five lanes passed in each run; the pull-request run is the primary PR evidence. + +## Executive finding + +The unpublished workspace-source eggup-eggpack 0.2.1 candidate now pins eggpack-manifest exactly to 0.1.2 from crates.io. Cargo.lock changes only that package version and checksum, and the exact-pin test asserts 0.1.2 while continuing to reject Git/VCS edges. The dependency tree contains one producer-schema edge, from eggup-eggpack only. No production Rust source, API, behavior, crate version, or publication status changed. The immutable published eggup-eggpack 0.2.0 artifact retains its original eggpack-manifest 0.1.0 edge. + +Crates.io preflight identified eggpack-manifest 0.1.2 as latest, non-yanked, published 2026-11-18, with Rust 1.89 and checksum 4bbbe8d12026adf7c8e8ddaecbed0c6ac403a5621d4dd1ac9949f8daf8149a09. The published 0.1.2 production src/lib.rs section is byte-identical to 0.1.1; upstream changes are test-only. + +## Requirement-to-evidence matrix + +| Requirement | Evidence | Result | +|---|---|---| +| Use the latest compatible published producer schema with an exact registry pin | Crates.io preflight and cargo info identified 0.1.2 as latest, non-yanked, Rust 1.89; checksum recorded above; manifest requires exactly 0.1.2 | pass | +| Keep the lockfile refresh narrow and registry-only | Cargo.lock changes only eggpack-manifest 0.1.1 to 0.1.2 and its checksum; source remains the crates.io registry | pass | +| Preserve adapter behavior and public API | Published 0.1.2 production source is byte-identical to 0.1.1; git diff from baseline to implementation under crates/eggup-eggpack/src is empty | pass | +| Preserve the producer boundary | cargo tree resolves 0.1.2 only beneath eggup-eggpack 0.2.1; the test asserts the exact registry pin and absence of VCS edges | pass | +| Qualify adapter tests, lint, docs, and workspace | Focused tests, clippy, documentation-truth, diff check, and scripts/check-local.sh all passed | pass | +| Qualify hosted CI on the pushed implementation head | Runs 44347961501 and 44348100277 both used 31af43f; Stable, MSRV, Linux systemd, macOS, and Windows all passed | pass | +| Keep M016 Core-only and the published adapter immutable | M016 plan assigns the separate edge refresh to M008; published eggup-eggpack 0.2.0 remains on producer version 0.1.0 | pass | +| Avoid release-side effects | No cargo publish, tag, GitHub release, merge, or adapter republication was performed | pass | + +## Production implementation evidence + +The implementation changes are limited to crates/eggup-eggpack/Cargo.toml, Cargo.lock, and tests/interoperability.rs. The manifest edge requires exactly 0.1.2; Cargo.lock records the crates.io source and checksum above; the test constant and comment identify the current qualified schema. The diff under crates/eggup-eggpack/src is empty between the reviewed baseline and implementation commit. Remaining implementation-commit changes are current documentation and planning records. + +The inverse dependency tree is eggpack-manifest 0.1.2 beneath eggup-eggpack 0.2.1 only. The published eggup-eggpack 0.2.0 package remains immutable and is not rebuilt or uploaded by M008. No package version changed. + +## Exact commands and results + +1. cargo search eggpack-manifest --limit 10 && cargo info eggpack-manifest — identified 0.1.2 as latest at preflight. +2. cargo info eggpack-manifest@0.1.2 --verbose — reports Rust 1.89 and compatible published metadata. +3. cargo update -p eggpack-manifest --precise 0.1.2 — success; only eggpack-manifest updated. +4. cargo test -p eggup-eggpack --locked — 7 unit, 13 archive handoff, 15 caller destinations, 8 digest reuse, and 28 interoperability tests passed; total 71 passed, 0 failed. +5. cargo clippy -p eggup-eggpack --all-targets --locked -- -D warnings — passed. +6. cargo tree --workspace --locked -i eggpack-manifest — resolved 0.1.2 under eggup-eggpack only. +7. ./scripts/check-docs-truth.sh — passed. Note 7 skipped because no --baseline was supplied; this is the gate's documented no-baseline behavior, not a failed check. +8. git diff --check — passed. +9. ./scripts/check-local.sh — exit code 0; formatting, workspace clippy, all-target/all-feature tests, docs, dependency resolution, and docs-truth passed. +10. Hosted run 44347961501 (push) — Stable, MSRV, Linux systemd service qualification, macOS, and Windows all success. +11. Hosted run 44348100277 (pull_request) — Stable, MSRV, Linux systemd service qualification, macOS, and Windows all success. +12. git diff --exit-code 47b202b5f35fe8dd05d5bd9c2b456b08688f3b4d 31af43f024525fef543cabdeb44586c408a239a3 -- crates/eggup-eggpack/src — empty, exit code 0. +13. git diff --numstat 47b202b5f35fe8dd05d5bd9c2b456b08688f3b4d 31af43f024525fef543cabdeb44586c408a239a3 -- Cargo.lock — 2 insertions and 2 deletions, the single package version/checksum update. +14. ./scripts/check-local.sh on the closure-doc tree initially exited 101 in eggup-curl: artifact_temp_is_owner_private_and_no_clobber returned a Transport error for its example.com fixture. No source was changed. +15. cargo test -p eggup-curl --locked artifact_temp_is_owner_private_and_no_clobber -- --exact — exit 0 but ran 0 tests because the exact filter omitted the tests:: module prefix; this attempt did not validate the fixture. +16. cargo test -p eggup-curl --locked artifact_temp_is_owner_private_and_no_clobber — passed the targeted test (1 passed, 0 failed). +17. ./scripts/check-local.sh rerun after the targeted test passed — exit code 0; no production source change was made. +18. ./scripts/check-docs-truth.sh && git diff --check && ./scripts/check-local.sh after the closure SHA correction — documentation-truth and diff checks passed; the gate exited 101 on eggup-curl test build_curl_args_passes_sub_second_deadlines_to_fake_curl with an exit-unknown Transport error. +19. cargo test -p eggup-curl --locked build_curl_args_passes_sub_second_deadlines_to_fake_curl — passed the targeted test (1 passed, 0 failed). +20. ./scripts/check-local.sh final rerun — exit code 0; the transient failure did not recur and no production source change was made. + +Local qualification ran on macOS 26.6.2 arm64. No Linux or Windows result is inferred from local execution; those platforms are reported only from hosted CI. + +## Per-platform hosted results + +| Platform | Evidence | Result | +|---|---|---| +| Linux | Stable checks, MSRV check on Rust 1.89, and Linux systemd service qualification in runs 44347961501 and 44348100277 | pass | +| macOS | macOS tests in both runs; native adapter tests and full local gate also passed on macOS arm64 | pass | +| Windows | Windows archive, acquisition, and service tests and check in both runs | pass | + +## Invariant review + +1. Only eggup-eggpack depends on eggpack-manifest; lower Eggup crates remain producer-independent. +2. The producer edge is exact and registry-only; the lockfile checksum matches the reviewed 0.1.2 registry release. +3. The adapter's production source, public API, and behavior are unchanged. +4. The published eggup-eggpack 0.2.0 artifact and its 0.1.0 producer pin remain untouched. +5. M016 remains Core-only; M008 is separately planned and reviewed. +6. SHA-256 remains integrity evidence only; this refresh makes no authenticity or provenance claim. +7. No package publication, tag, release, or merge is part of this closure. + +## Failure, rollback, and recovery review + +This is a manifest, lockfile, test-assertion, and documentation change. It performs no installation or live filesystem mutation and has no application rollback path. The dependency refresh is reversible in source control; no published artifact needs recovery because none was published. All required local and hosted checks passed. No failure or recovery action was required. + +## Compatibility and migration review + +The producer 0.1.2 production source is byte-identical to 0.1.1, so no Eggup adapter API or runtime behavior changes and consumers require no migration. Upstream test-only changes do not affect the adapter runtime surface. The published eggup-eggpack 0.2.0 package remains immutable with its original 0.1.0 producer requirement; M008 affects only the unpublished workspace source candidate. + +## Security review + +The pin is exact and the lockfile checksum matches the reviewed registry release. The adapter is the only workspace crate with a producer-schema edge. No new runtime dependency family, transport, filesystem authority, authenticity claim, or credential path was introduced. No unresolved M008 security or correctness findings remain. + +## Documentation and operations evidence + +The adapter README and Unreleased changelog distinguish workspace source from the immutable published package. AGENTS.md and architecture dependency records state the 0.1.2 workspace pin. The M016 plan records its historical 0.1.1 baseline and points to M008 without widening Core scope. The M008 plan, Eggpack roadmap, and registry point to this closure and agree on the closed status. No consumer-facing how-to required a change. + +No package was published; no tag or GitHub release was created; neither PR #4 nor PR #3 was merged. PR #3 remains on its original branch and scope. + +## Unresolved findings + +None specific to M008. The documentation-truth note 7 skip is recorded above and is not a failed acceptance criterion. + +## Roadmap disposition and registry updates + +Eggpack M008 is closed and hosted-qualified. The Eggpack roadmap records M001–M008 closed and links this closure. The registry subsystem summary records the 2026-11-18 completion and run 44348100277; its milestone-status table links both the source plan and this closure. No follow-on Eggpack milestone is made dependency-ready by M008. diff --git a/plans/closure/verified-update-core/021-status.md b/plans/closure/verified-update-core/021-status.md new file mode 100644 index 0000000..cf13f72 --- /dev/null +++ b/plans/closure/verified-update-core/021-status.md @@ -0,0 +1,113 @@ +# Closure record — verified-update-core M021 + +## Status + +**Closed; hosted-qualified.** M021 replaces the six Unix shell-backed Core bounded-candidate fixtures with one native Rust helper compiled once per test process. It closes the recurring interpreter-related ETXTBSY exposure in the Core tests. The broader host-level spawn/resource residual in registry finding 1 remains open. + +## Source plan and roadmap + +- Source plan: `plans/implementation/verified-update-core/021-native-bounded-candidate-test-fixture.md` +- Source roadmap: `plans/subsystems/verified-update-core-roadmap.md` +- Registry: `plans/registry.md` + +## Reviewed repository baseline + +| Item | Value | +|---|---| +| Branch | `release/0.2.1-preparation` | +| Plan baseline | `ecfe02a1c376db4bbaaabeb057407109ea3c46e1` | +| Implementation commit | `5f7f074baa491f62a5e372d0caacaacea5148716` (`test(core): replace shell candidate fixtures (M021)`) | +| Hosted push run | [44380404044](https://github.com/eggstack/eggup/actions/runs/44380404044), exact head SHA, all five jobs successful | +| Hosted PR run | [44380418766](https://github.com/eggstack/eggup/actions/runs/44380418766), exact same head SHA, all five jobs successful | + +## Implementation commits + +| Commit | Role | +|---|---| +| `5f7f074baa491f62a5e372d0caacaacea5148716` | Replaces the Core Unix shell fixtures with the native helper, registers M021, and updates the Core test-table anchors. | + +No new PR was created. No merge, tag, GitHub Release, or crate publication occurred. Core M016 remains active and unchanged. + +## Executive finding + +Hosted PR run [44370818511](https://github.com/eggstack/eggup/actions/runs/44370818511) on baseline `ecfe02a1c376db4bbaaabeb057407109ea3c46e1` failed in `bounded_candidates_are_exact_and_environment_is_cleared` with `ExecutableFileBusy (os error 26)` while spawning a freshly written `#!/bin/sh` candidate. M021 replaces all six shell fixtures across the three affected Core Unix tests with private copies of a shared native Rust helper. The helper compiles once per Unix test process; its basename selects exact-identity, environment-probe, timeout, output-overflow, and matching cross-member modes. The tests continue to exercise the real validators and `run_bounded`, and the helper-format guard rejects a shebang binary. + +## Requirement → evidence matrix + +| Requirement | Evidence | Result | +|---|---|---| +| All six Core shell-backed bounded-runner fixtures are replaced | `crates/eggup-core/src/lib.rs`; `bounded_test_helper_copy` and `BOUNDED_TEST_HELPER_SOURCE`; no `#!/bin/sh` remains in the Core source | Passed | +| Helper is native and compiled once per Unix unit-test process | `native_bounded_test_helper` uses `OnceLock` and `RUSTC` (fallback `rustc`); `bounded_runner_test_helper_is_native_executable` passed | Passed | +| Existing bounded-candidate semantics remain asserted | Exact staged identity output and cleared environment; timeout/kill and output-limit cases; cross-member agreement. The four focused tests and all 60 Core library tests passed | Passed | +| No production behavior, dependency, API, or version changed | Diff is confined to the Core `#[cfg(test)]` module and planning/architecture records; no Cargo manifest, lockfile, production module, or release file changed | Passed | +| Required local qualification passes | Exact commands and results below; full local gate exited 0 | Passed | +| Hosted qualification passes on exact implementation SHA | Runs [44380404044](https://github.com/eggstack/eggup/actions/runs/44380404044) and [44380418766](https://github.com/eggstack/eggup/actions/runs/44380418766), both on `5f7f074baa491f62a5e372d0caacaacea5148716`; all five lanes successful in each | Passed | +| Broader finding and release boundary are not overstated | Registry finding 1 remains open for unrelated host-level spawn/resource failures; M016 remains active; no merge or publication | Passed | + +## Production implementation evidence + +There is no production implementation change. The helper type, compiler invocation, per-fixture copies, native-format check, and migrated test call sites are all inside the Core test module. `run_bounded`, spawn classification, timeout semantics, environment clearing, output bounds, public API, and transaction behavior are unchanged. + +## Verification commands and results + +| Command | Result | +|---|---| +| `cargo test -p eggup-core --locked --lib tests::bounded_runner_test_helper_is_native_executable -- --exact` | Passed: 1 test | +| `cargo test -p eggup-core --locked --lib tests::bounded_candidates_are_exact_and_environment_is_cleared -- --exact` | Passed five consecutive runs; 1 test per run | +| `cargo test -p eggup-core --locked --lib tests::bounded_runner_kills_timeouts_and_limits_output -- --exact` | Passed: 1 test | +| `cargo test -p eggup-core --locked --lib tests::cross_member_identity_requires_bundle_agreement -- --exact` | Passed: 1 test | +| `cargo test -p eggup-core --locked --lib` | Passed: 60 tests, 0 failed | +| `./scripts/check-local.sh` | Passed, exit 0: formatting, Clippy, workspace tests, docs, dependency-tree resolution/review, and documentation-truth checks | +| `git diff --check` | Passed | +| `cargo tree --workspace --locked` (run by the local gate) | Reviewed; no dependency or boundary change | + +The local run was on macOS. It is not used as evidence for Linux or Windows; those platforms are reported separately from hosted CI. + +## Hosted platform evidence + +Both hosted runs used exact head SHA `5f7f074baa491f62a5e372d0caacaacea5148716` and completed successfully. + +| Platform/lane | Push run 44380404044 | PR run 44380418766 | +|---|---|---| +| Linux / Stable checks | Passed | Passed | +| Rust 1.89 / MSRV check | Passed | Passed | +| macOS tests | Passed | Passed | +| Windows archive, acquisition, and service tests | Passed | Passed | +| Linux systemd service qualification | Passed | Passed | + +Linux Stable and macOS ran the Unix-only helper tests. Windows passed its curated tests; the Unix helper remains cfg-excluded there. + +## Invariant review + +- The fix is test-only; production spawn behavior and error classification are unchanged. +- No spawn retry, fallback, weakened assertion, or test skip was added. +- The helper compiles once, and fixture copies are completed before execution and are not rewritten afterward. +- No dependency, public API, package version, publication, tag, or release file changed. +- The test-only destination basenames select helper modes; they do not change consumer behavior. + +## Failure, cancellation, rollback, and recovery review + +Failure to create the helper root, write or compile the source, copy the binary, or spawn a fixture fails the test with the observed error. The test does not retry a spawn failure. Each test uses a private fixture root, preventing candidate copies from being shared across parallel tests. Timeout and output overflow continue to be handled and asserted by the real bounded runner. No live installation, service state, or production recovery path is touched. + +## Compatibility and migration review + +No consumer-visible behavior, public type, or migration changes. Tests remain `#[cfg(unix)]`-gated; existing Windows behavior and coverage remain unchanged. The compatibility note in the plan records that distinct destination basenames are used solely for test-helper mode selection. + +## Security review + +Native binaries eliminate the shebang interpreter race source in these fixtures. The environment helper reports only whether `PATH` or `EGGUP_SECRET` is present; it never prints secret values. No network access or production logging path was added. + +## Unresolved findings and severity + +Registry finding 1 remains **open, low severity** for broader host-level spawn/resource-pressure modes and the already narrowed timeout/spawn observations. M021 closes only the Core shell-backed fixture exposure; two green runs on this fix do not prove that every transient host-level spawn failure is impossible. + +## Documentation, operations, and registry disposition + +- The Core architecture test-table anchors now match the test definitions at `lib.rs:1399`, `lib.rs:1440`, and `lib.rs:1458`. +- The M021 plan is marked implemented; the Core roadmap and registry mark M021 closed and link this closure record. +- Registry finding 1 records the fixed Core fixture while retaining the broader host-level residual. +- Core M016 remains active and its publication gates are unchanged. + +**Roadmap disposition:** M021 closed and hosted-qualified; M016 remains active. + +**Registry disposition:** M021 closed on implementation commit `5f7f074baa491f62a5e372d0caacaacea5148716`; registry finding 1 remains open for broader host-level spawn/resource failures. diff --git a/plans/implementation/eggpack-manifest-interoperability/008-eggpack-manifest-0.1.2-source-pin-refresh.md b/plans/implementation/eggpack-manifest-interoperability/008-eggpack-manifest-0.1.2-source-pin-refresh.md new file mode 100644 index 0000000..7d00c9e --- /dev/null +++ b/plans/implementation/eggpack-manifest-interoperability/008-eggpack-manifest-0.1.2-source-pin-refresh.md @@ -0,0 +1,233 @@ +# Eggpack Manifest Interoperability Milestone 008 — eggpack-manifest 0.1.2 source-pin refresh + +Status: closed + +Repository baseline: 47b202b5f35fe8dd05d5bd9c2b456b08688f3b4d + +Source roadmap: +- plans/subsystems/eggpack-manifest-interoperability-roadmap.md + +Long-term requirements: +- plans/000-long-term-specification.md +- plans/001-terminology-and-domain-model.md + +Applicable ADRs: +- plans/adrs/ADR-0003-verification-layers-and-transport-neutrality.md +- plans/adrs/ADR-0004-eggpack-producer-eggup-consumer-boundary.md + +Primary class: polish + +## 1. Objective + +Advance the unpublished workspace-source eggup-eggpack adapter's exact registry +dependency from eggpack-manifest 0.1.1 to the latest published compatible +release, 0.1.2, and qualify the resulting source candidate. Update only the +matching Cargo.lock entry, the exact-pin test expectation, and current +documentation/planning records. + +This is a separate Eggpack M008 from Verified Update Core M016. M016 remains +Core-only: it does not own or authorize this dependency change, and its +publication scope is not widened. M008 is stacked on the M016 candidate branch +for review isolation. It does not publish, tag, create a release, or merge any +package or PR. + +## 2. Why this milestone is ready + +- The crates.io API reports eggpack-manifest 0.1.2 published on 2026-11-18, + non-yanked, Rust 1.89, checksum + 4bbbe8d12026adf7c8e8ddaecbed0c6ac403a5621d4dd1ac9949f8daf8149a09. + cargo search and cargo info eggpack-manifest@0.1.2 both identify it as the + latest release at preflight. +- The published 0.1.2 src/lib.rs production section (before #[cfg(test)]) is + byte-for-byte identical to 0.1.1. Its upstream test-only changes do not + change the consumer schema, API, parser, or runtime behavior. +- The M016 candidate currently pins 0.1.1 in the adapter manifest, lockfile, + and interoperability test. The adapter is the only workspace crate allowed + to depend on this producer schema. +- The published eggup-eggpack 0.2.0 artifact is immutable and remains outside + this change. No separate Eggup package publication is authorized. + +## 3. Current implementation evidence + +- The reviewed baseline is the exact M016 candidate commit above; its branch + and PR #3 remain unchanged by this milestone. +- Workspace-source eggup-eggpack is 0.2.1 and uses exact local Eggup pins + =0.2.1; its external producer pin is =0.1.1. +- Cargo.lock resolves eggpack-manifest 0.1.1 from crates.io with checksum + 352c3e327159615b763298e911e239f1decc4a2c9e28c28be8ddd28e50515e37. +- tests/interoperability.rs asserts the exact external registry pin. The + production adapter source and public API are not in scope. +- M016's initial source baseline used =0.1.1; this M008 pin advance is a + separately planned adapter dependency refresh, not a change to M016's Core + publication requirements. + +## 4. Invariants that must not regress + +- Only eggup-eggpack may depend on eggpack-manifest; eggup-core, + eggup-acquisition, and eggup-service remain Eggpack-independent. +- The producer dependency stays exact-pinned and registry-only; introduce no + path, Git, branch, tag, or VCS source edge. +- The new lock resolution is eggpack-manifest 0.1.2; unrelated registry + dependency versions remain unchanged. +- No production Rust source, public API, adapter behavior, fixture semantics, + crate version, runtime dependency boundary, or publication status changes. +- Published eggup-eggpack 0.2.0 and its =0.1.0 producer pin remain immutable; + this source-tree refresh is not a republication. +- M016 stays Core-only. No cargo publish, tag, GitHub Release, or merge is + part of M008. + +## 5. Scope + +### In scope + +- Update the workspace-source exact registry pin to =0.1.2 and regenerate + only the corresponding Cargo.lock package entry/checksum. +- Update the adapter's exact-pin test constant and explanatory comment. +- Update current-facing dependency claims, the adapter's Unreleased changelog, + the M016 plan's baseline note, and Eggpack roadmap/registry status. +- Run adapter-focused checks, documentation-truth checks, the full local gate, + and all five hosted CI lanes on this branch. +- Open a separate M008 PR against the M016 candidate branch so the two reviews + remain independently scoped. + +### Explicitly out of scope + +- Any production Rust source, schema, parser, API, behavior, or fixture-content + change. +- Any change to eggup-core source, API, dependency graph, package contents, or + M016 publication scope. +- Publishing eggup-eggpack, eggpack-manifest, or any other crate; changing + package versions; creating tags or releases; merging either PR. +- Refreshing any other dependency or permitting broad/unrelated lockfile + resolution changes. +- Editing immutable historical plans or closure evidence to rewrite what was + true at their recorded baselines. + +## 6. Required production changes + +1. Set crates/eggup-eggpack/Cargo.toml to eggpack-manifest = "=0.1.2". +2. Update the exact-pin constant in tests/interoperability.rs and keep the + assertion registry-only. +3. Regenerate the lockfile with the exact 0.1.2 checksum. Stop if the lockfile + changes any unrelated registry package. +4. Update the adapter README/changelog and current architecture/index statements + to identify the source candidate's =0.1.2 edge. Preserve the published + eggup-eggpack 0.2.0 history at =0.1.0. +5. Reconcile the active M016 plan to say its own baseline used =0.1.1 and that + M008 owns the separate update; do not broaden M016's non-goals or authority. + +## 7. Ordered work packages + +1. Freeze evidence: reconfirm crates.io latest/yanked/MSRV metadata, compare the + published 0.1.1/0.1.2 production source sections, and record the baseline SHA. +2. Register M008: add this plan and mark it active in the Eggpack roadmap and + plans/registry.md before the dependency edit. +3. Refresh the edge: change the manifest pin and test constant, update the + lockfile narrowly, then inspect git diff and cargo tree. +4. Reconcile docs: update current-facing docs, the adapter Unreleased note, and + the M016 baseline note; leave historical closures unchanged. +5. Qualify: run the exact commands in §11, inspect the dependency tree, commit + and push the separate branch, open the stacked PR, and wait for all hosted + CI lanes. +6. Close: record command results and each hosted lane in the M008 closure, mark + the roadmap/registry entry closed, and leave both PRs unmerged. + +## 8. Failure, cancellation, restart, and contention semantics + +This is a source-manifest and documentation change. It does not mutate an +installed application or invoke a release upload. Cargo may update Cargo.lock +and build artifacts under target/; the lockfile change is intentional only for +eggpack-manifest. If a command fails, preserve its output and the worktree; do +not restore or overwrite unrelated changes. If registry metadata or the latest +version changes before qualification, repeat preflight and stop for review +rather than silently chasing a newer dependency. If any required check fails +outside this bounded pin/test/docs scope, stop and record it instead of +changing production behavior under M008. + +## 9. Compatibility and migration + +The 0.1.2 production source is byte-for-byte identical to 0.1.1, so the +adapter's compiled API and runtime behavior do not change and consumers need no +migration. The test-only upstream source changes are not part of this crate's +runtime surface. The published eggup-eggpack 0.2.0 artifact still resolves its +own immutable eggpack-manifest =0.1.0 dependency; M008 changes only the +unpublished workspace source used by the candidate branch. Any future +eggup-eggpack publication requires its own explicit plan and authorization. + +## 10. Required tests + +- The exact-pin test passes with =0.1.2 and rejects VCS/path edges. +- Eggpack projection, archive-handoff, caller-destination, and digest-reuse + integration tests pass against the 0.1.2 registry package. +- Clippy and the complete workspace tests/docs pass with the refreshed lockfile. +- Dependency-tree inspection proves only the adapter has a producer-schema + edge and that the resolved version is 0.1.2. +- Package publication and tag tests are not applicable and must not be run. + +## 11. Required verification commands + +Run in this order and record exact outcomes: + +1. cargo test -p eggup-eggpack --locked +2. cargo clippy -p eggup-eggpack --all-targets --locked -- -D warnings +3. cargo tree --workspace --locked -i eggpack-manifest — manually review the + exact version and dependency boundary. +4. ./scripts/check-docs-truth.sh +5. git diff --check +6. ./scripts/check-local.sh +7. Hosted CI on the exact pushed M008 head: stable, msrv, service-systemd, + macos, and windows-check, all green. + +## 12. Documentation updates + +- crates/eggup-eggpack/README.md and CHANGELOG.md (Unreleased). +- AGENTS.md, architecture/overview.md, + architecture/tooling-governance.md, and architecture/eggpack-adapter.md. +- The M016 implementation plan's baseline reference, without changing its + Core-only scope. +- plans/subsystems/eggpack-manifest-interoperability-roadmap.md and + plans/registry.md, including the M008 plan/closure link. +- Check docs/ for affected current claims; it remains non-normative and should + not be changed unless a matching claim actually exists. + +## 13. Acceptance criteria + +- The M008 source manifest and lockfile use exactly eggpack-manifest 0.1.2 + from crates.io; no unrelated lock versions or source edges change. +- Eggup production source/API/behavior is unchanged; the adapter exact-pin test + and all required local checks pass. +- The full hosted CI matrix is green on the pushed M008 head. +- Plan, closure, roadmap, registry, changelog, and current-facing docs agree on + the 0.1.2 workspace pin and the unchanged 0.2.0 published artifact. +- M008 is a separate PR based on the M016 candidate branch; PR #3's branch, + diff, and Core-only publication scope are unchanged. +- No crate is published, tagged, released, or merged. + +## 14. Stop conditions + +Stop if 0.1.2 is yanked, no longer latest before the pin is finalized, or has a +Rust requirement above 1.89; if its production source differs from the reviewed +0.1.1 production source; if adapter tests reveal an API/behavior incompatibility; +if the lockfile changes unrelated packages; if a dependency boundary is +violated; or if a required local/hosted check fails and cannot be corrected +without out-of-scope source changes. Do not publish, tag, release, or merge as a +way to resolve a stop condition. + +## 15. Closure evidence required + +The M008 closure must record: source plan and roadmap; reviewed baseline; the +crates.io metadata, checksum, yanked/MSRV state, and source-comparison result; +implementation commit and PR URL/head/base; manifest, lockfile, and tree +boundary evidence; exact command outputs/results; full local-gate result; each +hosted CI lane separately; compatibility/security review; documentation and +registry updates; and an explicit statement that no package was published, +tagged, released, or merged. + +## 16. Handoff notes + +M008 is a narrow workspace-source dependency refresh, not a new adapter release. +The separate PR is stacked on release/0.2.1-preparation; it depends on the M016 +branch and must be retargeted or rebased after that base is integrated. Keep +Core M016's upload authorization and publication gates independent. The +published eggup-eggpack 0.2.0 package and eggpack-manifest 0.1.0 edge are not +altered by this source update. diff --git a/plans/implementation/verified-update-core/016-eggup-core-contract-doc-packaging.md b/plans/implementation/verified-update-core/016-eggup-core-contract-doc-packaging.md index bd72dfb..d88566d 100644 --- a/plans/implementation/verified-update-core/016-eggup-core-contract-doc-packaging.md +++ b/plans/implementation/verified-update-core/016-eggup-core-contract-doc-packaging.md @@ -1,8 +1,8 @@ # Verified Update Core Milestone 016 — eggup-core contract-doc packaging -Status: ready for handoff +Status: active -Repository baseline: `a811b3634a48c4c045b467cee70d8d9ccc4144c4` +Repository baseline: `94f2545ea12fa88ab7fb5e135ba587d0fa6f584c` Source roadmap: - `plans/subsystems/verified-update-core-roadmap.md` @@ -45,27 +45,37 @@ that does not authorize their publication. - Core M019 and the workspace version-lockstep work are closed. The core has no in-workspace runtime dependency, so its package can be published on its own before any other crate at the new workspace version. -- At this plan's baseline, `cargo search eggup-core --limit 1` reports `0.2.0`. - The implementation must repeat the registry preflight. `0.2.1` is the - planned next patch only if that version remains unused. -- The milestone is ready for implementation handoff. A separate, recorded - maintainer authorization is still required before the irreversible - `cargo publish` step; authoring this plan does not grant that authorization. +- Point-in-time preflight on 2026-11-18: crates.io reports `eggup-core 0.2.0` + as latest and `0.2.1` unused; none of the listed Core versions is yanked. + GitHub has no `v0.2.1` tag or Release. Repeat these checks immediately before + any upload; the target remains provisional until then. +- Implementation is active in the `0.2.1` source candidate. A separate, + recorded maintainer authorization is still required before the irreversible + `cargo publish` step; this preparation does not grant that authorization. ## 3. Current implementation evidence -- `crates/eggup-core/Cargo.toml` declares - `exclude = ["docs/", "tests/", "benches/"]`. The exclusion is the direct - reason the contract documents are absent from the package. +- The active candidate's `crates/eggup-core/Cargo.toml` now excludes only + `tests/` and `benches/`; `docs/` is no longer excluded. A local + `cargo package --list --locked --allow-dirty` selected all three contract + files and no `tests/` or `benches/` paths. `cargo package`, strict service + package verification against registry Core `0.2.0`, and the Core publish + dry-run also passed locally; repeat these checks from the final clean commit + before any upload. No publication was attempted. - `crates/eggup-core/docs/` contains the three normative contract documents named in §1. They are already authoritative; this milestone does not edit their content. - `plans/closure/verified-update-core/019-status.md` records the published `eggup-core 0.2.0` package inventory and names M016 as the open follow-on. -- The root `[workspace.package].version` is `0.2.0`, inherited by every crate. - `crates/eggup-eggpack/Cargo.toml` exact-pins its three in-workspace - dependencies at `=0.2.0`; those local pins must stay aligned if the shared - source version advances. +- The root `[workspace.package].version` is now `0.2.1`, inherited by every + crate. `crates/eggup-eggpack/Cargo.toml` exact-pins its three in-workspace + dependencies at `=0.2.1` to match local path packages; published + `eggup-eggpack 0.2.0` remains immutable and keeps its `=0.2.0` pins. The + The M016 baseline's workspace registry dependency was + `eggpack-manifest = "=0.1.1"`. The separate Eggpack M008 plan + (`plans/implementation/eggpack-manifest-interoperability/008-eggpack-manifest-0.1.2-source-pin-refresh.md`) + owns the later adapter-edge refresh; M016 itself does not change or require + that dependency edge. - `eggup-core`'s runtime dependency surface is `sha2` plus the Windows-only `self-replace` dependency. Packaging documentation must not add a dependency or change either target's graph. @@ -97,6 +107,10 @@ that does not authorize their publication. - Advance `[workspace.package].version` from `0.2.0` to `0.2.1` and refresh `Cargo.lock` without unrelated dependency updates. +- Update `scripts/check-docs-truth.sh` so it validates workspace-source version + claims against the workspace manifest and published-version claims against the + subject crate's own changelog, allowing the documented source/registry split + before a single-crate publication. Keep the gate network-free. - Remove only `"docs/"` from `eggup-core`'s `exclude` list. Keep `tests/` and `benches/` excluded. - Retarget the three local exact `eggup-eggpack` path pins to `=0.2.1` so the @@ -135,13 +149,18 @@ that does not authorize their publication. retaining `"tests/"` and `"benches/"`. 3. In `crates/eggup-eggpack/Cargo.toml`, change the three local exact Eggup requirements from `=0.2.0` to `=0.2.1` so their path packages match the - shared workspace version. Keep `eggpack-manifest = "=0.1.0"` unchanged. - This is a source-workspace alignment only; the published `eggup-eggpack - 0.2.0` package is immutable and is not rebuilt or uploaded here. + shared workspace version. M016 itself does not change the external + eggpack-manifest edge; the separate Eggpack M008 plan owns its workspace-source + refresh. This is a source-workspace alignment only; the published + eggup-eggpack 0.2.0 package is immutable and is not rebuilt or uploaded here. 4. Refresh only the affected workspace package entries in `Cargo.lock`. Review the complete lockfile diff and stop if unrelated registry dependency versions change. -5. Do not change any file under `crates/eggup-core/src/**` or any file under +5. Revise `scripts/check-docs-truth.sh` only as needed to stop equating the + workspace source version with every crate's latest registry version; retain + per-crate changelog and manifest checks. Update its owning explanation in + `architecture/tooling-governance.md` and `.opencode/skills/verify-workflow`. +6. Do not change any file under `crates/eggup-core/src/**` or any file under `crates/eggup-core/docs/**`. ## 7. Ordered work packages @@ -160,15 +179,19 @@ that does not authorize their publication. appear, with tests and benches still absent. 4. **W4 — Release notes and current claims.** Add the Core M016 note to the core changelog and root changelog. Record the unpublished `eggup-eggpack` - local pin alignment in its `Unreleased` section without claiming that - `eggup-eggpack 0.2.0` has changed. Update current published/source-version - claims in `docs/crates.md`, `docs/releases.md`, `architecture/overview.md`, - `architecture/tooling-governance.md`, and `README.md` where applicable. - Keep dependency examples at `0.2.0` if they remain intentionally pinned and - working; do not edit compiled examples merely to make their version string - look newest. Remove the resolved M016 row from the live drift table only - after the `0.2.1` package is verified. Update the registry and Core roadmap - after qualification and closure, not before evidence exists. + local pin alignment in its `Unreleased` section without claiming that the + published `eggup-eggpack 0.2.0` changed. Until the registry upload occurs, + consumer-facing release docs must show all seven published crates at `0.2.0` + and explicitly identify workspace `0.2.1` as an unpublished source candidate. + Update `docs/crates.md`, `docs/releases.md`, `architecture/overview.md`, + `architecture/tooling-governance.md`, and `README.md` where applicable. Keep + the README/quickstart dependency example at `0.2.0` while that remains the + latest published package; do not alter compiled examples just to change the + version literal. Keep the Core M016 drift open until the published archive + proves the fix. Update the registry and Core roadmap to `active` during this + implementation; do not record closure or publication evidence before it exists. + Update `AGENTS.md` and the release/verification skills where current manifest + pins or gate semantics changed. 5. **W5 — Local qualification.** Run `./scripts/check-local.sh`, inspect `cargo tree --workspace --locked`, and review the lockfile and package manifest diffs. Require no runtime source or dependency-edge changes. @@ -250,8 +273,11 @@ crates.io upload, which is irreversible once accepted. ## 10. Required tests No production-code tests are added because the change does not alter Rust -source. The existing workspace gate remains required. The packaging behavior -is covered by artifact and consumer evidence: +source. The existing workspace gate remains required. The documentation-truth gate +must allow the workspace source version to differ from each crate's latest +published version, while checking each published-version claim against that +crate's changelog and manifest. The packaging behavior is covered by artifact +and consumer evidence: - The local package file list contains `docs/domain.md`, `docs/verification.md`, and `docs/transaction.md`, and no `tests/` or @@ -273,6 +299,7 @@ ordered local gate; inspect its `cargo tree` output as a human review step. ```sh ./scripts/check-local.sh +./scripts/check-docs-truth.sh cargo tree --workspace --locked cargo package -p eggup-core --list --locked cargo package -p eggup-core --locked @@ -322,26 +349,32 @@ package or registry command substitutes for a hosted platform lane. unchanged and M016 does not publish it. - Root `CHANGELOG.md`: aggregate the Core 0.2.1 package-content change without replacing the per-crate release notes. -- `docs/crates.md` and `docs/releases.md`: distinguish workspace source - version `0.2.1` from registry state (Core `0.2.1`; the other published - crates remain at `0.2.0` until their own releases). Explain that Core 0.2.0 - remains immutable and does not contain the three files. +- `docs/crates.md` and `docs/releases.md`: before publication, state that the + seven registry releases remain at `0.2.0` while the workspace source is a + `0.2.1` candidate. Do not claim Core `0.2.1` is published. Explain that the + immutable Core `0.2.0` package lacks the three files. After a later authorized + upload, update only Core's latest published version to `0.2.1`; other crates + remain at `0.2.0` unless separately released. - `architecture/overview.md` and `architecture/tooling-governance.md` §8: - update current workspace/published-version claims, add the Core 0.2.1 - publication, and preserve the historical 0.2.0 train record. Remove the - live Core M016 drift row only after the published archive proves the fix; - retain any necessary note that older immutable package versions lack the - files. + distinguish workspace-source version `0.2.1` from the seven crates still + published at `0.2.0`; preserve the historical 0.2.0 train record. Keep the + live Core M016 drift row open until the published archive proves the fix. +- `scripts/check-docs-truth.sh`: do not infer registry publication from the + workspace manifest version. Verify published-version claims per crate using + its changelog headings and `publish` setting; keep source-version claims + tied to the workspace manifest. Update the governance §4.1 description and + the verification skill to match. - `README.md`: update only any current workspace-version claim. Keep an intentionally pinned, compiling dependency example at `0.2.0` if it remains a valid example; do not silently change a snippet that must match a checked-in example. - `plans/registry.md` and - `plans/subsystems/verified-update-core-roadmap.md`: during this authoring - change, list M016 as ready for handoff with this plan. At closure, replace - that status with the closure evidence and record the publication result. -- `AGENTS.md` and `.opencode/skills/`: no change is required unless this work - changes a rule they index; M016 introduces no new rule. + `plans/subsystems/verified-update-core-roadmap.md`: mark M016 active while + implementation is underway. At closure, replace that status with closure + evidence and record only the actual publication result. +- `AGENTS.md` and `.opencode/skills/`: update indexed current facts when the + workspace exact pins and documentation-truth semantics change; do not add a + new policy rule there. ## 13. Acceptance criteria diff --git a/plans/implementation/verified-update-core/021-native-bounded-candidate-test-fixture.md b/plans/implementation/verified-update-core/021-native-bounded-candidate-test-fixture.md new file mode 100644 index 0000000..e115a9f --- /dev/null +++ b/plans/implementation/verified-update-core/021-native-bounded-candidate-test-fixture.md @@ -0,0 +1,133 @@ +# Verified Update Core Milestone 021 — native bounded-candidate test fixture + +Status: implemented + +Repository baseline: `ecfe02a1c376db4bbaaabeb057407109ea3c46e1` + +Source roadmap: +- `plans/subsystems/verified-update-core-roadmap.md` + +Long-term requirements: +- `plans/000-long-term-specification.md` +- `plans/001-terminology-and-domain-model.md` + +Applicable ADRs: +- `plans/adrs/ADR-0001-layered-mechanism-and-policy-ownership.md` +- `plans/adrs/ADR-0002-multi-artifact-transaction-and-rollback.md` +- `plans/adrs/ADR-0003-verification-layers-and-transport-neutrality.md` + +Primary class: polish (test and qualification corrective) + +## 1. Objective + +Remove the intermittent `ETXTBSY` exposure from eggup-core Unix unit tests by replacing their temporary `#!/bin/sh` fixtures with one native Rust helper compiled once per test process. Preserve the existing exact-output, cleared-environment, timeout, output-limit, and cross-member-agreement assertions. No production behavior or dependency changes are in scope. + +## 2. Why this milestone is ready + +Hosted run [44370818511](https://github.com/eggstack/eggup/actions/runs/44370818511) on the release-preparation merge commit reported `ExecutableFileBusy` (OS error 26) while `bounded_candidates_are_exact_and_environment_is_cleared` spawned its freshly written shell candidate. The same commit passed all five lanes in push run [44370802274](https://github.com/eggstack/eggup/actions/runs/44370802274), demonstrating that this is intermittent rather than a deterministic production failure. + +The repository already records earlier occurrences of this fixture failure. Acquisition M018 replaced its shell-backed fake with a native test helper but explicitly left the Core fixture out of scope. Core M016 also excludes test-source changes and requires a separate plan if qualification needs one. This milestone supplies that separate bounded plan. + +## 3. Current implementation evidence + +- At baseline `ecfe02a1c376db4bbaaabeb057407109ea3c46e1`, `crates/eggup-core/src/lib.rs` contains six `#!/bin/sh` fixtures across three Unix tests: exact identity and environment clearing, bounded timeout and output, and cross-member identity. +- The failing test writes the candidate with `InstallationRoot::write_file`, sets executable permissions, then `ExactIdentityValidator` invokes it through `run_bounded`. The surfaced `Io` error is the correct behavior for a spawn failure; retrying it in production would change semantics and is not this fix. +- `run_bounded` already clears inherited environment and applies bounded process behavior. The test fixture—not the runner—is the source of the interpreter exposure. +- Acquisition M018 provides a repository precedent for compiling one minimal native Rust helper with `RUSTC` once per test process and sharing it across unique fixtures. + +## 4. Invariants that must not regress + +- Do not change production code in `candidate.rs`, spawn classification, timeout semantics, output bounds, or environment policy. +- Continue to execute staged candidate bytes through `ExactIdentityValidator` and `CrossMemberAgreementValidator`; keep their expected output byte-exact. +- Continue to prove that inherited environment is cleared, the timeout kills/reaps a long-running child, and excess output is reported as limited. +- Keep fixture executables unique per test root and do not rewrite a compiled helper while it can be executed. +- Add no dependency, public API, feature, version, publication, tag, or release change. + +## 5. Scope + +### In scope + +- Replace all six shell-script fixtures in the three Core bounded-candidate tests with private copies of one native Rust helper compiled once per Unix unit-test process. +- Give the helper deterministic behavior selected by its executable basename: exact identity output, environment inspection, a bounded timeout case, an output-overflow case, and matching cross-member output. +- Add a regression assertion that the compiled helper does not begin with the `#!` script marker. +- Update Core test line anchors, the Core roadmap, and the registry status/finding records from observed evidence. + +### Explicitly out of scope + +- Any production retry for `ETXTBSY`, spawn re-selection, changed error mapping, or `run_bounded` semantics. +- Changes to Acquisition M018 or other crates, workflow retry policy, dependencies, public API, package versions, or release files. +- Publishing any crate, creating/moving tags, or creating a GitHub Release. Core M016 remains a separate active milestone. + +## 6. Required production changes + +None. All implementation changes remain within `#[cfg(test)]` support in `crates/eggup-core/src/lib.rs`. + +## 7. Ordered work packages + +1. Implement a Rust test-helper source and a `OnceLock` initializer that compiles it once with the active `RUSTC` (falling back to `rustc`) into a unique temporary directory. +2. Copy the native executable into each private fixture root under a name that selects one deterministic helper mode; set executable permissions and do not modify the helper after compilation. +3. Migrate all six Core shell-script fixtures and retain the existing semantic assertions. Add the native-format guard. +4. Run the focused Core tests, full local gate, and exact-SHA hosted CI. Reconcile the plan, closure, roadmap, registry, and test-table line anchors only from observed results. + +## 8. Failure, cancellation, restart, and contention semantics + +The helper is test-only. Failure to create its directory, write source, invoke `rustc`, compile, copy, or spawn must fail the test with the actual cause; tests must not skip or retry a spawn error. `OnceLock` ensures one compile per test process. Each test uses its existing private fixture root, so candidate copies and outputs are not shared across parallel tests. A failed local or hosted gate stops qualification; no publication or tag action is part of this milestone. + +## 9. Compatibility and migration + +No production or consumer-visible behavior changes. Unix bounded-runner tests still invoke staged candidates through the real validators and `run_bounded`; destination basenames are distinct where needed to select deterministic test-helper modes. The tests remain Unix-gated; Windows behavior and coverage are unchanged. No migration is required. + +## 10. Required tests + +- `bounded_runner_test_helper_is_native_executable` proves the compiled helper is not a shebang script. +- `bounded_candidates_are_exact_and_environment_is_cleared` retains exact staged identity validation and asserts the helper sees neither the parent `PATH` nor `EGGUP_SECRET`. +- `bounded_runner_kills_timeouts_and_limits_output` retains timeout/kill and output-limit assertions using native helper modes. +- `cross_member_identity_requires_bundle_agreement` retains exact common output across both staged members. +- Run the complete Core library tests and full workspace gate; hosted CI must qualify all five current lanes on the fix commit. + +## 11. Required verification commands + +```sh +cargo test -p eggup-core --locked --lib tests::bounded_runner_test_helper_is_native_executable -- --exact +cargo test -p eggup-core --locked --lib tests::bounded_candidates_are_exact_and_environment_is_cleared -- --exact +cargo test -p eggup-core --locked --lib tests::bounded_runner_kills_timeouts_and_limits_output -- --exact +cargo test -p eggup-core --locked --lib tests::cross_member_identity_requires_bundle_agreement -- --exact +cargo test -p eggup-core --locked --lib +./scripts/check-local.sh +git diff --check +``` + +Push the exact implementation commit to `release/0.2.1-preparation`; record the workflow run SHA and all five job conclusions separately. A local macOS pass is not evidence for Linux or Windows. + +## 12. Documentation updates + +- Add this plan and a paired closure record; update `plans/subsystems/verified-update-core-roadmap.md` and `plans/registry.md`. +- Update the `architecture/core-transaction.md` test-table line anchors if source-line movement changes them. Its behavioral descriptions remain valid because the assertions are preserved. +- Record the Core fixture disposition in the existing registry finding 1. Keep the general host-level spawn/resource residual open unless independent evidence closes it. +- No crate changelog, consumer guide, root README, AGENTS index, dependency, or release-history update is warranted for a test-only change. +- Keep Core M016 active and unchanged; this work does not authorize or perform publication. + +## 13. Acceptance criteria + +1. No `#!/bin/sh` fake candidate remains in the Core bounded-runner tests. +2. The helper compiles once per Unix test process, is a native executable, and is copied to unique test-root names without post-build writes. +3. The four focused tests and all Core library tests pass with their existing semantics intact. +4. `./scripts/check-local.sh` and `git diff --check` pass on the fix source commit. +5. All five hosted CI lanes pass on that exact commit; each lane result is read back from GitHub. +6. No production source, dependency, public API, package version, tag, release, or publication changes. +7. The registry and Core roadmap accurately record M021 and the remaining status of registry finding 1. + +## 14. Stop conditions + +- Stop if the helper requires a new crate/dependency, production retry, weakened assertion, or non-Unix behavior change. +- Stop if the helper cannot compile or run reliably on either Linux or macOS, or if any hosted lane fails. +- Stop before claiming closure if the exact hosted commit or any of the five lane conclusions cannot be confirmed. +- Do not use a shell-script or other interpreter-backed replacement as a fallback. + +## 15. Closure evidence required + +Record the implementation commit and branch, exact focused/full local commands and results, the helper-format proof, source diff showing test-only scope, all five hosted lane conclusions on the exact SHA, invariant/failure/security/compatibility review, updated test-table anchors, the registry finding disposition, and confirmation that M016 publication gates and registry state were not changed. + +## 16. Handoff notes + +This Core fixture was explicitly excluded from Acquisition M018. M021 addresses only the same interpreter-related `ETXTBSY` exposure in Core tests; it does not claim to eliminate unrelated host-level spawn/resource failures. M016 remains a distinct publication milestone and is not authorized by this test fix. \ No newline at end of file diff --git a/plans/registry.md b/plans/registry.md index 0d66919..eb0b770 100644 --- a/plans/registry.md +++ b/plans/registry.md @@ -209,9 +209,15 @@ against the registry. Finding 17 was registered by Acquisition M016. rather than a one-off rerun. **Acquisition M018 is closed** and replaces that shell-backed fixture with a native test helper. The focused `eggup-curl` suite, `./scripts/check-local.sh`, and the Rust 1.89 workspace check pass - locally; hosted run `44155438351` is green on all five lanes. M018 does not - close finding 1: the separate Core shell fixture and general host-level - spawn/resource failures remain out of scope. + locally; hosted run `44155438351` is green on all five lanes. M018 alone did not close finding 1. Core M021 replaced the separate Core + shell-backed fixtures with one native test helper. Implementation commit + `5f7f074baa491f62a5e372d0caacaacea5148716` passed all five hosted lanes in + push run [44380404044](https://github.com/eggstack/eggup/actions/runs/44380404044); + PR run [44380418766](https://github.com/eggstack/eggup/actions/runs/44380418766) + also passed all five lanes on the same SHA. This closes the Core fixture's + interpreter-related `ETXTBSY` exposure. Finding 1 remains open for broader + host-level spawn/resource failures; these bounded fixture fixes do not prove + that transient spawn failures are impossible. 2. **`CleanupDisposition::DeferredToProcessExit` is a source-visible addition to a closed enum.** Required by M010 for truthful Windows self-update reporting; no truthful value exists in the `0.1.2` two-variant set, and marking the enum @@ -558,13 +564,14 @@ against the registry. Finding 17 was registered by Acquisition M016. | Subsystem | Status | Next milestone | |---|---|---| -| Verified update core | M001-M015 and M017-M019 closed; M019 published `eggup-core 0.2.0` 2026-10-24 from `b612608`, hosted run `40079833945` green on all five lanes | M016 contract-doc packaging is ready for handoff; plan targets `eggup-core 0.2.1` after registry preflight | -| Acquisition transport | M001-M018 closed; M012 conditionally closed; M017 published `eggup-acquisition`, `eggup-curl`, and `eggup-eggfetch` 0.2.0 (2026-10-24) from `b612608`, run `40079833945` green | M018 replaced the shell-backed curl fake after two Stable attempts in run `44024401775` failed with `ETXTBSY`; run `44155438351` is green on all five lanes. Finding 1 remains open because the Core shell fixture and general host-level spawn/resource failures remain outside M018 | +| Verified update core | M001-M015 and M017-M019 closed; M019 published `eggup-core 0.2.0` 2026-10-24 from `b612608`, hosted run `40079833945` green on all five lanes | M016 contract-doc packaging is active in the `0.2.1` source candidate; the local gate and package checks pass; explicit maintainer upload authorization and registry readback remain required before any release | +| Verified update core | M021 native bounded-candidate fixture corrective is closed; hosted-qualified (run `44380404044`) | The Core fixture's interpreter-related `ETXTBSY` exposure is closed on implementation commit `5f7f074baa491f62a5e372d0caacaacea5148716`; the PR run `44380418766` also passed all five lanes. Broader finding 1 remains open; M016 release scope and publication gates remain separate | +| Acquisition transport | M001-M018 closed; M012 conditionally closed; M017 published `eggup-acquisition`, `eggup-curl`, and `eggup-eggfetch` 0.2.0 (2026-10-24) from `b612608`, run `40079833945` green | M018 replaced the shell-backed curl fake after two Stable attempts in run `44024401775` failed with `ETXTBSY`; run `44155438351` is green on all five lanes. Finding 1 remains open; Core M021 addresses the separate Core shell fixture, while general host-level spawn/resource failures remain outside M018 | | Transport footprint | M001 closed 2026-10-23 and hosted-qualified in run `40062299630`; the subsystem roadmap was created 2026-10-23, which was the prerequisite its first milestone required | no further transport-footprint milestone is registered | | Service lifecycle | M001–M017 closed; M012/M013/M014/M015 hosted-qualified; M017 published `eggup-service 0.2.0` 2026-10-24 from `b612608`, run `40079833945` green | no further service-lifecycle milestone is registered. The `SystemExecutor` consolidation that M012 deferred is closed by M015, and finding 16's strict packaged-service step was restored in `2d6e089` | | Archive extraction | M001 lineage + M004 closed; M005 closed 2026-10-23 and hosted-qualified in run `40008039843`; M006 published `eggup-archive 0.2.0` 2026-10-24 from `b612608`; M007 workspace dependency security refresh closed 2026-11-17, hosted-qualified in run `44022660351` | M007 closed; archive ZIP, acquisition TLS, and Eggpack manifest dependencies refreshed; local advisory, macOS, Rust 1.89, and package checks passed; all five hosted lanes green; no package publication authorized | | Distribution/bootstrap | archived/transferred; M001-M004 closed | no further Eggup producer work | -| Eggpack manifest interoperability | M001-M007 closed; `eggup-eggpack 0.1.3` carries the member-identity cross-check; M006 closed 2026-10-23 and hosted-qualified in run `40008039843`; M007 published `eggup-eggpack 0.2.0` 2026-10-24 from `b612608` | no further Eggpack manifest milestone is registered | +| Eggpack manifest interoperability | M001–M008 closed; `eggup-eggpack 0.1.3` carries the member-identity cross-check; M006 closed 2026-10-23 and hosted-qualified in run `40008039843`; M007 published `eggup-eggpack 0.2.0` 2026-10-24 from `b612608`; M008 workspace-source pin refresh closed 2026-11-18 and hosted-qualified in run `44348100277` (all five lanes), with no package publication | no further Eggpack manifest milestone is registered | | Consumer adoption | simple, eggsearch, CodeGG M005, Egress M006 closed | **Gregg M004 and EggPool M007 are now authorable** — every versioned handoff they were gated on (acquisition 0.1.3, Core 0.1.3) is published, and the 0.2.0 line is published on top of it | ## Dependency-ready implementation work @@ -576,7 +583,9 @@ milestone appears in exactly one table in this registry. | Subsystem | Milestone | Status | Plan | Dependencies | |---|---|---|---|---| -| Verified update core | M016 eggup-core contract-doc packaging | ready for handoff | `plans/implementation/verified-update-core/016-eggup-core-contract-doc-packaging.md` | Core M019 closed; target `0.2.1` subject to registry preflight; explicit maintainer upload authorization remains a publication gate | +| Verified update core | M016 eggup-core contract-doc packaging | active | `plans/implementation/verified-update-core/016-eggup-core-contract-doc-packaging.md` | Core M019 closed; local gate and package qualification passed for the `0.2.1` source candidate; explicit maintainer authorization and registry readback remain publication gates | +| Verified update core | M021 native bounded-candidate test fixture | closed; hosted-qualified (run `44380404044`) | `plans/implementation/verified-update-core/021-native-bounded-candidate-test-fixture.md`; `plans/closure/verified-update-core/021-status.md` | Test-only fix at `5f7f074baa491f62a5e372d0caacaacea5148716`; both push run `44380404044` and PR run `44380418766` passed all five lanes on that SHA. M016 remains independently active and unchanged | +| Eggpack manifest interoperability | M008 eggpack-manifest 0.1.2 source-pin refresh | closed; hosted-qualified (run `44348100277`) | `plans/implementation/eggpack-manifest-interoperability/008-eggpack-manifest-0.1.2-source-pin-refresh.md`; `plans/closure/eggpack-manifest-interoperability/008-status.md` | Exact 0.1.2 workspace pin qualified on implementation commit `31af43f`; all five hosted lanes passed; no API/behavior change or package publication | | Verified update core | M020 staging privacy and credential redaction corrective | ready for handoff | `plans/implementation/verified-update-core/020-staging-privacy-and-credential-redaction-corrective.md` | Closes finding 18 (**low**): creation-mode privacy for the stage root, stage intermediates, backup root and both lock-record sites, plus manual `Debug` redaction in `eggup-acquisition`, `eggup-curl`, and `eggup-eggfetch`. No new dependency, no public API change, no version or publication change; three audit residuals accepted with reasons in plan §5 | | Verified update core | M019 eggup-core 0.2.0 publication | closed 2026-10-24 | `plans/implementation/verified-update-core/019-eggup-core-0.2.0-publication.md`; `plans/closure/verified-update-core/019-status.md` | published `eggup-core 0.2.0` (`2c86a0eb…eb23b8`) from `b612608`; hosted run `40079833945` green on all five lanes; the train-order exception in plan §9.1 is the only deviation; registry-only fixture green | | Archive extraction | M006 eggup-archive 0.2.0 publication | closed 2026-10-24 | `plans/implementation/archive-extraction/006-eggup-archive-0.2.0-publication.md`; `plans/closure/archive-extraction/006-status.md` | published `eggup-archive 0.2.0` (`ce35edd5…ff57ad`) from `b612608`; run `40079833945` green; registry-only fixture green; the packaged manifest carries no `eggup-core` edge | diff --git a/plans/subsystems/README.md b/plans/subsystems/README.md index 46a8438..a288390 100644 --- a/plans/subsystems/README.md +++ b/plans/subsystems/README.md @@ -36,5 +36,6 @@ Roadmaps MUST preserve completed history and MUST link active milestones to impl - `distribution-bootstrap-roadmap.md` (archived/transferred) - `consumer-adoption-roadmap.md` - `eggpack-manifest-interoperability-roadmap.md` +- `transport-footprint-roadmap.md` Do not create new subsystems merely to split files. Create one when ownership, dependencies, or closure criteria are meaningfully distinct. diff --git a/plans/subsystems/consumer-adoption-roadmap.md b/plans/subsystems/consumer-adoption-roadmap.md index cfba7d9..413e185 100644 --- a/plans/subsystems/consumer-adoption-roadmap.md +++ b/plans/subsystems/consumer-adoption-roadmap.md @@ -103,8 +103,7 @@ core M005 corrective + M006 qualification + transport M002 | v M004 Gregg - [BLOCKED on Core M012/M013 + Acquisition M010; - plan intentionally unwritten] + [AUTHORABLE; implementation plan intentionally unwritten] qualified core M006 + acquisition M004 | @@ -115,7 +114,7 @@ qualified core M006 + acquisition M004 M006 Egress was unblocked by Archive Extraction M001d closure (`plans/closure/archive-extraction/001d-status.md`, hosted run `36335233644`) and its adoption plan is registered at `plans/implementation/consumer-adoption/006-egress-archive-pair-adoption.md`. Verified Core M009 closed the publication gate on 2026-09-28 (`eggup-core 0.1.2` + `eggup-archive 0.1.2` registry-visible; `plans/closure/verified-update-core/009-status.md`), and Egress Delivery M003 landed the adoption on 2026-09-29 with hosted Linux/macOS/Windows updater evidence — M006 is closed (see `plans/closure/consumer-adoption/006-status.md` M003-landed addendum). No git/path dependency entered Egress's publishable release state. -M007 EggPool selective adoption remains evidence-driven. Core M010/M011 are closed; its standalone-Rust branch becomes authorable only after Core M012 preserves the 0.1.x boundary and M013 publishes the versioned Core. uv/pipx/pip provenance and package-manager rollback remain EggPool-owned. +M007 EggPool selective adoption is authorable: its versioned prerequisites are published (`eggup-acquisition 0.1.3` and `eggup-core 0.1.3`), and Core M012/M013 are closed. The adoption plan remains intentionally unwritten; uv/pipx/pip provenance and package-manager rollback remain EggPool-owned. ``` ## 7. Milestones diff --git a/plans/subsystems/eggpack-manifest-interoperability-roadmap.md b/plans/subsystems/eggpack-manifest-interoperability-roadmap.md index ea7771b..4ee67eb 100644 --- a/plans/subsystems/eggpack-manifest-interoperability-roadmap.md +++ b/plans/subsystems/eggpack-manifest-interoperability-roadmap.md @@ -1,6 +1,6 @@ # Eggpack Manifest Interoperability Roadmap -Status: active; M001–M007 closed; M006 canonical-digest-reuse corrective closed; M007 published `eggup-eggpack 0.2.0` 2026-10-24 from `b612608`, re-pinning all three in-workspace dependencies at `=0.2.0` (hosted run `40079833945` green on all five lanes) +Status: active; M001–M008 closed; M006 canonical-digest-reuse corrective closed; M007 published `eggup-eggpack 0.2.0` 2026-10-24 from `b612608`, re-pinning all three in-workspace dependencies at `=0.2.0` (hosted run `40079833945` green on all five lanes); M008 workspace-source pin refresh closed 2026-11-18 (hosted run `44348100277` green on all five lanes) Long-term references: @@ -311,3 +311,4 @@ The subsystem is mature when at least one real Eggup consumer can consume Eggpac | M005 eggup-eggpack 0.1.3 security/correctness publication | closed 2026-10-06 | `plans/implementation/eggpack-manifest-interoperability/005-eggup-eggpack-0.1.3-security-publication.md` | `plans/closure/eggpack-manifest-interoperability/005-status.md` | published from `bd43683` (run `37527706900` green); member-identity cross-check ships; the `eggup-eggpack 0.1.2` acquisition-pin caveat is now closed | | M006 canonical digest reuse | closed; hosted-qualified (run `40008039843`) | `plans/implementation/eggpack-manifest-interoperability/006-canonical-digest-reuse-corrective.md` | `plans/closure/eggpack-manifest-interoperability/006-status.md` | Closes registry open finding 9 (**medium**). The adapter's inline digest loop duplicated `eggup_core::hash_file`, and the direct `sha2 = "0.10.9"` runtime dependency existed solely for that one call site in a crate that already depends on `eggup-core = "=0.1.3"`; the adapter now delegates to `eggup_core::hash_file`, the direct runtime `sha2` edge is gone, and `sha2` remains a dev-dependency only. No pin cascade was required. Hosted-qualified in run `40008039843` (commit `0cb2c53`): all five lanes green — Stable, MSRV, macOS, Windows, Linux systemd. `Cargo.lock` is unchanged and the resolved `sha2` is still `0.10.9`. Unpublished; `v0.1.3` must not move. **Published since:** the `0.2.0` train carries this fix — published 2026-10-24 from `b612608`; the published `0.1.x` line still carries the pre-fix state, and registry versions are immutable. | | M007 | closed; hosted-qualified (run `40079833945`) | `plans/implementation/eggpack-manifest-interoperability/007-eggup-eggpack-0.2.0-publication.md` | `plans/closure/eggpack-manifest-interoperability/007-status.md` | Published `eggup-eggpack 0.2.0` (`33dc1da4…14f1f6`) from `b612608`, the publication source commit, with `v0.2.0` and release `0.2.0` created. Published last, because the crate exact-pins all three of its in-workspace dependencies at `=0.2.0`. The registry-only fixture depends only on `eggup-eggpack` and resolves `eggup-core`, `eggup-archive`, and `eggup-acquisition` at `0.2.0` from crates.io, which is the proof that the re-pin delivers the workspace's fixes to adapter consumers. The adapter's own public API is unchanged; the source break arrives transitively through the seam's retyped `AcquisitionError` | +| M008 eggpack-manifest 0.1.2 source-pin refresh | closed; hosted-qualified (run `44348100277`) | `plans/implementation/eggpack-manifest-interoperability/008-eggpack-manifest-0.1.2-source-pin-refresh.md` | `plans/closure/eggpack-manifest-interoperability/008-status.md` | Advance only the unpublished workspace adapter's exact producer pin; no API/behavior change or package publication; local gate and all five hosted lanes passed on implementation commit `31af43f` | diff --git a/plans/subsystems/verified-update-core-roadmap.md b/plans/subsystems/verified-update-core-roadmap.md index ec5e16c..cf1c865 100644 --- a/plans/subsystems/verified-update-core-roadmap.md +++ b/plans/subsystems/verified-update-core-roadmap.md @@ -1,6 +1,6 @@ # Verified Update Core Roadmap -Status: active; M001-M015 and M017-M019 closed; M013 `eggup-core 0.1.3` published 2026-10-06 from `bd43683`; M014/M015/M017/M018 correctives hosted-qualified; M019 published `eggup-core 0.2.0` 2026-10-24 from `b612608` (hosted run `40079833945` green on all five lanes); M016 contract-doc packaging and M020 staging-privacy/credential-redaction corrective are ready for handoff +Status: active; M001-M015 and M017-M019 closed; M013 `eggup-core 0.1.3` published 2026-10-06 from `bd43683`; M014/M015/M017/M018 correctives hosted-qualified; M019 published `eggup-core 0.2.0` 2026-10-24 from `b612608` (hosted run `40079833945` green on all five lanes); M016 contract-doc packaging is active in the `0.2.1` source candidate; M020 staging-privacy/credential-redaction corrective remains ready for handoff; M021 native bounded-candidate fixture corrective is closed; hosted-qualified in run `44380404044` on implementation commit `5f7f074baa491f62a5e372d0caacaacea5148716`; PR run `44380418766` also passed all five lanes Long-term references: @@ -503,5 +503,6 @@ publication/tag is reopened. | M017 | closed; hosted-qualified (run `40062299630`) | `plans/implementation/verified-update-core/017-bounded-stdin-execution-corrective.md` | `plans/closure/verified-update-core/017-status.md` | Supplies the bounded-stdin capability that Service M015 needs. `CommandSpec::stdin_data` attaches a payload and `MAX_STDIN_BYTES` (1 MiB, inclusive) bounds it; an oversize payload is rejected with `Error::InvalidInput` **before any child is spawned**; the payload is written on a dedicated thread and a write failure — including the broken pipe from a child that exits without reading — kills and reaps the child and returns a typed `Error::Io`. The deadline stays unconditional and bounds the writer exactly as it bounds the readers. The three `Error::Io` operation strings (`spawning bounded candidate`, `polling bounded candidate`, `writing bounded stdin`) are documented as a stable classification surface so a downstream adapter can re-classify a core failure. `Error` keeps exactly the seven published variants and no new dependency was added. Unpublished; `eggup-core` stays published at `0.1.3` **Published since:** the `0.2.0` train carries this fix — published 2026-10-24 from `b612608`; the published `0.1.x` line still carries the pre-fix state, and registry versions are immutable. | | M018 | closed; hosted-qualified (run `40079833945`) | `plans/implementation/verified-update-core/018-bounded-stdin-outcome-priority-corrective.md` | `plans/closure/verified-update-core/018-status.md` | The deadline has priority over the bounded stdin writer's verdict, and the verdict is classified by the instant the writer observed the write rather than by the runner's poll phase. A write failure observed before the deadline is an `Err`; one observed at or after it is the deadline outcome (`Ok`, `timed_out` set), so an undelivered payload is never reported as a success. The kill-and-pipe wording and the `FailureCategory` producer count were corrected, and the M015 closure record's U1 is closed on the evidence of commit `ab90688`. `Error` keeps exactly the seven published variants and no new dependency was added. Unpublished; `eggup-core` stays published at `0.1.3` **Published since:** the `0.2.0` train carries this fix — published 2026-10-24 from `b612608`; the published `0.1.x` line still carries the pre-fix state, and registry versions are immutable. | | M019 | closed; hosted-qualified (run `40079833945`) | `plans/implementation/verified-update-core/019-eggup-core-0.2.0-publication.md` | `plans/closure/verified-update-core/019-status.md` | Published `eggup-core 0.2.0` (`2c86a0eb…eb23b8`) from `b612608`, the publication source commit, with `v0.2.0` and release `0.2.0` created. The registry-only fixture resolves `eggup-core 0.2.0` from crates.io and exercises `MAX_STDIN_BYTES`, `CommandSpec::stdin_data`, the seven `Error` variants, and the absence of `FailureCategory::RetainedEvidence`. The version is `0.2.0` rather than `0.1.4` because the workspace is version-lockstep and the seam's next release is source-breaking. Plan §9.1 records the train-order exception: the packaged-service step resolves `eggup-core` against crates.io, so it could not be green before the first upload of the train; the four lanes were re-run on the same commit afterwards and passed unchanged | -| M016 | ready for handoff | `plans/implementation/verified-update-core/016-eggup-core-contract-doc-packaging.md` | — | Core M019's republication prerequisite is closed. The plan targets `eggup-core 0.2.1`, subject to registry preflight; explicit maintainer authorization remains required before upload | +| M016 | active | `plans/implementation/verified-update-core/016-eggup-core-contract-doc-packaging.md` | — | Local gate and package qualification passed for the `0.2.1` source candidate. Explicit maintainer authorization and registry readback remain required before upload and closure | | M020 | ready for handoff | `plans/implementation/verified-update-core/020-staging-privacy-and-credential-redaction-corrective.md` | — | Closes registry finding 18 (**low**) at baseline `2516d9e`: creation-mode privacy for the stage root, stage intermediates, backup root and both lock-record sites, plus manual `Debug` redaction in `eggup-acquisition`, `eggup-curl`, and `eggup-eggfetch`. No new dependency, no public API change, no publication. Three audit items are accepted residuals with reasons in plan §5; the acquisition boundary is named as an affected roadmap, not a second primary | +| M021 | closed; hosted-qualified (run `44380404044`) | `plans/implementation/verified-update-core/021-native-bounded-candidate-test-fixture.md` | `plans/closure/verified-update-core/021-status.md` | Replaces six Core shell fixtures with a native helper; implementation commit `5f7f074baa491f62a5e372d0caacaacea5148716` passed all five hosted lanes, and PR run `44380418766` also passed. Test-only; no production, API, dependency, version, or publication change. Registry finding 1 remains open for broader host-level spawn/resource failures | diff --git a/scripts/check-docs-truth.sh b/scripts/check-docs-truth.sh index 47eb537..5147b48 100755 --- a/scripts/check-docs-truth.sh +++ b/scripts/check-docs-truth.sh @@ -7,7 +7,7 @@ # writes, never fetches, and never needs elevated privileges. # # Usage: -# ./scripts/check-docs-truth.sh # assertions 1-5 and 8 +# ./scripts/check-docs-truth.sh # assertions 1-5, 8, and 9 # ./scripts/check-docs-truth.sh --baseline # also assertion 7, scoped to # # Assertion 6 (the transport-footprint dependency counts) is a `cargo tree` @@ -250,19 +250,16 @@ for path in ALL_SURFACES: offset += len(line) + 1 # ---------------------------------------------------------------- assertion 2 -# The published-state claims in the checked surfaces must name the current -# workspace version. +# Workspace-source version claims are anchored to the workspace manifest. +# Published-version claims are checked per crate against its own released +# changelog headings in assertion 8b; a single-crate release preparation may +# legitimately make source and registry versions differ. # - a "workspace version" paragraph must not name any other version -# - "published at `X`" must name the current version, except in docs/crates.md, -# which is the one surface that records each crate's published history and -# may name an older version as a crate's first publication -# - "=X" (an exact pin) may survive only where it states the eggpack +# - "=X" exact pins may survive only where they state the eggpack # exact-pin policy # -# Re-based from the `0.1.2` literal when the `0.2.0` train landed, and made -# version-agnostic against WORKSPACE_VERSION so the next train needs no further -# edit of this clause. The shape of the rule is unchanged; only the version it -# is anchored to moved. +# The assertion is manifest-anchored, so future workspace version changes need +# no edit of this clause. CURRENT = WORKSPACE_VERSION if not CURRENT: @@ -279,22 +276,6 @@ for path in DOC_FILES + ["README.md", "AGENTS.md"]: fail("2", "%s: a 'workspace version' paragraph names %s, not the current %s" % (path, literal, CURRENT)) -published_hits = [] -for path in DOC_FILES: - for number, line in enumerate(lines(path), 1): - for match in re.finditer(r"published at `(0\.\d+\.\d+)`", line): - published_hits.append((path, number, line, match.group(1))) -for path, number, line, literal in published_hits: - if literal == CURRENT: - continue - if path != "docs/crates.md": - fail("2", "%s:%d: 'published at `%s`' names a version other than the current %s, " - "and only docs/crates.md may record an older published version" - % (path, number, literal, CURRENT)) - if literal not in KNOWN_VERSIONS: - fail("2", "%s:%d: 'published at `%s`' names a version outside the known set %s" - % (path, number, literal, sorted(KNOWN_VERSIONS))) - for path in DOC_FILES + ["README.md", "AGENTS.md", "architecture/overview.md", "architecture/tooling-governance.md"]: text = read(path)