Answer architecture round 2: split record into its two commands, accept a dated first line only with a Mean line alone, read a default branch without a plan table as empty, and fetch where an answer needs origin as it is

This commit is contained in:
2026-10-09 01:24:48 +02:00
parent 05efbb1d8a
commit 9c2f982741
6 changed files with 108 additions and 57 deletions
+7 -3
View File
@@ -5,13 +5,17 @@ from failure import Failure
ARCHITECT = "Inherited architect"
DIMENSIONS = ("Navigation", "Locality", "Shape", "Self-sufficiency", "Overall")
FIRST_SEATS = ("Mid A", ARCHITECT)
JUNIOR = "Junior A"
# A scoring run moved from a `comprehension floor:` decision entry kept only the seats' means.
MEAN = "Mean"
MID = "Mid A"
SCORES = re.compile(", ".join(rf"{name} ([0-9]+(?:\.[0-9]+)?)" for name in DIMENSIONS))
SCORING_SEATS = ("Junior A", "Mid A", "Maintainability senior", ARCHITECT)
SENIOR = "Maintainability senior"
FIRST_SEATS = (MID, ARCHITECT)
SCORING_SEATS = (JUNIOR, MID, SENIOR, ARCHITECT)
SEAT_LINE = re.compile(rf"^({'|'.join((*SCORING_SEATS, MEAN))}): (.+)$")
SPLIT_SEATS = ("Maintainability senior", "Junior A")
SPLIT_SEATS = (SENIOR, JUNIOR)
@dataclasses.dataclass(frozen=True)