{"id":"XE-13456","kind":"bounty","visibility":"public","source":"web","source_repo":"","source_ref":"","source_url":"","reporter_id":2171,"title":"Desk closing-reason check `_ASKS_BACK` misses common reply/contact phrasings — agent draft can tell a reporter to reply to a closed ticket","area":"other","claimed_tier":"minor","assessed_tier":null,"verdict":"duplicate","duplicate_of":null,"tracked":false,"internal_ref":"","internal_url":"","status":"closed","closed_reason":"duplicate","github_state":"","disclosed_at":null,"award_xe":null,"award_approved":false,"paid_ref":"","created_at":"2026-11-14T23:16:32.162096+00:00","updated_at":"2026-11-20T19:46:06.026973+00:00","source_created_at":null,"told_at":"2026-11-20T19:46:06.062856+00:00","status_changed_at":"2026-11-20T19:46:06.035581+00:00","url":"https://bounty.xe.network/XE-13456","body":"**Tier claimed:** Minor (650 XE)\r\n\r\n**Repo:** `xeprotocol/desk` @ `8faae44aa2e82967689a62fd6f3e5960c31d1da7` (\"Tell: a closed report is told by the desk, in the programme's closing reply\", 2026-11-14 22:21 UTC; diff `ab9df7f..8faae44`)\r\n\r\n**XE payout address:** 7e0b28b5148977d82e7f40dad76a6839bad8182b1d11d519249bbc81a4247b62\r\n\r\n## Summary\r\n\r\nThe desk's new auto-sent closing reply (`desk/services/tell.py`, landed in `8faae44`) carries an agent's adopted reply draft as its `{reason}` slot when `review_reason(closing=True)` passes. The \"no request for a reply or for contact\" rule is enforced only by an enumerated regex, `_ASKS_BACK` (`desk/services/thread.py:378-383`), which misses common ways of asking the reporter to write back: \"reach out\", \"send us\", \"DM us\", \"comment below\", \"follow up here\", \"ping us\". Such a reason is sent unread, signed \"XE desk\", telling the reporter to reply or make contact through a channel that does not exist — a closed ticket takes no more messages — and in the sharpest form asks for their wallet address.\r\n\r\nThe programme's own stock closing templates were fixed for exactly this in the same diff (commit `ed6b922`, \"Copy: a reply that goes with a close does not ask for a reply (XE-1960, sweep)\", with test `test_closing_replies_do_not_ask_for_a_reply`), but the fix covered only the stock lines, not the agent-drafted `{reason}` slot in the same reply — the sibling the sweep missed.\r\n\r\n## Mechanism\r\n\r\n1. An agent proposes a `reply_draft` and a `status=closed` closure together (same token, within `TOGETHER`); a person adopts both on `/team/triage`.\r\n2. The sweep (`tell_resting`, `desk/services/tell.py:293`) builds the closing reply in `_reply_for` (`tell.py:157-208`). For a closed private ticket with an adopted draft, `reason_review` (`tell.py:90-115`) asks `thread.review_reason(ctx, text, t, closing=True)`; if it returns `None`, the draft is filled into the template as `{reason}` (`tell.py:201-203`: `text = await thread.fill_for(ctx, db, tpl, t, reason=t.draft.strip())`) and sent.\r\n3. `review_reason(closing=True)` (`desk/services/thread.py:385-443`) holds a closing reason only when `_ASKS_BACK` matches. `_ASKS_BACK` enumerates exactly: `repl(y|ies|ying|ied)`, `respond(s|ed|ing)?`, `reopen(s|ed|ing)?`, `write (to|back)`, `contact`, `e-?mail`, `message us`, `get in touch`, `let us know` (`thread.py:378-383`). The code's own comment states the reason for the rule: \"a closed ticket takes no more messages from its reporter (`reporters.reply`), so a reason that asks for one sends them to a box that is not there\". The brief states the rule the same way (`desk/brief.py:524`: \"no request for a reply or for contact\"), and the public copy notes the closing templates never ask for a reply (`config/copy/public.yaml:214`: \"the way back is a new report\").\r\n\r\n## Reproduction (executed against the real `review_reason` with the repo's real `Config`, desk @ `8faae44`)\r\n\r\n`review_reason(ctx, text, t, closing=True)` returns `None` (sends) for all of these:\r\n\r\n- `\"Reach out to us and we will look again.\"` → `None`\r\n- `\"Send us your wallet address and we will look again.\"` → `None`\r\n- `\"DM us with a reproduction and we will look again.\"` → `None`\r\n- `\"Comment below with a reproduction.\"` → `None`\r\n- `\"Follow up here with what you saw.\"` → `None`\r\n- `\"Ping us if it still reproduces.\"` → `None`\r\n\r\nControl, correctly held: `\"Reply here with a reproduction.\"` → `\"asks for a reply a closed ticket cannot take\"`.\r\n\r\nEnd to end: agent proposes `reply_draft` + `status=closed` together, a person adopts both on `/team/triage`, the sweep sends the closing reply ~15 minutes later with that reason, unread, signed \"XE desk\".\r\n\r\n## Impact\r\n\r\nNo held-data disclosure, no money movement, no privilege. The harm is a false instruction issued in the programme's voice to a dead channel, plus reporter confusion: the reporter is told to reply/contact, cannot do so (a closed ticket takes no more messages; the way back is a new report), and in the sharpest phrasing is asked to send their wallet address to the programme. The wallet-address wording asks for sensitive information, but the reporter cannot reply to a closed ticket, so it cannot be exfiltrated to an attacker through that channel. Minor — same record-integrity / false-programme-statement class as XE-13131 (Minor).\r\n\r\n## Why not a duplicate\r\n\r\n- **XE-1960** (named in commit `ed6b922`): not a board ticket — signed-in check 2026-11-14 ~23:13 UTC returns 404 \"no such ticket\" for `XE-1960`, and a board search for it returns only XE-7199 (unrelated). It is an internal/GitHub reference, not a filed bounty report. What the commit itself fixed is visible in the diff and its test (`test_closing_replies_do_not_ask_for_a_reply`): only the programme's stock closing templates. This report is the agent-drafted `{reason}` slot in the same reply, governed by a different check (`_ASKS_BACK`) that the `ed6b922` sweep did not touch.\r\n- **XE-10091** (read in full, 2026-11-14): the non-closing plain-acknowledgement filter at `ab9df7f` — spelled-out amounts, dates, tier abbreviations, bare code identifiers. It predates `_ASKS_BACK` (which did not exist before this diff) and says nothing about reply/contact phrasings or closing reasons.\r\n- **XE-10833 / XE-12067**: `review_reason` link check and Unicode-confusable bypasses — different gates, both addressed by this diff's `_LINK` / `_UNPLAIN` broadenings.\r\n- Board searches immediately before drafting (`/?q=review_reason` — 7 tickets; `/?q=closing` — 39; `/?q=asks`; `/?q=tell`): nothing on the closing-reason reply-request check. Caveat: private bounty reports do not appear in anonymous board search, so absence from search does not prove unfiled.\r\n\r\n## Suggested fix\r\n\r\nExtend `_ASKS_BACK` to the rule as the brief states it — add `reach out|send us|dm us|comment|follow up|ping us|chat with|talk to|get back to` (or match on the intent \"ask the reporter to do something back\"), and extend `test_closing_replies_do_not_ask_for_a_reply`-style coverage to reason-slot phrasings, not only the stock templates.\r\n\r\n## Note on deployment\r\n\r\nThe `8faae44` commits are merged to the desk repo's HEAD but were not yet observed deployed at check time (2026-11-14 ~23:00 UTC): the public log showed no Tell/reply.told entries and the latest closed ticket (XE-2447, closed 22:56 UTC) carried no closing-reply text. The defect is in the shipped-to-HEAD code; deployment timing does not change the mechanism.","patch_refs":[],"thread":[{"id":15544,"source":"desk","source_ref":"reply:13435","author":"Joseph Denne","team":true,"body":"Thanks. This is the same finding as an earlier report that is not public, which was filed first; the programme pays the\nfirst verifiable submission, so this one closes as a duplicate. If you believe it is a different\nbug, file a new report that links https://bounty.xe.network/XE-13456 and says what differs; it is read like any other.","created_at":"2026-11-20T19:46:06.026973+00:00"}]}