-
Notifications
You must be signed in to change notification settings - Fork 39
docs(#669): verify API contracts per code path in code skill #1231
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -307,6 +307,10 @@ Before writing code, form a concrete plan: | |
| changed behavior needs updated tests. | ||
| 7. **Assess risk** — will this change affect other callers? Does it change a | ||
| public interface? Could it break downstream consumers? | ||
| 8. **Verify API contracts per code path** — if the fix removes or empties | ||
| a parameter sent to an external API, check the API documentation or | ||
| test each code path that uses the function. Different operations | ||
| (e.g., approve vs request-changes) often have different required fields. | ||
|
Comment on lines
+310
to
+313
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Merge conflict — duplicate step 8 numbering The PR branch predates commit A rebase onto current Flagged by 4/10 review agents |
||
|
|
||
| When requirements are ambiguous, distinguish between "vague but actionable" | ||
| (you can make a reasonable conservative interpretation) and "genuinely | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Guidance scope narrower than the bug class it targets
The trigger "removes or empties" covers the PR #657 incident but the broader class of API contract violations also includes changing a parameter value or adding a default that is invalid for some code paths.
The code-review skill's equivalent guidance (line 65) already uses the broader "modifies parameters" wording. Consider aligning:
Flagged by 5/10 review agents