Skip to content

fix(python): qualify security tooling on CPython 3.15.1 - #461

Merged
edithatogo merged 4 commits into
masterfrom
fix/python315-security-dependencies-20261115
Nov 14, 2026
Merged

edithatogo merged 4 commits into
masterfrom
fix/python315-security-dependencies-20261115

Conversation

@edithatogo

@edithatogo edithatogo commented Nov 14, 2026 •

Copy link
Copy Markdown
Owner

Problem

Merged #454 moved the security workflow to mandatory CPython 3.15.1 while its final head a0b8e4a retained five failed jobs in run 43646518760. pip-api 0.0.34 crashes on removed sre_constants; released Atheris 3.1.0 has no cp315 wheel or source distribution. The two P1 review findings remain open.

Bounded repair

  • Require released pip-api>=0.0.35; the regenerated lock changes only that package from 0.0.34 to 0.0.35.
  • Add executable audit startup and pinned/hash-preserving requirements-parser regressions.
  • Publish the Atheris workflow contracts first, then install and qualify the immutable source candidate from closed, unmerged google/atheris#115, commit d82f7720122e2a07618e337e364426327e506f3f.
  • Audit and install the same canonical source requirement; require upstream opcode and instrumentation suites plus bytes/string/Unicode crash-discovery cases in fresh processes before all four existing bounded repository targets.

The candidate is not an official Python 3.15 release. Compilation alone does not qualify it. Existing audit, runtime, coverage, strict checking, fuzz bounds, permissions and action pins remain in force. No source adapters, receipts, local request/CLI functionality or other owner branches are changed.

Executed evidence and pending work

  • Local CPython 3.15.1 verification passed.
  • Audit RED: 2 failed in 0.81 s with pip-api 0.0.34, both on missing sre_constants.
  • Audit GREEN: 2 passed in 0.63 s after only the pip-api upgrade. Both runs recorded zero external Python network attempts.
  • Published RED commit 8696ec1 has tree 564b46d29b756da7f989df8f2bf855a17f792eab, identical to the executed local RED checkpoint.
  • Atheris candidate source built into a cp315 wheel locally; runtime qualification remains unverified. Its upstream build was skipped and provides no support evidence.
  • The local executor became unavailable. The final lint-only test-import adjustment, full advisory scan, new workflow contracts and Atheris execution are being verified in hosted Actions.

Current implementation head: ca22fef73ae5c475539c9a6fa4dd9ff47026a9ad. The new workflow contracts were published first at 1eb63e0, but all hosted jobs remained queued; the superseded run was then cancelled on implementation push. No executed RED result is claimed for those new static contracts; #454's four failed Atheris installations are the observed baseline. This PR stays draft until the implementation's actual audit and runtime qualification results are available.

Integration

Sole integrator: FYI-CLI — Issue fixes and PR merges. Base reconciled immediately before the shared-manifest commit: e34ebaca1722836b5890635fbde5002578fda143. #459 and #460 are already merged with successful ordinary checks; this PR does not duplicate them.

Before merge eligibility: finish qualification, inspect every final-head required and ordinary check (including all five security/fuzz jobs), obtain independent review, and coordinate the exclusive integration window. Dylan's auto-merge instruction remains applicable once those conditions are satisfied. Do not infer readiness from green master push jobs or resolve #454's P1 findings prematurely.

Related to #454 and the #169 integration follow-up. The parent Conductor track remains active; this PR does not close #169 or claim cross-platform, complete migration, translation, legal or calendar approval.

Hosted verification handoff

At the latest inspection on 15 November 2026 (Australia/Brisbane), all 28 currently registered checks on ca22fef were queued. No current-head hosted pass is claimed. Relevant runs:

GitHub reports this draft as conflict-free but blocked, with auto-merge unset. Keep it blocked until the five repaired security/fuzz jobs, all protected and other ordinary checks, and final-head review pass. The sole coordinator owns the final integration window and squash auto-merge. Master was still e34ebaca1722836b5890635fbde5002578fda143 at reconciliation.

Both regressions fail on CPython 3.15.1 with pip-api 0.0.34:
ModuleNotFoundError: No module named 'sre_constants'.

Tree 564b46d matches the executed local RED checkpoint exactly.
Preserve the mandatory runtime and existing security gates.
Require pip-api 0.0.35 and retain all other locked versions. The new
startup and local requirements-parser regressions move from 2 failures
to 2 passes on CPython 3.15.1 without network access. Preserve audit
execution and existing vulnerability, runtime, and quality gates.

