_dependencies tried to dedupe requirements via
getattr(requirement, "canonical_name", requirement.name). packaging's
Requirement has no canonical_name attribute, so this always fell back to the
raw requirement.name (merely casefolded). Two spellings of the same PyPI
project that differ only by '.', '-' or '_' (e.g. Flask.Thing and flask-thing)
were treated as distinct, so both passed the duplicate guard and were handed to
the isolated pip install, defeating the check and allowing conflicting pins.
Use packaging.utils.canonicalize_name, which applies PEP 503 normalization.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Adapt the Phase 1 foundation from PR #1309 and complete scoped API lifecycle, pre-import approval, artifact-bound revocation, recovery, bounded workers and frontend isolation. Keep the stronger ecosystem roadmap explicit in the RFC.
Co-authored-by: XZH <cto@xzh.ai>