docs(#243): add API pattern replication guidance to AGENTS.md#264
docs(#243): add API pattern replication guidance to AGENTS.md#264fullsend-ai-coder[bot] wants to merge 2 commits into
Conversation
Add a new section after "Forge abstraction" in the Go code guidance. When implementing a method that calls the same API endpoint as an existing method, read the existing implementation first and replicate its error handling, retry logic, and response validation. Uses the Git Trees API truncation pattern as a concrete example. This prevents review findings like the one on upstream PR fullsend-ai#2360, where a missing truncation check required a full fix iteration. Closes #243
|
🤖 Finished Review · ❌ Failure · Started 12:57 PM UTC · Completed 12:57 PM UTC |
|
/fs-review |
|
🤖 Finished Review · ✅ Success · Started 3:57 PM UTC · Completed 4:04 PM UTC |
Review — PR #264Verdict: Approve SummaryThis PR adds a 4-line "API pattern replication" section to AGENTS.md, placed after the "Forge abstraction" section. The new guidance instructs code agents to read existing implementations before writing new methods that use the same API endpoint, and to replicate error handling, retry logic, and response validation patterns. It uses the Git Trees API truncation handling in Sub-agent results
Notes
Previous runReview — commentPR: #264 — SummaryDocs-only change adding a 4-line "API pattern replication" section to AGENTS.md, placed between the existing "Forge abstraction" and "Architecture Decision Records" sections. The PR scope correctly matches issue #243's authorization. No security, permission, or injection concerns. One medium-severity technical accuracy finding and two low-severity findings. Findings1.
|
|
/fs-fix |
|
🤖 Finished Fix · ✅ Success · Started 5:38 PM UTC · Completed 5:45 PM UTC |
- Remove nonexistent retryOnRepoRace from examples (only retryOnTransient exists) - Fix "several methods" claim: name commitFilesTo as the centralized implementation - Add bold lead-in for visual consistency with adjacent Forge section Addresses review feedback on #264
🔧 Fix agent — iteration 1 (human-triggered)Addressed all 3 review findings in a single line edit: removed nonexistent retryOnRepoRace reference, corrected the 'several methods' claim to name commitFilesTo, and added bold lead-in for consistency. Fixed (3):
Tests: passed Updated by fullsend fix agent |
|
🤖 Finished Review · ✅ Success · Started 5:47 PM UTC · Completed 5:53 PM UTC |
Add a new section after "Forge abstraction" in the Go code guidance. When implementing a method that calls the same API endpoint as an existing method, read the existing implementation first and replicate its error handling, retry logic, and response validation. Uses the Git Trees API truncation pattern as a concrete example.
This prevents review findings like the one on upstream PR fullsend-ai#2360, where a missing truncation check required a full fix iteration.
Closes #243
Post-script verification
agent/243-api-pattern-replication-guidance)c776c248ac9a91f10998ca7107e974a6c9d76514..HEAD)