torchcell.verification.LevelResult
- class LevelResult(*, level: ~torchcell.verification.report.Level, name: str, passed: bool, message: str, details: dict[str, ~typing.Any] = <factory>)[source]
Bases:
BaseModelThe outcome of a single L-level check.
passedis the rule’s own outcome (does the rule hold). What that outcome DOES isfinding_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
gateorreport, from the rule’s name (finding_class_of()).