Repository navigation
fix(lint): the helper guard recognizes aliased asyncio launches (#5023) - #5071
Merged
Merged
Conversation
Co-authored-by: Copilot App <[email protected]> Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: Copilot App <[email protected]> Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Daniel Meppiel (danielmeppiel)
requested a review
from Sergio Sisternes (sergio-sisternes-epam)
as a code owner
November 23, 2026 16:15
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
There are no active review issues for the architecture-guard update covering asyncio import aliases.
No open issues 🎉
What changed in this PR
Closes the asyncio-alias gap in the trusted-executable architecture guard for #5023, building on the earlier helper-launch hardening. Production executable resolution and call sites remain unchanged.
Changes:
- Recognizes both aliased
asyncioimports and aliasedcreate_subprocess_execimports. - Adds two mutation cases covering literal program launches through those aliases.
| File | Description |
|---|---|
tests/integration/test_architecture_owner_rule_mutations.py |
Adds regression cases for both asyncio import-alias forms. |
scripts/architecture_linter/checks/transport_external_executables.py |
Tracks asyncio aliases and recognizes their subprocess launch calls. |
Review effort: Balanced
Merged
5 of 9 tasks
Co-authored-by: Copilot App <[email protected]> Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: Copilot App <[email protected]> Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: Copilot App <[email protected]> Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Daniel Meppiel (danielmeppiel)
added a commit
that referenced
this pull request
Nov 23, 2026
…le corpus Regenerated against main (#4877, #4727, #5071); the #4981 named removals match the 123 bin cells the filter demotes (two new project gate-matrix cells: lock and mcp-install under a denied dependency). Co-authored-by: Copilot App <[email protected]> Co-authored-by: copilot-swe-agent[bot] <[email protected]>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
Stacked on #5068 (base:
guard-partial-launchers); retarget once #5068 and #5006 land.The
transport-platform-external-executable-ownerguard now resolves asyncio import aliases:from asyncio import create_subprocess_exec as <name>andimport asyncio as <name>. A launch through either spelling with a literal program name is flagged likeasyncio.create_subprocess_exec.Issue and approved scope
Issue: Fixes #5023
Human scope-approval comment: follow-up filed by the program desk from the #5006 review; scope as stated in the issue.
Does this PR complete the issue, or what remains? It completes the issue.
Type of change
Testing
Red first: the first commit adds two MutationCases (a from-imported asyncio alias and an aliased asyncio module), which the guard missed before the fix. All 53 external-executable mutation cases pass, and the architecture boundary lint is clean. No production call site changes.
Changelog
Spec conformance (OpenAPM v0.1)