Skip to content

Adopt conventional github_repo_auditor package namespace - #226

Merged
saagpatel merged 2 commits into
mainfrom
codex/package-namespace-migration
Aug 11, 2026
Merged

Adopt conventional github_repo_auditor package namespace#226
saagpatel merged 2 commits into
mainfrom
codex/package-namespace-migration

Conversation

@saagpatel

Copy link
Copy Markdown
Owner

Summary

  • migrate the import and module namespace from the top-level package named src to github_repo_auditor
  • update CLI entry points, internal imports, CI, scripts, docs, tests, and downstream-facing command examples
  • package the Excel template and web assets inside the installable package
  • add a fail-closed mutation-score gate with an 85% floor

Why

The package name src collides with mutmut 3.x trampoline behavior. Moving to a conventional package namespace lets the project use upstream mutmut 3.6.0 directly; no custom fork or dependency patch is retained.

Verification

  • full pytest: 3,510 passed, 2 skipped
  • Ruff: clean
  • CI mypy seam: 15 source files clean
  • full mutation release gate: 538 killed, 89 survived, 85.8% score against an 85% threshold
  • clean wheel install: imports and three module entry points start; packaged web assets and Excel template are present
  • focused restart-packet tests after portable $HOME command cleanup: 5 passed
  • Codex workflow smoke evaluation: 5/5
  • git diff --check and added-line sensitive-pattern scan: clean

Runtime boundary

This PR changes source and packaging only. The active launchd/runtime checkout and operator generation remain on the legacy namespace until this source change is merged and the existing untouched natural-scheduler evidence chain permits a separately verified rollout. No scheduler, service, or runtime state was changed here.

@@ -8,14 +8,14 @@

import pytest

import src.portfolio_repository_state as repository_state
from src.portfolio_repository_state import (
import github_repo_auditor.portfolio_repository_state as repository_state
@@ -682,7 +682,7 @@
portfolio_catalog: Path,
legacy_registry: Path,
) -> None:
import src.portfolio_truth_publish as publish_mod
import github_repo_auditor.portfolio_truth_publish as publish_mod
@@ -713,7 +713,7 @@
portfolio_catalog: Path,
legacy_registry: Path,
) -> None:
import src.portfolio_truth_publish as publish_mod
import github_repo_auditor.portfolio_truth_publish as publish_mod
@@ -750,7 +750,7 @@
portfolio_catalog: Path,
legacy_registry: Path,
) -> None:
import src.portfolio_truth_publish as publish_mod
import github_repo_auditor.portfolio_truth_publish as publish_mod
@@ -32,7 +32,7 @@


def test_analyzer_classes_do_not_declare_dead_weight_attributes() -> None:
import src.analyzers as analyzers_package
import github_repo_auditor.analyzers as analyzers_package

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 566867f59b

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread scripts/check_mutation_score.py Outdated
@saagpatel
saagpatel merged commit 6106e57 into main Aug 11, 2026
4 checks passed
@saagpatel
saagpatel deleted the codex/package-namespace-migration branch August 11, 2026 18:58
saagpatel added a commit that referenced this pull request Aug 11, 2026
main adopted the github_repo_auditor package namespace (#226), which moved every
module under src/ and collided with the redaction in three files. Resolved by
taking main's rename and keeping the redaction on the paths it did not cover:
main had already switched the workspace-root argument to "$HOME/Projects" but
left the two git -C paths and the cd line absolute.

Verified on the merged tree: 3,313 passed, 27 failed, 8 skipped. The same 27
fail on origin/main by itself, with an identical failure set, so they arrived
with the rename and are not from this branch. No /Users path remains.
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.

2 participants