[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M720VHNRD6XT6MC39FRJ8ZTR":3,"skill-same:01M720VHNRD6XT6MC39FRJ8ZTR":54},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":8,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":14,"categories":15,"keywords":16,"publishedAt":17,"linkOnly":18,"markdownContent":19,"markdownBody":20,"frontMatter":21,"refName":22,"commitSha":23,"skillDirectory":24,"forksCount":25,"repositoryHtmlUrl":26,"repositoryHomepageUrl":27,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":29,"install":30,"resources":43},"01M720VHNRD6XT6MC39FRJ8ZTR","fleet-audit-reports",null,"gke-labs\u002Fkube-agents","gke-labs","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F197140281?v=4","01M720MEZR8K6WD2WTHNQE346Q","01M720MF0BRA9RGH1QVT4J0M0E",126,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fgke-labs\u002Fkube-agents\u002Fblob\u002Fmain\u002Fagents\u002Fplatform\u002Fskills\u002Ffleet-audit-reports\u002FSKILL.md",[],[],"2026-11-10 18:39:20",false,"---\nname: fleet-audit-reports\ndescription: Answer a question about a past autonomous fleet audit from the on-pod report store — what a stream last found, how many criticals are open, what changed between two runs, which clusters were skipped or only partly covered, and when each stream last ran. Never the answer to a request to run an audit: a run collects, publishes and opens its fixes through the fleet-audit skill.\n---\n\n# fleet-audit-reports — Reading What the Audits Found\n\nEvery audit run keeps what it published, on the volume, beside the agent. This skill answers\nquestions off those files. It never runs an audit and never publishes one — the `fleet-audit` skill\nowns both ends of that lifecycle.\n\n## The store\n\n`\u002Fopt\u002Fdata\u002Ffleet-audit\u002Freports\u002F\u003Caudit-id>\u002F\u003Cowner>\u002F\u003Cname>\u002F`, one directory per stream and GitOps\nrepository. A run publishes to the `role: gitops` repository, or to the repository a person gave\nwith `--repo`, so a stream can have more than one directory. A run with no repository to publish\nto uses `no_forge\u002Flocal`:\n\n- `latest.json` — the newest run's envelope.\n- `runs\u002F\u003CYYYYMMDDThhmmss.ffffffZ>.json` — one envelope per run, newest 14 kept. The only\n  run-over-run history that exists anywhere: the ledger issue rewrites itself in place.\n\nAn envelope carries `audit_id`, `repo`, `started_at`, `finished_at`, `status`, `issue_number`, `issue_url`,\n`partial`, `coverage_gaps`, `declared`, `unaccounted`, `unpublished_candidates`,\n`wholly_unpublished_checks`, `uncorroborated_findings`, `prs_opened`, `prs_still_open`, `prs_closed`, `silent_ok`,\n`ledger_held_open`, `scheduled`, `scheduled_coverage_gaps`, `scheduled_published_ids`, `scheduled_reported_under_gap`, `delta_known`, `new_ids`, `resolved_ids`, `current_ids`, `id_scheme`, `ledger_body`,\n`document`, and sometimes `ledger_document`, `reported_under_gap`, `silent_floor`, `inspect_s`, `publish_s` and `collect_s`.\nThe `scheduled_*` keys record the last scheduled run, not this run: an on-demand run copies them\nforward.\n\n- `document` is this run's whole validated findings document — un-clipped, so it holds findings the\n  issue body had no room to print.\n- `status` is `OPENED`, `UPDATED`, `CLEAN`, `HELD`, `NO_FORGE`, or `STORE_LEDGER`. `NO_FORGE` means the run had no\n  repository to publish to: it wrote no ledger issue, `issue_number` and `issue_url` are null, and\n  the envelope is the only record of what it found. A `NO_FORGE` envelope in a repository's\n  directory carries `unreachable_repo` (`repo`, `reason`): the run could not reach that repository.\n  One under `no_forge\u002Flocal` can carry `no_repository_chosen` (`reason`): several repositories are\n  managed and none is the one `role: gitops` repository. For both, the new and resolved counts are\n  unknown; say so. An envelope with neither key is from an install with no forge.\n  `STORE_LEDGER` means the repository is on a forge with no issue tracker, or no labels: the\n  envelope is the ledger (`issue_number` and `issue_url` are null, `ledger` is `store`), and the\n  remediation pull requests opened on the forge are in `prs_opened`, `prs_still_open` and\n  `prs_closed`. Give those links where you would give the ledger link.\n  `ledger_held_open` true means a `CLEAN` or\n  `HELD` run left the issue open (partial, or over findings it did not account for) without\n  rewriting it: the issue still lists the previous run's findings, `current` counts those, and this\n  run's `findings: 0` and `critical: 0` do **not** mean the ledger is clear. `streams`, `show` and\n  `findings` all carry it. Held open over a lost memory, the envelope's `issue_number` is null and\n  `current` is 0: the store does not know what the issue lists, so read the issue. `ledger_document`\n  is that previous document, kept for `fleet-audit`; do not answer from it.\n- `delta_known` false means `fleet-audit` lost its memory of the previous run and withheld the\n  delta: `new_ids` and `resolved_ids` are empty, and `new`\u002F`resolved` 0, because nothing was claimed,\n  not because nothing changed. Say the delta is unknown for that run. Envelopes written before the\n  key existed lack it; read their counts as they are. `streams` and `show` carry it.\n- `silent_floor` true means an earlier `finish` in the same run reported news or opened a pull\n  request, so this run's\n  `silent_ok` was kept `false` and its counts may be measured against that `finish`.\n- `current_ids` is exactly what the body's hidden block published: the findings the body named, in\n  full or on one line, the ids the collector held, and the ids under _Not re-checked this run_\n  (previous findings on a target the run did not check). Derive this run's full set from `document`.\n- `started_at` is when the run that published this envelope started, or null when `finish` could\n  not read it. Envelopes written before the key existed lack it. `show` gives it; `streams` does\n  not carry it. It is not `running_since`, which `streams` takes from the lease of a run that\n  started and did not finish.\n- `inspect_s`, `publish_s` and `collect_s` are seconds: from `start` to `finish`, for `finish` to\n  publish, and for the collector to run. An envelope has only the ones `finish` could measure.\n  `show` gives them, with null for the others; `streams` does not carry them.\n- `ledger_body` is the issue body the run left on GitHub — `fleet-audit`'s memory of the previous\n  run, not something to answer from. No subcommand returns it.\n\nWhether a run is in flight comes from the lease `fleet-audit`'s `start` takes, not from a file in\nthis directory. `streams` and `runs` report it as `liveness`: `never` (no run stored), `completed`,\n`running`, `died` (started over two hours ago and never finished), or `error`. A stream-level\nproblem (a sibling repository's unreadable store, a bad lease note) comes back under `error` with\nexit 2 even when the listing is complete; report it, do not drop it.\n\n## Query it; do not read it\n\n**Never open a store file** — not `latest.json`, not a ring entry, not with a file tool and not\nwith `cat`, `head`, `grep` or `jq` in the shell. Each embeds `document` and `ledger_body`, which pass\n60,000 characters each on a finding-heavy stream — times every stream, times fourteen runs.\nAnswering \"how many criticals are open?\" that way spends tens of thousands of tokens on an integer.\nWhen `report_query.py` says a stream has no record, that is the answer: do not search the directory\nfor a file it did not find.\n\n`python3 \u002Fopt\u002Fdata\u002Fprofiles\u002Fplatform\u002Fskills\u002Ffleet-audit-reports\u002Fscripts\u002Freport_query.py \u003Csubcommand>` prints one small JSON\nobject per call.\n\n| Subcommand                          | Answers                                                               |\n| ----------------------------------- | --------------------------------------------------------------------- |\n| `streams`                           | one row per stream and repository: last run, status, counts, liveness |\n| `show \u003Cstream>`                     | one run's envelope **without** `document`                             |\n| `findings \u003Cstream>`                 | finding id, severity, title, cluster, check — filterable              |\n| `finding \u003Cstream> \u003Cid>`             | one finding in full; the only call that returns prose                 |\n| `checks \u003Cstream>`                   | the command behind each check that ran, plus exclusions               |\n| `diff \u003Cstream> [--from S] [--to S]` | ids and titles added and resolved between two runs                    |\n| `runs \u003Cstream>`                     | the stamps the ring holds, so a `diff` can name real ones             |\n\n- Exit 0 answered the question. Exit 2 could not, and stdout still holds one JSON object whose\n  `error` says why — absent or unlistable store, absent stream, absent stamp, a file that would not parse.\n  Arguments that do not parse are the exception: argparse prints usage to stderr and stdout is\n  empty. Every answer carries an `error` key, null on success. `streams` exits 2 when any one stream is\n  unreadable; its other rows still stand — report them and name the unreadable ones.\n- Every subcommand but `streams` takes `--repo`, the repository as the managed list or the `repos`\n  list names it: `owner\u002Fname` (or `github.com\u002Fowner\u002Fname`) on github.com, `\u003Chost>\u002Fowner\u002Fname` on a\n  GitHub Enterprise Server, and `\u003Chost>\u002F\u003Cpath>` for a repository on another forge. Leave it off when the stream has\n  published to one repository; when it has published to several, the answer is exit 2 with the\n  `repos` to choose from — ask which, or run once per repository, never pick one silently.\n- `--run` takes a stamp from `runs`, with or without the `.json`. Default is the newest run:\n  `latest.json`, or the newest ring entry when a later run deleted it and failed. `streams`, `show`,\n  `findings`, `finding` and `checks` then carry `latest_missing: true` — say the answer is from that\n  run and the issue may be newer.\n- `--severity`, `--cluster` and `--check` on `findings`, and `--cluster` and `--check` on `checks`,\n  are exact matches, case-insensitive.\n- `findings`, `checks` and `diff` cap at 100 rows, raisable with `--limit`. `findings` and `checks`\n  report `matched`, `returned` and `truncated`, and `checks` caps its exclusions separately under\n  `not_applicable_matched`, `not_applicable_returned` and `not_applicable_truncated`; `diff` caps\n  `added` and `resolved` independently and reports `added_total`, `resolved_total`, `unchanged` and\n  `truncated` — quote `added_total`, not the length of `added`. Findings sort severity-first, so a\n  cap drops only the least severe; `checks` keeps the document's order, one row per cluster and\n  check, while the issue's table groups clusters that ran the same command into one row.\n- `--root` overrides the store root. In the pod, leave it alone.\n\n## The four questions this gets asked\n\n**\"What did last night's compliance audit find?\"**\n\n```bash\npython3 \u002Fopt\u002Fdata\u002Fprofiles\u002Fplatform\u002Fskills\u002Ffleet-audit-reports\u002Fscripts\u002Freport_query.py show compliance-audit\npython3 \u002Fopt\u002Fdata\u002Fprofiles\u002Fplatform\u002Fskills\u002Ffleet-audit-reports\u002Fscripts\u002Freport_query.py findings compliance-audit --severity critical\n```\n\n`show` gives, under `envelope`, `status`, `findings`, `critical`, `partial`, `ledger_held_open`, the\ndelta counts and `issue_url`; name the criticals from `findings`. When `ledger_held_open` is true,\nthis run found nothing but the issue still carries the previous run's findings — say both, and point\nat the issue. Always hand back the issue URL — the store is where you read, the ledger is where a\nhuman acts — except on a `NO_FORGE` run, which has no issue: the store is the only record. A\n`STORE_LEDGER` run has no issue either: hand back its pull request links instead.\n\n**\"What changed since the last run?\"**\n\n```bash\npython3 \u002Fopt\u002Fdata\u002Fprofiles\u002Fplatform\u002Fskills\u002Ffleet-audit-reports\u002Fscripts\u002Freport_query.py diff compliance-audit\n```\n\nDefaults to the newest two runs and returns ids and titles under `added` and `resolved`. When\n`from_partial` or `to_partial` is true, that run could not see the whole fleet: a finding under\n`resolved` may be one it did not look at, so say \"not seen\", never \"fixed\". When `to_held_open` is\ntrue, the audit itself refused to resolve them; they are still on the issue. When `from_held_open`\nis true, the earlier run found nothing while the issue still listed older findings, so `added` may\nbe findings the ledger already carried — say \"found again\", not \"new\". For a wider span, list the\nring first and name two stamps, older as `--from` — a reversed pair is refused:\n\n```bash\npython3 \u002Fopt\u002Fdata\u002Fprofiles\u002Fplatform\u002Fskills\u002Ffleet-audit-reports\u002Fscripts\u002Freport_query.py runs compliance-audit\npython3 \u002Fopt\u002Fdata\u002Fprofiles\u002Fplatform\u002Fskills\u002Ffleet-audit-reports\u002Fscripts\u002Freport_query.py diff compliance-audit --from \u003Cstamp> --to \u003Cstamp>\n```\n\n**\"Tell me about that finding.\"**\n\n```bash\npython3 \u002Fopt\u002Fdata\u002Fprofiles\u002Fplatform\u002Fskills\u002Ffleet-audit-reports\u002Fscripts\u002Freport_query.py finding compliance-audit \u003Cfinding-id>\n```\n\nThe evidence command and excerpt, the impact, and all three `recommendation` fields. This is the\nexpensive call: make it for the finding that was asked about, not for the list.\n\n**\"The issue says findings or commands were omitted — what were they?\"**\n\n```bash\npython3 \u002Fopt\u002Fdata\u002Fprofiles\u002Fplatform\u002Fskills\u002Ffleet-audit-reports\u002Fscripts\u002Freport_query.py findings obtainability-audit\npython3 \u002Fopt\u002Fdata\u002Fprofiles\u002Fplatform\u002Fskills\u002Ffleet-audit-reports\u002Fscripts\u002Freport_query.py checks obtainability-audit --cluster prod-us-east\n```\n\nThe ledger names findings it has no room to show in full on one line each, as far as the room left\nafter the criticals' full blocks allows, then drops the least-severe ones and its evidence table whole, to stay inside GitHub's\nbody limit, and says so in a notice that points here. `findings` lists every finding the run\ncarried. `checks` is one row per check the run says it performed, with the command that performed\nit, plus each `checks_not_applicable` exclusion and its reason; filter by cluster or check — a\n16-cluster stream carries upwards of 150.\n\nFleet-wide, `streams` is the whole answer: one row per stream with its liveness, so \"when did each\nlast run\" and \"is anything stuck\" come back in one call. Coverage questions read `show`'s\n`coverage_gaps`; `streams` carries only the count.\n\n## Two things the store is not\n\n- **Not the live issue.** It is the last _published_ state. A finding a human closed by hand since\n  that run, or a `\u002Fremediate` posted since, is not in it until the next run rewrites the store. When\n  the question is about the issue, read the issue.\n- **Not written for every invocation.** Only a `finish` that exits 0 writes — never `--dry-run`,\n  never a run that exited 2, never `remediate`. The write is best-effort. `finish` deletes\n  `latest.json` before it rewrites the ledger, and after the clean close lands (a close that fails\n  leaves it, since the ledger is still the one it describes), so a run that fails partway leaves no\n  superseded envelope reading as current; the ring stays, and answers come from it flagged\n  `latest_missing`. When the close landed but the run failed before storing itself, the newest ring\n  entry is an `OPENED` or `UPDATED` run whose issue is now closed, and a human can close one by\n  hand: either way it is not the open ledger. Check the issue's state, or say\n  the findings are as of that run.\n  **No stored run means unknown, not clean** — say the store has no record, and read the ledger\n  issue if the install has a forge.\n\n## Red lines\n\n- **Never report an absent, unreadable, `never` or `died` stream as a clean fleet.** \"I could not\n  look\" and \"nothing is wrong\" are different answers; pass `error`, `liveness` and any\n  `stream_error` through to the user.\n- **Never read `document` or `ledger_body` whole** to answer a question a subcommand answers.\n- **Never run, publish, or remediate from here.** Dispatching a stream, rewriting a ledger and\n  opening remediation pull requests belong to `fleet-audit`\n  ([Running a stream on demand](..\u002Ffleet-audit\u002Freferences\u002Fon-demand.md#running-a-stream-on-demand)).\n- **Never act on a `running` or `died` stream's lease.** It is `fleet-audit`'s; report the state.\n- **Never quote a count the store did not give you.** The counts are keys; re-deriving one by hand\n  from prose is how a stale number reaches a user with the authority of a file read.\n","# fleet-audit-reports — Reading What the Audits Found\n\nEvery audit run keeps what it published, on the volume, beside the agent. This skill answers\nquestions off those files. It never runs an audit and never publishes one — the `fleet-audit` skill\nowns both ends of that lifecycle.\n\n## The store\n\n`\u002Fopt\u002Fdata\u002Ffleet-audit\u002Freports\u002F\u003Caudit-id>\u002F\u003Cowner>\u002F\u003Cname>\u002F`, one directory per stream and GitOps\nrepository. A run publishes to the `role: gitops` repository, or to the repository a person gave\nwith `--repo`, so a stream can have more than one directory. A run with no repository to publish\nto uses `no_forge\u002Flocal`:\n\n- `latest.json` — the newest run's envelope.\n- `runs\u002F\u003CYYYYMMDDThhmmss.ffffffZ>.json` — one envelope per run, newest 14 kept. The only\n  run-over-run history that exists anywhere: the ledger issue rewrites itself in place.\n\nAn envelope carries `audit_id`, `repo`, `started_at`, `finished_at`, `status`, `issue_number`, `issue_url`,\n`partial`, `coverage_gaps`, `declared`, `unaccounted`, `unpublished_candidates`,\n`wholly_unpublished_checks`, `uncorroborated_findings`, `prs_opened`, `prs_still_open`, `prs_closed`, `silent_ok`,\n`ledger_held_open`, `scheduled`, `scheduled_coverage_gaps`, `scheduled_published_ids`, `scheduled_reported_under_gap`, `delta_known`, `new_ids`, `resolved_ids`, `current_ids`, `id_scheme`, `ledger_body`,\n`document`, and sometimes `ledger_document`, `reported_under_gap`, `silent_floor`, `inspect_s`, `publish_s` and `collect_s`.\nThe `scheduled_*` keys record the last scheduled run, not this run: an on-demand run copies them\nforward.\n\n- `document` is this run's whole validated findings document — un-clipped, so it holds findings the\n  issue body had no room to print.\n- `status` is `OPENED`, `UPDATED`, `CLEAN`, `HELD`, `NO_FORGE`, or `STORE_LEDGER`. `NO_FORGE` means the run had no\n  repository to publish to: it wrote no ledger issue, `issue_number` and `issue_url` are null, and\n  the envelope is the only record of what it found. A `NO_FORGE` envelope in a repository's\n  directory carries `unreachable_repo` (`repo`, `reason`): the run could not reach that repository.\n  One under `no_forge\u002Flocal` can carry `no_repository_chosen` (`reason`): several repositories are\n  managed and none is the one `role: gitops` repository. For both, the new and resolved counts are\n  unknown; say so. An envelope with neither key is from an install with no forge.\n  `STORE_LEDGER` means the repository is on a forge with no issue tracker, or no labels: the\n  envelope is the ledger (`issue_number` and `issue_url` are null, `ledger` is `store`), and the\n  remediation pull requests opened on the forge are in `prs_opened`, `prs_still_open` and\n  `prs_closed`. Give those links where you would give the ledger link.\n  `ledger_held_open` true means a `CLEAN` or\n  `HELD` run left the issue open (partial, or over findings it did not account for) without\n  rewriting it: the issue still lists the previous run's findings, `current` counts those, and this\n  run's `findings: 0` and `critical: 0` do **not** mean the ledger is clear. `streams`, `show` and\n  `findings` all carry it. Held open over a lost memory, the envelope's `issue_number` is null and\n  `current` is 0: the store does not know what the issue lists, so read the issue. `ledger_document`\n  is that previous document, kept for `fleet-audit`; do not answer from it.\n- `delta_known` false means `fleet-audit` lost its memory of the previous run and withheld the\n  delta: `new_ids` and `resolved_ids` are empty, and `new`\u002F`resolved` 0, because nothing was claimed,\n  not because nothing changed. Say the delta is unknown for that run. Envelopes written before the\n  key existed lack it; read their counts as they are. `streams` and `show` carry it.\n- `silent_floor` true means an earlier `finish` in the same run reported news or opened a pull\n  request, so this run's\n  `silent_ok` was kept `false` and its counts may be measured against that `finish`.\n- `current_ids` is exactly what the body's hidden block published: the findings the body named, in\n  full or on one line, the ids the collector held, and the ids under _Not re-checked this run_\n  (previous findings on a target the run did not check). Derive this run's full set from `document`.\n- `started_at` is when the run that published this envelope started, or null when `finish` could\n  not read it. Envelopes written before the key existed lack it. `show` gives it; `streams` does\n  not carry it. It is not `running_since`, which `streams` takes from the lease of a run that\n  started and did not finish.\n- `inspect_s`, `publish_s` and `collect_s` are seconds: from `start` to `finish`, for `finish` to\n  publish, and for the collector to run. An envelope has only the ones `finish` could measure.\n  `show` gives them, with null for the others; `streams` does not carry them.\n- `ledger_body` is the issue body the run left on GitHub — `fleet-audit`'s memory of the previous\n  run, not something to answer from. No subcommand returns it.\n\nWhether a run is in flight comes from the lease `fleet-audit`'s `start` takes, not from a file in\nthis directory. `streams` and `runs` report it as `liveness`: `never` (no run stored), `completed`,\n`running`, `died` (started over two hours ago and never finished), or `error`. A stream-level\nproblem (a sibling repository's unreadable store, a bad lease note) comes back under `error` with\nexit 2 even when the listing is complete; report it, do not drop it.\n\n## Query it; do not read it\n\n**Never open a store file** — not `latest.json`, not a ring entry, not with a file tool and not\nwith `cat`, `head`, `grep` or `jq` in the shell. Each embeds `document` and `ledger_body`, which pass\n60,000 characters each on a finding-heavy stream — times every stream, times fourteen runs.\nAnswering \"how many criticals are open?\" that way spends tens of thousands of tokens on an integer.\nWhen `report_query.py` says a stream has no record, that is the answer: do not search the directory\nfor a file it did not find.\n\n`python3 \u002Fopt\u002Fdata\u002Fprofiles\u002Fplatform\u002Fskills\u002Ffleet-audit-reports\u002Fscripts\u002Freport_query.py \u003Csubcommand>` prints one small JSON\nobject per call.\n\n| Subcommand                          | Answers                                                               |\n| ----------------------------------- | --------------------------------------------------------------------- |\n| `streams`                           | one row per stream and repository: last run, status, counts, liveness |\n| `show \u003Cstream>`                     | one run's envelope **without** `document`                             |\n| `findings \u003Cstream>`                 | finding id, severity, title, cluster, check — filterable              |\n| `finding \u003Cstream> \u003Cid>`             | one finding in full; the only call that returns prose                 |\n| `checks \u003Cstream>`                   | the command behind each check that ran, plus exclusions               |\n| `diff \u003Cstream> [--from S] [--to S]` | ids and titles added and resolved between two runs                    |\n| `runs \u003Cstream>`                     | the stamps the ring holds, so a `diff` can name real ones             |\n\n- Exit 0 answered the question. Exit 2 could not, and stdout still holds one JSON object whose\n  `error` says why — absent or unlistable store, absent stream, absent stamp, a file that would not parse.\n  Arguments that do not parse are the exception: argparse prints usage to stderr and stdout is\n  empty. Every answer carries an `error` key, null on success. `streams` exits 2 when any one stream is\n  unreadable; its other rows still stand — report them and name the unreadable ones.\n- Every subcommand but `streams` takes `--repo`, the repository as the managed list or the `repos`\n  list names it: `owner\u002Fname` (or `github.com\u002Fowner\u002Fname`) on github.com, `\u003Chost>\u002Fowner\u002Fname` on a\n  GitHub Enterprise Server, and `\u003Chost>\u002F\u003Cpath>` for a repository on another forge. Leave it off when the stream has\n  published to one repository; when it has published to several, the answer is exit 2 with the\n  `repos` to choose from — ask which, or run once per repository, never pick one silently.\n- `--run` takes a stamp from `runs`, with or without the `.json`. Default is the newest run:\n  `latest.json`, or the newest ring entry when a later run deleted it and failed. `streams`, `show`,\n  `findings`, `finding` and `checks` then carry `latest_missing: true` — say the answer is from that\n  run and the issue may be newer.\n- `--severity`, `--cluster` and `--check` on `findings`, and `--cluster` and `--check` on `checks`,\n  are exact matches, case-insensitive.\n- `findings`, `checks` and `diff` cap at 100 rows, raisable with `--limit`. `findings` and `checks`\n  report `matched`, `returned` and `truncated`, and `checks` caps its exclusions separately under\n  `not_applicable_matched`, `not_applicable_returned` and `not_applicable_truncated`; `diff` caps\n  `added` and `resolved` independently and reports `added_total`, `resolved_total`, `unchanged` and\n  `truncated` — quote `added_total`, not the length of `added`. Findings sort severity-first, so a\n  cap drops only the least severe; `checks` keeps the document's order, one row per cluster and\n  check, while the issue's table groups clusters that ran the same command into one row.\n- `--root` overrides the store root. In the pod, leave it alone.\n\n## The four questions this gets asked\n\n**\"What did last night's compliance audit find?\"**\n\n```bash\npython3 \u002Fopt\u002Fdata\u002Fprofiles\u002Fplatform\u002Fskills\u002Ffleet-audit-reports\u002Fscripts\u002Freport_query.py show compliance-audit\npython3 \u002Fopt\u002Fdata\u002Fprofiles\u002Fplatform\u002Fskills\u002Ffleet-audit-reports\u002Fscripts\u002Freport_query.py findings compliance-audit --severity critical\n```\n\n`show` gives, under `envelope`, `status`, `findings`, `critical`, `partial`, `ledger_held_open`, the\ndelta counts and `issue_url`; name the criticals from `findings`. When `ledger_held_open` is true,\nthis run found nothing but the issue still carries the previous run's findings — say both, and point\nat the issue. Always hand back the issue URL — the store is where you read, the ledger is where a\nhuman acts — except on a `NO_FORGE` run, which has no issue: the store is the only record. A\n`STORE_LEDGER` run has no issue either: hand back its pull request links instead.\n\n**\"What changed since the last run?\"**\n\n```bash\npython3 \u002Fopt\u002Fdata\u002Fprofiles\u002Fplatform\u002Fskills\u002Ffleet-audit-reports\u002Fscripts\u002Freport_query.py diff compliance-audit\n```\n\nDefaults to the newest two runs and returns ids and titles under `added` and `resolved`. When\n`from_partial` or `to_partial` is true, that run could not see the whole fleet: a finding under\n`resolved` may be one it did not look at, so say \"not seen\", never \"fixed\". When `to_held_open` is\ntrue, the audit itself refused to resolve them; they are still on the issue. When `from_held_open`\nis true, the earlier run found nothing while the issue still listed older findings, so `added` may\nbe findings the ledger already carried — say \"found again\", not \"new\". For a wider span, list the\nring first and name two stamps, older as `--from` — a reversed pair is refused:\n\n```bash\npython3 \u002Fopt\u002Fdata\u002Fprofiles\u002Fplatform\u002Fskills\u002Ffleet-audit-reports\u002Fscripts\u002Freport_query.py runs compliance-audit\npython3 \u002Fopt\u002Fdata\u002Fprofiles\u002Fplatform\u002Fskills\u002Ffleet-audit-reports\u002Fscripts\u002Freport_query.py diff compliance-audit --from \u003Cstamp> --to \u003Cstamp>\n```\n\n**\"Tell me about that finding.\"**\n\n```bash\npython3 \u002Fopt\u002Fdata\u002Fprofiles\u002Fplatform\u002Fskills\u002Ffleet-audit-reports\u002Fscripts\u002Freport_query.py finding compliance-audit \u003Cfinding-id>\n```\n\nThe evidence command and excerpt, the impact, and all three `recommendation` fields. This is the\nexpensive call: make it for the finding that was asked about, not for the list.\n\n**\"The issue says findings or commands were omitted — what were they?\"**\n\n```bash\npython3 \u002Fopt\u002Fdata\u002Fprofiles\u002Fplatform\u002Fskills\u002Ffleet-audit-reports\u002Fscripts\u002Freport_query.py findings obtainability-audit\npython3 \u002Fopt\u002Fdata\u002Fprofiles\u002Fplatform\u002Fskills\u002Ffleet-audit-reports\u002Fscripts\u002Freport_query.py checks obtainability-audit --cluster prod-us-east\n```\n\nThe ledger names findings it has no room to show in full on one line each, as far as the room left\nafter the criticals' full blocks allows, then drops the least-severe ones and its evidence table whole, to stay inside GitHub's\nbody limit, and says so in a notice that points here. `findings` lists every finding the run\ncarried. `checks` is one row per check the run says it performed, with the command that performed\nit, plus each `checks_not_applicable` exclusion and its reason; filter by cluster or check — a\n16-cluster stream carries upwards of 150.\n\nFleet-wide, `streams` is the whole answer: one row per stream with its liveness, so \"when did each\nlast run\" and \"is anything stuck\" come back in one call. Coverage questions read `show`'s\n`coverage_gaps`; `streams` carries only the count.\n\n## Two things the store is not\n\n- **Not the live issue.** It is the last _published_ state. A finding a human closed by hand since\n  that run, or a `\u002Fremediate` posted since, is not in it until the next run rewrites the store. When\n  the question is about the issue, read the issue.\n- **Not written for every invocation.** Only a `finish` that exits 0 writes — never `--dry-run`,\n  never a run that exited 2, never `remediate`. The write is best-effort. `finish` deletes\n  `latest.json` before it rewrites the ledger, and after the clean close lands (a close that fails\n  leaves it, since the ledger is still the one it describes), so a run that fails partway leaves no\n  superseded envelope reading as current; the ring stays, and answers come from it flagged\n  `latest_missing`. When the close landed but the run failed before storing itself, the newest ring\n  entry is an `OPENED` or `UPDATED` run whose issue is now closed, and a human can close one by\n  hand: either way it is not the open ledger. Check the issue's state, or say\n  the findings are as of that run.\n  **No stored run means unknown, not clean** — say the store has no record, and read the ledger\n  issue if the install has a forge.\n\n## Red lines\n\n- **Never report an absent, unreadable, `never` or `died` stream as a clean fleet.** \"I could not\n  look\" and \"nothing is wrong\" are different answers; pass `error`, `liveness` and any\n  `stream_error` through to the user.\n- **Never read `document` or `ledger_body` whole** to answer a question a subcommand answers.\n- **Never run, publish, or remediate from here.** Dispatching a stream, rewriting a ledger and\n  opening remediation pull requests belong to `fleet-audit`\n  ([Running a stream on demand](..\u002Ffleet-audit\u002Freferences\u002Fon-demand.md#running-a-stream-on-demand)).\n- **Never act on a `running` or `died` stream's lease.** It is `fleet-audit`'s; report the state.\n- **Never quote a count the store did not give you.** The counts are keys; re-deriving one by hand\n  from prose is how a stale number reaches a user with the authority of a file read.\n",{},"main","8b67a1e366200b315ca45343677d405bf93957fe","agents\u002Fplatform\u002Fskills\u002Ffleet-audit-reports",44,"https:\u002F\u002Fgithub.com\u002Fgke-labs\u002Fkube-agents","https:\u002F\u002Fgke-labs.github.io\u002Fkube-agents\u002F","https:\u002F\u002Fgithub.com\u002Fgke-labs","2026-11-14 20:53:19",{"source":7,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add gke-labs\u002Fkube-agents --skill fleet-audit-reports",{"tool":36,"command":37},"bunx","bunx skills add gke-labs\u002Fkube-agents --skill fleet-audit-reports",{"tool":39,"command":40},"pnpm","pnpm dlx skills add gke-labs\u002Fkube-agents --skill fleet-audit-reports","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fgke-labs\u002Fkube-agents\u002Fblob\u002Fmain\u002Fagents\u002Fplatform\u002Fskills\u002Ffleet-audit-reports\u002FSKILL.md",true,[44,50],{"path":45,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":48,"sourceHtmlUrl":49},"scripts\u002Freport_query.py","SCRIPT","脚本",36852,"https:\u002F\u002Fgithub.com\u002Fgke-labs\u002Fkube-agents\u002Fblob\u002Fmain\u002Fagents\u002Fplatform\u002Fskills\u002Ffleet-audit-reports\u002Fscripts\u002Freport_query.py",{"path":51,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":52,"sourceHtmlUrl":53},"scripts\u002Ftest_report_query.py",58080,"https:\u002F\u002Fgithub.com\u002Fgke-labs\u002Fkube-agents\u002Fblob\u002Fmain\u002Fagents\u002Fplatform\u002Fskills\u002Ffleet-audit-reports\u002Fscripts\u002Ftest_report_query.py",[55,62,69,76,83,90],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":8,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":17},"01M72168JZM6CYRZFWW204PA2V","gke-workload-troubleshooting","Diagnoses GKE workload failures (CrashLoopBackOff, OOMKilled, ImagePullBackOff, Pending, etc.) via logs and events. Use when pods fail to start or crash repeatedly. Don't use for GKE cluster infrastructure provisioning, node pool creation, or non-Kubernetes Google Cloud services.","https:\u002F\u002Fgithub.com\u002Fgke-labs\u002Fkube-agents\u002Fblob\u002Fmain\u002Fthird_party\u002Fgoogle-skills\u002Fgke-workload-troubleshooting\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":8,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":17},"01M721643JPG43MFDHGN067D7T","gke-workload-security","Audits, configures, and hardens workload-level security controls for Google Kubernetes Engine (GKE) applications and namespaces. Covers running security audits (`audit_cluster.sh`), enforcing Network Policies (default-deny and Dataplane V2 logging), isolating high-risk pods inside GKE Sandbox (`gVisor`), enforcing Pod Security Standards (`restricted` labeling) and pod securityContext, and mounting Secret Manager secrets via CSI (`SecretProviderClass`). Use when auditing workload security posture, isolating namespaces, applying pod security standards, or configuring network policies and secret volume mounts. Don't use for Workload Identity (use gke-workload-identity), cluster-wide control plane security, RBAC hardening, Binary Authorization, Shielded Nodes, or enabling platform-level GKE add-ons (use gke-platform-security instead).","https:\u002F\u002Fgithub.com\u002Fgke-labs\u002Fkube-agents\u002Fblob\u002Fmain\u002Fthird_party\u002Fgoogle-skills\u002Fgke-workload-security\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":8,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":17},"01M721618QGFKZRWHS0RFVG7WT","gke-workload-scaling","Manages scaling for GKE workloads using HPA and VPA. Use when configuring Horizontal Pod Autoscaler (HPA), configuring Vertical Pod Autoscaler (VPA), or applying best practices for GKE workload autoscaling. Do not use for cluster-level autoscaling (Cluster Autoscaler), static cluster sizing, or configuring node-level machine styles directly.","https:\u002F\u002Fgithub.com\u002Fgke-labs\u002Fkube-agents\u002Fblob\u002Fmain\u002Fthird_party\u002Fgoogle-skills\u002Fgke-workload-scaling\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":8,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":17},"01M7215WA1TNFDZE22VJEN3XXW","gke-workload-identity","Configures and diagnoses Workload Identity Federation for GKE authentication failures for Pods (403 \"iam.serviceAccounts.getAccessToken\" \u002F permission denied, \"could not find default credentials\", or GKE metadata server unreachable) by verifying cluster and node-pool Workload Identity configuration, the Kubernetes ServiceAccount (KSA) to IAM binding (direct principal binding and legacy Google ServiceAccount impersonation), target-resource IAM roles, and gke-metadata-server health. Use when setting up KSA\u002FGSA bindings (`roles\u002Fiam.workloadIdentityUser`, `iam.gke.io\u002Fgcp-service-account`) or when a Pod cannot authenticate to Google Cloud APIs. Don't use for in-cluster Kubernetes RBAC errors (API-server authorization), general workload crashes (use gke-workload-troubleshooting), or Pod Security Standards and NetworkPolicies (use gke-workload-security).","https:\u002F\u002Fgithub.com\u002Fgke-labs\u002Fkube-agents\u002Fblob\u002Fmain\u002Fthird_party\u002Fgoogle-skills\u002Fgke-workload-identity\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":8,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":17},"01M7215PJTBTZ0W15ZZ2W32FF9","gke-upgrades","Plans, executes, and validates Google Kubernetes Engine (GKE) cluster upgrades and maintenance operations for both Standard and Autopilot clusters. Produces upgrade plans, pre\u002Fpost-upgrade checklists, maintenance runbooks with gcloud commands, release channel strategy, and troubleshooting guides. Handles node pool upgrade strategies (surge, blue-green), version compatibility, PDB management, and workload-specific concerns (stateful, GPU, operators). Use this skill whenever the user mentions GKE upgrades, Kubernetes version bumps, node pool maintenance, GKE patching, cluster version management, release channel selection, maintenance windows, surge upgrades, stuck upgrades, or any GKE lifecycle management task — even casual mentions like \"we need to upgrade our clusters\" or \"plan our next GKE maintenance\" or \"our upgrade is stuck.\" Don't use for GKE cluster creation, application onboarding, general networking\u002Frouting setup, or security policy configurations (use gke-basics or relevant GKE skills instead).","https:\u002F\u002Fgithub.com\u002Fgke-labs\u002Fkube-agents\u002Fblob\u002Fmain\u002Fthird_party\u002Fgoogle-skills\u002Fgke-upgrades\u002FSKILL.md",[],[],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":8,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":17},"01M7215JX0FBZBTG4570CJ20HS","gke-tpu-metrics-monitoring","Monitors and troubleshoots GKE TPU workloads, nodes, and node pools using GKE system metrics and PromQL. Use when monitoring TensorCore duty cycle, TPU memory, node readiness, multi-host TPU node pool availability, host maintenance or preemption interruptions, and calculating MTTR or MTBI metrics for GKE TPUs. Don't use for general non-TPU GKE workload monitoring or non-metric TPU debugging.","https:\u002F\u002Fgithub.com\u002Fgke-labs\u002Fkube-agents\u002Fblob\u002Fmain\u002Fthird_party\u002Fgoogle-skills\u002Fgke-tpu-metrics-monitoring\u002FSKILL.md",[],[]]