Repository refactor status#

This page records the stabilized module boundaries that remain after the temporary refactor facades were removed. The focused modules below are now the supported import paths for active package code.

Current decomposition#

Cage stability#

The cage-stability implementation now lives in the qlinks.caging.stability subpackage:

  • core for perturbative stability, continuation, Jacobian, and subspace helpers;

  • topology for chiral, locality, CLS-completeness, and cohomological diagnostics;

  • boundary for boundary-cancellation matroid and periodic-scaling diagnostics;

  • qdm for square-QDM compact-cage and transfer diagnostics;

  • laurent for Laurent-polynomial constraint-module diagnostics;

  • types for report/data contracts; and

  • symmetry for small shared symmetry linear-algebra helpers.

qlinks.caging.stability is now a real subpackage with a curated public API. Active implementation code should import the defining child module directly.

Caging analysis#

Post-search analysis now lives in qlinks.caging.analysis. This move also corrects an early scientific over-interpretation: the former classification layer did not classify caged eigenstates. Its valid role is to decide whether the exterior environment can be removed while constructing a bounded local caging operator.

The analysis ownership is now:

  • transitions for support-aware weighted local transition signatures;

  • environment for exterior-environment reduction and its three accepted mechanisms: no exterior weight, projective annihilation, or the same local cancellation pattern;

  • local_structure for reduced-density-matrix and operator-structure diagnostics;

  • support and support_morphology for local support analysis independent of environment removability;

  • spectral and thermodynamic for ensemble/spectrum diagnostics; and

  • evidence for finite-size evidence summaries.

A known interference-zero target is not sufficient to remove the environment. Non-projective closure is accepted only when the target has the same support-aware weighted local transition signature. Architecture tests enforce the one-way ownership and prevent the former classification <-> diagnostics static cycle from returning.

Dark-manifold detectors#

The former qlinks.open_system.manifold_detectors implementation is split into:

  • manifold_dark for dark-operator basis construction, dressing, and shared linear algebra;

  • manifold_recycling for local recycler construction and family-kernel diagnostics;

  • manifold_residual for residual-kernel diagnostics and targeted jump selection; and

  • manifold_detector_types for passive report/data contracts.

The temporary qlinks.open_system.manifold_detectors facade has been removed. Active package code and tests must import the focused modules instead.

Neutral local-structure migration#

Local reduced-density matrices, matrix-unit expansion, and local pattern embedding belong to qlinks.local_structure. Historical re-exports through caging/open-system modules exist only to let notebooks and deprecated constructors migrate.

Removal gates#

A compatibility bridge should be deleted when:

  1. the replacement names and module boundaries have survived the current review cycle;

  2. first-party package code, tests, scripts, notebooks, and documentation use the replacement;

  3. supported public API tests target the replacement interface rather than the bridge; and

  4. the removal is recorded in the changelog or release/refactor milestone.

No new implementation may depend on the removed compatibility-module paths. The architecture tests enforce this for the former local-search, stability, and manifold-detector facades.