Skip to content

pet-2: extract guarded redirect backend#135

Merged
gcomneno merged 1 commit into
mainfrom
feature/issue-134-guarded-redirect-cli
Jun 11, 2026
Merged

pet-2: extract guarded redirect backend#135
gcomneno merged 1 commit into
mainfrom
feature/issue-134-guarded-redirect-cli

Conversation

@gcomneno

Copy link
Copy Markdown
Owner

Closes #134

Summary:

  • Extracts guarded structural redirect execution logic into stable package code.
  • Updates the research probe to delegate to the package backend.
  • Updates structural-factorization --guarded-redirect to use package code directly instead of calling the research probe.
  • Adds direct backend regression tests for the known flat-k redirect case and completed lateral-door control.

Validation:

  • uv run pytest -q tests/test_guarded_redirect.py tests/test_tools_pet_guarded_redirect_execution_probe.py tests/test_cli_structural_factorization.py -rs
    • 17 passed
  • python -m py_compile src/pet/cli.py src/pet/guarded_redirect.py tools/research/pet_guarded_redirect_execution_probe.py tests/test_guarded_redirect.py
  • git diff --check

Boundary:

  • No default routing change.
  • No anchor-selection change.
  • No factorization-performance claim.
  • No lookup tables or per-number trap catalogues.

@gcomneno gcomneno merged commit c95e850 into main Jun 11, 2026
2 checks passed
@gcomneno gcomneno deleted the feature/issue-134-guarded-redirect-cli branch June 11, 2026 07:45
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.

Integrate guarded structural redirect planning into stable CLI

1 participant