Skip to content

Restore discovery and ranking separation - #92

Merged
monacofj merged 13 commits into
mainfrom
issue-91-restore-discovery-ranking-separation
Oct 1, 2026
Merged

monacofj merged 13 commits into
mainfrom
issue-91-restore-discovery-ranking-separation

Conversation

@monacofj

@monacofj monacofj commented Oct 1, 2026

Copy link
Copy Markdown
Owner

Closes #91.

This corrects the architectural regression introduced by #90 and restores ADR 0007 as a binding invariant.

Contract restored

profile = misda.profile(Y)
mis_set = misda.discovery(profile)
ranking = misda.rank(mis_set)
mis = ranking.mis()
  • profile() selects only the threshold regime/alpha and never accepts ranking policy.
  • discovery() returns the complete MISSet for the selected regime and never ranks/selects an MIS.
  • rank() is the only policy-bearing step; its public default is now dominance_preservation.
  • size_span remains the canonical structural order stored by discovery and remains explicitly selectable.
  • unsupported MISs are not filtered from ranking; Ranking.assessment remains the trust annotation.
  • profile regimes store candidate-specific support for every discovered MIS, matching low-level discover() semantics.
  • partially supported structural tie groups are visible but are not auto-selected by the profile.

Reporting

profile.report() keeps the compact regime table and adds a short interpretation in the last column plus an explicit note that regime selection does not select an MIS.

The formats of MISSet.report(), Ranking.report(), and MISCandidate.report() are intentionally untouched.

Regression protection

Adds architectural tests for the ADR 0007 boundary and updates ADR 0011, 0017, 0021, and 0022. ADR 0022 explicitly records that its first #90 version violated ADR 0007 rather than silently redefining the older contract.

This PR should land before #87 (notebook/user-doc migration).

@monacofj
monacofj merged commit a108799 into main Oct 1, 2026
1 check passed
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.

Restore discovery/ranking separation in profile workflow

1 participant