Repository navigation
Agents: people on an agent's allowed list can DM it, and a refusal always reaches the sender - #160
Merged
Merged
Conversation
… sender On 13 Nov Chris, on Chris Orchestrator's allowlist, DMed it and got nothing: - The DM branch of the author gate checked only owner-or-sibling and never read the allowlist (upstream block#2591). In allowlist mode an allowlisted author now passes in a DM. The check stays on the author, so a stranger in the same DM gets nothing, and `anyone` stays owner-only in DMs. This diverges from upstream on purpose: keep our arm on the next sync. - The "not set up to take requests" reply failed with HTTP 400 and the relay's reason was thrown away. A non-retriable status now logs and returns the first 200 characters of the body. - The one-notice memo was used up by that failed post, so his next two DMs met silence. The notice now posts, waits 11 s (the relay's membership cache) and tries once more. The memo keeps a (channel, author) claim only once the relay accepted the notice; a failed one releases it so the next message tries again, logs an error and gives the owner a Critical Bench card plus a text (D1). - A mention refused on catch-up (sent while the agent was down) now gets the notice too: it is ledgered when refused, so it never replays twice. Non-mentions still get none. post_notice now returns whether the relay accepted it; the other four callers ignore it. Two older tests that pinned the upstream DM rule are updated: the listener-boundary test now expects an allowlisted DM author through both listeners, and the discovery fail-closed test proves DM hardening with `anyone` + a stranger. Chris's three 13 Nov DMs will not replay (the ledger marked them done); he must send again once this is live. Factory-Task: partner-fixes-15nov/1-chris-dm Claude-Account: russelledeming@gmail.com Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nder Review fixes for the allowlisted-DM slice: - A pair's first failed notice releases its claim once, so the sender's next message tries again, and tells the owner once. Any later failure keeps the claim: a relay that keeps refusing costs no more posts, cards or texts. The card id is keyed on (channel, sender), not the event. - The owner's text goes out from the notice task itself. The beat that sends queued texts runs only while the pool is up, and a refusal arrives while it sleeps. - The text uses alert_aside, not alert_critical: a refusal is not an incident, so it must not mute the next real Critical's text or owe an all-clear nobody expects. - The card's advice no longer assumes allowlist mode: "change who can send it instructions". Factory-Task: partner-fixes-15nov/1-chris-dm Claude-Account: russelledeming@gmail.com Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
QuicksilverSlick
changed the base branch from
upstream-manual/44c8206beacb
to
main
November 18, 2026 23:11
Owner
Author
This was referenced Nov 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Factory-Task: partner-fixes-15nov/1-chris-dm
Built-by: claude-code/claude-opus-5-5
Claude-Account: russelledeming@gmail.com
Undo: revert this PR's merge commit. Allowlisted people are then dropped in DMs again, as upstream does. A refusal notice that fails is again silent, with no retry, card or text. The relay's reason drops out of the log again. Nothing is stored, so nothing needs cleaning up.
Was stacked on #155, which merged in train #172 on 18 Nov; now based on main. #160 and #161 should still ship together.
Ship together with
fix/guest-words-fresh-session(slice 2), in the same train. Please tap both, or neither. The reason is under "Why the two ride together".In plain words
On 13 Nov Chris, who is on Chris Orchestrator's allowed list, DMed it three times and got nothing back.
After this PR:
restricted: not a channel member, so the next failure names the real rule.Chris must resend his three 13 Nov DMs after this is released. The catch-up ledger already marked them done, so they will not replay. Until then he can use a shared channel and tag the agent.
Deliberately different from Block's upstream (block#2591)
Block's block#2591 (cb42c8d) made DMs owner-and-siblings only in every mode, because an agent can be asked to open a DM with anyone. This fork lets allowlisted people through in DMs on purpose: you chose that on Sun 15 Nov 2026. The narrower risk Block guarded against still holds:
anyonemode stays owner-only in DMs.The code comment on the new arm and the flipped test,
test_dm_admits_allowlisted_person_under_allowlist(it replaces upstream'stest_dm_rejects_allowlisted_external_pubkey), both say this. On the next upstream sync, keep our arm. A later Block edit toauthor_allowedarrives as a held commit.Why the two ride together
DMs always get one session per conversation. Once this PR lets an allowlisted person into a DM, that person and you can share one agent session in a group DM. Until slice 2 lands, their words would then sit in that session carrying your trust. Slice 2 starts a fresh session when you speak after a guest. The two merge cleanly (
git merge-tree), and the merged tree passes clippy with-D warnings.What changes
lib.rs,author_allowed: in a DM,RespondTo::Allowlistwith the author on the list returns allowed. The setup-mode comment insetup_mode.rsis updated, because setup mode reuses this gate: an allowlisted person DMing a not-yet-ready agent now gets its setup nudge.relay.rs,request_with_retry: a non-retriable status reads the first 200 characters of the body into the warn log and the error. The client's 10 s timeout bounds the read. Nothing matches on this string.pool.rs,post_notice: now returns whether the relay accepted the notice. The other four callers ignore the result.lib.rs, refusal notice:post_refusal_noticeposts with waits [0, 11 s].settle_refusal_noticethen decides. A landed notice keeps its (channel, sender) claim. A pair's first failure releases the claim once, raises the card and returns the text. Any later failure keeps the claim and raises nothing.lib.rs,gate_notice_due: a refused mention replayed on catch-up now gets the notice. It is ledgered when refused, so it never replays twice.factory.rs,refusal_unseen:<agent>-refused-<channel>-<sender key, 12 chars>, so a restart overwrites the same card instead of adding one;alert_aside, notalert_critical. A refusal isn't an incident, so it must not mute the next real Critical's text or owe you an "all clear" text.Tests
lib.rsgate:test_dm_admits_allowlisted_person_under_allowlisttest_dm_rejects_stranger_under_allowlisttest_dm_ignores_the_list_outside_allowlist_modetest_dm_from_allowlisted_person_passes_the_listener_gate, the 13 Nov incident replayed through the listener gate, with no relay lookup neededlib.rsrefusal notice:backlog_refusal_notices_only_a_ledgered_mention(table)refused_post_names_the_relay_rule(loopback relay returning 400)refusal_notice_retries_until_the_relay_accepts_it: 400 then 200 lands in 2 posts; always 400 stops after exactly 2refusal_memo_releases_a_failed_claim_once: success keeps the claim with no card; the first failure releases the claim and gives 1 card and 1 text; a second failure keeps the claim with no new card or textfactory.rs:refusal_unseen_card_links_the_message_and_never_shows_unsafe_textchecks the title, severity, link, wait line, the pair-keyed id andcard_safebody, one text, and no incident opened.production_listener_boundaries_enforce_dm_author_policynow expects an allowlisted DM author through both listeners.test_discovery_without_metadata_stays_fail_closed_at_author_gateproves DM hardening withanyoneplus a stranger.afdafdcc8): 27 passed, 0 failed.alert_critical: the memo test and the factory test failed.cargo fmt --checkandcargo clippy -p buzz-acp --all-targets -- -D warningsare clean.cargo test -p buzz-acp --no-fail-faston this Windows PC (vcvars64, private target dir):afdafdcc8: lib 1321 passed / 42 failed;e0d86b1fa: 1314 passed / 42 failed.failures:block, are identical, with nothing new and nothing gone. All 42 are the known Windows process-spawn and wall-clock set.Not verified
turn startingfor that DM, and there is no "inbound author gate — dropping" line.deliver_factory_state, and nothing here exercises that send end to end. WithBUZZ_FACTORY_ALERT_CMDunset it is only logged, as for every other alert.post_noticegives up after 5 s, and the relay can still accept it after that. The person may then get the notice twice, and you may get a card saying they weren't told. This is accepted: it happens at most once per person per conversation.Labels:
lane:ready+lane:hold(auth: who may instruct the agent). Open it as a draft, and label it only once CI is green on its head.Size: 5 files, 513 changed lines (467 insertions, 46 deletions).
🤖 Generated with Claude Code