Skip to content

v0.4.0

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 22 Oct 04:12
· 146 commits to main since this release
68b9c20

What's new in v0.4.0

The user-workflows plan shipped. Five additions, all opt-in, all documented in the README and tret --help:

  • tret inspect <tool> — a read-only health check for one record: capture confidence, the observation window and its segments, the paths Tret believes it owns and whether they still match their installed fingerprint, the files changed since install and whether a before-image can restore them, and exactly what uninstall would do. It writes nothing.
  • tret trace <tool> — run a tracked tool inside a bounded observation window and append what it writes to the record as its own { kind: "trace" } segment. It asks first, it never runs a tool silently, and it never takes a path away from another record: a path another record claims is reported and skipped.
  • tret update <tool> — re-run a tool's recorded installer with the arguments the record kept. The replacement is fetched and its SHA-256 checked before the working install is touched, so a failed download or validation leaves the previous install in place and the failure is recoverable.
  • --json — one JSON document on stdout for list, inspect, trace, forget, uninstall, and update, with stable exit codes (0 succeeded, 1 failed, 2 bad command line, 3 no tracked install matched, 4 several matched, 5 needs explicit consent or force). Human output and installer output never mix into the data stream.
  • tret install --name <name> — record a tool under a display name. Every single-record command resolves its argument the same way: a record id, a unique display name, or the list of candidates when a name is shared by several records.

tret install now prints the installer's URL, its SHA-256, and a preview of the script before it runs, and states plainly that Tret records what the installer changes but does not sandbox it or prevent malware.

Capture gaps in this release

These are unchanged from earlier releases and are named here so they are not mistaken for complete coverage:

  • macOS capture is always heuristic: a scoped before/after snapshot with no process attribution, so an unrelated write inside the scope during the window can be attributed to the install.
  • A Linux window is complete only when the traced process tree was fully observed. Memory-mapped writes, kernel-side copies, ownership and extended-attribute changes, and hard links cannot be represented in a record and lower the window to partial with the reason attached. A daemonized descendant still alive at close has the same effect.
  • Install capture ends with the window. Writes a tool makes on later runs are recorded only when you run it through tret trace <tool>, which appends a separate segment.
  • Backups are off by default. Without --backup, mutations and deletions are detected but not restorable; with it, only eligible regular files within the size limit are restorable.
  • Windows is not supported.

Upgrading

tret update replaces the binary in place and verifies it against the published checksum. The record format is unchanged and no migration is needed.


What's Changed

Full Changelog: v0.3.3...v0.4.0