Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -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; 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.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).
Expand Down
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions architecture/eggpack-adapter.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ Runtime dependencies ([`Cargo.toml`](../crates/eggup-eggpack/Cargo.toml)):
| `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.1` | crates.io registry |
| `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`.
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -253,7 +253,7 @@ 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 match the adapter's own `env!("CARGO_PKG_VERSION")` rather than a
hardcoded literal, so the invariant is "pinned to *our* version" and survives
Expand Down
2 changes: 1 addition & 1 deletion architecture/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,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.1` in the workspace source candidate) + `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:
Expand Down
13 changes: 7 additions & 6 deletions architecture/tooling-governance.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ review-critical.
| `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
Expand All @@ -116,9 +116,9 @@ silently break them:

**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.1` from the registry. The
immutable published `eggup-eggpack 0.2.0` still pins those Eggup edges at
`=0.2.0`. Every other current workspace crate uses a caret requirement,
(`=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
Expand Down Expand Up @@ -772,8 +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`; current workspace pins are `=0.2.1`, while the
published `0.2.0` artifact retains its `=0.2.0` pins.
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.
Expand Down
4 changes: 4 additions & 0 deletions crates/eggup-eggpack/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ 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.
Expand Down
2 changes: 1 addition & 1 deletion crates/eggup-eggpack/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ workspace = true
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.1"
eggpack-manifest = "=0.1.2"

[dev-dependencies]
serde = { version = "1", features = ["derive"] }
Expand Down
2 changes: 1 addition & 1 deletion crates/eggup-eggpack/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
12 changes: 5 additions & 7 deletions crates/eggup-eggpack/tests/interoperability.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down Expand Up @@ -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 =",
Expand Down
Loading
Loading