Skip to content

Restore discovery/ranking separation in profile workflow #91

Closed

Description

@monacofj

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 the MISSet for profile.selected; it does not rank or select an MIS.
  • rank() is the only operation that applies a ranking policy.
  • Change the public rank() default to dominance_preservation; keep size_span explicitly 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, or MISCandidate.

Regression protection

Add architectural tests derived directly from ADR 0007:

  • discovery() has no rank_policy parameter;
  • discovery(profile) returns an MISSet;
  • 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions