Skip to content

Releases

targetwarden v0.1.3

Choose a tag to compare

@github-actions github-actions released this 29 Nov 09:23
49f15c6

Fixed

  • Prevent EMFILE (Too many open files) lock-probe failures during R3
    incremental/ pruning and full-target eviction on workspaces with hundreds or
    thousands of stale incremental session lock files: hold O(1) root/profile
    locks continuously, probe s-*.lock files uncontested with O(1) open file
    descriptors before mutating, and stage incremental/ removals in bounded
    batches (<= 64 held session locks) with globally unique staging names.
  • Raise the process soft RLIMIT_NOFILE up to min(hard, 8192) on Unix startup
    (using rustix, preserving unsafe_code = "forbid") and configure
    SoftResourceLimits.NumberOfFiles = 8192 in the rendered macOS LaunchAgent
    plist so background watch runs are no longer constrained to launchd's
    default 256-FD soft limit.

Install or upgrade

curl -fsSL https://github.com/Dankosik/targetwarden/releases/download/v0.1.3/install.sh | TARGETWARDEN_VERSION=v0.1.3 sh

Archives are for macOS on Apple Silicon (aarch64-apple-darwin) and Intel (x86_64-apple-darwin); SHA256SUMS lists their checksums. Each archive has a build provenance attestation: gh attestation verify <archive> --repo Dankosik/targetwarden.

targetwarden v0.1.2

Choose a tag to compare

@github-actions github-actions released this 28 Nov 10:28
29f8f0f

Changed

  • Persist a shallow-stamped, backward-compatible inventory_cache (with a 1-hour
    computed_at_unix TTL and Cargo v2 build/<pkg> directory hashing) in
    state.json so read-only status and scan skip redundant full directory
    walks across unchanged target/ trees while reclaim and watch
    (ScanDetail::Full) continue walking live disk state.
  • Pass -l and -S 2 to /usr/sbin/lsof and raise LSOF_TIMEOUT_SECS from
    10s to 20s to reduce spurious fail-closed timeouts under heavy load while
    preserving strict status and stderr validation.

Fixed

  • Identify sibling targetwarden processes by canonicalized current_exe()
    path in ProcessSnapshot::is_self_or_sibling so concurrent status/scan
    runs no longer trigger false process_open_in_target:targetwarden skips
    while spoofed binaries with the same process name still hard-block.
  • Invalidate cached target inventory on both Applied and Failed reclaim
    receipts.

Install or upgrade

curl -fsSL https://github.com/Dankosik/targetwarden/releases/download/v0.1.2/install.sh | TARGETWARDEN_VERSION=v0.1.2 sh

Archives are for macOS on Apple Silicon (aarch64-apple-darwin) and Intel (x86_64-apple-darwin); SHA256SUMS lists their checksums. Each archive has a build provenance attestation: gh attestation verify <archive> --repo Dankosik/targetwarden.

targetwarden v0.1.1

Choose a tag to compare

@github-actions github-actions released this 27 Nov 23:40
6535172

Changed

  • Stream lsof output directly into a cross-PID interned byte-arena PathPool
    and compact BuildUnit/ProfileDir storage, eliminating per-FD PathBuf
    churn and raw V1 deps/ filename retention (4.1–4.9× lower peak memory on
    multi-target scans and reclaims).
  • Switch profile discovery, .fingerprint/*.json reads, post-lock
    revalidation, and safe tree removal to FD-anchored rustix syscalls with
    reusable scratch buffers and deterministic single-threaded target scanning to
    eliminate APFS metadata lock contention (20–55% lower system CPU and cycles).
  • Release ScanSnapshot and safety verdicts before executing reclaim plans,
    tail-seek actions.jsonl from EOF when reading recent history, and stream
    text reports without constructing JSON intermediate structs.
  • Set MallocSpaceEfficient=1 in the rendered macOS LaunchAgent plist,
    reducing sleeping watch daemon physical memory footprint from ~10.7 MB to
    ~1.0 MB.

Fixed

  • Disable primary-device d_ino hardlink statat skipping when /sbin/mount
    is unavailable (fail-closed) and align symlink accounting between Inventory
    and Full scan modes.
  • Open fingerprint JSON and companion files with O_NONBLOCK and handle
    PathPool bounds fail-closed without panicking.

Install or upgrade

curl -fsSL https://github.com/Dankosik/targetwarden/releases/download/v0.1.1/install.sh | TARGETWARDEN_VERSION=v0.1.1 sh

Archives are for macOS on Apple Silicon (aarch64-apple-darwin) and Intel (x86_64-apple-darwin); SHA256SUMS lists their checksums. Each archive has a build provenance attestation: gh attestation verify <archive> --repo Dankosik/targetwarden.

targetwarden v0.1.0

Choose a tag to compare

@github-actions github-actions released this 27 Nov 19:01

Added

  • Read-only discovery and status commands (status, scan) with GiB tables
    and schema_version = 1 JSON output across BuildDirV2 (Cargo 1.100+),
    LegacyV1 (1.98–1.99), MixedV1V2, and ArtifactsOnly layouts.
  • Surgical intra-target sweep (R2 build-unit BFS reachability graph, stale
    target/doc/ pruning, orphaned V1 deps//build/ cleanup, empty V2
    package directory cleanup, and two-level R3 incremental/ pruning) that
    preserves hot caches and active builds.
  • Disk-pressure-aware full target eviction (R1 merged/dead linked worktrees,
    R4 cooled linked worktrees, R5 pressure LRU with APFS GiB hysteresis and
    ReclaimHoldState local-snapshot circuit breaker).
  • Six fail-closed safety barriers (O_RDONLY File::try_lock(), bounded NUL
    lsof -n -P -F0pcftn with rust-analyzer-proc-macro-srv .dylib
    auto-pinning, /sbin/mount and symlink validation, local Git inspection,
    nested --target-dir protection propagation, pin/unpin/.targetwarden-pin,
    and TOCTOU-safe staging rename + rustix fd-anchored safe removal with crash
    recovery).
  • Adaptive background daemon (watch), graceful SIGTERM/SIGINT self-pipe
    shutdown, rotating actions.jsonl history (history), shell completions
    (completions), and macOS LaunchAgent management (install [--dry-run] [--watch-dry-run],
    uninstall).
  • Native macOS release archives (aarch64-apple-darwin, x86_64-apple-darwin),
    SHA256SUMS, build provenance attestations, and install.sh.

Install or upgrade

curl -fsSL https://github.com/Dankosik/targetwarden/releases/download/v0.1.0/install.sh | TARGETWARDEN_VERSION=v0.1.0 sh

Archives are for macOS on Apple Silicon (aarch64-apple-darwin) and Intel (x86_64-apple-darwin); SHA256SUMS lists their checksums. Each archive has a build provenance attestation: gh attestation verify <archive> --repo Dankosik/targetwarden.