Repository navigation
Releases
targetwarden v0.1.3
Fixed
- Prevent
EMFILE(Too many open files) lock-probe failures duringR3
incremental/pruning and full-target eviction on workspaces with hundreds or
thousands of stale incremental session lock files: holdO(1)root/profile
locks continuously, probes-*.lockfiles uncontested withO(1)open file
descriptors before mutating, and stageincremental/removals in bounded
batches (<= 64held session locks) with globally unique staging names. - Raise the process soft
RLIMIT_NOFILEup tomin(hard, 8192)on Unix startup
(usingrustix, preservingunsafe_code = "forbid") and configure
SoftResourceLimits.NumberOfFiles = 8192in the rendered macOS LaunchAgent
plist so backgroundwatchruns 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 shArchives 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
Changed
- Persist a shallow-stamped, backward-compatible
inventory_cache(with a 1-hour
computed_at_unixTTL and Cargo v2build/<pkg>directory hashing) in
state.jsonso read-onlystatusandscanskip redundant full directory
walks across unchangedtarget/trees whilereclaimandwatch
(ScanDetail::Full) continue walking live disk state. - Pass
-land-S 2to/usr/sbin/lsofand raiseLSOF_TIMEOUT_SECSfrom
10sto20sto reduce spurious fail-closed timeouts under heavy load while
preserving strict status and stderr validation.
Fixed
- Identify sibling
targetwardenprocesses by canonicalizedcurrent_exe()
path inProcessSnapshot::is_self_or_siblingso concurrentstatus/scan
runs no longer trigger falseprocess_open_in_target:targetwardenskips
while spoofed binaries with the same process name still hard-block. - Invalidate cached target inventory on both
AppliedandFailedreclaim
receipts.
Install or upgrade
curl -fsSL https://github.com/Dankosik/targetwarden/releases/download/v0.1.2/install.sh | TARGETWARDEN_VERSION=v0.1.2 shArchives 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
Changed
- Stream
lsofoutput directly into a cross-PID interned byte-arenaPathPool
and compactBuildUnit/ProfileDirstorage, eliminating per-FDPathBuf
churn and raw V1deps/filename retention (4.1–4.9× lower peak memory on
multi-target scans and reclaims). - Switch profile discovery,
.fingerprint/*.jsonreads, post-lock
revalidation, and safe tree removal to FD-anchoredrustixsyscalls with
reusable scratch buffers and deterministic single-threaded target scanning to
eliminate APFS metadata lock contention (20–55% lower system CPU and cycles). - Release
ScanSnapshotand safety verdicts before executing reclaim plans,
tail-seekactions.jsonlfrom EOF when reading recent history, and stream
text reports without constructing JSON intermediate structs. - Set
MallocSpaceEfficient=1in the rendered macOS LaunchAgent plist,
reducing sleepingwatchdaemon physical memory footprint from ~10.7 MB to
~1.0 MB.
Fixed
- Disable primary-device
d_inohardlinkstatatskipping when/sbin/mount
is unavailable (fail-closed) and align symlink accounting betweenInventory
andFullscan modes. - Open fingerprint JSON and companion files with
O_NONBLOCKand handle
PathPoolbounds 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 shArchives 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
Added
- Read-only discovery and status commands (
status,scan) with GiB tables
andschema_version = 1JSON output acrossBuildDirV2(Cargo1.100+),
LegacyV1(1.98–1.99),MixedV1V2, andArtifactsOnlylayouts. - Surgical intra-target sweep (
R2build-unit BFS reachability graph, stale
target/doc/pruning, orphaned V1deps//build/cleanup, empty V2
package directory cleanup, and two-levelR3incremental/pruning) that
preserves hot caches and active builds. - Disk-pressure-aware full target eviction (
R1merged/dead linked worktrees,
R4cooled linked worktrees,R5pressure LRU with APFS GiB hysteresis and
ReclaimHoldStatelocal-snapshot circuit breaker). - Six fail-closed safety barriers (
O_RDONLYFile::try_lock(), bounded NUL
lsof -n -P -F0pcftnwithrust-analyzer-proc-macro-srv.dylib
auto-pinning,/sbin/mountand symlink validation, local Git inspection,
nested--target-dirprotection propagation,pin/unpin/.targetwarden-pin,
and TOCTOU-safe staging rename +rustixfd-anchored safe removal with crash
recovery). - Adaptive background daemon (
watch), gracefulSIGTERM/SIGINTself-pipe
shutdown, rotatingactions.jsonlhistory (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, andinstall.sh.
Install or upgrade
curl -fsSL https://github.com/Dankosik/targetwarden/releases/download/v0.1.0/install.sh | TARGETWARDEN_VERSION=v0.1.0 shArchives 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.