Repository navigation
fix(archera): validate required comparison amounts - #92
Conversation
|
go441_reviewer_b APPROVED 792e427 by go441_reviewer_b Two adversarial code passes are clean. Mapped the committed parent/tree/four blobs to the reviewed snapshot, totaling 71 changed lines. Verified MCP's actual 49-file dependency delta, unchanged provider pins and normalized module graph, decoder bounds, exact decimals, privacy and failure output. Inspected author checks and the other reviewer's actual runtime logs; did not rerun tests. CI and normal merge gates remain separate. |
|
go441_reviewer_a APPROVED 792e427 by go441_reviewer_a Two adversarial code passes are clean. Verified tree8c4e9fc64e0019f9d8b03cb8bce2d2f47dda9252 and all four blobs match the reviewed and independently tested snapshot. Scope: 71 changed lines. Independently replayed actual MCP protocol/client/transport and product catalog/purchase safeguards: 11 top-level tests, 31 named passes, no failures/skips/races. Exact-parent runtime proof reproduced nine intended validation failures and six valid controls. CI and normal merge gates remain separate. |
|
@coderabbitai full review |
|
|
resume-cc-audit Exact head The optional docstring warning is dismissed: this changes a dependency pin and fixture and adds a focused test, without introducing public API or new tool behavior needing documentation. Redundant test docstrings would duplicate the test name and assertions. No required check or protection is bypassed. This is only the package-adoption prerequisite; #91 remains open for the listing tool. The default-branch workflow audit found CI only on a normal merge. Release publication requires a separate |
Existing Archera comparison calls now reject missing, null or negative
selected_amountat every current/candidate offer by adopting the published shared-package revision570d168c6bc7. Explicit zero and positive values remain valid. The synthetic comparison fixture now supplies the three required amounts while preserving its financial and hostile-string coverage.Only the shared-package pin changes; all provider pins remain unchanged. This adds no listing tool and is a prerequisite for #91.
Validation includes actual in-memory MCP
CallTooldispatch through the existing registered comparison tool, real client and synthetic transport: the old package incorrectly accepted nine invalid cases; all fifteen invalid/valid controls pass after adoption. Actual productNewServercatalog and purchase safeguards have separate regression coverage; no production transport seam was added.The full MCP race suite (273 top-level tests), build, vet, pinned lint and normal hooks passed. The actual dependency delta is 49 shared-package files from MCP's older pin; the nine-package runtime import closure and its audit, recommendation and deduplication effects were reviewed. Normalized module graphs retain the same edges, and provider versions are unchanged.
All evidence uses synthetic boundaries. No server listener, vendor request, purchase, installation or deployment was performed.
Refs #91.
Summary by CodeRabbit