@sentry/warden 0.24.1 → 0.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +222 -0
- package/README.md +2 -1
- package/dist/cli/commands/init.d.ts.map +1 -1
- package/dist/cli/commands/init.js +9 -4
- package/dist/cli/commands/init.js.map +1 -1
- package/dist/cli/help.d.ts.map +1 -1
- package/dist/cli/help.js +2 -1
- package/dist/cli/help.js.map +1 -1
- package/package.json +1 -1
- package/src/builtin-skills/code-review/SKILL.md +85 -0
- package/src/builtin-skills/code-review/SOURCES.md +42 -0
- package/src/builtin-skills/code-review/SPEC.md +110 -0
- package/src/builtin-skills/code-review/references/github-workflows.md +88 -0
- package/src/builtin-skills/code-review/references/javascript-typescript.md +73 -0
- package/src/builtin-skills/code-review/references/python.md +77 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,226 @@
|
|
|
1
1
|
# Changelog
|
|
2
|
+
## 0.25.0
|
|
3
|
+
|
|
4
|
+
### New Features ✨
|
|
5
|
+
|
|
6
|
+
#### Action
|
|
7
|
+
|
|
8
|
+
- Support org base configs with repo overlays by @dcramer in [#279](https://github.com/getsentry/warden/pull/279)
|
|
9
|
+
- Write structured findings JSON and expose as output by @gricha in [#233](https://github.com/getsentry/warden/pull/233)
|
|
10
|
+
|
|
11
|
+
#### Cli
|
|
12
|
+
|
|
13
|
+
- Build generated skills from path targets by @dcramer in [#282](https://github.com/getsentry/warden/pull/282)
|
|
14
|
+
- Add --staged flag and default to HEAD for uncommitted changes by @dcramer in [#205](https://github.com/getsentry/warden/pull/205)
|
|
15
|
+
- Display confidence level in findings output by @dcramer in [#194](https://github.com/getsentry/warden/pull/194)
|
|
16
|
+
- Always-on JSONL logging with repo-local log directory by @dcramer in [#179](https://github.com/getsentry/warden/pull/179)
|
|
17
|
+
- Add --fail-fast flag to stop after first finding by @dcramer in [#174](https://github.com/getsentry/warden/pull/174)
|
|
18
|
+
- Surface failure details for chunk analysis and finding extraction by @dcramer in [#162](https://github.com/getsentry/warden/pull/162)
|
|
19
|
+
- Interactive fix step-through with y/n/a/s/q prompt by @dcramer in [#161](https://github.com/getsentry/warden/pull/161)
|
|
20
|
+
|
|
21
|
+
#### Docs
|
|
22
|
+
|
|
23
|
+
- Improved landing visuals by @PickleNik in [#245](https://github.com/getsentry/warden/pull/245)
|
|
24
|
+
- Add LLM content negotiation and llms.txt by @dcramer in [#178](https://github.com/getsentry/warden/pull/178)
|
|
25
|
+
|
|
26
|
+
#### Runs
|
|
27
|
+
|
|
28
|
+
- Write chunk-level JSONL logs by @dcramer in [#265](https://github.com/getsentry/warden/pull/265)
|
|
29
|
+
- Stream in-progress runs via 'warden runs follow' by @dcramer in [#261](https://github.com/getsentry/warden/pull/261)
|
|
30
|
+
|
|
31
|
+
#### Sdk
|
|
32
|
+
|
|
33
|
+
- Add finding verification pass by @dcramer in [#290](https://github.com/getsentry/warden/pull/290)
|
|
34
|
+
- Store Claude SDK sessions in .warden/sessions/ by @dcramer in [#193](https://github.com/getsentry/warden/pull/193)
|
|
35
|
+
|
|
36
|
+
#### Skills
|
|
37
|
+
|
|
38
|
+
- Add built-in code review skill by @dcramer in [#298](https://github.com/getsentry/warden/pull/298)
|
|
39
|
+
- Add built-in security review skill by @dcramer in [#292](https://github.com/getsentry/warden/pull/292)
|
|
40
|
+
- Consolidate warden-sweep into bundled scripts with prescribed reporting by @dcramer in [#201](https://github.com/getsentry/warden/pull/201)
|
|
41
|
+
- Replace notseer with find-warden-bugs skill by @dcramer in [#200](https://github.com/getsentry/warden/pull/200)
|
|
42
|
+
- Add warden-sweep skill and bundled skill installation by @dcramer in [#196](https://github.com/getsentry/warden/pull/196)
|
|
43
|
+
- Add agent discovery alongside skills by @dcramer in [#136](https://github.com/getsentry/warden/pull/136)
|
|
44
|
+
|
|
45
|
+
#### Sweep
|
|
46
|
+
|
|
47
|
+
- Add --skill flag to scan.py by @dcramer in [#211](https://github.com/getsentry/warden/pull/211)
|
|
48
|
+
- Add master tracking issue for sweep PRs by @dcramer in [#210](https://github.com/getsentry/warden/pull/210)
|
|
49
|
+
|
|
50
|
+
#### Telemetry
|
|
51
|
+
|
|
52
|
+
- Add skill and model attribution to metrics by @gricha in [#231](https://github.com/getsentry/warden/pull/231)
|
|
53
|
+
- Add namespaced fix-eval feedback metrics by @dcramer in [#229](https://github.com/getsentry/warden/pull/229)
|
|
54
|
+
- Add global scope attributes, run metric, and trace ID surfacing by @dcramer in [#166](https://github.com/getsentry/warden/pull/166)
|
|
55
|
+
- Add input/output attributes to gen_ai spans by @dcramer in [#142](https://github.com/getsentry/warden/pull/142)
|
|
56
|
+
- Add per-turn tracing for Claude Code SDK agent calls by @dcramer in [#141](https://github.com/getsentry/warden/pull/141)
|
|
57
|
+
|
|
58
|
+
#### Other
|
|
59
|
+
|
|
60
|
+
- (config) Make auxiliary max retries configurable via defaults.auxiliaryMaxRetries by @dcramer in [#175](https://github.com/getsentry/warden/pull/175)
|
|
61
|
+
- (dedup) Add intra-batch finding consolidation by @dcramer in [#135](https://github.com/getsentry/warden/pull/135)
|
|
62
|
+
- (init) Add section-based output and interactive skill prompt by @dcramer in [#182](https://github.com/getsentry/warden/pull/182)
|
|
63
|
+
- (o11y) Capture run failures in JSONL output by @dcramer in [#259](https://github.com/getsentry/warden/pull/259)
|
|
64
|
+
- (output) Default to COMMENT instead of REQUEST_CHANGES on PRs by @dcramer in [#137](https://github.com/getsentry/warden/pull/137)
|
|
65
|
+
- (runner) Global concurrency pool for file analyses by @dcramer in [#158](https://github.com/getsentry/warden/pull/158)
|
|
66
|
+
- (skill-builder) Build generated repo-local skills by @dcramer in [#280](https://github.com/getsentry/warden/pull/280)
|
|
67
|
+
- Add verification field and confidence filtering by @dcramer in [#191](https://github.com/getsentry/warden/pull/191)
|
|
68
|
+
- Pnpm workspace monorepo with docs migration by @dcramer in [#185](https://github.com/getsentry/warden/pull/185)
|
|
69
|
+
- Adopt dotagents for skill management by @dcramer in [#168](https://github.com/getsentry/warden/pull/168)
|
|
70
|
+
- Cross-location finding merge by @dcramer in [#148](https://github.com/getsentry/warden/pull/148)
|
|
71
|
+
- Add env vars to generated workflow and docs by @dcramer in [#138](https://github.com/getsentry/warden/pull/138)
|
|
72
|
+
- Add Sentry observability (errors, tracing, metrics, structured logs) by @dcramer in [#133](https://github.com/getsentry/warden/pull/133)
|
|
73
|
+
- Split failOn into independent requestChanges and failCheck controls by @dcramer in [#129](https://github.com/getsentry/warden/pull/129)
|
|
74
|
+
|
|
75
|
+
### Bug Fixes 🐛
|
|
76
|
+
|
|
77
|
+
#### Action
|
|
78
|
+
|
|
79
|
+
- Use relative findings output path by @dcramer in [#289](https://github.com/getsentry/warden/pull/289)
|
|
80
|
+
- Handle missing warden.toml gracefully by @gricha in [#235](https://github.com/getsentry/warden/pull/235)
|
|
81
|
+
- Thread maxContextFiles config through Action workflows by @dcramer in [#216](https://github.com/getsentry/warden/pull/216)
|
|
82
|
+
|
|
83
|
+
#### Cli
|
|
84
|
+
|
|
85
|
+
- Label built-in skill sources by @dcramer in [#294](https://github.com/getsentry/warden/pull/294)
|
|
86
|
+
- Report final per-file finding counts by @dcramer in [#293](https://github.com/getsentry/warden/pull/293)
|
|
87
|
+
- Align local review diff context by @dcramer in [#276](https://github.com/getsentry/warden/pull/276)
|
|
88
|
+
- Replace process.exit(130) with thrown error for graceful cleanup by @dcramer in [#213](https://github.com/getsentry/warden/pull/213)
|
|
89
|
+
- Write --output file on auth error early exit by @dcramer in [#214](https://github.com/getsentry/warden/pull/214)
|
|
90
|
+
- Normalize path separators in synthetic file changes by @dcramer in [#217](https://github.com/getsentry/warden/pull/217)
|
|
91
|
+
- Exclude node_modules from gitignore file discovery by @dcramer in [#220](https://github.com/getsentry/warden/pull/220)
|
|
92
|
+
- Collapse skipped files into a single count on Ctrl+C by @dcramer in [#172](https://github.com/getsentry/warden/pull/172)
|
|
93
|
+
- Render warnings through Ink's Static component by @dcramer in [#170](https://github.com/getsentry/warden/pull/170)
|
|
94
|
+
- Cap 'Other Files' list in prompts for CLI mode by @dcramer in [#171](https://github.com/getsentry/warden/pull/171)
|
|
95
|
+
- Move completed files to Static to prevent flickering by @dcramer in [#149](https://github.com/getsentry/warden/pull/149)
|
|
96
|
+
- Run all skills locally regardless of trigger type by @gricha in [#145](https://github.com/getsentry/warden/pull/145)
|
|
97
|
+
- Resolve remote config for --skill flag by @dcramer in [#130](https://github.com/getsentry/warden/pull/130)
|
|
98
|
+
|
|
99
|
+
#### Output
|
|
100
|
+
|
|
101
|
+
- List only successfully applied fixes in PR body by @dcramer in [#219](https://github.com/getsentry/warden/pull/219)
|
|
102
|
+
- Use backticks instead of brackets in attribution footer by @dcramer in [#197](https://github.com/getsentry/warden/pull/197)
|
|
103
|
+
|
|
104
|
+
#### Sdk
|
|
105
|
+
|
|
106
|
+
- Short-circuit repeated provider failures by @dcramer in [#291](https://github.com/getsentry/warden/pull/291)
|
|
107
|
+
- Strip invalid suggested fixes from reports by @dcramer in [#228](https://github.com/getsentry/warden/pull/228)
|
|
108
|
+
- Prevent Warden sessions from polluting Claude Code history by @dcramer in [#202](https://github.com/getsentry/warden/pull/202)
|
|
109
|
+
- Handle EPIPE errors from Claude subprocess failures by @dcramer in [#198](https://github.com/getsentry/warden/pull/198)
|
|
110
|
+
- Add verification checklist and Glob tool to reduce analysis hallucinations by @dcramer in [#173](https://github.com/getsentry/warden/pull/173)
|
|
111
|
+
- Constrain skill findings to diff hunk line range by @dcramer in [#151](https://github.com/getsentry/warden/pull/151)
|
|
112
|
+
|
|
113
|
+
#### Sweep
|
|
114
|
+
|
|
115
|
+
- Add self-validation to fix subagent prompt by @dcramer in [#223](https://github.com/getsentry/warden/pull/223)
|
|
116
|
+
- Branch worktrees from default branch instead of HEAD by @dcramer in [#221](https://github.com/getsentry/warden/pull/221)
|
|
117
|
+
|
|
118
|
+
#### Telemetry
|
|
119
|
+
|
|
120
|
+
- Improve OTel GenAI semantic convention compliance by @dcramer in [#140](https://github.com/getsentry/warden/pull/140)
|
|
121
|
+
- Fix missing Sentry traces and negative token costs by @dcramer in [#139](https://github.com/getsentry/warden/pull/139)
|
|
122
|
+
|
|
123
|
+
#### Other
|
|
124
|
+
|
|
125
|
+
- (ci) Enable auto-generated changelogs for GitHub releases by @gricha in [#234](https://github.com/getsentry/warden/pull/234)
|
|
126
|
+
- (config) Add missing fields to TOML writer for config round-trip by @dcramer in [#218](https://github.com/getsentry/warden/pull/218)
|
|
127
|
+
- (evals) Update default model to claude-sonnet-4-6 by @dcramer in [#163](https://github.com/getsentry/warden/pull/163)
|
|
128
|
+
- (o11y) Add gen_ai.request.model attribute by @obostjancic in [#247](https://github.com/getsentry/warden/pull/247)
|
|
129
|
+
- (prepare) Skip files with zero content automatically by @dcramer in [#226](https://github.com/getsentry/warden/pull/226)
|
|
130
|
+
- (review) Preserve active Warden threads by @dcramer in [#272](https://github.com/getsentry/warden/pull/272)
|
|
131
|
+
- (skill-builder) Stabilize generated skill authoring by @dcramer in [#284](https://github.com/getsentry/warden/pull/284)
|
|
132
|
+
- (skills) Support private repos in `warden add --remote` by @dcramer in [#187](https://github.com/getsentry/warden/pull/187)
|
|
133
|
+
- (usage) Normalize inputTokens to include cached and cache-write tokens by @vgrozdanic in [#143](https://github.com/getsentry/warden/pull/143)
|
|
134
|
+
- Preserve interrupted findings and parse run args by @dcramer in [#297](https://github.com/getsentry/warden/pull/297)
|
|
135
|
+
- Prevent command injection in release workflow by @fix-it-felix-sentry in [#277](https://github.com/getsentry/warden/pull/277)
|
|
136
|
+
- Handle multi-line YAML scalar values in SKILL.md frontmatter by @odysseus0 in [#243](https://github.com/getsentry/warden/pull/243)
|
|
137
|
+
- Server error handler calls process.exit() bypassing cleanup by @dcramer in [#206](https://github.com/getsentry/warden/pull/206)
|
|
138
|
+
- Preserve error chains across error wrapping boundaries by @dcramer in [#215](https://github.com/getsentry/warden/pull/215)
|
|
139
|
+
- Respect ignorePaths in all code paths by @dcramer in [#204](https://github.com/getsentry/warden/pull/204)
|
|
140
|
+
- Exclude dev files and secrets from npm package by @dcramer in [#186](https://github.com/getsentry/warden/pull/186)
|
|
141
|
+
- Clean up orphaned Warden comments when no triggers match by @dcramer in [#134](https://github.com/getsentry/warden/pull/134)
|
|
142
|
+
- Show findings in PR review body when inline comments fail by @dcramer in [#128](https://github.com/getsentry/warden/pull/128)
|
|
143
|
+
- Show skipped status for files not processed during Ctrl+C by @dcramer in [#127](https://github.com/getsentry/warden/pull/127)
|
|
144
|
+
|
|
145
|
+
### Documentation 📚
|
|
146
|
+
|
|
147
|
+
- (homepage) Redesign to lead with skills by @dcramer in [#238](https://github.com/getsentry/warden/pull/238)
|
|
148
|
+
- Use built-in security review in samples by @dcramer in [#295](https://github.com/getsentry/warden/pull/295)
|
|
149
|
+
- Use scoped Warden package in npx examples by @dcramer in [#273](https://github.com/getsentry/warden/pull/273)
|
|
150
|
+
- Lead homepage with GitHub PR review story by @dcramer in [#240](https://github.com/getsentry/warden/pull/240)
|
|
151
|
+
- Add org-wide GitHub setup guide by @dcramer in [#239](https://github.com/getsentry/warden/pull/239)
|
|
152
|
+
- Replace non-existent skill names with generic placeholders by @dcramer in [#199](https://github.com/getsentry/warden/pull/199)
|
|
153
|
+
- Simplify getting started guide to use native warden add --remote by @dcramer in [#164](https://github.com/getsentry/warden/pull/164)
|
|
154
|
+
- Fix documentation inconsistencies with codebase by @dcramer in [#147](https://github.com/getsentry/warden/pull/147)
|
|
155
|
+
- Update config reference with missing fields by @dcramer in [#132](https://github.com/getsentry/warden/pull/132)
|
|
156
|
+
|
|
157
|
+
### Internal Changes 🔧
|
|
158
|
+
|
|
159
|
+
#### Deps
|
|
160
|
+
|
|
161
|
+
- Bump dotagents lib by @gricha in [#296](https://github.com/getsentry/warden/pull/296)
|
|
162
|
+
- Bump yaml from 2.8.2 to 2.8.3 by @dependabot in [#254](https://github.com/getsentry/warden/pull/254)
|
|
163
|
+
|
|
164
|
+
#### Sdk
|
|
165
|
+
|
|
166
|
+
- Add flat runtime provider contract by @dcramer in [#270](https://github.com/getsentry/warden/pull/270)
|
|
167
|
+
- Extract applyMergeGroups to unify cross-location merge logic by @dcramer in [#153](https://github.com/getsentry/warden/pull/153)
|
|
168
|
+
|
|
169
|
+
#### Skills
|
|
170
|
+
|
|
171
|
+
- Adopt @sentry/dotagents-lib for skill resolution primitives by @gricha in [#285](https://github.com/getsentry/warden/pull/285)
|
|
172
|
+
- Restructure distributed Warden skills by @dcramer in [#268](https://github.com/getsentry/warden/pull/268)
|
|
173
|
+
|
|
174
|
+
#### Other
|
|
175
|
+
|
|
176
|
+
- (agents) Update configured skills list by @dcramer in [#241](https://github.com/getsentry/warden/pull/241)
|
|
177
|
+
- (cli) Use git ls-files for .gitignore discovery by @dcramer in [#222](https://github.com/getsentry/warden/pull/222)
|
|
178
|
+
- (config) Exclude evals directory from warden analysis by @dcramer in [#203](https://github.com/getsentry/warden/pull/203)
|
|
179
|
+
- (dotagents) Gitignore auto-generated files instead of tracking them by @gricha in [#246](https://github.com/getsentry/warden/pull/246)
|
|
180
|
+
- (output) Clean up GitHub finding rendering by @dcramer in [#176](https://github.com/getsentry/warden/pull/176)
|
|
181
|
+
- (skill-builder) Use internal authoring provider by @dcramer in [#283](https://github.com/getsentry/warden/pull/283)
|
|
182
|
+
- (sweep) Clean up warden-sweep skill per skill-creator review by @dcramer in [#225](https://github.com/getsentry/warden/pull/225)
|
|
183
|
+
- Add GitHub Actions workflow skill by @dcramer in [#278](https://github.com/getsentry/warden/pull/278)
|
|
184
|
+
- Add .serena to gitignore by @ericapisani in [#180](https://github.com/getsentry/warden/pull/180)
|
|
185
|
+
- Extract shared skill selection and validate setup-app args by @dcramer in [#208](https://github.com/getsentry/warden/pull/208)
|
|
186
|
+
- Combine multiple reduce operations into single pass by @dcramer in [#207](https://github.com/getsentry/warden/pull/207)
|
|
187
|
+
- Simplify repetitive column width calculations in logs by @dcramer in [#209](https://github.com/getsentry/warden/pull/209)
|
|
188
|
+
- Collapse severity to 3 levels, add warden logs command by @dcramer in [#192](https://github.com/getsentry/warden/pull/192)
|
|
189
|
+
- Migrate to dotagents and add skills reference to AGENTS.md by @dcramer in [#195](https://github.com/getsentry/warden/pull/195)
|
|
190
|
+
- Tighten weak mock assertions in test suite by @dcramer in [#160](https://github.com/getsentry/warden/pull/160)
|
|
191
|
+
- Add conductor.json configuration by @dcramer in [#159](https://github.com/getsentry/warden/pull/159)
|
|
192
|
+
- Remove generated artifacts from dist, keep only ncc bundle by @dcramer in [#131](https://github.com/getsentry/warden/pull/131)
|
|
193
|
+
- Replace batch-based concurrency with sliding window pool by @dcramer in [#126](https://github.com/getsentry/warden/pull/126)
|
|
194
|
+
|
|
195
|
+
### Other
|
|
196
|
+
|
|
197
|
+
- release: 0.24.1 by @getsentry-bot in [2b9e2b0c](https://github.com/getsentry/warden/commit/2b9e2b0cdab12b950fcb4abc79e33d7db363ee49)
|
|
198
|
+
- release: 0.24.0 by @getsentry-bot in [715259ec](https://github.com/getsentry/warden/commit/715259ecacc9e1e5d78b6b62623960d86e934162)
|
|
199
|
+
- release: 0.23.0 by @getsentry-bot in [dd7f76ac](https://github.com/getsentry/warden/commit/dd7f76ac25cd8d70f2557638bd8d8678d9776e96)
|
|
200
|
+
- release: 0.22.0 by @getsentry-bot in [08a3b2f0](https://github.com/getsentry/warden/commit/08a3b2f0139248c80ba499038320556bedb66347)
|
|
201
|
+
- release: 0.21.0 by @getsentry-bot in [2795626e](https://github.com/getsentry/warden/commit/2795626e8f1ff3c5a7a041d0ecb9ae3c047641cd)
|
|
202
|
+
- Docs UI improvements by @PickleNik in [#248](https://github.com/getsentry/warden/pull/248)
|
|
203
|
+
- release: 0.20.0 by @getsentry-bot in [e7dbd6eb](https://github.com/getsentry/warden/commit/e7dbd6eb1680d1d15df6388084237e5d231ec929)
|
|
204
|
+
- release: 0.19.0 by @getsentry-bot in [0096b702](https://github.com/getsentry/warden/commit/0096b7024749edf9e62a791340cfea2ef5b899bf)
|
|
205
|
+
- chores(docs): Add instruction for creating org rulesets by @Jeffreyhung in [#244](https://github.com/getsentry/warden/pull/244)
|
|
206
|
+
- release: 0.18.0 by @getsentry-bot in [e3691621](https://github.com/getsentry/warden/commit/e3691621d9f92de1f47fadb47be162b90f7042ff)
|
|
207
|
+
- release: 0.17.0 by @getsentry-bot in [d6132a96](https://github.com/getsentry/warden/commit/d6132a960cb033ec737042bea68f195b5cadef76)
|
|
208
|
+
- release: 0.16.0 by @getsentry-bot in [62909fe4](https://github.com/getsentry/warden/commit/62909fe4d28c322508945382d001d0a6844852f2)
|
|
209
|
+
- release: 0.15.0 by @getsentry-bot in [d9905cee](https://github.com/getsentry/warden/commit/d9905ceee868cba2aa41f8f17233eacb44901c36)
|
|
210
|
+
- release: 0.14.0 by @getsentry-bot in [538f13b4](https://github.com/getsentry/warden/commit/538f13b44a4e78f30ecc668957f6cede7d8e7161)
|
|
211
|
+
- release: 0.13.0 by @getsentry-bot in [063517a9](https://github.com/getsentry/warden/commit/063517a90a903b56919eec66542b129950ff866c)
|
|
212
|
+
- release: 0.12.0 by @getsentry-bot in [7177c99f](https://github.com/getsentry/warden/commit/7177c99fb10de1cbec8b788881d501a4f8d72965)
|
|
213
|
+
- Remove outdated SPEC.md by @dcramer in [#181](https://github.com/getsentry/warden/pull/181)
|
|
214
|
+
- release: 0.11.0 by @getsentry-bot in [b5525e63](https://github.com/getsentry/warden/commit/b5525e6332a7090940f066b676ea4cf587aa1e2a)
|
|
215
|
+
- release: 0.10.0 by @getsentry-bot in [5762bc7a](https://github.com/getsentry/warden/commit/5762bc7a0b608cdbe31db7b740e8eeff21da2081)
|
|
216
|
+
- Add repository and source context to skill metrics by @dcramer in [#165](https://github.com/getsentry/warden/pull/165)
|
|
217
|
+
- Add end-to-end eval system with LLM judge by @dcramer in [#152](https://github.com/getsentry/warden/pull/152)
|
|
218
|
+
- release: 0.9.0 by @getsentry-bot in [d36b060f](https://github.com/getsentry/warden/commit/d36b060f650314a1dfafa78a1801be980272e3c0)
|
|
219
|
+
- release: 0.8.0 by @getsentry-bot in [7f71a98d](https://github.com/getsentry/warden/commit/7f71a98d931a128ba936df2ff5b73a72a987e6ab)
|
|
220
|
+
- release: 0.7.0 by @getsentry-bot in [b6e61976](https://github.com/getsentry/warden/commit/b6e6197647e44211f5d1a30788d0c6792e24c97a)
|
|
221
|
+
|
|
222
|
+
_Plus 1 more_
|
|
223
|
+
|
|
2
224
|
## 0.24.1
|
|
3
225
|
|
|
4
226
|
### New Features ✨
|
package/README.md
CHANGED
|
@@ -20,8 +20,9 @@ Your code is under new management. Agents that review your code - locally or on
|
|
|
20
20
|
# Initialize warden in your repository
|
|
21
21
|
npx @sentry/warden init
|
|
22
22
|
|
|
23
|
-
# Add the built-in baseline
|
|
23
|
+
# Add the built-in baseline reviews
|
|
24
24
|
npx @sentry/warden add security-review
|
|
25
|
+
npx @sentry/warden add code-review
|
|
25
26
|
|
|
26
27
|
# Run a pre-review on current branch changes
|
|
27
28
|
# Uses Claude Code subscription if logged in, or set WARDEN_ANTHROPIC_API_KEY
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/init.ts"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/init.ts"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AA4Q7C;;GAEG;AACH,wBAAsB,OAAO,CAAC,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAC,MAAM,CAAC,CAoItF"}
|
|
@@ -50,9 +50,11 @@ function generateWardenToml() {
|
|
|
50
50
|
# https://github.com/getsentry/warden
|
|
51
51
|
#
|
|
52
52
|
# Warden reviews code using AI-powered skills triggered by GitHub events.
|
|
53
|
-
# Built-in skills are available by name.
|
|
53
|
+
# Built-in skills are available by name. Add more skills as needed.
|
|
54
54
|
#
|
|
55
|
-
# Add
|
|
55
|
+
# Add built-in reviews with:
|
|
56
|
+
# warden add security-review
|
|
57
|
+
# warden add code-review
|
|
56
58
|
|
|
57
59
|
version = 1
|
|
58
60
|
|
|
@@ -65,7 +67,9 @@ failOn = "high"
|
|
|
65
67
|
reportOn = "medium"
|
|
66
68
|
|
|
67
69
|
# Skills define what to analyze and when to run
|
|
68
|
-
# Add
|
|
70
|
+
# Add built-in reviews with:
|
|
71
|
+
# warden add security-review
|
|
72
|
+
# warden add code-review
|
|
69
73
|
#
|
|
70
74
|
# Example skill with path filters and triggers:
|
|
71
75
|
#
|
|
@@ -354,7 +358,8 @@ export async function runInit(options, reporter) {
|
|
|
354
358
|
}
|
|
355
359
|
// Print next steps
|
|
356
360
|
reporter.bold('Next steps:');
|
|
357
|
-
reporter.text(` 1. Add
|
|
361
|
+
reporter.text(` 1. Add built-in reviews: ${chalk.cyan('warden add security-review')}`);
|
|
362
|
+
reporter.text(` ${chalk.cyan('warden add code-review')}`);
|
|
358
363
|
reporter.text(` 2. Set ${chalk.cyan('WARDEN_ANTHROPIC_API_KEY')} in .env.local`);
|
|
359
364
|
reporter.text(` 3. Add ${chalk.cyan('WARDEN_ANTHROPIC_API_KEY')} to organization or repository secrets`);
|
|
360
365
|
// Show GitHub secrets URL if available
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.js","sourceRoot":"","sources":["../../../src/cli/commands/init.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,MAAM,EACN,UAAU,EACV,SAAS,EACT,SAAS,EACT,WAAW,EACX,YAAY,EACZ,MAAM,EACN,WAAW,EACX,aAAa,GACd,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM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AED,IAAI,YAAY,KAAK,CAAC,EAAE,CAAC;QACvB,OAAO,CAAC,CAAC;IACX,CAAC;IAED,mBAAmB;IACnB,QAAQ,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;IAC7B,QAAQ,CAAC,IAAI,CAAC,8BAA8B,KAAK,CAAC,IAAI,CAAC,4BAA4B,CAAC,EAAE,CAAC,CAAC;IACxF,QAAQ,CAAC,IAAI,CAAC,QAAQ,KAAK,CAAC,IAAI,CAAC,wBAAwB,CAAC,EAAE,CAAC,CAAC;IAC9D,QAAQ,CAAC,IAAI,CAAC,YAAY,KAAK,CAAC,IAAI,CAAC,0BAA0B,CAAC,gBAAgB,CAAC,CAAC;IAClF,QAAQ,CAAC,IAAI,CAAC,YAAY,KAAK,CAAC,IAAI,CAAC,0BAA0B,CAAC,wCAAwC,CAAC,CAAC;IAE1G,uCAAuC;IACvC,MAAM,SAAS,GAAG,gBAAgB,CAAC,QAAQ,CAAC,CAAC;IAC7C,IAAI,SAAS,EAAE,CAAC;QACd,QAAQ,CAAC,IAAI,CAAC,QAAQ,KAAK,CAAC,GAAG,CAAC,SAAS,GAAG,2BAA2B,CAAC,EAAE,CAAC,CAAC;IAC9E,CAAC;IAED,QAAQ,CAAC,IAAI,CAAC,mCAAmC,CAAC,CAAC;IAEnD,OAAO,CAAC,CAAC;AACX,CAAC"}
|
package/dist/cli/help.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"help.d.ts","sourceRoot":"","sources":["../../src/cli/help.ts"],"names":[],"mappings":"AAoCA,MAAM,MAAM,UAAU,GAClB,KAAK,GACL,MAAM,GACN,KAAK,GACL,MAAM,GACN,OAAO,GACP,SAAS,GACT,WAAW,GACX,MAAM,GACN,WAAW,GACX,WAAW,GACX,aAAa,GACb,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"help.d.ts","sourceRoot":"","sources":["../../src/cli/help.ts"],"names":[],"mappings":"AAoCA,MAAM,MAAM,UAAU,GAClB,KAAK,GACL,MAAM,GACN,KAAK,GACL,MAAM,GACN,OAAO,GACP,SAAS,GACT,WAAW,GACX,MAAM,GACN,WAAW,GACX,WAAW,GACX,aAAa,GACb,SAAS,CAAC;AAied,wBAAgB,UAAU,CAAC,MAAM,CAAC,EAAE,UAAU,GAAG,MAAM,CAEtD;AAED,wBAAgB,QAAQ,CAAC,MAAM,CAAC,EAAE,UAAU,GAAG,IAAI,CAElD"}
|
package/dist/cli/help.js
CHANGED
|
@@ -194,7 +194,7 @@ const HELP_COMMANDS = {
|
|
|
194
194
|
},
|
|
195
195
|
add: {
|
|
196
196
|
summary: 'Add a skill trigger to warden.toml',
|
|
197
|
-
description: 'Add a
|
|
197
|
+
description: 'Add a skill trigger to the repository configuration.',
|
|
198
198
|
usage: ['warden add [skill] [options]'],
|
|
199
199
|
arguments: [
|
|
200
200
|
{ label: 'skill', description: 'Skill name to add' },
|
|
@@ -203,6 +203,7 @@ const HELP_COMMANDS = {
|
|
|
203
203
|
examples: [
|
|
204
204
|
'warden add',
|
|
205
205
|
'warden add security-review',
|
|
206
|
+
'warden add code-review',
|
|
206
207
|
'warden add --remote your-org/warden-skills --skill api-review',
|
|
207
208
|
],
|
|
208
209
|
},
|
package/dist/cli/help.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"help.js","sourceRoot":"","sources":["../../src/cli/help.ts"],"names":[],"mappings":"AAwEA,MAAM,YAAY,GAAyC;IACzD,GAAG,EAAE;QACH,KAAK,EAAE,kBAAkB;QACzB,WAAW,EAAE,uCAAuC;KACrD;IACD,IAAI,EAAE;QACJ,KAAK,EAAE,YAAY;QACnB,WAAW,EAAE,4BAA4B;KAC1C;IACD,OAAO,EAAE;QACP,KAAK,EAAE,eAAe;QACtB,WAAW,EAAE,qBAAqB;KACnC;IACD,KAAK,EAAE;QACL,KAAK,EAAE,qBAAqB;QAC5B,WAAW,EAAE,mEAAmE;KACjF;IACD,MAAM,EAAE;QACN,KAAK,EAAE,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AAM,CAAC,CAAC,KAAK;YACjC,WAAW,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC,WAAW;YAC7C,YAAY,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC,YAAY;SAChD,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACT,CAAC;IAED,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAC9C,KAAK,CAAC,IAAI,CAAC,GAAG,aAAa,CAAC,WAAW,EAAE,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,KAAK,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC;IAC5F,CAAC;IAED,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,CAAC;AACpC,CAAC;AAED,MAAM,UAAU,UAAU,CAAC,MAAmB;IAC5C,OAAO,MAAM,CAAC,CAAC,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,cAAc,EAAE,CAAC;AAC/D,CAAC;AAED,MAAM,UAAU,QAAQ,CAAC,MAAmB;IAC1C,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC;AAClC,CAAC"}
|
package/package.json
CHANGED
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: code-review
|
|
3
|
+
description: Finds real correctness bugs in code changes. Use for adversarial code review, bug hunts, regression review, PR correctness review, logic errors, data loss, race conditions, state bugs, interface contract breaks, error handling bugs, edge cases, broken builds, or broken workflows. Excludes style, readability, architecture, AppSec, and best-practice-only feedback unless the issue causes a demonstrable bug.
|
|
4
|
+
allowed-tools: Read Grep Glob
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
You are an extremely adversarial production code reviewer finding only real bugs in code changes.
|
|
8
|
+
Try to break the changed behavior from every reachable angle, but report nothing unless the failure is concrete, reproducible from the code, and would cause incorrect behavior.
|
|
9
|
+
|
|
10
|
+
## References
|
|
11
|
+
|
|
12
|
+
Load only matching references:
|
|
13
|
+
|
|
14
|
+
| Reference | Read When |
|
|
15
|
+
|-----------|-----------|
|
|
16
|
+
| `references/javascript-typescript.md` | Reviewing JavaScript, TypeScript, Node, React, Next.js, or browser code |
|
|
17
|
+
| `references/python.md` | Reviewing Python, Django, Flask, FastAPI, Celery, or Python service code |
|
|
18
|
+
| `references/github-workflows.md` | Reviewing GitHub Actions workflows, local actions, reusable workflows, or scripts and config loaded by workflows |
|
|
19
|
+
|
|
20
|
+
## Bugs Only Rule
|
|
21
|
+
|
|
22
|
+
Report a finding only when you can prove all of these:
|
|
23
|
+
|
|
24
|
+
- The changed code is reachable in production, a user entry point, a published interface, a shipped workflow, or a test that can mask a real regression.
|
|
25
|
+
- A specific input, state, ordering, configuration, dependency result, or retry path triggers the failure.
|
|
26
|
+
- The surrounding code, tests, schema, docs, or public contract shows what should happen.
|
|
27
|
+
- The changed behavior violates that contract and produces a concrete symptom.
|
|
28
|
+
- The impact is observable: wrong result, crash, data loss, corrupted state, missed side effect, duplicate side effect, broken build, failed deploy, or false success.
|
|
29
|
+
|
|
30
|
+
No proof, no finding. Suspicion is not a result.
|
|
31
|
+
|
|
32
|
+
## Investigation Process
|
|
33
|
+
|
|
34
|
+
1. Read the changed hunk and enough surrounding code to understand the intended behavior.
|
|
35
|
+
2. Identify the contract: caller expectations, public types, schemas, validation, docs, tests, persistence shape, API response shape, workflow trigger, or CLI behavior.
|
|
36
|
+
3. Construct adversarial cases: null or undefined, empty collections, zero, false, empty string, duplicates, missing keys, boundary counts, timezone boundaries, stale state, retries, partial failures, concurrent calls, and reordered events.
|
|
37
|
+
4. Trace data and state across imports, wrappers, validators, serializers, database writes, caches, queues, and dependent call sites.
|
|
38
|
+
5. Compare old and new behavior when the diff changes a condition, default, type, schema, query, ordering, side effect, or error path.
|
|
39
|
+
6. Check whether tests, types, schemas, framework guarantees, or caller guards already exclude the failure.
|
|
40
|
+
7. Report only defects that survive this verification.
|
|
41
|
+
|
|
42
|
+
## What To Report
|
|
43
|
+
|
|
44
|
+
| Category | Report When |
|
|
45
|
+
|----------|-------------|
|
|
46
|
+
| Logic and conditions | Branches are inverted, unreachable, too broad, too narrow, or collapse distinct cases such as `0`, `false`, `""`, `null`, and missing values. |
|
|
47
|
+
| Data contracts | Runtime values no longer match schemas, public types, API responses, persistence shapes, serialized payloads, or caller assumptions. |
|
|
48
|
+
| State and mutation | Shared objects, caches, global state, refs, arrays, maps, ORM models, or config are mutated in a way that leaks across callers or corrupts later work. |
|
|
49
|
+
| Async and ordering | Promises, tasks, callbacks, queues, retries, cancellation, transactions, or cleanup run in the wrong order, are not awaited, or race in a reachable path. |
|
|
50
|
+
| Error handling | Real failures are swallowed, converted to success, retried unsafely, or leave partial state that callers treat as complete. |
|
|
51
|
+
| Boundaries and edge cases | Empty, first, last, duplicate, pagination, sorting, timezone, locale, precision, overflow, migration, or compatibility cases produce wrong behavior. |
|
|
52
|
+
| Persistence and migrations | Writes are non-atomic, migrations lose data, backfills skip rows, query filters update the wrong records, or rollback paths leave inconsistent state. |
|
|
53
|
+
| API and dependency behavior | Published interfaces, CLI flags, config options, webhooks, service calls, or third-party dependency changes break documented or existing caller behavior. |
|
|
54
|
+
| UI correctness | The UI displays stale, wrong, duplicate, missing, or unsaved data because of the changed code, not because of style or preference. |
|
|
55
|
+
| Build, test, and workflow breakage | Changed code, packaging, imports, exports, generated artifacts, CI, or release workflows fail deterministically or report false success. |
|
|
56
|
+
|
|
57
|
+
## Severity
|
|
58
|
+
|
|
59
|
+
| Level | Use For |
|
|
60
|
+
|-------|---------|
|
|
61
|
+
| high | Data loss or corruption, critical-path crashes, broken production deploy or release, incorrect billing or permissions state, published interface breakage for normal callers, deadlock or hang in core flow, or false success after a failed destructive operation. |
|
|
62
|
+
| medium | Reproducible wrong results, recoverable crashes, duplicate or missed side effects, broken non-critical workflow, meaningful edge case in a shipped path, or compatibility break with a clear affected caller. |
|
|
63
|
+
| low | Narrow but real bug with limited blast radius, confusing state that can cause user-visible mistakes, or a test/tooling bug that masks the intended behavior. |
|
|
64
|
+
|
|
65
|
+
- Use the lower severity when impact depends on unproven preconditions.
|
|
66
|
+
- Do not inflate severity for cleverness. The bug earns its level through impact.
|
|
67
|
+
|
|
68
|
+
## What Not To Report
|
|
69
|
+
|
|
70
|
+
- AppSec findings. Use the dedicated AppSec skill for exploitability issues.
|
|
71
|
+
- Style, naming, formatting, comments, readability, or maintainability concerns.
|
|
72
|
+
- Architecture, design layering, type hygiene, or refactor advice without a proven incorrect behavior.
|
|
73
|
+
- Performance concerns unless the changed code causes a reachable timeout, hang, memory blowup, quota exhaustion, or missed deadline.
|
|
74
|
+
- Missing tests, weak tests, or low coverage unless the changed test now asserts the wrong behavior or hides a real regression.
|
|
75
|
+
- Existing bugs untouched by the change unless the change makes them reachable or materially worse.
|
|
76
|
+
- Generated, vendored, fixture, example, migration-only, or test-only code unless it is shipped, executed, or masks a shipped bug.
|
|
77
|
+
- Framework, language, or dependency behavior that already guarantees the suspected case is safe.
|
|
78
|
+
- Hypothetical failures that require unrealistic inputs, impossible call order, or assumptions not supported by the code.
|
|
79
|
+
|
|
80
|
+
## Finding Format
|
|
81
|
+
|
|
82
|
+
- Title: name the exact bug and trigger.
|
|
83
|
+
- Description: include the changed behavior, trigger conditions, expected behavior, actual behavior, and concrete impact.
|
|
84
|
+
- `verification`: list checked files, functions, callers, guards, tests, schemas, or framework guarantees.
|
|
85
|
+
- `suggestedFix`: include only when the fix is complete for the analyzed path.
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# Code Review Skill Sources
|
|
2
|
+
|
|
3
|
+
## Source Inventory
|
|
4
|
+
|
|
5
|
+
| Source | Trust tier | Confidence | Usage constraints | Decisions |
|
|
6
|
+
|--------|------------|------------|-------------------|-----------|
|
|
7
|
+
| Existing built-in `security-review` skill | Local prior art | High | Use structure and evidence gating only; do not import security scope. | Mirror source-boundary-sink style as trigger-contract-impact for correctness bugs. |
|
|
8
|
+
| Local `architecture-review`, `code-simplifier`, and `find-warden-bugs` skills | Local prior art | Medium | Use boundaries to avoid overlap with style, architecture, and Warden-specific sweeps. | Make exclusions explicit so code review reports only bugs. |
|
|
9
|
+
| Common production correctness review failure modes | Engineering practice | Medium | Keep examples generic, transformed, and evidence-gated. | Cover logic, state, async, error handling, contracts, persistence, UI, build, and workflow bugs. |
|
|
10
|
+
| Warden package skill loader and packaging tests | Repository behavior | High | Use for validation scope only. | Add tests that the new built-in skill resolves and is included in the npm package. |
|
|
11
|
+
|
|
12
|
+
## Coverage Matrix
|
|
13
|
+
|
|
14
|
+
| Dimension | Coverage Status | Notes |
|
|
15
|
+
|-----------|-----------------|-------|
|
|
16
|
+
| Bug class definitions and prerequisites | Complete | `SKILL.md` defines reportable categories and requires a concrete trigger, violated contract, and impact. |
|
|
17
|
+
| Reachability and reproducibility evidence | Complete | Findings must prove the changed path is reachable and the failure is triggered by a specific input, state, ordering, or configuration. |
|
|
18
|
+
| False-positive controls | Complete | Exclusions block style, architecture, maintainability, security, performance-only, test-coverage-only, and pattern-only findings. |
|
|
19
|
+
| Severity and confidence calibration | Complete | Severity is tied to user-visible or operational impact, with lower severity for unproven preconditions. |
|
|
20
|
+
| Remediation expectations | Complete | Findings may include `suggestedFix` only when the fix is complete for the analyzed path. |
|
|
21
|
+
| Language and workflow caveats | Complete for initial scope | References cover JS/TS, Python, and GitHub Actions workflow correctness. Other languages use the core contract until repeated examples justify references. |
|
|
22
|
+
|
|
23
|
+
## Source-Backed Decisions
|
|
24
|
+
|
|
25
|
+
1. Security and correctness review should stay separate.
|
|
26
|
+
- Reason: Warden already has a dedicated `security-review` skill with exploitability criteria.
|
|
27
|
+
- Decision: `code-review` excludes auth, injection, XSS, SSRF, secrets, unsafe crypto, and workflow privilege issues.
|
|
28
|
+
2. Adversarial review still needs an evidence gate.
|
|
29
|
+
- Reason: aggressive prompts easily produce style or speculative findings.
|
|
30
|
+
- Decision: every finding must include trigger, expected behavior, actual behavior, and impact.
|
|
31
|
+
3. References should be conditional and language-specific.
|
|
32
|
+
- Reason: the built-in security skill keeps `SKILL.md` concise by routing only relevant details.
|
|
33
|
+
- Decision: create JS/TS, Python, and GitHub workflow references rather than a large catch-all reference.
|
|
34
|
+
4. Build and workflow breakage are correctness bugs.
|
|
35
|
+
- Reason: Warden reviews code changes that can break published packages, CI, and releases.
|
|
36
|
+
- Decision: include deterministic build, packaging, test, and workflow failures when the changed code proves the failure.
|
|
37
|
+
|
|
38
|
+
## Open Gaps
|
|
39
|
+
|
|
40
|
+
- Add eval fixtures after real review results identify the highest-value correctness bug classes for this skill.
|
|
41
|
+
- Add more language references only when repeated findings need language-specific calibration.
|
|
42
|
+
- Collect sanitized positive and negative review examples before creating `references/evidence/`.
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
# Code Review Skill Specification
|
|
2
|
+
|
|
3
|
+
## Intent
|
|
4
|
+
|
|
5
|
+
The `code-review` skill is Warden's broad default correctness reviewer. It gives teams a highly adversarial bug-finding pass for code changes without turning into style, architecture, security, or best-practice commentary.
|
|
6
|
+
|
|
7
|
+
It should catch real regressions and production defects while preferring no finding over speculative review feedback.
|
|
8
|
+
|
|
9
|
+
## Scope
|
|
10
|
+
|
|
11
|
+
In scope:
|
|
12
|
+
|
|
13
|
+
- Logic, state, async, data contract, persistence, edge-case, API, UI, build, test, and workflow correctness bugs.
|
|
14
|
+
- Changed production code, user entry points, public APIs, shipped workflows, and tests that can mask shipped regressions.
|
|
15
|
+
- General bug-finding guidance that applies across application code.
|
|
16
|
+
- Focused notes for JavaScript/TypeScript, Python, and GitHub Actions workflow correctness.
|
|
17
|
+
|
|
18
|
+
Out of scope:
|
|
19
|
+
|
|
20
|
+
- Security vulnerabilities covered by `security-review`.
|
|
21
|
+
- Style, readability, formatting, naming, architecture, maintainability, or generic best-practice advice.
|
|
22
|
+
- Performance issues without a demonstrated timeout, hang, resource exhaustion, or deadline miss.
|
|
23
|
+
- Broad test coverage requests unless changed tests now assert the wrong behavior or hide a real regression.
|
|
24
|
+
- Benchmark-specific prompt compatibility.
|
|
25
|
+
|
|
26
|
+
## Users And Trigger Context
|
|
27
|
+
|
|
28
|
+
- Primary users: coding agents and Warden runs reviewing pull requests or local changes.
|
|
29
|
+
- Common user requests: "code review", "review this PR", "find bugs", "bug hunt", "correctness review", "look for regressions", "adversarial review", "logic bug", "race condition", or "edge-case bug".
|
|
30
|
+
- Should not trigger for: security-only review, architecture review, code simplification, style review, documentation review, prompt-writing help, or Warden CLI usage.
|
|
31
|
+
|
|
32
|
+
## Runtime Contract
|
|
33
|
+
|
|
34
|
+
- Required first actions:
|
|
35
|
+
- Identify whether changed files are production code, public API, shipped workflow, test/tooling code, generated/vendor/example code, or non-runtime docs.
|
|
36
|
+
- Read the changed file and any callers, guards, schemas, tests, serializers, migrations, workflow-loaded scripts, or downstream consumers needed to prove the bug.
|
|
37
|
+
- Load only the matching reference when it materially improves the review.
|
|
38
|
+
- Required outputs:
|
|
39
|
+
- Warden findings only for high-confidence correctness bugs.
|
|
40
|
+
- Empty findings when a concrete failure is not proven.
|
|
41
|
+
- Non-negotiable constraints:
|
|
42
|
+
- Do not report style, architecture, maintainability, security, or best-practice-only feedback.
|
|
43
|
+
- Do not lower the bar to create coverage.
|
|
44
|
+
- Do not report pattern-only suspicions.
|
|
45
|
+
- Expected bundled files loaded at runtime:
|
|
46
|
+
- `references/javascript-typescript.md` for JS/TS/Node/React/Next/browser correctness.
|
|
47
|
+
- `references/python.md` for Python/Django/Flask/FastAPI/Celery correctness.
|
|
48
|
+
- `references/github-workflows.md` for GitHub Actions workflow correctness.
|
|
49
|
+
|
|
50
|
+
## Source And Evidence Model
|
|
51
|
+
|
|
52
|
+
Authoritative sources:
|
|
53
|
+
|
|
54
|
+
- The existing `security-review` built-in skill structure and evidence-gated finding model.
|
|
55
|
+
- Local Warden review skills that distinguish bugs from architecture, style, and simplification work.
|
|
56
|
+
- Common production code review failure modes observed across typed application code, service code, and CI workflows.
|
|
57
|
+
|
|
58
|
+
Useful improvement sources:
|
|
59
|
+
|
|
60
|
+
- positive examples: reviewed findings that identify a real trigger, violated contract, and concrete impact.
|
|
61
|
+
- negative examples: noisy findings that were style, speculation, security-only, or best-practice-only comments.
|
|
62
|
+
- commit logs/changelogs: fixes to Warden false positives, missing bug classes, or trigger precision.
|
|
63
|
+
- issue or PR feedback: maintainer comments showing what should or should not be reported.
|
|
64
|
+
- eval results: true-positive and safe-counterexample cases for correctness defects.
|
|
65
|
+
|
|
66
|
+
Data that must not be stored:
|
|
67
|
+
|
|
68
|
+
- secrets
|
|
69
|
+
- customer data
|
|
70
|
+
- private URLs or identifiers that are not needed for reproduction
|
|
71
|
+
|
|
72
|
+
## Reference Architecture
|
|
73
|
+
|
|
74
|
+
- `SKILL.md` contains the runtime contract, adversarial review loop, category table, severity rubric, exclusions, and reference routing.
|
|
75
|
+
- `SOURCES.md` contains synthesis notes, coverage status, and maintenance gaps.
|
|
76
|
+
- `references/` contains language and workflow-specific correctness notes with false-positive controls.
|
|
77
|
+
- `references/evidence/` is unused until concrete positive and negative review examples are collected.
|
|
78
|
+
- `scripts/` and `assets/` are unused.
|
|
79
|
+
|
|
80
|
+
## Evaluation
|
|
81
|
+
|
|
82
|
+
- Lightweight validation:
|
|
83
|
+
- Run the skill validator against `src/builtin-skills/code-review`.
|
|
84
|
+
- Verify every reference is directly routed from `SKILL.md`.
|
|
85
|
+
- Run built-in skill loader and package-content tests.
|
|
86
|
+
- Deeper evaluation:
|
|
87
|
+
- Add eval cases for falsey defaults, dropped async work, schema mismatch, migration data loss, stale UI state, workflow false success, and safe counterexamples.
|
|
88
|
+
- Compare false positives against sanitized real Warden runs.
|
|
89
|
+
- Holdout examples:
|
|
90
|
+
- A style-only diff with no behavior change should produce no finding.
|
|
91
|
+
- A security-only diff should be routed to `security-review`, not reported by `code-review`.
|
|
92
|
+
- A type-safe or schema-validated path should not be reported as a runtime bug.
|
|
93
|
+
- Acceptance gates:
|
|
94
|
+
- Findings require trigger, expected behavior, actual behavior, and impact.
|
|
95
|
+
- `SKILL.md` stays concise enough to scan.
|
|
96
|
+
- Language-specific examples stay in references.
|
|
97
|
+
- Security and style findings stay out of scope.
|
|
98
|
+
|
|
99
|
+
## Known Limitations
|
|
100
|
+
|
|
101
|
+
- The skill cannot prove bugs that require running complex integration environments unless the code path itself is sufficient evidence.
|
|
102
|
+
- Language coverage is intentionally strongest for JS/TS, Python, and GitHub Actions workflows.
|
|
103
|
+
- It may miss domain-specific business-rule bugs when the changed code does not expose the business contract.
|
|
104
|
+
|
|
105
|
+
## Maintenance Notes
|
|
106
|
+
|
|
107
|
+
- When to update `SKILL.md`: the core finding contract, exclusions, severity rubric, or reference routing changes.
|
|
108
|
+
- When to update `SOURCES.md`: new source categories, coverage gaps, or synthesis decisions materially change the skill.
|
|
109
|
+
- When to update `EVAL.md`: repeatable eval prompts are added.
|
|
110
|
+
- When to update `references/evidence/`: positive or negative examples recur and should shape future revisions.
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
# GitHub Workflow Bug Review Notes
|
|
2
|
+
|
|
3
|
+
Use this when reviewing GitHub Actions workflows, local actions, reusable workflows, or scripts/config loaded by workflows. These notes refine the core `code-review` skill; security workflow findings belong to `security-review`.
|
|
4
|
+
|
|
5
|
+
## Review Map
|
|
6
|
+
|
|
7
|
+
Start with the effective execution graph:
|
|
8
|
+
|
|
9
|
+
1. Identify the trigger: `pull_request`, `push`, `merge_group`, `workflow_dispatch`, `workflow_call`, `workflow_run`, `release`, `schedule`, or comment/label triggers.
|
|
10
|
+
2. Identify changed workflow files, local actions, reusable workflows, and repo-local scripts loaded by the workflow.
|
|
11
|
+
3. Follow job dependencies, matrix expansion, `if:` conditions, defaults, env, outputs, artifact paths, cache keys, and checked-out refs.
|
|
12
|
+
4. Compare intended behavior from names, docs, branch filters, required checks, release process, and adjacent workflows.
|
|
13
|
+
5. Report only deterministic broken CI, false success, skipped required work, wrong artifact, wrong release/deploy target, or broken local action behavior.
|
|
14
|
+
|
|
15
|
+
## Reportable Patterns
|
|
16
|
+
|
|
17
|
+
| Pattern | Report When | Safer Shape |
|
|
18
|
+
|---------|-------------|-------------|
|
|
19
|
+
| Skipped required checks | Branch, path, event, job `if:`, or matrix conditions exclude code paths that the workflow name or required-check setup says must run. | Align filters and required checks with the shipped paths. |
|
|
20
|
+
| False success | A script failure is hidden by `|| true`, missing `set -e` in multi-command shell, ignored exit codes, or background processes that can fail after the step succeeds. | Propagate exit codes and wait for background work. |
|
|
21
|
+
| Broken outputs | Step IDs, output names, `$GITHUB_OUTPUT` keys, job outputs, or reusable workflow outputs no longer match consumers. | Keep producer and consumer names aligned. |
|
|
22
|
+
| Wrong checkout or ref | Build, release, or deploy job checks out the wrong branch, tag, merge ref, or SHA for the event it claims to process. | Pin the intended event SHA or release ref explicitly. |
|
|
23
|
+
| Artifact mismatch | Upload path, download name, retention, working directory, or build output path changed so downstream jobs publish or test stale/missing artifacts. | Use explicit artifact names and verify generated paths. |
|
|
24
|
+
| Matrix drift | Matrix includes impossible combinations, drops a supported runtime, or references variables not defined in the expanded job. | Keep matrix dimensions and include/exclude entries consistent. |
|
|
25
|
+
| Cache staleness bug | Cache key omits lockfiles, runtime version, OS, architecture, or package manager version and can restore incompatible dependencies in normal CI. | Include dependency and runtime inputs in the key. |
|
|
26
|
+
| Reusable workflow contract break | Caller inputs, required secrets, output names, permissions expectations, or defaults no longer match the reusable workflow declaration. | Update callers and callee contracts together. |
|
|
27
|
+
| Local action breakage | `action.yml`, composite steps, shell scripts, or checked-in action code no longer match declared inputs, outputs, or runtime. | Keep action metadata and implementation synchronized. |
|
|
28
|
+
|
|
29
|
+
## False-Positive Controls
|
|
30
|
+
|
|
31
|
+
- Security issues such as privileged PR execution, expression injection, secrets exposure, broad permissions, mutable action refs, or OIDC trust belong to `security-review`, not this skill.
|
|
32
|
+
- Path filters are not bugs when another required workflow covers the skipped files.
|
|
33
|
+
- `continue-on-error` is not a bug when the result is intentionally checked later and failures still fail or mark the intended conclusion.
|
|
34
|
+
- Broad cache restore keys are not findings unless they can restore incompatible state for a normal workflow path.
|
|
35
|
+
- Matrix omissions are not findings unless docs, package metadata, or adjacent workflows show the runtime is still supported.
|
|
36
|
+
- A workflow step that only comments, labels, or uploads optional diagnostics is not a correctness bug unless its failure changes required behavior.
|
|
37
|
+
|
|
38
|
+
## Minimal Examples
|
|
39
|
+
|
|
40
|
+
**Report: output name drift**
|
|
41
|
+
|
|
42
|
+
```yaml
|
|
43
|
+
jobs:
|
|
44
|
+
build:
|
|
45
|
+
outputs:
|
|
46
|
+
image: ${{ steps.meta.outputs.image }}
|
|
47
|
+
steps:
|
|
48
|
+
- id: metadata
|
|
49
|
+
run: echo "image=ghcr.io/acme/app:${GITHUB_SHA}" >> "$GITHUB_OUTPUT"
|
|
50
|
+
deploy:
|
|
51
|
+
needs: build
|
|
52
|
+
steps:
|
|
53
|
+
- run: deploy "${{ needs.build.outputs.image }}"
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
The job output reads `steps.meta`, but the producer step is now `metadata`, so deploy receives an empty image.
|
|
57
|
+
|
|
58
|
+
**Report: false success**
|
|
59
|
+
|
|
60
|
+
```yaml
|
|
61
|
+
- run: |
|
|
62
|
+
pnpm build &
|
|
63
|
+
pnpm test
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
The step exits with the test command while the background build can fail after success is reported.
|
|
67
|
+
|
|
68
|
+
**Report: artifact path drift**
|
|
69
|
+
|
|
70
|
+
```yaml
|
|
71
|
+
- run: pnpm build
|
|
72
|
+
- uses: actions/upload-artifact@v4
|
|
73
|
+
with:
|
|
74
|
+
path: build/
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
If the package now writes `dist/`, downstream release jobs download a missing or stale artifact.
|
|
78
|
+
|
|
79
|
+
**Do not report: covered path filter**
|
|
80
|
+
|
|
81
|
+
```yaml
|
|
82
|
+
on:
|
|
83
|
+
pull_request:
|
|
84
|
+
paths:
|
|
85
|
+
- "docs/**"
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
This is not a bug if a separate required workflow covers source changes.
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# JavaScript And TypeScript Bug Review Notes
|
|
2
|
+
|
|
3
|
+
Use this when reviewing JavaScript, TypeScript, Node, React, Next.js, or browser code. These notes refine the core `code-review` skill; they do not add style, architecture, security, or performance-only scope.
|
|
4
|
+
|
|
5
|
+
## Runtime Boundaries
|
|
6
|
+
|
|
7
|
+
- TypeScript types disappear at runtime. Treat JSON, form data, URL params, cookies, local storage, external API responses, database rows, env vars, and message payloads as untrusted shape until parsed or validated.
|
|
8
|
+
- `as`, `!`, `any`, unchecked indexed access, and broad generics are leads, not findings. Report only when a reachable runtime value can violate the assumption.
|
|
9
|
+
- Generated types, Zod schemas, tRPC routers, OpenAPI clients, GraphQL fragments, ORM models, and serializer tests can prove the intended contract. Read them before reporting a mismatch.
|
|
10
|
+
- React and Next.js can split server and client execution. Verify where the code actually runs before claiming a browser, server, hydration, or serialization bug.
|
|
11
|
+
|
|
12
|
+
## High-Signal Patterns
|
|
13
|
+
|
|
14
|
+
| Pattern | Bug Shape | Safer Shape |
|
|
15
|
+
|---------|-----------|-------------|
|
|
16
|
+
| Falsey fallback | `value || defaultValue` treats `0`, `false`, or `""` as absent when those are valid values. | Use `??` or explicit presence checks. |
|
|
17
|
+
| Dropped async work | `forEach(async ...)`, `items.map(async ...)` without `await Promise.all`, missing `return` in promise chains, or fire-and-forget work inside request/CLI paths. | Await the work, return the promise, or intentionally detach with error handling. |
|
|
18
|
+
| Swallowed async errors | `void fn()`, unhandled promise callbacks, or catch blocks convert failed writes to success responses. | Await and propagate errors, or surface partial failure explicitly. |
|
|
19
|
+
| State mutation | In-place `sort`, `reverse`, `splice`, object mutation, cache mutation, or prop mutation changes data later reused by callers. | Clone before mutation or keep mutation local to newly created values. |
|
|
20
|
+
| Stale React state | Closures, effects, memoization, or callbacks use stale props/state and produce wrong UI or wrong submitted data. | Use correct dependencies, functional updates, refs for mutable external state, or derive state at render time. |
|
|
21
|
+
| Schema drift | Runtime schema, inferred type, serialized payload, or API response changed without matching callers. | Update schema and every consumer, or keep backward-compatible fields. |
|
|
22
|
+
| Pagination and ordering | Filtering after slicing, unstable sort keys, cursor fields that are not unique, or changed default order skips or duplicates records. | Filter before paging, add deterministic tie-breakers, and preserve cursor contracts. |
|
|
23
|
+
| Date and precision | Date-only strings, local timezone parsing, DST boundaries, milliseconds vs seconds, integer rounding, or currency precision changes produce wrong values. | Normalize units and timezones at boundaries and keep decimal math explicit. |
|
|
24
|
+
| Import/export breakage | A value import points at a type-only export, a default import targets named exports, or an ESM/CJS boundary no longer matches runtime output. | Use `export type` for types and value exports for runtime symbols, matching the package format. |
|
|
25
|
+
| Cleanup and cancellation | Abort handlers, timers, subscriptions, streams, temp files, or locks are not cleaned up on error or unmount. | Use finally blocks, cleanup functions, abort propagation, and scoped resource ownership. |
|
|
26
|
+
|
|
27
|
+
## False-Positive Controls
|
|
28
|
+
|
|
29
|
+
- `Promise.all`, `Promise.allSettled`, returned promise chains, and framework-managed async handlers can prove async work is awaited.
|
|
30
|
+
- `value ?? defaultValue` preserves `0`, `false`, and `""`; do not report falsey collapse there.
|
|
31
|
+
- In-place mutation is safe when the array or object was created locally and is not reused by callers.
|
|
32
|
+
- Optional chaining is not a bug when downstream code intentionally handles absence.
|
|
33
|
+
- Type assertions are safe when the value comes from a checked schema, trusted factory, or exhaustive discriminated union.
|
|
34
|
+
- React hook dependency warnings are not findings by themselves. Show the stale value and user-visible wrong behavior.
|
|
35
|
+
- TypeScript compile errors are findings only when the changed code deterministically breaks the build or emitted runtime behavior.
|
|
36
|
+
|
|
37
|
+
## Minimal Examples
|
|
38
|
+
|
|
39
|
+
**Report: falsey value regression**
|
|
40
|
+
|
|
41
|
+
```ts
|
|
42
|
+
const limit = Number(searchParams.get("limit")) || 50;
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
If `limit=0` is a documented way to disable fetching, this turns a valid value into `50`.
|
|
46
|
+
|
|
47
|
+
**Report: dropped async writes**
|
|
48
|
+
|
|
49
|
+
```ts
|
|
50
|
+
users.forEach(async (user) => {
|
|
51
|
+
await sendInvite(user.id);
|
|
52
|
+
});
|
|
53
|
+
return { sent: users.length };
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
The function reports success before invites finish, and failures are detached from the response.
|
|
57
|
+
|
|
58
|
+
**Report: schema drift**
|
|
59
|
+
|
|
60
|
+
```ts
|
|
61
|
+
const UserResponse = z.object({ id: z.string(), name: z.string() });
|
|
62
|
+
return { id: user.id, displayName: user.name };
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
The returned payload no longer satisfies the runtime schema or callers expecting `name`.
|
|
66
|
+
|
|
67
|
+
**Do not report: awaited async map**
|
|
68
|
+
|
|
69
|
+
```ts
|
|
70
|
+
await Promise.all(users.map((user) => sendInvite(user.id)));
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
The promises are joined and errors propagate through the awaited call.
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
# Python Bug Review Notes
|
|
2
|
+
|
|
3
|
+
Use this when reviewing Python, Django, Flask, FastAPI, Celery, or Python service code. These notes refine the core `code-review` skill; they do not add style, architecture, security, or performance-only scope.
|
|
4
|
+
|
|
5
|
+
## Runtime Boundaries
|
|
6
|
+
|
|
7
|
+
- Type hints are not runtime validation. Treat request data, query params, env vars, external API responses, database rows, task payloads, and deserialized files as shape-unknown until validated.
|
|
8
|
+
- Pydantic models, DRF serializers, dataclasses, typed dicts, Django model fields, migrations, and existing tests can prove the intended contract. Read them before reporting a mismatch.
|
|
9
|
+
- Decorators and framework hooks can change call order, transaction scope, auth context, and exception behavior. Verify the effective path.
|
|
10
|
+
- Background tasks and management commands often run outside request transactions and sessions. Check idempotency, tenant/account context, and retry behavior before reporting.
|
|
11
|
+
|
|
12
|
+
## High-Signal Patterns
|
|
13
|
+
|
|
14
|
+
| Pattern | Bug Shape | Safer Shape |
|
|
15
|
+
|---------|-----------|-------------|
|
|
16
|
+
| Mutable defaults | Function, dataclass, or model defaults reuse lists, dicts, sets, or objects across calls or instances. | Use `None` plus initialization, `default_factory`, or framework-specific callable defaults. |
|
|
17
|
+
| Falsey fallback | `value or default` treats `0`, `False`, or `""` as absent when those are valid values. | Check `is None`, missing keys, or explicit sentinel values. |
|
|
18
|
+
| Missing `None` handling | `.first()`, `.get()`, optional config, env values, cache reads, or external responses are dereferenced without proving presence. | Add explicit absence handling or enforce presence at the boundary. |
|
|
19
|
+
| Swallowed errors | Broad `except` returns success, empty data, or partial defaults that callers treat as complete. | Propagate failure, return explicit partial state, or compensate rolled-back work. |
|
|
20
|
+
| Transaction gaps | Multiple writes, task enqueues, cache updates, or file operations can partially succeed when a later step fails. | Use transactions, `on_commit`, idempotency keys, or compensation. |
|
|
21
|
+
| Async mismatch | Coroutine is not awaited, blocking I/O runs in an async endpoint, or async context managers are entered incorrectly. | Await coroutines, use async clients, and keep blocking work out of event-loop paths. |
|
|
22
|
+
| Iterator exhaustion | Generators, queryset iterators, request streams, or file objects are consumed once and then reused as if still populated. | Materialize intentionally or pass a fresh iterator/stream. |
|
|
23
|
+
| Timezone and precision | Naive and aware datetimes are mixed, date boundaries use server local time, or decimal money is converted to float. | Normalize timezone and use `Decimal` or integer minor units for money. |
|
|
24
|
+
| Query and migration drift | Renamed fields, changed defaults, non-null constraints, data migrations, or backfills miss existing rows or write wrong records. | Include backward-compatible migrations and scoped update filters. |
|
|
25
|
+
| Task retry side effects | Celery or queue retries duplicate emails, charges, state transitions, or external calls. | Make side effects idempotent or persist completion before retryable boundaries. |
|
|
26
|
+
|
|
27
|
+
## False-Positive Controls
|
|
28
|
+
|
|
29
|
+
- Django ORM, SQLAlchemy, and Pydantic can enforce contracts. Verify the exact model, serializer, or schema before reporting.
|
|
30
|
+
- `get_or_create`, `update_or_create`, database constraints, and transactions can mitigate duplicate or partial-write paths.
|
|
31
|
+
- A broad `except` is not a finding if the caller receives explicit failure state and no partial success is claimed.
|
|
32
|
+
- Mutable values are safe when created inside the function or supplied by a documented immutable factory.
|
|
33
|
+
- QuerySet laziness is not a bug by itself. Show the changed evaluation order that produces wrong data.
|
|
34
|
+
- Type-checker-only issues are findings only when they deterministically break runtime behavior, packaging, or CI.
|
|
35
|
+
|
|
36
|
+
## Minimal Examples
|
|
37
|
+
|
|
38
|
+
**Report: mutable default**
|
|
39
|
+
|
|
40
|
+
```python
|
|
41
|
+
def collect_errors(error, bucket=[]):
|
|
42
|
+
bucket.append(error)
|
|
43
|
+
return bucket
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
Every call shares the same list, so unrelated requests can see stale errors.
|
|
47
|
+
|
|
48
|
+
**Report: swallowed partial failure**
|
|
49
|
+
|
|
50
|
+
```python
|
|
51
|
+
try:
|
|
52
|
+
charge_customer(invoice)
|
|
53
|
+
mark_paid(invoice)
|
|
54
|
+
except Exception:
|
|
55
|
+
return {"ok": True}
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
The caller receives success even if charging or persistence failed.
|
|
59
|
+
|
|
60
|
+
**Report: missing absence handling**
|
|
61
|
+
|
|
62
|
+
```python
|
|
63
|
+
profile = Profile.objects.filter(user_id=user_id).first()
|
|
64
|
+
return profile.timezone
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
If profiles are optional or not yet created, this crashes instead of following the expected fallback.
|
|
68
|
+
|
|
69
|
+
**Do not report: dataclass default factory**
|
|
70
|
+
|
|
71
|
+
```python
|
|
72
|
+
@dataclass
|
|
73
|
+
class Batch:
|
|
74
|
+
items: list[str] = field(default_factory=list)
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
Each instance receives a fresh list.
|