Skip to content

feat(cli): remove stale process descriptors in dirctl daemon - #2373

Merged
akijakya merged 12 commits into
mainfrom
feat/runtime-stale-descriptors
Oct 21, 2026
Merged

akijakya merged 12 commits into
mainfrom
feat/runtime-stale-descriptors

Conversation

@akijakya

@akijakya akijakya commented Oct 15, 2026 •

Copy link
Copy Markdown
Member

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

  • Pins the dir-runtime modules to v1.5.0, which includes feat(discovery): remove stale process descriptors and detect reused PIDs dir-runtime#114: discoverable descriptors of processes that are gone are removed, and an optional started_at in the descriptor tells a reused PID from the original process (Linux, macOS).
  • runtime.adapter.process.keep_stale (default false, DIRECTORY_DAEMON_RUNTIME_ADAPTER_PROCESS_KEEP_STALE) leaves stale descriptors in place; documented in daemon.config.yaml.

Stacked on #2366.

Testing

  • go build ./..., go test ./cmd/daemon/ ./cmd/runtime/ and golangci-lint run ./cmd/daemon/... in cli pass.

🤖 Generated with Claude Code

…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]>
@github-actions github-actions Bot added the size/XS Denotes a PR that changes 0-49 lines label Oct 15, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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_stale opt-out, defaulting to false.
  • 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.

Comment thread cli/go.mod Resolved
@codecov

codecov Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@akijakya
akijakya marked this pull request as ready for review October 15, 2026 15:06
@akijakya
akijakya requested a review from a team as a code owner October 15, 2026 15:06
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
lgecse previously approved these changes Oct 20, 2026
ramizpolic
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]>
@github-actions github-actions Bot added size/M Denotes a PR that changes 200-999 lines and removed size/XS Denotes a PR that changes 0-49 lines labels Oct 21, 2026
@github-actions github-actions Bot added size/XS Denotes a PR that changes 0-49 lines and removed size/M Denotes a PR that changes 200-999 lines labels Oct 21, 2026
@akijakya
akijakya enabled auto-merge October 21, 2026 11:12
@akijakya
akijakya requested a review from ramizpolic October 21, 2026 11:18
@akijakya
akijakya added this pull request to the merge queue Oct 21, 2026
Merged via the queue into main with commit 0a13e1f Oct 21, 2026
35 checks passed
@akijakya
akijakya deleted the feat/runtime-stale-descriptors branch October 21, 2026 12:20
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/XS Denotes a PR that changes 0-49 lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants