plexus.score_rubric_consistency module

Score-version rubric consistency checks.

This module owns the lightweight preflight that asks whether the score code for a specific ScoreVersion appears consistent with that same version’s rubric text. The result is designed to be persisted on Evaluation.parameters and displayed as operator context before RCA.

class plexus.score_rubric_consistency.ScoreRubricConsistencyRequest(scorecard_identifier: 'str', score_identifier: 'str', score_version_id: 'str', rubric_text: 'str', score_code: 'str', item_text: 'str' = '')

Bases: object

__init__(scorecard_identifier: str, score_identifier: str, score_version_id: str, rubric_text: str, score_code: str, item_text: str = '') None
item_text: str = ''
rubric_text: str
score_code: str
score_identifier: str
score_version_id: str
scorecard_identifier: str
class plexus.score_rubric_consistency.ScoreRubricConsistencyResult(scorecard_identifier: 'str', score_identifier: 'str', score_version_id: 'str', status: 'str', paragraph: 'str', checked_at: 'str', model: 'str', diagnostics: 'Dict[str, Any]')

Bases: object

__init__(scorecard_identifier: str, score_identifier: str, score_version_id: str, status: str, paragraph: str, checked_at: str, model: str, diagnostics: Dict[str, Any]) None
checked_at: str
diagnostics: Dict[str, Any]
model: str
paragraph: str
score_identifier: str
score_version_id: str
scorecard_identifier: str
status: str
to_parameters_payload() Dict[str, Any]
class plexus.score_rubric_consistency.ScoreRubricConsistencyService(*, invoke_model: Callable[[str, str], str] | None = None, model: str = 'gpt-5-mini')

Bases: object

Generate a concise score-code vs rubric consistency assessment.

DEFAULT_MODEL = 'gpt-5-mini'
VALID_STATUSES = {'consistent', 'inconclusive', 'potential_conflict'}
__init__(*, invoke_model: Callable[[str, str], str] | None = None, model: str = 'gpt-5-mini')
generate(request: ScoreRubricConsistencyRequest) ScoreRubricConsistencyResult
generate_from_api(*, client: Any, scorecard_identifier: str, score_identifier: str, score_id: str, score_version_id: str, item_text: str = '') ScoreRubricConsistencyResult
plexus.score_rubric_consistency.fetch_score_version_for_consistency(client: Any, score_version_id: str) Dict[str, Any]
plexus.score_rubric_consistency.merge_consistency_result_into_parameters(parameters: Any, result: ScoreRubricConsistencyResult) Dict[str, Any]