Skip to content

Every ask to CoderHelm is seen and answered - #960

Merged
coderhelm[bot] merged 7 commits into
mainfrom
every-ask-seen-and-answered
Dec 4, 2026
Merged

coderhelm[bot] merged 7 commits into
mainfrom
every-ask-seen-and-answered

Conversation

@nambok

@nambok nambok commented Dec 3, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

A person's request to CoderHelm is never lost, and it is always visibly acknowledged.

  • Every way a person addresses CoderHelm now counts: @coderhelm, @CoderHelm, @coderhelm[bot], the app's slug, the link GitHub's editor makes when a rendered mention is pasted (https://github.com/CoderHelm re-review), and a Markdown link to the organization or the app. Case and surrounding punctuation don't matter. A link on its own, or inside a sentence, is a reference and not a command. Neither an email address nor a repository link addresses CoderHelm.
  • An accepted command gets 👀 from the gateway before its work is queued. The review that answers it swaps 👀 for 🚀.
  • A refused command gets one short reply saying why: the author has no standing in the repository, or the reviewer is off for it.
  • A re-review ask that arrives while an identical review of the same commit is running keeps its 👀, and that review's verdict answers it. Two quick asks make one review, never zero. If the running review doesn't answer the ask, the ask runs its own review after its waits. That covers a review that failed, reviewed another commit, or posted nothing new.
  • A person's explicit re-review ask (a comment or GitHub's re-request) always runs a fresh model review, even when nothing on the commit changed. The no-model "Unchanged since my last review" answer to a person's ask is gone. Automatic triggers keep the cheap path: a reviewed commit's verdict stands with no model work.
  • An edit that turns a comment into a command runs it once, under its own job key, so it is never mistaken for a repeat of the comment's first version.
  • A person whose login contains the product name is a person. Only the app's own account is treated as CoderHelm.

Changes

  • common::address (new): the one parser for every comment surface, moved out of the gateway. It recognizes every address form, keeps @-mentions valid anywhere outside quotes and code, and accepts a link only when it opens a line and words follow it. It also holds ask_added_by_edit and ask_key for edits.
  • common::review_ack (new): the ask record, the 👀 and 🚀 reaction steps behind a small Reactions trait, the rule for which waiting asks a stored review answers, the collapse check, and the refusal lines with their once-per-comment key.
  • common::claim::claimed_at: when a live claim was taken.
  • ReviewMessage.ack: the comment that asked, carried to the job.
  • Gateway github_webhook:
    • send_review_job reacts and records the ask before it queues the job.
    • handle_issue_comment and handle_review_comment attach the ask, reply once to a refused command, and key edits separately.
    • Run and fix-round commands get 👀 too.
    • The commenter check uses is_coderhelm_user.
  • Worker:
    • store_review_record settles the asks it answers.
    • run_once ends an ask that the running review already answered.
    • A person's ask now waits whenever the commit's claim is newer than its last finished review (review_policy::claim_still_running), not only when the commit was never reviewed.
    • review_pr::run_once no longer answers a person's ask from the standing verdict; review_policy::{answers_from_standing, standing_answer} are removed, and their tests now assert a fresh review.
    • GitHubClient::remove_reaction and a Reactions impl were added.
  • Incident case xm_every_ask_seen_and_answered and its page.

Verification

  • cargo fmt --all --check, and rustfmt --check on the incident cases.
  • cargo clippy -p common -p worker -p gateway --all-targets -- -D warnings
  • cargo test -p common -p worker -p gateway
  • brand_spelling.py and domain_examples.py
  • The new tests replay these cases with invented comments:
    • every addressing form, including the pasted link and Markdown links;
    • references that must not count;
    • an edit that makes a command;
    • 👀 added, then swapped for 🚀;
    • a person's ask on an unchanged commit getting a fresh review, while an automatic trigger keeps the standing verdict;
    • a second ask while a review runs, collapsing into one review;
    • asks the running review didn't answer, still running their own;
    • a refused command answered once.

Every way a person addresses CoderHelm counts: @CoderHelm in any case,
@CoderHelm[bot], the app's slug, the link GitHub's editor makes of a
pasted mention, and a Markdown link to the organization or the app. A
link alone or inside a sentence is a reference, not a command.

An accepted command gets an eyes reaction from the gateway before its
work is queued, and the review that answers it swaps it for a rocket. A
refused command gets one short reply saying why. A re-review ask that
comes while an identical review of the commit is running is answered by
that review's verdict: two quick asks make one review, never zero. An
edit that makes a comment a command runs it under its own job key, and a
person whose login contains the name is no longer taken for the app.

Incident case xl_every_ask_seen_and_answered.
Another open pull request took xl.
@nambok nambok added the ch-review CoderHelm reviews this pull request label Dec 3, 2026
coderhelm[bot]

This comment was marked as outdated.

coderhelm[bot]

This comment was marked as outdated.

@coderhelm
coderhelm Bot dismissed their stale review December 3, 2026 22:05

Superseded by CoderHelm's latest review

coderhelm[bot]

This comment was marked as outdated.

@coderhelm
coderhelm Bot dismissed their stale review December 3, 2026 22:53

Superseded by CoderHelm's latest review

Asking means they want a real second look, so a person's re-review ask runs
a fresh model review even when nothing on the commit changed. Automatic
triggers keep the standing verdict with no model work. Two asks still
collapse into one fresh review.
coderhelm[bot]

This comment was marked as outdated.

@coderhelm
coderhelm Bot dismissed their stale review December 4, 2026 02:26

Superseded by CoderHelm's latest review

@coderhelm

coderhelm Bot commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

💚 Post-merge health check passed: the deploy of b92a277 completed and stayed green for the full 15-minute watch window (no new failures vs. the pre-merge baseline).
Auto-merge

  • ✅ CoderHelm approved
  • ✅ CI green
    The rest is in the pull request description.

coderhelm[bot]

This comment was marked as outdated.

coderhelm[bot]

This comment was marked as outdated.

coderhelm[bot]

This comment was marked as outdated.

@coderhelm coderhelm Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Approved 08c9bd5 (merged)

// A command from someone who may not ask is told why, once; other
// conversation on CoderHelm's PR is left alone.
if ask.is_some() {
refuse_comment(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛑 Blocking (correctness): Near-identical helpers added together (scope)

services/gateway/src/routes/github_webhook.rs adds refuse_comment next to see_comment, added in the same change. Keep one helper with the shared logic (a parameter for what differs) and call it from both places. If the ticket truly needs it, say why on a line Wider than the ticket: services/gateway/src/routes/github_webhook.rs: <why>.

//! no command. And an accepted command showed nothing in the conversation
//! until its answer posted: 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 for its author's standing, or because the reviewer is

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛑 Blocking (correctness): Near-identical helpers added together (scope)

services/worker/src/passes/incidents/xm_every_ask_seen_and_answered.rs adds reviewer next to webhook, added in the same change. Keep one helper with the shared logic (a parameter for what differs) and call it from both places. If the ticket truly needs it, say why on a line Wider than the ticket: services/worker/src/passes/incidents/xm_every_ask_seen_and_answered.rs: <why>.

@coderhelm
coderhelm Bot merged commit b92a277 into main Dec 4, 2026
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ch-review CoderHelm reviews this pull request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant