docs(#834): add library-utility reimplementation check to correctness agent - #864
docs(#834): add library-utility reimplementation check to correctness agent#864fullsend-ai-coder[bot] wants to merge 2 commits into
Conversation
… agent Add a new review dimension to the correctness agent specification in the code-review problem document. When a diff introduces manual string parsing for a structured format (indexOf, split, substring chains), the correctness agent should check whether the project's dependencies export a dedicated parsing utility and flag reimplementations that miss edge cases the utility handles. Motivated by rhdh-plugins PR fullsend-ai#3956 where manual indexOf(':') parsing of a Backstage location ref missed edge cases that parseLocationRef handles (trimming, error cases). A human reviewer caught this; the agent did not. Note: pre-commit could not run in sandbox (network restriction). Closes #834
|
🤖 Finished Review · ✅ Success · Started 9:44 AM UTC · Completed 9:55 AM UTC |
ReviewFindingsLow
Previous runReviewFindingsLow
Labels: PR is a pure documentation change to a problem document |
|
/fs-fix |
|
🤖 Finished Fix · ✅ Success · Started 10:31 AM UTC · Completed 10:36 AM UTC |
Break the library-utility reimplementation bullet into a concise directive with nested sub-items for the detailed criteria, improving readability and matching the list style of adjacent entries. Addresses review feedback on #864
🔧 Fix agent — iteration 1 (human-triggered)Addressed 1 review finding. Split the long library-utility reimplementation bullet (line 67) into a short directive with nested sub-items, as suggested by the reviewer. Fixed (1):
Tests: passedNext steps:
|
|
🤖 Finished Review · ✅ Success · Started 10:40 AM UTC · Completed 10:50 AM UTC |
| - If test files covering the changed code were recently modified, did those modifications weaken the test's ability to catch regressions? | ||
| - Split-payload attacks: a production change paired with a test modification that masks the real behavior. (See [security-threat-model.md](security-threat-model.md#cross-cutting-attack-pattern-temporal-split-payload-test-poisoning) for why this matters.) | ||
| - Coverage reduction: does the change remove or weaken existing test coverage? | ||
| - Library-utility reimplementation: manual string parsing or format manipulation that reimplements a utility available in the project's declared dependencies. |
There was a problem hiding this comment.
[low] bullet-list-structure
The new bullet item uses a multi-level indented structure (parent bullet with three sub-bullets) that is inconsistent with the existing flat bullet list in the Correctness agent section. All six agent sections in the document use flat single-level bullets exclusively. The closest analog is the Security agent's Non-rendering Unicode characters bullet, which packs comparable elaboration into a single flat bullet using inline bold text and an em-dash rather than nested sub-items.
Suggested fix: Flatten the bullet structure to match existing patterns — either incorporate all information into a single inline bullet (following the Security agent's Unicode bullet pattern) or use multiple top-level bullets at the same indentation level.
|
This pull request has been automatically marked as stale because it has not had any activity in the last month. It will be closed in 2 weeks if no further activity occurs. Remove the |
Summary
Adds a library-utility reimplementation check to the correctness agent's review dimensions in the code-review problem document. This new dimension instructs the correctness agent to flag manual string parsing that reimplements a utility available in the project's declared dependencies.
Related Issue
Closes #834
Changes
docs/problems/code-review.mdindexOf,split,substring,startsWithchains) where a library utility exists (e.g.,parseLocationRef,semver.parse,URLconstructor)Testing
make lintcould not run (sandbox network restriction); post-script runs authoritative pre-commitChecklist
!for breaking changes)Closes #834
Post-script verification
agent/834-library-utility-reimplement-check)c887fc47c59d8b87b5282ca44044d2933d30df41..HEAD)