Producer-side release construction/distribution for Eggstack. Does NOT replace Eggup (consumer-side install/update/rollback).
- Cargo workspace, resolver 2, 7 members:
eggpack-{contract,manifest,core,bootstrap,ci,github,cli}. Edition 2021,rust-version = 1.89, MIT. #![forbid(unsafe_code)]workspace-wide (unsafe_code = deny); clippyall = warn, but verification denies warnings.- Leaf crates are sync, side-effect-free:
contract(layout authority + validators),manifest(JSON parser/serializer, no I/O).coreowns planning/build/qualify/finalize.bootstraprenders installers.cirenders workflows.githubstages drafts.cliis deterministic wiring only (hand-rolled args, noclap).
- Full local gate:
scripts/check-local.sh—fmt --check→check→clippy -D warnings→ per-crate tests → workspace tests →doc→tree→package→ MSRV lane (cargo +1.89.0 check/test). - Fast loop:
cargo fmt --all -- --check,cargo check --workspace --all-targets --locked,cargo test -p <crate> --all-targets --all-features --locked,cargo clippy --workspace --all-targets --all-features --locked -- -D warnings. - Single test:
cargo test -p <crate> --all-targets --all-features --locked <filter> -- --nocapture(e.g.-p eggpack-core real_local_cargo_fixture_builds_a_direct_candidate). - Windows-only serialization when diagnosing: append
-- --test-threads=1to core tests. cargo packagefor non-leaf crates requires--config 'patch.crates-io.<dep>.path="crates/<dep>"'flags — copy the exact invocation fromscripts/check-local.sh. Never barecargo publish.- CI (
.github/workflows/ci.yml,contents: read):linuxjob = ubuntu × stable/1.89.0 (fmt only on stable, clippy/doc only on stable);portability= macOS/Windows stable with focused Windows builder, process-group, bootstrap-archive, and orchestration tests.
- Authority separation: Contract owns layout/names; PackConfig references them but never redefines; ReleasePlan = intent (not evidence); ReleaseManifest = final-bytes evidence only; Eggup receipts = installed state.
- Determinism: canonical sort, stable serialization, sorted inventories, byte-identical renders. Preserve it in any change.
- Fail-closed validation:
deny_unknown_fields,schema_version == 1, bounded counts/sizes, exact-match resolution,AllowExtrasdefault with opt-inExact. - Integrity ≠ authenticity: SHA-256 + sizes are integrity facts only. No signature/provenance claims.
- Staging is draft-only on the exact existing tag. No
--clobber, no tag mutation, no auto-publish, no immutable overwrite. Publication is a separate human action. Qualification::Nativeis host-matched proof, independent of builder (NativeCargoorCargoZigbuild); mismatch recordsHostMismatchfail, never pass/skip. Native run does NOT prove a declared glibc/macOS floor.- Archive output:
TarGziponly, filename must end.tar.gz, deterministic timestamps/ownership. - Finalizer writes only into a new output root under a caller-secured parent;
release-manifest.jsongoes beside (never inside) the finalized root.
- Process execution: bounded time/output,
command-groupprocess groups/jobs, cleared env except small toolchain/path allowlist, never return captured output contents. - Windows Cargo builds require initialized MSVC env (
ilammy/msvc-dev-cmd,link.exeunderVCToolsInstallDir); bootstrap archive tests need pwsh 7 +tar.exe. eggpack ci generatecreates/atomically replaces only the explicit--outputpath, rejects symlinks.eggpack ci checknever writes; CRLF→LF-only drift comparison.- Internal
ci _*runner commands are file-in/file-out wrappers, not a scripting interface; no shell, no arbitrary commands. architecture/line citations rot silently: editing a cited.rsfile invalidates them, and a blanket re-base corrupts as much as it fixes because documents are often only partly updated. Re-base by symbol name, never arithmetic. Current state and the outstanding gap are recorded inarchitecture/overview.md§Citation-verification state.
Read the relevant skill before starting the matching kind of work. Each is derived
guidance that routes to a normative document; where a skill and AGENTS.md or
architecture/ disagree, the deep dive wins and the skill is what gets fixed.
| Skill | Use it when |
|---|---|
.skills/pre-submit-gate/ |
Finishing a change, before committing, or asked "is this ready to submit?" — the exact gate, the cargo package patch flags, and the Windows-only steps a local green run does not cover |
.skills/architecture-routing/ |
Before reading source — which deep dive is normative, which crate owns which boundary, and whether a suspected bug is doc drift |
.skills/planning-and-closure/ |
Opening, planning, correcting, or closing a milestone; updating the registry |
.skills/generated-ci-and-draft-staging/ |
Touching ci generate/ci check, the ci _* runner commands, the handoff file names, or draft staging/publication |
.skills/contract-and-manifest-surface/ |
Adding or changing a target, asset form, install name, or either schema-v1 document |
docs/— user-facing guides, verified commands only. Start withquickstart.md(resolve → generate → check); every command and expected output there was run verbatim, so keep them exact when editing.plans/registry.md— control surface (status, blockers, execution order, next handoff). Canonical direction:plans/000/001/002/003.architecture/overview.md— module map, producer pipeline, key invariants, and the index into every deep dive. Pins its verified baseline; re-verify its line counts andfile:linecitations against the workspace whenever you touch a cited file.architecture/eggup-manifest-consumer-v1.md— Eggup consumer mapping; interface note, not a wire format.
There is deliberately no opencode.json or other agent-runtime config here.
AGENTS.md plus architecture/overview.md is the whole entry path.
Read the index in overview.md and follow one link. Grouped by what they cover:
| Area | Document |
|---|---|
Vocabulary, authority, phases, ADRs 0001–0006, dist (disposition C: prior art only) |
principles-roadmap.md |
| Planning process, closure discipline, registry | planning-and-governance.md |
| Layout authority, schema-v1, conformance validators | contract.md |
| Final-bytes evidence, bounds, collision rules, publication status | manifest.md |
| Pipeline orientation and cross-file contracts | core.md |
Planning stage, policy, validate_policy |
core-planning.md |
| Build stage, bindings, bounded execution, MSVC | core-build.md |
| Qualification methods, host matching, what native does not prove | core-qualification.md |
| Finalization, gate, archives, sidecars, manifest aggregation | core-finalization.md |
| Installer render API, install modes, PowerShell specifics | bootstrap.md |
| Job-graph projection, gates, aggregation, CLI seam | ci.md |
| Renderers, caller-supplied policy, drift checking | ci-rendering.md |
| Handoff formats, consumer validator, runtime identity | ci-consumer-seam.md |
Staging payload, GithubApi seam, reconciliation, redaction |
github.md |
Commands, ci _* runners, file-safety helpers, exit discipline |
cli.md |
| Determinism and stable serialization, and where it is not claimed | determinism.md |
| Fail-closed validation model | validation-model.md |
| Process execution, env allowlist, executable allowlist | process-execution.md |
| Test topology, lane matrix, MSRV | testing-and-portability.md |
- Closure discipline:
plans/closure/<subsystem>/NNN-status.md. Compilation ≠ closure. History never rewritten — correctives are newNNNaplans; superseded material goes toplans/archive/. - Current handoff (source:
plans/registry.md): CI/Release M003pa and M003pb are closed; M003pb closureplans/closure/ci-release-orchestration/003pb-status.mdrecords implementationedce774bf3597a37789ba59587cc2a5be56e3cee, merged main23ebb10941bb2b38b808f61edddff3ed3d1f2961, exact push/PR runs44935151048and44935155340, merged-main run44941146518, five focused runs, and the canonical local gate. Workspace Release M001 is closed atplans/closure/workspace-release/001-status.md: six workspace crates were published at 0.1.2, and public source-onlyv0.1.2points to source35b3fc26de63437947aa4f36764c17bd0ebb9f65(hosted run44946729915, all four lanes green).eggpack-manifest 0.1.2and its separate tag were preserved; no prebuilt CLI binaries, signatures, or provenance were supplied. No implementation plan is currently ready or active. Blocked are Ecosystem M004 (Gregg sibling bundle), M005 (CodeGG runfile bundle), and M006 (Egress archive pair), each on its named adoption evidence and bundle/archive review; provenance/authenticity remains planned pending a dedicated trust ADR, and Python/wheel adapters remain planned behind broader native adoption. Contract M003, Bootstrap M003, and Ecosystem M003a/M003b are closed.