Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions docs/incidents/xm_every_ask_seen_and_answered.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# xm. `xm_every_ask_seen_and_answered`

**What happened:** The owner commented `@CoderHelm re-review` on a person's pull request and nothing visibly happened. He asked again by pasting the mention, and GitHub's editor had turned it into the link it rendered: `https://github.com/CoderHelm re-review`. That second comment was not read as addressed to CoderHelm at all.

**Why:** The parser only knew the text `@coderhelm`, so a pasted link to the organization or the app was no command. An accepted command showed nothing in the conversation until its answer posted, so a re-review that waited behind another review of the same commit, or ran long, looked exactly like one that was lost. A command refused because its author has no standing in the repository, or because the reviewer is off for the repository, was refused in a log line only. A person whose login contains the name was taken for the app, and their command was dropped.

**The guarantee:** Every way a person addresses CoderHelm counts: `@coderhelm`, `@CoderHelm`, `@coderhelm[bot]`, the app's slug, the pasted link to the organization or the app, and a Markdown link to either, in any case and with any punctuation around it. A link alone, or one inside a sentence, is a reference and not a command, and neither an email address nor a link to a repository addresses CoderHelm. When a person's command is accepted, the gateway puts 👀 on their comment before the work is queued. The review that answers it swaps 👀 for 🚀. A refused command gets one short reply saying why, once per comment. A re-review ask that comes while an identical review of the same commit is running keeps its 👀 and is answered by that review's verdict, so two quick asks make one review and never zero. An ask the running review did not answer (it failed, it reviewed another commit, or it posted nothing new) runs its own review after its waits. A person's re-review ask is always a fresh model review, even when nothing on the commit changed: asking means they want a real second look. Only automatic triggers return the standing verdict without one. An edit that makes a comment a command runs it once, under its own job key, so it is never mistaken for a repeat of the comment's first version.

**Where it's enforced:** `common::address::{parse_ask, ask_added_by_edit, ask_key, strip_address}`. `common::review_ack::{Ack, see, swap, register, to_settle, collapsed, mark_answered, refusal_line, refusal_sk}` and `common::claim::claimed_at`. The gateway's `github_webhook::{handle_issue_comment, handle_review_comment, send_review_job, acknowledge, refuse}`. The worker's `review_pr::{run_once, store_review_record, settle_acks, collapsed_ask}` and `review_policy::{start, claim_still_running}`.
Loading