feat(claw): a mention of the daemon is an ask, not a phone buzz #3

Merged
vhaudiquet merged 1 commits from kosmos/rhema-claw:feat/mention-dispatch into main 2026-11-21 22:10:24 +00:00
Collaborator

Why

Once #2 merged, a repo watch stopped answering threads nobody addressed. The other half of the same intent is missing: the daemon ignores the one thread that did address it.

triage::classify maps GitHub's mention reason to Triage::Surface. The surface arm pushes a device notification and never feeds the dispatcher — so @kosmos-ai-bot on an issue numbs a phone and starts no turn. The mention goes unanswered, and nothing in the log says so.

That verdict is correct for a consumer that only notifies: a mention of somebody else is not an assignment. It is wrong for a resident agent, which is the party named.

What

claw_triage takes the shared vocabulary as the base and upgrades this one reason to Agent(Role::Implementer) — the seam triage documents for consumers ("classify is the default, not a mandate").

Every other reason keeps its base verdict; a test pins that, so the co-edit rule that module describes still binds.

Effect

With a GitHub account watch (the notifications feed, not per-repo watches), a mention on any repo the account can see — present or future — dispatches a thread session that reads the issue and answers it. That is the whole point of the feature: addressable everywhere, no watch per repo.

Checks

  • cargo fmt --all --check, cargo clippy --workspace --all-targets -- -D warnings, cargo check --workspace --all-targets: green locally.
  • Two new unit tests: a mention dispatches as implementer; every other reason equals triage::classify.
## Why Once `#2` merged, a repo watch stopped answering threads nobody addressed. The other half of the same intent is missing: the daemon ignores the one thread that *did* address it. `triage::classify` maps GitHub's `mention` reason to `Triage::Surface`. The surface arm pushes a device notification and never feeds the dispatcher — so `@kosmos-ai-bot` on an issue numbs a phone and starts no turn. The mention goes unanswered, and nothing in the log says so. That verdict is correct for a consumer that only notifies: a mention of somebody else is not an assignment. It is wrong for a resident agent, which is the party named. ## What `claw_triage` takes the shared vocabulary as the base and upgrades this one reason to `Agent(Role::Implementer)` — the seam `triage` documents for consumers ("`classify` is the default, not a mandate"). Every other reason keeps its base verdict; a test pins that, so the co-edit rule that module describes still binds. ## Effect With a GitHub **account** watch (the notifications feed, not per-repo watches), a mention on any repo the account can see — present or future — dispatches a thread session that reads the issue and answers it. That is the whole point of the feature: addressable everywhere, no watch per repo. ## Checks - `cargo fmt --all --check`, `cargo clippy --workspace --all-targets -- -D warnings`, `cargo check --workspace --all-targets`: green locally. - Two new unit tests: a mention dispatches as implementer; every other reason equals `triage::classify`.
kosmos added 1 commit 2026-11-21 22:02:54 +00:00
feat(claw): a mention of the daemon is an ask, not a phone buzz
android / release (pull_request) Skipped
android / debug (pull_request) Successful in 2m51s
ci / checks (pull_request) Successful in 1m10s
ci / test (pull_request) Successful in 37s
ci / chart (pull_request) Successful in 6s
ci / docker (pull_request) Successful in 1m34s
ci / web (pull_request) Successful in 14s
ci / publish-edge-images (deploy/docker/claw.Dockerfile, rhema-claw) (pull_request) Skipped
ci / publish-edge-images (deploy/docker/ui.Dockerfile, rhema-claw-ui) (pull_request) Skipped
ci / publish-edge-chart (pull_request) Skipped
android / debug (push) Successful in 3m0s
android / release (push) Successful in 2m6s
ci / checks (push) Successful in 1m9s
ci / test (push) Successful in 42s
ci / chart (push) Successful in 5s
ci / docker (push) Successful in 1m28s
ci / web (push) Successful in 12s
ci / publish-edge-images (deploy/docker/claw.Dockerfile, rhema-claw) (push) Successful in 1m33s
ci / publish-edge-images (deploy/docker/ui.Dockerfile, rhema-claw-ui) (push) Successful in 8s
ci / publish-edge-chart (push) Successful in 3s
9c13455f35
The notifications feed triaged a GitHub `mention` as `Triage::Surface`:
the human hears about it, no agent runs. That verdict is right for a
consumer that only notifies — a mention of somebody else is not an
assignment — but this daemon is the party named. Somebody typed
`@handle` on a thread and is waiting for an answer, which is the same
ask an assignment is.

The bug that follows is silent: the surface arm never feeds the
dispatcher, so the thread is never dispatched and the mention is never
answered. Nothing looks broken; the phone buzzed.

`claw_triage` keeps the shared vocabulary as the base and upgrades
this one reason, the seam `triage` names for consumers ('classify is
the default, not a mandate'). Every other reason keeps its verdict, so
the co-edit that pinned those tests still holds.
vhaudiquet merged commit 9c13455f35 into main 2026-11-21 22:10:24 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: vhaudiquet/rhema-claw#3