Skip to content

issues post-comment: verify the comment author before editing, and fail closed on an unresolvable identity #7886

Closed

Description

@waynesun09

Why

fullsend issues post-comment (GitHub, GitLab) finds its earlier sticky comment by marker text alone. Anyone who can comment can plant a comment carrying an agent's marker before the bot's first comment. Comments are listed oldest first, so every later run then targets the planted comment. The bot either writes its findings into someone else's comment, or the edit is refused and every run fails. A later all-clear can never replace the findings either.

Change

  • An existing comment is edited only when it carries the marker and its author is exactly the identity the command posts as. That identity is resolved through forge.Client.GetAuthenticatedUser, which also covers App installation tokens and Actions' GITHUB_TOKEN through GraphQL viewer. Login shape (a [bot] suffix, a prefix) is never a trust signal.
  • A planted marker comment is ignored, and a new comment is posted.
  • If the identity cannot be resolved after a short retry, the command fails with an error naming the cause, and posts or edits nothing. Posting a new comment instead would orphan the earlier one, whose content no later run would update.
  • Jira gets the same rule: the author's account ID must equal the one from GET /myself, checked before both the marker-property lookup and the legacy body-text fallback.

The --only-if-exists flag that builds on this ships separately in #7917 (part of #6966), stacked on the PR that closes this issue.

Breaking

  1. issues post-comment now fails when it cannot resolve the identity it posts as, including under --dry-run. Before, it never failed for this reason.
  2. A marker comment written by a different identity is no longer edited. After a token rotation, a PAT → GitHub App migration or another identity change, the next run posts a new comment instead of updating the old one.

Follow-up for the deprecated fullsend post-comment (sticky.Post), which still falls back to marker-only matching when the identity lookup fails: #7884.

Activity

  1. fullsend-ai-triage commented on Oct 1, 2026

    @fullsend-ai-triage

    🤖 Finished Triage · ✅ Success · Started 2:06 AM UTC · Completed 2:10 AM UTC

    Commit: 114478f · View workflow run →

    Runtime: claude · Model: sonnet → claude-sonnet-5 · Effort: high · Cost: $0.47

  2. added
    pr-open
    on Oct 1, 2026
  3. fullsend-ai-triage commented on Oct 1, 2026

    @fullsend-ai-triage

    A follow-up pull request is open that implements exactly what this issue describes. The originally-linked PR (#7243) was closed without merging because it bundled this change with unrelated work; #7916 was split out from it to cover this fix on its own, and its description states it closes both this issue and #6236. Its test plan covers planted/look-alike marker-comment authors, transient and persistent identity-lookup failures, and the Jira create/update path, consistent with the behavior requested here. The related --only-if-exists flag (#7917) and the deprecated fullsend post-comment follow-up (#7884) remain separate, non-blocking tracked work as noted in the issue body.

    Addressed by:

    Previous run

    An open pull request already implements the behavior requested here: marker comments on issues post-comment (GitHub/GitLab) are now only edited when the existing comment's author exactly matches the identity resolved via forge.Client.GetAuthenticatedUser, the command fails closed (after a short retry) when that identity can't be resolved, and a new --only-if-exists flag has been added for update-only posting. The PR's description states it closes this issue, and its test plan covers planted/look-alike marker comments, transient vs. persistent identity-lookup failures, and the Jira create/update path. Note the PR is bundled with two other unrelated changes (status-flattening and a read-only mount for the review role) as part of a larger changeset, so it may take a bit longer to land than an issue-scoped PR would. The deprecated fullsend post-comment (sticky.Post) path is intentionally left unchanged by this PR and is tracked separately.

    Addressed by:

  4. fullsend-ai-triage commented on Oct 1, 2026

    @fullsend-ai-triage

    🤖 Finished Triage · ✅ Success · Started 2:52 PM UTC · Completed 2:55 PM UTC

    Commit: 1e7d0e0 · View workflow run →

    Runtime: claude · Model: sonnet → claude-sonnet-5 · Effort: high · Cost: $0.43

  5. added
    pr-open
    and removed
    pr-open
    on Oct 1, 2026
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

    pr-open

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions