Skip to content

risk_tier

diapason.learning.spec_search.plan.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.

assign_tier(op)

Return the deterministic risk tier for a given edit op.

assign_tiers(edits)

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.