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
7 changes: 7 additions & 0 deletions docs/incidents/cu_chat_answers_the_question.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# cu. `cu_chat_answers_the_question`

**What happened:** A team's CTO opened chat for the first time and asked what could be useful to someone in his role. Chat answered a different question. It led with "what's waiting on you" (24 items, one ticket's details first), because the prompt sent any "what should I work on" style question to that list and the list's lookup told the model to write every answer in its fixed shape. It also said Jira wasn't connected, a claim no check in that answer supported. His next message had to correct it, and chat walked the claim back only in part. Earlier, a question that linked a pull request comment got the canned "found nothing" line, because any answer that cited nothing was replaced by it, whatever the question.

**The guarantee:** Chat reads a question before it answers: what the person wants (an orientation, what Chat can do, what needs me, a status, a how-to, a lookup, a judgement, a correction of Chat itself, or small talk), the role they say they hold, and, for a correction, the sentences of the last answer they question. It answers that question first and sizes the answer to it. The "what needs me" list keeps its fixed shape only for that question; for any other, the lookup says to use only what answers it. An orientation looks the team's setup up (`coderhelm_setup`: each connection checked with the integrations page's own test, the runs and records counted) before it may answer. A correction must check the disputed point again in that answer, and a check that failed is named as that check, never as "not connected". An uncited reply is kept only for small talk; any other answer that cites nothing looks once with its tools before the plain no-source line replaces it.

**Where it's enforced:** `common::chat_intent::{read, Intent::fixed_shape, Intent::uncited_ok, Reading::note}`, `common::knowledge::answer::finalize_reply`; in the gateway, `chat_understand::{read, Understood::must_look, Understood::order}`, `chat_setup::{render, github_check, jira_check}`, `chat_work_needs::{render_for, NOT_THE_LIST}`, `chat_agent::cite_something`, `chat_hints` (pull request links), and the "Understand the question first" and "Check before you claim" parts of `brain::CHAT_SYSTEM`. The replay evals are `chat_eval_replay`.
2 changes: 2 additions & 0 deletions services/common/src/agent_policy/registry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,8 @@ pub const BUILTIN: &[(&str, Risk)] = &[
("work_findings", Risk::Read),
("work_records", Risk::Read),
("work_needs_me", Risk::Read),
// What Coderhelm is set up to do for the team, checked now (chat_setup.rs).
("coderhelm_setup", Risk::Read),
// A chat asking the person to connect an account (shows a sign-in card).
("request_sign_in", Risk::Read),
// Plugin runs: the plugin's own skills, and drafts kept in CoderHelm
Expand Down
Loading
Loading