swarm-controller: the review classifier reads a diff with 25 lines of context, not 200
The wide diff's context drops from 200 to 25 lines, so a block's enclosing gate stays in view when it opens within 25 lines above the change (the forge's own diff carries 3). The fallback note, the doc and the gate fixture (now 20 lines out, not 47) follow.
This commit is contained in:
parent
f4b5e1445b
commit
4098fd6d35
3 changed files with 8 additions and 7 deletions
|
|
@ -288,7 +288,7 @@ description and the task to classify the PR against it. The identical prefix
|
|||
lets the runtime's prompt cache reuse it across questions.
|
||||
|
||||
The controller builds the diff itself, from each changed file at the PR's
|
||||
merge base and at its head, with 200 lines of context around each change
|
||||
merge base and at its head, with 25 lines of context around each change
|
||||
rather than the 3 of the forge's `.diff`. That keeps a moved block's
|
||||
enclosing gate in view, such as a `config = lib.mkIf …` or an option's
|
||||
`default`, so a move that restates the gate doesn't read as adding one. The
|
||||
|
|
|
|||
Loading…
Reference in a new issue