Skip to content

fix(running-in-ci): harden GitHub URL construction guidance - #222

Merged
max-sixty merged 1 commit into
mainfrom
hourly/review-24254635570
Apr 10, 2026
Merged

max-sixty merged 1 commit into
mainfrom
hourly/review-24254635570

Conversation

@tend-agent

Copy link
Copy Markdown
Collaborator

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.com link.

Evidence

Two recent tend-triage comments on max-sixty/worktrunk have shipped broken links because the model hardcoded a wrong owner:

  1. 2026-04-02 — Run 23889208419, triage on issue wt step prune seems very slow worktrunk#1888, session d544ecc6-8bb7-4bfe-85a6-82bef8bec237.jsonl. Comment linked https://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".
  2. 2026-04-10 — Run 24254699778, triage on issue exit code when running empty hooks? worktrunk#2055, session 225e9f4d-8007-4b63-9a5a-f8f899e16891.jsonl. Comment linked https://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:

  • Bold heading so it survives skimming.
  • Concrete construction template https://github.com/${GITHUB_REPOSITORY}/....
  • The two real wrong-answers as examples, so the model pattern-matches away from them.
  • An explicit pre-post check step (grep for github.com/, verify owners).

Gate assessment

  • Evidence level: High — consistent pattern of user-visible comments with broken links, 2 occurrences of hardcoded-wrong-owner (specifically) + 1 related URL-grounding lapse. Failures are in public-facing bot output.
  • Classification: Structural-ish stochastic — the lapse happens when the skill guidance is too weak to counter the model's default URL-composition habit. Strengthening the guidance is a predictable mitigation.
  • Change type: Targeted fix — replaces one sentence with a slightly longer paragraph. Not a new section, not a structural reorg.
  • Passes both gates: Yes — High/2–3 meets the threshold for targeted fixes.

Test plan

  • Running-in-ci skill still reads cleanly from the Comment Formatting section.
  • Next triage run that emits a github.com/… URL uses max-sixty/... (observable in tracking issue review-reviewers-tracking: 2026-04 #133).

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]>
@tend-agent tend-agent added the claude-behavior Behavioral issues found by review-reviewers label Apr 10, 2026
@max-sixty
max-sixty merged commit beb58ed into main Apr 10, 2026
3 checks passed
@max-sixty
max-sixty deleted the hourly/review-24254635570 branch April 10, 2026 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

claude-behavior Behavioral issues found by review-reviewers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants