Tell operators from participants on every event
A colleague's direct question to the agent on a card was dropped silently, because the run trusted only two named people. Opening it to --allow-domain 37signals.com fixes that, but today it would also give every 37signals author the same standing as the operator, and nothing downstream could tell the two apart.
What changes
- Every Basecamp event line carries
role:operatorfor the operator and anyone named with--allow, andparticipantfor authors admitted only by--allow-domainor--allow-project. It is settled on the corroborated author, so a payload that claims the operator's email on a participant's recording still emits asparticipant. --allownow combines with one participant set (--allow rob@37signals.com --allow-domain 37signals.com), and--trust domain|project --allow …round-trips from the skill's stored params. Two participant sets together, or--trust operatorwith any value flag, are still refused.- Participants trigger by mention and by commenting on a thread the agent follows. Their assignments and boosts are dropped, with an
ignored … by a participantline on STDERR, because the assigner isn't corroborated and a boost on the agent's work reads as approval.--allow-assignments-from-authorizednow covers the named operators only. - The skill gains "A participant asks, an operator authorizes": a participant's request is work, never authority. Anything irreversible or outward-facing is prepared and then waits for an operator's reply in the same thread. README → "Operators and participants" and
docs/spec.mddocument the field.
Behaviour change for existing runs: under --allow-project or --allow-domain, project or domain members can no longer trigger the agent by boost or assignment, even with --allow-assignments-from-authorized. Their mentions and comments still work, and they now arrive as participant.
Not in here: GitHub review lines carry no role, since approvals are already limited to --gh-operator. #43's --allow-person and authorized_by overlap with this but don't conflict in design: role is the class (operator for operator/allowlist rules, participant for domain/project), so whichever lands second keeps both.
Verified: 493 tests, 0 failures; rubocop clean. New tests cover the role on each path, a named operator inside the participant domain, participant assignment and boost drops (including the log line and that nothing is fetched), a stranger's event being dropped without a log line, and the role following the authoritative author over a forged email. Not verified live: the running connectors were left untouched.