You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Observed on the first run (PR #1559):
- The PR body claimed "33+ open Dependabot alerts (32 moderate, 1 high)"
but the Dependabot API only had ONE open alert (uuid, #172). The
inflated count appears to have come from counting transitive
`node_modules/**/uuid` occurrences in package-lock.json rather than
distinct alert records.
- The agent ran `npm audit fix`, which dragged along unrelated version
bumps: brace-expansion and path-to-regexp (whose alerts had been
auto-dismissed weeks earlier) and ~20 @fluidframework/* packages from
2.91.0 to 2.93.0. The diff ballooned well beyond what the single
open alert required.
Prompt changes:
1. Alert enumeration is the single source of truth.
The agent must run a specific `gh api` query, persist the output
to alerts.json, and build the PR title/body one-to-one from that
list. It must not count transitive-path occurrences as separate
alerts.
2. Preference order for fixes.
(a) overrides in package.json, (b) direct-dependency bump,
(c) parent-package bump only if (a)/(b) are infeasible, with
justification required. `npm audit fix` is explicitly forbidden.
3. Diff discipline.
After regenerating the lockfile, run `git diff --stat origin/main`
and abort if package.json touches deps not on the alert list (other
than adding overrides), or if any bump crosses a MAJOR version
unnecessarily.
4. Structured PR body.
Title is `chore(deps): fix N open Dependabot alert(s)` where N
matches the alert count. Body has fixed sections: Summary, Alerts
addressed (one bullet per alert with strategy noted), Collateral
changes (or "None"), Verification.
5. Reaffirm no Co-authored-by trailers (these caused CLA friction on
the first run).
0 commit comments