Skip to main content

review.gate.ReviewStatus

review.gate.ReviewStatus(
    stage,
    next_step,
    blocked,
    version,
    survivors=None,
    drawn=None,
    runs=None,
    proposals=None,
    proposals_pass=None,
    committed=None,
    pushed=None,
)

Where a gate or a coding directory stands, from files with fixed names and git only.

Nothing below sealed/ or proposals/ is read to make it, with the one exception named at babregen.review.coding.status. The coding module returns this type too.

Attributes

Name Type Description
stage str The stage reached, a word of vocab.GATE_STATUS or vocab.CODING_STATUS.
next_step str What moves the directory on, a word of vocab.GATE_STEPS or vocab.CODING_STEPS; none if the directory is complete.
blocked str | None Why the next step cannot be taken yet, in the words of the command that refuses it; None if nothing blocks it.
version str The babregen version that started the directory.
survivors int | None For a gate the number of survivors; else None.
drawn int | None For a gate, from the second stage on, the number of drawn mutants; else None.
runs int | None For a coding the number of runs; else None.
proposals bool | None For a coding whether a proposal file is present; else None.
proposals_pass bool | None For a coding whether the proposals pass the check, known only once answers-own.toml is committed and before the final answers are taken in; else None.
committed bool | None Whether the evidence file that the next step waits for is committed and unchanged; None if there is no such file yet.
pushed bool | None For a gate whether the upstream holds the commit of seal.toml; None if the seal is not committed or the branch has no upstream, and always for a coding.

Examples

from babregen.review.gate import ReviewStatus

print(ReviewStatus("started", "write-first", None, "0.2.0").next_step)
write-first