Missingness-aware rubric aggregation
Aggregate supplied weighted rubric scores with exact normalized fractions and conservative lower/upper bounds for missing ratings. Optional threshold reports certain pass, certain fail or unknown; does not assign ratings or renormalize away missing criteria.
data-assurance · Operation ID: rubric-score-aggregate
Choose this operation when
- Aggregate an explicit agent evaluation rubric without hiding missing scores
- Determine whether omitted rubric ratings can change a supplied pass threshold
Outside this profile
- Extracting facts or judging truth, semantic correctness, evidence authenticity, causal effects, or production readiness
- Fetching data, executing models or user code, changing datasets, authorizing actions, or contacting live services
- Inferring population quality, statistical significance, uncertainty intervals, or generalization from a supplied sample
Exact release references
Static JSON contract · Markdown reference · Fixed example response
Complete input schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"criteria": {
"minItems": 1,
"maxItems": 100,
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"weight": {
"type": "string",
"maxLength": 44,
"pattern": "^-?(?:0|[1-9]\\d{0,23})(?:\\.\\d{1,18})?$",
"description": "Exact decimal string: up to 24 integer and 18 fractional digits; no exponent, plus sign, whitespace, or leading zeros."
},
"maxScore": {
"type": "integer",
"minimum": 1,
"maximum": 1000000
}
},
"required": [
"id",
"weight",
"maxScore"
],
"additionalProperties": false
}
},
"ratings": {
"maxItems": 100,
"type": "array",
"items": {
"type": "object",
"properties": {
"criterionId": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"score": {
"anyOf": [
{
"type": "string",
"maxLength": 44,
"pattern": "^-?(?:0|[1-9]\\d{0,23})(?:\\.\\d{1,18})?$",
"description": "Exact decimal string: up to 24 integer and 18 fractional digits; no exponent, plus sign, whitespace, or leading zeros."
},
{
"type": "null"
}
]
}
},
"required": [
"criterionId",
"score"
],
"additionalProperties": false
}
},
"passThreshold": {
"type": "string",
"maxLength": 44,
"pattern": "^-?(?:0|[1-9]\\d{0,23})(?:\\.\\d{1,18})?$",
"description": "Exact decimal string: up to 24 integer and 18 fractional digits; no exponent, plus sign, whitespace, or leading zeros."
}
},
"required": [
"criteria",
"ratings"
],
"additionalProperties": false
}
Complete output-envelope schema
{
"type": "object",
"required": [
"operation",
"version",
"result",
"provenance"
],
"properties": {
"operation": {
"const": "rubric-score-aggregate",
"type": "string"
},
"version": {
"const": "0.29.0",
"type": "string"
},
"result": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"profile": {
"type": "string",
"const": "bounded-rubric-aggregation-v1"
},
"advisoryOnly": {
"type": "boolean",
"const": true
},
"externalRequests": {
"type": "number",
"const": 0
},
"semanticValidityVerified": {
"type": "boolean",
"const": false
},
"complete": {
"type": "boolean"
},
"criterionCount": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"ratedCount": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"missingCriterionIds": {
"maxItems": 100,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 100
}
},
"totalWeight": {
"type": "object",
"properties": {
"numerator": {
"type": "string",
"maxLength": 2049,
"pattern": "^-?(?:0|[1-9]\\d*)$"
},
"denominator": {
"type": "string",
"maxLength": 2048,
"pattern": "^[1-9]\\d*$"
}
},
"required": [
"numerator",
"denominator"
],
"additionalProperties": false
},
"observedWeight": {
"type": "object",
"properties": {
"numerator": {
"type": "string",
"maxLength": 2049,
"pattern": "^-?(?:0|[1-9]\\d*)$"
},
"denominator": {
"type": "string",
"maxLength": 2048,
"pattern": "^[1-9]\\d*$"
}
},
"required": [
"numerator",
"denominator"
],
"additionalProperties": false
},
"observedWeightFraction": {
"type": "object",
"properties": {
"numerator": {
"type": "string",
"maxLength": 2049,
"pattern": "^-?(?:0|[1-9]\\d*)$"
},
"denominator": {
"type": "string",
"maxLength": 2048,
"pattern": "^[1-9]\\d*$"
}
},
"required": [
"numerator",
"denominator"
],
"additionalProperties": false
},
"score": {
"anyOf": [
{
"type": "object",
"properties": {
"numerator": {
"type": "string",
"maxLength": 2049,
"pattern": "^-?(?:0|[1-9]\\d*)$"
},
"denominator": {
"type": "string",
"maxLength": 2048,
"pattern": "^[1-9]\\d*$"
}
},
"required": [
"numerator",
"denominator"
],
"additionalProperties": false
},
{
"type": "null"
}
]
},
"lowerBound": {
"type": "object",
"properties": {
"numerator": {
"type": "string",
"maxLength": 2049,
"pattern": "^-?(?:0|[1-9]\\d*)$"
},
"denominator": {
"type": "string",
"maxLength": 2048,
"pattern": "^[1-9]\\d*$"
}
},
"required": [
"numerator",
"denominator"
],
"additionalProperties": false
},
"upperBound": {
"type": "object",
"properties": {
"numerator": {
"type": "string",
"maxLength": 2049,
"pattern": "^-?(?:0|[1-9]\\d*)$"
},
"denominator": {
"type": "string",
"maxLength": 2048,
"pattern": "^[1-9]\\d*$"
}
},
"required": [
"numerator",
"denominator"
],
"additionalProperties": false
},
"threshold": {
"anyOf": [
{
"type": "object",
"properties": {
"numerator": {
"type": "string",
"maxLength": 2049,
"pattern": "^-?(?:0|[1-9]\\d*)$"
},
"denominator": {
"type": "string",
"maxLength": 2048,
"pattern": "^[1-9]\\d*$"
}
},
"required": [
"numerator",
"denominator"
],
"additionalProperties": false
},
{
"type": "null"
}
]
},
"thresholdStatus": {
"type": "string",
"enum": [
"passed",
"failed",
"unknown",
"not_requested"
]
},
"criteria": {
"maxItems": 100,
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"status": {
"type": "string",
"enum": [
"rated",
"missing"
]
},
"normalizedScore": {
"anyOf": [
{
"type": "object",
"properties": {
"numerator": {
"type": "string",
"maxLength": 2049,
"pattern": "^-?(?:0|[1-9]\\d*)$"
},
"denominator": {
"type": "string",
"maxLength": 2048,
"pattern": "^[1-9]\\d*$"
}
},
"required": [
"numerator",
"denominator"
],
"additionalProperties": false
},
{
"type": "null"
}
]
},
"weightedContribution": {
"anyOf": [
{
"type": "object",
"properties": {
"numerator": {
"type": "string",
"maxLength": 2049,
"pattern": "^-?(?:0|[1-9]\\d*)$"
},
"denominator": {
"type": "string",
"maxLength": 2048,
"pattern": "^[1-9]\\d*$"
}
},
"required": [
"numerator",
"denominator"
],
"additionalProperties": false
},
{
"type": "null"
}
]
}
},
"required": [
"id",
"status",
"normalizedScore",
"weightedContribution"
],
"additionalProperties": false
}
}
},
"required": [
"profile",
"advisoryOnly",
"externalRequests",
"semanticValidityVerified",
"complete",
"criterionCount",
"ratedCount",
"missingCriterionIds",
"totalWeight",
"observedWeight",
"observedWeightFraction",
"score",
"lowerBound",
"upperBound",
"threshold",
"thresholdStatus",
"criteria"
],
"additionalProperties": false
},
"provenance": {
"type": "object",
"required": [
"inputSha256",
"outputSha256",
"deterministic",
"externalRequests"
],
"properties": {
"inputSha256": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
},
"outputSha256": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
},
"deterministic": {
"const": true
},
"externalRequests": {
"const": 0
}
}
}
},
"additionalProperties": false
}
Fixed example
One accepted fixed example, not a custom-input trial. No operation runs when this static page is requested.
Example input
{
"criteria": [
{
"id": "correctness",
"weight": "3",
"maxScore": 5
},
{
"id": "completeness",
"weight": "1",
"maxScore": 5
}
],
"ratings": [
{
"criterionId": "correctness",
"score": "4"
}
],
"passThreshold": "0.8"
}
Example response
{
"operation": "rubric-score-aggregate",
"version": "0.29.0",
"result": {
"profile": "bounded-rubric-aggregation-v1",
"advisoryOnly": true,
"externalRequests": 0,
"semanticValidityVerified": false,
"complete": false,
"criterionCount": 2,
"ratedCount": 1,
"missingCriterionIds": [
"completeness"
],
"totalWeight": {
"numerator": "4",
"denominator": "1"
},
"observedWeight": {
"numerator": "3",
"denominator": "1"
},
"observedWeightFraction": {
"numerator": "3",
"denominator": "4"
},
"score": null,
"lowerBound": {
"numerator": "3",
"denominator": "5"
},
"upperBound": {
"numerator": "17",
"denominator": "20"
},
"threshold": {
"numerator": "4",
"denominator": "5"
},
"thresholdStatus": "unknown",
"criteria": [
{
"id": "correctness",
"status": "rated",
"normalizedScore": {
"numerator": "4",
"denominator": "5"
},
"weightedContribution": {
"numerator": "12",
"denominator": "5"
}
},
{
"id": "completeness",
"status": "missing",
"normalizedScore": null,
"weightedContribution": null
}
]
},
"provenance": {
"inputSha256": "45069751e8b836c12a37d9ea034ccde629e808399600b9febcd60bbf996804ac",
"outputSha256": "26c2563fe2e5c4094cb9eb65f344987cb0758eaa7939797d4f372bff4e149f10",
"deterministic": true,
"externalRequests": 0
}
}
Bounds and precision
JavaScript IEEE-754 numbers; use strings for large integer IDs/exact decimals where the schema accepts strings. No lossless numeric parsing.
{
"global": {
"requestBytes": 131072,
"responseBytes": 524288,
"jsonDepth": 32,
"jsonNodes": 20000,
"requestsPerMinute": 60,
"paidAttemptsPerMinute": 20,
"idempotencyHours": 24
},
"operation": {
"inputBytes": 100000,
"outputBytes": 400000,
"jsonNodes": 12000,
"depth": 20,
"findings": 200,
"decimalIntegerDigits": 24,
"decimalFractionDigits": 18,
"rationalDigits": 2048,
"criteria": 100,
"ratings": 100,
"maxScore": "positive safe integer at most 1,000,000"
}
}
Complete schemas, descriptions and cross-field validation may impose additional limits.
Proposed price and protocol definitions
{
"unit": "one successful operation call",
"proposedNominalUsd": "0.005",
"sixDecimalTokenBaseUnits": "5000",
"subscription": false,
"includesPayerWalletOrNetworkFees": false,
"liveQuoteVerified": false,
"condition": "Actual SDK challenge is authoritative only within the caller's explicit authorization; configured six-decimal token peg is an operator assertion, not a conversion guarantee."
}
Protocol definitions: x402, mpp. MPP uses Tempo charge. Paid MCP execution is unsupported. All runtime readiness is not evaluated in this build.
API path templates, not endpoints on this documentation host
{
"x402": "/v1/x402/rubric-score-aggregate",
"mpp": "/v1/mpp/rubric-score-aggregate"
}
Required headers
{
"Content-Type": "application/json",
"Idempotency-Key": "random 16–128 character operation identifier"
}
Actual SDK challenge amount, asset, network, recipient and wallet costs must pass independent authorization. Preserve identical key, body, protocol and credential on retries; on PAYMENT_UNCERTAIN stop and reconcile.
Execution profile and provider conditions
{
"deterministic": true,
"externalRequests": 0,
"maxExternalRequests": 0,
"resultSnapshotPersisted": false,
"fixedExampleIsIllustrativeSnapshot": false,
"requiresPayment": true,
"supportsMcpExecution": false
}
Deterministic supplied-input operation with no external requests or stored request/result bodies. Payment infrastructure retains payment metadata and hashes.
Failure handling
- HTTP 400: Malformed JSON, missing/invalid idempotency key, or payment identifier mismatch Correct the request before payment
- HTTP 402: Payment challenge or rejected payment Use official protocol SDK; inspect payment outcome before another payment
- HTTP 409: Idempotency conflict, duplicate proof, or PAYMENT_UNCERTAIN Keep original key, body, and proof; reconcile uncertainty with operator; never blindly repay
- HTTP 413: Input or generated output too large Reduce input; no payment attempted for validation failure
- HTTP 415: Unsupported media type or compression Send uncompressed application/json
- HTTP 422: Schema or service-specific semantic validation failure Correct input using returned error code; no payment attempted
- HTTP 429: Request/payment-attempt rate exceeded Wait for rate limit window; preserve existing payment identity
- HTTP 503: Payment configuration/provider/state unavailable, or live DNS preparation failed before settlement Check readiness; DNS preparation failures may retry the identical key/body/credential only; uncertainty requires reconciliation
Declared requirements
Before any paid call, refresh the live operation contract and POST the complete bounded budgeted plan to the separate API's /preflight. Unknown requirements block selection; compatible preflight is not permission to spend.