Repository navigation
feat(cli): remove stale process descriptors in dirctl daemon - #2373
Merged
Merged
Conversation
…t json The JSON output wrapped each workload in a summary that repeated its name, skills, domains and locators next to the full workload. JSON and JSONL now print the workloads exactly as runtime discovery returns them, each field once; the default output summarizes them and raw prints IDs. Signed-off-by: András Jáky <[email protected]>
Locators, skills, domains and authors print under one plural label
instead of one row each, and the runtime is printed once with the
workload type only when it differs ("docker (container)", "process").
Signed-off-by: András Jáky <[email protected]>
Each runtime has one workload type (docker: container, kubernetes: pod, process: process), so the type said nothing the runtime didn't. It stays in the JSON output. Signed-off-by: András Jáky <[email protected]>
Pin dir-runtime/discovery to agntcy/dir-runtime#114, which removes the descriptors of processes that are gone and tells a reused PID from the original process, and expose its keep_stale setting under runtime.adapter.process. Signed-off-by: András Jáky <[email protected]>
There was a problem hiding this comment.
🟡 Changes recommended
The pinned cleanup implementation can delete a concurrently replaced live descriptor, making its workload undiscoverable.
1 open finding
What changed in this PR
Updates daemon process discovery to remove stale descriptors and detect reused PIDs when start timestamps are available.
Changes:
- Pins discovery to the upstream cleanup revision.
- Adds and documents the
keep_staleopt-out, defaulting tofalse. - Updates CLI and test-module dependency checksums.
| File | Description |
|---|---|
| tests/go.sum | Updates discovery checksums. |
| tests/go.mod | Aligns the test dependency pin. |
| cli/go.sum | Updates discovery checksums. |
| cli/go.mod | Pins the upstream cleanup implementation. |
| cli/cmd/daemon/daemon.config.yaml | Documents cleanup and its opt-out. |
| cli/cmd/daemon/config.go | Registers the keep_stale default. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
…ime#114 Signed-off-by: András Jáky <[email protected]>
akijakya
marked this pull request as ready for review
October 15, 2026 15:06
…w fixes Signed-off-by: András Jáky <[email protected]>
akijakya
added a commit
to agntcy/shadi
that referenced
this pull request
Oct 15, 2026
Build dirctl from agntcy/dir#2373's branch until #2366 and #2373 are merged, give step 8's SLIM agents a fixed card port the sandbox allows, say copilot and cursor-agent refuse --record only because it isn't implemented for them yet, and say what Ctrl-C to shadictl does to the announcement. Signed-off-by: András Jáky <[email protected]>
akijakya
added a commit
to agntcy/shadi
that referenced
this pull request
Oct 15, 2026
Build dirctl from agntcy/dir#2373's branch until #2366 and #2373 are merged, give step 8's SLIM agents a fixed card port the sandbox allows, say copilot and cursor-agent refuse --record only because it isn't implemented for them yet, and say what Ctrl-C to shadictl does to the announcement. Signed-off-by: András Jáky <[email protected]>
akijakya
added a commit
to agntcy/shadi
that referenced
this pull request
Oct 15, 2026
Build dirctl from agntcy/dir#2373's branch until #2366 and #2373 are merged, give step 8's SLIM agents a fixed card port the sandbox allows, say copilot and cursor-agent refuse --record only because it isn't implemented for them yet, and say what Ctrl-C to shadictl does to the announcement. Signed-off-by: András Jáky <[email protected]>
akijakya
added a commit
to agntcy/shadi
that referenced
this pull request
Oct 15, 2026
Build dirctl from agntcy/dir#2373's branch until #2366 and #2373 are merged, give step 8's SLIM agents a fixed card port the sandbox allows, say copilot and cursor-agent refuse --record only because it isn't implemented for them yet, and say what Ctrl-C to shadictl does to the announcement. Signed-off-by: András Jáky <[email protected]>
akijakya
added a commit
to agntcy/shadi
that referenced
this pull request
Oct 15, 2026
Build dirctl from agntcy/dir#2373's branch until #2366 and #2373 are merged, give step 8's SLIM agents a fixed card port the sandbox allows, say copilot and cursor-agent refuse --record only because it isn't implemented for them yet, and say what Ctrl-C to shadictl does to the announcement. Signed-off-by: András Jáky <[email protected]>
akijakya
added a commit
to agntcy/shadi
that referenced
this pull request
Oct 19, 2026
Build dirctl from agntcy/dir#2373's branch until #2366 and #2373 are merged, give step 8's SLIM agents a fixed card port the sandbox allows, say copilot and cursor-agent refuse --record only because it isn't implemented for them yet, and say what Ctrl-C to shadictl does to the announcement. Signed-off-by: András Jáky <[email protected]>
akijakya
added a commit
to agntcy/shadi
that referenced
this pull request
Oct 19, 2026
Build dirctl from agntcy/dir#2373's branch until #2366 and #2373 are merged, give step 8's SLIM agents a fixed card port the sandbox allows, say copilot and cursor-agent refuse --record only because it isn't implemented for them yet, and say what Ctrl-C to shadictl does to the announcement. Signed-off-by: András Jáky <[email protected]>
akijakya
added a commit
to agntcy/shadi
that referenced
this pull request
Oct 19, 2026
Build dirctl from agntcy/dir#2373's branch until #2366 and #2373 are merged, give step 8's SLIM agents a fixed card port the sandbox allows, say copilot and cursor-agent refuse --record only because it isn't implemented for them yet, and say what Ctrl-C to shadictl does to the announcement. Signed-off-by: András Jáky <[email protected]>
akijakya
added a commit
to agntcy/shadi
that referenced
this pull request
Oct 19, 2026
Build dirctl from agntcy/dir#2373's branch until #2366 and #2373 are merged, give step 8's SLIM agents a fixed card port the sandbox allows, say copilot and cursor-agent refuse --record only because it isn't implemented for them yet, and say what Ctrl-C to shadictl does to the announcement. Signed-off-by: András Jáky <[email protected]>
akijakya
added a commit
to agntcy/shadi
that referenced
this pull request
Oct 19, 2026
Build dirctl from agntcy/dir#2373's branch until #2366 and #2373 are merged, give step 8's SLIM agents a fixed card port the sandbox allows, say copilot and cursor-agent refuse --record only because it isn't implemented for them yet, and say what Ctrl-C to shadictl does to the announcement. Signed-off-by: András Jáky <[email protected]>
akijakya
added a commit
to agntcy/shadi
that referenced
this pull request
Oct 19, 2026
Build dirctl from agntcy/dir#2373's branch until #2366 and #2373 are merged, give step 8's SLIM agents a fixed card port the sandbox allows, say copilot and cursor-agent refuse --record only because it isn't implemented for them yet, and say what Ctrl-C to shadictl does to the announcement. Signed-off-by: András Jáky <[email protected]>
lgecse
previously approved these changes
Oct 20, 2026
ramizpolic
previously approved these changes
Oct 20, 2026
dir-runtime v1.5.0 includes agntcy/dir-runtime#114. It requires dir api, client and utils v1.8.0; those are replaced by the local modules. Signed-off-by: András Jáky <[email protected]>
akijakya
enabled auto-merge
October 21, 2026 11:12
ramizpolic
approved these changes
Oct 21, 2026
akijakya
added a commit
to agntcy/shadi
that referenced
this pull request
Nov 2, 2026
Build dirctl from agntcy/dir#2373's branch until #2366 and #2373 are merged, give step 8's SLIM agents a fixed card port the sandbox allows, say copilot and cursor-agent refuse --record only because it isn't implemented for them yet, and say what Ctrl-C to shadictl does to the announcement. Signed-off-by: András Jáky <[email protected]>
akijakya
added a commit
to agntcy/shadi
that referenced
this pull request
Nov 3, 2026
Build dirctl from agntcy/dir#2373's branch until #2366 and #2373 are merged, give step 8's SLIM agents a fixed card port the sandbox allows, say copilot and cursor-agent refuse --record only because it isn't implemented for them yet, and say what Ctrl-C to shadictl does to the announcement. Signed-off-by: András Jáky <[email protected]>
akijakya
added a commit
to agntcy/shadi
that referenced
this pull request
Nov 4, 2026
Build dirctl from agntcy/dir#2373's branch until #2366 and #2373 are merged, give step 8's SLIM agents a fixed card port the sandbox allows, say copilot and cursor-agent refuse --record only because it isn't implemented for them yet, and say what Ctrl-C to shadictl does to the announcement. Signed-off-by: András Jáky <[email protected]>
muscariello
pushed a commit
to agntcy/shadi
that referenced
this pull request
Nov 4, 2026
Build dirctl from agntcy/dir#2373's branch until #2366 and #2373 are merged, give step 8's SLIM agents a fixed card port the sandbox allows, say copilot and cursor-agent refuse --record only because it isn't implemented for them yet, and say what Ctrl-C to shadictl does to the announcement. Signed-off-by: András Jáky <[email protected]>
akijakya
added a commit
to agntcy/shadi
that referenced
this pull request
Nov 4, 2026
Build dirctl from agntcy/dir#2373's branch until #2366 and #2373 are merged, give step 8's SLIM agents a fixed card port the sandbox allows, say copilot and cursor-agent refuse --record only because it isn't implemented for them yet, and say what Ctrl-C to shadictl does to the announcement. Signed-off-by: András Jáky <[email protected]>
akijakya
added a commit
to agntcy/shadi
that referenced
this pull request
Nov 4, 2026
Build dirctl from agntcy/dir#2373's branch until #2366 and #2373 are merged, give step 8's SLIM agents a fixed card port the sandbox allows, say copilot and cursor-agent refuse --record only because it isn't implemented for them yet, and say what Ctrl-C to shadictl does to the announcement. Signed-off-by: András Jáky <[email protected]>
akijakya
added a commit
to agntcy/shadi
that referenced
this pull request
Nov 4, 2026
Build dirctl from agntcy/dir#2373's branch until #2366 and #2373 are merged, give step 8's SLIM agents a fixed card port the sandbox allows, say copilot and cursor-agent refuse --record only because it isn't implemented for them yet, and say what Ctrl-C to shadictl does to the announcement. Signed-off-by: András Jáky <[email protected]>
akijakya
added a commit
to agntcy/shadi
that referenced
this pull request
Nov 5, 2026
Build dirctl from agntcy/dir#2373's branch until #2366 and #2373 are merged, give step 8's SLIM agents a fixed card port the sandbox allows, say copilot and cursor-agent refuse --record only because it isn't implemented for them yet, and say what Ctrl-C to shadictl does to the announcement. Signed-off-by: András Jáky <[email protected]>
akijakya
added a commit
to agntcy/shadi
that referenced
this pull request
Nov 5, 2026
Build dirctl from agntcy/dir#2373's branch until #2366 and #2373 are merged, give step 8's SLIM agents a fixed card port the sandbox allows, say copilot and cursor-agent refuse --record only because it isn't implemented for them yet, and say what Ctrl-C to shadictl does to the announcement. Signed-off-by: András Jáky <[email protected]>
akijakya
added a commit
to agntcy/shadi
that referenced
this pull request
Nov 5, 2026
Build dirctl from agntcy/dir#2373's branch until #2366 and #2373 are merged, give step 8's SLIM agents a fixed card port the sandbox allows, say copilot and cursor-agent refuse --record only because it isn't implemented for them yet, and say what Ctrl-C to shadictl does to the announcement. Signed-off-by: András Jáky <[email protected]>
akijakya
added a commit
to agntcy/shadi
that referenced
this pull request
Nov 5, 2026
Build dirctl from agntcy/dir#2373's branch until #2366 and #2373 are merged, give step 8's SLIM agents a fixed card port the sandbox allows, say copilot and cursor-agent refuse --record only because it isn't implemented for them yet, and say what Ctrl-C to shadictl does to the announcement. Signed-off-by: András Jáky <[email protected]>
akijakya
added a commit
to agntcy/shadi
that referenced
this pull request
Nov 5, 2026
Build dirctl from agntcy/dir#2373's branch until #2366 and #2373 are merged, give step 8's SLIM agents a fixed card port the sandbox allows, say copilot and cursor-agent refuse --record only because it isn't implemented for them yet, and say what Ctrl-C to shadictl does to the announcement. Signed-off-by: András Jáky <[email protected]>
akijakya
added a commit
to agntcy/shadi
that referenced
this pull request
Nov 5, 2026
Build dirctl from agntcy/dir#2373's branch until #2366 and #2373 are merged, give step 8's SLIM agents a fixed card port the sandbox allows, say copilot and cursor-agent refuse --record only because it isn't implemented for them yet, and say what Ctrl-C to shadictl does to the announcement. Signed-off-by: András Jáky <[email protected]>
akijakya
added a commit
to agntcy/shadi
that referenced
this pull request
Nov 5, 2026
Build dirctl from agntcy/dir#2373's branch until #2366 and #2373 are merged, give step 8's SLIM agents a fixed card port the sandbox allows, say copilot and cursor-agent refuse --record only because it isn't implemented for them yet, and say what Ctrl-C to shadictl does to the announcement. Signed-off-by: András Jáky <[email protected]>
akijakya
added a commit
to agntcy/shadi
that referenced
this pull request
Nov 5, 2026
Build dirctl from agntcy/dir#2373's branch until #2366 and #2373 are merged, give step 8's SLIM agents a fixed card port the sandbox allows, say copilot and cursor-agent refuse --record only because it isn't implemented for them yet, and say what Ctrl-C to shadictl does to the announcement. Signed-off-by: András Jáky <[email protected]>
akijakya
added a commit
to agntcy/shadi
that referenced
this pull request
Nov 5, 2026
Build dirctl from agntcy/dir#2373's branch until #2366 and #2373 are merged, give step 8's SLIM agents a fixed card port the sandbox allows, say copilot and cursor-agent refuse --record only because it isn't implemented for them yet, and say what Ctrl-C to shadictl does to the announcement. Signed-off-by: András Jáky <[email protected]>
akijakya
added a commit
to agntcy/shadi
that referenced
this pull request
Nov 6, 2026
Build dirctl from agntcy/dir#2373's branch until #2366 and #2373 are merged, give step 8's SLIM agents a fixed card port the sandbox allows, say copilot and cursor-agent refuse --record only because it isn't implemented for them yet, and say what Ctrl-C to shadictl does to the announcement. Signed-off-by: András Jáky <[email protected]>
markpmarton
pushed a commit
to markpmarton/shadi
that referenced
this pull request
Nov 9, 2026
…le (agntcy#493) * docs(agentbridge): announce agents as processes and containers Add examples/agentbridge-container: a fake harness that answers without a model and its agentbridge profile, an image with agentbridge, shadictl and the fake harness, a compose file with two agents carrying Docker discovery labels, and a README walking through both ways an agent is announced to runtime discovery: --dir-announce for a host process, and labels plus a published --card-listen port for a container. Refs agntcy#348 Signed-off-by: András Jáky <[email protected]> * docs(agentbridge): advertise the published port, drop --human-did Signed-off-by: András Jáky <[email protected]> * docs(agentbridge): agents advertise only the skills they are given Signed-off-by: András Jáky <[email protected]> * fix(agentbridge): run the container example as a non-root user Run from an empty working directory (shadictl grants the working directory), grant the sandbox the profiles, the TLS directories and SHADI_TMP_DIR for the local lease, so docker exec … agentbridge list --local prints the agent's DID. README: put the built binaries on PATH, set FAKE_HARNESS_SKILLS, drop the identity extension and --record, and tell SIGTERM to agentbridge apart from Ctrl-C to shadictl. Signed-off-by: András Jáky <[email protected]> * docs(agentbridge): say how the container user reads a mounted key on Linux Signed-off-by: András Jáky <[email protected]> * docs(agentbridge): run the example's fake harness from a DIR record The fake-harness profile gains isolation and provision.skills, the harness lists the skills it was given, and the README shows register --record with the fake harness. These came with --record (agntcy#483) and move here with the rest of the container example. Signed-off-by: András Jáky <[email protected]> * docs(agentbridge): add the runtime discovery demo A walkthrough that imports an agent skill into a local DIR node, runs it as an agent with register --record, announces it to runtime discovery and finds it by skill with dirctl runtime list and agentbridge list; then real harnesses (isolated or not), agents from flags, a group of running agents, containers, and what fails and how. With its shared environment script, a docs nav entry (next to the Agent Directory Discovery Demo, which wasn't listed) and a link from the AgentBridge page. Signed-off-by: András Jáky <[email protected]> * docs(agentbridge): let demo listeners write their local lease The did-agent-group and dir-group-discovery demos (and the agentbridge-cli README) granted the sandbox only --read on $SHADI_TMP_DIR, so a listener couldn't write its lease ($SHADI_TMP_DIR/agentbridge-local) and agentbridge list --local showed nothing. The env scripts now create that directory and the register commands grant only it with --allow; the mTLS material stays read-only. Signed-off-by: András Jáky <[email protected]> * docs(agentbridge): show the new agentbridge list labels in the runtime demo Signed-off-by: András Jáky <[email protected]> * docs(agentbridge): announced agents are found only through dir-runtime Signed-off-by: András Jáky <[email protected]> * docs(agentbridge): goose-isolated and opencode-isolated in the runtime demo Signed-off-by: András Jáky <[email protected]> * docs(agentbridge): agentbridge list without a running dir-runtime Signed-off-by: András Jáky <[email protected]> * docs(agentbridge): link the runtime discovery demo from the DIR discovery demo Signed-off-by: András Jáky <[email protected]> * docs(agentbridge): address review on the runtime discovery demo Build dirctl from agntcy/dir#2373's branch until #2366 and #2373 are merged, give step 8's SLIM agents a fixed card port the sandbox allows, say copilot and cursor-agent refuse --record only because it isn't implemented for them yet, and say what Ctrl-C to shadictl does to the announcement. Signed-off-by: András Jáky <[email protected]> * docs(agentbridge): give codex-isolated its key in CODEX_API_KEY codex exec takes an API key from CODEX_API_KEY; the isolated run has no saved login to fall back to. Signed-off-by: András Jáky <[email protected]> * docs(agentbridge): let the container example validate against a local OASF server entrypoint.sh takes the server from OASF_SCHEMA_URL, passes it to register and allows its host and port in the sandbox. The README shows the --net-allow a host process needs, host.docker.internal for containers, and the URLs dirctl daemon must accept. Signed-off-by: András Jáky <[email protected]> * chore: editorial review Signed-off-by: Aron Kerekes <[email protected]> * docs(agentbridge): address review on the runtime discovery demo and container example - Say SLIM_MEMBER_DIDS restricts SLIM only: a unicast listener checks just the DID proof (agntcy#500), so keep it on loopback or set SHADI_MEMBER_HUMAN_DIDS. - Publish the containers' ports on 127.0.0.1 only (dir-runtime still reads the cards), use a demo-only seed instead of the host's SLIM_HUMAN_SEED, and the avatar DID that seed derives. - Step 8 uses the group demo's environment and grants, and running: asks --runtime; say running: members are self-claimed. - Pin the base images by digest, follow rust-toolchain.toml (1.99.0). - The fake harness says no model was called. - A local OASF server only validates now: the card keeps the canonical URI, and a container needs an https server or validation skipped. Signed-off-by: András Jáky <[email protected]> * docs(agentbridge): signer pinning, isolated environments and unverified peers in the demo The record's signature is shown as unsigned or identity not checked, with --record-oidc-issuer/--record-oidc-subject to pin a signer and the CID to pin the record; isolated profiles get only the basics and their credential variables, and codex-isolated needs shadictl; delegate marks a peer found through dir-runtime as unverified (agntcy#504). Signed-off-by: András Jáky <[email protected]> * docs(agentbridge): another OASF schema is named in the card The container README follows --oasf-schema-url naming the extension again: the daemon and the listing must accept that schema server, and offline testing of the public classes skips validation. Signed-off-by: András Jáky <[email protected]> * docs(agentbridge): address review on the runtime discovery demo and container example - Split the fake harness profile: plain `fake-harness` for the examples without `--record`, which an isolated profile can't run, and `fake-harness-isolated` for `--record`. - Step 8 sets the moderator's DID after sourcing demo-env-dir.sh, which clears SLIM_MEMBER_DIDS, and points SHADI_DIRCTL_BINARY at the dirctl built in the prerequisites. - Build dirctl from dir's main: #2366 and #2373 are merged, and the branch the prerequisites cloned is gone. - The container README clones Directory's sample skill next to this repository instead of using an author's checkout, and gives the record run a writable SHADI_TMP_DIR. - The entrypoint adds the default port to a bracketed IPv6 OASF host without one. Signed-off-by: András Jáky <[email protected]> * docs(agentbridge): address review on the demo and container example - Ctrl-C at shadictl SIGKILLs agentbridge, which leaves the run's configuration directory behind; SIGTERM to agentbridge removes it. - Signers are matched exactly, and a pulled record is checked against its CID. - The isolated goose and opencode profiles list the credentials they pass. - The config root's path has its random suffix, and the error for an unwritable $SHADI_TMP_DIR is the current one. - The container README's notes hold with --record: the card then carries the record's skills and author. Signed-off-by: András Jáky <[email protected]> * docs(agentbridge): DIR records aren't verified either; run delegate from another terminal - The demo called a DID's DIR record "signed"; delegate checks neither its signature nor its DID, and says so. - The container README's --record example ran `register`, which stays in the foreground, and the commands that need it running in one block. Signed-off-by: András Jáky <[email protected]> * docs(agentbridge): SLIM_MEMBER_DIDS is SLIM-only; what isolated profiles pass - demo-env-runtime.sh said SLIM_MEMBER_DIDS is the only DID the agents accept tasks from; that holds over SLIM, not for --a2a-listen (agntcy#500). - The isolated profiles now name every variable they pass, so the demo says which: the credentials in the table and the endpoint and model settings next to them. Signed-off-by: András Jáky <[email protected]> * docs(agentbridge): copilot and cursor-agent run a record as plain profiles Signed-off-by: András Jáky <[email protected]> * docs(agentbridge): copilot-isolated and cursor-agent-isolated in the demo Their credentials, API hosts and what the sandbox must let them read, cursor-agent's need for a short SHADI_TMP_DIR, and the shorter config root name. Signed-off-by: András Jáky <[email protected]> * docs(agentbridge): grant the demo's dirctl to the sandbox On Linux, Landlock only runs programs under a granted path, and `~/go/bin/dirctl-dev` isn't under one, so `register --record` couldn't start dirctl. The `--record` launches in steps 3 and 6 now `--read` it. Signed-off-by: András Jáky <[email protected]> * docs(agentbridge): every isolated profile needs shadictl in the demo Signed-off-by: András Jáky <[email protected]> * docs(agentbridge): create the sandbox's grant paths before the demo `shadictl` refuses a `--read` or `--write` path that doesn't exist, and on a fresh install `~/.config/dirctl` (or `~/.dir`, or the workloads directory) may not. Create them, private, in the demo's environment script and before the container README's record launch. Signed-off-by: András Jáky <[email protected]> * docs(agentbridge): create the write grant in the example's first launch b8e6433 covered the record launch further down, but the first `register` in this README grants the workloads directory too and a fresh install may not have it yet. Signed-off-by: Luca Muscariello <[email protected]> * docs(agentbridge): grant the example's dirctl binary to the sandbox On Linux the sandbox runs only programs under the system directories and the paths it is granted, so the README's record launch couldn't start a `dirctl` under `~/go/bin`: granting its state doesn't grant the binary. Set `SHADI_DIRCTL_BINARY` to dirctl's real path and grant it with `--read`, as the walkthrough's step 3 does. Signed-off-by: András Jáky <[email protected]> --------- Signed-off-by: András Jáky <[email protected]> Signed-off-by: Aron Kerekes <[email protected]> Signed-off-by: Luca Muscariello <[email protected]> Co-authored-by: Aron Kerekes <[email protected]> Co-authored-by: Luca Muscariello <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

dirctl daemon's process discovery left the descriptors of killed processes in~/.agntcy/dir-runtime/workloads.d, and once a PID was reused (after a reboot, or when PIDs wrap) a stale descriptor showed up as a live workload again.Changes
started_atin the descriptor tells a reused PID from the original process (Linux, macOS).runtime.adapter.process.keep_stale(defaultfalse,DIRECTORY_DAEMON_RUNTIME_ADAPTER_PROCESS_KEEP_STALE) leaves stale descriptors in place; documented indaemon.config.yaml.Stacked on #2366.
Testing
go build ./...,go test ./cmd/daemon/ ./cmd/runtime/andgolangci-lint run ./cmd/daemon/...inclipass.🤖 Generated with Claude Code