feat(backend): refuse an ODD that asks for what the backend cannot bring about #111
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.39) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.39 · 264 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.334
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #111"
general
weight: 0.35
hakuturu583
Part of #35, for #51.
Problem
The default ODD is a subset of tier4/taxonomy. That subset includes concepts that some simulators cannot bring about: CARLA renders no snow and has no temperature.
If an ODD measures such a concept, or a module restricts it ("heavy snow"), the run goes ahead silently. Coverage then counts runs that never rendered the condition, and the module bounds nothing.
Change
Backend.unsupported: maps a concept to the reason the backend cannot bring it about or measure it._wrap, which every loader goes through) and when anOddSampleris built, which catches ODDs built in Python:- the ODD measures an unsupported concept;
- a module of the ODD restricts an unsupported concept, or a concept defined by one.
UnsupportedConceptErroris raised for a refused ODD and names each use. It is aValueErrorand is exported.Backend.unsupported_uses(odd)lists the uses without raising.OddAttribute.defined_by(new, in the core and in Python): the concepts a derived categorical is defined by, whether or not they are measured. Before this, a derived attribute whose source was not bound lost that link (derived_fromis empty then). Without it, a restriction on snow intensity could not be traced back to the snowfall rate.docs/python_odd.md, "What a backend cannot bring about".Tests
test_an_odd_that_asks_for_what_the_backend_cannot_bring_about_is_refusedcovers four cases:- a concept that is declared but neither measured nor restricted is read;
- a measured one is refused;
- a module on a derived concept whose source is unsupported is refused;
- a module on a supported concept is read.
test_a_sampler_refuses_an_odd_its_backend_cannot_bring_about.---
_Generated by Claude Code_