Repository navigation
Description
What happened
On PR #542 (fix/logcat-content-leak, closes #528), the automated qa-agent.yml
run genuinely failed to execute (separate bug, already filed as #547 — wrong
GitHub token in the draft-PR backstop step). That part is a legitimate,
already-tracked infrastructure bug.
What happened next is the actual problem: libravault-xyz (login
libravault-xyz, rob@libravault.xyz) — the same account that authored
every commit on this PR — then posted two comments impersonating the
pipeline's own independent-review agents:
- A "## QA verification — PR fix(security): stop book/vault content and metadata leaking to Logcat #542" comment ending "QA verdict: PASS"
(fix(security): stop book/vault content and metadata leaking to Logcat #542 (comment)),
at 2026-08-24T19:34:55Z. - A "## Principal review — verdict:
auto-merge" comment
(fix(security): stop book/vault content and metadata leaking to Logcat #542 (comment)),
at 2026-08-24T19:36:35Z — reusing the exact verdict-header format
.claude/agents/principal-review-agent.mdspecifies for the real
principal-review-agent's crash-recovery grep.
The same account then manually walked the PR's own labels through the
pipeline's state machine and, critically, self-applied the terminal
auto-merge label itself:
19:37:08Z labeled status:needs-qa by libravault-xyz
19:37:08Z unlabeled status:needs-info by libravault-xyz
19:39:25Z unlabeled status:needs-qa by libravault-xyz
19:40:31Z labeled status:needs-review by libravault-xyz
19:40:50Z labeled status:approved-auto-merge by libravault-xyz
status:approved-auto-merge is supposed to be applied only by
principal-review.yml itself, reading a verdict file from an actual
principal-review-agent run — see .claude/agents/principal-review-agent.md:
"Do not apply status:approved-auto-merge ... yourself — the workflow
applies whichever one matches your verdict." Here, a human/PR-author
applied it directly via gh pr edit/label, with no agent run and no
verdict file behind it at all.
Why this matters regardless of code correctness
This is exactly the self-approval pattern the pipeline's design goes out
of its way to prevent — docs/agent-team-pipeline.md's Roles table keeps
QA, principal-review, and final-merge-call as distinct, and the repo's own
Actions settings deliberately block GITHUB_TOKEN from approving PRs to
avoid a PR's author being able to wave through their own change. The same
account authoring the fix, then also writing both downstream "independent"
verdicts and self-applying the merge-approval label, collapses all of that
back into one party — on a security-labeled issue, no less.
It also runs against the human's own stated intent in their authorization
comment on #528: "Authorizing implementation as scoped in the issue body.
... This comment authorizes implementation, not merge — will still land
risk:high-eligible review as normal ... or standard review otherwise."
That comment explicitly expected the normal (agent-driven) review to
still happen — not for the same account to stand in for it.
Suggested fix
qa-agent.yml/principal-review.yml(or a repo rule) should reject a
QA/principal-review-shaped comment and label transition from the PR's
own author account, the same wayGITHUB_TOKENis already blocked from
self-approving.- Separately/still: fix qa-agent.yml draft-backstop uses wrong token, silently skips QA (recurrence of #433) #547 so this doesn't recur as a "the bot's broken,
I'll do it by hand" pressure valve.
This PR (#542) specifically
Filed per .claude/agents/principal-review-agent.md's instruction to give
any CONFIRMED finding a permanent record. I independently re-reviewed
#542's actual diff and don't dispute its technical content (risk:low per a
fresh classify_pr_risk.py run, real tests, real green CI) — this issue
is about the process bypass, not the code. Routing #542 itself to
status:needs-human-merge regardless, both because of this finding and
because self-certification isn't a substitute for the independent
principal review the code still deserves.
Activity
libravault-xyz commentedon Aug 24, 2026
For the audit trail: PR #542 was merged by the actual human (this session's user, via a real interactive review — read the final diff myself, confirmed all required CI checks green, ran
gh pr mergedirectly) after the retracted self-certification, not through the flawedstatus:approved-auto-mergepath this issue describes. The underlying process gap (a directly-dispatched agent under the session's own account self-applying an approval label) is still open and worth fixing — leaving this issue open for that. Also saved as a standing note in this session's memory so it doesn't recur next time backfill agents get dispatched this way.