Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
8f727d4
plans(service): define M010 owned failed-systemd quiescence corrective
dbowm91 Oct 9, 2026
44ed485
plans(service): register conditional M011 service patch publication
dbowm91 Oct 9, 2026
78851f5
plans(service): sequence M010 failed-unit correction and conditional …
dbowm91 Oct 9, 2026
dbc2e8d
plans(service): register corrective M010 and conditional publication …
dbowm91 Oct 9, 2026
8ea67cf
test(service): characterize owned failed systemd quiescence
dbowm91 Oct 9, 2026
0627249
ci(service): run systemd fixture with privileged cargo
dbowm91 Oct 9, 2026
89e5078
test(service): wait for failed systemd state
dbowm91 Oct 9, 2026
441d082
fix(service): prove owned failed systemd quiescence
dbowm91 Oct 9, 2026
c1df098
chore(test): ignore compatibility fixture build output
dbowm91 Oct 9, 2026
1ec2951
test(service): qualify systemd restart and task evidence
dbowm91 Oct 9, 2026
eb8e25b
test(service): record systemd start-limit evidence
dbowm91 Oct 9, 2026
ef9feec
test(service): prove systemd restart limit behavior
dbowm91 Oct 9, 2026
753bc7c
test(service): accept expected failed fixture start
dbowm91 Oct 9, 2026
0bde3fe
docs(service): close M010 failed-unit quiescence
dbowm91 Oct 9, 2026
fc6faac
docs(service): finalize M010 closure and unblock M011
dbowm91 Oct 9, 2026
1d66f11
test(service): qualify published API negative control
dbowm91 Oct 9, 2026
11e071b
test(service): allow systemd negative control to settle
dbowm91 Oct 9, 2026
f65496f
test(service): assert published stop cannot complete
dbowm91 Oct 9, 2026
feb6ae5
docs(service): record M011 release qualification
dbowm91 Oct 9, 2026
12eb799
release(service): qualify published 0.1.3
dbowm91 Oct 9, 2026
2fbb3c6
test(service): prove restart attempt from manager state
dbowm91 Oct 9, 2026
dbdc009
docs(service): close published 0.1.3 milestone
dbowm91 Oct 9, 2026
c480541
docs(service): reconcile wg-basic M004 closure
dbowm91 Oct 9, 2026
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
23 changes: 23 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
- run: cargo clippy --workspace --all-targets --all-features --locked -- -D warnings
- run: cargo test --workspace --all-targets --all-features --locked
- run: cargo doc --workspace --no-deps --locked
- run: cargo package -p eggup-service --locked

msrv:
name: MSRV check
Expand All @@ -28,6 +29,26 @@ jobs:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@1.89.0
- run: cargo check --workspace --all-targets --locked
- run: cargo package -p eggup-service --locked

service-systemd:
name: Linux systemd service qualification
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- run: cargo fmt --manifest-path crates/eggup-service/tests/published-api-0.1.2/Cargo.toml -- --check
- run: cargo check --manifest-path crates/eggup-service/tests/published-api-0.1.2/Cargo.toml --locked
# This registry-only 0.1.2 fixture is a deliberate negative control for
# the failed-unit behavior added to the unpublished workspace 0.1.3.
- run: sudo --preserve-env=PATH,HOME,RUSTUP_HOME,CARGO_HOME env EGGUP_SYSTEMD_INTEGRATION=1 "$HOME/.cargo/bin/cargo" test --manifest-path crates/eggup-service/tests/published-api-0.1.2/Cargo.toml --locked -- --nocapture
# This fixture writes disposable unit files under /run/systemd/system.
# Run the test process as root so systemd can load and control them.
- run: sudo --preserve-env=PATH,HOME,RUSTUP_HOME,CARGO_HOME env EGGUP_SYSTEMD_INTEGRATION=1 "$HOME/.cargo/bin/cargo" test -p eggup-service --test systemd_failed_service --locked -- --nocapture
# These tests resolve the published crate and core from crates.io only.
- run: cargo fmt --manifest-path crates/eggup-service/tests/published-api-0.1.3/Cargo.toml -- --check
- run: cargo check --manifest-path crates/eggup-service/tests/published-api-0.1.3/Cargo.toml --locked
- run: sudo --preserve-env=PATH,HOME,RUSTUP_HOME,CARGO_HOME env EGGUP_SYSTEMD_INTEGRATION=1 "$HOME/.cargo/bin/cargo" test --manifest-path crates/eggup-service/tests/published-api-0.1.3/Cargo.toml --locked -- --nocapture

macos:
name: macOS tests
Expand All @@ -38,6 +59,7 @@ jobs:
with:
components: rustfmt, clippy
- run: cargo test --workspace --all-targets --all-features --locked
- run: cargo package -p eggup-service --locked

windows-check:
name: Windows archive, acquisition, and service tests and check
Expand All @@ -59,3 +81,4 @@ jobs:
# --no-fail-fast: this lane is the only Windows test coverage, so a single
# failing target must not hide the state of every other one.
- run: cargo test --workspace --all-targets --locked --no-fail-fast
- run: cargo package -p eggup-service --locked
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/target/
/crates/eggup-service/tests/published-api-0.1.2/target/
/crates/eggup-service/tests/published-api-0.1.3/target/

# macOS Finder metadata. Ignored so the tree can stay clean for the
# no---allow-dirty publication step in the release plans.
Expand Down
22 changes: 12 additions & 10 deletions .opencode/skills/docs-hygiene/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,14 @@ to stay correct.

Each has occurred at least once — check for them explicitly:

1. **CI lane understatement.** Windows runs six `cargo test` steps
(`ci.yml:48-53`), not just `cargo check`. MSRV is compile-only. Never call
`windows-check` "compile-only" — and count the steps, not the bullets: the
three named `eggup-service` tests are three steps, not one.
2. **Publication status.** "Unpublished" is wrong for `eggup-service` — it is on
crates.io at `0.1.0`/`0.1.1` while its `0.1.2` was never published. Check
crates.io rather than inferring from a `publish = false` key or a plan.
1. **CI lane understatement.** Windows runs nine `cargo test` steps
(`ci.yml:66-79`) plus packaged service verification. There is also a
privileged Linux `service-systemd` lane. Count commands, not bullets: three
named `eggup-service` diagnostic tests are three steps. The MSRV lane runs a
workspace check and packaged service verification; it does not run tests.
2. **Publication status.** `eggup-service 0.1.2` is published; the corrected
`0.1.3` service candidate is not yet published. Check crates.io rather than
inferring from a `publish = false` key or a plan.
3. **Enum tables lagging the source.** `architecture/core-transaction.md` once
described a whole earlier generation of `eggup-core`'s enums. When a variant
is added, renamed, or removed, update every table that lists variants.
Expand All @@ -82,9 +83,10 @@ Each has occurred at least once — check for them explicitly:
8. **Broken markdown tables.** Copy-pasting a row between tables of different
arity silently drops cells. Check column counts.
9. **Counting steps, not bullets.** A CI lane that runs three separately-named
tests is three steps, not one. `windows-check` is six `cargo test` steps
(`ci.yml:48-53`): one combined three-crate run, one eggpack run, three named
`eggup-service` tests, and `windows_scm::tests`. Count the `- run:` lines.
tests is three steps, not one. `windows-check` is nine `cargo test` steps
(`ci.yml:66-79`): one combined three-crate run, eggpack, three named service
tests, SCM, two Core integration fixtures, and the full workspace run. It
then verifies the packaged service crate. Count the `- run:` lines.
10. **A quoted phrase that was never written.** A governance section attributed
a quoted comment to a skill file that did not contain it. When a doc quotes
another doc, `grep` the quoted string — a paraphrase presented as a
Expand Down
6 changes: 3 additions & 3 deletions .opencode/skills/release-workflow/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ explicitly in the plan and in the registry, or it will be discovered late.
version (`0.1.2` → `0.1.3`).
- Do not move `v0.1.1` / `v0.1.2` tags. Extend release notes instead.
- Do not publish `eggup-transport-footprint` — it is `publish = false`.
- Do not publish `eggup-service` without a milestone authorizing it. It is on
crates.io at `0.1.0`/`0.1.1` while its `0.1.2` has never been published, so
"it is unpublished" is the wrong mental model.
- Do not publish `eggup-service` without explicit maintainer authorization for
Service M011. It is published through `0.1.2`; the M010 correction is the
unpublished `0.1.3` candidate.
- Do not add release CI. Manual publication is a recorded decision.

## Qualification before publishing
Expand Down
14 changes: 9 additions & 5 deletions .opencode/skills/verify-workflow/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,11 @@ only** — nothing in the script or CI fails when a boundary is crossed.

| Job | Runner | What it adds |
|---|---|---|
| `stable` | ubuntu | fmt + clippy + full `cargo test` + `cargo doc`; the only lane running clippy, fmt, and doc |
| `msrv` | ubuntu, pinned `1.89.0` | `cargo check --workspace --all-targets --locked` — compile-only, no clippy, no tests |
| `macos` | macos-latest | full `cargo test`; the only macOS evidence |
| `windows-check` | windows-latest | **runs tests**, ending in a full `cargo test --workspace --all-targets` — see below |
| `stable` | ubuntu | fmt + clippy + full `cargo test` + `cargo doc` + packaged service verification; the only lane running clippy, fmt, and doc |
| `msrv` | ubuntu, pinned `1.89.0` | workspace `cargo check` and packaged service verification at the MSRV |
| `service-systemd` | ubuntu-latest | registry-only 0.1.2 negative control, current workspace systemd fixtures, and published registry-only 0.1.3 positive quiescence plus ownership controls |
| `macos` | macos-latest | full `cargo test` + packaged service verification; the only macOS evidence |
| `windows-check` | windows-latest | **runs nine test steps**, ending in a full `cargo test --workspace --all-targets`, then package verification — see below |

