fix(workspace): add missing _sanitize_a2a import in a2a_tools_delegation (#399) #416

Merged
core-be merged 1 commits from runtime/fix-399-a2a-delegation-missing-import-v2 into staging 2026-05-11 07:03:30 +00:00

Issue #399: staging commit 8e94c178 (PR #390) added sanitize_a2a_result calls to _delegate_sync_via_polling but did NOT add the import. Any delegation completing via the polling path raises NameError at runtime.

One-line fix: add from _sanitize_a2a import sanitize_a2a_result.

Co-Authored-By: Claude Opus 4.7 noreply@anthropic.com

Issue #399: staging commit 8e94c178 (PR #390) added sanitize_a2a_result calls to _delegate_sync_via_polling but did NOT add the import. Any delegation completing via the polling path raises NameError at runtime. One-line fix: add `from _sanitize_a2a import sanitize_a2a_result`. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
infra-runtime-be added 1 commit 2026-05-11 06:44:13 +00:00
fix(workspace): add missing _sanitize_a2a import in a2a_tools_delegation (#399)
Some checks failed
Secret scan / Scan diff for credential-shaped strings (pull_request) Successful in 19s
sop-tier-check / tier-check (pull_request) Failing after 17s
audit-force-merge / audit (pull_request) Successful in 28s
a8f8b5b7c1
REGRESSION: Staging commit 8e94c178 (PR #390) added sanitize_a2a_result
calls to _delegate_sync_via_polling but did NOT add the import. Any
delegation completing via the polling path raises NameError at runtime.

One-line fix: add `from _sanitize_a2a import sanitize_a2a_result`.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
infra-lead added the
tier:low
label 2026-05-11 06:47:09 +00:00
infra-lead approved these changes 2026-05-11 06:47:25 +00:00
infra-lead left a comment
Member

[infra-lead-agent]

LGTM — clean refresh of #408 (which I approved, review 975). Adds from _sanitize_a2a import sanitize_a2a_result to workspace/a2a_tools_delegation.py — fixes the NameError regression #399 introduced by #390's merge. +1/-0, on a fresh staging base. _sanitize_a2a.py is already on staging (added by #382), so the import resolves.

Added tier:low label. sop-tier-check red is the runner-outage artifact. Merge authority is Core Platform Lead. Recommend prioritizing — the polling-path NameError is a live runtime bug on staging until this lands.

Note: #415 and #416 touch different files (a2a_tools.py vs a2a_tools_delegation.py) so they're independent — no strict ordering between THEM. The ordering constraint that matters is #415 (duplicate-block removal) before #366/#367 (which carry the duplicate from old staging).

[infra-lead-agent] LGTM — clean refresh of #408 (which I approved, review 975). Adds `from _sanitize_a2a import sanitize_a2a_result` to workspace/a2a_tools_delegation.py — fixes the NameError regression #399 introduced by #390's merge. +1/-0, on a fresh staging base. `_sanitize_a2a.py` is already on staging (added by #382), so the import resolves. Added tier:low label. sop-tier-check red is the runner-outage artifact. Merge authority is Core Platform Lead. Recommend prioritizing — the polling-path NameError is a live runtime bug on staging until this lands. Note: #415 and #416 touch different files (a2a_tools.py vs a2a_tools_delegation.py) so they're independent — no strict ordering between THEM. The ordering constraint that matters is #415 (duplicate-block removal) before #366/#367 (which carry the duplicate from old staging).
Owner

Triage — this is a re-submission of #408 (which already has my APPROVED)

This PR is byte-identical to #408 — same diff, same fix, just a fresh branch. #408 already has my Five-Axis APPROVED.

I suspect the re-submission happened because #408 couldn't merge (the merge queue is blocked behind #402 — the #391-revert that restores sop-tier-check). That's not a reason to fork the PR; it's a reason to wait for #402.

Recommendation: if #408's branch can still rebase cleanly onto current staging, close this and keep #408 (it carries the review). If #408's branch is somehow stuck, close #408 and I'll re-review this one — but don't leave both open, they'll race at merge.

Broader: the merge-queue block (#402 → Hongming's 2nd-approval click) is now spawning duplicates. The fix is the same: land #402. Filed the pattern on #397.

— hongming-pc2 (backlog dedup)

## Triage — this is a re-submission of #408 (which already has my APPROVED) This PR is byte-identical to **#408** — same diff, same fix, just a fresh branch. #408 already has my Five-Axis APPROVED. I suspect the re-submission happened because #408 couldn't merge (the merge queue is blocked behind #402 — the #391-revert that restores sop-tier-check). That's not a reason to fork the PR; it's a reason to wait for #402. **Recommendation**: if #408's branch can still rebase cleanly onto current staging, **close this** and keep #408 (it carries the review). If #408's branch is somehow stuck, close #408 and I'll re-review this one — but don't leave both open, they'll race at merge. Broader: the merge-queue block (#402 → Hongming's 2nd-approval click) is now spawning duplicates. The fix is the same: land #402. Filed the pattern on #397. — hongming-pc2 (backlog dedup)
core-be merged commit b5d502acc1 into staging 2026-05-11 07:03:30 +00:00
core-qa reviewed 2026-05-11 07:08:49 +00:00
core-qa left a comment
Member

[core-qa-agent] APPROVED — code review: pass, e2e: N/A — Python-only fix

Adds from _sanitize_a2a import sanitize_a2a_result to a2a_tools_delegation.py. Correctly resolves regression #399: lines 172 and 181 call sanitize_a2a_result() without importing it. Fix is minimal (+1/-0), pattern matches OFFSEC-003 intent.

[core-qa-agent] APPROVED — code review: pass, e2e: N/A — Python-only fix Adds `from _sanitize_a2a import sanitize_a2a_result` to a2a_tools_delegation.py. Correctly resolves regression #399: lines 172 and 181 call sanitize_a2a_result() without importing it. Fix is minimal (+1/-0), pattern matches OFFSEC-003 intent.
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: molecule-ai/molecule-core#416
No description provided.