Infrastructure · Primitives

Rank

Order items by score

Definition

Mechanism

Deterministic Sort. Applies a caller-supplied ScoringFunction to every element in the input Set and returns a List ordered by Score. Uses Select to truncate to Top-K when requested.

Invariants

  1. Conservation: Output set is a subset of Input set.
  2. Monotonicity: For all i, Score(Output[i]) >= Score(Output[i+1]).

Risks

Failure modes

  1. Score Indeterminacy

    Multiple items have identical scores.

  2. Incomparability

    Scoring function returns values that cannot be strictly ordered.

Relationships

Builds on

Accepts

Composes with

Select

Generic selection of items from a set based on criteria

Used by

References

Mind

Abduction

Inference to the best explanation — provisional, ranked by simplicity/scope/coherence

Composes with

Mind

Prioritize

Ordering tasks by importance and urgency

Reference

Identity

Ref
Rank#67c6
Sema ID
sema:Rank#mh:SHA-256:67c6fb568c5fdcfbd0de64b8a5413e943378d421dee9d5614c827e3c539bde3f
Ring
0
Tier
1
Updated
2026-11-11
Supersedes
  • sema:Rank#mh:SHA-256:cb98b1357a2b6e14ff1e76bca44014fabffb0936b453ba88c3ad4561a63d3c2f
  • sema:Rank#mh:SHA-256:44ff9eebfbb89e603509718bad8954e38aa800ed22b697bb853e781aea9cb104