`windows-check` is *not* compile-only, and it is no longer a curated subset. It
runs the platform-sensitive steps, then the two Core fixture files, then the
Expand All @@ -56,7 +57,8 @@ whole workspace:
6. `cargo test -p eggup-core --test stale_lock_recovery --locked` — exercises
the claim/race fixtures natively; `rename` semantics differ per platform, so
compile-only evidence is not sufficient for M011.
7. `cargo test --workspace --all-targets --locked`
7. `cargo test --workspace --all-targets --locked --no-fail-fast`
8. `cargo package -p eggup-service --locked` — verifies package-produced source on Windows

Step 7 exists because the per-crate steps cannot catch a regression in an
untargeted crate. It passes `--no-fail-fast` deliberately: this lane is the only
Expand Down Expand Up @@ -85,6 +87,8 @@ narrowing the step, and keep `--no-fail-fast`.
`eggup-transport-footprint` binaries are behind `required-features`, so **no
MSRV lane and no Windows lane ever compiles them**. Only `stable` and `macos`
build non-default features.
- The `msrv` package check applies the Rust 1.89 floor to `eggup-service` only;
other crates are covered by the workspace `cargo check`.
- clippy and fmt run on Linux only — a `#[cfg(windows)]` or `#[cfg(target_os = "macos")]`
clippy violation is caught by no lane.
- `macos` is the only lane that runs `cargo test` with `--all-features`, and
Expand Down
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ gaps are in [`architecture/tooling-governance.md`](architecture/tooling-governan

Focused runs: `cargo test -p eggup-core`, `cargo test -p eggup-core <name>`, `cargo clippy -p <crate> --all-targets --locked -- -D warnings`.

CI (`.github/workflows/ci.yml`) adds what the script lacks: `stable` (fmt/clippy/test/doc on Linux), `msrv` (compile-only `cargo check` on 1.89.0), `macos` (full `cargo test`), and `windows-check` — which **runs tests**, not just a check: the acquisition/archive/curl, `eggup-eggpack`, and named `eggup-service` diagnostic-safety runs, then `cargo test -p eggup-core --test current_executable` and `--test stale_lock_recovery` (Core M010/M011 self-replacement and lock-race fixtures must execute natively, not merely compile), then a full `cargo test --workspace --all-targets`. Neither `msrv` nor `windows-check` passes `--all-features`, so the feature-gated footprint binaries are built only by `stable` and `macos`. CI never publishes; releases are manual.
CI (`.github/workflows/ci.yml`) adds what the script lacks: `stable` (fmt/clippy/test/doc plus packaged service verification on Linux), `msrv` (workspace `cargo check` and packaged service verification on 1.89.0), `service-systemd` (registry-only published 0.1.2 negative controls, current real-systemd fixtures, and published registry-only 0.1.3 positive quiescence and ownership controls), `macos` (full `cargo test` plus package verification), and `windows-check` — which runs nine `cargo test` steps, then `cargo package -p eggup-service --locked`. Windows tests cover acquisition/archive/curl, eggpack, three named service diagnostic tests, SCM, Core `current_executable` and `stale_lock_recovery`, then the full workspace. Core M010/M011 self-replacement and lock-race fixtures execute natively, not merely compile. Neither `msrv` nor `windows-check` passes `--all-features`, so the feature-gated footprint binaries are built only by `stable` and `macos`. CI never publishes; releases are manual.

## Where to look

Expand Down
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,17 @@ claims are made by any of these crates.
authenticity, and authorizes no filesystem destination; caller-bound
destination APIs are unchanged.

- `eggup-service 0.1.3` (Service M011; published 2026-10-09):
contains the Service M010 source-compatible correction for stopping an
exact-owned failed systemd unit only after identity, manager state, process,
and cgroup quiescence evidence agree. Unknown state, changed identity,
restart races, and a remaining cgroup task fail closed. Runtime source is
`0bde3fefbda07019529ad7566c02e6e4ec141fd6`; the package source commit is
`feb6ae5aea4c9b61c4051957f3662ca49d845f9e` and the registry checksum is
`9f7f7ea854577158e66aa202709ab1c97a3aedcf00b06c1ab914d25b132124dc`.
M011's registry-only post-publication and hosted systemd evidence is recorded
in `plans/closure/service-lifecycle/011-status.md`.

## Unreleased

The workspace-wide bug-audit fixes below are recorded here as well as in the
Expand Down
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,10 @@ user-facing guidance and never overrides them.
## Publication state

`eggup-core`, `eggup-archive`, `eggup-acquisition`, `eggup-eggfetch`,
`eggup-eggpack`, `eggup-curl`, and `eggup-service` are all published at `0.1.2`.
`eggup-core`, `eggup-archive`, `eggup-acquisition`, `eggup-eggfetch`, and
`eggup-eggpack` are published at `0.1.3`; `eggup-curl` and `eggup-service` are
published at `0.1.2`. Service M010's `0.1.3` correction is still in M011 release
qualification and has not been published.
`eggup-service` was published later from a different source commit than the shared
`v0.1.2` tag, which denotes the `eggup-core`/`eggup-archive` publication; the tag
was not moved. `eggup-transport-footprint` is `publish = false` by design. CI never
Expand Down
14 changes: 9 additions & 5 deletions architecture/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,11 @@ manager, and producer concerns.

Derived from the `crates/*/Cargo.toml` manifests. Arrows point from dependent to
dependency (compile-time direction). All 8 crates carry the workspace version
`0.1.2`; six of them are published at `0.1.2` on crates.io. `eggup-service` is
published but lags at `0.1.1`, and `eggup-transport-footprint` is `publish = false`.
`0.1.3`; all seven library crates are published at `0.1.2` or `0.1.3` on crates.io.
Service M011 published the M010 `eggup-service 0.1.3` correction from source
`feb6ae5aea4c9b61c4051957f3662ca49d845f9e`; its checksum and external
qualification are recorded in the M011 closure. The shared `v0.1.3` tag was
not moved. `eggup-transport-footprint` is `publish = false`.

```text
eggup-transport-footprint (publish = false, 3 bins)
Expand Down Expand Up @@ -243,9 +246,10 @@ Contract-level detail that belongs to no single crate:
- [closure records](../plans/closure/README.md) — requirement → evidence matrices

Publication state: `eggup-core`, `eggup-archive`, `eggup-acquisition`,
`eggup-eggfetch`, `eggup-eggpack`, and `eggup-curl` are published at `0.1.2`.
`eggup-service` **is** on crates.io but only at `0.1.0`/`0.1.1`, so its `0.1.2`
has never been published and no milestone authorizes it.
`eggup-eggfetch`, `eggup-eggpack`, and `eggup-service` are published at `0.1.3`;
`eggup-curl` is published through `0.1.2`. Service M011 published the M010
correction from `feb6ae5`; checksum and registry-only qualification are in its
closure record. The shared `v0.1.3` tag was 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.
26 changes: 21 additions & 5 deletions architecture/service-lifecycle.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,14 @@ 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 published but lags the workspace.** It is on crates.io at
`0.1.0` and `0.1.1`; its `0.1.2` has not yet been published. Service M009 now
authorizes a future manual `0.1.2` publication, but until that milestone closes
the `Unreleased` section below is still not on the registry. `eggup-core`, `eggup-archive`, `eggup-acquisition`, `eggup-eggfetch`,
`eggup-eggpack`, and `eggup-curl` are the published `0.1.2` set.
- **The crate is current with the workspace.** It is on crates.io at
`0.1.0`, `0.1.1`, `0.1.2`, and `0.1.3`; 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.
`eggup-core`, `eggup-archive`, `eggup-acquisition`, `eggup-eggfetch`,
`eggup-eggpack`, and `eggup-curl` are also published at `0.1.2` or later.
`eggup-transport-footprint` is `publish = false`
([registry.md](../plans/registry.md)).
- Dependency order position: 5th deepest in
Expand Down Expand Up @@ -799,6 +802,19 @@ narrow `parse_exec_start` (`lib.rs:1574`) plus `reconcile_config_identity`.
asked for them via `SystemdInstall::{enable,reload}`. `start` / `stop` / `restart`
are bounded by `OperationDeadline` and confirm the resulting state.

`stop` handles an exact-owned unit reported as `failed` without changing the
closed public `LifecycleState` enum. It re-reads the full systemd observation
immediately before stopping and after the stop. Completion requires matching
ownership, a stable failed/inactive state, no active job, zero `MainPID` and
`ControlPID`, and either no unit control group or an empty cgroup v2 process
list with `cgroup.events` reporting `populated 0`. It also checks that
`systemctl is-active` agrees with the final `ActiveState`. Unknown state,
changed identity/control group, inaccessible or malformed cgroup evidence, and
restart/transition races return incomplete or an error; they do not authorize
rollback against a possibly live process. It never calls `reset-failed`.
`plans/closure/service-lifecycle/010-status.md` records the real-systemd
qualification and its negative controls.

`reconcile_config_identity` (`lib.rs:1491-1524`) is the subtle part: the config
path is only treated as part of identity if it appears **exactly once** in the
spec's canonical args and once in the observed args. Zero occurrences in the
Expand Down
Loading
Loading