Repository navigation
Conversation
The bot gave one Claude run all 403 open findings: 57 package upgrades in 10 dependency files and 26 CodeQL alerts. Claude has 100 turns, so the first run stopped at 53 turns and the second run hit the turn limit. Both runs opened no PR. Each run now fixes at most 10 packages in one dependency file, with the highest severity first. Dependabot and Trivy findings for the same package and file become one item. CodeQL alerts are no longer bot input, because they are code issues and not CVEs. If Claude stops early, the workflow now keeps the part that Claude finished when the change map exists. Claude updates the change map after each package. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
|
Note
|
| Check name | Status | Explanation | Resolution |
|---|---|---|---|
| Change Map Design Review | ## Summary I read the change-map comment (id 7364563983, marker <!-- kumo-pr-change-map -->). I checked its rows against commits 0253216, bd4130d and 61fb8d7 (.github/scripts/cve-fix-bot.cjs and `… |
Revise the change map and, where needed, the design. Each item is a concrete correction. 1. npm wait. Either (a) cite the observed failure that requires the wait to be off, and scope the change to the packages that need it. Or (b) keep … |

Passed checks: 2 passed
-
Check name Status Explanation Pr Size The PR size check passes. This PR changes 2 files, which is at or below the threshold of 40. Evidence: - The PR head is 61fb8d7 on anle/cve-fix-bot-batch. The provider-reported PR is NVIDIA/kumo-engin… Public Resource Access The check passes because this pull request adds or changes no external resource reference (no URL, public repository location, or package source location). Scope: The PR's own commits are 0253216, bd4… Full details: Pr Size
-
Explanation
The PR size check passes. This PR changes 2 files, which is at or below the threshold of 40. Evidence: - The PR head is 61fb8d7 on anle/cve-fix-bot-batch. The provider-reported PR is NVIDIA/kumo-engine
#590, and its author is anle2024. - The PR adds three commits: 0253216, bd4130d and 61fb8d7. Each commit changes the same two files:.github/scripts/cve-fix-bot.cjsand.github/workflows/cve-fix-bot.yml. The combined diff0253216^..HEADshows 2 files changed (241 insertions, 67 deletions). - A three-dot diff against the localorigin/main(868c074) shows 155 files. I do not count that result. The localorigin/mainref is stale. The PR head contains 10 commits that are not in that ref. Those commits are dated earlier than the bot commits and have squash-merge subjects such as "(#586)" and "(#588)". They are merged work from other PRs, not changes made by this PR. The PR description also says the PR diff has only the bot changes. Limitation: I could not query the GitHub PR diff directly. The file count of 2 comes from the commit history. The PR base is assumed to include the#585to#588merges. If the provider reported a different count, the provider value should replace this one. The threshold is still far from the 2-file result. No split recommendation is needed because the check passes.
Full details: Public Resource Access
-
Explanation
The check passes because this pull request adds or changes no external resource reference (no URL, public repository location, or package source location). Scope: The PR's own commits are 0253216, bd4130d and 61fb8d7, on top of base f73f29e (
git diff --name-status f73f29e HEAD). They modify only.github/scripts/cve-fix-bot.cjsand.github/workflows/cve-fix-bot.yml. I checked all 231 added lines in those files forhttp(s)://,github.com,pypi,npm,uses:,curl/wget, registry and package-manager references, and domain-like strings. None were found. Existing references were not changed. The Trivy install URL (raw.githubusercontent.com/aquasecurity/trivy/...), theactions/*pins and theanthropics/claude-code-actionpin already existed before this PR. They are not added or modified in this range. Addedgh api,gh prandgh workflow runcalls use$GITHUB_REPOSITORYand branch variables. They are runtime API calls on the repository that runs the workflow, not static public references. The PR description's links tokumo-aiand PR#530appear only in prose, not in changed code. Scope caveat:git diff 868c074 HEADshows 155 changed files. Those come from 10 commits that the local branch carries aboveorigin/main, which are not part of this PR's three commits. The PR description also says the PR diff has only the listed changes. I did not evaluate those other commits, because the check covers only references this PR adds or changes.
-
Full details: Change Map Design Review
-
Explanation
Summary I read the change-map comment (id 7364563983, marker
<!-- kumo-pr-change-map -->). I checked its rows against commits 0253216, bd4130d and 61fb8d7 (.github/scripts/cve-fix-bot.cjsand.github/workflows/cve-fix-bot.yml). The map covers the file list. It does not state several material behaviors that the diff creates. It also has no verification or stopping-condition statement, and it removes a supply-chain control with no observed failure cited. The check fails on these omissions. ## Proven issues 1. npm release-age control removed without a cited failure. The workflow setsNPM_CONFIG_MIN_RELEASE_AGE: "0"on the Claude step (fix job, about line 179). The repo hasui/.npmrcandpackages/kumo-ui-catalog/.npmrc, and both setmin-release-age=5. The env override therefore disables the 5-day wait for every npm lockfile edit in those packages. The map's workflow row says only that the step must "match the old bot's limits." It does not name the risk. It also does not name the observed failure that the wait blocked, such as a patched version younger than 5 days. Without that evidence, the map does not show necessity or preserved behavior. 2. Step timeout and lost work are omitted. The map removes--max-turns 100. The Claude step still hastimeout-minutes: 45, and the fix job has no turn limit. The PR description says a run that exceeds 45 minutes loses its work, and that the last successful run took 40 minutes. The map does not state this limit or its consequence. 3. PR body reporting change is omitted. ThefixTaskdiff now asks only for a list of fixed alerts. The earlier prompt also required a list of unfixed findings with reasons. The map row says only "use the old kumo-ai bot's wording." Reviewers cannot see that open findings are no longer reported in the PR body. 4. Daily replace trade-offs are omitted from the map. The map sayspublish"force-replaces the branch" and turns off auto-merge. It does not say that each daily replace removes approvals and restarts CI. The PR description states both effects, and they change review workflow. 5. No verification or stopping condition in the map. The map lists changes and reasons. It does not list the tests or local checks used for the daily replace, the race handling, or the notify path. The PR description has a 35-case fake-API test and a 14-case stub test. Neither appears in the map. 6. Minor inaccuracy. The map says later rounds "read the head from git." The code usesprocess.env.HEAD_SHA || branchHead, so the head comes from the round input. Git is read only to detect movement (moved). ## Uncertain design questions (not proven defects) - Overlap guards may be avoidable. The old skip-while-open rule prevented overlap between the daily run and CI fix rounds. Removing it adds about 200 lines of guards (botOwns,branchHeadchecks, the notify path, the shared concurrency group). The map does not compare a smaller option, such as keeping the skip while a round is active. The map should justify this complexity against that option. - No-findings case leaves a stale bot PR. Inplan, round 0 returnsskipwhencountis 0, before it touches an open bot PR. An open bot PR stays on an old main, which conflicts with the "rebuild every day" design the map cites. The map does not say whether that is intended. ## What checks out -queue: maxis documented forconcurrency(checked against the GitHub Actions syntax page). The actionlint note in the PR description does not indicate a defect. - The shared groupcve-fix-bot-pr-writesappears onmerge-or-comment,publishandreport-failure, as the map states. -botOwns, the once-onlyreportOthersChangedcomment,--match-head-commit, and the 404 handling inreport-failurematch the map. -codeScanningFindingsadds the rule, file, lines and message, as the map states.Resolution
Revise the change map and, where needed, the design. Each item is a concrete correction. 1. npm wait. Either (a) cite the observed failure that requires the wait to be off, and scope the change to the packages that need it. Or (b) keep
min-release-agein force and add a narrow exception. In either case, state in the map that the env override disablesui/.npmrcandpackages/kumo-ui-catalog/.npmrcmin-release-age=5for the Claude step, and name the supply-chain risk. The uv 7-day wait is unaffected and should be noted. 2. Timeout. Add a row or note: the 45-minute Claude step timeout is the only limit, and a timeout loses the run's work. Give the observed run time (40 minutes) as evidence. 3. PR body. State that the PR body now lists only fixed alerts. Note that unfixed findings are no longer reported there, and say whether that is intended. 4. Daily replace effects. State that each daily replace removes approvals and restarts CI, and that auto-merge is turned off before and after the push. 5. Verification. Add a short verification section: the local tests run, their case counts, and the stubghtests. Add an explicit stopping condition for the daily run and for CI rounds. 6. Wording. Change "read the head from git" to "use the head input, then compare it with git." 7. Design questions. Answer both uncertain items above in the map: why the overlap guards are needed instead of a smaller option, and what happens to an open bot PR when a run finds no alerts.
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Change map
|
This replaces the batching in the previous commit. The CVE fix bot now gives Claude the same instructions as the old kumo-ai fix bot (fix-dependabot-alerts.yml). Claude gets all open Dependabot alerts, Trivy findings and code scanning alerts in one run, with no turn limit. The npm wait period for new releases is off for the Claude step, as in the old bot. The workflow still commits through the GitHub App, so commits stay signed and copy-pr-bot runs CI without /ok to test. The PR still opens as ready, the CI fix rounds stay, and Claude still writes the change map. Code scanning findings now include the rule, file, lines and message, because the old prompt reads them from the findings file. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The daily run no longer skips an open bot PR. It fixes all alerts again from the latest main, force-replaces the bot branch with one signed commit, updates the PR, and starts new CI fix rounds. If the PR merges or closes during the run, the run stops and the next daily run starts from the new main. The bot does not replace a draft PR, a PR that a person opened, or a PR with a commit that a person wrote or rewrote. For a person's change, it posts one comment that says so. Each CI fix round carries the head commit that it expects, so a round from an older run stops when the PR was replaced. Jobs that change the PR share one concurrency group with queue: max and read the branch head first. Auto-merge is turned off around the daily push and turned on only with --match-head-commit. report-failure comments only when the run still owns the PR head. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Design discussion or issue: none. This PR follows the request to make the CVE fix bot behave like the old kumo-ai fix bot.
Old bot:
kumo-ai/.github/.github/workflows/fix-dependabot-alerts.ymlThe first commit in this PR gave each run one dependency file. The second commit replaces that change. The third commit adds the daily replace. The PR diff has only the changes below.
Summary
This PR makes the CVE fix bot behave like the old kumo-ai fix bot. Claude gets the old bot's instructions and fixes all open Dependabot alerts, Trivy findings and code scanning alerts in one run, with no turn limit. Each daily run rebuilds the bot PR from the latest main and replaces it, as the old bot did.
Why
The old bot is the reference design for this bot. Our bot used different prompt wording, a 100-turn limit and the npm 5-day wait. It also skipped the daily run while a bot PR was open. A skipped day leaves the bot PR on an old main, so its fixes can go stale and new alerts wait. The old bot rebuilt its PR every day instead.
Before and now
.npmrcNPM_CONFIG_MIN_RELEASE_AGE=0), as in the old botqueue: max, so they wait for each other and none is dropped. Each job reads the branch head before it changes the PR. Publish also reads the PR state right before its push.--match-head-commit). The daily replace turns off auto-merge from the day before, before and after its push.What stays from our flow
Some parts of the old bot cannot work in this repo, so they stay as they are:
/ok to test.Trade-off
updateRefs. I found no documentation that it starts CI like a normal push, so the bot does not use it.pyproject.tomlstill applies.Change map
See the change-map comment on this PR.
Testing Done
node --checkand yamllint with.yamllint.yml: no findings.unexpected key "queue". GitHub documentedqueuefor concurrency groups on 2026-05-06, after that actionlint release.workflow-security.cjs: 0 new findings.planwith mock API calls, the 195 open Dependabot alerts and the 26 open code scanning alerts.planwrote 221 findings. All 26 code scanning findings have the rule, file, lines and message. The renderedtask.mdhas the old bot's wording.planandpublishagainst a fake GitHub API and a real git repository in 35 cases. The cases cover the first run, the daily replace, a PR that merges or closes during the run, drafts, and changes from people. They also cover rounds from an older run, a branch that moves right before the push, and the one-time comment. The rest cover a deleted branch, merge, fix, and the change-map-only round. All 35 pass.ghin 14 cases, including a missing branch (404) and an API error. All 14 behave as intended.Hotfix Context
Not a hotfix.
Checklist
🤖 Generated with Claude Code