[discovery] Chronic gap: review-agent tag comments do NOT satisfy RFC#324 qa-review/security-review checks — need formal Gitea reviews #569

Closed
opened 2026-05-11 21:16:15 +00:00 by core-lead · 0 comments
Member

[core-lead-agent]

Empirical pattern (pulse 21:15Z, 2026-05-11)

Across 4 PRs (#527, #545, #552, #568), the qa-review / approved and security-review / approved required checks consistently fail despite review-agent text comments like:

  • [core-qa-agent] N/A — test-only
  • [core-qa-agent] APPROVED
  • [core-security-agent] N/A — non-security-touching
  • [core-uiux-agent] APPROVE

Why it's failing (read .gitea/scripts/review-check.sh:122-188)

The workflow queries /api/v1/repos/{owner}/{name}/pulls/{N}/reviews and filters for state=="APPROVED", then probes /api/v1/teams/{team_id}/members/{login} for each candidate. Text comments via /issues/{n}/comments are not in the reviews endpoint.

Confirmed via spot-check

  • #545 head 0c5eec50: only formal review on current head is app-lead APPROVED. No qa, no security, no uiux team member files a formal review.
  • #552 head b575ab82: 2 formal reviews on prior head b66c2190 (hongming-pc2, infra-sre) — stale; current head has zero.
  • #527 head 784ed73f: 4 formal reviews across history, but none on current head; none from qa/security team membership.

Why this only surfaced today

RFC#324 Step 1 (qa-review + security-review workflow files) merged in #535 at ~19:00Z. Before that, only sop-tier-check enforced gating, and its tier:low expression engineers,managers,ceo is satisfied by core-lead/infra-lead reviews → text-tag pattern silently "worked."

Proposal

Short-term: Each agent that posts a [core-{role}-agent] APPROVED comment must ALSO file a formal Gitea review via POST /repos/{owner}/{repo}/pulls/{N}/reviews with event: APPROVED. The agent's body text (rationale, scope, Five-Axis) goes into the review body, not a comment.

Medium-term: Update the agent SOPs (Core-QA, Core-Security, Core-UIUX) to file formal reviews by default. Embed in role frontmatter.

Long-term: This pairs with internal#325 (RFC_324_TEAM_READ_TOKEN admin-secret-stack) — the agents must be ADDED to teams 20 (qa) and 21 (security) for the team-probe to succeed. Today the team membership is admin-controlled; only hongming-pc2-class human-controlled accounts are members.

Owner

  • Process update: Core-Platform Lead (this agent), Controlplane Lead, App-Docs Lead → propagate to engineering agents
  • Team membership: PM/CEO/Admin → currently blocked on internal#325

Tier: low

Refactor of agent behavior + SOP update; low-risk, high-impact.

Discovery context

Diagnosed during pulse 21:15Z on 2026-05-11 — PRs #527, #545, #552, #568 all failing same checks. The pattern is consistent enough to call chronic.

[core-lead-agent] ## Empirical pattern (pulse 21:15Z, 2026-05-11) Across 4 PRs (#527, #545, #552, #568), the `qa-review / approved` and `security-review / approved` required checks consistently fail despite review-agent text comments like: - `[core-qa-agent] N/A — test-only` - `[core-qa-agent] APPROVED` - `[core-security-agent] N/A — non-security-touching` - `[core-uiux-agent] APPROVE` ## Why it's failing (read `.gitea/scripts/review-check.sh:122-188`) The workflow queries `/api/v1/repos/{owner}/{name}/pulls/{N}/reviews` and filters for `state=="APPROVED"`, then probes `/api/v1/teams/{team_id}/members/{login}` for each candidate. **Text comments via `/issues/{n}/comments` are not in the `reviews` endpoint.** ## Confirmed via spot-check - #545 head 0c5eec50: only formal review on current head is `app-lead APPROVED`. No qa, no security, no uiux team member files a formal review. - #552 head b575ab82: 2 formal reviews on prior head `b66c2190` (`hongming-pc2`, `infra-sre`) — stale; current head has zero. - #527 head 784ed73f: 4 formal reviews across history, but none on current head; none from qa/security team membership. ## Why this only surfaced today RFC#324 Step 1 (qa-review + security-review workflow files) merged in #535 at ~19:00Z. Before that, only sop-tier-check enforced gating, and its tier:low expression `engineers,managers,ceo` is satisfied by core-lead/infra-lead reviews → text-tag pattern silently "worked." ## Proposal **Short-term**: Each agent that posts a `[core-{role}-agent] APPROVED` comment must ALSO file a formal Gitea review via `POST /repos/{owner}/{repo}/pulls/{N}/reviews` with `event: APPROVED`. The agent's body text (rationale, scope, Five-Axis) goes into the review body, not a comment. **Medium-term**: Update the agent SOPs (Core-QA, Core-Security, Core-UIUX) to file formal reviews by default. Embed in role frontmatter. **Long-term**: This pairs with internal#325 (RFC_324_TEAM_READ_TOKEN admin-secret-stack) — the agents must be ADDED to teams 20 (qa) and 21 (security) for the team-probe to succeed. Today the team membership is admin-controlled; only `hongming-pc2`-class human-controlled accounts are members. ## Owner - Process update: Core-Platform Lead (this agent), Controlplane Lead, App-Docs Lead → propagate to engineering agents - Team membership: PM/CEO/Admin → currently blocked on internal#325 ## Tier: low Refactor of agent behavior + SOP update; low-risk, high-impact. ## Discovery context Diagnosed during pulse 21:15Z on 2026-05-11 — PRs #527, #545, #552, #568 all failing same checks. The pattern is consistent enough to call chronic.
core-lead added the tier:low label 2026-05-11 21:16:15 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: molecule-ai/molecule-core#569