feat: validate feeder responses on the client layer#3749
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #3749 +/- ##
==========================================
+ Coverage 75.16% 75.22% +0.05%
==========================================
Files 427 433 +6
Lines 38470 38558 +88
==========================================
+ Hits 28915 29004 +89
Misses 7547 7547
+ Partials 2008 2007 -1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
8843d11 to
a0ee499
Compare
dfe0f60 to
3529c6f
Compare
|
Claude finished @thiagodeev's task in 2m 54s —— View job PR Review: validate feeder responses on the client layerNice direction — validating gateway responses at the client boundary and dropping the duplicated checks in 🔴 Blocker
🟡 Important
⚪ Nits
Notes (non-blocking)
|
|
Claude finished @thiagodeev's task in 1m 31s —— View job PR Review: validate feeder responses on the client layerRe-reviewed after commit What got addressed since the last review ✅
🔴 Blocker — still open
⚪ Nits (carried over, non-blocking)
The boundary-validation direction and the |
rodrodros
left a comment
There was a problem hiding this comment.
PR is still looks half baked..., I wouldn't consider it ready for review
2a6342d to
71fbb24
Compare
|
Claude finished @thiagodeev's task in 3m 16s —— View job PR Review: validate feeder responses on the client layerRe-reviewed after the latest commits ( ✅ Resolved since earlier reviews
⚪ Nits (non-blocking, carried over)
Note on the
|
|
Claude finished @thiagodeev's task in 2m 37s —— View job PR Review: validate feeder responses on the client layerRe-reviewed after the latest commits ( ✅ What the new commits do well
⚪ Nits (non-blocking)
No blockers. The earlier candidate-tx concern is resolved (candidate txs are no longer part of the response, per @rodrodros) and the test-coverage gap is closed. Once the doc-comment nit is settled this looks ready. |
|
Claude finished @thiagodeev's task in 1m 54s —— View job PR Review: validate feeder responses on the client layerRe-reviewed after the latest commit ( ✅ Resolved this round
Status of earlier feedback
⚪ Minor (non-blocking)
No blockers. All previously raised items are addressed or accepted; this looks ready to merge. |
|
Claude finished @thiagodeev's task in 3m 26s —— View job PR Review — re-review after latest commits (
|
…ey in PublicKey method
…, new error message for invalid responses
…ing in validation
…tion and request handling
…modify related methods
…teway URLs in command execution
…URL for improved URL handling
de3c534 to
030c4cf
Compare
|
Claude finished @thiagodeev's task in 7m 12s —— View job PR Review: validate feeder responses on the client layerRe-reviewed after the latest commits ( ✅ Resolved this round
Answers to the open questions
⚪ Nits (non-blocking)
No blockers — the boundary-validation direction and |
…r feedback on URL issues
|
Claude finished @thiagodeev's task in 3m 11s —— View job PR Review: validate feeder responses on the client layerRe-reviewed after the latest commits ( ✅ Resolved this round
Verification of the wiring
⚪ Carried over (accepted, no change needed)
No blockers. All previously raised items are addressed or tracked as follow-ups (#3761) — this looks ready to merge. |
This PR makes the feeder client validate gateway responses before handing them off, so malformed or incomplete data from the gateway is caught at the boundary and reported as an error instead of slipping through and causing failures later.
Validation currently covers the pre_confirmed block and delta-update responses, checking that the fields the rest of the system relies on are present and consistent; other response types are left unvalidated for now and will be addressed in follow-up PRs. Because these guarantees are now enforced at the boundary, duplicate checks downstream in the sn2core adapter are no longer needed and have been removed.