Repository navigation
Description
Problem
PR #90 introduced a high-level discovery() that accepts rank_policy, runs rank(), and returns a selected MIS. This conflicts with ADR 0007 (Discovery, evaluation and ranking separation), whose invariant is that ranking policy is not an input to structural discovery.
The same PR also made profile regime acceptability depend indirectly on the canonical structural ranking assessment and profiled support only for the first structural group, whereas low-level discover() stores candidate-specific support for the complete MIS universe.
Required correction
Restore the architectural separation:
profile = misda.profile(Y)
mis_set = misda.discovery(profile)
ranking = misda.rank(mis_set)
mis = ranking.mis()profile()diagnoses alpha regimes and selects the regime/alpha only; it does not accept or use a ranking policy.discovery(profile)materializes/returns theMISSetforprofile.selected; it does not rank or select an MIS.rank()is the only operation that applies a ranking policy.- Change the public
rank()default todominance_preservation; keepsize_spanexplicitly selectable and preserve the canonical structural order stored by discovery. - Do not filter unsupported MISs out of ranking. Candidate support remains diagnostic evidence and the ranking-selected candidate keeps its assessment.
- Profile regime support must be derived from discovery support semantics, without ranking-policy input, and candidate-specific support must remain available for every MIS in the selected MISSet.
profile.report()keeps its compact table; improve only the final assessment column/selected-regime explanation if useful.- Do not change the report formats of
MISSet,Ranking, orMISCandidate.
Regression protection
Add architectural tests derived directly from ADR 0007:
discovery()has norank_policyparameter;discovery(profile)returns anMISSet;rank()is the policy-bearing step;- ranking/evaluation cannot change the discovered candidate universe, dimensions, graph structure, or canonical order.
Update ADR 0022 to explicitly acknowledge and correct the incompatible semantics introduced by #90 rather than silently redefining ADR 0007.
This issue must be resolved before #87 (notebook/user-doc migration).
Activity