fix(rsi): keep the status in a capped negative lesson action

The negative action is the label followed by "(prior <status>)", and the
whole string was cut at 320 runes. Past about 257 runes of summary the cut
removed the suffix, so false_positive and duplicate produced the same action
and the same dedupe key: a change inside the negative group reused the old
lesson instead of writing a new one and withdrawing the old.

The label is now cut to the room left by the prefix and the suffix, so the
status is always in the action and in the key. A summary short enough to fit
gives the same action as before, so existing keys do not change.
This commit is contained in:
BaaRai
2026-11-21 08:50:38 +01:00
parent 2be58efd50
commit aa4a1bfab9
3 changed files with 90 additions and 1 deletions
+4
View File
@@ -61,6 +61,10 @@ Rules:
Pending and in-progress findings produce nothing: there is no outcome yet.
Empty cue, action, or source is refused by the gate.
An action is capped at 320 runes. In a negative action the summary is cut, not
the `(prior <status>)` suffix, so each negative status keeps its own action and
dedupe key.
A retest counts only when it is `completed` with a verdict; extraction reads
the latest such retest. A verdict staged on a pending, running, failed, or
stopped retest produces nothing.