Skip to content

Chat-reply poller: stay silent on /approve for intents held by another poller - #141

Merged
ThinkOffApp merged 1 commit into
mainfrom
fix/silent-owner-refusal-for-foreign-intents
Oct 7, 2026
Merged

ThinkOffApp merged 1 commit into
mainfrom
fix/silent-owner-refusal-for-foreign-intents

Conversation

@ThinkOffApp

Copy link
Copy Markdown
Owner

Bug (7 Oct 2026): petrus approved 2806f59b. The Mini's poller (holds the intent, lists him as owner) settled it. This MacBook's poller (owners: [], never held the id) replied in the room that it was "NOT recorded". The owner check runs before the intent lookup, so the 30 Aug fix for the unknown-intent branch never got a chance to apply.

Fix: in the non-owner branch, reply only if this poller holds the intent; otherwise log and continue. Who may settle is unchanged: non-owners still cannot settle anything.

Test: new chat-reply poller: a non-owner /approve for an intent held elsewhere stays silent. Negative control: with the src change reverted it fails (posts.length 1, expected 0). npm test: 842/842 pass.

Also: test/real-agent-demo.mjs moved to scripts/. It is a live demo that posts a real confirmation card and waits 10 min; a bare node --test (default glob includes test/**) ran it and sent petrus two "deploy build to production server?" cards today. npm test was never affected.

Daemon core: needs codexmb's review before merge.

🤖 Generated with Claude Code

…stays silent

The owner check ran before the intent lookup, so a poller with no owners
that never held the intent still posted 'NOT recorded' over an approval the
owning poller had settled (2806f59b, 7 Oct 2026). Same multi-poller rule as
the unknown-intent branch: only the poller holding the intent may report a
failure. Authorization is unchanged.

Also move real-agent-demo.mjs from test/ to scripts/: a bare 'node --test'
ran it and posted two live confirmation cards to the room.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-07T16:04:43.681892Z 3c455ed PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@ThinkOffApp
ThinkOffApp merged commit 644b400 into main Oct 7, 2026
2 checks passed
@ThinkOffApp
ThinkOffApp deleted the fix/silent-owner-refusal-for-foreign-intents branch October 7, 2026 16:10
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