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
- Determinism: same input always yields the same score.
- Output falls within the declared `output_range`.
Risks
Failure modes
None stated.
Relationships
Builds on
References
A measure of utility
Used by
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"
}
}
}