Weekly check of everything fleet is built on - Go releases, go.mod modules, Charm libraries, tmux/git/systemd, the agent CLIs, the Claude ACP adapter pin, the MCP and ACP specs, GitHub Actions and golangci-lint - against a baseline of what was already seen or decided. Takes green grouped Dependabot updates itself and publishes a decision page only when something is new. Use when a scheduled stack-audit run starts, or when asked to "rerun the stack audit", "check fleet's stack" or "what's new ...
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Stack Audit?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/sturlabragason-stack-audit)
---
name: stack-audit
description: Weekly check of everything fleet is built on - Go releases, go.mod modules, Charm libraries, tmux/git/systemd, the agent CLIs, the Claude ACP adapter pin, the MCP and ACP specs, GitHub Actions and golangci-lint - against a baseline of what was already seen or decided. Takes green grouped Dependabot updates itself and publishes a decision page only when something is new. Use when a scheduled stack-audit run starts, or when asked to "rerun the stack audit", "check fleet's stack" or "what's new upstream for fleet".
---
# stack-audit
A scheduled, unattended run (ADR-224). Nobody is watching. Most weeks nothing is new, and then
the run is one log line and no page. You change no fleet code yourself: the only commits you
make are this week's green Dependabot minor/patch updates (step 3). Everything else becomes a
card for a later agent.
Paths: `$FLEET_HOME` is `~/.fleet` unless set. The baseline is `$FLEET_HOME/stack-audit/seen.json`,
the log `$FLEET_HOME/stack-audit/log.jsonl`. The fleet checkout is the route's repo; read it on
`main` and never edit the main checkout.
## 1. Read the baseline
`seen.json` has two lists:
- `components`: `{"name", "seen", "checked"}` per component, where `seen` is the newest upstream
version already looked at (not what fleet uses).
- `items`: `{"id", "title", "status", "decided", "note"}` per upgrade idea, `status` one of
`proposed`, `approved`, `rejected`, `later`, `skipped`, `done`. The `id` is a short stable slug
(`go-1.27`, `claude-acp-0.113`, `mcp-tasks`).
Missing or unreadable file: report `blocked`. Never re-audit from zero: every old idea would
come back as new.
## 2. Gather, cheaply
Versions first; read release notes only for a component whose latest is newer than `seen`.
| Component | Latest from | What fleet uses |
|---|---|---|
| Go | https://go.dev/doc/devel/release, `go.dev/doc/go1.N` for a new minor | `go` and `toolchain` lines in go.mod (Dependabot can't bump these) |
| go.mod modules | `go list -m -u all`; `govulncheck ./...` as a cross-check of the weekly `vuln.yml` run | go.mod |
| Charm libraries | `go list -m -versions` on the `charm.land/...` and `github.com/charmbracelet/...` paths, their GitHub releases | go.mod (Dependabot ignores them until the v2 port lands) |
| tmux, git, systemd | tmux CHANGES, git RelNotes, systemd releases | `tmux -V`, `git --version`, `systemctl --version`; the minimum in cmd/fleet/doctor.go |
| Agent CLIs | `copilot --version`, `claude --version`, `agy --version`, `vibe --version`, `pi --version` vs each changelog or registry (`npm view`, `pip index versions`) | installed version; the flags fleet passes (internal/tools) |
| Claude ACP adapter | `npm view @agentclientprotocol/claude-agent-acp version` and its CHANGELOG | `ClaudeACPVersion` in internal/tools |
| MCP spec | https://modelcontextprotocol.io/specification/draft/changelog and the latest dated changelog | internal/mcp protocol versions |
| ACP spec | https://agentclientprotocol.com/llms.txt | internal/acp `protocolVersion` |
| GitHub Actions | `gh release view -R <owner/repo>` per action in `.github/workflows/` | the `# vX.Y.Z` comment on each pin |
| golangci-lint | `gh release view -R golangci/golangci-lint` | Makefile and ci.yml version |
Open Dependabot PRs: `gh pr list -R sturlabragason/fleet --author app/dependabot --json number,title,headRefOid,statusCheckRollup`.
## 3. Take green grouped updates
For each open Dependabot PR that is a grouped minor/patch update (`go-minor-patch` or `actions`)
with every check green: skip it when its change is already on local main. A cherry-pick gets a new
SHA, so check by content: `git cherry main <headRefOid>` prints `-` for a patch already there, or
the versions in its `go.mod` / workflow diff already match local main. Otherwise
`git fetch origin pull/<n>/head`, cherry-pick it onto your own `fleet/` branch (the route starts
you in a worktree), then `git commit --amend --no-edit --reset-author` so the commit carries your
identity (the pre-push public check refuses the bot's email; the patch id stays the same). Push
that branch, wait for green CI on its head, `fleet merge --check 'make build && go vet ./...'`,
delete the pushed branch. No CHANGELOG line: version bumps aren't user-facing. Dependabot closes
the PR itself once its next run sees the versions on origin main after the batch release. Never
merge a Dependabot PR on GitHub: main moves only as a fast-forward of local main. A red group, a
major or a single-dependency PR is a new item for step 4 instead.
## 4. Decide what is new
New means one of:
- a component whose latest is newer than its `seen`, where the new release has something fleet
would use: a fix on a path fleet runs, a feature it builds by hand, a flag it passes that was
removed, a security fix; or
- an idea whose `id` is not in `items`.
Not new: anything already in `items`, whatever its status. An `approved` item that is still open
goes into the log line as "still open", not onto the page. A `later` item comes back only when
the condition in its note is met (for example "after Go 1.27" once go.mod is on 1.27).
Check each claim against a fetched page or a command on this machine. Mark what you couldn't
check UNCONFIRMED, and keep unchecked versions off the page.
## 5a. Nothing new
Update `checked`, and `seen` where a newer version brought nothing for fleet, in `seen.json`.
Append one line to `log.jsonl`:
```json
{"date": "2026-12-07", "new": 0, "took": ["go-minor-patch #41"], "note": "Go 1.27.5 security only; nothing else"}
```
Report `done` with that line. No page, no question.
## 5b. Something new
Build one brief in the `examples/page-brief.json` format (ADR-197):
- page `decide-fleet-stack-<YYYY-MM-DD>`, kind `decision`, a new page each week (answered pages
are frozen).
- One decision per new item, ranked by value for the risk. Each one says what the item is in
plain words, what fleet gains, what happens if it is skipped, the risk, the effort in agent
wall-clock minutes and the human review time apart. Options approve / reject, with a
recommendation.
- Plain simple words: no ADR numbers, section codes or jargon. Each card stands on its own for a
reader who saw nothing else this week.
- `sources` numbered, each with URL, one quoted line and the date read.
Run `fleet page check brief.json`, then `fleet page publish brief.json`, then `artifact cat <page>`
to prove it is up. Add each item on the page to `seen.json` as `proposed`, bump `seen` for its
component, and append a log line with `"new": N` and the page name. Report `question` with the
URL. Then wait for the answers: `artifact answer <page> --wait` gives up after 30 minutes, so
run it again until an answer arrives. If your session ends first, the answer reaches the admiral
(ADR-163), who hands it back to this route; step 6 still runs then.
## 6. After the answers
Set each `proposed` item to `approved` or `rejected` with today's date. Report `done` with one
`next:` line per approved item (files, agent-time estimate), so the admiral can spawn them. You
don't implement them.