Skip to main content

Module classify

Module classify 

Source
Expand description

Classification: the corpus verdict a target earns before anything lands, and the plan classification derived from it and the record.

Two words answer two questions. The verdict — greenfield, brownfield, or needs-decision — is what rk assess has always answered and reads the repository alone. The plan classification — setup, migration, upgrade, drift, or invalid — names which procedure a plan is, and it reads the verdict beside the record and the comparison. One enum carries the routing word, and the findings beside it carry the detail the word compresses: the marker that made a target brownfield, the file that made a landing drifted, the reason a record is invalid. A reader routes on the word and reads the findings, and neither needs the other to change shape when a new finding appears.

Structs§

Finding
One fact the classification compresses.
RepositoryFacts
The repository facts the verdict reads: a projection of the assessment’s evidence, so the rule stays pure and testable.

Enums§

Classification
Which procedure a plan is.
RecordState
What the record was found to be, for the classification alone.
Verdict
The corpus verdict, computed from the repository’s evidence alone.

Functions§

classify
Derive the classification from the record’s state, the verdict, and whether the comparison found owned drift.
verdict
Compute the verdict from the facts. Pure, so the rule is testable without a repository.