Skip to content

Latest commit

 

History

History
3795 lines (3362 loc) · 227 KB

CHANGELOG.md

File metadata and controls

3795 lines (3362 loc) · 227 KB

Changelog

All notable changes to SysKnife are documented here.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning. While the version stays in the 0.y series the middle digit carries breaking changes; docs/release.md has the rules.

Releases before 0.2.5 predate the public launch; their notes live in the git tag history.

[Unreleased]

[0.31.0] — 2026-11-30

Added

  • ProSecurityStatus reports how exposed an Ubuntu Pro host is to security updates. (#849) A read-only daemon action answers both halves of the question from one Pro API call: which package origins the host draws from, and which security updates are pending, classified by service. The Debian-family planner prompt routes "how exposed is this Ubuntu Pro host to security updates?" to it, and story 155 pins the plan to one low-risk step with no parameters and neither AptUpgrade nor ProDetach. Issue #679.

Changed

  • A pull request that changes production code adds its changelog entry as a fragment. (#878) The author writes changelog.d/<slug>.md with the section on the first line, and scripts/bump_version.sh folds the files into CHANGELOG.md when a release is cut. docs-and-hygiene refuses a pull request that touches crates/*/src/, apps/*/src/, packages/ or packaging/ without one, and changelog.d/README.md has the format (closes #876).

Fixed

  • A remember or forget call in the same turn as propose_plan is no longer dropped. (#744) The planner returned as soon as propose_plan parsed, so a model that sent a plan and a remember call in one turn produced a correct-looking plan and never queued the preference. The planner now holds the valid plan, queues the remember and forget calls that follow it, and returns the plan with those changes after the loop. The CLI still writes prefs.md only after the operator confirms. Any other call that follows the plan stays ignored, so a refuse after a valid plan does not replace it (closes #673). Thanks to @dannyward630.
  • --json output stays one JSON object per line while a step runs. (#771) The execute callback handed the daemon's progress frames to the logger as bare text, so lines such as Executing GetMemoryInfo... landed between the preview and the result and broke any consumer that parses every line. Each frame is now {"event":"progress","line":"..."}. The human renderer is unchanged, and the --json row and the schema block in docs/cli.md list the new event (closes #664). Thanks to @yuee3.
  • The setup wizard probes the daemon socket without nc. (#772) The wizard ran nc -zU to learn whether a daemon was listening, so on a host without netcat it printed Daemon socket not reachable for a daemon that was running, and a run that skipped the daemon install because one already existed ended on Setup incomplete with exit code 3. The probe is now a short Node subprocess that opens the socket with the built-in net module and sends no data. It keeps the 2 s limit and the skip for vsock:// and non-local paths (closes #755). Thanks to @CreedTech.
  • A truncated OpenAI tool call is no longer parsed as JSON. (#777) When OpenAI stopped with finish_reason=length, the adapter still decoded the function-call arguments. The cut-off JSON became a retryable parse error, and the planner sent the same request again, which truncates the same way. The adapter now checks length first, returns StopReason::MaxTokens with any partial text, and drops the incomplete tool calls, so the planner ends with planner ended without proposing a plan. docs/cli.md tells the user to split a large intent into smaller requests. The Rig adapter exposes no finish reason and is unchanged (closes #675). Thanks to @dannyward630.
  • --dry-run reports a refused plan with the exit code the real run returns. (#782) A dry run printed the plan and returned 0 before it reached the --max-risk ceiling and the distro check, so a pre-flight such as --dry-run --json --max-risk low accepted plans the real run refuses. A dry run now prints the plan, then applies both checks and exits 1 for a step above --max-risk and 4 for a step the host's distro cannot run. It still executes nothing and prompts nobody, and a dry run with no ceiling still exits 0. docs/cli.md states the exit codes (closes #561). Thanks to @yuee3.

Security

  • curve25519-dalek moves to 5.1.0 for RUSTSEC-2026-0620. (#879) The advisory covers wrong scalar-multiplication results in the crate's AVX-512 backend, which a build enables only with target-cpu=native or an explicit avx512 cfg. Neither the release workflow nor the repository's Cargo configuration sets either, so the published binaries did not use that backend. A build from source with those flags did. The crate reaches the daemon through ed25519-dalek, which signs the audit chain.

[0.30.5] — 2026-11-25

Changed

  • Dependency bumps: rusqlite 0.43.0, clap 4.6.9, rmcp 3.11.0, url 2.5.9 and cookie 0.18.3. (#855, #853, #864) cargo audit had failed on main since 2026-11-24 with RUSTSEC-2026-0592 (url 2.5.8, stack overflow in Url::origin() on nested blob: URLs) and RUSTSEC-2026-0594 (cookie 0.18.1, private cookie nonces can repeat in processes that fork), which turned the required security-audit check red on every pull request. Both lockfile bumps are in. rusqlite 0.43.0 keeps the bundled SQLite at 3.54.1, and the root and fuzz lockfiles now move together. rmcp 3.11.0 answers prompts/list and completion/complete with method-not-found; the SysKnife MCP server never advertised either. GitHub Actions pins, the markdownlint toolchain and the oss-fuzz base image digest moved with the same batch.

Fixed

  • The no-provider notice says how a provider gets selected. (#860) The notice printed before a planning run told users to set OPENAI_API_KEY or GEMINI_API_KEY, and neither selects a provider: auto-detection reads only ANTHROPIC_API_KEY, so a user who followed the notice stayed on Ollama. The notice now says that ANTHROPIC_API_KEY selects Anthropic and that any other provider needs SYSKNIFE_LLM_PROVIDER together with its key, with OpenAI and Gemini examples, and docs/cli.md gives the same examples (closes #859). Thanks to @Daytonrad.
  • UnattendedUpgradesStatus no longer reports a stopped timer's last run as its next run. (#861) systemd 259 (Ubuntu 26.04) prints - in the NEXT column of systemctl list-timers for a timer with no next run, where earlier releases print n/a. The parser read only the n/a form, so a paused apt-daily-upgrade.timer showed its past run as the next run and read as scheduled. A leading - now means no next run. The check stays on the first token because - also fills the LEFT and PASSED columns (closes #857). Thanks to @mateuscmtropical.
  • Provider errors are classified by status words, not by bare 401 and 429 digits. (#862) The error fallback in the OpenAI and rig adapters searched the message for the digits 401 and 429, so a port such as :4290 or the column 401 of a JSON parse error was read as an authentication failure or a rate limit. It now matches the whole words unauthorized and too many requests, which also lets a body such as vLLM's {"error":"Unauthorized"} read as an authentication failure. A status that arrives with no reason phrase, such as an nginx 401 Authorization Required page behind OPENAI_BASE_URL, now falls through to a request error, which the planner retries twice before it shows the body (closes #858). Thanks to @mateuscmtropical.
  • The package-license check reads include and exclude the way Cargo does. (#843) package-license.test.sh decided with Python's fnmatch whether a crate's include or exclude list drops the LICENSE, and fnmatch disagrees with Cargo's gitignore-style patterns on the common spellings: exclude = ["/LICENSE"] passed the check while the crate shipped without the licence, and a correct include = ["/LICENSE", ...] failed it. Thanks to @bfs2021.
  • The test-reachability check names uninvoked tests in both suites in one run. (#846) set -e ended scripts/check_test_reachability.sh at the first failing suite, so when tests/release and tests/e2e each held an unwired test, the second appeared only on the next CI run. Thanks to @MaxonT.

[0.30.4] — 2026-11-20

Fixed

  • The Debian and Ubuntu planner names sudo as the administrator group. (#817) The only group example in the shared parameter block was wheel, which Debian and Ubuntu do not have, so "make alice an admin" planned a step that failed after the operator approved it. The example now lives in the family blocks (wheel on Fedora, sudo on Debian and Ubuntu), the Debian and Ubuntu selection rules name the administrator group, and the propose_plan parameter description follows the same split (closes #650). Thanks to @laurentvv.
  • audit verify, audit export and audit checkpoint no longer write to the store they read. (#816) TransactionStore::open_read_only called initialize(), which creates tables, applies pending migrations and sets journal_mode=WAL, so sidecar files appeared beside a read-only artifact, a newer CLI migrated an older store, and a 0400 copy failed with "attempt to write a readonly database". The read paths now open read-only, replay a WAL read-only without checkpointing it, and refuse a WAL they cannot replay on a read-only artifact (closes #267). Thanks to @Georgefifth.
  • Every provider HTTP client has a connect and a request timeout. (#815) The planner built each provider on reqwest's defaults, which never time out, so an endpoint that accepted the connection and stayed silent hung the planning call, including sysknife_plan over MCP. The connect timeout is 10 s and the request timeout 600 s, overridable with SYSKNIFE_PROVIDER_CONNECT_TIMEOUT_SECS and SYSKNIFE_PROVIDER_TIMEOUT_SECS (zero and unparseable values are ignored). A timeout is a retryable provider error (closes #674). Thanks to @Omair-Asdaq.
  • RemoveMount drops the fstab entry of a mountpoint whose directory is gone. (#826) umount reports no mount point specified for a path that no longer exists, and the helper read that as a failure, so the entry could never be removed. The helper now accepts that exit only when the mountpoint is absent on disk, and still refuses it for a directory that exists (closes #789). Thanks to @QinXi-ai.
  • Four executor timeout tests no longer set a timeout the other twenty-one inherit. (#829) The tests set SYSKNIFE_ACTION_TIMEOUT_SECS for the whole test process, so every other execute_spec test ran under it. They now pass their own one-second deadline to execute_spec_with_options, and process cleanup reports the deadline that fired. The environment override moved to parse_action_timeout, which has its own test (closes #473). Thanks to @QinXi-ai.
  • check_test_reachability.sh no longer counts a test that cannot run. (#813) A workflow step switched off by an expression continue-on-error, a custom shell, or a skipped upstream needs job still satisfied the gate. The checker now resolves the effective shell across step, job and workflow defaults, walks direct and transitive needs, and fails on a reference to a job that does not exist. The npm-audit guard applies the same fail-closed continue-on-error rule (closes #765). Thanks to @Aaqibhafeezkhan.
  • The Dependabot coverage guard sees suffixed container files. (#822) dependabot-coverage.test.sh only matched names that start with Dockerfile or Containerfile, so assets/demo/audit-tamper.Containerfile had no Dependabot entry and the guard stayed green. The rule now matches a dot-separated prefix, and dependabot.yml gains the /assets/demo docker entry the wider rule demands (closes #819). Thanks to @bfs2021.
  • The VM test harness sends provider keys over SSH stdin. (#827) atomic-vm.sh test-exec interpolated every selected provider key into the remote command, where the process list shows it. The harness now streams the environment and the story arguments to bash -s over SSH stdin, so the remote command is a constant, and vm-env-secrets.test.sh discovers every SSH harness, checks its remote commands and runs test-exec against separate host and guest environments for all seven provider variables (closes #428). Thanks to @QinXi-ai.
  • The MCP Registry publisher is pinned and its checksum verified. (#828) publish-mcp.yml downloaded mcp-publisher from releases/latest in a job that holds id-token: write. It now fetches v1.8.6 and checks the archive's SHA-256 before extracting it. pinned-dependencies.test.sh scans every workflow file instead of three, refuses a releases/latest/download URL, reports a duplicate run-step name that would hide an earlier step, and catches more npm, pip and pipe-to-shell forms (closes #702). Thanks to @QinXi-ai.

[0.30.3] — 2026-11-18

Added

  • sysknife fleet hosts <inventory.toml> lists a pinned fleet inventory. (#784) The command validates the file and lists its hosts without contacting a daemon. Text output shows a 12-character key prefix and --json returns every entry with its full key in file order. The parser rejects empty inventories, duplicate names, sockets and keys, missing or malformed keys, unknown fields, invalid names and relative Unix socket paths, and an invalid entry exits 4 and names the host (closes #654). Thanks to @QinXi-ai.
  • Fleet previews group by approval content. (#785) group_previews puts hosts in one group when the seven approval fields match, comparing warnings and expected side effects in sorted order. Host IDs, request hashes and current state do not affect the grouping, and groups keep first-seen order (closes #678). Thanks to @QinXi-ai.
  • UnattendedUpgradesStatus reports the apt unattended-upgrades state. (#807) The read-only action shows whether APT::Periodic updates and unattended upgrades are enabled, the apt-daily timer states and last and next runs, and the latest log entry. A missing config, a missing log directory and a log directory the daemon user cannot read each report unknown with the reason (closes #680). Thanks to @dannyward630.

Fixed

  • npx sysknife-setup --uninstall keeps unrelated Claude MCP config. (#781) Uninstall removes only the SysKnife entries from the project .mcp.json, keeps other servers and settings, deletes the file only when nothing remains and reports how many other servers stay. Claude rule files are removed only while their contents still match the templates setup wrote (closes #480). Thanks to @dannyward630.
  • The developer story runner follows Cargo's target directory. (#796) tests/e2e/dev-stories.sh reads the directory from cargo metadata, uses it for the daemon, puts its CLI ahead of any older sysknife on PATH and fails when the built CLI is not the one selected (closes #659). Thanks to @dannyward630.
  • Planner queries that need a user receive the caller's identity. (#787) The five read-only Flatpak and Podman queries whose daemon specs require a username now get the planner's current user after the model's tool call is mapped, so the name never appears in a model-facing schema. When the user cannot be determined the planner returns a query error instead of dispatching (closes #671). Thanks to @dannyward630.
  • sysknife_doctor over MCP agrees with sysknife audit verify. (#791) The quick check mapped the verifier's exit code directly, so an empty unanchored chain read intact where the CLI answers CANNOT VERIFY. It now folds in the checkpoint anchor, reports cannot_verify (the word the CLI uses, replacing unknown) and adds a warning that names why an anchor could not be confirmed (closes #556). Thanks to @yuee3.
  • sysknife doctor continues past a missing provider key. (#762) The command stopped at the missing key before it contacted the daemon, and --json printed nothing. It now checks the daemon first, reports provider and model as unknown, and lists the error under warnings in text and JSON output. Exit code 4 stays for a broken config (closes #647). Thanks to @sharmis-tp.
  • Piped REPL intents report the first failure. (#790) A session whose input is not a terminal, or that runs with --non-interactive, now exits with the first failed intent's code instead of 0. Later failures do not replace it, and an interactive terminal session still exits 0 (closes #646). Thanks to @Omair-Asdaq.
  • sysknife audit reads the Postgres chain the [storage] section selects. (#797) On Postgres the daemon anchored the chain but every reader reported the anchor unsupported and exited 2. audit verify and audit checkpoint now read and anchor the Postgres chain, a deleted tail is reported as truncated, and a live contract test runs in postgres-contract (closes #558). Thanks to @Georgefifth.
  • GrubSetKargs no longer refuses every edit on Ubuntu desktops that ship kdump-tools.cfg. (#806) The helper accepts a snippet that extends GRUB_CMDLINE_LINUX_DEFAULT itself and still refuses when a later snippet reassigns the line the request edits, including one in the same file (closes #795). Thanks to @jay23606.
  • A stalled systemd-cat can no longer park the daemon. (#750) Postgres audit writes emit the chain-tip watermark on the blocking pool, and the child gets a two-second deadline: a stalled child is killed and reaped and the skipped watermark is logged, without failing the committed write (closes #645). Thanks to @xianjianlf2.
  • npx sysknife-setup asks git whether secret files are ignored and hides the API key. (#748) The wizard uses git check-ignore instead of matching .gitignore text, appends missing entries when a key is embedded, and no longer draws the key on a terminal or stalls on a pasted key (closes #562). Thanks to @ShahadatTest.
  • SSH authorized-keys actions use the account's home directory. (#788, landed as #808) GetAuthorizedKeys and AddAuthorizedKey resolve the home from the account, open .ssh with O_DIRECTORY | O_NOFOLLOW and open authorized_keys relative to that descriptor, so reads and writes apply the same home and symlink rules (closes #670). Thanks to @dannyward630.

[0.30.2] — 2026-11-09

Changed

  • rmcp moves from 3.8.0 to 3.9.0. (#768) RUSTSEC-2026-0462 (unbounded response body buffering in Streamable HTTP clients) failed cargo audit on main, and the required security-audit check with it. sysknife-cli builds rmcp with the server, macros and transport-io features only, so the Streamable HTTP client code is not compiled into SysKnife. The bump is a lockfile change.

Fixed

  • sysknife plan --json neutralises model-authored preference facts. (#764) The JSON view of a pending preference change printed each fact as the model wrote it, so bidi overrides, zero-width characters and C1 controls reached a field a caller may render. The fact now goes through the character rules the terminal view uses, flattened to one line and without the display cap, so a Unicode line break at the start of a line cannot carry an indent into the string (closes #757). Thanks to @yuee3.

[0.30.1] — 2026-11-09

Changed

  • Dependency updates. (#759, #760) rusqlite moves from 0.40.2 to 0.41.0, and the minor and patch group brings async-openai 0.42.3 with updates to uuid and rmcp.

Fixed

  • RemoveMount keeps the /etc/fstab entry when the unmount fails. (#763) When umount failed, for example with target is busy, sysknife-mount-edit still dropped the entry and reported success while the filesystem stayed mounted. It now stops with umount's error and leaves the entry in place. A target that is already unmounted (exit 32 and a single not mounted line, read under LC_ALL=C) still has its entry removed (closes #651). Thanks to @QinXi-ai.
  • Plan text the model writes is normalised when the plan is parsed. (#751) parse_proposed_plan stored summary, explanation and every step summary as the model wrote them, so bidi overrides, zero-width characters and ANSI sequences reached the --json output. All three now pass through normalise_operator_text, the same normalisation parse_refusal already applied (closes #474). Thanks to @yuee3.
  • The VM test harness no longer lets a login password age into a lockout. (#758) An aging test could leave the VM login account usable for weeks and then lock out SSH key authentication. The harness now resets risky aging fields before a clean shutdown, recognises the PAM expiry failure and points to overlay recovery. Thanks to @QinXi-ai.
  • The test-reachability check flags disabled tests. (#761) A release or E2E test step switched off with if: false, ${{ false }} or continue-on-error: true now fails docs-and-hygiene (closes #652). Thanks to @QinXi-ai.

[0.30.0] — 2026-11-02

Changed

  • A release tag must point at a commit on main whose CI passed. (#700) The release workflow's first job now refuses a tag whose commit is not an ancestor of main, and refuses one without a completed, successful ci push run for that exact commit (scripts/check_release_ci.sh, which fails closed when the check runs cannot be read). Push a release tag only after ci finishes on the release commit (closes #553). Thanks to @dannyward630.

Fixed

  • RemoveSwap keeps a swap file that is still in use. (#698) When swapoff failed, sysknife-mount-edit went on to drop the /etc/fstab entry and delete the file. It now stops and leaves both in place when the file is still listed in /proc/swaps or /proc/swaps cannot be read, and reports swapoff's error (closes #666). Thanks to @dannyward630.
  • The daemon refuses an optional parameter of the wrong type. (#701) Optional numbers, booleans, strings and string arrays used to be read with .as_u64() and friends, so a value of the wrong type was skipped as if absent: SetPasswordAging {"user":"bob","max_days":"90","warn_days":7} ran without the 90-day limit the operator approved and reported success. The executor now returns InvalidParam for a present value of the wrong type, and still treats an explicit null as absent (closes #668). Thanks to @dannyward630.
  • The Ubuntu prompt calls AptAutoremove medium risk, as the daemon does. (#695) Two lines of prose taught the model LOW while the prompt's own risk table and the daemon's ActionSpec said MEDIUM. prompt_risk_labels.rs now checks risk claims in the prose as well as the tables (closes #649). Thanks to @jabrailkhalil.
  • A plan the daemon cannot run gets one correction turn. (#742) When a proposed plan fails the daemon's own parameter validation, for example SetNtp with {} instead of {"enabled":true}, the CLI asks the model once more with the daemon's exact error, then validates the new plan the same way and fails closed if it is still unrunnable. The correction is a separate request: it takes its own rate-limit slot and its own cassette key (closes #737). Thanks to @inmassat.

[0.29.0] — 2026-10-29

Added

  • Fuzz targets for the trust boundary, run by ClusterFuzzLite on pull requests. fuzz/ holds cargo-fuzz targets for the validated_* functions, action-parameter decoding through build_action_spec, the daemon's request decoding and its frame reader. A validator that accepts a value outside its documented contract (a control character, a leading -, a length past its bound) fails the fuzzer even when it does not panic. .clusterfuzzlite/ and .github/workflows/cflite_pr.yml run the targets for five minutes on pull requests that touch crates/ or the fuzz setup. The daemon exposes its private pieces to the fuzz crate only under #[cfg(fuzzing)], so its public API does not change. docs/contributing/fuzzing.md covers running a target and adding one.
  • make install DESTDIR=<stage> for packagers. Every file the install writes lands under the stage directory, and the steps that act on the running host (systemd-sysusers, systemd-tmpfiles, systemctl daemon-reload) are skipped so the package's own install scripts can run them on the target. make uninstall DESTDIR=... removes the staged files and leaves the running service alone. Without DESTDIR the install behaves as before.

Changed

  • Every commit in a pull request needs a DCO sign-off. A new required check, dco, runs scripts/check_dco.sh over the commits a pull request adds and fails any without a Signed-off-by: trailer from its author. git commit -s adds one; the check's output prints the commands that sign off commits already pushed. CONTRIBUTING.md has the details. Merge commits and Dependabot's own sign-off address are handled.
  • The docs workflow grants Pages and OIDC write only to its deploy job. The build job, which runs mdBook and the link checker, now holds contents: read and nothing else.
  • The release workflow keeps the crates.io token off the command line. cargo publish read the token from --token "$CARGO_REGISTRY_TOKEN", which put it in the process's argv; cargo reads the same variable from the environment, so the flag is gone. tests/release/secret-argv.test.sh fails any workflow that expands a secret outside a test -n presence check. @jay23606 found and fixed the same flag first, in #696 for #694.
  • SECURITY.md states response times, supported versions and the policies CI enforces. Reports go to a named maintainer through the private advisory form; we acknowledge within 3 days, triage within 7, and ship a fix for a critical or high severity issue within 30. The latest release is the supported one. New sections write down the dependency, static-analysis and secrets rules the required checks already apply, and the tag-verification steps now say where the signing key lives.
  • An assurance case and a dependency policy. docs/assurance-case.md argues each security requirement with the code and test that carry it, and tests/release/assurance-case.test.sh fails when a citation goes stale. docs/dependencies.md covers choosing, pinning, watching and removing dependencies.
  • VEX for the dismissed glib advisory, and Dependabot on every lockfile. vex/sysknife.openvex.json records that GHSA-wrw7-89jp-8q8g (RUSTSEC-2024-0429) does not affect the released binaries, and tests/release/vex.test.sh rechecks that against Cargo.lock. Dependabot now opens version updates for fuzz/, .clusterfuzzlite/, tools/ci-node and tools/ci-python too.
  • CONTRIBUTING.md says what a reviewer checks before a pull request is accepted.

Fixed

  • Published crates and the npm package carry the licence text. crates.io and npm build each tarball from the package's own directory, and LICENSE sat only at the repository root, so sysknife-cli-0.28.0.crate and sysknife-setup@0.28.0 shipped a license = "MIT" field with no licence file. Each package directory now holds a copy, and tests/release/package-license.test.sh fails when one goes missing or drifts from the root file.

  • The setup wizard reports a user service that did not install. (#699) With --daemon-mode=user, a failed systemctl --user daemon-reload or enable --now printed "Setup complete" and exited 0, and a missing daemon binary still got a unit pointing at it. The wizard now writes no unit when sysknife-daemon is missing or not executable, prints the commands left to run, and exits 3 (closes #665). Thanks to @dannyward630.

[0.28.0] — 2026-10-28

Changed

  • CI installs and release assets are pinned and signed. (#693) The lint tools install from tools/ci-node/package-lock.json and a pip hash list, the E2E rustup and Ollama installers run only after their sha256 matches, and each release now carries a signed SLSA provenance bundle, sysknife-<tag>-linux-<arch>.intoto.jsonl, that gh attestation verify --bundle checks. block-buffer moves to 0.12.1 (GHSA-qwgh-2vcv-g2f7).

Security

  • PostgreSQL chains job outcomes, and one edited column no longer stops audit verify. The 0.19.0 fix that chains every status change reached SQLite only. On PostgreSQL no write path appended a status_* event and audit verify left the status check unset, so anyone with UPDATE on transactions could rewrite a succeeded job as canceled and verification still exited 0. PostgreSQL now appends the same events in the same database transaction as each status change and runs the same comparison as SQLite. Migration 5 marks the rows that exist when it runs, because no earlier release chained their outcomes there: an unsigned terminal status on one of them is inconclusive (exit 2), not tampering. A binary older than this release refuses to start against a migrated database, as with earlier migrations. Separately, the chain walks stopped with exit 2 at the first row carrying an unknown chain_version or a foreign key_id, which hid any forged or deleted row after it. Both walks now record such a row, check the links around it, verify every later row and report exit 1 if any is broken. A row with a foreign key_id that the loaded key still verifies counts as verified (GHSA-2hvc-9x2h-pq2m).

  • sysknife "<intent>" shows what you approve, keeps model text off your terminal, and saves preferences only when you say yes. The plan now prints each step's parameters, and each step header prints the daemon's proposed change and expected side effects. MEDIUM steps get the post-preview confirmation HIGH steps already had, so you answer with the resolved change on screen. If a parameter block or a proposed change runs past 40 lines or 512 columns, the run refuses to ask, the way sysknife approve refuses without --full; --json prints both in full. --yes and --max-risk behave as before. During planning, the spinner shows unknown tool for a tool name the planner never offered, and the stderr notices for unknown tools and rejected plans strip escapes, bidi and TAG characters and fold line breaks. remember and forget no longer write prefs.md inside the tool loop. The plan lists them, you answer a separate question, and SysKnife writes nothing under --dry-run, --yes, --non-interactive, for a plan you reject, or through sysknife_plan over MCP, which wrote the file before this change (GHSA-23mr-j544-74x6).

  • MCP tool errors reach the assistant normalised and enveloped, like results. A failed read-only query carried the host command's stderr to the calling assistant raw, TAG characters and ANSI escapes included, and so did planning and preview errors. Every tool error now passes the same normaliser as a result, sits inside an <untrusted_tool_output> envelope, and stops at 8 KiB (GHSA-g9fw-wvj3-hcgj).

  • Helper screens refuse a trailing newline, and versioned interpreter names count as shells. Ten packaging/ helpers validated with a $-anchored re.match(), which accepts bash\n, so a direct sudo call could step past the exact-match denylists in sudoers-edit and grub-kargs-edit. Every helper now uses fullmatch(), and sudoers-edit checks command paths before its shell lookup. Both copies of the shell-equivalent list also strip version and packaging suffixes, so both refuse a NOPASSWD grant for python3.12, perl5.38.2, ruby3.2 or vim.basic. (GHSA-3448-xjpf-cc4j)

  • fail2ban-ban refuses IPv6 scope IDs. Python's ipaddress accepts almost any text after %, the daemon's parser refuses every scope ID, and fail2ban splits an unescaped space into extra firewall arguments under a root shell. The helper anchors the jail name with fullmatch(), and the sudoers grant test now lists fail2ban-client set ... actionban as a root escape. (GHSA-4gp9-9fmc-wgqp)

  • The kernel-argument screens refuse systemd's boot-mode and run tokens, and user-lock refuses critical accounts. Both copies accepted systemd.run=, emergency, rescue, rdinit=, rd.break and rd.systemd.unit=, each a root shell or a root command at the next boot. They now refuse those, -b, runlevels 2 to 5 and their rd. forms. The daemon's copy also requires each SetKernelArguments value to be one boot-line token from the helper's character set plus ,, so whitespace, quotes and control bytes no longer carry a second argument past the screen. Review kept finding spellings past the denylists, so all three kernel-argument screens (the daemon, grub-kargs-edit and the rpm-ostree kargs verb of action-steps) now accept a fixed list of keys instead: display and boot flags such as quiet, ordinary keys such as console=, rd.driver.blacklist= with GPU drivers only, and hardening keys only at their hardening values, such as lockdown=integrity. root= and resume= are not on the list. They read - and _ as one character in a key, as the kernel does. Removal is limited to the ordinary keys and to known downgrades such as mitigations=off, so a hardening argument cannot be dropped, by its full spelling or by its bare key. The action-steps helper now refuses to lock or unlock root, daemon, bin, sys, sudo and adm, as the daemon does, and UnlockUserAccount applies the same list. The helper also refuses account names that start with . or contain .., as the daemon does. (GHSA-76v3-hw9r-58pm)

  • grub-kargs-edit and the daemon agree on lockdown=. The daemon refused the prefix and the helper only lockdown=none, so a direct call could set a lockdown mode the daemon refused. Both now accept only integrity and confidentiality. (GHSA-8rx7-g2jg-5pxg)

  • scheduled-job-edit checks the whole systemd unit load path. It looked for collisions in /etc/systemd/system alone, so a job named daemon could write a root oneshot over SysKnife's own unit in /usr/lib/systemd/system. It now refuses a job whose unit exists in any load-path directory and names that directory. (GHSA-7p9v-4r44-fh7c)

  • verify-action-pins checks which ref a version comment resolved to. It looked up git/ref/tags/<comment> and compared only the commit. GitHub normalises .. in that path, so a comment such as # v4.2.2/../../pull/1/head resolved to a pull-request head and the pin passed as a release. The check now requires the API to answer with refs/tags/<comment> exactly. The script runs in CI only; no shipped binary contains it. (GHSA-j754-mr7x-597h)

  • Fifteen sudoers grants that accepted any arguments now accept only the argv SysKnife builds, and the kill grant is gone. A grant that names a command and no arguments lets sudo run it with any arguments. For several of these that meant root code execution for whoever holds the sysknife account: apt-mark hold bash -o Dir::Bin::dpkg=/tmp/x and lvextend --config global/fsadm_executable=/tmp/x -r ... run a program the caller chose, and gpasswd --add <account> sudo hands out root-equivalent membership. userdel, groupadd, groupdel, chage, lvextend and lvcreate now go through new verbs of /usr/lib/sysknife/action-steps, because shadow-utils reads -R <chroot> even after -- and an LVM size sits where sudoers cannot pin it. apt-mark, aa-enforce and aa-complain take their operand after a literal --, add-apt-repository takes --ppa, and ufw, aa-status, canonical-livepatch and do-release-upgrade get the exact argv the catalogue builds. The gpasswd grant had no caller and is removed. SignalProcess and the action-timeout reaper move from kill -s *, which admitted kill -s KILL -1 and kill -s KILL 1, to action-steps signal, which refuses pid and pgid -1, 0 and 1. A direct caller can still add any PPA, as AddPpa can. (GHSA-8rx7-g2jg-5pxg)

  • Dev-tier callers lose three routes to Admin outcomes, and the sysknife account loses systemd unit control over polkit. StartService and RestartService are Medium and accepted reboot.target, poweroff.target and the services behind them, which is what the High RebootSystem does. The daemon and action-steps now refuse the power-state and sleep units on every verb that brings a unit up. StopService and RestartService refuse sysknife-daemon, auditd, rsyslog, systemd-journald, ssh, sshd and the other units SetServiceResourceLimits already protected. ConfigureLogRotation refuses a bare * over /var/log, /var/log/audit or /var/log/journal and needs a rotate of at least 1 for any wildcard, in the daemon and in log-edit. 50-sysknife.rules drops manage-units and manage-unit-files: manage-units authorises StartTransientUnit, a root command line over D-Bus, and no SysKnife code path used either. (GHSA-68v6-p23h-fwcf)

  • The apt-get and apt-mark sudoers grants are gone, and a package name can no longer flip an apt action or match more than one package. The apt-get grant ran env DEBIAN_FRONTEND=noninteractive NEEDRESTART_MODE=a /usr/bin/apt-get *. It pinned the environment prefix and left every argument open, so a holder of the sysknife account could pass apt's own options and run a command as root with no preview, approval receipt or audit row. AptUpdate, AptUpgrade, AptInstall, AptRemove, AptPurge, AptAutoremove, AptHold and AptUnhold now go through a new apt verb of /usr/lib/sysknife/action-steps. The verb allowlists the eight subcommands, accepts no option, sets DEBIAN_FRONTEND and NEEDRESTART_MODE in an environment of its own, and puts the package after a literal --. apt reads the last character of a package name as an instruction: - removes, + installs and ^ installs every package of a task. An approved AptInstall could therefore remove a package or install a whole task, and an approved AptRemove could install one. The daemon and the helper now refuse a trailing - or ^ on every apt action that takes a package, and a trailing + on every one except AptInstall. g++ and libstdc++6 stay installable; remove a package whose name ends in + by its architecture-qualified name, such as g++:amd64. validated_install_package gates the rpm-ostree package actions as well, and they refuse ^ now. When an operand is not an exact package name, apt reads it as a regular expression and acts on every package it matches, and no character class can refuse that while accepting python3.12. The helper passes -o APT::Cmd::Pattern-Only=1, which makes apt resolve exact names only. The option is undocumented in apt.conf(5), so tests/release/action-steps.test.sh runs it against the real apt-get and fails if a release stops honouring it. The helper asks apt-cache or dpkg-query whether the operand names exactly one existing package. That check makes AptInstall refuse a name that is only virtual, such as awk, and makes AptRemove, AptPurge, AptHold and AptUnhold refuse a package dpkg has no record of.

  • The rpm-ostree sudoers grants no longer take arguments. The sysknife account held /usr/bin/rpm-ostree <subcommand> * grants for install, uninstall, override, rebase, kargs, cleanup, upgrade and status. A trailing * takes rpm-ostree's own options as readily as an operand, so a holder of the account could change the next boot as root with no preview, approval receipt or audit row. InstallPackages, AddLayeredPackage, RemovePackages, RemoveLayeredPackage, ReplaceLayeredPackage, RemoveBasePackage, RebaseSystem and SetKernelArguments now go through a new rpm-ostree verb of /usr/lib/sysknife/action-steps. The verb builds the rpm-ostree argv itself and accepts no option. It validates each package with the daemon's rule, which refuses a path, a URL and a local .rpm; screens each kernel argument with the allowlist grub-kargs-edit applies; and refuses a rebase target that reads from the host, such as a local repository or an oci: image directory. RebaseSystem refuses those targets in the daemon too, and both copies of every rule check tests/data/rpm-ostree-parity.txt. UpdateSystem, RollbackDeployment, CleanupDeployments and ResetLayeredPackageOverride keep exact grants. rpm-ostree cancel, which the action-timeout reaper runs, gets an exact grant as well: it had none, so sudo refused the reaper and a timed-out rpm-ostree transaction ran on. 50-sysknife.rules keeps only the rpm-ostree upgrade and rollback polkit actions, the two the daemon calls without sudo; the others let the sysknife account reach rpmostreed over D-Bus and skip the verb. A rebase target now also refuses the ostree-unverified-registry: and ostree-unverified-image: transports, which boot any image without a signature check; rebase to an ostree-image-signed: image or a configured ostree remote instead. (GHSA-32wv-3c2p-qp95)

[0.27.0] — 2026-10-27

Added

  • A weekly cargo audit run on main. (#640) cargo-audit.yml checks the lockfile against the RustSec database on a schedule, so an advisory published between pull requests surfaces without waiting for the next change (closes #622). Thanks to @Humerous.

Changed

  • Published figures are rendered from their sources, never typed. scripts/render_figures.py rewrites every <!-- fig:NAME --> marker in the README and docs (test counts, action counts, story-set sizes, recorded pass rates), and scripts/check_evidence_claims.py now refuses a figure outside a marker. Figures that routine PRs move are rounded floors ("2,000+"); recorded story pass rates stay exact. UPDATE_TEST_BASELINE=1 scripts/test_baseline.sh records the evidence and re-renders the docs in one step, and scripts/check_public_claims.sh runs render_figures.py --check. The README shows the exact Rust and frontend test counts as live badges read from tests/evidence/workspace-tests.json. The README line that said the Ubuntu suite "has since grown to 96" was already stale (it holds 99) and is now a derived figure.

  • Every workflow job has a time limit. (#662) A hung job used to hold a runner for GitHub's six-hour default. Each job now carries a timeout-minutes set from its slowest observed run, and tests/release/workflow-timeouts.test.sh fails when a job loses its limit or gets a blank, zero, negative or non-numeric one (closes #629). Thanks to @dannyward630.

Fixed

  • The planner sees only what exists on the host's distribution. (#656, #658) The Ubuntu prompt and the propose_plan examples no longer show Fedora layering or repository parameters, and the query tools offered to the model are the ones the host's family has, so an Ubuntu prompt no longer advertises query_packages (closes #648 and #657). Thanks to @dannyward630.
  • Planning, routing, MCP tool discovery and doctor use the daemon's distribution. (#626) A Fedora controller driving an Ubuntu daemon built the planner prompt from its own /etc/os-release. QueryState now carries an optional host_distro, and the CLI falls back to local detection, with a warning, for an older or unreachable daemon; doctor reports where the distribution came from (closes #618). Thanks to @QinXi-ai.
  • On a distribution outside the supported families the prompt stays within the action schema. (#684) On Arch, openSUSE or Alpine the prompt named GetSystemState, which propose_plan does not offer there. An OS overview request is now refused, and history or preference-only intents finish with ListJobHistory. A test checks every action each prompt names against its plan schema (closes #672). Thanks to @QinXi-ai.
  • sysknife audit checkpoint and the MCP audit tools read the same store as audit verify. (#636) On a packaged install they resolved a per-user path that does not exist while audit verify read /var/lib/sysknife. All of them now go through the shared resolver, checkpoint tells a non-root operator to use sudo when the system store is root-owned, and a test fails if either reader bypasses the resolver (closes #557 and #479). Thanks to @dannyward630.
  • sysknife history --since keeps the exact cutoff. (#639) The CLI rounded the cutoff to whole hours, so "30 minutes ago" meant "now". It now sends the exact instant, and SQLite and Postgres both compare it as a timestamp rather than as text (closes #567). A CLI newer than the daemon is refused by the daemon's parameter allowlist; upgrade both together. Thanks to @anyingiit.
  • A failed version bump no longer leaves half-written manifests. (#637) scripts/bump_version.sh prepares the bump in a copy of the tracked files and installs it only after the lock refresh and the full version check pass (closes #630). Thanks to @dannyward630.
  • The release publishes to npm only after crates.io. (#660) One registry can no longer ship a version the other refused. Thanks to @Humerous.
  • The post-release checklist no longer piles up. (#635) The issue carries the documentation and maintainer-only labels, a release closes older open checklists with a comment naming the superseding tag, and a rerun keeps the current tag's checklist instead of filing a duplicate (closes #633). Thanks to @dannyward630.
  • The README no longer says sysknife approve gates the CLI. (#655) An MCP plan needs a receipt from sysknife approve in your terminal; the standalone CLI uses its own prompt or --yes up to --max-risk; and an agent with a shell on your account can drive the CLI by itself, so the daemon's role limits are the boundary in that case (closes #560). Thanks to @YuuGR1337.

Security

  • request_hash is now keyed: an audit export is no longer an offline cracking target. (#627, closes #268) The column every signed chain row carries was a single unsalted SHA-256 over the action name and the unredacted parameters, and sysknife audit export serialises it. For a low-entropy, partly-public parameter set — ConfigureWifi, where the SSID broadcasts and only the passphrase is unknown — any holder of an export could brute-force the preimage on a GPU. The hash is now an HMAC-SHA256 under a key derived (HKDF, domain-separated) from the audit key, which never leaves the host; the preview/execute binding is unchanged. New rows are written under chain_version = 4, so an auditor can tell which scheme each row's hash uses. Rows written by earlier releases keep their original hashes — rewriting them would break their signatures — so the fix is forward-only and legacy rows in an export remain crackable; docs/the-audit-chain.md now says so plainly. After upgrading, re-preview anything still pending: a preview stored by an older release carries the old unsalted hash, so its execute fails closed with stale_approval rather than running. Thanks to @Georgefifth.

[0.26.1] — 2026-10-24

Security

  • The lockfile moves ctutils to 0.4.4 for RUSTSEC-2026-0385. ctutils 0.4.2 could compile its constant-time mask helpers to branches, and on 32-bit targets its u128 comparisons branched too. It reaches SysKnife through digest 0.11 (ed25519-dalek, hmac, and the SCRAM login in sqlx-postgres). SysKnife's own token and receipt comparisons use subtle and are not affected. No API changes.

Fixed

  • A successful automatic rollback shows as rolled back in the CLI. (#632) The CLI had no arm for RolledBack and printed ⚠ unknown, and it dropped the job's rollback_ref. It now prints rolled back and the line rolled back with: rpm-ostree rollback.

[0.26.0] — 2026-10-21

Security

  • The provider TLS path stops trusting distrusted emSign certificates. (#628) RUSTSEC-2026-0381 to 0383: webpki-roots and webpki-root-certs 1.0.7 still bundled the emSign roots, and rustls-webpki 0.103.15 accepted chains through a small set of distrusted intermediates. All three reach the brain through reqwest, which carries every provider call. The lockfile moves to rustls-webpki 0.103.16 and the 1.0.10 root lists; no API changes.

  • rustls moves to 0.23.46. (#616) RUSTSEC-2026-0346 to 0349 reached the brain through reqwest, which carries provider calls, and the daemon through sqlx's Postgres TLS. The worst of the four is Debug output that printed TLS session secrets. The others are a key-exchange downgrade hint, a pre-authentication Brotli allocation that is off by default, and early data sent after an ECH rejection. The patch release changes no API.

  • Read tools stop forwarding credentials to the LLM provider. (#573) A journal line carrying a password assignment or a Bearer token reached the provider in a tool result and stayed in the retained context for later turns. The brain now redacts plaintext credential assignments, Bearer values, recognizable provider-key shapes and private-key blocks before normalization and truncation, and screens the retained context too. An unterminated quoted value stops at the line boundary, so the accepted-login and sudo records after it survive, and mysqldump --password hunter2 mydb loses the password and keeps its neighbours. SECURITY.md describes the screen and its limits (closes #552). Thanks to @QinXi-ai.

  • sysknife approve honours --dry-run, --max-risk and --non-interactive. (#579) Explicit approval ignored the global safety flags, so a dry run, a plan above the requested ceiling or a non-interactive invocation could still mint a usable receipt. Dry run now shows the preview with no prompt and no receipt, and live approval refuses the other two. --yes and unattended consent still leave the human confirmation in place. docs/cli.md lists which global flags apply to each command (closes #545). Thanks to @QinXi-ai.

  • --step-by-step checks the whole plan before it runs the first step. (#575) A plan whose third step broke the risk ceiling or needed interaction executed its first two steps and then exited. The whole-plan policy check now runs in both modes before any preview. Step-by-step skips only the plan-level consent prompt and keeps per-step preview and approval (closes #542). Thanks to @QinXi-ai.

  • The daemon rejects unknown action parameters before approval. (#572) Builders ignored a misspelled optional key, so SetKernelArguments with append instead of add approved and succeeded as a no-op. All 191 action builders now check the object shape and accepted keys before they build a spec, the dispatcher-only ListJobHistory path included, and the planner refuses non-object parameters. Canonical names, deliberate aliases and defaults keep working (closes #551). Thanks to @QinXi-ai.

  • make daemon-install activates the sudoers grants last. (#586) The recipe installed the grants before the helpers they name, so a failure halfway left live grants pointing at absent or stale helpers. The validated sudoers file now goes in after the unit, the polkit rule and every helper. make check now runs scripts/ci-local.sh --fast, test baseline and all-targets Clippy included (closes #549). Thanks to @QinXi-ai.

  • A (branch) comment no longer exempts an action pin from verification. (#577) Any workflow step could skip the tag-to-SHA check by labelling its pin a branch. The marker is now allowed for dtolnay/rust-toolchain on stable only, and the verifier checks that the pinned commit is reachable from that branch; an API error or an unexpected comparison state fails the check. TruffleHog moved to its exact v3.96.0 tag (closes #547). Thanks to @QinXi-ai.

  • The pre-commit secret screen knows every credential format the setup wizard accepts. (#578) It missed xAI, DeepSeek and Mistral keys and several OpenAI shapes. The test enumerates the setup provider inventory and fails when a provider gains a key format the screen does not cover. OpenAI keys now need a left token boundary, so prose such as task-runner-… passes (closes #548). Thanks to @QinXi-ai.

  • The secret screen catches a key written right after an escape. (#612) The #578 boundary treated \n, \r, \t and %XX as part of a word, so an OpenAI or DeepSeek key in a JSON log or a recorded HTTP request passed the screen. Those escapes now count as a boundary, and --staged has cases for an edited tracked file in both directions (closes #601). Thanks to @QinXi-ai.

  • quinn-proto 0.11.19 (RUSTSEC-2026-0338 to RUSTSEC-2026-0342). (#603) No SysKnife build compiles quinn-proto: the crate appears in Cargo.lock only. cargo audit reads the lockfile, so I bumped it to clear the five advisories.

  • event-listener 5.4.2 (RUSTSEC-2026-0221). (#609) The 5.4.1 StackSlot let a !Send tag set with Event::with_tag cross threads, a data race in safe code. Unlike the other accepted cargo audit warnings, this one reached the daemon and the CLI, through sqlx-core. cargo audit reports it as an unsound warning rather than a vulnerability, so CI stayed green; nothing in SysKnife sets a tag. The lockfile moves to 5.4.2, which carries the fix.

Fixed

  • sysknife audit verify accepts healthy SQLite stores with running, canceled or swept jobs. (#571) Those transitions appended no signed status event, so verification failed on a store nobody had touched. They now append one atomically with the status change, and CLI text, CLI JSON and MCP reports all show the status verdict. Historical Running and Canceled rows without an event stay inconclusive (exit 2). An unsigned Succeeded, Failed, RolledBack or NeedsReboot still counts as a disagreement (exit 1), because terminal transitions signed their events before this fix and a forged completion must stay visible (closes #550). Thanks to @QinXi-ai.
  • The CLI stops when the daemon reports a step as anything but succeeded. (#594) The runner treated a completed IPC request as a successful action, so it ran the next step and printed the success banner after a Failed or RolledBack result. It now halts on Failed, Canceled, RolledBack or a nonterminal status with exit 2, naming the action and the daemon summary. NeedsReboot exits 5 and runs no dependent step (closes #477). Thanks to @ITSMERNB.
  • A preview refused after an earlier step ran exits 2, not 3. (#584) Exit 3 tells a script that planning failed and a retry is safe, after part of the plan had already applied. A refusal after execution now reports ExecutionFailed with the action and the number of steps that ran. A refusal before any execution keeps exit 3 (closes #546). Thanks to @QinXi-ai.
  • MCP execution keeps earlier step results when the transport fails. (#576) A lost connection mid-plan returned a bare internal error and dropped every completed step. The tool now returns those results plus the attempted step's outcome. A connect failure or explicit rejection reports failed; a send, receive, timeout or malformed response reports unknown, since the step may have started (closes #544). Thanks to @QinXi-ai.
  • Providers stop retrying permanent 4xx responses. (#589) Both adapters turned a 400, 404, 413 or 422 into a transport error, which the retry policy retries, so each misconfigured request went out three times and was billed three times. Adapters now report the HTTP status, and those requests go out once. A tool_use_failed 400 still retries with its correction, as do 429, 5xx and transport failures (closes #475). Thanks to @kragent66-glitch.
  • A 408 Request Timeout is retried. (#613) A 408 says the server stopped reading before the request arrived, so the unchanged request is the fix. It now gets the 5xx budget: three attempts, 400 ms then 800 ms apart. Every other permanent 4xx still fails on the first attempt. Thanks to @kragent66-glitch.
  • Re-running a failed release job no longer stops at gh release create. (#614) The workflow now skips creation when the release already exists, creates it when GitHub answers release not found, and fails on any other lookup error, then goes on to upload the assets (closes #554). Thanks to @Humerous.
  • Re-running sysknife-setup keeps hand-edited hookify guards. (#610) Setup overwrote every guard and logged it as created. It now writes each guard with exclusive create, reports an existing one as skipped, and still creates the missing ones (closes #481). Thanks to @CreedTech.
  • Intent admission stops refusing ordinary requests that mention credentials. (#587) Substring matching refused disk-full alerts, /etc/passwd permissions and password aging. Admission now looks for a value next to a credential label or a known key format at a token boundary, so --password=hunter2 and use password hunter2 are still refused and PASSWORD_MAX_DAYS goes through (closes #543). Thanks to @QinXi-ai.
  • sysknife-cli compiles on macOS again. (#592) One check matched the Linux-only SocketTarget::Vsock variant without the Linux gate, which stopped the build with E0599. The check now carries the same cfg as the variant; off Linux nothing can construct one (closes #566). Thanks to @yuee3.
  • ci-local fails when required CI coverage did not run. (#570) A missing helper tool or a non-root run skipped required shell tests and still exited 0. Both now count as incomplete, and the root-required test list comes from the workflow invocations instead of a hand list (closes #433 and #555). Thanks to @ITSMERNB.

Changed

  • Dependency bumps: regex 1.13.1, rmcp 3.5.1, uuid 1.27.0, zeroize 1.9.1 and protoc-bin-vendored 3.3.0 (#600), seven GitHub Actions (#599), the npm minor and patch group (#597), vitest and @vitest/coverage-v8 5.0.3 for the paused desktop shell, moved together because the coverage plugin pins the exact vitest version (#605), the Debian and Rust container base digests (#595, #596), serde_json 1.0.152 and async-openai 0.42.2 (#607), tokio 1.53.3, sha2 0.11.1, uuid 1.28.0, unicode-normalization 0.1.26 and libc 0.2.191 (#624), CodeQL, TruffleHog, rust-toolchain, install-action and scorecard-action (#608, #625), and the paused shell's Tauri and npm dependencies (#606, #623).

Documentation

  • CONTRIBUTING.md says the suite is only observed on Linux, and what a Mac run shows. (#564) Every CI job runs on ubuntu-latest, and two contributors on macOS read their red runs as their own mistake. The new section records a survey on a hosted macos-26-arm64 runner: sysknife-cli does not compile there yet, and the rest of the workspace runs with thirteen known host-assumption failures, listed in tests/evidence/macos-survey.json. A release test reads the documented command out of CONTRIBUTING.md and fails when it selects no tests or excludes a package that no longer exists (closes #411). Thanks to @yuee3.
  • The docs match the code again. (#609) A review of every maintained page against the source found drift in 30 files. The ones a reader would act on:
    • docs/vm-daemon-setup.md put the vsock token in the login user's home, where the daemon never reads it, and never switched the daemon to vsock. The token belongs at /var/lib/sysknife/.config/sysknife/token, and a drop-in sets SYSKNIFE_LISTEN_URI=vsock://:9734.
    • The same page said make install handles rpm-ostree on its own. It refuses until you pass the /etc overrides, and still cannot finish (#301).
    • docs/mcp.md said execution halts on a failed or unknown step. It halts on anything but succeeded, needs_reboot included.
    • SECURITY.md described the intent secret screen as matching bare words such as "password", and the role table as a hand-written match. Both changed in 0.25.0: the screen looks for a value, and the role comes from the action's risk tier.
    • docs/automatic-rollback.md called signed status transitions future work. They shipped, and audit verify checks them on SQLite.
    • docs/security/audit-advisories.md listed 20 accepted advisories. Two remain; RustSec withdrew the gtk-rs ones and the rest left the lockfile.
    • The introduction and quickstart said the daemon runs as root. It runs as the sysknife system user with scoped sudo and polkit grants.
    • Contributor docs gave clippy without --all-targets, a npm run tauri script that does not exist, a CI check for PR titles that does not run, and an e2e PR label that triggers nothing.

[0.25.0] — 2026-10-01

Added

  • Approval events sign the account that granted, spent or revoked them. (#491) The transaction chain has named its requester since ChainIdentity::V3, but approval_granted, approval_consumed and approval_revoked signed six fields and no account, so on a host with two admins the chain could not say who authorised what an agent proposed. Migration 4 adds chain_version and caller_principal to audit_events on both backends. New approval events are written at version 2 with the acting account inside the signed message, and every existing row stays at version 1 untouched, because rewriting a signed row's message would report the whole chain as broken. sysknife audit verify reads a mixed chain, reports a version 2 row relabelled as version 1 as broken, and exits 2 on a version it does not know. Status events stay at version 1: they are written with no caller in scope (closes #249). Thanks to @Georgefifth.

    Upgrade the CLI with the daemon. Once a new daemon has applied migration 4, sysknife 0.24.0 and earlier refuse the audit database outright, on SQLite and Postgres alike: schema version 4 is newer than this binary supports (3).

Fixed

  • The planner no longer offers ProAttach, and plans a Wi-Fi connection for open networks only. (#514) The prompt told the model to put an Ubuntu Pro token or a Wi-Fi password into a plan step, while admission refuses any intent that contains one, so neither action could be planned the way the prompt described, and the planner has no separate channel to collect a credential. ProAttach is gone from the schema and the prompt, and plan parsing refuses it even when a provider ignores the schema. ConfigureWifi stays available without a password, and parsing refuses a step that carries one, checked after string-encoded params are decoded. A scan over the action catalogue fails when a new action names a credential parameter that the planner would accept (closes #476). Thanks to @QinXi-ai.
  • sysknife_audit_verify checks the configured checkpoint anchor, and agrees with sysknife audit verify on the verdict. (#496) The MCP tool never looked up the anchor, so a chain truncated behind a configured checkpoint reported intact, and an erased store with no anchor did too after the CLI had started calling that inconclusive in 0.17.0. The tool now reads the anchor on its live path, and both surfaces share combined_verification_exit_code, status_word and the anchor JSON instead of keeping two copies of the precedence rule. A stdio test drives tools/call sysknife_audit_verify against a store whose anchor cannot be read, and fails with the lookup removed (closes #466 and #478). Thanks to @LunaMeerkats.
  • sysknife-setup --uninstall removes the editor files it wrote, and only those. (#539) Uninstall left .cursor/mcp.json, the SysKnife block in ~/.codex/config.toml, which can hold a provider API key, and the managed section of AGENTS.md on disk. It now takes SysKnife's server out of .cursor/mcp.json and keeps every other server, rewriting the file at mode 0600, and cuts only SysKnife's block out of the Codex config and AGENTS.md. Tables a user added after the block survive, including [[array]] tables and headers with a trailing comment (closes #526). Thanks to @tayfuryldz.
  • The audit key path is resolved in one place. (#540) resolve_audit_key_path's doc comment called it the single definition of the key's location, and four call sites read SYSKNIFE_AUDIT_KEY_PATH by hand instead. All four now call it with the database path their old copy used, so no key moves on disk, and a test walks both crates' source trees and fails if an inline copy comes back anywhere in them (closes #530). Thanks to @tayfuryldz.
  • sysknife history --since accepts the ISO-8601 dates its help text promised. (#521) --help said ISO-8601 and the parser accepted only UTC RFC 3339, so --since 2026-09-01 and --since 2026-09-01T02:00:00+02:00 were both refused. A bare date now means midnight UTC, and a datetime with any offset is normalised to UTC. The CLI help, docs/cli.md, the MCP sysknife_history schema description and its error message describe that one parser the same way. audit export --since is unchanged and still validated by the daemon (closes #519). Thanks to @tayfuryldz.

Documented

  • docs/cli.md describes the unattended flag the binary ships. (#436) --dangerously-skip-approval raises the ceiling --yes is clamped to from MEDIUM to HIGH and switches on nothing else; the page had said it implied --yes, --max-risk high and --non-interactive. The page also gains SYSKNIFE_DATABASE_PATH, says audit commands read the store directly and ignore SYSKNIFE_SOCKET, that the consent check covers every subcommand, and that --log-to captures stdout only (closes #336). Thanks to @armutlutost.
  • Contributors without the GUI libraries know which gate governs them. (#457) CONTRIBUTING.md's fallback now takes precedence over the pre-commit gate in CLAUDE.md when the GUI libraries are missing, and both files say what scripts/ci-local.sh --no-postgres skips, which is the Postgres contract and nothing else (closes #451). Thanks to @Jah-yee.
  • sysknife doctor is documented as doing what it does. (#517) docs/configuration.md promised a chain-integrity check, and run_doctor never opens the audit store. The page now sends readers to sysknife audit verify for the chain, and the sample in docs/cli.md shows the socket as the URI doctor prints plus the distro line it had left out. Two tests hold the docs to print_doctor_ok's field order and refuse the old chain-integrity claim (closes #500). Thanks to @syf2211.
  • SYSKNIFE_AUDIT_KEY_PATH is no longer listed as daemon-only. (#528) sysknife audit verify, sysknife audit checkpoint and the MCP doctor and audit-verify tools all resolve it. An operator who moved the key and set the variable only in the daemon's unit, as that section said, got audit key not found from sysknife audit verify in their own shell. The section is gone and the variable's row names both surfaces. Thanks to @syf2211.

[0.24.0] — 2026-09-29

Security

  • sysknife approve refuses when the proposed change did not fit the view, and --full prints all of it. The prompt rendered the change through operator_text::operator_safe_block, which drops lines past 40 and cuts lines past 512 characters, marked both, and then asked for confirmation anyway. So a receipt could be minted on a change the operator had seen the first forty lines of, or whose 4 KB path list had been cut mid-line. The marker said something was missing. It did not say how much, and nothing stopped the approval, which left the receipt proving a human typed a word rather than that a human read the change. That is the one thing the receipt exists to prove. approve now refuses, names how many lines were withheld and how many were cut short, and names --full, which prints every line and every character with the same neutralisation applied. Both counters, not just the line count: one over-long line hides its tail as effectively as a dropped line, and a line-count check alone passes it. --full prints the action, risk and summary after the change rather than before, which is what makes an uncapped render safe there: the bounds exist so a long change cannot scroll the decision context off the screen, and a context printed last cannot be scrolled away. Nothing becomes unapprovable; seeing all of it costs one flag. operator_safe_block returns the counts alongside the text instead of a bare String, so a caller printing the block holds the numbers in the same value, and the refusal and the printable text now come out of one function, so there is no way to print an approval view without having asked whether it was complete. An earlier draft printed the block and then returned the refusal, which left the print ungated: deleting the check still compiled and still printed. docs/cli.md shows the refusal and the flag, and SECURITY.md Layer 4 states what the receipt does and does not prove.

  • Fail2banBanIp and Fail2banUnbanIp go through a helper with a fixed argv, and the fail2ban-client set * grant is gone. packaging/sysknife-sudoers carried this, with the comment directly above the grant naming the reason it was wrong:

    # `fail2ban-client set <jail> action ... actionban <cmd>` executes a command as
    # root, and `restart`/`reload` reread config a bare grant also permitted.
    sysknife ALL=(root) NOPASSWD: /usr/bin/fail2ban-client set *
    

    So four commands reached root through a grant that documented the technique: set <jail> addaction <name>, then set <jail> action <name> actionban <command>, then any ban to fire it. The daemon only ever built set <jail> banip <ip> and the unban twin, so the wildcard was strictly wider than anything SysKnife needed. Narrowing it to set * banip * does not work, which is what the advisory draft for this proposed and what checking sudo's own rules corrected: * matches across spaces and is not anchored to one argument, so that pattern still admits set sshd action p actionban '...' banip 1.2.3.4, and certbot certonly * is only narrow because its variable part is trailing while fail2ban's jail name sits before the fixed banip token. sudoers has no syntax to pin a middle argument. packaging/sysknife-fail2ban-ban takes --op ban|unban --jail <j> --ip <a>, re-validates both (--op is a fixed choice, the address goes through ipaddress.ip_address so a CIDR or a range is refused, the jail regex is transcribed from the daemon's jail_is_valid), and then runs fail2ban-client with an argv nothing the caller supplies can reach. It propagates a non-zero exit rather than reporting a ban that did not happen. The helper joins the eight others this repository already uses for the same reason. tests/release/fail2ban-ban.test.sh pins the fixed argv, proves an unknown --op never reaches fail2ban-client, and carries a canary on jail_is_valid so an edit there points at the transcribed regex; the first draft of that regex refused a leading _ or . that the daemon accepts, which would have been a grant working through one path and failing through the other.

    Upgrading is not crate-only. Fail2banBanIp and Fail2banUnbanIp now build sudo /usr/lib/sysknife/fail2ban-ban …, and both the helper and the grant that authorises it live in the packaged install, so a host that takes the new binary while keeping the old /etc/sudoers.d fragment gets "a password is required" on every ban and unban. Install the package, or re-run make install, rather than replacing the binary alone. That coupling is part of why this is a middle-digit release: a call that used to succeed now refuses until both sides move.

  • GrantSudoAccess refuses a passwordless grant whose command list is ALL under another name, and the preview says so when it is. packaging/sysknife-sudoers opens by stating that no shell or general runuser grant is permitted. Both the daemon and packaging/sysknife-sudoers-edit enforced that against the literal string "ALL", while validated_sudo_commands accepts any absolute path with a safe charset and no wildcard, which /bin/bash satisfies. So GrantSudoAccess(commands="/bin/bash", nopasswd=true) wrote <user> ALL=(root) NOPASSWD: /bin/bash, which visudo -cf accepts and which is a standing passwordless unrestricted root shell. /bin/sh, /usr/bin/python3, /usr/bin/perl, /usr/bin/env, /usr/bin/find and the rest of the interpreter list were equally accepted. The refusal that existed was written against a string rather than against a capability. SHELL_EQUIVALENT_COMMANDS holds 118 basenames across four groups (shells, run-as and namespace tools, interpreters, and utilities whose job is running another program), matched on the lowercased basename so /bin/bash, /usr/bin/bash and /BIN/BASH are one thing. The refusal fires together with nopasswd, which is the line "ALL" has always been held to: this repository permits granting broad authority and does not permit granting it as a standing passwordless credential. The preview names the offending command and the target user whether or not nopasswd is set, because at High risk the control is the human understanding what they are signing, and "this configures privilege escalation" does not tell them that a two-entry list is a root shell. The privileged helper carries the same list, because its wildcard NOPASSWD grant makes it callable directly, skipping the preview, the receipt and the signed chain; tests/release/sudoers-edit.test.sh parses the daemon's constant, compares both directions, proves the refusal behaviourally for every entry, and refuses to compare against nothing if the constant stops parsing. Two hand-copied screens kept in step by a comment claiming parity is how GHSA-f8vp-j3jh-7wjx happened. The catalogue's own published example was --commands /usr/bin/systemctl --nopasswd, so the example SECURITY.md readers and the planner's system prompt both carried was itself a root- equivalent grant; both now keep the command and drop the passwordless half, and SECURITY.md records what a basename screen cannot see.

  • Untrusted host text reaching the calling assistant over MCP is screened, and the results of the read-only query tools are spotlighted. crates/sysknife-brain/src/sanitize.rs strips the Unicode TAG block (U+E0000..=U+E007F), the Private Use Areas, BiDi and zero-width characters, strips ANSI, normalises to NFC, rewrites forged prompt-envelope tags and caps the length. Its only callers were in planner.rs, so the defence guarded SysKnife's own model and not the operator's. Every sysknife_<action> read-only result and the free-text fields merge_preview_into_step copies out of the daemon's PreviewEnvelope reached the assistant as raw bytes, and a TAG-block payload is invisible in every mainstream renderer while arriving at a tokenizer byte for byte. The managed host writes a package Description:, a unit Description= and a journal line, and none of the roughly seventy read-only tools requires approval. Mutations still need a receipt typed at a terminal the model does not sit on, and that path was already screened by operator_text::operator_safe; the exposure was the decision in front of it, because the human decides whether to type that command based on what their assistant tells them the plan does. Read-only results now carry the same <untrusted_tool_output source="..."> envelope the planner uses, capped at MCP_MAX_OUTPUT_BYTES (64 KiB, eight times the planner's cap, because the assistant's context is not the one this crate is competing for and a journal tail truncated at 8 KiB is a tool nobody calls twice). Every free-text field of sysknife_plan, sysknife_execute, sysknife_history, sysknife_doctor and sysknife_audit_verify is normalised before it leaves the process, keys of free-form JSON subtrees included, and two keys that normalise to one string are refused rather than silently collapsed. A plan step's params, transaction_id and approval_receipt travel verbatim on purpose: compute_request_hash hashes the action name and params, the receipt is bound to that hash, and sysknife_execute recomputes it from what the caller sends back, so normalising them would mean no approved request ever executed again. Everything not on that list is screened by default. The envelope is applied inside direct_query_with_client rather than in the router's closure, so the socket-backed integration test drives the same function the router does; an earlier draft put it in the closure and removing it there left every test green, because the test was calling the sanitiser directly. SECURITY.md now describes both channels and both residual risks, and its Known Limitations table no longer says query_* results re-enter the context unsanitized or cite #98, which is a merged pull request rather than a tracked issue and had stood there since the initial public release.

    This changes what MCP clients receive. A read-only query that returned a bare string now returns that string inside an <untrusted_tool_output source="..."> envelope, so a client parsing the result text sees two extra lines. That is a deliberate wire-shape change and the other reason this is a middle-digit release. An assistant reading the result needs no change; a script scraping it does.

  • SetServiceResourceLimits refuses the units SysKnife's own enforcement and the host's evidence depend on, and every cgroup container. The action is RiskLevel::Medium, which role_for_risk_level maps to CallerRole::Dev, and it validated its unit parameter by charset alone. The lowest mutating tier could therefore run systemctl set-property sysknife-daemon.service TasksMax=0, writing a persistent drop-in that stops the process enforcing the Dev/Admin split and signing the audit chain. The same call against auditd or systemd-journald stopped the host recording what came next, against sshd it removed the way an operator reaches the machine to undo it, and MemoryMax=1K on system.slice reached every service on the box. All of them survived a reboot. validated_activatable_unit did not cover this: its denylist is about units that hand out a root shell when started, and setting a property is not a start, so that screen never ran on this path. The new validated_resource_limit_unit refuses eleven named units across four categories (SysKnife's enforcement, the host's evidence, the authorization path, remote administrative access), the systemd-journald and auditd families whole, and .slice and .scope targets as a class, because capping a slice is a decision about every unit beneath it. Naming systemd-journald alone would have protected the reader and left its pipes: systemd-journald-audit.socket carries the kernel audit stream into the journal and is a stock unit on every systemd host. Capping an ordinary service stays a Dev-tier operation. Both unit screens now share one normaliser, which lowercases, strips the type suffix and reduces an instance to its template, so sshd@1.service no longer reduces to sshd@1 and slips a list holding sshd. They shared nothing before, and two hand-copied screens of this shape drifted once already: the kernel-argument denylist in executor.rs was missing debug-shell, so one path refused a root shell while the other granted it (GHSA-f8vp-j3jh-7wjx). A name-based screen still cannot see a site-local alias; masking the units you do not want touched remains the stronger control, as #144 says.

Fixed

  • The action reference derives its catalogue total instead of assuming one dispatcher-internal action. (#529) crates/sysknife-daemon/tests/action_reference_doc.rs wrote the published total as total + 1 and spelled ListJobHistory into the sentence by hand, so a second action that the dispatcher handles before the executor would have left docs/action-reference.md claiming a number one short of the catalogue, with nothing to catch it. DISPATCHER_INTERNAL_ACTIONS now sits beside the daemon's action metadata as public API on sysknife-daemon, both test binaries read that one list, and the footer derives the tabled count from KNOWN_ACTION_NAMES minus it, refusing rather than wrapping if the list ever outgrows the catalogue. The generated document is unchanged at one element (closes #455). Thanks to @tayfuryldz.

[0.23.0] — 2026-09-28

Added

  • Broken links in the generated mdBook fail the build. (#379) scripts/check-mdbook-links.sh walks the built book/ and resolves every internal .html href against the file it sits next to, so a page that lost its target during the build is caught before Pages publishes it. It runs in docs.yml after mdbook build and in docs-and-hygiene against a fixture, and it refuses when it has checked zero links, because a book nobody built and a book with no broken links are otherwise the same silence (closes #371). Thanks to @sonalisrisivani.

Fixed

  • CreateScheduledJob namespaces its units and never overwrites an existing one. (#520) packaging/sysknife-scheduled-job-edit opened /etc/systemd/system/<name>.service and .timer with open(path, "w"), so a job named after a unit already on the system truncated it. Units are now created as sysknife-<name> with O_CREAT | O_EXCL, an existing unprefixed path is refused as ambiguous rather than migrated, and a timer-path collision removes the service that call had already created, so a refused request leaves no half of a pair behind. The CreateScheduledJob preview names both exact paths and says that existing ones are refused, and the daemon and the helper now derive that name from one function instead of two copies (closes #484). Thanks to @ITSMERNB.
  • The release rehearsal screen sees a publishing command behind a group, a backtick or a command wrapper. (#523) { gh release create ...; }, `gh release create ...`, and the sudo, nohup, xargs, time -p, env -i and command -p wrapper forms all passed a screen whose whole job is to catch them. { and a backtick join the command-boundary class, and the wrappers compose with the shell prefixes and assignments added in #513, so nohup env -i command -p gh release create is caught as readily as the bare form. Twelve more fixtures, and the harmless cases still pass (closes #522). Thanks to @mikevillari.
  • The release rehearsal screen sees a publishing command behind a shell prefix. (#513) check-rehearsal-publication.py matched a tool name only at the start of a command, so if gh release create ..., FOO=1 gh release create ... and env ... command gh release create ... all passed a screen whose whole job is to catch them. The pattern now accepts a run of shell prefixes before the tool, handles a quoted assignment value containing a space, and adds git to the tool list so a tag or a push is screened too. Twenty-one fixtures cover the shapes, and two harmless lines hold the other edge (closes #503). Thanks to @mikevillari.
  • The contributing guide no longer tells you to install and run the pre-commit framework. (#512) SysKnife's hooks run through core.hooksPath; the framework is not used, and the guide's "Check Locally" block listed pre-commit run --all-files alongside the real commands. It now names bash .githooks/pre-commit and scripts/ci-local.sh, and the Node prerequisite reads 22 in both places it appears. check_evidence_claims.py gained a screen that refuses a framework command inside any Markdown shell block, so the guide cannot drift back (closes #464). Thanks to @Osheun.
  • The testing guide's provisioning default matches what provision.sh pulls. (#515) The guide named llama3.2:3b as the default while the script defaulted to qwen3:8b, the model the same page calls unusable without GPU passthrough, so a contributor on a CPU-only VM downloaded 5 GB and then lost every story to the thinking-mode timeout. provider-parity.test.sh now reads the default out of the script and requires the guide's sentence and its # default comment to name the same model (closes #501). Thanks to @yuee3.

[0.22.0] — 2026-09-23

Added

  • The syslog forwarder's IANA Private Enterprise Number is configurable. (#445) [audit.forward.syslog] enterprise_number sets the SD-ID the RFC 5424 structured data carries (sysknife@<pen>), instead of the hardcoded value. It defaults to 32473, RFC 5612's reserved documentation and test PEN, so a site that has not registered one is not squatting somebody else's, and 0 is refused because the IANA registry starts at 1 (closes #218). Thanks to @atanishka308.

    SyslogForwardSection gains a public field, which Cargo counts as a breaking change for any caller constructing it literally, so this moves the middle digit while the leading zero stands.

Fixed

  • The story-evidence writer refuses a missing EV_CASSETTE_SHA at preflight instead of raising KeyError mid-assembly. (#505) The variable was read with a strict os.environ[...] but was absent from REQUIRED_ENV, so the caller got a two-variable diagnostic and then a traceback rather than the complete missing-variable list. No live caller reached it: run-stories.sh:618 always sets it. A test derives the required reads from the Python AST, so the declaration cannot drift from the code again (closes #448). Thanks to @mikevillari.
  • A local action reference outside .github/actions is refused rather than skipped. (#510) GitHub accepts uses: ./any/directory, both pin checks returned early on any ./ reference, and discover() only walks .github/actions, so an unpinned uses: attacker/exfil@main inside ci/setup/action.yml passed the rehearsal contract, the pin-comment checker, the Node EOL check and yamllint. A shared check_local() now normalises the reference and requires it to land in .github/actions or on a top-level reusable workflow, and the symlink guard in discover() has the test it never had (closes #507).
  • scripts/check_evidence_claims.py and tests/release/public-claims.test.sh are executable again. Both lost the bit in #487's merge. CI calls them through an interpreter so nothing went red, and CONTRIBUTING.md tells contributors to run the first one directly, which failed with Permission denied.

Documented

  • The Security Model says what the layers are. (#487) They are sequential gates on one request path inside one process running as one root-equivalent account, not independent walls, and SECURITY.md now says so with the grants that make it true. check_public_claims.sh pins the retired "every layer is independent" wording, and SECURITY.md joined CLAIM_FILES, without which the pin could not fire on the file it was written for. Thanks to @yuee3.

[0.21.0] — 2026-09-23

Security

  • useradd, usermod and the eight unit verbs run through the validating helper, because the 0.20.0 narrowing did not hold. GHSA-j9c3-j2qr-65c4 was published as fixed in 0.20.0, where each bare grant became a literal subcommand followed by a trailing *. sudoers matches a command's arguments as one concatenated string, so a trailing * accepts further options as readily as a value, and three of the escapes that advisory named still matched: useradd --create-home -o -u 0 -g 0 backdoor (a second uid-0 account) against /usr/sbin/useradd --create-home *, usermod --lock -o -u 0 <user> against /usr/sbin/usermod --lock *, and systemctl start debug-shell.service against /usr/bin/systemctl start *, which the daemon's own ROOT_SHELL_UNITS denylist refuses on its own path and a grant cannot refuse at all.

    sudoers has no way to express "this subcommand and no further options", so the grammar moved to /usr/lib/sysknife/action-steps, which already backs the group, ssh and container actions: it re-validates the account name, the home directory, the shell, the unit verb and the unit name on whatever path reaches it, then builds the same useradd/usermod/systemctl argv the daemon used to build. packaging/sysknife-sudoers no longer grants useradd, usermod or any of the eight unit verbs; systemctl daemon-reload and reboot keep literal grants with no wildcard to swallow anything.

    The test that was supposed to hold the line asserted only that those grants carried at least one argument token, which stayed true while all three escapes matched. It now runs each escape through the repository's own sudoers matcher and fails if any grant admits one, and the helper's denylist is derived from the daemon's ROOT_SHELL_UNITS rather than restated, the way the grub-kargs helper's copy drifted in GHSA-f8vp-j3jh-7wjx. Both directions are mutation-proved: restoring /usr/sbin/useradd --create-home * turns the new test red, naming the grant and the escape.

    Upgrading is not crate-only. The daemon now builds sudo /usr/lib/sysknife/action-steps … for these actions, and the grant that authorises it lives in the packaged sudoers fragment, so a host that takes the new binary while keeping the old /etc/sudoers.d fragment and the old helper gets "a password is required" on every user and service action. Install the package, or re-run make install, rather than replacing the binary alone. That coupling is why this is a middle-digit release: a call that used to succeed now refuses until both sides move.

[0.20.1] — 2026-09-23

Fixed

  • The GitHub YAML gates open every file a uses: can hide in. (#471) A mutable action reference inside a local composite action under .github/actions/ was checked by nothing: SHA pinning, version-comment verification, the Node EOL check and yamllint all globbed .github/workflows/*.yml and stopped there. scripts/github_yaml.py now discovers nested action.yml and action.yaml beside the workflows and every gate reads the same set, locally through scripts/lint-github-yaml.sh and in CI. An absent actions directory stays valid; one that exists and holds no metadata fails discovery instead of reporting a clean scan, as does an empty issue-template set, because a scan that read nothing must not print an all-clear. Nine fixtures cover pinned and unpinned block and flow composites, both metadata extensions, empty roots, malformed and directory-shaped inputs, and the lint entry point itself (closes #459). Thanks to @QinXi-ai.
  • The release workflow waits for crates.io to serve what it just published. (#463) Publication walked the dependency order with a fixed sleep 30 between crates, which is a guess about index latency rather than an observation of it, and a slow index left a dependent crate publishing against a version the registry did not yet serve. scripts/crates-index-poll.sh polls for the exact version and separates "not published yet" from a transport error, so the loop cannot read a failed request as an absent crate. This release is the first to use it.

Changed

  • The version registry catches a bypass and an unlisted crate. (#498) tests/release/version-sites.test.sh now fails when bump_version.sh or check_release_versions.sh stops going through scripts/release_versions.py, and when a workspace manifest carrying the release version is missing from release-versions.json. Thanks to @mikevillari.
  • Dependency bumps: async-openai 0.42.0 (#494), rmcp 3.4.0 with clap 4.6.7 and clap_complete 4.6.11 (#493), taiki-e/install-action 2.87.14 (#495), and react and react-dom 19.3.0 with vite 8.3.0 in the paused desktop shell (#492). Two of those needed the code to follow: rmcp 3.4 deprecates the ServerInfo alias in favour of ServerConfig (both alias InitializeResult, so the served MCP handshake is unchanged), and async-openai 0.42 adds metadata and moderation to CreateChatCompletionResponse and misalignment to ApiError, which the adapter's test fixtures name field by field.

[0.20.0] — 2026-09-22

Security

  • AddMount refuses the suid and dev mount options and adds nosuid,nodev to every mount it makes. validated_mount_options was a charset check with no denylist, alone among the dangerous-value validators in that file, and omitting the parameter reached the helper as defaults, which Linux expands to rw,suid,dev,exec,auto,nouser,async. A setuid-root binary on attacker-supplied media then granted root to whoever ran it. exec stays allowed: running an ordinary binary from a mounted volume is a legitimate need, and nosuid with nodev is what removes the escalation. The helper carries the same list, and a test derives it from the Rust source so the two cannot drift (GHSA-gqhr-84x9-x898).
  • Eight more sudo grant families carry argument constraints: certbot, fail2ban-client, snap, rpm-ostree, ostree, pro and netplan at both of its packaged paths. Each can run an arbitrary command as root through a subcommand no action builds, by hook, jail action, snap, or rpm scriptlet. Unconstrained grants fall from thirty-one to fifteen, and what remains is the set whose first argument is the parameter itself, none of which can spawn a shell (GHSA-j9c3-j2qr-65c4).

[0.19.0] — 2026-09-22

Security

  • PinDeployment and UnpinDeployment bind to the deployment that was approved. Both take an ordinal index into the live rpm-ostree list, and the request hash covers only {"index": N}, which is byte-identical however much has moved into slot N since the operator approved it. Any concurrent UpdateSystem, CleanupDeployments or RollbackDeployment inside the approval window reorders that list, so the effect that executed could differ from the effect that was previewed while the hash binding and the signed audit row both showed a clean match. The preview now captures the deployment's ostree checksum and execute re-checks it, the way AptAutoremove has captured its deletion set since #151, and a preview that captured no identity cannot execute (GHSA-93hm-phfx-6mg8).
  • CreateUser validates home as an absolute path. It used validated_safe_arg, which enforces a charset and rejects a leading dash and accepts both .. and a relative path, while validated_absolute_path in the same file rejects both and already guarded every other root-acting path parameter. home reaches useradd --create-home --home-dir as root (GHSA-93hm-phfx-6mg8).
  • A job's terminal outcome is in the audit chain. update_status called append_event zero times, so audit_events held the approval lifecycle and nothing recorded Running -> Succeeded, Failed, RolledBack or NeedsReboot. An action that ran to completion could be rewritten in the status column as Canceled, sysknife history reported it canceled, and sysknife audit verify still reported the chain Intact, while the module documentation told the reader the outcome was protected. The status write and the event that records it now share one sqlite transaction, audit verify compares each row against the newest status event chained for it, and the documentation says what the code does (GHSA-8g7w-7g2g-g55w).
  • Eight sudo grant families carry argument constraints. systemctl, useradd, usermod, kill, hostnamectl, timedatectl, localectl and resolvectl were granted with no argument tokens, which authorises every invocation of each: systemctl link on an attacker-written unit file, systemctl start debug-shell.service past the denylist the daemon applies on its own path, useradd -o -u 0 for a second uid-0 account, usermod -p over root's password hash. Each is now restricted to the argv the catalogue builds. The existing check asked only whether every action had a grant, which cannot see a grant wider than any action needs; a second check now fails on a new unconstrained grant and on a stale entry in the inventory of the ones that remain (GHSA-j9c3-j2qr-65c4).

[0.18.0] — 2026-09-22

Security

  • AddSwap and RemoveSwap resolve the whole swap path before acting on it. O_EXCL|O_NOFOLLOW constrains the final component only, so a symlinked ancestor directory could place a root file create, and a root unlink, outside the intended path. Both operations now refuse a path that resolves through a symlink anywhere along it, and work relative to a pinned parent descriptor rather than by name (GHSA-gqhr-84x9-x898).
  • sysknife-grub-kargs-edit refuses debug-shell and runlevel1 as systemd.unit= boot targets. The helper is callable directly through its sudoers grant, where the daemon's own refusal does not apply, and its list carried three of the five entries the daemon refuses. A test now derives the daemon's list from its source and fails on any gap, so the two cannot drift apart again (GHSA-f8vp-j3jh-7wjx).

[0.17.0] — 2026-09-22

Changed

  • sysknife-setup requires Node 22 or newer. Node 18 and 20 no longer receive security fixes, so this drops support for them rather than retiring an untested claim: engines.node, the preflight guard and all six published support statements move together, and the refusal message says why the floor moved. Nothing in CI is affected; every job that touches JavaScript already runs Node 24 (#327).

Fixed

  • sysknife audit verify now reports cannot_verify and exits 2 over an empty transaction log with no external checkpoint anchor, instead of reporting intact and exiting 0. An erased store and a store that was never written read the same to the chain check on its own, so the verdict says it cannot tell them apart rather than calling the trail sound. Configuring SYSKNIFE_CHECKPOINT_DB restores a definite answer. The MCP sysknife_audit_verify tool still reports intact in this case and is tracked separately (#338, #466).
  • The release-rehearsal pin check now fails when it extracted too few uses: lines, instead of reporting the invariant holding over an empty set (#407).

[0.16.0] — 2026-09-15

Added

  • Add read-only nftables ruleset and firewall-backend observations. General firewall queries preserve failed/unknown probes and do not equate inactive ufw with an unfiltered host. Safety notes precede bounded diagnostic excerpts so large rulesets retain valid JSON and the interpretation caveat within the planner output cap; mutating nftables actions remain out of scope (#239).

Changed

  • Remove whole-binary shell and runuser sudo grants. Firewall, group, Snap, SSH-key and user-scoped Flatpak/Podman/Toolbox operations now use a bounded helper with fixed command grammars. User operations refuse UID 0 and drop groups/GID/UID before file access or execution; SSH edits reject symlinks. Install the new helper together with the daemon and sudoers fragment (#417).

Fixed

  • Align planner action descriptions with the Ubuntu execution fence, including Ufw and the other tool families moved to shared or Debian-family support. Guard both directions of the description/fence relationship (#416).
  • Discover release/e2e shell guards in local CI instead of maintaining a stale list. Report skipped required Postgres validation in the final summary and prefer Podman when both container runtimes are available (#346).

[0.15.0] — 2026-09-10

Changed

  • Make Debian stable releases 12 and later eligible, while refusing an unknown version and releases below the security-support floor. Debian eligibility is separate from live-VM validation; Ubuntu-only actions remain excluded (#238).
  • Let UfwStatus return numbered rules with numbered: true, retaining verbose output by default. Add query_ufw_rules so the planner can read the indices required by UfwDeleteRule instead of guessing them (#234).
  • Separate Ubuntu identity requirements from Debian-family mechanisms and planner defaults. Canonical services, PPAs and the reboot sentinel require Ubuntu itself; portable tools are no longer refused merely for being another distribution's default. Ubuntu and Fedora default catalogues and host eligibility remain unchanged (#237).
  • Keep portable tools behind the CLI supported-host gate and out of unknown-family planner catalogues. At the daemon, portable Observer reads such as UfwStatus can now run without distro detection; mutations and hard-fenced reads still require an eligible host. AptUpdate remains hard-fenced despite its Low risk.
  • DistroHint now carries a distribution id, and propose_plan_tool_def accepts the full hint rather than a family string. This is a public Rust API change requiring a middle-digit release while the project is in 0.y.

Fixed

  • The default Groq model is openai/gpt-oss-120b. Groq decommissioned llama-3.3-70b-versatile, so every SysKnife user on the Groq provider who had not overridden SYSKNIFE_LLM_MODEL was getting an HTTP 404 from the planner. Found by running the planner against the live API rather than a cassette:

    llama-3.3-70b-versatile      HTTP 404   model_not_found
    openai/gpt-oss-120b          HTTP 200
    

    The replacement was chosen by running SysKnife's real prompt and tool schema against it: a three-part read-only intent planned GetDiskUsage, GetMemoryInfo and ListServices with no query preamble, and a Debian 12 host planned AptInstall with no Ubuntu-only action offered. All seven reference sites move together, which tests/e2e/provider-parity.test.sh enforces.

  • Sanitise the distro version string before it reaches the prompt header. A crafted /etc/os-release could put tag syntax into the version and open a second <user_preferences> envelope around the constraints, risk tables and params blocks that follow it. Both the Fedora and the Debian renderer interpolate that value and both now route it through normalise_free_text (#272).

  • check_no_secrets.sh --staged fails closed when git cannot answer. The pre-commit credential scanner built its file list through process substitution, which set -euo pipefail cannot see into, so a failing git diff --cached left the loop with nothing to do and the scanner exited 0 having read no bytes. A staged blob git cannot read now stops the commit with its own message instead of the credential-found banner, and an honest empty staged set still passes in silence (#406).

  • Attach the default safety audit log in LlmPlanner::from_config, the construction path the CLI, the MCP server and the shell all take. Fence rejections were built and tested and never written anywhere, so a rejected plan left no record on any real machine. Direct LlmPlanner::new stays without runtime defaults for embedded callers and tests (#236).

  • sysknife-setup prefers keyless Ollama over a cloud provider with no credentials, so a first run on a machine with no API key reaches a working provider instead of one it cannot authenticate to (#337).

  • The release helper refuses a missing registry version argument rather than carrying an empty string into the publish path (#396).

  • Guard each live PostgreSQL test invocation independently, including the CLI anchor exit-code contract, and run that CLI contract in both local CI paths. Missing ignore flags, unresolved test filters, missing contract targets and disabled required-database settings now fail the guard. Quoted step labels cannot substitute for the arguments that actually execute (#362).

[0.14.0] — 2026-09-07

The middle digit moves because an exit code changed. sysknife audit checkpoint with no database configured returned 2 and now returns 4, and an exit code is the contract a wrapper script reads. Nothing was removed and no signature changed; under the rule in docs/release.md that is still a compatibility break, the same way v0.9.0 was when sysknife-setup began refusing a malformed .mcp.json it used to overwrite.

Two of these are security fixes in the daemon's authorization path. A cancelled transaction could keep a live approval receipt, and a peer the kernel could not pin was still credited with the supplementary groups of whatever process held that PID by the time /proc was read.

Changed

  • A CLI timeout no longer reports that an action ran, and a missing checkpoint database is a configuration error (#381, closes #335). --timeout built an ExecutionFailed carrying a timeout string, so an operator reading execution failed: had no way to tell a command that ran and failed from one that never started. It is now its own TimedOut variant, still exit 2, reported as operation timed out after Ns. Separately, audit checkpoint with no database printed its own diagnostic and returned a hardcoded exit 2; it now returns the configuration code 4 through the normal error path. docs/cli.md documents what exit 2 covers, including clap's usage errors.

Fixed

  • Keep supplementary groups out of caller authorization when SO_PEERPIDFD cannot pin the peer, including an already-reaped peer or fd exhaustion. Only ENOPROTOOPT retains the older-kernel best-effort path; every other failure keeps only the primary GID captured by SO_PEERCRED (#250).

  • A release pin that lost its version field passed the version check (#378, closes #368). check_release_versions.sh piped its list of internal path dependencies through grep 'version = ' before validating them, so the one broken pin the check exists to catch was the one the filter removed, and publication would have failed later against crates.io instead. An absent pin is now its own explicit failure, and tests/release/release-version-pins.test.sh proves it by removing a pin and requiring the check to name the manifest.

  • Markdown link coverage is derived rather than listed (#376, closes #372).

  • The daemon's sysknife-apt-pin-edit lock arm was unreachable (#375, closes #248).

[0.13.1] — 2026-09-05

The last digit moves. No shipped code changed: crates/**, apps/*/src/** and packaging/** are byte-identical to 0.13.0, so an installed copy behaves exactly as it did. What changed is what CI will let into the tree from here on.

Fixed

  • Story-coverage figures are derived from the tree instead of maintained by hand (#370, closes #229). CONTRIBUTING.md said "Every Debian-only action now has one" four lines below a row saying five of them still have none, and docs/introduction.md carried the same false sentence. Nothing derived either claim, so they drifted for a day in August, somebody fixed them by hand, and the next story landing would have broken them again. The claim screen now recomputes the uncovered All / Fedora / Ubuntu counts from docs/action-reference.md and tests/e2e/stories, and the atomic and Ubuntu family sizes from the story headers, using the same line-2 rule tests/e2e/run-stories.sh reads so the checker and the harness cannot disagree about how big a family is. Both directions of the Debian-only prose are screened in every claim file: a stated gap must equal the derived count, and a universal "every ... has a story" is accepted only when that count is zero, so two contradictory sentences can never pass together. Family-labelled counts are checked against the family they name, so swapping the labels no longer passes on the strength of both numbers being legitimate sizes somewhere.

    The guard fails loudly rather than inspecting nothing: a story header off line 2, a mangled catalogue table, an empty story directory and a story set with no quoted identifiers each stop the screen with a message naming the file.

[0.13.0] — 2026-09-03

The middle digit moves because of #360. query_action used to run AptUpdate, and now refuses it. That call succeeded before, so a client scripting it against the raw IPC socket will see an authorization_failure where it previously got a result.

Take the upgrade anyway. AptUpdate runs sudo apt-get update, writes the root apt index and takes the dpkg lock, and it reached the executor through query_action with no preview, no approval receipt, no transaction row and no exclusion gate. RiskLevel::Low was never a claim that an action is read-only; it decides how much authorization the caller needs. Every installed copy before this release will run that mutation for any client that can reach the socket.

Nine changes. Two of them, #348 and #360, are the same boundary approached from opposite sides: one exposes read-only actions as direct MCP tools, the other makes sure the classification that decides "read-only" is enforced by the daemon rather than trusted from the surface. Both came from the same outside contributor within two days.

Added

  • MCP clients can query live system state without an LLM planning round trip. Observer-callable actions now receive distro-compatible direct tools generated from the catalogue, with read-only MCP annotations and the daemon's existing policy and platform fences. The explicit classification is drift-tested: AptUpdate remains plan-only because refreshing root's apt index mutates the host despite its Low risk level. (#216)

Fixed

  • query_action can no longer bypass approval for Low-risk mutations. The daemon now rejects AptUpdate on the raw approval-free query path using the same explicit Observer-mutating classification as the generated MCP router. Direct socket clients must use preview, approval receipts and execute, so the root apt index cannot be changed without an audit-backed approval or concurrently with an action holding the dpkg exclusion gate. (#226)

  • sysknife audit verify no longer lets an inconclusive anchor hide a broken chain. The command combined the local audit result with the configured external anchor using .max() on their exit codes. Exit 1 means a break was detected and exit 2 means a check could not reach a verdict, so numeric ordering put "could not determine" above "this has been tampered with": a broken chain whose anchor database was unreachable exited 2. A script that treats 2 as a soft warning and 1 as an alert routed a real tamper event to the wrong branch. Precedence is now explicit, and --json derives its status from the same combined result rather than from the local check alone, so a truncated anchor over an otherwise intact chain reports broken instead of intact. (#221, thanks to @k4its1t)

[0.12.0] — 2026-09-03

The middle digit moves because of #334. The daemon now binds a transaction to the account that created it, and refuses two calls that used to succeed: one account acting on another account's transaction, and an Unattributed peer acting on its own. No signature changed, and docs/release.md counts a behaviour change a caller relied on as a break, with v0.9.0 as the precedent.

If you run sysknife approve in a terminal after an MCP preview, nothing changes. The daemon compares accounts rather than connections, and both halves of that flow run as your uid.

Three changes, two of them from outside contributors. The authorization fix is the reason to upgrade.

Fixed

  • A story suite that proved nothing no longer reports success. All three runners (run-stories.sh, exec/run-exec-stories.sh, dev-stories.sh) decided their exit status from fail_count alone, so a run where every story was skipped or rate-limited printed 0/N passed, 0 failed and exited 0. run-stories.sh also rewrote a failing story's verdict to RATELIMIT, moving it out of the only counter that could fail the run. A pass is now a positive PASS marker rather than an inferred exit status, and skipped, rate-limited and zero-pass runs all fail. scripts/check_evidence_claims.py refuses an artifact carrying a non-zero skipped or rate_limited as evidence for a published pass rate or a Validated tier. tests/e2e/story-runner-verdicts.test.sh pins the contract by executing staged copies of the three production runners and mutating their real exit gates, so a reverted fix turns the suite red. Story 28 also left the no-argument default sets, which selected a Fedora-only story on every Ubuntu host. (#247)

  • A manually created socket directory now gets the mode the package declares. bind_unix_listener creates a missing parent for the socket path, and it created it with whatever the process umask gave, so a daemon started by hand could sit behind a directory more permissive than the 0750 that packaging/sysknife-tmpfiles.conf sets under systemd. It now sets 0750 on a directory it created, and leaves an existing one alone: an operator who put the socket in their own 0700 directory keeps that mode rather than having it widened. tests/e2e/ubuntu-provision.sh derives the expected runtime and state directory modes from the tmpfiles config and asserts the live modes on /run/sysknife and /var/lib/sysknife immediately after systemd starts the daemon, which is the only point where the mode a running daemon has is a different question from the mode a file declares. (#269, thanks to @ITSMERNB)

Security

  • A transaction can only be approved, cancelled, inspected or executed by the account that created it. authorize_for_transaction checked the caller's role and nothing else, so any account permitted to reach the daemon socket could mint an approval receipt for a transaction it had never previewed, read that preview's unredacted parameters and host-state snapshot, cancel it, or execute it. handle_execute and handle_approval_details had the same gap on their own paths.

    caller_principal was already captured at preview, stored, and signed into the chain. No authorization decision read it back, so the receipt proved that a permitted account confirmed a preview, never which one, and the signed row went on naming the account that previewed rather than the one that approved.

    The rule is principal equality, not connection equality. sysknife approve is deliberately a separate process from the client that previewed, and every CLI call opens its own connection, so both keep working. Two cases refuse rather than compare: an Unattributed peer, because the kernel could not name it and two such callers are not known to be the same account, and a row with no recorded owner.

    Scope, stated plainly: /run/sysknife is 0750 and the socket is 0660, so only members of group sysknife and root could reach this at all, and the role ceiling always held, so it was never a route past your own role. The defect was same-role and cross-account, inside the trusted group.

[0.11.0] — 2026-09-01

The middle digit moves because of #312. npx sysknife-setup --claude --no-prompts --daemon-mode=system, the automation one-liner in docs/quickstart.md, now exits 3 where it exited 0. No signature changed, and a run that used to succeed now reports failure, which docs/release.md already counts as a break. System mode is a two-phase install by design, so the honest exit code is non-zero.

Sixteen changes, four of them from three outside contributors and seven from Dependabot. Two closed cases where a secret was readable by anyone on the host, and one added a way to run without a human that records the fact in the signed chain rather than hiding it.

Added

  • sysknife --dangerously-skip-approval runs with no human in the loop. Until now --yes could never auto-approve a HIGH-risk step, and there was no way to say otherwise. The rule is right for a terminal and wrong for a scheduled run.

    The flag lifts the approval gate: HIGH becomes auto-approvable and the post-preview confirmation stops asking. The preview is still fetched and printed, because it is the only record of what an unattended run was about to change. An explicit --max-risk still wins, and --dry-run still executes nothing.

    It lifts nothing else. Only catalogue actions with validated parameters run, the polkit allowlist still gates every privileged call, the run still aborts when the daemon rates a step above what the CLI approved, role authorization is unchanged, and every step is still signed into the chain.

    Two keys are required. The flag alone prints an explanation and exits 1; it also needs SYSKNIFE_I_ACCEPT_UNATTENDED_ROOT=1, and only that exact value. A flag left in a script and a variable left in a profile are the two ways this gets armed by accident, so neither is sufficient alone. No short form, no abbreviation, and a red banner naming the host and account before anything runs.

    The audit trail records it. The daemon writes a warning into the transaction's warnings, which is stored as warnings_json and signed as one of the fields in ChainContent::canonical_bytes, so an unattended run cannot later be presented as one a human approved: editing the marker out of the stored column makes sysknife audit verify report that row Broken. The CLI refuses to execute if a daemon too old to record it drops the declaration. docs/cli.md has the full contract.

  • sysknife audit export writes the signed chain rows as JSON. (#215, #260) Emits the stored transaction-chain rows in ascending seq order, with --since and --limit, including prev_chain_hash and the Ed25519 signature stored as chain_hash, so an offline consumer has the linkage and signature bytes without opening the database itself. It reconstructs nothing the signed row never stored, and the store is opened without acquiring a signing key. Contributed by @danial-razi.

    docs/cli.md and docs/the-audit-chain.md now state that an export is not a redacted artifact: request_hash commits to the unredacted parameters as one unsalted SHA-256, so an export inherits the confidentiality class of the 0600 database it came from (#268).

Security

  • The VM harnesses put provider API keys in the host and guest process tables. (#316, #299) ubuntu-vm.sh and atomic-vm.sh built sudo VAR='value' bash … into the ssh command string, so every configured provider key was readable in ps on both sides for the length of a story run. The variables now travel over ssh stdin into a 0600 file under /run, written with umask 077 before the redirection, sourced by the guest shell and deleted before the test script execs. Measured rather than argued: a stub that records cmd_ssh's arguments sees four canaries on the old path and none on the new one. The single-quote interpolation it replaces was also a command-injection hole, since any value containing a quote became shell syntax on the guest. tests/e2e/vm-env-secrets.test.sh holds the shape in CI. Thanks to @xianjianlf2.

  • CI ran on a Node release that no longer receives security fixes. (#326) Node 20 reached end-of-life on 2026-04-30, and three workflow jobs still pinned it, two of them running npm ci with the workflow token in scope. All three move to 24. tests/release/node-eol.test.sh compares every node-version: pin against the dates published in nodejs/Release, so the check goes red on its own once a pinned major ages out, refuses a major it has no entry for, and fails loudly if it finds no pin at all.

    The same job installed markdownlint-cli2, markdown-link-check and yamllint unpinned while holding that token; all three now name a version.

Changed

  • rmcp 3.1, and the 2026-07-28 protocol revision with it. (#324) ListResourcesResult and ListResourceTemplatesResult gained result_type, ttl_ms and cache_scope. All three stay None: an absent result_type means complete, and advertising neither a cache scope nor a TTL keeps every client asking the daemon rather than replaying a stored answer. ServerHandler::read_resource now returns ReadResourceResponse, whose InputRequired variant (SEP-2322) asks the client for more input before the read finishes; SysKnife always answers Complete, because approval is a terminal action against the daemon and an MCP-level input round would reach the operator with no approval receipt behind it. A new stdio test drives a real resources/read and asserts the result's exact key set.

  • Scorecard no longer uploads its SARIF to code scanning. (#326, #305) Every Scorecard heuristic was becoming a code-scanning alert, five of them with no file attached, and four high-severity CodeQL findings sat unread for 36 days behind that pile. publish_results: true stays, so the badge and the public Scorecard API are unchanged, and the job gives up security-events: write.

Fixed

  • postgres-contract reported success when no database was configured. (#313, #294) Five tests in postgres_store.rs returned early when SYSKNIFE_TEST_POSTGRES_URL was unset, so a renamed variable or a dropped services: block left one of main's five required checks green over a contract it never ran. nextest prints per-test stdout only on failure, so the existing notice was invisible in exactly that run. The five live tests are now #[ignore], the job sets SYSKNIFE_REQUIRE_POSTGRES and runs with --include-ignored, and a required-but-unconfigured run panics instead of passing. A local run without a database reports them ignored rather than passed.

  • CheckPendingReboot failed exactly when a reboot was pending. (#314, #227) The action read /var/run/reboot-required-pkgs, a filename Ubuntu does not write. update-notifier writes reboot-required.pkgs. When the sentinel was present the missing cat became the script's exit status, the dispatcher dropped stdout, and the operator saw CheckPendingReboot failed with exit code 1 instead of *** System restart required ***. The action now reads the dot filename and ends the then-branch with true, so a missing packages file is optional rather than an error.

  • postgres-contract could still report success on zero live tests. (#317, #315) #313 made the job fail closed on a missing database, but split the guarantee across two tokens: SYSKNIFE_REQUIRE_POSTGRES fails loudly from inside the test file, while --include-ignored is what runs the five #[ignore] live tests at all. Dropping the flag left the job reporting 6 passed; 5 ignored and exiting 0 with no database touched. tests/release/postgres-contract-guard.test.sh now reads the CI job and both scripts/ci-local.sh branches and fails when either token goes missing. It derives the variable name from postgres_store.rs and asserts no test count, so adding a store test does not break it.

[0.10.0] — 2026-08-26

The middle digit moves because #289 added a variant to BindingOutcome, a public enum this codebase deliberately keeps exhaustive, so any downstream match over it stops compiling. That is the whole of the breaking change; nothing was removed, renamed or re-signed.

Sixteen changes, seven of them from five outside contributors and two from Dependabot. Three closed cases where a check reported a verdict it had not earned: a Postgres auditor grading an event table it could not read, a binding check that never ran reported as consistent, and a pin file that stopped enforcing when it did not name the asset.

Changed

  • BindingOutcome gained NotChecked. (#289) A cross-chain binding check that could not run used to be indistinguishable from one that ran over zero rows and agreed. It now has its own variant, mapping to exit 2 on the same inconclusive/detected scale as outcome_to_exit_code. Public enums here stay exhaustive on purpose, so an added variant is a compile-time prompt to handle it rather than a silent default; docs/release.md has the reasoning. Thanks to @k4its1t.

Fixed

  • The Postgres auditor graded evidence it never read. (#295, #246) verify_all_from_config swallowed every error from the approval-event read with unwrap_or_default(), justified by pre-migration chains that have no audit_events table. A revoked SELECT, a dropped table or a lost connection became "zero approval events", which is either a clean bill for a trail nobody read or, when a transaction row commits a non-empty event tip, a MissingEvent published in the words operators are taught to read as deleted approvals. It now asks to_regclass whether the table is genuinely absent and fails closed on everything else. Thanks to @vsolano9.

  • SYSKNIFE_PINNED_SHA256SUMS stopped enforcing when the pin file did not name the asset. (#290, #223) Asset names carry the release tag, so a pin file written for one release names nothing in the next. The lookup returned null, the gate treated null as "no pin", and the install proceeded unpinned with the control switched on. The lookup now refuses, and the gate refuses null even if a future lookup hands one over. Thanks to @vsolano9.

  • The setup wizard reported success for a daemon it never installed. (#293, #291) installDaemonService returned bare undefined when systemd was absent while its three siblings returned a result, and the caller gated the outstanding-steps block on mode === 'system'. A host without systemd and a deliberate --daemon-mode=skip both ended on the success banner. Thanks to @vsolano9.

  • resolve_audit_store read a permission error as a missing database. (#275, #266) Path::exists is false for both ENOENT and EACCES, so an unreadable 0700 system store sent the operator to an empty per-user store instead of telling them to use sudo. Thanks to @VedantMadane.

  • The 4 MiB frame limit was declared in three places. (#285, #230) Now sysknife_types::MAX_MESSAGE_BYTES, with a test that walks the three crates and asserts exactly one declaration. Thanks to @kragent66-glitch.

  • RiskLevel was the one wire enum with no anchored protobuf number. (#284, #231) Anchored in both directions: the decode assertion alone left the outbound map unpinned, because every envelope test uses Medium and both fixtures hard-code risk_level: 2, so High never traversed the map. Thanks to @Georgefifth.

  • make install failed halfway on an immutable-root host. (#309, #301) daemon-install wrote the binary, the systemd unit, the polkit rules and all twelve sudo grants before discovering /usr was read-only, leaving live grants for helper scripts that did not exist. A preflight now checks every directory in INSTALL_DIRS and refuses the whole install before the first write. Fedora Atomic remains uninstallable pending the path decision in #301.

  • Two E2E harness defects that only appear on a machine that ran both VM harnesses. (#296, #298) atomic-vm.sh rsynced tests/e2e/ubuntu-vm/, 24 GB of gitignored qcow2 overlays, into a 38 GB guest; and provision.sh asked command -v cargo before putting ~/.cargo/bin on PATH under sudo, so it re-downloaded rustup on every run.

Documentation

  • Contributor norms, the baseline-ownership convention, and the rule that a diff with no .rs file in it does not need the Rust workspace gate (#292, #308).
  • Every docs page now carries an Open Graph card, with a test tying the image URL to a file the build produces (#302).
  • npm keywords and the crates.io homepage now point at the docs site rather than repeating the repository link (#300).

[0.9.1] — 2026-08-24

Four fixes from outside contributors, three of them closing the same class of gap. #256 stopped a saved preference from closing the prompt envelope that contains it, then #274 and #280 removed U+2028 and U+2029 from both paths that render untrusted text: the one the model reads and the one the operator approves from. #282 took the last hand-typed wire numbers out of the envelope encoder. No public item was removed, renamed or re-signed, so this is a patch.

Fixed

  • Two Unicode line separators reached the model as visual line breaks. (#274, #224) strip_dangerous_unicode covered U+200B..=U+200F and U+202A..=U+202E, which left U+2028 LINE SEPARATOR and U+2029 PARAGRAPH SEPARATOR sitting in the gap between the two ranges. append_pref refuses both when a fact is written, but read_prefs normalises on the way back out and passed them through, so a hand-edited preferences file could hold one fact that str::lines and the - filter in append_prefs read as a single line while the model read three, the second an unprefixed heading. The same gap let paragraph padding slip past collapse_blank_runs, which counts \n only. The arm now widens to U+2028..=U+202E, stripping both before blank-run handling. Thanks to @vsolano9.

  • A saved preference could close the prompt envelope that contains it. (#256, #253) append_prefs wraps saved facts in <user_preferences> and tells the model to treat the block as data, but neutralise_envelope_tags knew only the untrusted_tool_output envelope. A remembered fact containing a literal </user_preferences> therefore closed its own envelope, and everything after it read as system-level instruction. remember is model-driven and a hostile tool result can steer it, so the injection was durable: replayed into the system prompt on every later plan.

    Both envelope names now come from one list, the sentinel is a prefix (<BLOCKED_name) so normalisation is a fixed point rather than stacking markers on each pass, the closing trigger no longer requires the > so an end tag with whitespace before it cannot slip through, and preferences get their own normaliser instead of the 8 KiB tool-output one that silently truncated a file the write path allows to reach 10 240 bytes. remove_pref and the duplicate check normalise both sides, so the model can delete exactly the fact it was shown, including in a hand-edited file. Thanks to @QinXi-ai.

  • A gate that could not fail: the credential scanner's "never echo the secret" assertion. (#262, #228) Under pipefail, "$CHECK" file | grep -qF "$leak" reported the scanner's own exit status even when grep matched, so the branch that fails the build was unreachable. The assertion now captures the output and greps it separately, and a mutation block runs an echoing scanner through the same check to prove it can still fail. Thanks to @ITSMERNB.

  • Ten files carrying public claims were never screened. (#259, #232) scripts/check_public_claims.sh kept its own list of six files while check_evidence_claims.py knew sixteen, so the prose rules skipped ten of them. The shell script now reads CLAIM_FILES from the Python module, and refuses to report success when that read comes back empty, which set -euo pipefail cannot catch on its own inside process substitution. Thanks to @Osheun.

  • Outbound envelope encoding hand-typed the wire numbers while inbound trusted the generated enum. (#281) The three From<…> for proto::… conversions existed but were unused, and the encode path wrote integers from three literal match tables instead. A renumbered .proto would have moved the decode side with the file while the encode side kept writing the old numbers — a peer reading High as Medium, which decides whether an approval receipt is required. The encode path now goes through the same prost-generated enums the decode path already trusts (i32::from(proto::X::from(value))), and the three tables are deleted.

  • operator_safe kept U+2028 and U+2029, so the invisible-character set it calls complete was not. (#276) The drop arms covered U+200B..=U+200F and U+202A..=U+202E, leaving the two line/paragraph separators in the gap between them. Terminals render both as nothing, which is exactly the class the function drops by name: a plan summary reading remove nothing could hide a different target from the operator approving it. The bidi arm is now U+2028..=U+202E, the same widening #274 applied on the model-facing path. Thanks to @Georgefifth.

Documentation

  • The README hero is an Ubuntu recording, and the social preview leads with Ubuntu. The demo GIF moved from the Fedora Atomic flow to a new Ubuntu 24.04 one covering UfwAllow, AptInstall and UfwStatus, with the Atomic recording still linked for rpm-ostree hosts. The social preview now names Ubuntu 20.04+ first and describes Fedora as Atomic-only, which is what the support matrix says. assets/demo/README.md records the render pipeline, including the ffmpeg frame-rate step that takes a raw 424-frame VHS render down to 170 frames and 2.12 MB; that step is load-bearing rather than cosmetic, since gifsicle only touches the palette.
  • Contributors are named in the README, with a pointer at Releases for anyone who wants to see their own fix ship. (#265)

[0.9.0] — 2026-08-19

The first outside contributions land in this release, and four dead public items leave with them. Removing published paths is a breaking change under Cargo's 0.x rules, which is why this is 0.9.0 and not 0.8.1.

Removed

  • Four verified-dead items, and the public paths they occupied. (#244) sysknife_core::PRODUCTION_LISTEN_URI, the root re-export of detect, detect_distro, parse_os_release, DistroFamily and DistroId, sysknife_brain::action_name::UnknownActionName, and the DEBIAN_ONLY_ACTION_NAMES / FEDORA_ONLY_ACTION_NAMES aliases in sysknife_brain::prompt are gone. Every live caller already went through the module path, so in-tree code is unchanged, and sysknife_types::UnknownActionName and sysknife_core::action_family::{DEBIAN_ONLY_ACTIONS, FEDORA_ONLY_ACTIONS} remain the canonical spellings. The unused direct prost-types dependency went with them. Thanks to @ITSMERNB.

Fixed

  • A malformed .mcp.json was replaced rather than refused, discarding the user's other MCP servers. (#243, #225) mergeMcpServers treated unparseable content as an empty config, so the wizard wrote a sysknife-only file over a config that still held the user's other servers, kept no backup, and reported success. It now refuses, and the refusal happens before any integration file is written, so a bad .cursor/mcp.json no longer leaves .mcp.json and three hookify rules already on disk. An empty, whitespace-only or BOM-prefixed file is treated as a fresh config instead of a failure, valid JSON that is not an object is refused, and the error carries the parser's position without echoing file contents, since these files hold provider API keys. Thanks to @ITSMERNB.
  • The audit-database migration could half-move, and --purge could not see the result. (#241)
  • Two plugin registry metadata gaps that cost trust points. (#220)

Security

  • h2 queued unbounded empty HTTP/2 DATA frames (RUSTSEC-2026-0258). (#245) Bumped to 0.4.16. cargo audit names the advisory without the bump and exits clean with it.

Changed

  • scripts/check_release_versions.sh now also checks the internal sysknife-* = { path = …, version = … } pins against the package version, and refuses to report success when its manifest globs match nothing. A bump that missed a pin would otherwise publish a crate depending on the previously released version of its sibling.
  • Dependency bumps: futures 0.3.34 and uuid 1.24.1 (#257), @testing-library/jest-dom 7.0.1 (#255), the rust:1-bookworm base image digest (#254), and four pinned GitHub Actions (#258).

Documentation

  • How the version number is chosen is now written down. docs/release.md explains why a removal moves the middle digit while the leading zero stands, names the three conditions for 1.0.0, and CONTRIBUTING.md points contributors at it alongside the test-baseline artifact they need to regenerate when they add a test.
  • Five published figures that had drifted past the guards were corrected (#242), and three dead ends in the contributor path were removed (#214).

[0.8.0] — 2026-08-16

Every Debian-only action now has a live-VM story, and the recording that proves a run can be reproduced finally reproduces the runs that needed a retry.

Security

  • A credential in an intent reached disk before the fence refused it. (#206) Planner::admit_request refuses any intent prefs::contains_sensitive flags, so a Pro token or API key never reaches a provider. The CLI, however, printed → planning "<intent>" to stderr before calling the planner, and both CI and the story harness run with stderr redirected to a file. The one value the fence exists to contain was therefore written to disk on its way to being refused. Both echo sites now go through prefs::loggable_intent, which asks contains_sensitive the same question rather than keeping a second copy of it.

Added

  • Twenty-nine user stories, 105 to 133, one per Debian-only action that had none. (#206) GetHostState first: the per-distro prompt split exists because naming Fedora's GetSystemState on an apt host is what the family fence forbids, so something had to answer "what is this host?" on Ubuntu, and nothing exercised it end to end. Debian-only coverage is 63 of 63. The Ubuntu family runs 79/79 on 22.04, 24.04 and 26.04, each with a committed replay twin that reproduces the run with zero misses.

  • ProviderError::is_invalid_tool_call, the single classification read by both the planner's corrective retry and the cassette's rejection recorder. A recorder narrower than the retrier leaves a retried run unreplayable; a wider one serves a transient failure back for ever.

Added

  • sysknife-setup --uninstall. There was no way to remove what the wizard installed. make uninstall covers the sudo make install footprint, which is a different set of paths. The audit database, the safety-audit log and ~/.config/sysknife are kept and their paths printed, because removing the software should not destroy the record of what it did; --purge removes them and names each one first. A system service is never touched, since its sudoers grants and polkit rules belong to the Makefile that installed them.

Fixed

  • --no-binary wrote a systemd unit pointing at a binary that does not exist. It returned a hardcoded /usr/local/bin/sysknife regardless of what was installed, and the caller derives the daemon path from it, so anyone who built from source into ~/.local/bin got a unit that crash-looped on status=203/EXEC every five seconds. It now runs the same probe the download path already ran, and says so when it finds nothing.

  • The installer reported a working install as broken. systemctl --user start returns once systemd has forked the service, not once it is listening, and the wizard probed the socket once immediately afterwards. On a cold install its final word was "Daemon socket not yet reachable" for a daemon that bound a second later. It now polls for up to six seconds.

  • Cassette v2 records provider rejections, so a retried exchange replays. (#206) The planner appends a correction and re-asks when a provider rejects a tool call, but the cassette stored only successes, so the only entry written was the second call. A replay started from the first, missed, and re-sent identical bytes. That single gap was why all three LTS replay twins reported cassette_audit.verdict failed. v1 files are still read; new writes are v2.

  • A failing story's log now carries the CLI's stderr. It held the story's opening line and nothing else, because every story redirects stderr to /tmp/sysknife-story-<n>-stderr.log and nothing collected it.

  • A record run paces itself. The provider ceiling that bites is tokens per minute, not requests: roughly 17 kB in per call against 250 k TPM is about 14 calls a minute, and unpaced the suite issues one every three seconds.

Changed

  • "Validated" now requires a replay twin that actually reproduced the run. check_evidence_claims.py accepted any committed twin, including one whose own cassette_audit.verdict said failed. A pass-rate figure was already refused on those grounds; the tier was not.

[0.7.0] — 2026-08-08

A security release. Five privileged paths that a bounded action could ride into an unbounded root effect, the operator approval prompt, and an audit verify that reported a check it never ran.

Security

  • The npx installer no longer stages a root-installed binary at a guessable path. (#180) writeBinary's sudo fallback wrote the payload to ${tmpdir}/sysknife-install-${pid}-sysknife at mode 0644, then ran sudo install from it. A predictable name in a world-writable directory means any local user could pre-create the file, let the installer write through it, and replace the contents before the copy — landing a root-owned 0755 binary at /usr/local/bin/sysknife. Staging now goes through mkdtemp: an unguessable 0700 directory holding a 0600 payload, removed in a finally.

  • ConfigureLogRotation is confined to /var/log. The --path argument becomes the stanza header of a config that root's logrotate acts on, so any absolute path turned a Medium-risk, Dev-tier action into scheduled root-level truncation, rename, or deletion of an arbitrary file (--path /etc/shadow with rotate 0). Enforced in packaging/sysknife-log-edit and in the daemon's validated_log_path. docs/action-reference.md already documented this confinement; only the code was missing it.

  • RemoveSwap is no longer an arbitrary root unlink. The helper charset-checked its --file and then os.unlinked it as root. Every step in between tolerates a non-swap path — swapoff runs with check=False, and the fstab rewrite is a no-op when nothing matches — so --file /etc/shadow reached the unlink and deleted the shadow file. Removal is now confined to paths the host itself reports as swap files (/proc/swaps rows of type file, or an /etc/fstab swap entry), and never a symlink.

  • Removing a kernel argument is screened, not assumed safe. Both boot-line editors checked only the add list, on the stated premise that "removing a dangerous arg is always safe". The premise inverts the risk: the dangerous move is removing a protective arg. Deleting module.sig_enforce=1 reaches the same next-boot state as adding an unsigned-module loader, which the add path already refuses. SetKernelArguments and GrubSetKargs now screen removals against the KSPP-recommended boot parameters plus the LSM selectors, with an explicit escape hatch so an argument that is itself a weakening (mitigations=off, selinux=0) stays removable. sysknife-grub-kargs-edit enforces the same list independently, since it is directly sudo-invocable.

  • A privileged child is stopped when the daemon loses the ability to read it. A next_line() error — InvalidData on non-UTF-8 stdout, which one oddly-encoded filename produces — or a failed wait() returned via ? without reaping, leaving a root process group running while the executor reported the action failed and the dispatcher considered rollback. All three sites now stop the group first. kill_and_reap takes a StopCause so a read failure is not reported to the operator as a timeout.

  • Untrusted text can no longer rewrite the approval prompt. The plan and step summaries are model-written, from a context full of host-controlled strings; the preview and result summaries carry command output. All were printed raw next to — and immediately before — the prompt. \x1b[2K\r erases and rewrites its own line, \x1b[1A walks back over the risk badge, and length alone scrolls the plan out of view before the operator answers. The new operator_text::operator_safe drops C0, DEL, the C1 range (a terminal in 8-bit mode reads U+009B as CSI, so stripping only ESC is insufficient), bidirectional overrides and isolates, and zero-width characters; collapses whitespace; and caps the rendered length. It is applied to eight sites, including the prompt string itself.

  • The audit database is created owner-only. SQLite created it 0644 & ~umask. The 0700 parent hides it in place, but the file mode travels with a backup or a cp, and SQLite derives the -wal/-shm modes from the main file, so the most recent transactions leaked through the WAL too. Narrowed to 0600 at open — tightening only, and non-fatal, so a chmod that fails on a file owned by another user cannot stop a daemon that previously started.

  • sysknife audit verify now reads the anchor it reports. verify_chain proves the chain is internally consistent and correctly signed. It cannot prove the chain is complete: deleting the newest rows leaves a shorter chain that still verifies. With no anchor configured, verify printed an honest caveat saying so. With an anchor configured it printed audit_anchor: {configured: true} and never read the anchor — leaving an operator who had set anchoring up strictly worse informed than one who had not. The cross-check now runs, its verdict appears beside the chain verdict, and a truncation or rewrite reaches the exit code. An anchor holding no checkpoints reports cannot_verify rather than consistent, because zero checkpoints trivially satisfy "every checkpoint agrees".

Changed

  • RUSTSEC-2026-0097 is no longer ignored in CI. rand 0.7.3 has left the lockfile and cargo audit exits clean unignored; an ignore for a crate that is not built protects nothing and would silently re-accept the advisory if a future bump pulled it back in.
  • client.rs documented that all daemon string output was ANSI-stripped. Only captured and streamed command output is; the envelopes deserialize straight through. Corrected, and pointed at the render-boundary guard.

Fixed

  • The planner's action catalogue is scoped per distro, so a distro-agnostic tool schema no longer produces plans the daemon will reject. (#176)
  • Published figures derive from tests/evidence/ rather than being retyped. (#177)

Known limitations

The /usr/bin/sh and /usr/sbin/runuser sudoers grants make the daemon root-capable. This is unchanged from 0.6.0 and documented in packaging/sysknife-sudoers; the security boundary is the daemon's own authorization, validation, and audit chain, not the sudoers file. Removing the grants requires ConfigureFirewall and the container/toolbox/ssh-key paths to move to root-owned helpers, and sudoers wildcards cannot substitute because sudo-rs permits * only as a final argument.

[0.6.0] — 2026-07-31

Security

  • A hung privileged action is now force-stopped on timeout, not just detected. (#142) Follow-up to #140. The daemon runs unprivileged and elevates through sudo, so it cannot signal the root child a sudo action forks; #140 detected this (ActionNotStopped) and vetoed rollback, but the work ran on. On timeout the daemon now escalates: after its own SIGTERM/SIGKILL to the process group, if the group survives as root-owned it runs a root sudo -n /usr/bin/kill -s <SIG> -- -<pgid> (reaching the root children via the existing kill grant), or rpm-ostree cancel for a transaction that runs in rpm-ostreed's own cgroup. ActionNotStopped is now a genuine last resort — the reaper actually failed — rather than the expected path for every sudo action. The same-uid path, the escalation dispatch, and the command construction are unit-tested; the cross-uid root-child termination is inherently root-only and must be validated on a live VM (per the issue's acceptance).

  • Documented the vsock bearer-token replay risk and its threat model. (#152) The vsock pre-shared token is sent in the clear as the first frame and is a replayable bearer credential: an adjacent party who can observe one legitimate connection can reuse it to authenticate as SYSKNIFE_TOKEN_ROLE and mint a fresh receipt. This is inherent to a bearer token over an unencrypted channel and cannot be closed at the application layer. SECURITY.md (new "vsock transport authentication" section) and docs/vm-daemon-setup.md now state the threat model, the operator mitigations (isolate the vsock namespace, prefer forwarding the Unix socket over ssh -L, lowest role, rotate the token), and the paths to fully close it (a nonce/HMAC challenge, or TLS/WireGuard under vsock). A code comment marks the residual risk at the auth site.

  • A stalled connection can no longer pin megabytes of memory with a false length header. (#150) FramedStream::recv pre-allocated the full claimed body (vec![0u8; len], up to 4 MiB) before reading a single byte, so a peer that announced a large body and withheld it held that memory for its whole pre-auth deadline — N such connections pinned N × 4 MiB. recv now streams the body in bounded chunks, growing the buffer only as bytes actually arrive, so a withheld body costs nothing. The pre-auth window itself remains bounded by the existing VSOCK_AUTH_FRAME_TIMEOUT_SECS.

  • audit verify warns when the daemon you administered is a different machine, even over a forwarded unix socket. (#146) Completes the partial fix in 0.5.0. Verification reads a local store, so an operator who tunnels a unix socket to another host, acts there, then runs audit verify reads their own machine's chain and sees Intact for a chain that has nothing to do with those actions. The env-only heuristic could not tell a forwarded unix socket from a local one. The daemon now reports a salted hash of its /etc/machine-id (never the raw id), and audit verify compares it to this host's. Only a mismatch is treated as decisive (different machine-id ⇒ different machine ⇒ print the caveat); a match is inconclusive — cloned VM/container images share one /etc/machine-id — so it falls back to the existing heuristic and never suppresses a warning the heuristic would raise (vsock and explicit SYSKNIFE_SOCKET still always warn). The query runs only for the unix-SYSKNIFE_LISTEN_URI case it can help, so audit verify stays offline otherwise.

  • AptAutoremove binds the deletion set the operator approved. (#151) The approval covered only the action name and empty params, but apt-get autoremove -y resolves the deletion set (which can include kernels and drivers) at run time, so the executed effect was unbound by the approval and the request hash. The preview now runs apt-get -s autoremove, shows the exact packages that would be removed (with a warning when they include kernel/driver/bootloader packages), and execution re-simulates immediately before running and refuses if the set has drifted since approval. This shrinks the unbound window from the whole preview-to-approval period down to request handling; it cannot eliminate it, because apt-get autoremove -y re-resolves the set itself at run time and cannot be pinned to a package list, so an external apt/unattended-upgrades change in that brief window is still possible (and out of SysKnife's control).

  • The audit store refuses a Postgres connection that could leak its credential to a network attacker. (#149) sqlx defaults to sslmode=Prefer, which silently downgrades to plaintext if the server declines TLS. require is no better against an active attacker: sqlx accepts any certificate under require, so a man-in-the-middle can present a self-signed cert and read the credential. Both the transaction store and the checkpoint sink now require at least sslmode=verify-ca (authenticates the certificate chain) for a connection that crosses the network, with an actionable error recommending verify-full (also checks the hostname). Unix-socket and loopback connections are exempt (they never touch the network), so local and packaged setups are unaffected. Potentially breaking: a remote audit/checkpoint URL below verify-ca (including require) now fails at startup; add ?sslmode=verify-full to the URL.

  • AddMount can no longer mount an attacker share over a symlinked critical path. (#155) op_mount checked the literal mountpoint string, then os.makedirs(exist_ok=True) and mount(8) both followed symlinks, so AddMount{mountpoint: '/tmp/x'} with /tmp/x -> /etc mounted the share over /etc. assert_mountpoint_safe now refuses a symlinked or critical-resolving mountpoint (also closing the /etc/ and //etc denylist bypasses), and op_mount materializes the mountpoint with O_DIRECTORY|O_NOFOLLOW and mounts onto /proc/self/fd/<fd> so a symlink swapped in after the check cannot redirect the mount (the TOCTOU class op_addswap also closes). op_unmount gained the same symlink refusal so a symlinked mountpoint cannot unmount an unrelated critical filesystem.

[0.5.0] — 2026-07-31

Security

Hardening from a defensive red-team pass. Each fix has an issue and a test.

  • A Dev-role caller can no longer install an attacker-controlled local package as root. (#143) apt-get install /tmp/x.deb and rpm-ostree install /tmp/x.rpm install a local file and run its maintainer scripts as root, and the install actions are Medium-risk (Dev). The package validator was the generic safe-arg, which allowed /; a strict validated_install_package now rejects paths, .deb/.rpm suffixes and globs.
  • A Dev-role caller can no longer activate a root-shell unit. (#144) Starting or enabling debug-shell/emergency/rescue yields a root shell; the activation verbs now refuse those units.
  • AddAuthorizedKey no longer follows a symlink as root. (#145) The write runs as the target user via runuser, so a planted ~/.ssh/authorized_keys symlink cannot redirect a root append into another account's files.
  • audit verify warns about a forwarded socket configured via config.toml. (#146) The wrong-machine caveat read only SYSKNIFE_SOCKET; it now resolves the socket the way the client dials it, so a SYSKNIFE_LISTEN_URI forward no longer verifies an unrelated local chain silently.
  • The MCP-registry publish workflow refuses an unmerged ref. (#147) workflow_dispatch accepted an arbitrary ref under the trusted OIDC identity; it now refuses any commit not reachable from the default branch and runs the manifest-coherence gate before publishing.
  • The swap-file helper no longer follows a symlink as root. (#148) sysknife-mount-edit creates the file with O_EXCL|O_NOFOLLOW instead of an os.path.exists check that a dangling symlink defeated.

Deferred, tracked: TLS downgrade on unverified Postgres URLs (#149), vsock partial-frame DoS (#150), unbound AptAutoremove approval (#151), vsock bearer-token replay (#152).

Fixed

  • The action timeout now contains the whole process tree, and reports honestly when it cannot. (#140) The daemon runs unprivileged and elevates through sudo, which forks, so SIGKILL to the process it spawned left the privileged work running while the deadline reported "killed". Actions now run in their own process group and the deadline signals the group (a pid-targeted floor, then SIGTERM, then SIGKILL), which genuinely stops non-privileged commands. An unprivileged daemon cannot signal a root child, so for a sudo action whose work runs as root the group cannot be force-killed; the timeout now detects that (the group probe returns EPERM, not "gone") and returns ActionNotStopped instead of a false success. Real termination of a root child needs a privileged reaper, tracked in #142.
  • A rollback is never started over an action that may still be running. A timeout marks the job failed, and a failed rollback-eligible action used to trigger rpm-ostree rollback immediately, which combined with the bug above could put two package transactions on one host. When the action cannot be confirmed stopped the daemon now skips the rollback and holds the exclusion slot, so no other mutating action can start either, until the daemon is restarted. Doing nothing is recoverable; doing both is not.
  • The timeout path can no longer hang. Every wait() on a child that may be an unkillable root process is bounded, so the timeout that exists to stop a hang cannot itself become one.
  • The timeout test asserted only that the call returned a timeout error, which is true of a daemon that gives up waiting while the work continues. It now asserts the spawned work is gone by exact argv from /proc, covers the production spawn path, pins the SIGTERM to SIGKILL escalation, and drives the rollback veto end to end through the real dispatcher.

[0.4.0] — 2026-07-30

sysknife audit verify now says why a row names no account, and refuses to credit an account it cannot prove.

Security

  • An unsigned column can no longer manufacture attribution. caller_principal enters the signed message only under chain_version = 3, so on a v1 or v2 row that column is unsigned free space. Anyone able to write to the transaction table could set it to uid:0, and the chain would still verify as Intact, because no signature covers it. The census therefore buckets rows by the encoding that signed them, not by what the column holds, and reports a principal no signature vouches for as rows_unattested rather than as an account. Losing attribution is a gap; inventing it is a lie, and the report now refuses the second even where that means saying less. The same bucket catches a value this build cannot read back as one the daemon could have written, and a row declaring an encoding this build does not know — the second of which means a newer SysKnife wrote it, so the remedy there is a newer verifier, not an incident.
  • Attribution counts are marked as claims unless the chain verified. Verification stops at the first broken row while the census spans every row read, so when the chain verdict is not intact the rows counted include any the attacker wrote — and also, usually, authentic rows, since deleting or reordering one breaks the link while leaving later signatures valid. The output says exactly that instead of implying every surplus row is forged, and it distinguishes a detected break from "this build could not check at all", which is a statement about the binary or the key rather than a finding about the rows. The new rows_censused count makes the gap against rows_checked measurable. Previously the notes stated that rows were "authentic and verified" under every verdict, including CANNOT VERIFY, where nothing had been checked.

Changed

  • The attribution report is a census, not a single number. 0.3.0 reported unattributed_rows, matching the caller_principal column against none:unattributed on any encoding. A database upgraded from an earlier release is full of v1 and v2 rows that carry no principal at all, and those were counted nowhere: unattributed_rows: 0 over such a chain read as "every action is attributed" when in fact none of them was. --json and the sysknife_audit_verify MCP tool now report rows_censused, attributed_rows, unattributed_rows, rows_without_principal, rows_unattested and rows_naming_no_account, and the human-readable output prints one summary line plus a note per reason. The distinction is operational: an attribution failure is a live SO_PEERCRED problem to chase, a row older than the column cannot be repaired at all, and an unattested principal is something to investigate.
  • unattributed_rows narrowed, on purpose. It now counts only rows whose chain_version = 3 principal is signed as none:unattributed. The same string sitting in the column of a v1 or v2 row is no longer counted there, because nothing signed it; those rows report as rows_unattested. Anyone alerting on this field should know the population changed even though the name did not.
  • sysknife_audit_verify reports chain_status. The top-level status is the worst of three checks, so a broken approval-event chain turned it broken while the transaction chain was intact, and an agent had no way to recover the chain's own verdict — which is the one that decides whether the attribution counts are findings or claims.
  • Every attribution field is nullable, and null means "not measured". When no rows were read — an unopenable store, a missing key — the counts are null rather than 0, so a database nobody could read cannot be mistaken for one where nothing was found. The MCP tool previously discarded a census that had already been computed on the cannot_verify path and published zeros, so it disagreed with sysknife audit verify --json about the same database.
  • Library API. AuditVerification::unattributed_rows: u64 is replaced by AuditVerification::attribution: Option<AttributionCensus>. The census has private fields and one constructor that reads rows, AttributionCensus::of, so a census cannot state totals that contradict the rows it describes; from_counts_for_tests exists for renderer tests and is gated behind the new test-support feature rather than merely hidden from docs. CallerPrincipal gains claim and classify, the inverse of as_signed_str: classify accepts a stored string only when the principal it rebuilds renders back to exactly those bytes, so uid:007, uid:1000:extra, uid:notanumber and token:not-vsock are refused rather than credited as accounts.

The chain format is unchanged: no row is rewritten, nothing is backfilled, and every 0.2.x and 0.3.0 row verifies exactly as before. What changed is what the report says about those rows.

[0.3.0] — 2026-07-29

The signed audit chain now records which account acted, not only which role. Schema version 3, with a real migration and no rewrite of existing rows.

Added

  • chain_version = 3 signs a caller principal. A row bound to a CallerRole could not separate two members of sysknife-admin, so the trail answered "an Admin did this" and stopped one question short of where an investigation starts. Rows now also sign caller_principal, resolved by the daemon from the same SO_PEERCRED read that yields the role and never taken from the request body. Three forms, with the scheme signed alongside the value because the evidence differs in strength: uid:<n> attested by the kernel, token:vsock for a pre-shared secret that proves possession of a file rather than an account, and none:unattributed when the daemon could establish neither.
  • The principal reaches the SIEM. Forwarded RFC 5424 events carry a principal structured-data field, taken from the signed row rather than from connection state, so an external monitor sees what the chain committed to.
  • sysknife audit verify reports unattributed_rows. A chain of rows that name nobody verifies as intact, which is true and incomplete; the count is now reported next to the verdict, in --json, and on the sysknife_audit_verify MCP tool.
  • Golden on-disk vectors for all three encodings, plus one row exercising the escape table, an absent approval id and a non-empty predecessor hash. These are the only tests that can notice an encoding drifting, because every other test signs and verifies in one process.

Changed

  • Existing audit logs keep verifying. v1, v2 and v3 rows coexist in one chain and each is re-encoded exactly as it was signed. Migration 3 adds a nullable column in both backends and backfills nothing: writing a principal into a row signed without one would change its message and report the chain as broken.
  • CallerAttribution replaces a bare CallerRole through the dispatcher, with private fields and per-transport constructors, so an attribution failure can no longer be paired with a privileged role.
  • CI lints test targets (cargo clippy --all-targets). Without it a duplicated #[test] attribute, which silently drops the test it was meant for, passed every check.

Fixed

  • A version-aliasing hazard that would have broken every existing audit log. The v2 encoder signed CHAIN_VERSION_CURRENT and version dispatch compared against the same constant, so the next encoding bump would have re-encoded every stored v2 row and reported healthy chains as unverifiable — while the unit suite stayed green, because in-memory tests sign and verify under one constant. Each generation now signs and dispatches on its own stable literal, and the stored chain_version is derived from the identity that was signed.
  • A peer outside the daemon's namespaces was signed as a real account. The kernel substitutes the overflow uid (nobody) rather than failing when a peer's uid is not mappable, and reports pid 0 when the pid is not representable. Both were recorded as kernel-attested accounts; both now record an attribution failure.
  • The missing-field break message named the newest encoding rather than the one the row declares, and reported an empty column as NULL.

[0.2.16] — 2026-07-28

A whole-repository review pass (four independent read-only reviewers, one per lens: UX, security, dead code, and drift between code and docs) followed by the fixes. Scope for this repository is now stated once and enforced: Ubuntu is the supported platform, every release from 20.04 up, and the Tauri GUI is out of scope.

Fixed

  • Ubuntu 20.04 and every interim release were refused as unsupported hosts. DistroId::is_supported() accepted exactly 22.04 | 24.04 | 26.04, and the daemon refuses every mutating action when that is false — so a user on 20.04, 25.10 or 26.10 could plan and then be told their host was unsupported. Eligibility is now all Ubuntu releases from 20.04 up, separated explicitly from VM-validation tier, which stays a narrower per-release claim.
  • The CLI never read config.toml. docs/configuration.md said the daemon and CLI both read it at startup; only the daemon did, so a configured [daemon] socket or [llm] provider was silently ignored by the CLI and by the MCP server, which shares the entry point. Startup is now synchronous up to the runtime build, because applying the file sets environment variables and that is only sound while single-threaded. Environment values still win.
  • Approval was collected before the authoritative preview was shown. The operator saw planner summaries and risk, answered "execute?", and only then did the daemon preview — carrying proposed_change, expected_side_effects and rollback_available — get printed, immediately before execution. The preview was never a decision point. Previews are now fetched and rendered first; --step-by-step confirms every step against its preview, and the default mode re-confirms HIGH risk, the one class --yes can never auto-approve.
  • Nine of ten privileged helpers were never installed. packaging/ ships twelve helper scripts and sysknife-sudoers grants ten, but make daemon-install installed only grub-kargs-edit, so sysctl, PAM, auditd, mount, fail2ban, logging, sshd-option, scheduled-job and apt-pin actions failed at execution time after a source install. A new test derives the required set from the daemon's own source, so packaging a helper without installing it now fails CI.
  • --daemon-mode=system reported success while installing nothing. The branch printed a paragraph about the Makefile and returned, leaving MCP clients configured against a daemon that did not exist; the command it printed also omitted the sudo the Makefile requires. It now returns its outcome, the wizard states plainly that the daemon is not installed yet, and the printed sequence includes sudo make install and the group-membership step.
  • sysknife audit verify read the wrong audit store on a system install. SYSKNIFE_DATABASE_PATH reaches the daemon through its unit's Environment= lines, which a CLI run by an operator never sees, so verification looked in ~/.local/state and reported the chain unverifiable on a healthy install. It now resolves the system store when no per-user store exists, says which store it read, and names the root-owned key case.
  • doctor could not recognise socket-permission denial. /run/sysknife is 0750 sysknife:sysknife and a sudo admin is not in that group automatically, so every request failed while systemctl status looked healthy. doctor now leads with the usermod -aG fix and the required re-login when the failure is Permission denied.
  • --non-interactive was documented as exiting 3, contradicting both the implementation and the exit-code table three rows below it. It is 1.
  • The MCP registry publish check verified a hard-coded old version. The snippet pinned 0.2.14 while server.json named 0.2.15, so the ownership marker could pass for an artefact that was not being published. It now reads the version from the manifest.
  • The vsock guide configured only the client, leaving the daemon on its default Unix socket so the advertised no-SSH connection could not work. The daemon-side SYSKNIFE_LISTEN_URI drop-in is now part of the procedure.

Security

  • Wi-Fi passwords were stored in the audit database. credential_keys_for covered only ProAttach.token, so a ConfigureWifi password was persisted in the preview's proposed_change and returned in preview output. It is now redacted from both params and argv. The argv rule is keyword-anchored rather than positional or value-matched, because the password <pw> pair is absent for open networks and value-matching would clobber a structural element when the SSID or the password is itself the word password.
  • A silent connection could squat an IPC slot for fifteen minutes. Each accepted connection holds one of MAX_CONNECTIONS permits and the accept loop drops new connections when they are gone, so a member of the socket group — needing no role at all — could deny service cheaply. The between-request idle bound stays 15 minutes; a connection that has not yet sent its first request now gets 30 seconds.
  • sysknife audit verify implied more than it proved. A truncated chain verifies: the retained prefix chains correctly and the walk starts from an empty predecessor. Because the packaged unit configures no independent checkpoint anchor, the default deployment cannot detect that removal, and the verdict now says so instead of letting OK be read as "nothing was removed".
  • Release-artefact trust is now documented honestly, and SYSKNIFE_PINNED_SHA256SUMS lets an operator require a digest obtained independently of the release. The installer also prints the digest it accepted. A malformed or unreadable pin aborts the install rather than degrading to a no-op.

Added

  • MCP sysknife_plan steps now carry the daemon's whole preview — current_state, proposed_change, expected_side_effects, reboot_required, rollback_available and warnings — so an agent can state what it is asking the operator to approve. sysknife_execute results carry rollback_ref, which docs/automatic-rollback.md already promised.

Removed

  • crates/sysknife-daemon/src/distro.rs, an entire duplicate distro model and parser compiled into the published daemon library with no caller anywhere in the workspace. HACKING.md §18 pointed contributors at it as the extension point for adding a distro, describing a dispatch shape that was never built; that section now documents the real routing path through sysknife-core::distro and action_family.
  • InMemoryCheckpointSink moved behind cfg(test) — it was a production-facing type documented for "tests and dry runs" with no dry-run consumer.
  • The daemon's unused direct tracing dependency.

Changed

  • Named the magic numbers in the validators and the executor. Field bounds (MAX_DNS_NAME_LEN, MAX_DNS_LABEL_LEN, MAX_PORT, MAX_FSTAB_FIELD_LEN, MAX_EMAIL_LEN, …) and tool ceilings (MAX_PASSWORD_AGE_DAYS, MAX_LOCKOUT_WINDOW_SECS, MAX_FAIL2BAN_WINDOW_SECS, MAX_JOURNAL_LINES, MAX_SWAP_SIZE_MB) now say where they come from — a standard, or the format the value is written into. Three duplications collapsed in the process: the rate-limit window was spelled 60 at each of the three sites that define what "per minute" means including the retry message, the provider adapters truncated log previews at a bare 200 in four places, and 65535 appeared in both the port validator and the executor. Values are unchanged; verified by inlining every new constant and confirming the resulting literal multiset matches the previous revision exactly.
  • Calendar-arithmetic constants (146097, 719468, 153) were deliberately left alone: they are only meaningful as part of Howard Hinnant's civil_from_days algorithm and naming them individually would obscure it.

Known gaps

  • The signed chain still binds rows to the caller's role, not to the individual account, so two sysknife-admin members are indistinguishable in the audit trail. Recording the uid means a new signed row encoding across both storage backends and is tracked in SECURITY.md rather than bundled here.

[0.2.15] — 2026-07-28

The install path was broken for every new user: npx sysknife-setup, the command the README leads with, could not fetch release metadata at all. This release exists to ship that fix, so it is worth taking even though no feature changed.

Fixed

  • sysknife_doctor over MCP reported the socket as Rust Debug. The CLI was fixed to print unix:///run/… but mcp_server.rs kept its own format!("{socket:?}"), so the two disagreed about the same value and MCP clients received Unix("/run/sysknife/daemon.sock") — not a string anything can put back into SYSKNIFE_SOCKET. The field's schema description documented that Debug form as its example, which is what an LLM reads. Caught by Glama's build harness running a real MCP client against the server, not by this repository's own tests. A test now asserts no source file in the crate formats a socket with Debug, because the same defect was introduced and then half-fixed twice.

  • npx sysknife-setup could not install anything, on any platform. The release-metadata request reused the asset-download Accept: application/octet-stream, and GitHub answers that with HTTP 415 on the metadata endpoint, so the advertised primary install path died at ✗ Failed to fetch release metadata before downloading a byte. Metadata now asks for application/vnd.github+json. Verified end to end in a clean ubuntu:24.04 container: both binaries download, SHA-256 verify, and install.

  • The wizard crashed with a raw SyntaxError on Ubuntu 22.04, whose apt install nodejs gives Node 12. engines is only a warning to npx, and a version check inside index.js could never run, because a parse error is raised for the whole module before any statement in it executes. The bin entrypoint is now a Node-12-parseable guard that explains the requirement and offers three ways to get a current Node, or to skip Node entirely.

  • --no-prompts silently installed the daemon that cannot do the job. It always answered "user service", which runs as the invoking user, while the NOPASSWD grants live in packaging/sysknife-sudoers scoped to the sysknife system user. Since the daemon reaches privileged work through sudo, an automated install produced something that answered read-only queries and failed everything else with sudo: a password is required. Unattended runs now require --daemon-mode=system|user|skip, and choosing user mode prints what will not work and how to get a daemon that can.

  • A second daemon silently evicted the first. The bind path removed any existing socket after checking only that it was a socket, never that anything was behind it, so starting the daemon twice unlinked the live socket and left the first process's clients dark with no error, warning, or log line. The path is now probe-connected first: a live daemon means refusal, a stale socket is still reclaimed.

  • Daemon startup dumped Rust Debug at operators. Binding without permission produced Error: Io("Permission denied (os error 13)") with no path and no hint, the most likely first-run failure and the worst message in the codebase. main now reports through Display, the bind failure names the directory and the uid and both ways out, and listening on … is printed only after the bind actually succeeds rather than before it.

  • sysknife doctor was the worst-informed command about the thing it exists to diagnose. It printed neither the socket it dialled (the caller had the label in hand) nor any next step, rendered sockets as Unix("/run/…"), and main re-printed the whole sentence underneath. It now reports once, names the socket as a URI, and suggests the systemd unit matching the socket's kind — user-mode first for a /run/user/… socket, and no local unit at all for vsock.

  • sysknife approve blamed a flag that does not exist. Without a TTY it returned "plan requires interactive approval but --non-interactive was set", which cannot be true: approve has no such flag. Piping or scripting it now says stdin is not a terminal.

  • Planning printed nothing for minutes without a TTY. indicatif hides the spinner when stderr is not a terminal, so an ssh or logged run was indistinguishable from a hang (173s measured). One stderr line now names the provider and model before the request.

  • A keyless environment chose Ollama without saying so, then failed against a port the user had never heard of. The fallback now announces itself and lists the keys that would override it.

  • Provider errors no longer name an internal dependency (Rig completion error:), and OpenAI auth failures name OPENAI_API_KEY instead of "your API key".

  • Authorization refusals name the group that grants the required role and the usermod command, including that it only applies to a new login. Previously they ended at "is not allowed for Observer role" — accurate and a dead end.

Changed

  • Documented the real build prerequisite, which is not the one CI implied. Every from-source path now states that a C compiler and linker (build-essential) are required, and that cmake is not. .github/ installs cmake before building this workspace, so the natural inference was that it was needed; clean-container runs disprove it — aws-lc-sys builds from gcc alone, and the only hard failure is error: linker cc not found with no compiler at all. Build time is stated too: 6m56s on Ubuntu 24.04, 11m43s on 22.04, about 400 crates.
  • docs/quickstart.md is now the canonical install page, and README and docs/mcp.md link to it instead of carrying their own slightly different sequences. docs/mcp.md's "Build the binary" is relabelled as the alternative it always was, not step 4 of 5.
  • apps/sysknife-cli/README.md — the page crates.io renders, and therefore what someone arriving from the MCP Registry reads — now leads with the fact that the crate is half of SysKnife: it plans and dry-runs, and executing needs the privileged daemon.
  • README carries the Glama server-score badge (currently license A, quality A, maintenance B). The badge stopped being a generic placeholder once the server had a Glama release built from its own Dockerfile spec.
  • The setup wizard's target prompt says "Target" rather than "VM Target" and leads with this machine, since the documented headline case is a local install. Its socket-unreachable hint now matches the socket's kind rather than always naming the system unit.
  • scripts/check_release_versions.sh covers both server.json version fields, so a release cannot bump the crates and leave the registry listing pointing at a version whose README the validator will not fetch.
  • docs/mcp-registry.md records the two-call crates.io check that proves the marker is live in a given published version, rather than only present in the repository.

Added

  • server.json at the repository root: the manifest published to the official MCP Registry under io.github.lacs-project/sysknife. It lists the cargo package sysknife-cli with mcp-server as a positional argument, which is what the registry's cargo validator and mcp-publisher validate accept. No new package and no version bump: the ownership marker has shipped in the crate README since 0.2.6, so the already-published 0.2.14 crate is what gets listed.
  • tests/release/registry-manifest.test.sh guards the listing. The failure it exists for is quiet: the validator proves ownership by searching the crate's rendered crates.io README for a plain-text mcp-name: token, and crates.io strips HTML comments when rendering, so moving the marker into a comment or dropping it during a README rewrite breaks the next publish with nothing in the repository looking wrong. The test also pins the registry type, base URL, transport, crate identity, and the mcp-server argument. It runs in CI and in the release preflight.

[0.2.14] — 2026-07-28

Added

  • .codex-plugin/plugin.json — the manifest Codex plugin directories read to list SysKnife. hashgraph-online/awesome-codex-plugins fetches this repository's default branch and fails a listing PR when the manifest is absent, which is exactly what was blocking their #327. It carries the required identity, licence and interface fields, and a composerIcon pointing at the committed 16KB assets/raster/sysknife-256.png.
  • .codex-plugin/mcp.json declares how to launch the server, with no env block: credentials come from the environment, and a tracked manifest holding a placeholder API key is an easy way to commit a real one by accident (the root .mcp.json is gitignored for that reason). command is the bare sysknife so it resolves from PATH after any supported install.

Changed

  • scripts/check_release_versions.sh covers the plugin manifest, so a release that bumps the crates but forgets it fails CI instead of leaving a plugin directory advertising a version that was never shipped.

No behaviour change to any binary; this release exists so the published version and the manifest a directory reads agree.

[0.2.13] — 2026-07-27

The last item v0.2.12 deferred: the audit chain could say what was authorised, but not who asked for it, and nothing signed recorded that an approval ever happened.

Added

  • caller_role is now part of the signed chain content. Every transaction row commits to the privilege tier the daemon resolved for the connection that requested the action (from SO_PEERCRED, or the vsock token — never from the request body). "Which role asked for this" is the first question any audit of a privileged action starts with, and until now no signed record answered it.
  • An approval-event chain. approval_granted, approval_consumed and approval_revoked are recorded in a second forward Ed25519 chain under its own domain tag, each event committing in the same database transaction as the state change it records. Previously these lifecycle facts lived only in transaction_approvals, a plain mutable table: deleting a row left sysknife audit verify reporting Intact, so the record that a privileged action had been approved was the one part of the trail that could be erased without leaving a mark.
  • Cross-chain binding. Each transaction row signs the approval-event chain tip as of its insert. Deleting events from the end of the event chain leaves a self-consistent remainder that the chain walk cannot see; the committed tip catches it. Because checkpoints anchor the transaction chain, this extends off-host anchoring to the event chain without a second sink.
  • sysknife audit verify reports all three checks and fails on any of them. A detected tamper (exit 1) outranks an inconclusive check (exit 2), so a broken chain is never reported as "could not verify". The MCP sysknife_audit_verify report gains events_checked, approval_events_status and binding_status, and its top-level status is now the worst of the three rather than the transaction chain alone.

Changed

  • Schema version 2, with a real migration. Rows carry a chain_version column and verification reproduces the exact encoding each row was signed under, so a chain written by v0.2.12 or earlier still verifies after the upgrade and new rows append onto it in the same walk. Backfilling the new fields instead would have changed every historical message and reported the whole chain as broken — an upgrade that looks identical to a compromise. The SQLite backend gained an ordered migration list mirroring the Postgres one; its previous CREATE TABLE IF NOT EXISTS batch had no way to express "add a column to an existing database".

  • CallerRole::as_str replaces format!("{role:?}") for anything that is written down. Debug carries no stability promise, and this string is inside a signature.

  • TransactionStore::revoke_unconsumed_approval and claim_approved_for_execution now require the signing key and refuse on a read-only store, since both append to the event chain.

  • PlanningError::Provider carries a ProviderError instead of its rendered string. The shell recovered the classification by searching that string for "429" and "http", so editing a #[error(...)] format string in provider.rs could silently reclassify a rate limit as a parse error. The three planner tests that all asserted Provider(_) now assert the variant.

  • New TransactionId and ApprovalReceipt newtypes. DaemonClient::execute(transaction_id, action_name, params, approval_receipt, …) took three bare &str in a row, so transposing two of them compiled and surfaced at runtime as a stale-approval error — which reads like an expiry, not a call-site bug. ApprovalReceipt is a bearer credential, so its Debug is redacted and it has no Display; the one place it is meant to be printed calls as_str() explicitly. The MCP wire structs keep plain strings so the published JSON Schema is unchanged.

  • Tests for three paths that had none: the MCP server over real stdio JSON-RPC (initialize → tools/list against the spawned binary — everything else called the handlers directly and skipped the wire), the approval gate run_intent actually runs, and PostgresCheckpointSink against a live database. The last one immediately caught a real bug: fetch_chain_rows_from_pool still selected the pre-migration column list, so every Postgres chain read would have failed with "no column found for name: chain_version". Both backends now build that list from one constant.

Fixed

  • The MCP server introduced itself as rmcp. Implementation::from_build_env() resolves CARGO_PKG_* at the crate where the macro expands, which is rmcp, so initialize reported the name and version of the transport library rather than of SysKnife — the string clients and registry listings display.
  • describe had no authorization check. It renders the exact command an action would run, so any caller could enumerate the argv of every privileged action on the host. It now applies the same authorization gate and platform fence as preview; an unknown action is still a validation_failure.
  • query_action had no platform fence. A Fedora-only read-only action reached the executor on a Debian host and failed as "rpm-ostree: No such file or directory" instead of the clean unsupported_platform refusal preview and execute return.
  • [policy.risk_overrides] no longer leaks into the platform fence. Whether an action mutates the system is a property of the action; the fence now reads the compile-time baseline. Previously, raising a read-only action's required role also made that read fail whenever the host distro could not be detected.

[0.2.12] — 2026-07-27

Follow-up to the v0.2.11 review sweep: the findings that release deferred.

Added

  • The daemon now anchors signed audit checkpoints. The machinery was complete and tested but inert — nothing ever called sign_checkpoint or a CheckpointSink, so tail-truncation detection and rewrite-by-a-key-holder detection were only active if an operator ran sysknife audit checkpoint on a timer of their own. Set SYSKNIFE_CHECKPOINT_DB to enable it; when unset the daemon now says so at startup rather than letting a documented guarantee look active while it is off. The anchoring rules (refuse a chain that does not verify, read back after writing, re-verify every anchored checkpoint) live in one anchor_once shared by the CLI and the daemon.

Security

  • Plan::assume_authorized — the one hole in the type-level guarantee that the approval gate can never see the LLM's self-reported risk — is now behind a test-support feature, so constructing an AuthorizedPlan from unvalidated risk is a compile error outside tests.
  • NewTransaction.approval_id was a public field used verbatim at insert. That value is chain-hashed and then treated as evidence that an approval happened. It is no longer settable; the commitment is always derived by the store.

Changed

  • CallerRole derives Ord from its declaration order and the hand-written role_rank is deleted — one encoding of privilege order instead of two.
  • ApprovalDecision::ExceedsCeiling carries the ceiling it matched, removing two .expect()s that re-derived it at the call sites.
  • The four proto-bridge From impls are exhaustive matches rather than an i32 round-trip with .expect(), so a drift from the .proto is a compile error instead of a panic inside a root process.
  • JobStateMachine is removed. Production calls the free allowed_transition; the struct was dead code whose ten tests read as coverage of the live transition logic. The table is now tested directly and exhaustively.

Fixed (test coverage)

  • The transient_infrastructure_failure deny paths had no test at all, so a refactor turning an Err arm into an implicit allow would have been an invisible approval-boundary bypass. Approve-on-a-failing-store is now covered, including that the transaction stays Queued.
  • Preview is pinned as never reaching the executor.
  • New coverage for revoke_unconsumed_approval (including that a consumed receipt cannot be retracted), approving a non-Queued transaction, two concurrent claims on one approval, truncated frame header/body, authorized-keys traversal through build_action_spec, malformed IPs, signal-killed exit codes, --timeout, audit verify exit code 2, and the remaining ProviderError variants.
  • resolve_caller_role_on_pair_does_not_panic discarded its result and would have passed if the function returned Boot for everyone; it now derives the expectation from the same inputs the daemon uses.
  • inserted_forged_row_breaks_chain accepted seq == 2 || seq == 3 against a deterministic fixture. Pinned to 2.

[0.2.11] — 2026-07-27

Findings from a full review of the daemon, the CLI/MCP surface, and the Ubuntu action set, with the Ubuntu commands validated against a real Ubuntu 24.04 VM.

Security

  • RemoveAuthorizedKey no longer builds a regular expression from the caller's key. It deleted the approved line with sed -i '\|^KEY$|d', which made the public key a basic regular expression: ssh-ed25519 .* passes every check in validated_public_key and then matched and deleted every ed25519 key in the file. sed exits 0, so the job recorded Succeeded and the signed audit summary read as a routine single-key removal. Both key operations now use grep -Fxv with the key passed as a positional argument. Blocklisting regex metacharacters was not an option: . is legal in a key comment.
  • GrantSudoAccess can no longer mint user ALL=(ALL) NOPASSWD: ALL, a standing passwordless root credential. The unrestricted-plus-passwordless combination is refused by both the daemon and the helper; scope the commands or keep the password prompt.
  • The vsock token file's permissions are now checked, mirroring the Ed25519 signing key. A token written under a default umask lands at 0644, and any local user who could read it could authenticate over vsock.
  • validated_apt_package was the only validator without a leading-dash guard, so a package name could reach a command in flag position.

Fixed

  • Every mutating apt action failed on a real Ubuntu host. The code sent a bare apt-get while the packaged sudoers grant spells /usr/bin/apt-get; sudo PATH-resolves only its primary command and matches later tokens literally, so the rule never applied and apt fell through to "a password is required". ConfigureWifi had no nmcli grant at all. Both are covered by a test that re-implements sudo's matching rule against the packaged file.
  • The PostgreSQL backend signed a malformed timestamp into every audit row. now_iso() omitted %S, producing 2026-07-27T12:34:.567Z.
  • Two concurrent apt actions could collide on the dpkg lock. The concurrency gate only engaged for High-risk reboot-required actions, so AptUpgrade claimed nothing. The gate is now keyed by the system lock an action actually holds, derived from its argv. Actions holding no shared lock are no longer serialised behind a long apt run.
  • Privileged child processes had no deadline. A hung command wedged its connection forever and never released its lock. Now bounded, killed and reaped; override with SYSKNIFE_ACTION_TIMEOUT_SECS.
  • dispatch_loop had no idle timeout, so an Observer-tier caller could hold every connection slot with silent sockets and lock out approvers.
  • The async daemon client had no socket bounds (only the sync path did), so a live-but-silent daemon froze the CLI and any MCP session with it.
  • emit_via_systemd_cat leaked a zombie per audit record when the pipe write failed — one PID per preview and execute until the process table filled.
  • mergeMcpServers treated an unreadable config the same as malformed JSON and then overwrote it, discarding the user's other MCP servers.
  • The unattended-upgrades helper was missing NEEDRESTART_MODE=a.

Changed

  • The concurrency invariant that a reboot-required action must be gated was a debug_assert!, compiled out of released binaries; it is now a fail-closed runtime check.
  • tests/e2e/ubuntu-command-validity.sh checks that the commands SysKnife would run on Ubuntu exist and parse. Against Ubuntu 24.04.4: 33 pass, 0 fail, 2 skipped (auditd and fail2ban are not installed on a server image).

Documentation

  • Corrected comment rot the review surfaced: the audit-chain formula omitted its ROW_DOMAIN prefix (an independent verifier copying it would never reproduce a valid signature); the journald watermark documented a 64-char SHA-256 hash where the field is a 128-char Ed25519 signature; the journal module stated FSS tamper protection as automatic when it is opt-in; an MCP test comment credited the approval interlock to advisory prompt text rather than the receipt check that enforces it; and apt.rs described a fuser /var/lib/dpkg/lock pre-flight that never existed.

0.2.10 — 2026-07-24

Security

  • Unix caller-role resolution now pins the connecting peer with a pidfd (SO_PEERPIDFD, Linux 6.5+ / Ubuntu 24.04+) and confirms it was not reaped before trusting the supplementary group set read from /proc/{pid}/status, closing a PID-reuse race on that read. The uid/gid/pid from SO_PEERCRED were already race-free; on older kernels (Ubuntu 22.04) the read stays best-effort, exactly as before.
  • Removed a stale, unused apps/sysknife-shell/pnpm-lock.yaml that still pinned postcss 8.5.10 and kept a high-severity advisory open. The GUI is built with npm (package-lock.json, already on postcss 8.5.20); nothing referenced the pnpm lockfile.

Changed

  • Planner risk is now type-enforced as authoritative at the approval gate. A raw Plan (LLM output) exposes only proposed_risk_level(); the CLI converts it to an AuthorizedPlan — substituting the daemon's ActionSpec risk, the single source of truth — before any gate, and only an AuthorizedPlan's steps expose the risk_level() the gate reads. This makes it structurally impossible to auto-approve against the model's proposed risk, reinforcing the v0.2.7 runtime fix at the type level. No behavior change.
  • Supply-chain hardening: the Dockerfile base images are pinned by manifest-list digest (not just tag), and the GitHub Pages docs workflow now verifies the sha256 of the mdBook and mdbook-admonish release tarballs before extracting them. Dependabot continues to bump both.

0.2.9 — 2026-07-23

Security

  • Destructive user/group actions (DeleteUser, LockUserAccount, DeleteGroup) now reject critical accounts and groups (root, sudo, wheel, core system accounts, uid/gid 0) via a hard denylist, independent of the approval gate.
  • The GRUB kernel-argument allowlist now blocks Ubuntu LSM / mitigation-disable arguments (apparmor=0, mitigations=off, lockdown=, pti=off, nosmap, nosmep) in addition to the SELinux ones.
  • The snap install and fail2ban action builders now validate their arguments in the constructor (defense in depth), not only at the executor boundary.
  • Five High-risk actions (ConfigureFirewall, SetDnsServers, ConfigureWifi, MaskService, CreateUser) now render accurate lockout / interception / privilege warnings and require exact-name approval, instead of a generic "service interruption" preview.
  • A config.toml that is present but unparseable now fails loudly instead of silently falling back to defaults (which would have dropped [storage] / [policy] — a silent security downgrade).

Fixed

  • npx sysknife-setup's approval gate is no longer broken by default. The wizard-installed user daemon now binds the same socket the CLI resolves with no environment set (%t → $XDG_RUNTIME_DIR/sysknife/daemon.sock), so sysknife approve works in a fresh terminal without exporting anything.
  • The default LLM rate limiter no longer silently disables itself on a fresh install (its state directory was never created, so writes failed open).
  • Preview rollback_available is now honest: six Debian-family actions (AddPpa, RemovePpa, NetplanSet, GrubSetKargs, ProAttach, ProDetach) no longer advertise an automatic rollback that never ran; a workspace-wide invariant test enforces rollback_available ⇔ a real rollback command exists.
  • Ubuntu derivatives (Linux Mint, Pop!_OS, …) are now recognized via ID_LIKE, so apt / snap / ufw actions route correctly instead of being rejected as an unknown distribution.
  • SQLite transaction status updates are now atomic (compare-and-set), matching the PostgreSQL backend.
  • UFW application profiles containing spaces (Nginx Full, Apache Full) are now accepted.
  • The MCP server now applies the same distro-routing guard as the CLI, and LLM provider errors are no longer misclassified (e.g. "generate" → "rate limit").

Added

  • scripts/ci-local.sh and a .githooks/pre-push hook that mirror the CI jobs locally, so failures are caught before pushing (saving GitHub Actions minutes). Documented in the developer guide, alongside act for full Docker-based workflow replay.

Changed

  • Documentation drift corrections: socket / database defaults (cli.md, configuration.md), the vsock token walkthrough, the Ubuntu action reference (netplan mechanism and added actions), the Observer action count, ADR-0002's provider count, and others. Hardened the invisible-Unicode sanitizer and the provider error-message redactor.

0.2.8 — 2026-07-23

Security

  • Bumped the transitive postcss dependency of the sysknife-shell GUI to >= 8.5.12 via an npm overrides pin, resolving a high-severity advisory (arbitrary file read / information disclosure via an attacker-controlled sourceMappingURL in CSS comments).

Fixed

  • The CLI (and the MCP server) now resolve the daemon socket via sysknife-core's default_listen_uri() — the same resolver the daemon and the Tauri GUI already use — instead of a hardcoded production path. Previously sysknife doctor and every CLI command failed to reach a dev/non-systemd daemon until SYSKNIFE_SOCKET was set by hand. $SYSKNIFE_SOCKET still takes precedence as an explicit override. Thanks to Raúl Cárdenas for the report.

Changed

  • Dropped backwards-compatibility cruft (the project has never been deployed at scale, so matched versions are an invariant): the dead fail2ban InvalidIpAddress type alias, the --codex-only setup-wizard flag alias, the install-key VM-script alias, the ubuntu-vm "legacy noble" migration shim, and a phantom /tmp/sysknife-daemon.sock path in the setup wizard.
  • Documented the SYSKNIFE_SOCKET override and corrected stale daemon socket-default text ($XDG_RUNTIME_DIR/sysknife/daemon.sock, not /tmp/sysknife-daemon.sock) in the developer and architecture docs.
  • Internal simplification of the CLI risk-gate/socket module and the daemon preview gate (de-duplication and named constants); no behavior change.

0.2.7 — 2026-07-23

Security

  • The CLI's --yes / --max-risk auto-approval now derives each step's risk from the daemon's ActionSpec (the single source of truth) instead of the planner's proposed risk, so a plan that under-rates an action can no longer let it auto-approve. A fail-closed guard also aborts before execution if the running daemon rates a step higher than the CLI approved it — closing a CLI/daemon version-skew window.

Changed

  • Preview reboot_required / rollback_available are now derived from the ActionSpec, fixing stale display for RollbackDeployment, AddPpa, RemovePpa, and GrubSetKargs.
  • Twenty-four apt / PPA / snap / GRUB / AppArmor / Fail2ban / resolvectl / Flatpak actions that previously previewed as "unclassified" now show accurate side effects and warnings; a completeness test prevents the drift from recurring.

Added

  • Dependabot now tracks Docker base images and applies a supply-chain cooldown to version updates; repository vulnerability alerts and automated security updates are enabled.

0.2.6 — 2026-07-23

Security

  • Per-action risk is now single-sourced on each action's ActionSpec. The preview/approval gate and the RBAC role table derive risk from it and are consistency-tested for every action, so they can no longer silently diverge from the documented risk. Consolidating the sources surfaced and fixed five actions the gate had been treating as auto-approvable Medium despite being High: ConfigureFirewall, CreateUser, SetDnsServers, AddPackageRepository, and MaskService now correctly require High-risk, exact-name approval.

Changed

  • Reclassified twelve actions against common sysadmin practice — raised AddAuthorizedKey, RemoveAuthorizedKey, AddPpa, VacuumJournal, ConfigureWifi, and AptAutoremove; lowered RenewCertificates, CreateGroup, AddAuditRule, CreateLvSnapshot, CreateLogicalVolume, and SetServiceResourceLimits.
  • Documentation risk levels and action names are aligned with the code, and the demo assets were corrected to match.
  • The Code of Conduct now lists the project contact address.

Added

  • Glama MCP registry listing support (Dockerfile and ownership marker).
  • Documented cargo-based MCP Registry publishing, with per-crate READMEs.

Fixed

  • Corrected the social-preview image URL.
  • Repaired a broken intra-doc link and de-flaked the CI markdown link check.

0.2.5 — 2026-07-23 (first public release)

Added

  • MCP server exposing five tools — sysknife_plan, sysknife_execute, sysknife_history, sysknife_doctor, sysknife_audit_verify — for Claude Code, Cursor, and Codex CLI.
  • Hard, server-enforced approval interlock. sysknife_execute requires a one-time, TTL-bounded approval receipt bound to the exact plan step. The MCP server cannot mint receipts; only sysknife approve <transaction-id> in a real terminal can. Missing, expired, mismatched, or replayed receipts are rejected by the daemon.
  • Structured history IPC — sysknife_history returns typed records (timestamp, risk level, status) over the daemon socket instead of parsed text.
  • Daemon cancel verb — cancels a queued transaction (Queued → Canceled); in-flight transactions are never interrupted.
  • PostgreSQL audit backend with transactional schema migrations (advisory-locked, idempotent) and a live Postgres CI contract, alongside the default SQLite store.
  • Ubuntu 24.04 support — gate + audit validated on a live VM; VM tooling and smoke tests for 22.04 / 24.04 / 26.04.
  • Release provenance — SPDX SBOM and build-provenance attestations on release binaries (x86_64 + aarch64), with idempotent npm / crates.io / GitHub-release publishing.
  • npx sysknife-setup onboarding wizard: downloads a checksum-verified binary and writes MCP config for Claude Code, Cursor, or Codex CLI.
  • Security CI: CodeQL (Rust + TypeScript), OpenSSF Scorecard, verified-only secret scanning, cargo audit, npm audit, and dependency review.

Changed

  • Approval no longer uses max_risk as a surrogate; execution authorization is a per-step receipt independent of risk level.
  • All third-party GitHub Actions are pinned to full commit SHAs.
  • Documentation and public claims are machine-checked in CI.

Security

  • Audit chain is Ed25519-signed; verification needs only the public key (non-repudiable, third-party verifiable), with signed checkpoints guarding against truncation.