[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M720P8THP517A72QDJ7MN2CH":3,"skill-same:01M720P8THP517A72QDJ7MN2CH":45},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":26,"repositoryHtmlUrl":27,"repositoryHomepageUrl":28,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":30,"install":31,"resources":44},"01M720P8THP517A72QDJ7MN2CH","review-adversarial",null,"Reviews a change adversarially — establishes what it claims to do, hunts candidates from eleven angles, then re-derives every candidate from source as a hostile second reader and reports only what survives.","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\u002F.agents\u002Fskills\u002Freview-adversarial\u002FSKILL.md",[],[],"2026-11-10 18:39:20",false,"---\nname: review-adversarial\ndescription: Reviews a change adversarially — establishes what it claims to do, hunts candidates from eleven angles, then re-derives every candidate from source as a hostile second reader and reports only what survives.\n---\n\n# Task\n\nGiven a diff range, find the defects in it and report only the ones you can defend. This skill is\nthe review method itself and holds no plumbing: it is run by an author against their own branch\nbefore opening a pull request (the `AGENTS.md` requirement, wrapped by `review-preflight`), and by a\nreviewer against a pull request already open (`.claude\u002Fcommands\u002Fpr-review-batch.md`, which wraps it\nin the GitHub-side work), and by `kube-agents-bot` as the method for its candidate passes when a\nrepository nominates it (step 1 says what that reader keeps and what it cannot do).\n\n`review-docs-drift` is the companion pass, not part of this one. Angle H stops at the rules the\ndiff visibly breaks and at prose the diff makes false — the one hop from a hunk to the sentence it\nfalsified — and leaves the rest of the documentation question to that skill.\n\n# Procedure\n\n## 1. Run this in a context that did not write the change\n\nIf you are the agent that just produced the diff, **do not run the pass in the conversation that\nproduced it**. [`review-preflight`](..\u002Freview-preflight\u002FSKILL.md) is how you get a context that did\nnot: it owns the plumbing, down to what to hand the fresh context, what to withhold from it, and\nwhat to do when your harness will not spawn one for the asking. A model reviewing work it has just justified is the weakest\nconfiguration there is: it is poorly calibrated about its own output, rates it higher than an\noutsider would, and the bias is worst on exactly the lines it got wrong. It is also more likely to\n\"fix\" something correct than to catch something broken, which is why step 5 exists and why step 6\nwill not let you edit on a hunch.\n\nThat is why both wrappers spend a subagent on it —\n[`.claude\u002Fcommands\u002Fpr-review-batch.md`](..\u002F..\u002F..\u002F.claude\u002Fcommands\u002Fpr-review-batch.md) for a pull\nrequest already open,\n[`.claude\u002Fcommands\u002Fpr-preflight.md`](..\u002F..\u002F..\u002F.claude\u002Fcommands\u002Fpr-preflight.md) for the author's own\nbranch.\n\nWithout a wrapper, the minimum is: hand the fresh context the repository, the diff range, and this\nfile, and withhold your plan, your reasoning, and the intent sentence step 3 asks it to derive for\nitself. The gap between what you meant and what the diff says is the finding you cannot get any\nother way.\n\nWithholding is not enough on its own. Your commit messages are inside the range by construction and\nyour plan files are in the checkout you just handed over, so add the instruction that keeps the pass\nout of them: _derive the change's intent from the diff; do not read the branch's commit message\nbodies, plan files, or scratch notes_.\n\nYou will be tempted to skip this on a small diff. The cost of a fresh context is one subagent; the\ncost of skipping it is that the pass reports what you already believed.\n\n**When a review bot runs this file.** `kube-agents-bot` can be handed this file as the method for\nits candidate passes — `playbook:` in a repository's `.github\u002Fkube-agents-bot.yml`; whether this\nrepository has set it is a question for that file, and the bot's own README and design document\n(`kube-agents-bot`, `playbook:`) are canonical for the key and for everything this paragraph says\nabout the bot — so that the author's pre-PR pass and the automated review look for the same\nthings. The bot reads this file from the **base** commit, so a pull request editing it is reviewed\nunder the version it did not write. For that reader this step is met by construction: it did not\nwrite the change and cannot spawn anything, so it starts at step 2. It has no shell, no `gh`, and no\nway to write, and it hands what it finds to a scoring stage of its own. In that setting, every\ninstruction below to run, build, revert, or query is a step to reason about and to name as not run:\nraise the candidate on what the tree shows, say which run would settle it, and do not drop a\ncandidate for want of the run. Angle J is the exception the host already makes for its own\nequivalent — a reviewer whose only input is a `gh` query is skipped, not guessed at. This file's\nstep 6, the disposition, belongs to the author. And the bot's own output contract replaces three\nthings here: the shape under **Output**, the verdict labels of step 5, and the words under\n**Severity** — the pass still writes a severity, in the host's vocabulary, and the host's scoring\nstage adds the confidence and decides what is kept. The angles, and the discipline of re-deriving\nevery candidate from source before it counts, are the same document in both hands, which is the\npoint.\n\n## 2. Fix the diff range\n\nEverything below is measured against one range, so name it before you start:\n\n```bash\ngit diff --stat \"$BASE\"...HEAD     # three-dot: against the merge base, not the base tip\n```\n\n`$BASE` is `main` for a branch you are about to propose, or the branch the pull request targets.\nThe three-dot form keeps unrelated base-branch drift out of scope.\n\nOut of the diff is not out of the review. When the tree is the pull request already merged onto its\nbase — what a review bot reads, and what actually lands — the base's drift since the branch point\nis in it, and an assumption the branch made about the base that the base has since moved (a pinned\nimage, a schema, a helper's signature) is in scope even though no hunk shows it: it is the thing\nthat breaks on merge. A reviewer's worktree under `pr-review-batch` is the same tree, its base\nmerged in first. On an author's own branch the same question is the drift check in\n[`docs\u002Fpull-request-workflow.md`](..\u002F..\u002F..\u002Fdocs\u002Fpull-request-workflow.md#measure-how-far-a-branch-has-drifted-from-main).\nIn every case, ask what the base changed under the files the diff touches.\n\nRead the changed files at their state **with this change applied**, not just the hunks. A hunk shows\nyou what moved; the enclosing function tells you whether it still works.\n\n## 3. Establish intent\n\nWrite down, in one sentence, **what this change claims to do**. Take it from the issue it closes,\nthe pull request body, or — for a branch with neither — the change itself. Keep that sentence: it\nis the yardstick for Angles F and I, and it is what tells you whether a given hunk belongs here at\nall.\n\nTwo failure modes. Do not let the stated intent talk you out of a defect — \"known limitation,\nfollow-up\" does not make a dropped guard correct, though it does change how you phrase the\nfinding. And do not treat the stated intent as a description of the diff: where the two disagree,\nthe diff is what merges. A description promising a behaviour the diff does not implement, or\nsilent about one it does, is itself a finding.\n\n## 4. Find candidates (eleven angles)\n\nWork all eleven angles yourself, in sequence. Do not skip an angle because an earlier one found\nnothing there, and do not let one angle's conclusion suppress another's — if two angles flag the\nsame line for different reasons, record both.\n\nEach angle surfaces up to six candidates, each with a `file`, a `line`, a one-line `summary`, and a\nconcrete `failure_scenario`. Pass every candidate with a nameable failure scenario through to step\n5 — silently dropping half-believed candidates is the dominant cause of misses. A candidate you\ncannot express as a failure scenario is not yet a candidate.\n\n**Angle A — line-by-line diff scan.** Read every hunk, line by line. Then read the enclosing\nfunction for each hunk — bugs in unchanged lines of a touched function are in scope, since the\nchange re-exposes or fails to fix them. For every line ask: what input, state, timing, or platform\nmakes this line wrong? Inverted or wrong conditions, off-by-one, nil\u002Fundefined deref, missing\n`await`, unchecked `err`, falsy-zero checks, wrong-variable copy-paste, an error swallowed in a\ncatch, unescaped regex metacharacters.\n\n**Audit error handlers and fallback values**: for every `catch`, `except`, `if err != nil`,\n`if ! cmd` (or `$? != 0`), or fallback assignment on a failed resolution, trace the fallback value.\nDoes it preserve the invariant downstream code assumes — a normalized 40-character SHA, a validated\nSemVer, an absolute path, a non-nil struct — or does it pass a raw, unvalidated input forward? Check\nif error suppression (`|| true`, `_ = err`, `except: pass`) transforms a failed lookup on a\nmalformed input into a benign empty result (`nil`, `\"\"`, `[]`), silently disabling downstream\ncollision, uniqueness, or security guards.\n\n**Angle B — removed-behavior auditor.** For every line the diff deletes or replaces, name the\ninvariant it enforced, then find where the new code re-establishes it. If you cannot find it,\nthat's a candidate: a removed guard, a dropped error path, a narrowed validation, a deleted test\nthat was covering a real case, a loosened RBAC or NetworkPolicy rule.\n\n**A weakened check is a removed invariant**, and it is the one an agent reaches for when a gate\nwill not go green, so audit CI separately and by name: a test removed, renamed, or marked skip or\nxfail; a coverage threshold lowered; `|| true`, `continue-on-error`, or a silenced exit status\nappended to a step; a workflow that no longer triggers on pull requests or on forks; a step newly\ngated behind a condition it did not have. Any of these is a candidate on its own — the failure\nscenario is the class of defect that gate was catching, now shipping unobserved. **A diff whose\nonly changes are to test files, on a branch whose CI was failing, is a candidate until you can\nshow the test was wrong.** That is the shape of a change that makes the build green without making\nthe code right.\n\n**Angle C — cross-file tracer.** For each function, template, chart value, or CRD field the diff\nchanges, grep for its consumers and check whether the change breaks any of them: a new\nprecondition, a changed return shape, a renamed key a manifest still reads, a timing dependency.\nTrace runtime wiring through to the source — which container an env var lands in, which process\nreads a port, which service account a binding actually grants — rather than inferring it from\nnames.\n\n**Audit sibling contract symmetry**: when reviewing code in a family of components (reconcilers,\nCLI tools, admission webhooks, API handlers), compare how identical domain inputs (a commit, a\ncluster name, a tag, credentials) are validated and handled across siblings. An unmotivated\nasymmetry — where one component hard-fails on an unresolvable entity while a sibling falls back\nsilently — is an immediate candidate.\n\nThen trace the other direction, because a change written by an agent can call things that do not\nexist: for every symbol, method, flag, chart value, CRD field, environment variable, or file path\nthe diff **introduces a reference to**, open its definition. A plausible name is not evidence. The\nrepo already applies this to prose — identifiers verified against source, not against other\ndocs — and code gets it for the same reason. Watch for the neighbours: an import added for a symbol\nnothing uses, a dependency added without a pin or a provenance, a value hard-coded where the\nsurrounding code reads configuration, and files changed that the stated intent never mentioned.\nThe same goes for what the diff **calls without changing**: a script a workflow step now runs, a\ntemplate a chart now includes, a helper a new container should have gone through — open it and\ncheck that what the diff hands it (a token's scope, a variable's shape, a security context) is what\nit needs. #1237's blocker was a token minted `contents: write` and handed to a script the diff never\ntouched, which needed `packages: write`; nothing in the hunks said so.\n\n**Angle D — operations and security.** This repo provisions clusters and holds credentials, so\nweigh blast radius: IAM and RBAC scope, credential handling and redaction, NetworkPolicy reach,\nwhat an agent is newly permitted to do, and whether a failure mode degrades or destroys. Check\nthat third-party GitHub Actions are pinned to a full commit SHA with the version in a trailing\ncomment.\n\n**Angle E — reuse.** The angles above hunt for bugs; this one and the next two hunt for cleanup in\nthe changed code. Flag new code that re-implements something the codebase already has — grep\nshared and adjacent modules, and name the existing helper to call instead.\n\n**Angle F — simplification and efficiency.** Flag unnecessary complexity the diff adds: redundant\nor derivable state, copy-paste with slight variation, deep nesting, dead code left behind. And\nwasted work: repeated I\u002FO, independent operations run sequentially, blocking work added to startup\nor a hot path. Name the simpler or cheaper form that does the same job. A new abstraction, flag,\nconfig key or option that serves the intent sentence from step 3, but that a smaller change would\nmeet without it, is a finding too, and the candidate names that change; Angle I owns what does not\nserve the intent.\n\n**Angle G — altitude.** Check that each change sits at the right depth rather than being a fragile\nbandaid. Special cases layered onto shared infrastructure are a sign the fix isn't deep enough —\nprefer generalizing the underlying mechanism.\n\n**Angle H — conventions and docs.** Read the `AGENTS.md` \u002F `CLAUDE.md` files that govern the\nchanged code: the repo root, plus any in a directory that is an ancestor of a changed file (a\ndirectory's file only applies at or below it). Read `.agents\u002Frules\u002F` alongside them — the root\n`AGENTS.md` states each rule in a line and that file holds the form it takes and the cases exempt\nfrom it, so the one-liner alone will have you flagging exempt code. Flag a violation only when you\ncan quote the exact rule and the exact line that breaks it — no style preferences, no \"spirit of\nthe doc\" inferences. Name the file and quote the rule so the report can cite it. This is also\nwhere docs drift belongs: one canonical home per fact, generated `\u003C!-- BEGIN GENERATED -->` regions\nregenerated rather than hand-edited, identifiers verified against source rather than against other\ndocs. A hunk under `docs\u002Fsite\u002F` that arrives with a `ci`, `build`, or `feat(ci)` change — a diff that\nalso touches `.github\u002Fworkflows\u002F`, `hack\u002F`, or the pool scripts — is a prompt to ask whether the\npage is a runbook: the site is for people running kube-agents on their own clusters, and\n`.agents\u002Frules\u002Fdocumentation.md` names the homes a maintainer page goes to instead.\n`review-docs-drift` is the exhaustive form of that check and the author is required to have\nrun it before opening — which is a reason to read what they reported, not a reason to skip this\nangle. **Prose this change makes false is a finding on the same footing as a bug**, not a style\nnote: a comment, a document, an in-tree statement that described the old behaviour and now\ndescribes something that no longer ships. Name the passage and the mechanism in the change that\nfalsified it. It is one hop from the diff — the file the hunk sits in, the page that documents the\nflag it changed — and it is a class a second reader finds after a first reader said nothing.\n\n**Angle I — scope and test coverage.** Hold the diff against the intent sentence from step 3. Flag\nchanges that do not serve it: an unrelated refactor riding along, a dependency bump nobody asked\nfor, a behaviour change buried in a change described as a rename, reformatting that inflates the\ndiff and hides the real hunks. Repo convention is scoped changes and no unrelated formatting, so\ncite the rule when it applies. Judge by whether a change serves the stated intent, not by how large\nit is — a big diff that does one thing is in scope, and a three-line change that does a second\nthing is not.\n\nRead the pull request's **Self-Review** and **Testing** sections when there is a body, and on a\n`fix`-type pull request its **Bug Fix: Preventing Recurrence** section. `AGENTS.md` is canonical\nfor what the first two owe a reviewer — \"What any reviewer reads first\" for the Self-Review, and\nthe live-validation bullet under Pull Request Hygiene with `.agents\u002Frules\u002Fpre_pr_review.md` for\nTesting — and `pre_pr_review.md` for the third. What this angle adds is that they are claims\nthe tree can check: every path, script, or command the Testing section credits must exist and do\nwhat it is credited with, and a guard or test the description says covers a case must reach that\ncase. A claim the diff does not support is the finding \"What any reviewer reads first\" describes;\na recurrence section left empty or answered \"Not a bug fix\" on a `fix` is the one\n`pre_pr_review.md` describes. One exception: on a preflight re-run of your own branch the\nSelf-Review is the previous round's dispositions, and `review-preflight` §7 says a fresh pass is\nnot handed those — read it on a reviewer's or a bot's pass, withhold it on a re-run of your own.\n\nA section that hands a required artifact to another pull request has not answered, and no rule\nopens the route for either artifact it is usually tried on. \"The PR that installs it carries the\neval case\" — `.agents\u002Frules\u002Feval_driven_development.md`, \"What does not count\", says the answer to\na stack is merge order, so the sibling lands first and this pull request runs the loop against the\n`main` that includes it; where neither change is observable without the other, they are one change\nand belong in one pull request. \"Live-tested in the next one\" —\n`.agents\u002Frules\u002Fpre_pr_review.md` gives exercising the change, or \"Not live-tested\" with the\nreason, and nothing else. The deferral is\nvisible in the body alone, so raise it whether or not you can reach the sibling, and say which of\nthose two is owed. Angle J follows the hand-off where `gh` is available.\n\nThen check that the intent is actually tested: for each behaviour the change claims, name the test\nthat would fail if that behaviour regressed. Where there is none, the candidate is the untested\nbehaviour, not the absent test — say which regression would ship silently. Bug fixes without a\nregression test, and new error paths nothing exercises, are the usual cases.\n\n**Do not treat green test suites as proof of correctness**: a passing suite proves only that the\npaths it exercises work on the fixtures it supplies. For every validation check, gate, and error\npath, check whether **negative inputs** (unresolvable identifiers, malformed strings, absent fields)\nare tested against the gate, or if the tests only pass valid fixtures through the happy path.\n\n**A pull request reviewed before.** On a pull request a review has already read, a line an earlier\nfix changed is read for two things — whether the thread's defect is gone, and whether anything the\nfix touched now misbehaves — and a new defect in new code counts wherever it sits. A further\nadmitted input of a grammar an earlier round already named (a regex, a parser, a format check) is\nthe same finding: one candidate per grammar per round, the inputs as its evidence, the structural\nalternative as a follow-up unless it is High — except a grammar that refuses (an allowlist, a\nsanitiser, a path or identity check), where each admitted input is its own finding. A test the pull\nrequest adds is read for whether it fails on the defect it claims, not hardened case by case.\n\nFor a change that fixes something, naming the test is not enough — **run it against the pre-change\nbehaviour and watch it fail.** A test that passes with the fix reverted is testing something else,\nand a fix with no test that can be made to fail usually means the defect was not understood. Say\nwhich it was. A red-then-green test is the one answer in this whole pass that does not come from\nyour own reading, which is what makes it worth more than any amount of staring at the diff.\n\n**Angle J — sibling pull requests.** Every angle so far has looked only at this change. Widen\nonce, to the pull requests touching adjacent paths — the open ones, and any the body names:\n\n```bash\ngh pr list --repo gke-labs\u002Fkube-agents --state open --limit 100 --json number,title,author,files\n# A sibling the body names may already have merged. Fetch it by number: `gh pr list --state merged`\n# orders by creation, so its limit reaches back days and can miss an old branch merged last week.\ngh pr view \u003Cnumber> --repo gke-labs\u002Fkube-agents --json number,title,state,files,body\n```\n\nFour things come out of this that nothing else can see. A finding already accepted on a sibling\nusually applies here unchanged — apply it rather than rediscovering it. A near-identical change\nthat has diverged is itself a finding: name which copy carries the fix and which does not, because\nmerge order then decides whether the fix survives. Where one change is a superset of another,\nsay so — reviewing the subset in isolation spends effort on a diff that may never merge. And where\nthis body hands a required artifact to a sibling, open that sibling and see what it actually\ncarries rather than reading the hand-off as a disposition. Neither artifact has a route, as Angle I\nsays: for the eval case quote `.agents\u002Frules\u002Feval_driven_development.md`, \"What does not count\" —\nand where the sibling has already merged, its case is on `main`, so this pull request owed a red\nagainst it; for live validation quote `.agents\u002Frules\u002Fpre_pr_review.md`, whose only alternative to\nexercising the change is \"Not live-tested\" and the reason, which no sibling's body supplies. Two\nbodies that each point at the other is the sharper form, because both merge and the artifact\nreaches `main` in neither. A hand-off points backwards as often as forwards, so fetch a named\nsibling that has already merged rather than concluding from the listing that there is none, and\ncheck that what it carries exercises this diff rather than only the sibling's own.\n\n**Angle K — maintainability and brittleness.** Back on this change alone, ask what it costs to keep\nright. Flag what the team must now keep in sync by hand, a list or value copied from a project this\nrepository does not own unless a sync script, generator or pin file owns the copy, a private name of\nanother project its owner may rename, a change a future upstream edit must repeat in several places,\nand temporary code beyond the minimum. Flag the brittle forms: a check on a tool's display line\ninstead of the value it stands for, a constant copied across files instead of imported, a test that\npasses only in one order, and a test that pins incidental wording. Name the sturdier form or the\nsmaller design that drops no behaviour; a candidate with no named alternative is a remark, not a\nfinding.\n\nFor the cleanup, altitude, maintainability, conventions, scope, and sibling candidates the\n`failure_scenario` states the concrete cost — what is duplicated, wasted, harder to maintain, out\nof scope, or which rule or untested behaviour is at risk — instead of a crash. Correctness bugs\nalways outrank them when something has to be cut.\n\nPrefer running things over reasoning about them: execute the test suites the change touches and\nreproduce the failures you claim.\n\n## 5. Verify every claim (this step is not optional)\n\nDedup first: candidates pointing at the same line and the same mechanism collapse into the one with\nthe most concrete failure scenario.\n\nThen take each surviving candidate and re-derive it from the source as if you were a hostile second\nreviewer trying to get it thrown out. Open the actual file and read the actual code path — do not\nre-read your own notes, and do not accept a claim because it sounded right when you wrote it.\nConfirm the mechanism, not just the conclusion: a real defect reached by an imaginary code path is\nstill a wrong finding. Assign each one a verdict:\n\n- **CONFIRMED** — you can name the inputs or state that trigger it and the resulting wrong output,\n  crash, or misconfiguration. Quote the line. For an Angle K candidate, quote both sides of the\n  dependency it names: the two copies, the display text and the value behind it, or the test and\n  the order or wording it relies on.\n- **PLAUSIBLE** — the mechanism is real but the trigger is uncertain (timing, environment, cluster\n  state). State what would confirm it. Realistic-but-unproven is PLAUSIBLE, not REFUTED:\n  concurrency races, nil on a rare-but-reachable path (error handler, cold cache, absent optional\n  field), falsy-zero treated as missing, off-by-one on a boundary the code does not exclude, a\n  regex or allowlist that lost an anchor.\n- **REFUTED** — factually wrong (the code doesn't say that), provably impossible (show the type,\n  constant, or invariant), already handled in this diff (cite the guard), or pure style with no\n  observable effect. Quote the line that proves it.\n\nKeep CONFIRMED and PLAUSIBLE. Then rewrite the finding list so it reflects only what survived:\n\n- **Claim holds** → keep it as written.\n- **Claim holds but the mechanism, severity, line number, or blast radius is wrong** → rewrite the\n  finding to the corrected version. The finding now reads as though the corrected version is what\n  you found in the first place.\n- **REFUTED, or you cannot verify it** → delete it entirely. Do not demote it to a footnote, a\n  \"worth checking\" aside, or a parenthetical. If the underlying uncertainty is genuinely worth\n  someone's time, restate it as an open question in its own right, with the uncertainty stated\n  plainly — never as a correction to something you previously asserted.\n\nThen clean up after the edit, because these are what give away a second pass:\n\n1. Re-sort findings by severity (`BLOCKER` \u002F `HIGH` \u002F `MEDIUM` \u002F `LOW`) and **renumber from 1 with\n   no gaps**.\n2. Update every cross-reference between findings to the new numbers.\n3. Update any count in the prose (\"three blockers\") to match the surviving set.\n4. Re-read the whole document once for tense and voice consistency.\n\n**The finished review must read as a single confident first pass.** No \"Correction\", no\n\"Verification pass\", no \"on second look\", no \"an earlier draft said\", no \"downgraded from\", no\ndiff-of-claims, no changelog of your own reasoning. The reader should have no way to tell that step\n5 happened.\n\n## 6. Act on what survived, and record the disposition\n\nEvery surviving finding gets a disposition, and there are only two:\n\n- **Fixed** — name the commit or the hunk that fixes it.\n- **Deliberately not fixed** — give the reason. A reason is an argument about this change: the\n  path is unreachable for a stated invariant, the cost lands on a code path being deleted next\n  week, the fix belongs to a separate issue that is now filed. \"Out of scope\", \"pre-existing\", and\n  \"will fix later\" are not reasons on their own.\n\n**Edit on CONFIRMED, report on PLAUSIBLE.** A CONFIRMED finding on your own change is a defect you\nnow know about, so fix it. A PLAUSIBLE one is a mechanism you could not pin down, and rewriting\nworking code to chase it is how a self-review makes a change worse than it started: the temptation\nto \"fix\" something that was already right is the characteristic failure of reviewing your own work,\nand it is strongest on the lines you were least sure about. Write it into the section as an open\nquestion, say what would settle it, and leave the code alone unless the answer arrives. Recording a\nPLAUSIBLE finding you did not act on is a complete disposition — it hands the reviewer the doubt\ninstead of a silent edit.\n\nWhen the review is your own, before opening a pull request, that disposition list **is** the PR\nbody's **Self-Review** section. See `AGENTS.md`, \"Pull Request Hygiene\".\n\n# Severity\n\nSeverity is the consequence if the finding ships; the verdict from step 5 is your confidence in it.\nKeep the two apart — a CONFIRMED LOW and a PLAUSIBLE BLOCKER are both ordinary — and use these four,\nwhich `review-preflight`'s merged list and `pr-review-batch`'s report line both order by.\nA review bot running this file writes its severity in the host's own words, and step 1 says so:\n\n- **BLOCKER** — merging it breaks something for everyone: a release or CI path, a running install,\n  a credential's scope or reach. Must not merge as it stands.\n- **HIGH** — a defect a user or operator reaches in ordinary use, introduced or unmasked by this\n  change; or a claim in the description, the Self-Review, or the docs that the diff contradicts.\n  Fix before merge, or argue the reason in the disposition.\n- **MEDIUM** — a real defect on a narrow or unusual path, a degraded but not broken behaviour, or a\n  behaviour the change claims that nothing tests. Fix, or file it and say so.\n- **LOW** — a cleanup with a concrete, stated cost: duplication, a missed reuse, a hard-coded value,\n  an unneeded step. Reported like the rest — what step 5 keeps is reported and the reader decides\n  what to hold back — and never promoted to pad a list.\n\n# Output\n\nSeverity-ordered findings, each with:\n\n- an anchor (`file:line`),\n- its severity (the four words above),\n- what is wrong, in one sentence,\n- the concrete failure scenario,\n- the verdict from step 5,\n- the disposition from step 6.\n\nThen two short sections:\n\n- **Not findings, for the record** — things that look wrong but are fine, so the next reader does\n  not re-litigate them.\n- **What this pass did not cover** — angles you could not run, suites you could not execute,\n  infrastructure you did not have. An honest gap is worth more than an implied one.\n\n\"No findings\" is an ordinary outcome on a good change. Report it as one, alongside what you looked\nfor — never pad the list with something step 5 should have deleted.\n","# Task\n\nGiven a diff range, find the defects in it and report only the ones you can defend. This skill is\nthe review method itself and holds no plumbing: it is run by an author against their own branch\nbefore opening a pull request (the `AGENTS.md` requirement, wrapped by `review-preflight`), and by a\nreviewer against a pull request already open (`.claude\u002Fcommands\u002Fpr-review-batch.md`, which wraps it\nin the GitHub-side work), and by `kube-agents-bot` as the method for its candidate passes when a\nrepository nominates it (step 1 says what that reader keeps and what it cannot do).\n\n`review-docs-drift` is the companion pass, not part of this one. Angle H stops at the rules the\ndiff visibly breaks and at prose the diff makes false — the one hop from a hunk to the sentence it\nfalsified — and leaves the rest of the documentation question to that skill.\n\n# Procedure\n\n## 1. Run this in a context that did not write the change\n\nIf you are the agent that just produced the diff, **do not run the pass in the conversation that\nproduced it**. [`review-preflight`](..\u002Freview-preflight\u002FSKILL.md) is how you get a context that did\nnot: it owns the plumbing, down to what to hand the fresh context, what to withhold from it, and\nwhat to do when your harness will not spawn one for the asking. A model reviewing work it has just justified is the weakest\nconfiguration there is: it is poorly calibrated about its own output, rates it higher than an\noutsider would, and the bias is worst on exactly the lines it got wrong. It is also more likely to\n\"fix\" something correct than to catch something broken, which is why step 5 exists and why step 6\nwill not let you edit on a hunch.\n\nThat is why both wrappers spend a subagent on it —\n[`.claude\u002Fcommands\u002Fpr-review-batch.md`](..\u002F..\u002F..\u002F.claude\u002Fcommands\u002Fpr-review-batch.md) for a pull\nrequest already open,\n[`.claude\u002Fcommands\u002Fpr-preflight.md`](..\u002F..\u002F..\u002F.claude\u002Fcommands\u002Fpr-preflight.md) for the author's own\nbranch.\n\nWithout a wrapper, the minimum is: hand the fresh context the repository, the diff range, and this\nfile, and withhold your plan, your reasoning, and the intent sentence step 3 asks it to derive for\nitself. The gap between what you meant and what the diff says is the finding you cannot get any\nother way.\n\nWithholding is not enough on its own. Your commit messages are inside the range by construction and\nyour plan files are in the checkout you just handed over, so add the instruction that keeps the pass\nout of them: _derive the change's intent from the diff; do not read the branch's commit message\nbodies, plan files, or scratch notes_.\n\nYou will be tempted to skip this on a small diff. The cost of a fresh context is one subagent; the\ncost of skipping it is that the pass reports what you already believed.\n\n**When a review bot runs this file.** `kube-agents-bot` can be handed this file as the method for\nits candidate passes — `playbook:` in a repository's `.github\u002Fkube-agents-bot.yml`; whether this\nrepository has set it is a question for that file, and the bot's own README and design document\n(`kube-agents-bot`, `playbook:`) are canonical for the key and for everything this paragraph says\nabout the bot — so that the author's pre-PR pass and the automated review look for the same\nthings. The bot reads this file from the **base** commit, so a pull request editing it is reviewed\nunder the version it did not write. For that reader this step is met by construction: it did not\nwrite the change and cannot spawn anything, so it starts at step 2. It has no shell, no `gh`, and no\nway to write, and it hands what it finds to a scoring stage of its own. In that setting, every\ninstruction below to run, build, revert, or query is a step to reason about and to name as not run:\nraise the candidate on what the tree shows, say which run would settle it, and do not drop a\ncandidate for want of the run. Angle J is the exception the host already makes for its own\nequivalent — a reviewer whose only input is a `gh` query is skipped, not guessed at. This file's\nstep 6, the disposition, belongs to the author. And the bot's own output contract replaces three\nthings here: the shape under **Output**, the verdict labels of step 5, and the words under\n**Severity** — the pass still writes a severity, in the host's vocabulary, and the host's scoring\nstage adds the confidence and decides what is kept. The angles, and the discipline of re-deriving\nevery candidate from source before it counts, are the same document in both hands, which is the\npoint.\n\n## 2. Fix the diff range\n\nEverything below is measured against one range, so name it before you start:\n\n```bash\ngit diff --stat \"$BASE\"...HEAD     # three-dot: against the merge base, not the base tip\n```\n\n`$BASE` is `main` for a branch you are about to propose, or the branch the pull request targets.\nThe three-dot form keeps unrelated base-branch drift out of scope.\n\nOut of the diff is not out of the review. When the tree is the pull request already merged onto its\nbase — what a review bot reads, and what actually lands — the base's drift since the branch point\nis in it, and an assumption the branch made about the base that the base has since moved (a pinned\nimage, a schema, a helper's signature) is in scope even though no hunk shows it: it is the thing\nthat breaks on merge. A reviewer's worktree under `pr-review-batch` is the same tree, its base\nmerged in first. On an author's own branch the same question is the drift check in\n[`docs\u002Fpull-request-workflow.md`](..\u002F..\u002F..\u002Fdocs\u002Fpull-request-workflow.md#measure-how-far-a-branch-has-drifted-from-main).\nIn every case, ask what the base changed under the files the diff touches.\n\nRead the changed files at their state **with this change applied**, not just the hunks. A hunk shows\nyou what moved; the enclosing function tells you whether it still works.\n\n## 3. Establish intent\n\nWrite down, in one sentence, **what this change claims to do**. Take it from the issue it closes,\nthe pull request body, or — for a branch with neither — the change itself. Keep that sentence: it\nis the yardstick for Angles F and I, and it is what tells you whether a given hunk belongs here at\nall.\n\nTwo failure modes. Do not let the stated intent talk you out of a defect — \"known limitation,\nfollow-up\" does not make a dropped guard correct, though it does change how you phrase the\nfinding. And do not treat the stated intent as a description of the diff: where the two disagree,\nthe diff is what merges. A description promising a behaviour the diff does not implement, or\nsilent about one it does, is itself a finding.\n\n## 4. Find candidates (eleven angles)\n\nWork all eleven angles yourself, in sequence. Do not skip an angle because an earlier one found\nnothing there, and do not let one angle's conclusion suppress another's — if two angles flag the\nsame line for different reasons, record both.\n\nEach angle surfaces up to six candidates, each with a `file`, a `line`, a one-line `summary`, and a\nconcrete `failure_scenario`. Pass every candidate with a nameable failure scenario through to step\n5 — silently dropping half-believed candidates is the dominant cause of misses. A candidate you\ncannot express as a failure scenario is not yet a candidate.\n\n**Angle A — line-by-line diff scan.** Read every hunk, line by line. Then read the enclosing\nfunction for each hunk — bugs in unchanged lines of a touched function are in scope, since the\nchange re-exposes or fails to fix them. For every line ask: what input, state, timing, or platform\nmakes this line wrong? Inverted or wrong conditions, off-by-one, nil\u002Fundefined deref, missing\n`await`, unchecked `err`, falsy-zero checks, wrong-variable copy-paste, an error swallowed in a\ncatch, unescaped regex metacharacters.\n\n**Audit error handlers and fallback values**: for every `catch`, `except`, `if err != nil`,\n`if ! cmd` (or `$? != 0`), or fallback assignment on a failed resolution, trace the fallback value.\nDoes it preserve the invariant downstream code assumes — a normalized 40-character SHA, a validated\nSemVer, an absolute path, a non-nil struct — or does it pass a raw, unvalidated input forward? Check\nif error suppression (`|| true`, `_ = err`, `except: pass`) transforms a failed lookup on a\nmalformed input into a benign empty result (`nil`, `\"\"`, `[]`), silently disabling downstream\ncollision, uniqueness, or security guards.\n\n**Angle B — removed-behavior auditor.** For every line the diff deletes or replaces, name the\ninvariant it enforced, then find where the new code re-establishes it. If you cannot find it,\nthat's a candidate: a removed guard, a dropped error path, a narrowed validation, a deleted test\nthat was covering a real case, a loosened RBAC or NetworkPolicy rule.\n\n**A weakened check is a removed invariant**, and it is the one an agent reaches for when a gate\nwill not go green, so audit CI separately and by name: a test removed, renamed, or marked skip or\nxfail; a coverage threshold lowered; `|| true`, `continue-on-error`, or a silenced exit status\nappended to a step; a workflow that no longer triggers on pull requests or on forks; a step newly\ngated behind a condition it did not have. Any of these is a candidate on its own — the failure\nscenario is the class of defect that gate was catching, now shipping unobserved. **A diff whose\nonly changes are to test files, on a branch whose CI was failing, is a candidate until you can\nshow the test was wrong.** That is the shape of a change that makes the build green without making\nthe code right.\n\n**Angle C — cross-file tracer.** For each function, template, chart value, or CRD field the diff\nchanges, grep for its consumers and check whether the change breaks any of them: a new\nprecondition, a changed return shape, a renamed key a manifest still reads, a timing dependency.\nTrace runtime wiring through to the source — which container an env var lands in, which process\nreads a port, which service account a binding actually grants — rather than inferring it from\nnames.\n\n**Audit sibling contract symmetry**: when reviewing code in a family of components (reconcilers,\nCLI tools, admission webhooks, API handlers), compare how identical domain inputs (a commit, a\ncluster name, a tag, credentials) are validated and handled across siblings. An unmotivated\nasymmetry — where one component hard-fails on an unresolvable entity while a sibling falls back\nsilently — is an immediate candidate.\n\nThen trace the other direction, because a change written by an agent can call things that do not\nexist: for every symbol, method, flag, chart value, CRD field, environment variable, or file path\nthe diff **introduces a reference to**, open its definition. A plausible name is not evidence. The\nrepo already applies this to prose — identifiers verified against source, not against other\ndocs — and code gets it for the same reason. Watch for the neighbours: an import added for a symbol\nnothing uses, a dependency added without a pin or a provenance, a value hard-coded where the\nsurrounding code reads configuration, and files changed that the stated intent never mentioned.\nThe same goes for what the diff **calls without changing**: a script a workflow step now runs, a\ntemplate a chart now includes, a helper a new container should have gone through — open it and\ncheck that what the diff hands it (a token's scope, a variable's shape, a security context) is what\nit needs. #1237's blocker was a token minted `contents: write` and handed to a script the diff never\ntouched, which needed `packages: write`; nothing in the hunks said so.\n\n**Angle D — operations and security.** This repo provisions clusters and holds credentials, so\nweigh blast radius: IAM and RBAC scope, credential handling and redaction, NetworkPolicy reach,\nwhat an agent is newly permitted to do, and whether a failure mode degrades or destroys. Check\nthat third-party GitHub Actions are pinned to a full commit SHA with the version in a trailing\ncomment.\n\n**Angle E — reuse.** The angles above hunt for bugs; this one and the next two hunt for cleanup in\nthe changed code. Flag new code that re-implements something the codebase already has — grep\nshared and adjacent modules, and name the existing helper to call instead.\n\n**Angle F — simplification and efficiency.** Flag unnecessary complexity the diff adds: redundant\nor derivable state, copy-paste with slight variation, deep nesting, dead code left behind. And\nwasted work: repeated I\u002FO, independent operations run sequentially, blocking work added to startup\nor a hot path. Name the simpler or cheaper form that does the same job. A new abstraction, flag,\nconfig key or option that serves the intent sentence from step 3, but that a smaller change would\nmeet without it, is a finding too, and the candidate names that change; Angle I owns what does not\nserve the intent.\n\n**Angle G — altitude.** Check that each change sits at the right depth rather than being a fragile\nbandaid. Special cases layered onto shared infrastructure are a sign the fix isn't deep enough —\nprefer generalizing the underlying mechanism.\n\n**Angle H — conventions and docs.** Read the `AGENTS.md` \u002F `CLAUDE.md` files that govern the\nchanged code: the repo root, plus any in a directory that is an ancestor of a changed file (a\ndirectory's file only applies at or below it). Read `.agents\u002Frules\u002F` alongside them — the root\n`AGENTS.md` states each rule in a line and that file holds the form it takes and the cases exempt\nfrom it, so the one-liner alone will have you flagging exempt code. Flag a violation only when you\ncan quote the exact rule and the exact line that breaks it — no style preferences, no \"spirit of\nthe doc\" inferences. Name the file and quote the rule so the report can cite it. This is also\nwhere docs drift belongs: one canonical home per fact, generated `\u003C!-- BEGIN GENERATED -->` regions\nregenerated rather than hand-edited, identifiers verified against source rather than against other\ndocs. A hunk under `docs\u002Fsite\u002F` that arrives with a `ci`, `build`, or `feat(ci)` change — a diff that\nalso touches `.github\u002Fworkflows\u002F`, `hack\u002F`, or the pool scripts — is a prompt to ask whether the\npage is a runbook: the site is for people running kube-agents on their own clusters, and\n`.agents\u002Frules\u002Fdocumentation.md` names the homes a maintainer page goes to instead.\n`review-docs-drift` is the exhaustive form of that check and the author is required to have\nrun it before opening — which is a reason to read what they reported, not a reason to skip this\nangle. **Prose this change makes false is a finding on the same footing as a bug**, not a style\nnote: a comment, a document, an in-tree statement that described the old behaviour and now\ndescribes something that no longer ships. Name the passage and the mechanism in the change that\nfalsified it. It is one hop from the diff — the file the hunk sits in, the page that documents the\nflag it changed — and it is a class a second reader finds after a first reader said nothing.\n\n**Angle I — scope and test coverage.** Hold the diff against the intent sentence from step 3. Flag\nchanges that do not serve it: an unrelated refactor riding along, a dependency bump nobody asked\nfor, a behaviour change buried in a change described as a rename, reformatting that inflates the\ndiff and hides the real hunks. Repo convention is scoped changes and no unrelated formatting, so\ncite the rule when it applies. Judge by whether a change serves the stated intent, not by how large\nit is — a big diff that does one thing is in scope, and a three-line change that does a second\nthing is not.\n\nRead the pull request's **Self-Review** and **Testing** sections when there is a body, and on a\n`fix`-type pull request its **Bug Fix: Preventing Recurrence** section. `AGENTS.md` is canonical\nfor what the first two owe a reviewer — \"What any reviewer reads first\" for the Self-Review, and\nthe live-validation bullet under Pull Request Hygiene with `.agents\u002Frules\u002Fpre_pr_review.md` for\nTesting — and `pre_pr_review.md` for the third. What this angle adds is that they are claims\nthe tree can check: every path, script, or command the Testing section credits must exist and do\nwhat it is credited with, and a guard or test the description says covers a case must reach that\ncase. A claim the diff does not support is the finding \"What any reviewer reads first\" describes;\na recurrence section left empty or answered \"Not a bug fix\" on a `fix` is the one\n`pre_pr_review.md` describes. One exception: on a preflight re-run of your own branch the\nSelf-Review is the previous round's dispositions, and `review-preflight` §7 says a fresh pass is\nnot handed those — read it on a reviewer's or a bot's pass, withhold it on a re-run of your own.\n\nA section that hands a required artifact to another pull request has not answered, and no rule\nopens the route for either artifact it is usually tried on. \"The PR that installs it carries the\neval case\" — `.agents\u002Frules\u002Feval_driven_development.md`, \"What does not count\", says the answer to\na stack is merge order, so the sibling lands first and this pull request runs the loop against the\n`main` that includes it; where neither change is observable without the other, they are one change\nand belong in one pull request. \"Live-tested in the next one\" —\n`.agents\u002Frules\u002Fpre_pr_review.md` gives exercising the change, or \"Not live-tested\" with the\nreason, and nothing else. The deferral is\nvisible in the body alone, so raise it whether or not you can reach the sibling, and say which of\nthose two is owed. Angle J follows the hand-off where `gh` is available.\n\nThen check that the intent is actually tested: for each behaviour the change claims, name the test\nthat would fail if that behaviour regressed. Where there is none, the candidate is the untested\nbehaviour, not the absent test — say which regression would ship silently. Bug fixes without a\nregression test, and new error paths nothing exercises, are the usual cases.\n\n**Do not treat green test suites as proof of correctness**: a passing suite proves only that the\npaths it exercises work on the fixtures it supplies. For every validation check, gate, and error\npath, check whether **negative inputs** (unresolvable identifiers, malformed strings, absent fields)\nare tested against the gate, or if the tests only pass valid fixtures through the happy path.\n\n**A pull request reviewed before.** On a pull request a review has already read, a line an earlier\nfix changed is read for two things — whether the thread's defect is gone, and whether anything the\nfix touched now misbehaves — and a new defect in new code counts wherever it sits. A further\nadmitted input of a grammar an earlier round already named (a regex, a parser, a format check) is\nthe same finding: one candidate per grammar per round, the inputs as its evidence, the structural\nalternative as a follow-up unless it is High — except a grammar that refuses (an allowlist, a\nsanitiser, a path or identity check), where each admitted input is its own finding. A test the pull\nrequest adds is read for whether it fails on the defect it claims, not hardened case by case.\n\nFor a change that fixes something, naming the test is not enough — **run it against the pre-change\nbehaviour and watch it fail.** A test that passes with the fix reverted is testing something else,\nand a fix with no test that can be made to fail usually means the defect was not understood. Say\nwhich it was. A red-then-green test is the one answer in this whole pass that does not come from\nyour own reading, which is what makes it worth more than any amount of staring at the diff.\n\n**Angle J — sibling pull requests.** Every angle so far has looked only at this change. Widen\nonce, to the pull requests touching adjacent paths — the open ones, and any the body names:\n\n```bash\ngh pr list --repo gke-labs\u002Fkube-agents --state open --limit 100 --json number,title,author,files\n# A sibling the body names may already have merged. Fetch it by number: `gh pr list --state merged`\n# orders by creation, so its limit reaches back days and can miss an old branch merged last week.\ngh pr view \u003Cnumber> --repo gke-labs\u002Fkube-agents --json number,title,state,files,body\n```\n\nFour things come out of this that nothing else can see. A finding already accepted on a sibling\nusually applies here unchanged — apply it rather than rediscovering it. A near-identical change\nthat has diverged is itself a finding: name which copy carries the fix and which does not, because\nmerge order then decides whether the fix survives. Where one change is a superset of another,\nsay so — reviewing the subset in isolation spends effort on a diff that may never merge. And where\nthis body hands a required artifact to a sibling, open that sibling and see what it actually\ncarries rather than reading the hand-off as a disposition. Neither artifact has a route, as Angle I\nsays: for the eval case quote `.agents\u002Frules\u002Feval_driven_development.md`, \"What does not count\" —\nand where the sibling has already merged, its case is on `main`, so this pull request owed a red\nagainst it; for live validation quote `.agents\u002Frules\u002Fpre_pr_review.md`, whose only alternative to\nexercising the change is \"Not live-tested\" and the reason, which no sibling's body supplies. Two\nbodies that each point at the other is the sharper form, because both merge and the artifact\nreaches `main` in neither. A hand-off points backwards as often as forwards, so fetch a named\nsibling that has already merged rather than concluding from the listing that there is none, and\ncheck that what it carries exercises this diff rather than only the sibling's own.\n\n**Angle K — maintainability and brittleness.** Back on this change alone, ask what it costs to keep\nright. Flag what the team must now keep in sync by hand, a list or value copied from a project this\nrepository does not own unless a sync script, generator or pin file owns the copy, a private name of\nanother project its owner may rename, a change a future upstream edit must repeat in several places,\nand temporary code beyond the minimum. Flag the brittle forms: a check on a tool's display line\ninstead of the value it stands for, a constant copied across files instead of imported, a test that\npasses only in one order, and a test that pins incidental wording. Name the sturdier form or the\nsmaller design that drops no behaviour; a candidate with no named alternative is a remark, not a\nfinding.\n\nFor the cleanup, altitude, maintainability, conventions, scope, and sibling candidates the\n`failure_scenario` states the concrete cost — what is duplicated, wasted, harder to maintain, out\nof scope, or which rule or untested behaviour is at risk — instead of a crash. Correctness bugs\nalways outrank them when something has to be cut.\n\nPrefer running things over reasoning about them: execute the test suites the change touches and\nreproduce the failures you claim.\n\n## 5. Verify every claim (this step is not optional)\n\nDedup first: candidates pointing at the same line and the same mechanism collapse into the one with\nthe most concrete failure scenario.\n\nThen take each surviving candidate and re-derive it from the source as if you were a hostile second\nreviewer trying to get it thrown out. Open the actual file and read the actual code path — do not\nre-read your own notes, and do not accept a claim because it sounded right when you wrote it.\nConfirm the mechanism, not just the conclusion: a real defect reached by an imaginary code path is\nstill a wrong finding. Assign each one a verdict:\n\n- **CONFIRMED** — you can name the inputs or state that trigger it and the resulting wrong output,\n  crash, or misconfiguration. Quote the line. For an Angle K candidate, quote both sides of the\n  dependency it names: the two copies, the display text and the value behind it, or the test and\n  the order or wording it relies on.\n- **PLAUSIBLE** — the mechanism is real but the trigger is uncertain (timing, environment, cluster\n  state). State what would confirm it. Realistic-but-unproven is PLAUSIBLE, not REFUTED:\n  concurrency races, nil on a rare-but-reachable path (error handler, cold cache, absent optional\n  field), falsy-zero treated as missing, off-by-one on a boundary the code does not exclude, a\n  regex or allowlist that lost an anchor.\n- **REFUTED** — factually wrong (the code doesn't say that), provably impossible (show the type,\n  constant, or invariant), already handled in this diff (cite the guard), or pure style with no\n  observable effect. Quote the line that proves it.\n\nKeep CONFIRMED and PLAUSIBLE. Then rewrite the finding list so it reflects only what survived:\n\n- **Claim holds** → keep it as written.\n- **Claim holds but the mechanism, severity, line number, or blast radius is wrong** → rewrite the\n  finding to the corrected version. The finding now reads as though the corrected version is what\n  you found in the first place.\n- **REFUTED, or you cannot verify it** → delete it entirely. Do not demote it to a footnote, a\n  \"worth checking\" aside, or a parenthetical. If the underlying uncertainty is genuinely worth\n  someone's time, restate it as an open question in its own right, with the uncertainty stated\n  plainly — never as a correction to something you previously asserted.\n\nThen clean up after the edit, because these are what give away a second pass:\n\n1. Re-sort findings by severity (`BLOCKER` \u002F `HIGH` \u002F `MEDIUM` \u002F `LOW`) and **renumber from 1 with\n   no gaps**.\n2. Update every cross-reference between findings to the new numbers.\n3. Update any count in the prose (\"three blockers\") to match the surviving set.\n4. Re-read the whole document once for tense and voice consistency.\n\n**The finished review must read as a single confident first pass.** No \"Correction\", no\n\"Verification pass\", no \"on second look\", no \"an earlier draft said\", no \"downgraded from\", no\ndiff-of-claims, no changelog of your own reasoning. The reader should have no way to tell that step\n5 happened.\n\n## 6. Act on what survived, and record the disposition\n\nEvery surviving finding gets a disposition, and there are only two:\n\n- **Fixed** — name the commit or the hunk that fixes it.\n- **Deliberately not fixed** — give the reason. A reason is an argument about this change: the\n  path is unreachable for a stated invariant, the cost lands on a code path being deleted next\n  week, the fix belongs to a separate issue that is now filed. \"Out of scope\", \"pre-existing\", and\n  \"will fix later\" are not reasons on their own.\n\n**Edit on CONFIRMED, report on PLAUSIBLE.** A CONFIRMED finding on your own change is a defect you\nnow know about, so fix it. A PLAUSIBLE one is a mechanism you could not pin down, and rewriting\nworking code to chase it is how a self-review makes a change worse than it started: the temptation\nto \"fix\" something that was already right is the characteristic failure of reviewing your own work,\nand it is strongest on the lines you were least sure about. Write it into the section as an open\nquestion, say what would settle it, and leave the code alone unless the answer arrives. Recording a\nPLAUSIBLE finding you did not act on is a complete disposition — it hands the reviewer the doubt\ninstead of a silent edit.\n\nWhen the review is your own, before opening a pull request, that disposition list **is** the PR\nbody's **Self-Review** section. See `AGENTS.md`, \"Pull Request Hygiene\".\n\n# Severity\n\nSeverity is the consequence if the finding ships; the verdict from step 5 is your confidence in it.\nKeep the two apart — a CONFIRMED LOW and a PLAUSIBLE BLOCKER are both ordinary — and use these four,\nwhich `review-preflight`'s merged list and `pr-review-batch`'s report line both order by.\nA review bot running this file writes its severity in the host's own words, and step 1 says so:\n\n- **BLOCKER** — merging it breaks something for everyone: a release or CI path, a running install,\n  a credential's scope or reach. Must not merge as it stands.\n- **HIGH** — a defect a user or operator reaches in ordinary use, introduced or unmasked by this\n  change; or a claim in the description, the Self-Review, or the docs that the diff contradicts.\n  Fix before merge, or argue the reason in the disposition.\n- **MEDIUM** — a real defect on a narrow or unusual path, a degraded but not broken behaviour, or a\n  behaviour the change claims that nothing tests. Fix, or file it and say so.\n- **LOW** — a cleanup with a concrete, stated cost: duplication, a missed reuse, a hard-coded value,\n  an unneeded step. Reported like the rest — what step 5 keeps is reported and the reader decides\n  what to hold back — and never promoted to pad a list.\n\n# Output\n\nSeverity-ordered findings, each with:\n\n- an anchor (`file:line`),\n- its severity (the four words above),\n- what is wrong, in one sentence,\n- the concrete failure scenario,\n- the verdict from step 5,\n- the disposition from step 6.\n\nThen two short sections:\n\n- **Not findings, for the record** — things that look wrong but are fine, so the next reader does\n  not re-litigate them.\n- **What this pass did not cover** — angles you could not run, suites you could not execute,\n  infrastructure you did not have. An honest gap is worth more than an implied one.\n\n\"No findings\" is an ordinary outcome on a good change. Report it as one, alongside what you looked\nfor — never pad the list with something step 5 should have deleted.\n",{"name":5,"description":7},"main","af354bf2b99e17df77e52c512a7ba968c37c2306",".agents\u002Fskills\u002Freview-adversarial",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":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add gke-labs\u002Fkube-agents --skill review-adversarial",{"tool":37,"command":38},"bunx","bunx skills add gke-labs\u002Fkube-agents --skill review-adversarial",{"tool":40,"command":41},"pnpm","pnpm dlx skills add gke-labs\u002Fkube-agents --skill review-adversarial","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fgke-labs\u002Fkube-agents\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Freview-adversarial\u002FSKILL.md",true,[],[46,53,60,67,74,81],{"skillNo":47,"name":48,"nameZh":6,"description":49,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":50,"categories":51,"keywords":52,"publishedAt":18},"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":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":18},"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":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":18},"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":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":18},"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":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":18},"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":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":18},"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",[],[]]