CheckDecision

Documentation for eth_defi.vault_report.vault_checks.CheckDecision Python class.

class CheckDecision

Bases: object

The check’s verdict on one candidate.

Comes from three sources: the agent’s decisions file, the editor’s overrides file, or the pipeline itself for not_in_scope vaults. All agent and editor records pass through parse_decision().

Attributes summary

vault_id

{chain_id}-{address}

decision

exclude, keep, uncertain or not_in_scope; only exclude removes the vault from the report

category

Exclusion category, or None

suspicious_item

Short phrase naming the problem, e.g.

reason

One plain-text sentence for readers

evidence

Evidence: {"source": url or data reference, "observed_at": ISO timestamp}

confidence

high, medium or low

blacklist

Whether the vault is blacklisted permanently in flag.py

vault_flag

VaultFlag value of the blacklist entry

Methods summary

__init__(vault_id, decision[, category, ...])

vault_id: str

{chain_id}-{address}

decision: str

exclude, keep, uncertain or not_in_scope; only exclude removes the vault from the report

category: Optional[str]

Exclusion category, or None

suspicious_item: Optional[str]

Short phrase naming the problem, e.g. RSS elephanToken collateral

reason: Optional[str]

One plain-text sentence for readers

evidence: list[dict]

Evidence: {"source": url or data reference, "observed_at": ISO timestamp}

confidence: Optional[str]

high, medium or low

blacklist: bool

Whether the vault is blacklisted permanently in flag.py

vault_flag: Optional[str]

VaultFlag value of the blacklist entry

__init__(vault_id, decision, category=None, suspicious_item=None, reason=None, evidence=<factory>, confidence=None, blacklist=False, vault_flag=None)
Parameters
Return type

None