Answer stability round 1: 0 🔴, 2 🟡 (0 misread); score the person's issue in the contract test, and hold scores, moves and exempt apart from blockers

This commit is contained in:
2026-11-18 18:32:38 +01:00
parent f0d99c8141
commit e8255be534
6 changed files with 25 additions and 19 deletions
+9 -5
View File
@@ -5,8 +5,8 @@ import dataclasses
import re
import typing
from plan.todo_table import Exempt, Moves
from failure import Failure
from plan.todo_table import ItemFields
# What a tracker accepts as a label: Jira refuses a label holding white space.
LABEL = re.compile(r"\S+")
@@ -29,11 +29,15 @@ class EpicIssue:
done: bool
# The epic's key for a child issue, the child's key for a sub-task.
parent: str
# The scores, Moves and Exempt a plan-item issue property holds, as `plan_store` reads them; its release and blocked_by stay unset, since an epic's items have no release and `blockers` holds theirs. Empty where the issue holds none, as a person's issue does.
scores: ItemFields = dataclasses.field(default_factory=ItemFields)
# The key of each issue this one is blocked by, in the tracker's order.
# The score of each column the issue has one for, such as {"L": 2}, as `plan_store` reads them from the issue's `plan-item` property. Empty where the issue has no scores.
scores: dict[str, int] = dataclasses.field(default_factory=dict)
# The goals the issue moves, and how far (the plan's Moves cell); empty where it names none.
moves: Moves = ()
# Why the issue is exempt from the plan's score bar, as the plan's Exempt cell names it; empty where it isn't.
exempt: Exempt = ""
# The key of each issue that blocks this one, in the tracker's order.
blockers: tuple[str, ...] = ()
# Whether the loop filed the issue, through EpicStore.file, rather than a person.
# True where the loop filed the issue through EpicStore.file; False for an issue a person filed.
by_loop: bool = False