Skip to content

Add deterministic attribution footer to issues and PRs created on behalf of users #584

Closed

Description

@dcramer

When Junior creates a GitHub issue or PR on behalf of a user, there is currently no indication the content was AI-generated. This matters less as a credit attribution and more as a slop warning — a signal to reviewers that the content may not have been carefully written by a human.

Why not prompt steering

Prompt-level instructions to append a footer are non-deterministic: the LLM can skip or drop them. Attribution needs to be enforced in code, not in the model context.

Candidate approaches

  • Tool/plugin wrapper (preferred): Intercept gh issue create / gh pr create calls in the GitHub plugin layer and append a footer (e.g. _Created via Junior_) to the body argument before the API call is made. The LLM never sees or controls this.
  • Post-creation hook: After a successful create, immediately edit the body or post a comment. Slightly weaker (two-step) but still deterministic.
  • Egress middleware: If an HTTP interceptor exists on outbound GitHub API calls, modify the request body there. Same guarantee, different insertion point.

Notes

  • Issues filed under a user's OAuth token already carry their name — the footer is purely a content provenance signal.
  • PRs have a partial equivalent via commit co-authorship, but the PR description body has the same gap.
  • The footer should be minimal: a single line, e.g. ---\n_Created via [Junior](https://github.com/getsentry/junior)_.

Activity

  1. added
    enhancement
    on Jun 10, 2026
  2. sentry-junior commented on Nov 9, 2026

    @sentry-junior
    Contributor

    Fixed on main: typed GitHub issue/PR tools append a deterministic footer and requester attribution (packages/junior-github/src/tools/footer.ts, src/tool-support/attribution.ts; #687, #690, #696, #813).

    Closed during a tracker cleanup. Reopen if something here is still missing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions