risk_tier
risk_tier
¶
Deterministic risk tier assignment for edits.
The teacher cannot pick its own tier. After the teacher emits edits, the
planner overwrites each edit's risk_tier from the lookup table below.
If the teacher attempted a different tier, it is silently overwritten and
the discrepancy is logged but not surfaced as an error.
See spec §4.1 (tier table) and §6.2.
Classes¶
Functions¶
assign_tier
¶
assign_tier(op: EditOp) -> EditRiskTier
assign_tiers
¶
Overwrite each edit's risk_tier from the canonical lookup table.
Returns a new list of Edit objects (pydantic copies). If the teacher had a different tier, it is silently overwritten and logged.