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.
ProSecurityStatusreports 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 neitherAptUpgradenorProDetach. Issue #679.
- A pull request that changes production code adds its changelog entry as a fragment.
(#878) The author writes
changelog.d/<slug>.mdwith the section on the first line, andscripts/bump_version.shfolds the files intoCHANGELOG.mdwhen a release is cut.docs-and-hygienerefuses a pull request that touchescrates/*/src/,apps/*/src/,packages/orpackaging/without one, andchangelog.d/README.mdhas the format (closes #876).
- A
rememberorforgetcall in the same turn aspropose_planis no longer dropped. (#744) The planner returned as soon aspropose_planparsed, so a model that sent a plan and aremembercall in one turn produced a correct-looking plan and never queued the preference. The planner now holds the valid plan, queues therememberandforgetcalls that follow it, and returns the plan with those changes after the loop. The CLI still writesprefs.mdonly after the operator confirms. Any other call that follows the plan stays ignored, so arefuseafter a valid plan does not replace it (closes #673). Thanks to @dannyward630. --jsonoutput 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 asExecuting 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--jsonrow and the schema block indocs/cli.mdlist the new event (closes #664). Thanks to @yuee3.- The setup wizard probes the daemon socket without
nc. (#772) The wizard rannc -zUto learn whether a daemon was listening, so on a host without netcat it printedDaemon socket not reachablefor a daemon that was running, and a run that skipped the daemon install because one already existed ended onSetup incompletewith exit code 3. The probe is now a short Node subprocess that opens the socket with the built-innetmodule and sends no data. It keeps the 2 s limit and the skip forvsock://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 checkslengthfirst, returnsStopReason::MaxTokenswith any partial text, and drops the incomplete tool calls, so the planner ends withplanner ended without proposing a plan.docs/cli.mdtells 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-runreports 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-riskceiling and the distro check, so a pre-flight such as--dry-run --json --max-risk lowaccepted plans the real run refuses. A dry run now prints the plan, then applies both checks and exits1for a step above--max-riskand4for 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.mdstates the exit codes (closes #561). Thanks to @yuee3.
curve25519-dalekmoves 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 withtarget-cpu=nativeor an explicitavx512cfg. 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 throughed25519-dalek, which signs the audit chain.
- Dependency bumps:
rusqlite0.43.0,clap4.6.9,rmcp3.11.0,url2.5.9 andcookie0.18.3. (#855, #853, #864)cargo audithad failed onmainsince 2026-11-24 with RUSTSEC-2026-0592 (url2.5.8, stack overflow inUrl::origin()on nestedblob:URLs) and RUSTSEC-2026-0594 (cookie0.18.1, private cookie nonces can repeat in processes that fork), which turned the requiredsecurity-auditcheck red on every pull request. Both lockfile bumps are in.rusqlite0.43.0 keeps the bundled SQLite at 3.54.1, and the root and fuzz lockfiles now move together.rmcp3.11.0 answersprompts/listandcompletion/completewith method-not-found; the SysKnife MCP server never advertised either. GitHub Actions pins, the markdownlint toolchain and theoss-fuzzbase image digest moved with the same batch.
- The no-provider notice says how a provider gets selected.
(#860) The notice printed before a
planning run told users to set
OPENAI_API_KEYorGEMINI_API_KEY, and neither selects a provider: auto-detection reads onlyANTHROPIC_API_KEY, so a user who followed the notice stayed on Ollama. The notice now says thatANTHROPIC_API_KEYselects Anthropic and that any other provider needsSYSKNIFE_LLM_PROVIDERtogether with its key, with OpenAI and Gemini examples, anddocs/cli.mdgives the same examples (closes #859). Thanks to @Daytonrad. UnattendedUpgradesStatusno longer reports a stopped timer's last run as its next run. (#861) systemd 259 (Ubuntu 26.04) prints-in the NEXT column ofsystemctl list-timersfor a timer with no next run, where earlier releases printn/a. The parser read only then/aform, so a pausedapt-daily-upgrade.timershowed 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
401and429digits. (#862) The error fallback in the OpenAI and rig adapters searched the message for the digits401and429, so a port such as:4290or thecolumn 401of a JSON parse error was read as an authentication failure or a rate limit. It now matches the whole wordsunauthorizedandtoo 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 nginx401 Authorization Requiredpage behindOPENAI_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
includeandexcludethe way Cargo does. (#843)package-license.test.shdecided with Python'sfnmatchwhether a crate'sincludeorexcludelist drops the LICENSE, andfnmatchdisagrees with Cargo's gitignore-style patterns on the common spellings:exclude = ["/LICENSE"]passed the check while the crate shipped without the licence, and a correctinclude = ["/LICENSE", ...]failed it. Thanks to @bfs2021. - The test-reachability check names uninvoked tests in both suites in one run.
(#846)
set -eendedscripts/check_test_reachability.shat the first failing suite, so whentests/releaseandtests/e2eeach held an unwired test, the second appeared only on the next CI run. Thanks to @MaxonT.
- The Debian and Ubuntu planner names
sudoas the administrator group. (#817) The only group example in the shared parameter block waswheel, 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 (wheelon Fedora,sudoon Debian and Ubuntu), the Debian and Ubuntu selection rules name the administrator group, and thepropose_planparameter description follows the same split (closes #650). Thanks to @laurentvv. audit verify,audit exportandaudit checkpointno longer write to the store they read. (#816)TransactionStore::open_read_onlycalledinitialize(), which creates tables, applies pending migrations and setsjournal_mode=WAL, so sidecar files appeared beside a read-only artifact, a newer CLI migrated an older store, and a0400copy 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_planover MCP. The connect timeout is 10 s and the request timeout 600 s, overridable withSYSKNIFE_PROVIDER_CONNECT_TIMEOUT_SECSandSYSKNIFE_PROVIDER_TIMEOUT_SECS(zero and unparseable values are ignored). A timeout is a retryable provider error (closes #674). Thanks to @Omair-Asdaq. RemoveMountdrops the fstab entry of a mountpoint whose directory is gone. (#826)umountreportsno mount point specifiedfor 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_SECSfor the whole test process, so every otherexecute_spectest ran under it. They now pass their own one-second deadline toexecute_spec_with_options, and process cleanup reports the deadline that fired. The environment override moved toparse_action_timeout, which has its own test (closes #473). Thanks to @QinXi-ai. check_test_reachability.shno longer counts a test that cannot run. (#813) A workflow step switched off by an expressioncontinue-on-error, a custom shell, or a skipped upstreamneedsjob still satisfied the gate. The checker now resolves the effective shell across step, job and workflow defaults, walks direct and transitiveneeds, and fails on a reference to a job that does not exist. The npm-audit guard applies the same fail-closedcontinue-on-errorrule (closes #765). Thanks to @Aaqibhafeezkhan.- The Dependabot coverage guard sees suffixed container files.
(#822)
dependabot-coverage.test.shonly matched names that start withDockerfileorContainerfile, soassets/demo/audit-tamper.Containerfilehad no Dependabot entry and the guard stayed green. The rule now matches a dot-separated prefix, anddependabot.ymlgains the/assets/demodocker 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-execinterpolated every selected provider key into the remote command, where the process list shows it. The harness now streams the environment and the story arguments tobash -sover SSH stdin, so the remote command is a constant, andvm-env-secrets.test.shdiscovers every SSH harness, checks its remote commands and runstest-execagainst 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.ymldownloadedmcp-publisherfromreleases/latestin a job that holdsid-token: write. It now fetches v1.8.6 and checks the archive's SHA-256 before extracting it.pinned-dependencies.test.shscans every workflow file instead of three, refuses areleases/latest/downloadURL, 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.
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--jsonreturns 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_previewsputs 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. UnattendedUpgradesStatusreports the apt unattended-upgrades state. (#807) The read-only action shows whetherAPT::Periodicupdates and unattended upgrades are enabled, theapt-dailytimer 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 reportunknownwith the reason (closes #680). Thanks to @dannyward630.
npx sysknife-setup --uninstallkeeps 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.shreads the directory fromcargo metadata, uses it for the daemon, puts its CLI ahead of any oldersysknifeonPATHand 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_doctorover MCP agrees withsysknife audit verify. (#791) The quick check mapped the verifier's exit code directly, so an empty unanchored chain readintactwhere the CLI answers CANNOT VERIFY. It now folds in the checkpoint anchor, reportscannot_verify(the word the CLI uses, replacingunknown) and adds a warning that names why an anchor could not be confirmed (closes #556). Thanks to @yuee3.sysknife doctorcontinues past a missing provider key. (#762) The command stopped at the missing key before it contacted the daemon, and--jsonprinted nothing. It now checks the daemon first, reportsproviderandmodelasunknown, and lists the error underwarningsin 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 auditreads 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 verifyandaudit checkpointnow read and anchor the Postgres chain, a deleted tail is reported astruncated, and a live contract test runs inpostgres-contract(closes #558). Thanks to @Georgefifth.GrubSetKargsno longer refuses every edit on Ubuntu desktops that shipkdump-tools.cfg. (#806) The helper accepts a snippet that extendsGRUB_CMDLINE_LINUX_DEFAULTitself 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-catcan 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-setupasks git whether secret files are ignored and hides the API key. (#748) The wizard usesgit check-ignoreinstead of matching.gitignoretext, 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)
GetAuthorizedKeysandAddAuthorizedKeyresolve the home from the account, open.sshwithO_DIRECTORY | O_NOFOLLOWand openauthorized_keysrelative to that descriptor, so reads and writes apply the same home and symlink rules (closes #670). Thanks to @dannyward630.
rmcpmoves from 3.8.0 to 3.9.0. (#768) RUSTSEC-2026-0462 (unbounded response body buffering in Streamable HTTP clients) failedcargo auditonmain, and the requiredsecurity-auditcheck with it.sysknife-clibuildsrmcpwith theserver,macrosandtransport-iofeatures only, so the Streamable HTTP client code is not compiled into SysKnife. The bump is a lockfile change.
sysknife plan --jsonneutralises 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.
- Dependency updates.
(#759,
#760)
rusqlitemoves from 0.40.2 to 0.41.0, and the minor and patch group bringsasync-openai0.42.3 with updates touuidandrmcp.
RemoveMountkeeps the/etc/fstabentry when the unmount fails. (#763) Whenumountfailed, for example withtarget is busy,sysknife-mount-editstill dropped the entry and reported success while the filesystem stayed mounted. It now stops withumount's error and leaves the entry in place. A target that is already unmounted (exit 32 and a singlenot mountedline, read underLC_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_planstoredsummary,explanationand every step summary as the model wrote them, so bidi overrides, zero-width characters and ANSI sequences reached the--jsonoutput. All three now pass throughnormalise_operator_text, the same normalisationparse_refusalalready 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 }}orcontinue-on-error: truenow failsdocs-and-hygiene(closes #652). Thanks to @QinXi-ai.
- A release tag must point at a commit on
mainwhose CI passed. (#700) The release workflow's first job now refuses a tag whose commit is not an ancestor ofmain, and refuses one without a completed, successfulcipush 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 aftercifinishes on the release commit (closes #553). Thanks to @dannyward630.
RemoveSwapkeeps a swap file that is still in use. (#698) Whenswapofffailed,sysknife-mount-editwent on to drop the/etc/fstabentry and delete the file. It now stops and leaves both in place when the file is still listed in/proc/swapsor/proc/swapscannot be read, and reportsswapoff'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 returnsInvalidParamfor a present value of the wrong type, and still treats an explicitnullas absent (closes #668). Thanks to @dannyward630. - The Ubuntu prompt calls
AptAutoremovemedium risk, as the daemon does. (#695) Two lines of prose taught the model LOW while the prompt's own risk table and the daemon'sActionSpecsaid MEDIUM.prompt_risk_labels.rsnow 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
SetNtpwith{}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.
- Fuzz targets for the trust boundary, run by ClusterFuzzLite on pull
requests.
fuzz/holds cargo-fuzz targets for thevalidated_*functions, action-parameter decoding throughbuild_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.ymlrun the targets for five minutes on pull requests that touchcrates/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. WithoutDESTDIRthe install behaves as before.
- Every commit in a pull request needs a DCO sign-off. A new required
check,
dco, runsscripts/check_dco.shover the commits a pull request adds and fails any without aSigned-off-by:trailer from its author.git commit -sadds 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: readand nothing else. - The release workflow keeps the crates.io token off the command line.
cargo publishread 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.shfails any workflow that expands a secret outside atest -npresence 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.shfails 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.jsonrecords that GHSA-wrw7-89jp-8q8g (RUSTSEC-2024-0429) does not affect the released binaries, andtests/release/vex.test.shrechecks that againstCargo.lock. Dependabot now opens version updates forfuzz/,.clusterfuzzlite/,tools/ci-nodeandtools/ci-pythontoo. - CONTRIBUTING.md says what a reviewer checks before a pull request is accepted.
-
Published crates and the npm package carry the licence text. crates.io and npm build each tarball from the package's own directory, and
LICENSEsat only at the repository root, sosysknife-cli-0.28.0.crateandsysknife-setup@0.28.0shipped alicense = "MIT"field with no licence file. Each package directory now holds a copy, andtests/release/package-license.test.shfails 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 failedsystemctl --user daemon-reloadorenable --nowprinted "Setup complete" and exited 0, and a missing daemon binary still got a unit pointing at it. The wizard now writes no unit whensysknife-daemonis missing or not executable, prints the commands left to run, and exits 3 (closes #665). Thanks to @dannyward630.
- CI installs and release assets are pinned and signed. (#693)
The lint tools install from
tools/ci-node/package-lock.jsonand 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, thatgh attestation verify --bundlechecks.block-buffermoves to 0.12.1 (GHSA-qwgh-2vcv-g2f7).
-
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 astatus_*event andaudit verifyleft the status check unset, so anyone withUPDATEontransactionscould 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 unknownchain_versionor a foreignkey_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 foreignkey_idthat 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 waysysknife approverefuses without--full;--jsonprints both in full.--yesand--max-riskbehave as before. During planning, the spinner showsunknown toolfor 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.rememberandforgetno longer writeprefs.mdinside 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 throughsysknife_planover 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$-anchoredre.match(), which acceptsbash\n, so a directsudocall could step past the exact-match denylists insudoers-editandgrub-kargs-edit. Every helper now usesfullmatch(), andsudoers-editchecks command paths before its shell lookup. Both copies of the shell-equivalent list also strip version and packaging suffixes, so both refuse aNOPASSWDgrant forpython3.12,perl5.38.2,ruby3.2orvim.basic. (GHSA-3448-xjpf-cc4j) -
fail2ban-banrefuses IPv6 scope IDs. Python'sipaddressaccepts 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 withfullmatch(), and the sudoers grant test now listsfail2ban-client set ... actionbanas a root escape. (GHSA-4gp9-9fmc-wgqp) -
The kernel-argument screens refuse systemd's boot-mode and run tokens, and
user-lockrefuses critical accounts. Both copies acceptedsystemd.run=,emergency,rescue,rdinit=,rd.breakandrd.systemd.unit=, each a root shell or a root command at the next boot. They now refuse those,-b, runlevels 2 to 5 and theirrd.forms. The daemon's copy also requires eachSetKernelArgumentsvalue 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-editand therpm-ostree kargsverb ofaction-steps) now accept a fixed list of keys instead: display and boot flags such asquiet, ordinary keys such asconsole=,rd.driver.blacklist=with GPU drivers only, and hardening keys only at their hardening values, such aslockdown=integrity.root=andresume=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 asmitigations=off, so a hardening argument cannot be dropped, by its full spelling or by its bare key. Theaction-stepshelper now refuses to lock or unlockroot,daemon,bin,sys,sudoandadm, as the daemon does, andUnlockUserAccountapplies the same list. The helper also refuses account names that start with.or contain.., as the daemon does. (GHSA-76v3-hw9r-58pm) -
grub-kargs-editand the daemon agree onlockdown=. The daemon refused the prefix and the helper onlylockdown=none, so a direct call could set a lockdown mode the daemon refused. Both now accept onlyintegrityandconfidentiality. (GHSA-8rx7-g2jg-5pxg) -
scheduled-job-editchecks the whole systemd unit load path. It looked for collisions in/etc/systemd/systemalone, so a job nameddaemoncould 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-pinschecks which ref a version comment resolved to. It looked upgit/ref/tags/<comment>and compared only the commit. GitHub normalises..in that path, so a comment such as# v4.2.2/../../pull/1/headresolved to a pull-request head and the pin passed as a release. The check now requires the API to answer withrefs/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
killgrant 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 thesysknifeaccount:apt-mark hold bash -o Dir::Bin::dpkg=/tmp/xandlvextend --config global/fsadm_executable=/tmp/x -r ...run a program the caller chose, andgpasswd --add <account> sudohands out root-equivalent membership.userdel,groupadd,groupdel,chage,lvextendandlvcreatenow 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-enforceandaa-complaintake their operand after a literal--,add-apt-repositorytakes--ppa, andufw,aa-status,canonical-livepatchanddo-release-upgradeget the exact argv the catalogue builds. Thegpasswdgrant had no caller and is removed.SignalProcessand the action-timeout reaper move fromkill -s *, which admittedkill -s KILL -1andkill -s KILL 1, toaction-steps signal, which refuses pid and pgid -1, 0 and 1. A direct caller can still add any PPA, asAddPpacan. (GHSA-8rx7-g2jg-5pxg) -
Dev-tier callers lose three routes to Admin outcomes, and the
sysknifeaccount loses systemd unit control over polkit.StartServiceandRestartServiceare Medium and acceptedreboot.target,poweroff.targetand the services behind them, which is what the HighRebootSystemdoes. The daemon andaction-stepsnow refuse the power-state and sleep units on every verb that brings a unit up.StopServiceandRestartServicerefusesysknife-daemon,auditd,rsyslog,systemd-journald,ssh,sshdand the other unitsSetServiceResourceLimitsalready protected.ConfigureLogRotationrefuses a bare*over/var/log,/var/log/auditor/var/log/journaland needs arotateof at least 1 for any wildcard, in the daemon and inlog-edit.50-sysknife.rulesdropsmanage-unitsandmanage-unit-files:manage-unitsauthorisesStartTransientUnit, a root command line over D-Bus, and no SysKnife code path used either. (GHSA-68v6-p23h-fwcf) -
The
apt-getandapt-marksudoers grants are gone, and a package name can no longer flip an apt action or match more than one package. Theapt-getgrant ranenv DEBIAN_FRONTEND=noninteractive NEEDRESTART_MODE=a /usr/bin/apt-get *. It pinned the environment prefix and left every argument open, so a holder of thesysknifeaccount 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,AptHoldandAptUnholdnow go through a newaptverb of/usr/lib/sysknife/action-steps. The verb allowlists the eight subcommands, accepts no option, setsDEBIAN_FRONTENDandNEEDRESTART_MODEin 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 approvedAptInstallcould therefore remove a package or install a whole task, and an approvedAptRemovecould 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 exceptAptInstall.g++andlibstdc++6stay installable; remove a package whose name ends in+by its architecture-qualified name, such asg++:amd64.validated_install_packagegates 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 acceptingpython3.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), sotests/release/action-steps.test.shruns it against the realapt-getand fails if a release stops honouring it. The helper asksapt-cacheordpkg-querywhether the operand names exactly one existing package. That check makesAptInstallrefuse a name that is only virtual, such asawk, and makesAptRemove,AptPurge,AptHoldandAptUnholdrefuse a package dpkg has no record of. -
The
rpm-ostreesudoers grants no longer take arguments. Thesysknifeaccount held/usr/bin/rpm-ostree <subcommand> *grants forinstall,uninstall,override,rebase,kargs,cleanup,upgradeandstatus. 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,RebaseSystemandSetKernelArgumentsnow go through a newrpm-ostreeverb 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 allowlistgrub-kargs-editapplies; and refuses a rebase target that reads from the host, such as a local repository or anoci:image directory.RebaseSystemrefuses those targets in the daemon too, and both copies of every rule checktests/data/rpm-ostree-parity.txt.UpdateSystem,RollbackDeployment,CleanupDeploymentsandResetLayeredPackageOverridekeep 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.ruleskeeps only the rpm-ostreeupgradeandrollbackpolkit actions, the two the daemon calls without sudo; the others let thesysknifeaccount reach rpmostreed over D-Bus and skip the verb. A rebase target now also refuses theostree-unverified-registry:andostree-unverified-image:transports, which boot any image without a signature check; rebase to anostree-image-signed:image or a configured ostree remote instead. (GHSA-32wv-3c2p-qp95)
- A weekly
cargo auditrun onmain. (#640)cargo-audit.ymlchecks 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.
-
Published figures are rendered from their sources, never typed.
scripts/render_figures.pyrewrites every<!-- fig:NAME -->marker in the README and docs (test counts, action counts, story-set sizes, recorded pass rates), andscripts/check_evidence_claims.pynow 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.shrecords the evidence and re-renders the docs in one step, andscripts/check_public_claims.shrunsrender_figures.py --check. The README shows the exact Rust and frontend test counts as live badges read fromtests/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-minutesset from its slowest observed run, andtests/release/workflow-timeouts.test.shfails when a job loses its limit or gets a blank, zero, negative or non-numeric one (closes #629). Thanks to @dannyward630.
- The planner sees only what exists on the host's distribution.
(#656,
#658) The Ubuntu prompt
and the
propose_planexamples 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 advertisesquery_packages(closes #648 and #657). Thanks to @dannyward630. - Planning, routing, MCP tool discovery and
doctoruse the daemon's distribution. (#626) A Fedora controller driving an Ubuntu daemon built the planner prompt from its own/etc/os-release.QueryStatenow carries an optionalhost_distro, and the CLI falls back to local detection, with a warning, for an older or unreachable daemon;doctorreports 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, whichpropose_plandoes not offer there. An OS overview request is now refused, and history or preference-only intents finish withListJobHistory. A test checks every action each prompt names against its plan schema (closes #672). Thanks to @QinXi-ai. sysknife audit checkpointand the MCP audit tools read the same store asaudit verify. (#636) On a packaged install they resolved a per-user path that does not exist whileaudit verifyread/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 --sincekeeps 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.shprepares 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
documentationandmaintainer-onlylabels, 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 approvegates the CLI. (#655) An MCP plan needs a receipt fromsysknife approvein your terminal; the standalone CLI uses its own prompt or--yesup 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.
request_hashis 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, andsysknife audit exportserialises 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 underchain_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.mdnow 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 withstale_approvalrather than running. Thanks to @Georgefifth.
- 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
u128comparisons 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 usesubtleand are not affected. No API changes.
- A successful automatic rollback shows as
rolled backin the CLI. (#632) The CLI had no arm forRolledBackand printed⚠ unknown, and it dropped the job'srollback_ref. It now printsrolled backand the linerolled back with: rpm-ostree rollback.
-
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
Debugoutput 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
Bearertoken reached the provider in a tool result and stayed in the retained context for later turns. The brain now redacts plaintext credential assignments,Bearervalues, 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, andmysqldump --password hunter2 mydbloses the password and keeps its neighbours.SECURITY.mddescribes the screen and its limits (closes #552). Thanks to @QinXi-ai. -
sysknife approvehonours--dry-run,--max-riskand--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.--yesand unattended consent still leave the human confirmation in place.docs/cli.mdlists which global flags apply to each command (closes #545). Thanks to @QinXi-ai. -
--step-by-stepchecks 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
SetKernelArgumentswithappendinstead ofaddapproved 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-onlyListJobHistorypath included, and the planner refuses non-object parameters. Canonical names, deliberate aliases and defaults keep working (closes #551). Thanks to @QinXi-ai. -
make daemon-installactivates 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 checknow runsscripts/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 fordtolnay/rust-toolchainonstableonly, 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,\tand%XXas 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--stagedhas 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.lockonly.cargo auditreads the lockfile, so I bumped it to clear the five advisories. -
event-listener 5.4.2 (RUSTSEC-2026-0221). (#609) The 5.4.1
StackSlotlet a!Sendtag set withEvent::with_tagcross threads, a data race in safe code. Unlike the other acceptedcargo auditwarnings, this one reached the daemon and the CLI, throughsqlx-core.cargo auditreports 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.
sysknife audit verifyaccepts 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. HistoricalRunningandCanceledrows without an event stay inconclusive (exit 2). An unsignedSucceeded,Failed,RolledBackorNeedsRebootstill 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
FailedorRolledBackresult. It now halts onFailed,Canceled,RolledBackor a nonterminal status with exit 2, naming the action and the daemon summary.NeedsRebootexits 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
ExecutionFailedwith 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 reportsunknown, 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_failed400 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 answersrelease not found, and fails on any other lookup error, then goes on to upload the assets (closes #554). Thanks to @Humerous. - Re-running
sysknife-setupkeeps 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/passwdpermissions 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=hunter2anduse password hunter2are still refused andPASSWORD_MAX_DAYSgoes through (closes #543). Thanks to @QinXi-ai. sysknife-clicompiles on macOS again. (#592) One check matched the Linux-onlySocketTarget::Vsockvariant without the Linux gate, which stopped the build with E0599. The check now carries the samecfgas the variant; off Linux nothing can construct one (closes #566). Thanks to @yuee3.ci-localfails 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.
- 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).
CONTRIBUTING.mdsays the suite is only observed on Linux, and what a Mac run shows. (#564) Every CI job runs onubuntu-latest, and two contributors on macOS read their red runs as their own mistake. The new section records a survey on a hostedmacos-26-arm64runner:sysknife-clidoes not compile there yet, and the rest of the workspace runs with thirteen known host-assumption failures, listed intests/evidence/macos-survey.json. A release test reads the documented command out ofCONTRIBUTING.mdand 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.mdput 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 setsSYSKNIFE_LISTEN_URI=vsock://:9734.- The same page said
make installhandles rpm-ostree on its own. It refuses until you pass the/etcoverrides, and still cannot finish (#301). docs/mcp.mdsaid execution halts on a failed or unknown step. It halts on anything butsucceeded,needs_rebootincluded.SECURITY.mddescribed 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.mdcalled signed status transitions future work. They shipped, andaudit verifychecks them on SQLite.docs/security/audit-advisories.mdlisted 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
sysknifesystem user with scoped sudo and polkit grants. - Contributor docs gave clippy without
--all-targets, anpm run tauriscript that does not exist, a CI check for PR titles that does not run, and ane2ePR label that triggers nothing.
-
Approval events sign the account that granted, spent or revoked them. (#491) The transaction chain has named its requester since
ChainIdentity::V3, butapproval_granted,approval_consumedandapproval_revokedsigned 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 addschain_versionandcaller_principaltoaudit_eventson 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 verifyreads 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,
sysknife0.24.0 and earlier refuse the audit database outright, on SQLite and Postgres alike:schema version 4 is newer than this binary supports (3).
- 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.ProAttachis gone from the schema and the prompt, and plan parsing refuses it even when a provider ignores the schema.ConfigureWifistays 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_verifychecks the configured checkpoint anchor, and agrees withsysknife audit verifyon the verdict. (#496) The MCP tool never looked up the anchor, so a chain truncated behind a configured checkpoint reportedintact, 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 sharecombined_verification_exit_code,status_wordand the anchor JSON instead of keeping two copies of the precedence rule. A stdio test drivestools/call sysknife_audit_verifyagainst a store whose anchor cannot be read, and fails with the lookup removed (closes #466 and #478). Thanks to @LunaMeerkats.sysknife-setup --uninstallremoves 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 ofAGENTS.mdon disk. It now takes SysKnife's server out of.cursor/mcp.jsonand keeps every other server, rewriting the file at mode0600, and cuts only SysKnife's block out of the Codex config andAGENTS.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 readSYSKNIFE_AUDIT_KEY_PATHby 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 --sinceaccepts the ISO-8601 dates its help text promised. (#521)--helpsaid ISO-8601 and the parser accepted only UTC RFC 3339, so--since 2026-09-01and--since 2026-09-01T02:00:00+02:00were 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 MCPsysknife_historyschema description and its error message describe that one parser the same way.audit export --sinceis unchanged and still validated by the daemon (closes #519). Thanks to @tayfuryldz.
docs/cli.mddescribes the unattended flag the binary ships. (#436)--dangerously-skip-approvalraises the ceiling--yesis clamped to from MEDIUM to HIGH and switches on nothing else; the page had said it implied--yes,--max-risk highand--non-interactive. The page also gainsSYSKNIFE_DATABASE_PATH, says audit commands read the store directly and ignoreSYSKNIFE_SOCKET, that the consent check covers every subcommand, and that--log-tocaptures 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 inCLAUDE.mdwhen the GUI libraries are missing, and both files say whatscripts/ci-local.sh --no-postgresskips, which is the Postgres contract and nothing else (closes #451). Thanks to @Jah-yee. sysknife doctoris documented as doing what it does. (#517)docs/configuration.mdpromised a chain-integrity check, andrun_doctornever opens the audit store. The page now sends readers tosysknife audit verifyfor the chain, and the sample indocs/cli.mdshows the socket as the URIdoctorprints plus thedistroline it had left out. Two tests hold the docs toprint_doctor_ok's field order and refuse the old chain-integrity claim (closes #500). Thanks to @syf2211.SYSKNIFE_AUDIT_KEY_PATHis no longer listed as daemon-only. (#528)sysknife audit verify,sysknife audit checkpointand the MCPdoctorand 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, gotaudit key not foundfromsysknife audit verifyin their own shell. The section is gone and the variable's row names both surfaces. Thanks to @syf2211.
-
sysknife approverefuses when the proposed change did not fit the view, and--fullprints all of it. The prompt rendered the change throughoperator_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.approvenow 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.--fullprints 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_blockreturns the counts alongside the text instead of a bareString, 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.mdshows the refusal and the flag, andSECURITY.mdLayer 4 states what the receipt does and does not prove. -
Fail2banBanIpandFail2banUnbanIpgo through a helper with a fixed argv, and thefail2ban-client set *grant is gone.packaging/sysknife-sudoerscarried 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>, thenset <jail> action <name> actionban <command>, then any ban to fire it. The daemon only ever builtset <jail> banip <ip>and the unban twin, so the wildcard was strictly wider than anything SysKnife needed. Narrowing it toset * 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 admitsset sshd action p actionban '...' banip 1.2.3.4, andcertbot certonly *is only narrow because its variable part is trailing while fail2ban's jail name sits before the fixedbaniptoken. sudoers has no syntax to pin a middle argument.packaging/sysknife-fail2ban-bantakes--op ban|unban --jail <j> --ip <a>, re-validates both (--opis a fixed choice, the address goes throughipaddress.ip_addressso a CIDR or a range is refused, the jail regex is transcribed from the daemon'sjail_is_valid), and then runsfail2ban-clientwith 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.shpins the fixed argv, proves an unknown--opnever reachesfail2ban-client, and carries a canary onjail_is_validso 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.
Fail2banBanIpandFail2banUnbanIpnow buildsudo /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.dfragment gets "a password is required" on every ban and unban. Install the package, or re-runmake 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. -
GrantSudoAccessrefuses a passwordless grant whose command list isALLunder another name, and the preview says so when it is.packaging/sysknife-sudoersopens by stating that no shell or general runuser grant is permitted. Both the daemon andpackaging/sysknife-sudoers-editenforced that against the literal string"ALL", whilevalidated_sudo_commandsaccepts any absolute path with a safe charset and no wildcard, which/bin/bashsatisfies. SoGrantSudoAccess(commands="/bin/bash", nopasswd=true)wrote<user> ALL=(root) NOPASSWD: /bin/bash, whichvisudo -cfaccepts and which is a standing passwordless unrestricted root shell./bin/sh,/usr/bin/python3,/usr/bin/perl,/usr/bin/env,/usr/bin/findand 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_COMMANDSholds 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/bashand/BIN/BASHare one thing. The refusal fires together withnopasswd, 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 notnopasswdis 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 wildcardNOPASSWDgrant makes it callable directly, skipping the preview, the receipt and the signed chain;tests/release/sudoers-edit.test.shparses 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 exampleSECURITY.mdreaders and the planner's system prompt both carried was itself a root- equivalent grant; both now keep the command and drop the passwordless half, andSECURITY.mdrecords 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.rsstrips 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 inplanner.rs, so the defence guarded SysKnife's own model and not the operator's. Everysysknife_<action>read-only result and the free-text fieldsmerge_preview_into_stepcopies out of the daemon'sPreviewEnvelopereached 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 packageDescription:, a unitDescription=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 byoperator_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 atMCP_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 ofsysknife_plan,sysknife_execute,sysknife_history,sysknife_doctorandsysknife_audit_verifyis 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'sparams,transaction_idandapproval_receipttravel verbatim on purpose:compute_request_hashhashes the action name and params, the receipt is bound to that hash, andsysknife_executerecomputes 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 insidedirect_query_with_clientrather 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.mdnow describes both channels and both residual risks, and its Known Limitations table no longer saysquery_*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. -
SetServiceResourceLimitsrefuses the units SysKnife's own enforcement and the host's evidence depend on, and every cgroup container. The action isRiskLevel::Medium, whichrole_for_risk_levelmaps toCallerRole::Dev, and it validated itsunitparameter by charset alone. The lowest mutating tier could therefore runsystemctl 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 againstauditdorsystemd-journaldstopped the host recording what came next, againstsshdit removed the way an operator reaches the machine to undo it, andMemoryMax=1Konsystem.slicereached every service on the box. All of them survived a reboot.validated_activatable_unitdid 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 newvalidated_resource_limit_unitrefuses eleven named units across four categories (SysKnife's enforcement, the host's evidence, the authorization path, remote administrative access), thesystemd-journaldandauditdfamilies whole, and.sliceand.scopetargets as a class, because capping a slice is a decision about every unit beneath it. Namingsystemd-journaldalone would have protected the reader and left its pipes:systemd-journald-audit.socketcarries 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, sosshd@1.serviceno longer reduces tosshd@1and slips a list holdingsshd. They shared nothing before, and two hand-copied screens of this shape drifted once already: the kernel-argument denylist inexecutor.rswas missingdebug-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.
- The action reference derives its catalogue total instead of assuming one
dispatcher-internal action.
(#529)
crates/sysknife-daemon/tests/action_reference_doc.rswrote the published total astotal + 1and spelledListJobHistoryinto the sentence by hand, so a second action that the dispatcher handles before the executor would have leftdocs/action-reference.mdclaiming a number one short of the catalogue, with nothing to catch it.DISPATCHER_INTERNAL_ACTIONSnow sits beside the daemon's action metadata as public API onsysknife-daemon, both test binaries read that one list, and the footer derives the tabled count fromKNOWN_ACTION_NAMESminus 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.
- Broken links in the generated mdBook fail the build.
(#379)
scripts/check-mdbook-links.shwalks the builtbook/and resolves every internal.htmlhref 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 indocs.ymlaftermdbook buildand indocs-and-hygieneagainst 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.
CreateScheduledJobnamespaces its units and never overwrites an existing one. (#520)packaging/sysknife-scheduled-job-editopened/etc/systemd/system/<name>.serviceand.timerwithopen(path, "w"), so a job named after a unit already on the system truncated it. Units are now created assysknife-<name>withO_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. TheCreateScheduledJobpreview 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 thesudo,nohup,xargs,time -p,env -iandcommand -pwrapper 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, sonohup env -i command -p gh release createis 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.pymatched a tool name only at the start of a command, soif gh release create ...,FOO=1 gh release create ...andenv ... 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 addsgitto 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 listedpre-commit run --all-filesalongside the real commands. It now namesbash .githooks/pre-commitandscripts/ci-local.sh, and the Node prerequisite reads 22 in both places it appears.check_evidence_claims.pygained 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.shpulls. (#515) The guide namedllama3.2:3bas the default while the script defaulted toqwen3: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.shnow reads the default out of the script and requires the guide's sentence and its# defaultcomment to name the same model (closes #501). Thanks to @yuee3.
-
The syslog forwarder's IANA Private Enterprise Number is configurable. (#445)
[audit.forward.syslog] enterprise_numbersets 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, and0is refused because the IANA registry starts at 1 (closes #218). Thanks to @atanishka308.SyslogForwardSectiongains 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.
- The story-evidence writer refuses a missing
EV_CASSETTE_SHAat preflight instead of raisingKeyErrormid-assembly. (#505) The variable was read with a strictos.environ[...]but was absent fromREQUIRED_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:618always 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/actionsis refused rather than skipped. (#510) GitHub acceptsuses: ./any/directory, both pin checks returned early on any./reference, anddiscover()only walks.github/actions, so an unpinneduses: attacker/exfil@maininsideci/setup/action.ymlpassed the rehearsal contract, the pin-comment checker, the Node EOL check and yamllint. A sharedcheck_local()now normalises the reference and requires it to land in.github/actionsor on a top-level reusable workflow, and the symlink guard indiscover()has the test it never had (closes #507). scripts/check_evidence_claims.pyandtests/release/public-claims.test.share executable again. Both lost the bit in #487's merge. CI calls them through an interpreter so nothing went red, andCONTRIBUTING.mdtells contributors to run the first one directly, which failed withPermission denied.
- 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.mdnow says so with the grants that make it true.check_public_claims.shpins the retired "every layer is independent" wording, andSECURITY.mdjoinedCLAIM_FILES, without which the pin could not fire on the file it was written for. Thanks to @yuee3.
-
useradd,usermodand 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 *, andsystemctl start debug-shell.serviceagainst/usr/bin/systemctl start *, which the daemon's ownROOT_SHELL_UNITSdenylist 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 sameuseradd/usermod/systemctlargv the daemon used to build.packaging/sysknife-sudoersno longer grantsuseradd,usermodor any of the eight unit verbs;systemctl daemon-reloadandrebootkeep 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_UNITSrather 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.dfragment and the old helper gets "a password is required" on every user and service action. Install the package, or re-runmake 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.
- 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/*.ymland stopped there.scripts/github_yaml.pynow discovers nestedaction.ymlandaction.yamlbeside the workflows and every gate reads the same set, locally throughscripts/lint-github-yaml.shand 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 30between 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.shpolls 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.
- The version registry catches a bypass and an unlisted crate.
(#498)
tests/release/version-sites.test.shnow fails whenbump_version.shorcheck_release_versions.shstops going throughscripts/release_versions.py, and when a workspace manifest carrying the release version is missing fromrelease-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-action2.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 theServerInfoalias in favour ofServerConfig(both aliasInitializeResult, so the served MCP handshake is unchanged), and async-openai 0.42 addsmetadataandmoderationtoCreateChatCompletionResponseandmisalignmenttoApiError, which the adapter's test fixtures name field by field.
AddMountrefuses thesuidanddevmount options and addsnosuid,nodevto every mount it makes.validated_mount_optionswas a charset check with no denylist, alone among the dangerous-value validators in that file, and omitting the parameter reached the helper asdefaults, which Linux expands torw,suid,dev,exec,auto,nouser,async. A setuid-root binary on attacker-supplied media then granted root to whoever ran it.execstays allowed: running an ordinary binary from a mounted volume is a legitimate need, andnosuidwithnodevis 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,proandnetplanat 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).
PinDeploymentandUnpinDeploymentbind to the deployment that was approved. Both take an ordinal index into the liverpm-ostreelist, 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 concurrentUpdateSystem,CleanupDeploymentsorRollbackDeploymentinside 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 wayAptAutoremovehas captured its deletion set since #151, and a preview that captured no identity cannot execute (GHSA-93hm-phfx-6mg8).CreateUservalidateshomeas an absolute path. It usedvalidated_safe_arg, which enforces a charset and rejects a leading dash and accepts both..and a relative path, whilevalidated_absolute_pathin the same file rejects both and already guarded every other root-acting path parameter.homereachesuseradd --create-home --home-diras root (GHSA-93hm-phfx-6mg8).- A job's terminal outcome is in the audit chain.
update_statuscalledappend_eventzero times, soaudit_eventsheld the approval lifecycle and nothing recordedRunning -> Succeeded,Failed,RolledBackorNeedsReboot. An action that ran to completion could be rewritten in thestatuscolumn asCanceled,sysknife historyreported it canceled, andsysknife audit verifystill reported the chainIntact, 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 verifycompares 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,localectlandresolvectlwere granted with no argument tokens, which authorises every invocation of each:systemctl linkon an attacker-written unit file,systemctl start debug-shell.servicepast the denylist the daemon applies on its own path,useradd -o -u 0for a second uid-0 account,usermod -pover 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).
AddSwapandRemoveSwapresolve the whole swap path before acting on it.O_EXCL|O_NOFOLLOWconstrains 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-editrefusesdebug-shellandrunlevel1assystemd.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).
sysknife-setuprequires 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).
sysknife audit verifynow reportscannot_verifyand exits 2 over an empty transaction log with no external checkpoint anchor, instead of reportingintactand 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. ConfiguringSYSKNIFE_CHECKPOINT_DBrestores a definite answer. The MCPsysknife_audit_verifytool still reportsintactin 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).
- 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).
- 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).
- 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).
- 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
UfwStatusreturn numbered rules withnumbered: true, retaining verbose output by default. Addquery_ufw_rulesso the planner can read the indices required byUfwDeleteRuleinstead 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
UfwStatuscan now run without distro detection; mutations and hard-fenced reads still require an eligible host.AptUpdateremains hard-fenced despite its Low risk. DistroHintnow carries a distributionid, andpropose_plan_tool_defaccepts the full hint rather than a family string. This is a public Rust API change requiring a middle-digit release while the project is in0.y.
-
The default Groq model is
openai/gpt-oss-120b. Groq decommissionedllama-3.3-70b-versatile, so every SysKnife user on the Groq provider who had not overriddenSYSKNIFE_LLM_MODELwas 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 200The replacement was chosen by running SysKnife's real prompt and tool schema against it: a three-part read-only intent planned
GetDiskUsage,GetMemoryInfoandListServiceswith no query preamble, and a Debian 12 host plannedAptInstallwith no Ubuntu-only action offered. All seven reference sites move together, whichtests/e2e/provider-parity.test.shenforces. -
Sanitise the distro version string before it reaches the prompt header. A crafted
/etc/os-releasecould 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 throughnormalise_free_text(#272). -
check_no_secrets.sh --stagedfails closed when git cannot answer. The pre-commit credential scanner built its file list through process substitution, whichset -euo pipefailcannot see into, so a failinggit diff --cachedleft 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. DirectLlmPlanner::newstays without runtime defaults for embedded callers and tests (#236). -
sysknife-setupprefers 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).
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.
- A CLI timeout no longer reports that an action ran, and a missing
checkpoint database is a configuration error (#381, closes
#335).
--timeoutbuilt anExecutionFailedcarrying a timeout string, so an operator readingexecution failed:had no way to tell a command that ran and failed from one that never started. It is now its ownTimedOutvariant, still exit 2, reported asoperation timed out after Ns. Separately,audit checkpointwith 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.mddocuments what exit 2 covers, including clap's usage errors.
-
Keep supplementary groups out of caller authorization when
SO_PEERPIDFDcannot pin the peer, including an already-reaped peer or fd exhaustion. OnlyENOPROTOOPTretains the older-kernel best-effort path; every other failure keeps only the primary GID captured bySO_PEERCRED(#250). -
A release pin that lost its
versionfield passed the version check (#378, closes #368).check_release_versions.shpiped its list of internal path dependencies throughgrep '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, andtests/release/release-version-pins.test.shproves 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-editlock arm was unreachable (#375, closes #248).
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.
-
Story-coverage figures are derived from the tree instead of maintained by hand (#370, closes #229).
CONTRIBUTING.mdsaid "Every Debian-only action now has one" four lines below a row saying five of them still have none, anddocs/introduction.mdcarried 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 fromdocs/action-reference.mdandtests/e2e/stories, and the atomic and Ubuntu family sizes from the story headers, using the same line-2 ruletests/e2e/run-stories.shreads 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.
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.
- 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:
AptUpdateremains plan-only because refreshing root's apt index mutates the host despite its Low risk level. (#216)
-
query_actioncan no longer bypass approval for Low-risk mutations. The daemon now rejectsAptUpdateon 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 verifyno 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--jsonderives itsstatusfrom the same combined result rather than from the local check alone, so a truncated anchor over an otherwise intact chain reportsbrokeninstead ofintact. (#221, thanks to @k4its1t)
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.
-
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 fromfail_countalone, so a run where every story was skipped or rate-limited printed0/N passed, 0 failedand exited 0.run-stories.shalso rewrote a failing story's verdict toRATELIMIT, moving it out of the only counter that could fail the run. A pass is now a positivePASSmarker rather than an inferred exit status, and skipped, rate-limited and zero-pass runs all fail.scripts/check_evidence_claims.pyrefuses an artifact carrying a non-zeroskippedorrate_limitedas evidence for a published pass rate or a Validated tier.tests/e2e/story-runner-verdicts.test.shpins 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_listenercreates 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 the0750thatpackaging/sysknife-tmpfiles.confsets under systemd. It now sets0750on a directory it created, and leaves an existing one alone: an operator who put the socket in their own0700directory keeps that mode rather than having it widened.tests/e2e/ubuntu-provision.shderives the expected runtime and state directory modes from the tmpfiles config and asserts the live modes on/run/sysknifeand/var/lib/sysknifeimmediately 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)
-
A transaction can only be approved, cancelled, inspected or executed by the account that created it.
authorize_for_transactionchecked 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_executeandhandle_approval_detailshad the same gap on their own paths.caller_principalwas 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 approveis 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: anUnattributedpeer, 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/sysknifeis0750and the socket is0660, so only members of groupsysknifeand 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.
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.
-
sysknife --dangerously-skip-approvalruns with no human in the loop. Until now--yescould 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-riskstill wins, and--dry-runstill 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 aswarnings_jsonand signed as one of the fields inChainContent::canonical_bytes, so an unattended run cannot later be presented as one a human approved: editing the marker out of the stored column makessysknife audit verifyreport that rowBroken. 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 exportwrites the signed chain rows as JSON. (#215, #260) Emits the stored transaction-chain rows in ascendingseqorder, with--sinceand--limit, includingprev_chain_hashand the Ed25519 signature stored aschain_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.mdanddocs/the-audit-chain.mdnow state that an export is not a redacted artifact:request_hashcommits to the unredacted parameters as one unsalted SHA-256, so an export inherits the confidentiality class of the0600database it came from (#268).
-
The VM harnesses put provider API keys in the host and guest process tables. (#316, #299)
ubuntu-vm.shandatomic-vm.shbuiltsudo VAR='value' bash …into the ssh command string, so every configured provider key was readable inpson both sides for the length of a story run. The variables now travel over ssh stdin into a0600file under/run, written withumask 077before the redirection, sourced by the guest shell and deleted before the test scriptexecs. Measured rather than argued: a stub that recordscmd_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.shholds 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 ciwith the workflow token in scope. All three move to 24.tests/release/node-eol.test.shcompares everynode-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-checkandyamllintunpinned while holding that token; all three now name a version.
-
rmcp3.1, and the 2026-07-28 protocol revision with it. (#324)ListResourcesResultandListResourceTemplatesResultgainedresult_type,ttl_msandcache_scope. All three stayNone: an absentresult_typemeans complete, and advertising neither a cache scope nor a TTL keeps every client asking the daemon rather than replaying a stored answer.ServerHandler::read_resourcenow returnsReadResourceResponse, whoseInputRequiredvariant (SEP-2322) asks the client for more input before the read finishes; SysKnife always answersComplete, 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 realresources/readand 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: truestays, so the badge and the public Scorecard API are unchanged, and the job gives upsecurity-events: write.
-
postgres-contractreported success when no database was configured. (#313, #294) Five tests inpostgres_store.rsreturned early whenSYSKNIFE_TEST_POSTGRES_URLwas unset, so a renamed variable or a droppedservices:block left one ofmain'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 setsSYSKNIFE_REQUIRE_POSTGRESand 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. -
CheckPendingRebootfailed exactly when a reboot was pending. (#314, #227) The action read/var/run/reboot-required-pkgs, a filename Ubuntu does not write.update-notifierwritesreboot-required.pkgs. When the sentinel was present the missingcatbecame the script's exit status, the dispatcher dropped stdout, and the operator sawCheckPendingReboot failed with exit code 1instead of*** System restart required ***. The action now reads the dot filename and ends the then-branch withtrue, so a missing packages file is optional rather than an error. -
postgres-contractcould 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_POSTGRESfails loudly from inside the test file, while--include-ignoredis what runs the five#[ignore]live tests at all. Dropping the flag left the job reporting6 passed; 5 ignoredand exiting 0 with no database touched.tests/release/postgres-contract-guard.test.shnow reads the CI job and bothscripts/ci-local.shbranches and fails when either token goes missing. It derives the variable name frompostgres_store.rsand asserts no test count, so adding a store test does not break it.
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.
BindingOutcomegainedNotChecked. (#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 exit2on the same inconclusive/detected scale asoutcome_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.
-
The Postgres auditor graded evidence it never read. (#295, #246)
verify_all_from_configswallowed every error from the approval-event read withunwrap_or_default(), justified by pre-migration chains that have noaudit_eventstable. A revokedSELECT, 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, aMissingEventpublished in the words operators are taught to read as deleted approvals. It now asksto_regclasswhether the table is genuinely absent and fails closed on everything else. Thanks to @vsolano9. -
SYSKNIFE_PINNED_SHA256SUMSstopped 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 returnednull, the gate treatednullas "no pin", and the install proceeded unpinned with the control switched on. The lookup now refuses, and the gate refusesnulleven if a future lookup hands one over. Thanks to @vsolano9. -
The setup wizard reported success for a daemon it never installed. (#293, #291)
installDaemonServicereturned bareundefinedwhen systemd was absent while its three siblings returned a result, and the caller gated the outstanding-steps block onmode === 'system'. A host without systemd and a deliberate--daemon-mode=skipboth ended on the success banner. Thanks to @vsolano9. -
resolve_audit_storeread a permission error as a missing database. (#275, #266)Path::existsis false for both ENOENT and EACCES, so an unreadable0700system store sent the operator to an empty per-user store instead of telling them to usesudo. 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. -
RiskLevelwas 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 usesMediumand both fixtures hard-coderisk_level: 2, soHighnever traversed the map. Thanks to @Georgefifth. -
make installfailed halfway on an immutable-root host. (#309, #301)daemon-installwrote the binary, the systemd unit, the polkit rules and all twelve sudo grants before discovering/usrwas read-only, leaving live grants for helper scripts that did not exist. A preflight now checks every directory inINSTALL_DIRSand 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.shrsyncedtests/e2e/ubuntu-vm/, 24 GB of gitignored qcow2 overlays, into a 38 GB guest; andprovision.shaskedcommand -v cargobefore putting~/.cargo/binon PATH undersudo, so it re-downloaded rustup on every run.
- Contributor norms, the baseline-ownership convention, and the rule that a diff
with no
.rsfile 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).
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.
-
Two Unicode line separators reached the model as visual line breaks. (#274, #224)
strip_dangerous_unicodecoveredU+200B..=U+200FandU+202A..=U+202E, which left U+2028 LINE SEPARATOR and U+2029 PARAGRAPH SEPARATOR sitting in the gap between the two ranges.append_prefrefuses both when a fact is written, butread_prefsnormalises on the way back out and passed them through, so a hand-edited preferences file could hold one fact thatstr::linesand the-filter inappend_prefsread as a single line while the model read three, the second an unprefixed heading. The same gap let paragraph padding slip pastcollapse_blank_runs, which counts\nonly. The arm now widens toU+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_prefswraps saved facts in<user_preferences>and tells the model to treat the block as data, butneutralise_envelope_tagsknew only theuntrusted_tool_outputenvelope. A remembered fact containing a literal</user_preferences>therefore closed its own envelope, and everything after it read as system-level instruction.rememberis 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_prefand 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.shkept its own list of six files whilecheck_evidence_claims.pyknew sixteen, so the prose rules skipped ten of them. The shell script now readsCLAIM_FILESfrom the Python module, and refuses to report success when that read comes back empty, whichset -euo pipefailcannot 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.protowould have moved the decode side with the file while the encode side kept writing the old numbers — a peer readingHighasMedium, 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_safekept U+2028 and U+2029, so the invisible-character set it calls complete was not. (#276) The drop arms coveredU+200B..=U+200FandU+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 readingremove nothingcould hide a different target from the operator approving it. The bidi arm is nowU+2028..=U+202E, the same widening #274 applied on the model-facing path. Thanks to @Georgefifth.
- 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,AptInstallandUfwStatus, with the Atomic recording still linked forrpm-ostreehosts. 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.mdrecords 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, sincegifsicleonly 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)
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.
- Four verified-dead items, and the public paths they occupied.
(#244)
sysknife_core::PRODUCTION_LISTEN_URI, the root re-export ofdetect,detect_distro,parse_os_release,DistroFamilyandDistroId,sysknife_brain::action_name::UnknownActionName, and theDEBIAN_ONLY_ACTION_NAMES/FEDORA_ONLY_ACTION_NAMESaliases insysknife_brain::promptare gone. Every live caller already went through the module path, so in-tree code is unchanged, andsysknife_types::UnknownActionNameandsysknife_core::action_family::{DEBIAN_ONLY_ACTIONS, FEDORA_ONLY_ACTIONS}remain the canonical spellings. The unused directprost-typesdependency went with them. Thanks to @ITSMERNB.
- A malformed
.mcp.jsonwas replaced rather than refused, discarding the user's other MCP servers. (#243, #225)mergeMcpServerstreated 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.jsonno longer leaves.mcp.jsonand 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
--purgecould not see the result. (#241) - Two plugin registry metadata gaps that cost trust points. (#220)
- h2 queued unbounded empty HTTP/2 DATA frames (RUSTSEC-2026-0258).
(#245) Bumped to 0.4.16.
cargo auditnames the advisory without the bump and exits clean with it.
scripts/check_release_versions.shnow also checks the internalsysknife-* = { 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-bookwormbase image digest (#254), and four pinned GitHub Actions (#258).
- How the version number is chosen is now written down.
docs/release.mdexplains why a removal moves the middle digit while the leading zero stands, names the three conditions for 1.0.0, andCONTRIBUTING.mdpoints 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).
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.
- A credential in an intent reached disk before the fence refused it.
(#206)
Planner::admit_requestrefuses any intentprefs::contains_sensitiveflags, 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 throughprefs::loggable_intent, which askscontains_sensitivethe same question rather than keeping a second copy of it.
-
Twenty-nine user stories, 105 to 133, one per Debian-only action that had none. (#206)
GetHostStatefirst: the per-distro prompt split exists because naming Fedora'sGetSystemStateon 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.
sysknife-setup --uninstall. There was no way to remove what the wizard installed.make uninstallcovers thesudo make installfootprint, which is a different set of paths. The audit database, the safety-audit log and~/.config/sysknifeare kept and their paths printed, because removing the software should not destroy the record of what it did;--purgeremoves 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.
-
--no-binarywrote a systemd unit pointing at a binary that does not exist. It returned a hardcoded/usr/local/bin/syskniferegardless of what was installed, and the caller derives the daemon path from it, so anyone who built from source into~/.local/bingot a unit that crash-looped onstatus=203/EXECevery 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 startreturns 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.verdictfailed. 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.logand 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.
- "Validated" now requires a replay twin that actually reproduced the run.
check_evidence_claims.pyaccepted any committed twin, including one whose owncassette_audit.verdictsaidfailed. A pass-rate figure was already refused on those grounds; the tier was not.
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.
-
The
npxinstaller no longer stages a root-installed binary at a guessable path. (#180)writeBinary's sudo fallback wrote the payload to${tmpdir}/sysknife-install-${pid}-sysknifeat mode 0644, then ransudo installfrom 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 throughmkdtemp: an unguessable 0700 directory holding a 0600 payload, removed in afinally. -
ConfigureLogRotationis confined to/var/log. The--pathargument 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/shadowwithrotate 0). Enforced inpackaging/sysknife-log-editand in the daemon'svalidated_log_path.docs/action-reference.mdalready documented this confinement; only the code was missing it. -
RemoveSwapis no longer an arbitrary root unlink. The helper charset-checked its--fileand thenos.unlinked it as root. Every step in between tolerates a non-swap path —swapoffruns withcheck=False, and the fstab rewrite is a no-op when nothing matches — so--file /etc/shadowreached the unlink and deleted the shadow file. Removal is now confined to paths the host itself reports as swap files (/proc/swapsrows of typefile, or an/etc/fstabswap 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=1reaches the same next-boot state as adding an unsigned-module loader, which the add path already refuses.SetKernelArgumentsandGrubSetKargsnow 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-editenforces 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 —InvalidDataon non-UTF-8 stdout, which one oddly-encoded filename produces — or a failedwait()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_reaptakes aStopCauseso 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\rerases and rewrites its own line,\x1b[1Awalks back over the risk badge, and length alone scrolls the plan out of view before the operator answers. The newoperator_text::operator_safedrops C0,DEL, the C1 range (a terminal in 8-bit mode readsU+009Bas CSI, so stripping onlyESCis 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 acp, and SQLite derives the-wal/-shmmodes 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 achmodthat fails on a file owned by another user cannot stop a daemon that previously started. -
sysknife audit verifynow reads the anchor it reports.verify_chainproves 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 printedaudit_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 reportscannot_verifyrather thanconsistent, because zero checkpoints trivially satisfy "every checkpoint agrees".
RUSTSEC-2026-0097is no longer ignored in CI.rand0.7.3 has left the lockfile andcargo auditexits 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.rsdocumented 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.
- 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)
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.
-
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 asudoaction 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 rootsudo -n /usr/bin/kill -s <SIG> -- -<pgid>(reaching the root children via the existing kill grant), orrpm-ostree cancelfor a transaction that runs inrpm-ostreed's own cgroup.ActionNotStoppedis 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_ROLEand 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) anddocs/vm-daemon-setup.mdnow state the threat model, the operator mitigations (isolate the vsock namespace, prefer forwarding the Unix socket overssh -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::recvpre-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.recvnow 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 existingVSOCK_AUTH_FRAME_TIMEOUT_SECS. -
audit verifywarns 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 runsaudit verifyreads their own machine's chain and seesIntactfor 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), andaudit verifycompares 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 explicitSYSKNIFE_SOCKETstill always warn). The query runs only for the unix-SYSKNIFE_LISTEN_URIcase it can help, soaudit verifystays offline otherwise. -
AptAutoremovebinds the deletion set the operator approved. (#151) The approval covered only the action name and empty params, butapt-get autoremove -yresolves 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 runsapt-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, becauseapt-get autoremove -yre-resolves the set itself at run time and cannot be pinned to a package list, so an externalapt/unattended-upgradeschange 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.requireis no better against an active attacker: sqlx accepts any certificate underrequire, 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 leastsslmode=verify-ca(authenticates the certificate chain) for a connection that crosses the network, with an actionable error recommendingverify-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 belowverify-ca(includingrequire) now fails at startup; add?sslmode=verify-fullto the URL. -
AddMountcan no longer mount an attacker share over a symlinked critical path. (#155)op_mountchecked the literal mountpoint string, thenos.makedirs(exist_ok=True)andmount(8)both followed symlinks, soAddMount{mountpoint: '/tmp/x'}with/tmp/x -> /etcmounted the share over/etc.assert_mountpoint_safenow refuses a symlinked or critical-resolving mountpoint (also closing the/etc/and//etcdenylist bypasses), andop_mountmaterializes the mountpoint withO_DIRECTORY|O_NOFOLLOWand mounts onto/proc/self/fd/<fd>so a symlink swapped in after the check cannot redirect the mount (the TOCTOU classop_addswapalso closes).op_unmountgained the same symlink refusal so a symlinked mountpoint cannot unmount an unrelated critical filesystem.
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.debandrpm-ostree install /tmp/x.rpminstall 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 strictvalidated_install_packagenow rejects paths,.deb/.rpmsuffixes and globs. - A Dev-role caller can no longer activate a root-shell unit.
(#144) Starting or enabling
debug-shell/emergency/rescueyields 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_keyssymlink cannot redirect a root append into another account's files. audit verifywarns about a forwarded socket configured via config.toml. (#146) The wrong-machine caveat read onlySYSKNIFE_SOCKET; it now resolves the socket the way the client dials it, so aSYSKNIFE_LISTEN_URIforward no longer verifies an unrelated local chain silently.- The MCP-registry publish workflow refuses an unmerged ref.
(#147)
workflow_dispatchaccepted 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-editcreates the file withO_EXCL|O_NOFOLLOWinstead of anos.path.existscheck 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).
- 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 asudoaction whose work runs as root the group cannot be force-killed; the timeout now detects that (the group probe returnsEPERM, not "gone") and returnsActionNotStoppedinstead 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 rollbackimmediately, 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.
sysknife audit verify now says why a row names no account, and refuses to
credit an account it cannot prove.
- An unsigned column can no longer manufacture attribution.
caller_principalenters the signed message only underchain_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 touid:0, and the chain would still verify asIntact, 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 asrows_unattestedrather 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
intactthe 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 newrows_censusedcount makes the gap againstrows_checkedmeasurable. Previously the notes stated that rows were "authentic and verified" under every verdict, includingCANNOT VERIFY, where nothing had been checked.
- The attribution report is a census, not a single number. 0.3.0 reported
unattributed_rows, matching thecaller_principalcolumn againstnone:unattributedon 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: 0over such a chain read as "every action is attributed" when in fact none of them was.--jsonand thesysknife_audit_verifyMCP tool now reportrows_censused,attributed_rows,unattributed_rows,rows_without_principal,rows_unattestedandrows_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 liveSO_PEERCREDproblem to chase, a row older than the column cannot be repaired at all, and an unattested principal is something to investigate. unattributed_rowsnarrowed, on purpose. It now counts only rows whosechain_version = 3principal is signed asnone: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 asrows_unattested. Anyone alerting on this field should know the population changed even though the name did not.sysknife_audit_verifyreportschain_status. The top-levelstatusis the worst of three checks, so a broken approval-event chain turned itbrokenwhile 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
nullmeans "not measured". When no rows were read — an unopenable store, a missing key — the counts arenullrather than0, 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 thecannot_verifypath and published zeros, so it disagreed withsysknife audit verify --jsonabout the same database. - Library API.
AuditVerification::unattributed_rows: u64is replaced byAuditVerification::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_testsexists for renderer tests and is gated behind the newtest-supportfeature rather than merely hidden from docs.CallerPrincipalgainsclaimandclassify, the inverse ofas_signed_str:classifyaccepts a stored string only when the principal it rebuilds renders back to exactly those bytes, souid:007,uid:1000:extra,uid:notanumberandtoken:not-vsockare 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.
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.
chain_version = 3signs a caller principal. A row bound to aCallerRolecould not separate two members ofsysknife-admin, so the trail answered "an Admin did this" and stopped one question short of where an investigation starts. Rows now also signcaller_principal, resolved by the daemon from the sameSO_PEERCREDread 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:vsockfor a pre-shared secret that proves possession of a file rather than an account, andnone:unattributedwhen the daemon could establish neither.- The principal reaches the SIEM. Forwarded RFC 5424 events carry a
principalstructured-data field, taken from the signed row rather than from connection state, so an external monitor sees what the chain committed to. sysknife audit verifyreportsunattributed_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 thesysknife_audit_verifyMCP 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.
- 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.
CallerAttributionreplaces a bareCallerRolethrough 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.
- A version-aliasing hazard that would have broken every existing audit log.
The v2 encoder signed
CHAIN_VERSION_CURRENTand 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 storedchain_versionis 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.
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.
- Ubuntu 20.04 and every interim release were refused as unsupported hosts.
DistroId::is_supported()accepted exactly22.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.mdsaid the daemon and CLI both read it at startup; only the daemon did, so a configured[daemon] socketor[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_effectsandrollback_available— get printed, immediately before execution. The preview was never a decision point. Previews are now fetched and rendered first;--step-by-stepconfirms every step against its preview, and the default mode re-confirms HIGH risk, the one class--yescan never auto-approve. - Nine of ten privileged helpers were never installed.
packaging/ships twelve helper scripts andsysknife-sudoersgrants ten, butmake daemon-installinstalled onlygrub-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=systemreported 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 thesudothe Makefile requires. It now returns its outcome, the wizard states plainly that the daemon is not installed yet, and the printed sequence includessudo make installand the group-membership step.sysknife audit verifyread the wrong audit store on a system install.SYSKNIFE_DATABASE_PATHreaches the daemon through its unit'sEnvironment=lines, which a CLI run by an operator never sees, so verification looked in~/.local/stateand 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.doctorcould not recognise socket-permission denial./run/sysknifeis0750 sysknife:sysknifeand a sudo admin is not in that group automatically, so every request failed whilesystemctl statuslooked healthy.doctornow leads with theusermod -aGfix and the required re-login when the failure isPermission denied.--non-interactivewas 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.14whileserver.jsonnamed0.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_URIdrop-in is now part of the procedure.
- Wi-Fi passwords were stored in the audit database.
credential_keys_forcovered onlyProAttach.token, so aConfigureWifipassword was persisted in the preview'sproposed_changeand 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 thepassword <pw>pair is absent for open networks and value-matching would clobber a structural element when the SSID or the password is itself the wordpassword. - A silent connection could squat an IPC slot for fifteen minutes. Each
accepted connection holds one of
MAX_CONNECTIONSpermits 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 verifyimplied 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 lettingOKbe read as "nothing was removed".- Release-artefact trust is now documented honestly, and
SYSKNIFE_PINNED_SHA256SUMSlets 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.
- MCP
sysknife_plansteps now carry the daemon's whole preview —current_state,proposed_change,expected_side_effects,reboot_required,rollback_availableandwarnings— so an agent can state what it is asking the operator to approve.sysknife_executeresults carryrollback_ref, whichdocs/automatic-rollback.mdalready promised.
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 throughsysknife-core::distroandaction_family.InMemoryCheckpointSinkmoved behindcfg(test)— it was a production-facing type documented for "tests and dry runs" with no dry-run consumer.- The daemon's unused direct
tracingdependency.
- 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 spelled60at each of the three sites that define what "per minute" means including the retry message, the provider adapters truncated log previews at a bare200in four places, and65535appeared 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'scivil_from_daysalgorithm and naming them individually would obscure it.
- The signed chain still binds rows to the caller's role, not to the
individual account, so two
sysknife-adminmembers 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.
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.
-
sysknife_doctorover MCP reported the socket as RustDebug. The CLI was fixed to printunix:///run/…butmcp_server.rskept its ownformat!("{socket:?}"), so the two disagreed about the same value and MCP clients receivedUnix("/run/sysknife/daemon.sock")— not a string anything can put back intoSYSKNIFE_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 withDebug, because the same defect was introduced and then half-fixed twice. -
npx sysknife-setupcould not install anything, on any platform. The release-metadata request reused the asset-downloadAccept: 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 metadatabefore downloading a byte. Metadata now asks forapplication/vnd.github+json. Verified end to end in a cleanubuntu:24.04container: both binaries download, SHA-256 verify, and install. -
The wizard crashed with a raw
SyntaxErroron Ubuntu 22.04, whoseapt install nodejsgives Node 12.enginesis only a warning to npx, and a version check insideindex.jscould 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-promptssilently installed the daemon that cannot do the job. It always answered "user service", which runs as the invoking user, while the NOPASSWD grants live inpackaging/sysknife-sudoersscoped to thesysknifesystem user. Since the daemon reaches privileged work throughsudo, an automated install produced something that answered read-only queries and failed everything else withsudo: 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
Debugat operators. Binding without permission producedError: 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.mainnow reports throughDisplay, the bind failure names the directory and the uid and both ways out, andlistening on …is printed only after the bind actually succeeds rather than before it. -
sysknife doctorwas 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 asUnix("/run/…"), andmainre-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 approveblamed a flag that does not exist. Without a TTY it returned "plan requires interactive approval but--non-interactivewas set", which cannot be true:approvehas no such flag. Piping or scripting it now says stdin is not a terminal. -
Planning printed nothing for minutes without a TTY.
indicatifhides 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 nameOPENAI_API_KEYinstead of "your API key". -
Authorization refusals name the group that grants the required role and the
usermodcommand, including that it only applies to a new login. Previously they ended at "is not allowed for Observer role" — accurate and a dead end.
- 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 thatcmakeis not..github/installs cmake before building this workspace, so the natural inference was that it was needed; clean-container runs disprove it —aws-lc-sysbuilds fromgccalone, and the only hard failure iserror: linker cc not foundwith no compiler at all. Build time is stated too: 6m56s on Ubuntu 24.04, 11m43s on 22.04, about 400 crates. docs/quickstart.mdis now the canonical install page, and README anddocs/mcp.mdlink 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.shcovers bothserver.jsonversion 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.mdrecords the two-call crates.io check that proves the marker is live in a given published version, rather than only present in the repository.
server.jsonat the repository root: the manifest published to the official MCP Registry underio.github.lacs-project/sysknife. It lists thecargopackagesysknife-cliwithmcp-serveras a positional argument, which is what the registry's cargo validator andmcp-publisher validateaccept. 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.shguards 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-textmcp-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 themcp-serverargument. It runs in CI and in the release preflight.
.codex-plugin/plugin.json— the manifest Codex plugin directories read to list SysKnife.hashgraph-online/awesome-codex-pluginsfetches 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 acomposerIconpointing at the committed 16KBassets/raster/sysknife-256.png..codex-plugin/mcp.jsondeclares how to launch the server, with noenvblock: 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.jsonis gitignored for that reason).commandis the baresysknifeso it resolves fromPATHafter any supported install.
scripts/check_release_versions.shcovers 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.
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.
caller_roleis 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 (fromSO_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_consumedandapproval_revokedare 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 intransaction_approvals, a plain mutable table: deleting a row leftsysknife audit verifyreportingIntact, 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 verifyreports all three checks and fails on any of them. A detected tamper (exit1) outranks an inconclusive check (exit2), so a broken chain is never reported as "could not verify". The MCPsysknife_audit_verifyreport gainsevents_checked,approval_events_statusandbinding_status, and its top-levelstatusis now the worst of the three rather than the transaction chain alone.
-
Schema version 2, with a real migration. Rows carry a
chain_versioncolumn 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 previousCREATE TABLE IF NOT EXISTSbatch had no way to express "add a column to an existing database". -
CallerRole::as_strreplacesformat!("{role:?}")for anything that is written down.Debugcarries no stability promise, and this string is inside a signature. -
TransactionStore::revoke_unconsumed_approvalandclaim_approved_for_executionnow require the signing key and refuse on a read-only store, since both append to the event chain. -
PlanningError::Providercarries aProviderErrorinstead of its rendered string. The shell recovered the classification by searching that string for"429"and"http", so editing a#[error(...)]format string inprovider.rscould silently reclassify a rate limit as a parse error. The three planner tests that all assertedProvider(_)now assert the variant. -
New
TransactionIdandApprovalReceiptnewtypes.DaemonClient::execute(transaction_id, action_name, params, approval_receipt, …)took three bare&strin 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.ApprovalReceiptis a bearer credential, so itsDebugis redacted and it has noDisplay; the one place it is meant to be printed callsas_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/listagainst the spawned binary — everything else called the handlers directly and skipped the wire), the approval gaterun_intentactually runs, andPostgresCheckpointSinkagainst a live database. The last one immediately caught a real bug:fetch_chain_rows_from_poolstill 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.
- The MCP server introduced itself as
rmcp.Implementation::from_build_env()resolvesCARGO_PKG_*at the crate where the macro expands, which isrmcp, soinitializereported the name and version of the transport library rather than of SysKnife — the string clients and registry listings display. describehad 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 aspreview; an unknown action is still avalidation_failure.query_actionhad 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 cleanunsupported_platformrefusalpreviewandexecutereturn.[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.
Follow-up to the v0.2.11 review sweep: the findings that release deferred.
- The daemon now anchors signed audit checkpoints. The machinery was
complete and tested but inert — nothing ever called
sign_checkpointor aCheckpointSink, so tail-truncation detection and rewrite-by-a-key-holder detection were only active if an operator ransysknife audit checkpointon a timer of their own. SetSYSKNIFE_CHECKPOINT_DBto 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 oneanchor_onceshared by the CLI and the daemon.
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 atest-supportfeature, so constructing anAuthorizedPlanfrom unvalidated risk is a compile error outside tests.NewTransaction.approval_idwas 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.
CallerRolederivesOrdfrom its declaration order and the hand-writtenrole_rankis deleted — one encoding of privilege order instead of two.ApprovalDecision::ExceedsCeilingcarries the ceiling it matched, removing two.expect()s that re-derived it at the call sites.- The four proto-bridge
Fromimpls are exhaustive matches rather than an i32 round-trip with.expect(), so a drift from the.protois a compile error instead of a panic inside a root process. JobStateMachineis removed. Production calls the freeallowed_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.
- The
transient_infrastructure_failuredeny paths had no test at all, so a refactor turning anErrarm 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 throughbuild_action_spec, malformed IPs, signal-killed exit codes,--timeout,audit verifyexit code 2, and the remainingProviderErrorvariants. resolve_caller_role_on_pair_does_not_panicdiscarded its result and would have passed if the function returnedBootfor everyone; it now derives the expectation from the same inputs the daemon uses.inserted_forged_row_breaks_chainacceptedseq == 2 || seq == 3against a deterministic fixture. Pinned to 2.
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.
RemoveAuthorizedKeyno longer builds a regular expression from the caller's key. It deleted the approved line withsed -i '\|^KEY$|d', which made the public key a basic regular expression:ssh-ed25519 .*passes every check invalidated_public_keyand then matched and deleted every ed25519 key in the file.sedexits 0, so the job recordedSucceededand the signed audit summary read as a routine single-key removal. Both key operations now usegrep -Fxvwith the key passed as a positional argument. Blocklisting regex metacharacters was not an option:.is legal in a key comment.GrantSudoAccesscan no longer mintuser 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_packagewas the only validator without a leading-dash guard, so a package name could reach a command in flag position.
- Every mutating apt action failed on a real Ubuntu host. The code sent a
bare
apt-getwhile 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".ConfigureWifihad nonmcligrant 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, producing2026-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
AptUpgradeclaimed 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_loophad 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_catleaked a zombie per audit record when the pipe write failed — one PID per preview and execute until the process table filled.mergeMcpServerstreated an unreadable config the same as malformed JSON and then overwrote it, discarding the user's other MCP servers.- The
unattended-upgradeshelper was missingNEEDRESTART_MODE=a.
- 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.shchecks 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).
- Corrected comment rot the review surfaced: the audit-chain formula omitted
its
ROW_DOMAINprefix (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; andapt.rsdescribed afuser /var/lib/dpkg/lockpre-flight that never existed.
0.2.10 — 2026-07-24
- 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 fromSO_PEERCREDwere 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.yamlthat still pinnedpostcss8.5.10 and kept a high-severity advisory open. The GUI is built with npm (package-lock.json, already onpostcss8.5.20); nothing referenced the pnpm lockfile.
- Planner risk is now type-enforced as authoritative at the approval gate. A
raw
Plan(LLM output) exposes onlyproposed_risk_level(); the CLI converts it to anAuthorizedPlan— substituting the daemon'sActionSpecrisk, the single source of truth — before any gate, and only anAuthorizedPlan's steps expose therisk_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
Dockerfilebase 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
- 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 installandfail2banaction 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.tomlthat is present but unparseable now fails loudly instead of silently falling back to defaults (which would have dropped[storage]/[policy]— a silent security downgrade).
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), sosysknife approveworks 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_availableis 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 enforcesrollback_available⇔ a real rollback command exists. - Ubuntu derivatives (Linux Mint, Pop!_OS, …) are now recognized via
ID_LIKE, soapt/snap/ufwactions 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").
scripts/ci-local.shand a.githooks/pre-pushhook that mirror the CI jobs locally, so failures are caught before pushing (saving GitHub Actions minutes). Documented in the developer guide, alongsideactfor full Docker-based workflow replay.
- 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
- Bumped the transitive
postcssdependency of thesysknife-shellGUI to>= 8.5.12via an npmoverridespin, resolving a high-severity advisory (arbitrary file read / information disclosure via an attacker-controlledsourceMappingURLin CSS comments).
- The CLI (and the MCP server) now resolve the daemon socket via
sysknife-core'sdefault_listen_uri()— the same resolver the daemon and the Tauri GUI already use — instead of a hardcoded production path. Previouslysysknife doctorand every CLI command failed to reach a dev/non-systemd daemon untilSYSKNIFE_SOCKETwas set by hand.$SYSKNIFE_SOCKETstill takes precedence as an explicit override. Thanks to Raúl Cárdenas for the report.
- Dropped backwards-compatibility cruft (the project has never been deployed at
scale, so matched versions are an invariant): the dead
fail2banInvalidIpAddresstype alias, the--codex-onlysetup-wizard flag alias, theinstall-keyVM-script alias, theubuntu-vm"legacy noble" migration shim, and a phantom/tmp/sysknife-daemon.sockpath in the setup wizard. - Documented the
SYSKNIFE_SOCKEToverride 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
- The CLI's
--yes/--max-riskauto-approval now derives each step's risk from the daemon'sActionSpec(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.
- Preview
reboot_required/rollback_availableare now derived from theActionSpec, fixing stale display forRollbackDeployment,AddPpa,RemovePpa, andGrubSetKargs. - 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.
- 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
- 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, andMaskServicenow correctly require High-risk, exact-name approval.
- Reclassified twelve actions against common sysadmin practice — raised
AddAuthorizedKey,RemoveAuthorizedKey,AddPpa,VacuumJournal,ConfigureWifi, andAptAutoremove; loweredRenewCertificates,CreateGroup,AddAuditRule,CreateLvSnapshot,CreateLogicalVolume, andSetServiceResourceLimits. - 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.
- Glama MCP registry listing support (Dockerfile and ownership marker).
- Documented cargo-based MCP Registry publishing, with per-crate READMEs.
- 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)
- 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_executerequires a one-time, TTL-bounded approval receipt bound to the exact plan step. The MCP server cannot mint receipts; onlysysknife approve <transaction-id>in a real terminal can. Missing, expired, mismatched, or replayed receipts are rejected by the daemon. - Structured history IPC —
sysknife_historyreturns typed records (timestamp, risk level, status) over the daemon socket instead of parsed text. - Daemon
cancelverb — 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-setuponboarding 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.
- Approval no longer uses
max_riskas 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.
- Audit chain is Ed25519-signed; verification needs only the public key (non-repudiable, third-party verifiable), with signed checkpoints guarding against truncation.