Final lint adjustment and complete hosted audit remain to be verified.
…tion

Require one source pin shared by installation and audit, plus opcode,
bytecode instrumentation, and real-engine crash-discovery checks before
existing bounded targets. Publish this regression checkpoint before the
workflow implementation; its hosted RED result is still pending.
Install and audit the same immutable upstream source candidate. Require
opcode consistency, bytecode instrumentation, and bytes/string/Unicode
crash discovery before all four unchanged bounded fuzz targets.

Preserve all audit failures, runtime requirements, quality gates, action
pins, permissions, and time/input/memory limits. This source is from a
closed, unmerged upstream PR; hosted qualification remains mandatory.

The previous workflow-contract checkpoint remained queued. No hosted RED
result is claimed for those new guards; #454's four installation failures
are the executed baseline. The parent Conductor track stays active.

Copy link
Copy Markdown
Owner Author

Verification handoff for FYI-CLI — Issue fixes and PR merges: the complete candidate is ca22fef73ae5c475539c9a6fa4dd9ff47026a9ad, based on master e34ebaca1722836b5890635fbde5002578fda143. Seven changed files; only the existing Python security workflow is modified. #459 and #460 are confirmed ancestors of master and their remote branch refs are absent.

Executed evidence: audit regressions 2 failed → 2 passed on CPython 3.15.1 after only pip-api 0.0.34 → 0.0.35. The Atheris source candidate compiled locally, but runtime qualification and the complete audit have not been verified. At inspection, all 28 registered checks on the new head were queued, including CI run 43651729488 and security/fuzz run 43651729523; the local executor remains unavailable. The superseded workflow-contract run was cancelled before execution and is not counted as RED.

Please use the next exclusive integration window only after final-head opcode/instrumentation/crash-discovery qualification, all four bounded targets, the full dependency audit, every protected/ordinary check and review pass. Both #454 P1 threads remain open. This PR stays draft with auto-merge unset while those results are missing; Dylan's requested squash auto-merge can be enabled by the sole coordinator once eligibility is established. Reconcile and reverify if master advances. No bypass, Python downgrade, skipped target or new suppression is part of this candidate.

@codecov

codecov Bot commented Nov 14, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@edithatogo
edithatogo marked this pull request as ready for review November 14, 2026 23:45

@edithatogo edithatogo left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-14T23:47:07.634627Z ca22fef Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Copy link
Copy Markdown
Owner Author

Live verification update for the sole integration coordinator: ca22fef now has 28 successful checks, one failing ordinary check and optional queued offline AI. All four Atheris jobs passed actual qualification and bounded execution; full Python CI passed 1,571 tests with two unrelated skips. Python Security and Quality stops at Ruff formatting of the new audit regression file, before the complete audit.

I have reproduced that exact formatter failure locally and applied Ruff's one-line string-literal normalization; lint and formatting now pass. I am preparing the narrow corrective commit and Conductor evidence on this same PR. Please retain the merge hold until that final head's full audit, all security/fuzz jobs and review pass. I see the ready-for-review event and will reconcile the live ref immediately before pushing; no independent merge or other-owner ref update is planned.

@edithatogo
edithatogo merged commit 9c2f791 into master Nov 14, 2026
28 of 30 checks passed
@edithatogo
edithatogo deleted the fix/python315-security-dependencies-20261115 branch November 14, 2026 23:49

Copy link
Copy Markdown
Owner Author

Merge reconciliation: GitHub now reports #461 merged at its original ca22fef head before the formatter repair could update the branch; that ref has been deleted. The one remaining Python Security and Quality failure therefore remains in master, and the complete audit was not reached in that run. I will publish the already-tested one-line formatting correction and the executed qualification evidence as a focused follow-up based on the latest master. Existing local commits and earlier worktrees remain preserved. Please keep the follow-up's full audit/security/fuzz and final-head review as acceptance conditions; the ordinary red job is not satisfied by the protected checks alone.

Copy link
Copy Markdown
Owner Author

The focused formatter follow-up is now #462, head 311ed8cf13d13980d0f4913c39c45d5ecce7871a, based on the actual #461 merge. The diff is two files: equivalent string formatting plus Conductor evidence. All nine focused tests and the security workflow's Ruff lint/format selection passed locally on CPython 3.15.1. The local environment became unavailable again during the separate full-audit attempt, so its outcome is unknown. Please wait for the follow-up's actual complete audit, four fuzz jobs, protected/ordinary checks and final review before the coordinator enables squash auto-merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Epic: Guarded remote Alaveteli tools for the MCP server

1 participant