Repository navigation
fix(review-reviewers): resolve target repo's bot from .config/tend.toml - #256
Merged
Merged
Conversation
`BOT_LOGIN=$(gh api user --jq '.login')` returned the analysis bot (e.g., `tend-agent` when review-reviewers runs on tend), which is not the target repo's bot (e.g., `worktrunk-bot`) when analyzing cross-repo. The wrong login was passed to the Haiku outcome-survey subagent, which then reported false "no bot output" negatives. Read `bot_name` from the target repo's `.config/tend.toml` instead — the authoritative source for every tend adopter. Co-Authored-By: Claude Opus 4.6 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The review-reviewers skill's Step 1 resolved
BOT_LOGINwithgh api user --jq '.login', which returns the currently authenticated analysis bot — e.g.,tend-agentwhen review-reviewers runs on tend. That login is not the target repo's bot when analyzing cross-repo (e.g.,worktrunk-boton max-sixty/worktrunk,prql-boton PRQL/prql). The wrong login was then passed into the Haiku outcome-survey subagent's prompt asThe bot's login is `$BOT_LOGIN`., and the subagent filtered reviews/comments by that wrong login → false "no bot output" negatives on runs where real bot reviews were posted.Fix: read
bot_namefrom the target repo's.config/tend.toml— the authoritative source every tend adopter already declares.Evidence
Run: 24295690958 (review-reviewers on max-sixty/worktrunk)
The Haiku subagent I spawned was told
The bot's login is `tend-agent`.and reported:Verified directly with the actual bot login:
So PR #2107 was reviewed+approved+merged, and PR #2104 had three prior bot reviews — the analysis bot filtered them out because it was looking for
tend-agent, notworktrunk-bot. The false negatives would have triggered session-log drilldowns and potentially spurious findings if the main Opus agent hadn't manually double-checked.The prior max-sixty/worktrunk PR #2108 (bot-authored docs PR) also "looked" unreviewed — but that one was a correct silent exit on a self-authored PR, and only visible as such after verifying the bot login manually.
Fix
Before:
BOT_LOGIN=$(gh api user --jq '.login')After:
Verified against all three live tend adopters:
Gate assessment
BOT_LOGINfor cross-repo analysis. Deterministic, not model-dependent.Not fixed here (out of scope)
plugins/tend-ci-runner/skills/review-runs/SKILL.md:101references$BOT_LOGINwithout defining it (that skill runs in-repo, sogh api userwould at least be consistent, but the var is never set). Separate problem; leaving alone.Test plan
worktrunk-botfrommax-sixty/worktrunk/.config/tend.tomltend-agentfrommax-sixty/tend/.config/tend.tomlprql-botfromPRQL/prql/.config/tend.toml🤖 Generated with Claude Code