Repository navigation
fix(running-in-ci): harden GitHub URL construction guidance - #222
Merged
Merged
Conversation
Two user-visible triage comments on max-sixty/worktrunk have shipped with the wrong repository owner in their GitHub links: `anthropics/worktrunk` (2026-04-02 on issue #1888) and `worktrunk/worktrunk` (2026-04-10 on issue #2055). Both links 404. The running-in-ci skill already said "derive the owner from `$GITHUB_REPOSITORY` — never guess or hardcode the organization in URLs," but as a single passive sentence it did not prevent the model from reaching for a plausible owner from context (training-data canonical org, or the repo name itself). Strengthen the guidance: bold heading, concrete construction template, the two real wrong-answers as examples, and an explicit pre-post check step. 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
Strengthen the running-in-ci skill's guidance on constructing GitHub URLs, after a second occurrence of the bot shipping a user-visible comment with the wrong repository owner in a
github.comlink.Evidence
Two recent tend-triage comments on
max-sixty/worktrunkhave shipped broken links because the model hardcoded a wrong owner:wt step pruneseems very slow worktrunk#1888, sessiond544ecc6-8bb7-4bfe-85a6-82bef8bec237.jsonl. Comment linkedhttps://github.com/anthropics/worktrunk/blob/f6e89009/src/git/mod.rs#L222-L261— the bot reached for the canonical "anthropics" org from training data. Recorded in review-reviewers-tracking: 2026-04 under "Hardcoded organization in URL".225e9f4d-8007-4b63-9a5a-f8f899e16891.jsonl. Comment linkedhttps://github.com/worktrunk/worktrunk/blob/main/src/commands/hook_commands.rs#L214-L226— this time the bot inferred the owner from the repo name. Both links 404.A third, related URL-grounding failure (inferred docs path
https://worktrunk.dev/claude-code/on issue max-sixty/worktrunk#1903) is recorded in the same tracking issue — the overall pattern is "model composes URLs from context rather than verifying the source."The running-in-ci skill has had a one-sentence "derive the owner from
$GITHUB_REPOSITORY— never guess or hardcode the organization in URLs" directive since #100 (2026-03-29). Both failures above happened after that guidance landed, so a passive sentence is not enough.Root cause
When composing a
github.com/…URL in a comment, the model picks a plausible owner from context: training-data canonical org (anthropics) or the repo name itself (worktrunk/worktrunk). It does not consult$GITHUB_REPOSITORY.Fix
Replace the passive sentence with an imperative block:
https://github.com/${GITHUB_REPOSITORY}/....github.com/, verify owners).Gate assessment
Test plan
github.com/…URL usesmax-sixty/...(observable in tracking issue review-reviewers-tracking: 2026-04 #133).