Skip to content

fix(buzz-acp): log author-gate rejections at INFO, not DEBUG - #5630

Open
Cynthia427 wants to merge 1 commit into
block:mainfrom
Cynthia427:author-gate-rejection-visibility
Open

fix(buzz-acp): log author-gate rejections at INFO, not DEBUG#5630
Cynthia427 wants to merge 1 commit into
block:mainfrom
Cynthia427:author-gate-rejection-visibility

Conversation

@Cynthia427

Copy link
Copy Markdown

Problem

author_allowed returning false drops the inbound event with a DEBUG-level log line. Under default (INFO) logging that means a rejection produces no operator-visible signal at all — and the sender gets nothing back either, so a blocked mention fails identically to a working one from both ends.

Measured on a production fleet: 7 days of journalctl across 8 agents contained zero gate lines while a user's mentions were being silently dropped. The only diagnosis path was reasoning about the absence of evidence.

Change

Both gate rejection sites — the normal-mode inbound loop and the setup-mode nudge gate (should_nudge_for_event) — now log at INFO with the event id included, so one grep answers "why did @agent ignore this message": author pubkey, channel, respond_to mode, is_dm, event id.

A refusal that produces no signal is indistinguishable from success; this keeps the gate's behavior identical while making it observable.

Testing

  • cargo check -p buzz-acp, cargo fmt --check clean; full pre-push suite (rust-tests, desktop, mobile) green.
  • No behavioral change — log level and fields only.

🤖 Generated with Claude Code

An author-gate rejection is invisible to the sender — their mention just
sits there with no reaction — so the operator's log is the only place the
refusal exists at all. At DEBUG level under default logging, a blocked
mention is indistinguishable from a working one from both ends: seven days
of journal on a production fleet contained zero gate lines while a user's
mentions were being silently dropped, and the only diagnosis path was
reasoning about absence.

Bump both gate rejection sites (normal-mode inbound loop and setup-mode
nudge gate) to INFO and include the event id, so one grep answers 'why
did @agent ignore this message'.

Signed-off-by: Cynthia Rohr <cynthia.r@kreativreason.co>
@Cynthia427
Cynthia427 requested a review from a team as a code owner August 12, 2026 06:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant