The 1.8.1 patch fixes a Darwin process-argument parsing edge case and adds bounded-memory coverage for large hook payloads. Version 1.8.0 added worker version status to the CLI and read-only MCP automatic status. The current support scope is Claude Code and Codex on Apple silicon macOS, Ubuntu 24.04 x86_64 and Ubuntu 24.04 x86_64 under WSL2. WSL2 uses the Linux process namespace, writable ext4 and one distribution for both AgentDust and the agent. The exact 1.7.1 archive and npm package passed WSL2 release acceptance in run 38104539057; the release workflow repeats acceptance on exact 1.8.1 artifacts. Automatic cleanup results include their record time. M0 through M3, M6, M7, M10, M11 and M13 are implemented for these support scopes. The Claude Code 2.1.292 fixture matrix covers concurrent sessions, subagents, resume, /clear and abrupt exit. The 1.0.0 Homebrew setup, live session discovery, idle measurement, human decline and approved apply passed on the maintainer's Mac using that exact release binary. See the v1 readiness record, fixture matrix and design spec.
Binary 1.2.0 adds one-confirmation directory batches and auto enable --yes --projects ROOT for user-authorized AI setup. Discovery covers the parent and immediate Git directories. Automatic eligibility still comes from classifier proof, not agent judgement. Uncertain cases require manual approval.
The v1 goal was a macOS developer using Claude Code. Version 1.0 provides manual typed approval; version 1.1 adds opt-in automatic cleanup (commands and limits).
AgentDust should provide local process diagnosis, manual cleanup, opt-in automatic cleanup, TCP port recovery and outcome metrics on macOS, Linux and Windows. Claude Code and Codex are the baseline agent integrations. The shared CLI and MCP contracts carry common operations. Each operating system needs its own process inventory, identity checks, port listener source and release packages. Each agent needs setup and lifecycle attribution that can prove process ownership.
An MCP client can use the common diagnosis and manual tools where its client supports the required protocol features. Automatic cleanup requires a tested adapter that proves exact session ownership and exit. If a client cannot provide that evidence, its integration stays read only or uses explicit manual approval. A client or platform enters the support claim only after its installation, removal, cleanup safety and release checks pass.
| Target | Agent support | State |
|---|---|---|
| macOS arm64 | Claude Code and Codex | Supported in 1.7.0. Codex automatic cleanup waits for every recorded host process to exit. |
| macOS x86_64 | Claude Code and Codex | Deferred pending user demand and architecture-specific release checks. |
| Linux x86_64 | Claude Code and Codex | Supported in 1.7.0 on Ubuntu 24.04 with the data directory on writable ext4. |
| Linux arm64 | Claude Code and Codex | Deferred pending user demand and architecture-specific safety and release checks. |
| Windows x86_64 | Claude Code and Codex | Unsupported. M12 found that Restart Manager shutdown signals the selected helper's console peers. |
| Other MCP clients | Common diagnosis and manual tools where supported | Automatic cleanup needs a client specific lifecycle adapter and separate acceptance. |
The table separates current support from planned targets. A platform and agent pair becomes supported only after its installation, removal, cleanup safety and release checks pass. A host's session end event alone does not prove that a helper is safe to stop. Live, shared, ambiguous and unknown ownership remains protected.
- Release trust, security testing and distribution start in M0, not at the end.
- Only owned-ended and suspect processes can ever be signalled. Suspects need their own approval, and managed or unknown processes are never signalled.
- Automatic cleanup requires a project scope enabled by the human and covers only freshly proven owned-ended processes within that scope. AgentDust's MCP tools cannot enable or broaden that policy. Live, ambiguous, shared across sessions, likely-owned, suspect, managed and unknown processes never enter automatic cleanup.
- Evidence the tool stores is minimised at ingestion. Raw commands, command output and process environments are never persisted.
- Scope is cut before estimates are tightened. The first release is narrow and complete.
- Install:
brew installpours a prebuilt binary and never compiles. On the maintainer's Mac with real Claude Code,agentdust setupcompletes in under 5 seconds of execution time, excluding the person's review and consent wait, and prints a diff before changing anything. - Hook cost: p50 under 10 ms and p95 under 20 ms on the release binary under the concurrent-session and subagent workload in criterion 9.
- Idle: the MCP server does no periodic work when idle. CPU over a 60 second idle window stays under 0.1%. Resident memory is reported per release (target under 10 MB).
- Actionability:
applyrejects managed and unknown items, even when the model supplies their ID. Owned-ended items can be approved as one batch with one typed code. Every suspect item needs its own typed code, shows its evidence, and is never signalled as part of a process group. - Classifier: fixtures carry ground-truth labels (
true_owned_ended,true_live_owned,true_detached,true_managed,true_unknown). No fixture outsidetrue_owned_endedis classified owned-ended, notrue_managedortrue_unknownfixture is ever actionable, and everytrue_owned_endedfixture is classified owned-ended. - Privacy: fixture secrets never appear anywhere under the AgentDust data directory, checked by a test.
- Supply chain: dependencies are locked from the first code commit. Each release ships a checksum, an artifact attestation, an SBOM, and two independent macOS arm64 builds that produce a byte-identical binary.
- End-to-end acceptance: before 1.0, run one controlled check on the maintainer's Mac with the exact v1 release candidate installed from Homebrew. Confirm
command -v agentdustresolves to the formula install andagentdust versionmatches thev1.0.0tag. Record the archive checksum and formulasha256; do not change the tag, assets or formula between the check and stable promotion. Discover a live Claude session, decline one approval and verify zero signals, then approve a harness-created stale helper and verify only that PID receives SIGTERM. A three-Mac, two-week study is optional confidence evidence after 1.0, not a release gate. - Multi-agent isolation: the v1 target matrix covers three concurrent Claude Code sessions and foreground and background subagents in one session. Fixtures cover interleaved events, resume,
/clearand abrupt exit. List a Claude Code version as supported for the lifecycle and attribution behavior represented in its fixtures only after those exact fixtures pass replay. Process signalling safety is established separately by the apply tests. Parent-ended/child-live, child-ended/parent-live, unrelated-session-live and ambiguous/shared ownership cases are covered. A helper is owned-live while any attributed owner is live, and owned-ended only after all attributed owners are proven gone. An unrelated live session does not change the candidate's classification. Ambiguous ownership stays non-actionable. After typed approval, apply revalidates owner liveness and process identity inside the per-process critical section before signaling. Agent Teams remain experimental and unsupported in v1.
| Area | Decision |
|---|---|
| v1 scope | Process hygiene end to end, plus a read-only disk report |
| Language | Rust, one binary, Tokio only in the MCP subcommand |
| Interface | One MCP server with agentdust_doctor, agentdust_plan, agentdust_apply, agentdust_disk, agentdust_port, and read-only agentdust_auto_status, plus a CLI |
| Agents | Claude Code first, including concurrent sessions and subagents; Codex native hooks and host-exit cleanup; Agent Teams experimental; Cursor deferred |
| Provenance | Bounded worker reconciliation and on-demand diagnosis take ephemeral live inventory snapshots and two-point CPU samples. Process markers and journal-derived exact owner identities establish ownership; shell-call records do not identify spawned helper PIDs. Production does not persist process snapshots as journal sample records. |
| Authorization | Manual MCP elicitation with a typed one-time code, or locally enabled directory policy for proven ended-session leftovers; fail closed |
| Plan state | Canonical plan in server memory with an opaque ID. plan.json is for inspection. A server restart invalidates plans |
| Actions in 0.1 | SIGTERM to one exactly revalidated PID. No process-group signals, no SIGKILL |
| Actionable classes | Owned-ended (one batch code) and suspect (one typed code per item). At most 10 items per apply call in total. Managed and unknown are never actionable. Likely-owned stays report-only until its precision is measured |
| Install | Homebrew formula that installs the attested prebuilt binary, then agentdust setup |
| Platform | macOS arm64 first |
| Journal | One O_APPEND file framed with RS, no lock for appenders and readers, an append recheck, 64 KiB frame cap, local APFS on macOS and writable ext4 on Linux |
- Suspect thresholds: the classifier uses a 30 minute age threshold and a two second idle sample. Both are unvalidated heuristics. Suspect items remain advisory, require a separate typed approval and are excluded from automatic cleanup. Calibration is deferred and is not a v1 gate. Revisit it if normal use produces false proposals. See fixture limits.
M10 Linux x86_64 shipped in 1.7.0. M11 WSL2 certification completed in 1.7.1 after source acceptance on PR #70 and exact archive and npm acceptance in release run 38104539057. M12 completed with a no-go for the tested native Windows shutdown path because its control event reached console peers. Journal rotation and retention run from the automatic worker. The isolated worker check in the dogfood record verifies that cleanup outcomes reach local metrics, but natural cleanup and user benefit remain unmeasured. The next product priority is recording useful cleanups, incorrect proposals, deliberate keeps and successful port recovery during ordinary use. Review evidence after the next ten substantive sessions on the available Mac; there is no fixed-duration or multi-Mac gate. A cleanup count does not measure time, CPU or memory saved.
A Homebrew upgrade check found that replacing the installed binary does not replace an already-running worker process. agentdust auto resume refreshed the worker from 1.4.0 to 1.7.1 without changing its 37 enabled directories. Worker-version status reports whether the running worker matches the CLI build, differs or is an unversioned legacy worker. Run resume from the installed binary after an upgrade mismatch. Automatic restart on upgrade remains deferred. The old worker's termination report was not backfilled into M13 metrics. A full Windows provider is not committed. Do not schedule Linux arm64 or Intel Mac until there is demand and the shared runtime gates are complete.
The user-selected scope is automatic cleanup of proven leftovers, with approval for uncertain cases. The opt-in addition preserves the existing manual API and uses 1.1.0 under the release policy. Breaking public contracts would require a major version instead. All four items are implemented. The implementation CI run passed Linux and macOS checks, including isolated normal and abrupt owner exits and survivor restart. An isolated local GUI launchd check separately passed worker start and unload. On 2026-10-11, the installed 1.8.1 Claude Code setup check and foreground worker resume were verified on the maintainer's Mac. The worker matched the CLI build with 37 project scopes enabled. The dogfood record records these checks; natural cleanup value remains unmeasured.
| Order | Deliverable | Completion evidence |
|---|---|---|
| 1 | Human-enabled local policy for explicitly selected projects, pause/off control and a way to keep an intentional long-lived helper. The default manual flow stays available. | A model's MCP request cannot enable the policy, broaden its scope or override a keep decision. Disabled or unreadable policy and an unauthorized project produce no automatic signal. |
| 2 | Automatic owned-ended cleanup through the existing identity checks, owner revalidation, per-process claim and audit. | A proven leftover receives at most one initial SIGTERM. A live owner, shared or ambiguous attribution, changed identity, protected process or suspect produces no automatic signal. |
| 3 | A local worker triggered by lifecycle evidence and exact owner exit, with restart reconciliation and bounded work. Hooks remain short. | Cleanup works after normal and abrupt Claude exits without another model turn. Concurrent sessions and subagents remain protected. No full scan blocks a hook and the disabled mode starts no worker. |
| 4 | A short agent-visible result: stopped, kept, approval required, survivor or unavailable evidence. Record actions, their manual or automatic authorization source, and skipped reasons locally. | Claude can explain what happened using structured results. Declined uncertain cases remain untouched. A surviving helper is reported without escalation to SIGKILL. |
Steps 1 through 4 form one usable release. An MCP-only prototype can exercise the policy while Claude is active, but does not complete cleanup after the agent exits.
Measure useful cleanups, incorrect proposals, deliberate keep decisions and time saved during normal use on the available Mac. Controlled scenarios establish the execution rules; real incidents establish product value. No fixed multiweek study is a release gate. If normal use produces no useful incidents, record that result and reconsider further investment.
Port-conflict diagnosis and recovery are implemented in 1.4.0: identify current-user-visible TCP listeners, classify through the full process inventory, apply only the existing automatic policy, then rescan listeners. Uncertain actionable listeners use the existing plan/apply approval flow. See port scope and limits. Memory and CPU figures provide context, not permission to stop a process. Disk deletion, general resource dashboards and remote host bridges are outside this milestone.
| Scope | State |
|---|---|
| M0 through M3, M6, M7 and M13 | Implemented for the documented macOS arm64 scope. M2 uses ephemeral live inventory with marker-based ownership; independent persisted descendant attribution is outside this support scope. Suspect-threshold calibration is deferred, not a v1 gate, and remains open in issue #17. |
| Claude Code on macOS arm64 | Supported; lifecycle and controlled Homebrew acceptance are recorded |
| Codex on macOS arm64 | Hook and MCP integration is available; automatic cleanup waits for exact host exit |
| Linux x86_64 | Supported in 1.7.0 on Ubuntu 24.04 with writable ext4 data directories |
| WSL2 | Supported in 1.7.1 on Ubuntu 24.04 x86_64. Source, exact archive and npm acceptance passed |
| Native Windows | Not supported; M12 no-go because the no-force Restart Manager path signaled sibling and descendant processes in run 38106774812 |
| Other AI agents | Common MCP diagnosis and manual tools are possible; automatic cleanup needs a client specific adapter |
| M9 controlled Homebrew acceptance | Complete; measurement limits remain in the readiness record |
| Plugin/setup guidance | Guidance package 0.8.0 explains setup readiness, agent-guided port recovery and automatic results |
| Automatic cleanup | Implemented for 1.1.0; 1.5.0 adds per-result record times. The ten-session dogfood checkpoint reports no incidents; reconsider further investment before adding features. |
| M13 local outcome metrics | Included in 1.6.0; history begins when a metrics-enabled build records cleanup results |
| Worker upgrade visibility | Worker status reports its build; use agentdust auto resume after an upgrade mismatch or for a legacy worker |
| Port-conflict recovery | Implemented in 1.4.0; measure useful recovery during normal use |
| M8 directory submission and upstream work | Optional |
| Codex desktop cleanup while its server stays alive | Deferred until session revocation and live subagent protection have a separate proof |
| M5 Cursor | Deferred until its lifecycle and ownership evidence can pass the same safety checks |
| Other MCP hosts | Manual diagnosis and approval tools are available where the client supports the required MCP approval behavior. Automatic cleanup requires a separate lifecycle adapter and proof of ownership and exit. |
| M10 through M12 | M10 shipped in 1.7.0; M11 completed in 1.7.1; M12 completed with a no-go for the tested Windows shutdown path |
Sizes are rough: S about 3 days, M about 1 week, L about 2 weeks. Validation work, not code, dominates every milestone.
- Hook binary that reads JSON on stdin and appends one event.
KERN_PROCARGS2parser with a fuzz target, reading one named variable from another process.- Process start time and process group for a live PID.
- MCP stdio server running a real typed-code elicitation on Claude Code, Codex and Cursor, with a recorded matrix of client versions and behaviours (empty form, auto-accept, decline, cancel, timeout).
- Release skeleton on a public-repo macOS arm64 runner:
cargo build --release --locked, two clean builds compared byte for byte, tarball, checksum, attestation, and a minimal Homebrew formula that installs it and runsagentdust version. - Repository basics: licence, SECURITY.md, squash-only merge settings, dependency policy (
cargo deny,cargo audit, no unpinned git dependencies), toolchain and SDK versions recorded.
Exit: hook p50 under 10 ms on the real binary, the elicitation matrix recorded, and the build, attestation and Homebrew install proven or their blockers written down. No public release.
- Process identity (PID, start time, UID, executable), with property tests.
- Journal: minimal fields only (session ID, wall and monotonic timestamps, keyed working directory digest, tool-call ID, executable basename), file permissions 0600, retention and rotation, schema version that fails closed on unknown versions, corrupt-state recovery.
- The 3 and 16 writer benchmark that picks the ledger format.
- Written threat model covering a malicious model, malicious process metadata, a buggy MCP client, same-user tampering, PID reuse, concurrent apply, stale plans and a compromised release artifact.
- Live process-tree test harness that spawns real fixture processes (cooperative and SIGTERM-ignoring children, detached sessions, children that exit during approval) and only signals PIDs it created.
- Fixture schema with ground-truth labels.
Exit: primitives and storage survive unit, property, fuzz and concurrency tests, and the privacy test passes.
- Process inventory and classifier (owned-ended, likely-owned, suspect, managed, unknown). Listening-port evidence was outside M2 and shipped separately in 1.4.0.
- Suspect rules: parent is launchd or the launcher chain is dead, same UID, older than the age threshold, idle, not managed by launchd or Homebrew services, and not on a deny list (system processes, the agent that is asking, the AgentDust server itself).
- Claude Code adapter:
SessionStartenvironment tag throughCLAUDE_ENV_FILE,PreToolUseandPostToolUsewith a Bash matcher paired bytool_use_id. Doctor and worker reconciliation take ephemeral live inventory snapshots and compare CPU across the idle sample gap. Ownership comes from readable process markers and journal-derived exact owner identities; snapshots are not persisted and do not independently attribute descendants. - Acceptance cases: fresh session, resumed session, after
/clear, subagent Bash,CLAUDE_ENV_FILEmissing, abrupt termination, normal session end. - Sanitised, typed, redacted
doctoroutput.
Exit: controlled Claude fixtures become owned-ended only after every exact attributed owner is proven gone. A SessionEnd event alone does not prove that its process ended. No protected or non-owned fixture becomes actionable.
agentdust_planandagentdust_applywith typed-code elicitation, atomic per-item claim, revalidation after approval, SIGTERM to one PID, survivor report, audit log (0600, bounded size).- Approval flow: one batch code for owned-ended items, then one code per suspect item with its evidence rendered from a fixed template. A deliberately detached process such as a tunnel can be classified suspect, so the per-item prompt is the control.
- Fail-closed behaviour on decline, cancel, timeout, unsupported clients and corrupt state.
- Terminal
agentdust applywith the same rules, refusing without a foreground terminal or under an agent ancestor. agentdust setupfor Claude Code: full diff, consent, surgical edits, idempotent,--check,--remove, ownership manifest, rollback report for partial failure.- Homebrew formula,
agentdust support-bundle(a local file, never uploaded), README, security and privacy documents.
Acceptance: the exact Homebrew 1.0 binary passed setup, live discovery, human decline and approved one-helper cleanup on the maintainer's Mac. A separate clean-account run and setup execution time are unmeasured, as recorded in the readiness record. They are not additional 1.0 release gates.
- Six native user hooks under
CODEX_HOME, paired Bash calls and native MCP registration throughcodex mcp add. CODEX_SESSION_IDis correlated with hook session IDs through a separate keyed digest. No command rewriting or transcript parsing.- Exact runtime identities control liveness. Session end and subagent turn completion do not replace host exit. Concurrent and resumed hosts sharing a session marker all stay in the ownership set.
- Missing ancestry, a host switch without a recorded session start and mixed Claude/Codex markers cannot grant automatic cleanup.
- Setup install, removal, idempotence, rollback and user-setting preservation tests are in
crates/agentdust-agents/tests/codex_setup.rs.
Deferred extension outside the current support contract: immediate cleanup after one desktop chat ends while its shared server stays alive. Reopening this requires an independently defensible session revocation signal, verified resume behavior and protection for live subagents. The current adapter waits for exact host exit. See support and limits.
~/.cursor/hooks.jsonwithafterShellExecution, MCP registration.- Its own acceptance matrix and setup rollback tests.
- Record fixtures for three concurrent sessions and two active subagents in one session. Interleave shell and lifecycle events; cover foreground and background subagents, resume,
/clearand abrupt exit. Record each client's version and sanitized hook data in the M6 fixture log. Support claims apply only to exact Claude Code versions with a complete core scenario matrix that passes replay. Agent Teams are experimental and are not part of the v1 support claim. - Route records by agent and session ID, then use exact process identity to resolve resumed scopes and additional owners. The keyed subagent ID groups lifecycle activity; it does not identify the process owner. If Agent Teams are evaluated later, teammates are separate Claude Code instances and need independent session and process scopes when those identities are present. Every tag resolves to exact attribution scopes; a candidate may have multiple owners. Missing or ambiguous ownership stays non-actionable. Test parent
SessionEndwhile its process is live, subagent stop while the parent is live, unrelated session live, resumed sessions, and shared ownership. Assert owned-live while any attributed owner is alive or unverified, owned-ended only after every exact owner is proven gone, and no classification change from an unrelated session. - Record and test
SubagentStartandSubagentStop. Include missing IDs, failed ID digests, child events before parent start, duplicate starts, repeated and blocked stops, late events across resume and/clear, and abrupt exits. A stop or abrupt-exit event alone does not establish that its owner ended. Require fresh liveness evidence for every exact owner identity; unknown stays non-actionable, and stale events cannot close a newer owner scope. - Race
applyacross separate MCP server processes, including owner or process identity changes during approval. After approval, revalidate owner liveness and process identity inside the per-process critical section before signaling. Assert zero signals if an owner resumes or ownership becomes ambiguous. At most one initialSIGTERMis sent per process identity, and no lock is held while waiting for user input. - Keep concurrent append and competing apply checks as regression gates. Expand fixtures for journal version drift and
brew upgrade; unsupported or ambiguous evidence never becomes actionable. Reviewunsafecode and supported host and MCP version drift. - Measure hook p50 and p95 against the release binary target under the supported session and subagent workload. After beta, use the dogfood record to note attribution errors, false proposals, blocked applies, signals, failures and latency when available. Field observations inform follow-up work but do not extend the v1 release gate.
Use agent_id, agent_type, SubagentStart and SubagentStop from the Claude Code hooks reference. Agent Teams behavior is described in the Agent Teams documentation.
Implementation note: new agent_id values are stored as keyed digests for activity correlation. Record routing uses the agent and raw session_id, then exact process identity. agent_type, transcript paths and transcript contents are ignored. Missing IDs, failed digests and child-first events make that session non-actionable. Schema version 2 fences older readers, which otherwise could skip the only record of a live additional owner. Apply stores the exact attribution owner set with the approved plan item and compares it with a fresh survey while holding the per-process lock.
Exit: at least one exact Claude Code version has a complete core scenario matrix that passes replay, and criterion 9 passes for every version listed as supported. No protected or ambiguous candidate receives a signal. Competing apply sends at most one initial SIGTERM per process identity. Hook latency meets criterion 2. Agent Teams remain experimental until separately validated.
- Claude Code configuration and current-project worktree inventory through
agentdust disk [--json]andagentdust_disk. Entries are classified rebuildable, history, worktree, application state or unknown. Logical and allocated size are reported separately. Partial scans are marked. Nothing is deleted. Scope and limits.
- The cleanup plugin code was added in PR #20. Optionally submit it to Anthropic's directory and add a technical comment on anthropics/claude-code#1935 requesting a lifecycle event with the PID and session of spawned processes.
Exit: optional. Directory acceptance and upstream response are not v1 gates.
- The controlled 1.0 release acceptance is complete. Passed checks and measurement limits are recorded separately in the readiness record. A release, merge or test pass closes only the criterion it directly verifies. Process-group signals and
SIGKILLremain deferred.
- Record manual and automatic cleanup results in a private JSONL log with only time, mode, classifier and result.
- Provide
agentdust metrics [--json]and a read-onlyagentdust_metricsMCP tool with totals and daily chart buckets. - Bound history to a 5 MiB active file and one rotated generation. Do not upload metrics or estimate time, CPU or memory savings.
Exit: privacy checks cover the stored fields and file permissions; CLI and MCP return the same aggregate contract; daily buckets cover every retained result and show an empty history before the first metrics event.
The MCP tool contract is shared, but MCP does not provide session lifecycle evidence. Claude Code and Codex remain the first class integrations. Other compatible clients can use diagnosis and manual tools where their approval behavior is supported. Automatic cleanup stays disabled until a client specific adapter proves ownership and exit.
AgentDust currently exposes a local stdio MCP server and can signal local processes after typed approval. Publishing it to another AI host needs a client-specific package or transport and a client-specific safety review. This work does not add another operating system or declare a host supported before its acceptance checks pass.
- Claude Desktop: build a private
.mcpbpackage and verify binary installation, version reporting, Claude Code hook setup, typed elicitation, decline, cancellation, timeout, unsupported capabilities and post-approval revalidation in that client. Submit a local desktop extension to Anthropic's extension directory only after the package and approval checks pass. The Claude Desktop guide distinguishes local desktop extensions from remote connectors. - Slack: implement and test an authenticated Streamable HTTP bridge that remains attached to the user's Mac. Slack's MCP client requires HTTPS Streamable HTTP and does not accept stdio. Verify signed Slack requests before trusting caller metadata. Keep
agentdust_applyhidden and reject direct apply calls in remote mode. Test account binding, revocation, tunnel loss and sanitized responses before requesting Slack Marketplace review. - ChatGPT: test a private Secure MCP Tunnel from the user's machine, with remote mode limited to read-only tools. Omit apply from discovery and reject direct calls server-side. Bind the tunnel to the intended user and Mac, and document that tool results pass through ChatGPT. OpenAI's MCP app guide distinguishes private tunnel testing from public app distribution. Public ChatGPT directory submission is deferred and needs a separate design with a stable, publicly reachable HTTPS endpoint.
- Keep process signaling local until that host has a proven user identity, typed approval, decline and cancellation behavior, timeout handling, and fresh process identity checks after approval. A host's generic confirmation prompt does not replace AgentDust's typed approval.
- Submit Claude Desktop and Slack directory listings only after each host's package, authentication, privacy and safety review passes. Workspace publication and public directory listing are separate release steps. ChatGPT directory publication is outside this milestone.
Exit: Claude Desktop package works on a clean account with the required local setup; Slack read-only mode cannot reach apply, including by direct tool call; the private ChatGPT tunnel passes a read-only test and rejects direct apply calls. Public ChatGPT listing and remote apply are not exit requirements.
macOS arm64 and Linux x86_64 are shipping platforms. Linux support is limited to Ubuntu 24.04 x86_64 with writable ext4 data directories. WSL2 is supported through the Linux provider. M12 found that Restart Manager shutdown signals console peers, so native Windows cleanup remains unsupported. Ordinary-use outcome evidence is the next product priority. Linux arm64 and Intel macOS depend on user demand and architecture-specific safety and packaging checks. Agent support is tested with Claude Code and Codex on each target. Other operating systems and agents stay out of the support claim until their matrix entries pass.
The controlled Homebrew acceptance is complete for Claude Code on Apple silicon. Codex automatic cleanup still waits for exact host exit. Field observations on the available Mac continue in parallel with platform work. A multi Mac study is optional confidence evidence.
Linux support in 1.7.0 is limited to Ubuntu 24.04 x86_64 with the AgentDust data directory on writable ext4.
PR #68 added the Linux process provider, Claude Code and Codex setup, lifecycle hooks, MCP diagnosis and approved apply, opt-in automatic cleanup, TCP port diagnosis and recovery, systemd user worker, and Linux x86_64 release packaging. The exact merged main CI run 38091638966 passed Linux and macOS checks. The 1.7.0 release workflow 38092195368 passed the Linux and macOS build, package, acceptance, checksum, SBOM, provenance and Homebrew smoke gates.
- Linux inventory uses boot ID,
/proc/<pid>/statstart time, effective UID, executable path, CPU time and exact identity rechecks. Bounded reads and ambiguous or changing process data fail closed. Systemd cgroup names remain heuristic evidence. - Classifier and owner liveness tests cover PID churn and reuse, reparenting, credentials, permission denial, service and scope cgroups, containers, and zombies.
- Linux journal writes require writable ext4. Ubuntu CI exercises private permissions, concurrent append, rotation, locking, torn tail recovery and refusal after a read-only remount.
- Claude Code and Codex install, check, remove and hook behavior are tested separately. Linux setup configures hooks and the local MCP server only when its data directory passes the filesystem gate. Removal remains available when it does not.
- Manual apply uses pidfd identity revalidation, authoritative systemd unit lookup and
pidfd_send_signal; missing evidence refuses the signal. The Ubuntu tests cover decline, cancellation, identity changes, pidfd behavior and competing apply. - Automatic cleanup is opt in, uses the shared project policy, and runs through a systemd user service. Live owners and kept processes survive; eligible helpers from ended sessions are stopped once. Port inventory rechecks process identity, listener inode and network namespace, and fails closed when it cannot establish scope.
- Release Actions build two independent Linux x86_64 binaries, package the native archive and npm launcher, compare binaries, test native installs, and attach checksums, SBOM and provenance.
Exit: complete. Ubuntu 24.04 x86_64 acceptance passed for Claude Code and Codex, including setup, removal, lifecycle, approval, cleanup, port recovery, metrics, pidfd identity and race checks, ext4 journal checks, and native and npm release package installation.
Run AgentDust and the agent inside one Ubuntu 24.04 WSL2 distribution. Use the existing Linux x86_64 release package and process provider. Keep discovery, identity checks and signals inside the WSL2 Linux process namespace. Reject data directories on /mnt/c and other non-ext4 volumes. See the WSL2 runtime limits.
Acceptance uses controlled fixtures for Claude Code and Codex setup, check and removal; hooks and MCP; doctor, plan and approved apply; opt-in cleanup after normal and abrupt owner exit; and controlled TCP port recovery. These lifecycle fixtures do not launch the Claude Code or Codex client binaries. The exact release archive is checked for version, /mnt/c refusal, worker lifecycle and Windows process isolation. The exact npm tarball is installed and its Linux binary is compared with the archive. Launch a Windows PowerShell process through WSL interop, verify it is absent from Linux /proc and AgentDust findings, and confirm it stays alive during the inventory. Verify that the default WSL data path uses ext4. Document that stopping WSL stops its worker and that systemd does not keep the distro alive.
Exit: complete. The controlled source matrix passed on PR #70 in a clean WSL2 distribution. The exact 1.7.1 archive and npm package passed release acceptance in run 38104539057. WSL2 remains a Linux deployment, not native Windows support.
Native Windows remains unsupported. The bounded probe registered one existing console helper by PID and creation time, checked the affected process list, then called RmShutdown without its force flag. It found that the selected target exited, but its sibling and descendant also received CTRL_C_EVENT. It also checked a mismatched creation time paired with a live PID. The Windows feasibility record includes the exact run and result.
Exit: no-go for this Restart Manager path. Windows Actions run 38106774812 recorded CTRL_C_EVENT in both the sibling and descendant. The exact-head repeat in run 38106976385 confirmed the result with the hardened cleanup and API checks. Do not implement a provider on this evidence. Reopen only if a different graceful action can target one existing process without signaling peers and demand merits the work. WSL2 does not count as native Windows support.
With WSL2 shipped and M12 closed as a no-go for the tested Windows path, ordinary-use outcome evidence remains the next product priority. Rank Linux arm64 and Intel macOS by user demand, shared safety coverage and release cost before adding their build matrices. Each architecture needs the Claude Code and Codex setup, lifecycle and apply gates before it is listed as supported.
Immediate per-chat Codex cleanup while a shared host remains alive, the Cursor adapter, process-group signals, SIGKILL, UDP and non-listening socket conflicts, persisted plans, disk deletion or quarantine, additional daemon services, time-based cleanup scans, self-update, remote MCP transport.
The M8 plugin directory submission and upstream issue comment are optional. Neither is required for v1.
| Risk | Mitigation |
|---|---|
| MCP clients differ in elicitation behaviour | M0 matrix, pinned SDK, typed-code regression tests, refuse apply on any failing client |
CLAUDE_ENV_FILE is missing on resume, /clear or in plugin hooks |
Tag is additive evidence only, with explicit acceptance cases |
| Hook latency grows under journal contention | 3 and 16 writer benchmark in M1, hard budget in CI |
| Missing Codex native markers or host identity, and weaker Cursor provenance | Codex requires its native marker and every exact recorded host gone. Incomplete evidence stays report-only. Cursor remains deferred |
| A suspect is a deliberately detached process | Evidence shown per item, one typed code per item, SIGTERM only, audit log and deny list. Count false proposals during ordinary use; controlled fixtures establish safety rules |
| Secrets in commands reach the journal | Ingestion minimisation, privacy invariant test |
| Config patching damages a user file | Surgical edits, diff plus consent, per-product rollback, --check, --remove |
| Release trust discovered too late | Release skeleton and reproducibility experiment in M0 |
| Host formats change | Versioned adapter code tested against old and current client versions |
- Test layers: unit and property tests, recorded fixtures, live process-tree tests, MCP contract tests, packaged install acceptance, release-artifact smoke tests.
- One CI run per change, no scheduled workflows. Linux CI runs lint, unit and property tests, fuzz seed replay, ext4, systemd, pidfd, port, automatic cleanup and npm checks. macOS CI runs full tests, package checks, hook latency, automatic cleanup and port recovery. M11 adds a Windows hosted runner that provisions Ubuntu 24.04 under WSL2 and runs the WSL acceptance matrix.
- No new runtime dependency without an allowlist line explaining why.
- Every milestone ends with a measured exit criterion, not a feature list.