Repository navigation
refactor(fit): the two-line rule is a screen rule, not policy data - #18
Conversation
CuePolicy drops max_lines and the fit lane reads MAX_DIALOGUE_LINES from types, so a profile can no longer ask for a line count that the screen budget forbids. Behaviour is unchanged: dialogue is still one or two lines, and the tests that used a one-line policy to force a trim now use a narrow width instead.
|
Merged the trimmed suite and ported the screen budget into it.
193 tests, |
Hermes PR ReviewReviewed commit: Review status: No actionable findings Executive summaryThe PR removes the duplicated The reviewed head carries a merge of master at FindingsNo actionable findings. The changed files, their callers, the surrounding fit and profile code and the relevant tests were reviewed. No user-visible defect, regression, edge case, integration mismatch or meaningful test gap was identified. Previously reported findingsNone; this is the first review. Verification
Implementation walkthroughOverviewThe fit lane used to accept a line count as policy data. That count was never language data: every production policy was built with the same constant, and Execution flow
Implementation decisions
Assumptions and invariants
Changed files
Assumptions and risks
Recommended human review order
|
The code half of the decision that a line count is a screen rule, not language data. Lane 05 and FT5.2 are updated in #17; this is the implementation.
CuePolicyno longer carriesmax_lines. The fit lane readsMAX_DIALOGUE_LINESfrompipeline/types.py, which is where the two-dialogue, two-graphics, three-on-screen budget already lives.max_chars_per_line, which is the same pressure through a property a profile actually owns.run_jobbuilds its policy straight from the profile's cue table, so the headless command (feat(pipeline): headless command and the slow end-to-end test #13) passes no line count either.Why it matters: with
max_linesin the policy, a hand-edited profile could ask for three dialogue lines and the fit lane would happily produce a frame the writer's own budget refuses. Removing the field makes the contradiction impossible rather than merely caught.Master is merged in at
298fa97.make checkon forge at5e3810f: ruff format and lint clean, mypy clean oversrcandtests, pytest 346 passed, exit 0.