Fix scoped Python imports, worker supervision and daemon CI for v0.41.45 #508
No reviewers
Labels
No labels
code-review
correctness
dos
performance
security
severity/high
severity/low
severity/medium
tech-debt
Kind/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
h-dv/code-index!508
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/production-batch-045"
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?
Function-local Python imports could resolve to an unrelated same-file function. Resolve each call through its visible, independently proven import; preserve outside-scope calls and refuse missing or ambiguous imports, reassignment, and calls before the import. Reindexing follows provider and import edits. Re-exports, multiline imports and one-line functions retain their own import proof.
Also included in this qualification batch:
File::createexecutable writers in the fork-lock gate. Closes #271.The Python change addresses the function-local import subcase of #300; remaining subcases and the remaining #305 work stay open.
Validation: all required workflows passed on final head
3842ab6d5e194b9eefb402e81e567c9c62fa5d66: Linux CI, native Windows, package scope, and C#/timeline compatibility. Windows passed 5,178 ordinary and 43 serial tests, installer end-to-end checks, and debug/release worker smoke. Daemon transport passed 996 ordinary and 11 serial tests; Linux main, doc tests and tier-1 corpus are green. Package-scope jobs do not claim unchanged packages were rebuilt.Local controls also pass: reproduced failing Python baseline, shipped Python fixtures, negative/incremental controls, capability/generation isolation, scoped/cold equivalence, executable-writer mutation, worker kill-cost tests and 79 CI routing/cadence/disk/command-line checks.
Pinned-corpus audit: Flask is unchanged. Django retains all 483,197 reference sites; independent AST review verifies 11 new correct bindings, one same-file target correction, and two external Selenium phantom removals. Net resolved references and symbol edges each increase by 9. Only the six affected Django baseline values move; activation and the unmeasured Rust corpus remain unchanged. See
_prdoc/records/v0.41.45-python-local-imports.md.The 79 local CI routing, cadence, disk and Windows command-line checks pass. The replacement download matches the original nextest 0.9.144 SHA-256 pin. An isolated native Windows probe passed the exact bootstrap in seven seconds; the full Windows run also passed bootstrap. The diagnostic workflow is confined to a temporary branch and is absent from this PR.