Answer architecture round 1: 3 🔴, 3 🟡; restore the reviewer-table check tied to SKILL.md and the round titles, render each lowered pass as an exception sentence, move review-replay's argument parsing into the shared reader, split reviewed_in, and rename the package in item 114
This commit is contained in:
@@ -102,11 +102,15 @@ def stepped_up(rung: Rung) -> Rung:
|
||||
def review_rungs(project: Rung, worker: Rung, escape_and_impact: int) -> dict[ReviewKind, Rung]:
|
||||
"""The rung each kind of review in a chunk runs on, where its worker runs on worker and its item has that E + I.
|
||||
|
||||
A pass's reviewer runs on the higher of the worker's rung and review_floor's. Where the E + I steps no review up, a pass whose replay chose a rung for the project's model runs on that rung instead, even below the worker's: the replay measured the project's rung, never a stepped one. A seat and the security pass run on the project's rung, so the seats score every chunk on one rung, and the security pass spends no more than the project chose.
|
||||
A pass's reviewer runs on reviewers_rung. Where the E + I steps no review up, a pass whose replay chose a rung for the project's model runs on that rung instead, even below the worker's: the replay measured the project's rung, never a stepped one. A seat and the security pass run on the project's rung, so the seats score every chunk on one rung, and the security pass spends no more than the project chose.
|
||||
"""
|
||||
reviewers = highest(worker, review_floor(project, escape_and_impact))
|
||||
replayed = {} if escape_and_impact in REVIEW_STEPS else {kind: rung for (kind, model), rung in REPLAYED.items() if model == project.model}
|
||||
return {**dict.fromkeys(REVIEWERS, reviewers), **replayed, "seat": project, "security": project}
|
||||
return {**dict.fromkeys(REVIEWERS, reviewers_rung(project, worker, escape_and_impact)), **replayed, "seat": project, "security": project}
|
||||
|
||||
|
||||
def reviewers_rung(project: Rung, worker: Rung, escape_and_impact: int) -> Rung:
|
||||
"""The rung of each pass's reviewer that no replay lowered: the higher of the worker's rung and review_floor's."""
|
||||
return highest(worker, review_floor(project, escape_and_impact))
|
||||
|
||||
|
||||
def highest(*rungs: Rung) -> Rung:
|
||||
|
||||
Reference in New Issue
Block a user