Description:
The README states RiskScorer.score() raises a RuntimeError 'detailing the mismatched columns' when feature_schema_hash doesn't match. Review the actual message and confirm it separates the mismatch into clearly labelled 'missing from input', 'unexpected extra', and (if detectable) 'reordered' column groups, rather than a single flat list — this is the difference between an operator fixing the issue in one read versus having to manually diff two lists.
Acceptance Criteria:
- The error message groups mismatched columns under clear headers (missing / extra / reordered) rather than one undifferentiated list.
- A test in
tests/test_model_inference.py constructs a mismatch with at least one column in each category and asserts each appears under the correct heading.
Relevant files:
detection/model_inference.py, tests/test_model_inference.py
Description:
The README states
RiskScorer.score()raises aRuntimeError'detailing the mismatched columns' whenfeature_schema_hashdoesn't match. Review the actual message and confirm it separates the mismatch into clearly labelled 'missing from input', 'unexpected extra', and (if detectable) 'reordered' column groups, rather than a single flat list — this is the difference between an operator fixing the issue in one read versus having to manually diff two lists.Acceptance Criteria:
tests/test_model_inference.pyconstructs a mismatch with at least one column in each category and asserts each appears under the correct heading.Relevant files:
detection/model_inference.py,tests/test_model_inference.py