torchcell.verification.LevelResult

class LevelResult(*, level: ~torchcell.verification.report.Level, name: str, passed: bool, message: str, details: dict[str, ~typing.Any] = <factory>)[source]

Bases: BaseModel

The outcome of a single L-level check.

passed is the rule’s own outcome (does the rule hold). What that outcome DOES is finding_class, derived from the rule’s name, so a renamed result (model_copy(update={"name": ...}), which skips validation) is reclassified with it and no caller can pass a genome rule off as a gate.

model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

property finding_class: FindingClass

gate or report, from the rule’s name (finding_class_of()).

property is_open_finding: bool

listed under the verdict, not failed.

Type:

A report-class rule that does not hold