Skip to content

docs(skill): add security scanner install step to setup reference - #1961

Merged
paralta merged 5 commits into
agntcy:mainfrom
markpmarton:scanners-install-in-skill
Aug 3, 2026
Merged

paralta merged 5 commits into
agntcy:mainfrom
markpmarton:scanners-install-in-skill

Conversation

@markpmarton

@markpmarton markpmarton commented Aug 3, 2026 •

Copy link
Copy Markdown
Contributor

I was testing with the agntcy-dir in my Claude Code with the example created by Ramiz: https://github.com/ramizpolic/agntcy-dir-on-claude.

Without mcp-scanner and skill-scanner on PATH, the reconciler cannot attach scan results to any record. The daemon retries on every tick but silently logs executable file not found in $PATH, leaving the Safe column permanently blank in discovery results. Nothing in the existing skill guided users to install the scanners. The agent only installed the tools when explicitly asked for it.

Changes:

  • setup.md — new §3 Security scanners section (between init and the daemon) with presence checks, uv tool install commands for both scanners, and a pip fallback. Section numbers shifted (daemon → §4, contexts → §5, auth → §6, doctor → §7). Both the POSIX and PowerShell recommended-sequence blocks updated to include the scanner install step.

Testing:

Validated end-to-end in a clean environment (no prior dirctl or scanner install) using Claude Sonnet 4.6. Ran the full setup sequence from the skill, pushed and signed two OASF records, and confirmed the Safe column populated with real scan results instead of "unscanned" after the scanners were present.

…tcy#1941)

The `runtime should discover docker workloads` spec was commented out and
its CI job disabled because it failed intermittently. The order the
testenv brings things up explains it, and it is not a race that waiting
longer can win.

`docker compose up` started the labelled container with the rest of the
stack, ten seconds before the daemon. dir-runtime reconciles once at boot
(discovery.go, the only call to reconcile), queues every workload it
finds, and gives each a bounded resolve budget: six attempts, 15s apart,
30s timeout each, so roughly 75s if attempts fail fast and 255s if they
time out. The record that workload references can only be pushed once the
daemon is serving, from the suite's BeforeAll. On a fast runner the
record lands inside the budget and the spec passes. On a slow one the
budget expires first, resolveWorkload persists `{"error": ...}` into the
workload's OASF field, and nothing re-queues it: the only two writers to
the work queue are boot reconciliation and new docker events. The spec's
three-minute Eventually cannot recover from that no matter how long it
waits.

So the container now sits behind a compose profile and the suite starts
it in BeforeAll, after the push. The docker start event is what queues
the workload, and the record is already in the store when the first
attempt runs.

The spec is restored split in two. Registration depends only on the
daemon seeing the start event; resolution depends on the record being
reachable. Separating them means a lost event reads as "the workload
never appeared" within a minute, rather than as a three-minute timeout
that looks like a resolver fault. The resolution half asserts the absence
of the "error" key directly, so an exhausted budget reports itself
instead of surfacing as a missing "cid".

Four things worth stating plainly rather than leaving implicit.

This narrows the window but does not close the hole, and it gives
something up to do it. Registration previously had two independent
triggers, boot reconciliation and the start event; the flake was that
both fired too early. Deferring the container removes the reconciliation
trigger outright, so registration now rests solely on the event stream,
which is lossy: dir-runtime subscribes to docker events without a
`since`, and starts watching only after reconcile returns, so an event
that fires in that gap is gone. The trade is a recoverable-looking flake
for a rarer unrecoverable one. A periodic re-reconcile in dir-runtime
would make the ordering irrelevant and is the real fix.

The mechanism above is reproduced, not just read out of the source.
Running the suite locally with a 90s delay before the record push, to
stand in for a slow runner, fails on the old ordering and passes on this
one. The failing run exhausts all six attempts on `record not found`,
gives up about ten seconds before the record lands, and exits 201, the
code this issue reports. Boot reconciliation logs
`workloads_registered=1` before the change and 0 after.

That reason was "possible schema drift on the runtime side," which is a
separate question this change does not touch: the resolution assertion
compares the resolved record against the fixture with MatchJSON, and a
serialization drift there fails regardless of ordering. The job is
re-enabled anyway, because a disabled job cannot tell us whether either
problem is real, and dir-runtime has moved 1.3.3 to 1.3.4 since. If it
comes back red for drift rather than ordering, that is worth knowing and
belongs in its own change. Happy to drop the re-enable from this PR and
land it separately if you would rather not have it in the matrix yet.

The spec did not compile as commented: `:= discoverResp[0]` had lost its
variable name. It reads `workload := discoverResp[0]` again.

Signed-off-by: Conor Bronsdon <[email protected]>
Signed-off-by: Mark Marton <[email protected]>
@markpmarton
markpmarton requested a review from a team as a code owner August 3, 2026 08:11
@github-actions github-actions Bot added the size/XS Denotes a PR that changes 0-49 lines label Aug 3, 2026
@keraron
keraron self-requested a review August 3, 2026 08:14

@paralta paralta left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, thanks 👍 Just review if mcp-server-git is actually required here, I know that the MCP scanner requires git for cloning but I do not think it requires mcp-server-git

@codecov

codecov Bot commented Aug 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@markpmarton

Copy link
Copy Markdown
Contributor Author

LGTM, thanks 👍 Just review if mcp-server-git is actually required here, I know that the MCP scanner requires git for cloning but I do not think it requires mcp-server-git

Right! mcp-server requirement is removed and mcp-scanner requirements are referenced for optional install.

@paralta
paralta merged commit b20ef7b into agntcy:main Aug 3, 2026
32 checks passed
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