Skip to content

fix(ci): unbreak main — black 26.x reformat + canonical namespace markers#1225

Merged
neuron7xLab merged 2 commits into
mainfrom
fix/main-ci-black-namespace
Jun 18, 2026
Merged

fix(ci): unbreak main — black 26.x reformat + canonical namespace markers#1225
neuron7xLab merged 2 commits into
mainfrom
fix/main-ci-black-namespace

Conversation

@neuron7xLab

Copy link
Copy Markdown
Owner

Why

main HEAD was red on two checks (run 27783397409):

  • research-integrity-gateblack --check would reformat tools/physics_score.py
  • Release coverage gate (90%)test_namespace_integrity_has_no_violations failed (a real test failure, not a coverage drop)

Root cause

Recently-merged dependabot bumps raised CI to black 26.x / ruff 0.15 / mypy 2.1 / pytest 9. tools/physics_score.py (merged via #1220 under old black) is reformatted by new black — tool-version drift. The new canonical packages src/geosync/research/{,transformer/} (added by #1204) lacked the required __CANONICAL__ = True marker enforced by the architecture guard.

Fix

  • black 26.x reformat tools/physics_score.py (long-tuple wrap; semantically identical)
  • add __CANONICAL__ = True to the two new __init__.py

Verified locally with exact CI toolchain

black --check (research-integrity paths) 258 unchanged; ruff clean; mypy --strict clean; namespace test 0 violations; commit-acceptor needs no new acceptor (edits to already-accepted files).

Known latent debt (deliberately separate)

The black bump leaves 6 more reformat-pending files, 2 in protected paths (execution/, core/). They fail no current gate and warrant a dedicated formatting PR with protected-path review — not a hotfix.

claim_status: measured

🤖 Generated with Claude Code

@neuron7xLab neuron7xLab enabled auto-merge (squash) June 18, 2026 20:32
…ce-foundation.yml

#1210 added this workflow without a top-level permissions block (repo-policy
'Validate workflow policy invariants' fails repo-wide) and with unpinned @v6
actions. Add least-privilege 'permissions: contents: read' and pin checkout/
setup-python to repo-canonical SHAs.
@neuron7xLab neuron7xLab merged commit d91c3ce into main Jun 18, 2026
23 of 27 checks passed
@neuron7xLab neuron7xLab deleted the fix/main-ci-black-namespace branch June 18, 2026 20:42
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.

1 participant