CheckRound

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

class CheckRound

Bases: object

Files of one check round, in the report bundle.

The file names carry only the round number, so a rerun with the same bundle or a VAULT_CHECK_DECISIONS directory finds the earlier round’s decisions by name; the digest then decides whether they still apply.

Attributes summary

number

Round number, from 1

candidates_path

Candidate file, vault-check-candidates-N.json, written by the pipeline

facts_path

Deterministic facts file, vault-check-facts-N.json, written by the pipeline; not written when the round's decisions are reused

decisions_path

Agent decisions file, vault-check-decisions-N.json, written by the agent

candidates_digest

SHA-256 of the candidates file; the agent copies it into the decisions header

Methods summary

__init__(number, candidates_path, ...)

number: int

Round number, from 1

candidates_path: pathlib.Path

Candidate file, vault-check-candidates-N.json, written by the pipeline

facts_path: pathlib.Path

Deterministic facts file, vault-check-facts-N.json, written by the pipeline; not written when the round’s decisions are reused

decisions_path: pathlib.Path

Agent decisions file, vault-check-decisions-N.json, written by the agent

candidates_digest: str

SHA-256 of the candidates file; the agent copies it into the decisions header

__init__(number, candidates_path, facts_path, decisions_path, candidates_digest)
Parameters
Return type

None