-
Notifications
You must be signed in to change notification settings - Fork 17
fix: parse Joy Trust API response correctly #18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
MervinPraison
merged 11 commits into
MervinPraison:main
from
tlkc888-Jenkins:fix/joy-trust-response-parsing
Apr 16, 2026
Merged
Changes from 9 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
feb0804
fix: parse Joy Trust API response correctly
tlkc888-Jenkins 6cac759
fix: remove fallback-to-first-result (security risk)
tlkc888-Jenkins 81f0288
fix: import time at top level and normalize response schema
tlkc888-Jenkins 1ea7ca0
Address code review feedback
tlkc888-Jenkins e4f4946
Remove redundant time import from try block
tlkc888-Jenkins 979b3e2
Handle null trust_score from API
tlkc888-Jenkins 62c42ae
Handle null agents array from API
tlkc888-Jenkins f4f82b1
Security: Fail closed on all error paths
tlkc888-Jenkins 2f9755a
Fix misleading fallback_used flag in error handlers
tlkc888-Jenkins e1cb284
Handle null name and string trust_score edge cases
tlkc888-Jenkins 098d2e9
fix: Change default min_score from 3.0 to 1.5
tlkc888-Jenkins File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The structure of the dictionary returned here when an agent is not found is inconsistent with the structure of the successful response. This response includes legacy fields
reputationandrecommendations, while the successful response (lines 192-205) includes new fields likeagent_id,vouch_count, andcapabilities. To ensure consumers of this function receive a consistent data structure, this error response should be updated to match the new format, using default values for the fields.