Infrastructure · Data Structures

ScoringFunction

Deterministic valuation logic

Definition

Mechanism

A deterministic logical unit that maps an input artifact to a scalar Value (Score). Encapsulates ranking and evaluation criteria as a first-class Noun, so callers can pass the scoring logic as an input rather than embed it inline in their own mechanism.

Invariants

  1. Determinism: same input always yields the same score.
  2. Output falls within the declared `output_range`.

Risks

Failure modes

None stated.

Relationships

Builds on

References

Value

A measure of utility

Used by

Accepts

Judge

Scalar evaluation of merit

Rank

Order items by score

Reference

Data schema

{
  "type": "object",
  "required": [
    "function_id",
    "input_type",
    "output_range"
  ],
  "properties": {
    "function_id": {
      "type": "string",
      "description": "Unique identifier for this scoring function"
    },
    "input_type": {
      "type": "string",
      "description": "Expected input schema or type"
    },
    "output_range": {
      "type": "object",
      "properties": {
        "min": {
          "type": "number"
        },
        "max": {
          "type": "number"
        }
      },
      "description": "Valid output range"
    },
    "logic": {
      "type": "string",
      "description": "Description or reference to scoring logic"
    }
  }
}

Identity

Ref
ScoringFunction#c604
Sema ID
sema:ScoringFunction#mh:SHA-256:c6042940db8c3238b948c7851aa315defbe31e1639dba718fcce0e38523e8d50
Ring
1
Tier
1
Updated
2026-11-11
Supersedes
  • sema:ScoringFunction#mh:SHA-256:3de5b5abe572e4e8cd6c0d4ecc55889fd157f66fdab01b399c0eae0cbca0a99d
  • sema:ScoringFunction#mh:SHA-256:932eb89612c9b1e99ca1d6d66adf15bd8544505bc46059da946cb71aa52e23ec