Files
Paperclip Deployment Engineer d5bf37d8ed fix: harden 402 guard recursion depth and make SDK API drift noisy
- Bound findStringField recursion to maxDepth=10 so adversarially deep
  402 bodies cannot cause runaway recursion. Real 402 bodies nest 3-4
  levels; 10 is generous while bounding the worst case.
- Add runtime shape checks with logger.warn() to all four monkey-patches
  (_handleErrorResponse, createProviderToken, topUp) so SDK API drift is
  noisy instead of silent. The topUp patch previously called .bind()
  without verifying the method exists — a real TypeError on SDK upgrade.
- Thread logger into installProvider402BodyCapture for the new warning.
- Tests: depth-limit edge cases (4-level match + 50-level no-crash) and
  three API-drift detection tests verifying warnings fire when SDK
  methods are missing.
2026-08-07 22:06:33 +00:00
..
2026-07-11 16:33:28 +02:00
2026-07-15 15:56:33 +00:00