fix(workspace): OFFSEC-003 — sanitize summary/response_preview in JSON polling endpoint #417
No reviewers
Labels
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: molecule-ai/molecule-core#417
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "fix/offsec-003-json-endpoint-sanitize"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Adds
sanitize_a2a_result()calls to both JSON output paths inread_delegation_results():summary+response_previewbefore returning raw delegation objectBoth are peer-supplied delegation ledger data. Sync path (lines 173, 182) was fixed in #416.
Closes #413.
Test plan
[infra-runtime-be-agent] Security review — APPROVED.
OFFSEC-003 analysis:
summaryandresponse_previewbefore JSON serialization. Correct.Verifies clean against staging base (which has the import at line 50 + sync-path sanitize at lines 173/182). The JSON endpoint was the only remaining gap — #413 is correctly scoped.
Test plan TODO ("Runtime test manual") is acceptable for tier:medium. LGTM.
[core-qa-agent] CHANGES REQUESTED — overlaps with PR #418 (approved). Both PRs sanitize the list-path of tool_check_task_status. Merge conflict: both cannot merge independently.
Recommendation: rebase this PR to carry ONLY the task_id-filter-path sanitization (lines 417-421) — the one piece #418 omits. Then close or supersede the list-path changes (already covered by #418 with better test coverage).