Repository navigation
Open
Labels
enhancementNew feature, sensor, or structural signaturepriority: lowUI tweaks, documentation, and minor optimizationspythonPython-specific runtime or environment optimizationsquestionFurther information or community discussion requestedscope:infraCI, tooling, churn/factory, docs infrastructure
Milestone
Description
Why
- Likely a fleet-wide speedup. This shifts the calculus from housekeeping to a perf lever. CPython 3.11 is ~1.25× faster on average for pure-Python code (10–60%, What's New in Python 3.11). The dominant remaining Optical Detector cost is pure-Python per-match work in the slicers (perf: optimize the Mode B brace slicer itself — measured as pure slicing cost, NOT tiktoken (~20% of Optical_Detector) #3174 profiled
Cartography_Mode_B_Braces: diffuse per-match Python, not the regex engine). That rule is the ci: implement cross-platform matrix testing #1 CPU rule in every C-family language in the fleet. Regex fixes like perf(#3182): linear csharp func_start Branch C lookahead (roslyn Optical −82%) #3317 are language-specific (roslyn/C# only; curl measured flat, 4.94s → 4.96s). The interpreter is the one lever that should move every language at once. Caveat:rematching itself is C and gains little, so regex-bound phases (Security Lens, rule sweeps) will gain less than the slicers. Measure, don't assume (see checklist). - Unblocks perf: csharp func_start exponential backtracking on adjacent [...] (still fuses a roslyn file → 0 functions) #3320. Python 3.11 added atomic groups
(?>...)and possessive quantifiers (*+,++) tore. These are the clean fix for the csharpfunc_startbacktracking that still pushes a roslyn file past the 60s fuse (0 functions extracted). On 3.9, every fix option we found changes which strings the regex accepts in edge cases. With atomic groups the change is minimal and the reasoning stays local to the regex. The same tool is likely useful on other ReDoS-armored rules across the language standards. - Support windows. Python 3.9 reached end-of-life in October 2025, and 3.10 reaches it in October 2026.
Scope
-
pyproject.toml:requires-python = ">=3.11", and update classifiers if any version classifiers are added (Docs: state the Python 3.11 floor where 3.10 was still named (Part of #3322) #6341) - CI: drop 3.9/3.10 from the full-suite matrices (ubuntu/windows/macos) and any
python-version: "3.9"/"3.10"pins; keep 3.11 + 3.12 (+3.13 if green) (Lockfiles: compile from a Python 3.11 floor (Part of #3322) #6530) - Tooling targets: ruff
target-version, mypypython_version, if pinned - Docs: README / install docs / CONTRIBUTING minimum-version mentions
- Optional cleanups now allowed: drop
sys.version_infoshims andtyping_extensionsfallbacks for 3.9/3.10, and usetomllibif TOML parsing exists - CHANGELOG: call it out as a breaking support change in the release notes
- Perf proof: before/after
phase_ab.py(curl + all_language_repo + a C#/TS-heavy repo), same engine commit on 3.9 vs 3.11, with A-vs-A control. Report the per-phase deltas (expect slicers > regex sweeps) in the release notes
Timeline
Community input is being collected in a Q&A discussion (linked below). If there are no strong objections, the plan is to switch in a few weeks.
Non-goals
Adopting 3.11+ syntax wholesale. Only use new features where they pay off (atomic regex groups first).
🤖 Generated with Claude Code
Metadata
Metadata
Assignees
Labels
enhancementNew feature, sensor, or structural signaturepriority: lowUI tweaks, documentation, and minor optimizationspythonPython-specific runtime or environment optimizationsquestionFurther information or community discussion requestedscope:infraCI, tooling, churn/factory, docs infrastructure
Activity
squid-protocol commentedon Sep 23, 2026
Community input: Q&A discussion #3323 ("Do you care if GitGalaxy moves its minimum Python from 3.9 to 3.11?"). Plan: switch in a few weeks if no strong objections.
Drop workflow changes from the 3.11 floor PR; they need the owner (Pa…
Raise minimum Python to 3.11 (Part of #3322) (#5364)
CI: drop the Python 3.10 legs (Part of #3322) (#5371)
squid-protocol commentedon Oct 23, 2026
Churn run
3322-20261023T0122Z(host nyx) ended without a PR. min Python 3.11 already on main (#5364, #5371); workflows checked, only comments mention 3.10. Checklist [c:f1fc0f4d] done, no PR.squid-protocol commentedon Oct 23, 2026
Churn run
3322-20261023T0202Z(host melek) ended without a PR. Checklist item f1fc0f4d already on main (requires-python>=3.11, PR #5364/#5371); no PR. Siblings left on #3322: CHANGELOG note, phase_ab perf proof, shim cleanup.1 remaining item
Docs: state the Python 3.11 floor where 3.10 was still named (Part of #…
squid-protocol commentedon Oct 24, 2026
Churn run
3322-20261024T1606Z(host nyx) ended without a PR. PR #6491 closed; main already carried the 3.11 floor change, empty diff. #3322 item [c:4066b14a] already done.Lockfiles: compile from a Python 3.11 floor (Part of #3322) (#6530)
Python floor: pin mypy python_version 3.11, fix stale 3.10 comments, …
squid-protocol commentedon Oct 25, 2026
#6621 merged: a partial slice of [c:e58bc9e1] "Tooling targets: ruff
target-version, mypypython_version, if pinned" (promoter-bot)