gate GET_BODY_LOCATION_AND_STATUS on cmd_status - #61
Conversation
one more sibling of the getClock/getDataRange/getAlarmTime/selectWrist status-gate pattern — a failed outer reply's body bytes are stale and would mint a confident (and wrong) body-location reading. this one fell through the cracks tonight when its plan-stage agent's structured output kept failing schema validation and never reached implementation.
There was a problem hiding this comment.
Sorry @abdulsaheel, you've used your own review budget of 250,000 diff characters for the last 7 days.
You can request another review in 6 days and 17 hours by commenting @sourcery-ai review. Upgrade to get a review now.
|
Note Currently processing new changes in this PR. This may take a few minutes, please wait... ⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Advanced Run ID: 📒 Files selected for processing (2)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Reviewer's GuideUpdates GET_BODY_LOCATION_AND_STATUS parsing to ignore stale payload bytes on failed Gen5 outer replies while preserving Gen4 behavior, with tests covering failure, success, and cross-generation compatibility. Flow diagram for status-gated body location parsingflowchart TD
A[GET_BODY_LOCATION_AND_STATUS response] --> B{Gen5 and outer status is not 1?}
B -->|Yes| C[Skip body_location_status]
B -->|No| D[Decode body_location_status]
D --> E[Store revision, locationRaw, confidence, status]
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
same status-gate pattern as getClock/getDataRange/getAlarmTime/selectWrist fixed tonight — a failed outer reply's body bytes are stale, previously unconditionally decoded as a confident (and possibly wrong) body-location reading.
this one was confirmed real by fresh adversarial verification during tonight's bug-hunt cycle but its plan-stage agent kept failing structured-output schema validation and never reached implementation — found and finished manually.
Summary by Sourcery
Gate Gen5 body-location status decoding on successful outer command responses while preserving existing behavior for Gen4.
Bug Fixes:
Tests:
Summary by CodeRabbit
Bug Fixes
Tests