@qwen-code/channel-base 0.24.3 → 0.24.4-nightly.20260923.d0cd622a68

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,203 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright 2025 Google LLC
191
+ Copyright 2025 Qwen
192
+
193
+ Licensed under the Apache License, Version 2.0 (the "License");
194
+ you may not use this file except in compliance with the License.
195
+ You may obtain a copy of the License at
196
+
197
+ http://www.apache.org/licenses/LICENSE-2.0
198
+
199
+ Unless required by applicable law or agreed to in writing, software
200
+ distributed under the License is distributed on an "AS IS" BASIS,
201
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
202
+ See the License for the specific language governing permissions and
203
+ limitations under the License.
package/README.md CHANGED
@@ -82,7 +82,8 @@ In daemon-managed mode, every named channel's `cwd` must resolve to exactly one
82
82
  Inbound: Platform message
83
83
  → Envelope (with attachments)
84
84
  → GroupGate (group policy + mention gating)
85
- → SenderGate (allowlist / pairing / open)
85
+ → SenderGate (privatePolicy for personal messages; groups.senders
86
+ for group members, default open)
86
87
  → Slash commands (/clear, /help, /status)
87
88
  → SessionRouter (resolve or create agent session)
88
89
  → Resolve attachments (images → bridge, files → prompt text)
@@ -103,7 +104,7 @@ Everything between `handleInbound()` and `sendMessage()` is handled by the base
103
104
  | `ChannelBase` | Abstract base class — extend this to build a channel adapter |
104
105
  | `AcpBridge` | Current standalone `qwen channel start` bridge implementation over `qwen-code --acp` |
105
106
  | `SessionRouter` | Maps senders to agent sessions with configurable scoping |
106
- | `SenderGate` | DM access control (allowlist / pairing / open) |
107
+ | `SenderGate` | Sender access control (allowlist / pairing / open), one axis per side |
107
108
  | `GroupGate` | Group chat policy and @mention gating |
108
109
  | `PairingStore` | Pairing code generation, approval, and allowlist persistence |
109
110
 
@@ -118,8 +119,9 @@ Everything between `handleInbound()` and `sendMessage()` is handled by the base
118
119
  | `ChannelConfig` | Channel configuration from `settings.json` |
119
120
  | `ChannelPlugin` | Plugin factory interface (what you export) |
120
121
  | `Envelope` | Normalized inbound message format |
121
- | `SenderPolicy` | `'allowlist' \| 'pairing' \| 'open'` |
122
+ | `PrivatePolicy` | `'disabled' \| 'allowlist' \| 'pairing' \| 'open'` |
122
123
  | `GroupPolicy` | `'disabled' \| 'allowlist' \| 'pairing' \| 'open'` |
124
+ | `GroupSenderPolicy` | `'open' \| 'allowlist'` — never `pairing` |
123
125
  | `SessionScope` | `'user' \| 'chat_thread' \| 'single'`; legacy `'thread'` is deprecated |
124
126
  | `GroupConfig` | Per-group settings (e.g. `requireMention`) |
125
127
  | `SessionTarget` | Maps a session back to its channel/sender/chat |
@@ -268,7 +270,7 @@ constructor(bridge: ChannelAgentBridge, defaultCwd: string, scope?: SessionScope
268
270
  ### SenderGate
269
271
 
270
272
  ```typescript
271
- constructor(policy: SenderPolicy, allowedUsers?: string[], pairingStore?: PairingStore)
273
+ constructor(policy: PrivatePolicy, allowedUsers?: string[], pairingStore?: PairingStore)
272
274
  ```
273
275
 
274
276
  | Method | Description |
@@ -279,10 +281,30 @@ constructor(policy: SenderPolicy, allowedUsers?: string[], pairingStore?: Pairin
279
281
 
280
282
  | Policy | Behavior |
281
283
  | ----------- | --------------------------------------------------------------------------------------------------------- |
284
+ | `disabled` | Nobody allowed; no pairing requests |
282
285
  | `open` | Everyone allowed |
283
286
  | `allowlist` | Only `allowedUsers` allowed |
284
287
  | `pairing` | Check allowlist, then approved pairings, then generate a pairing code (8-char, 1hr expiry, max 3 pending) |
285
288
 
289
+ **Per-conversation gate:** `this.gate` is the direct-message gate. A group
290
+ resolves its own `senders` (`groups[chatId]`, then `groups["*"]`, field by
291
+ field; every admitted group defaults to `open`). Any
292
+ sender check an adapter makes itself must go through
293
+ `this.senderGateFor({ isGroup, chatId })` rather than `this.gate`, or the
294
+ group's setting is silently ignored on that lane. A group gate never carries
295
+ `pairing`: an approval there would also unlock direct messages.
296
+
297
+ **Operators:** commands that act on a shared session (`/approve`, `/cancel`,
298
+ `/clear`, `/loop`, the loop tool, steering, ...) check
299
+ `isSharedSessionOperator`, not the sender gates. Only explicit `config.operators`
300
+ grants shared-session operator permissions; omitted or empty means nobody.
301
+ Private policy, user pairing, and group member admission never imply this role.
302
+
303
+ `resolvePrivatePolicy(config)` resolves the four-value private policy. Explicit
304
+ `privatePolicy` takes precedence over deprecated `dmPolicy` and `senderPolicy`;
305
+ otherwise disabled DM policy wins, then sender policy, then legacy `allowlist`.
306
+ Group sender policy is independent and only accepts `open` or `allowlist`.
307
+
286
308
  ### GroupGate
287
309
 
288
310
  ```typescript
@@ -1,4 +1,4 @@
1
- import type { ChannelConfig, ChannelMemoryCallbacks, ChannelMemoryIntentClassifier, ChannelOutputSegmentContext, ChannelOutputSegmentEndReason, ChannelPermissionRequestContext, ChannelProactiveTarget, ChannelRuntimeIdentity, ChannelRuntimeMemoryScope, ChannelTaskLifecycleEvent, ChannelUserInputRequestContext, Envelope, ObservedChannelContactGraph, ObservedChannelContactObservation, SessionTarget, UserInputPresentationResult } from './types.js';
1
+ import type { ChannelConfig, ChannelMemoryCallbacks, ChannelMemoryIntentClassifier, ChannelOutputSegmentContext, ChannelOutputSegmentEndReason, ChannelPermissionRequestContext, ChannelProactiveTarget, ChannelRuntimeIdentity, ChannelRuntimeMemoryScope, ChannelTaskLifecycleEvent, ChannelUserInputRequestContext, Envelope, PrivatePolicy, ObservedChannelContactGraph, ObservedChannelContactObservation, SessionTarget, UserInputPresentationResult } from './types.js';
2
2
  import { GroupGate } from './GroupGate.js';
3
3
  import { DmGate } from './DmGate.js';
4
4
  import { SenderGate } from './SenderGate.js';
@@ -81,6 +81,7 @@ export declare abstract class ChannelBase {
81
81
  protected groupGate: GroupGate;
82
82
  protected dmGate: DmGate;
83
83
  protected gate: SenderGate;
84
+ protected readonly privatePolicy: PrivatePolicy;
84
85
  protected router: SessionRouter;
85
86
  protected name: string;
86
87
  /** Resolved (defaulted + frozen) identity/scope — adapters should read these, not raw config. */
@@ -408,15 +409,14 @@ export declare abstract class ChannelBase {
408
409
  private isSharedSession;
409
410
  private isSharedSessionTarget;
410
411
  /**
411
- * Whether `envelope.senderId` may act on the resolved session's destructive or
412
- * workspace-leaking commands (/clear, /who). A SHARED session with a non-empty
413
- * allowedUsers list is restricted to those members; a per-user session, or one
414
- * with no allowlist, is unrestricted. Shared verbatim by /clear and /who so the
415
- * gate can't drift; each caller sends its own rejection wording.
412
+ * Whether `envelope.senderId` may operate the resolved session: answer its
413
+ * permission prompts, steer it, or run /cancel, /clear, /who, /status, /loop
414
+ * and /btw. Shared verbatim by every such command so the gate can't drift;
415
+ * each caller sends its own rejection wording.
416
416
  */
417
417
  private isAuthorizedForSharedSession;
418
- private isAuthorizedForSharedSessionTarget;
419
418
  private isAuthorizedForSharedSessionToolCall;
419
+ private isSharedSessionOperator;
420
420
  private toolCallerName;
421
421
  /**
422
422
  * Cancel the active turn and wait (bounded) for it to wind down. Fires a
@@ -484,6 +484,22 @@ export declare abstract class ChannelBase {
484
484
  private forgetPendingGroupHistory;
485
485
  private clearPendingGroupHistory;
486
486
  private prependGroupHistoryContext;
487
+ protected senderGateFor(target: {
488
+ isGroup?: boolean;
489
+ chatId: string;
490
+ }): SenderGate;
491
+ private groupSendersFor;
492
+ /**
493
+ * Whether a group-shaped conversation acts on behalf of one person, such as
494
+ * a document comment thread or a task. Its sender follows `privatePolicy`
495
+ * like a direct message, and `groups` does not apply; its
496
+ * group shape still decides routing, memory, and presentation.
497
+ */
498
+ protected isPersonalConversation(_target: {
499
+ chatId: string;
500
+ }): boolean;
501
+ private groupAllowedUsersFor;
502
+ private groupConfigFor;
487
503
  protected preflightInbound(envelope: Envelope, options?: PreflightInboundOptions): boolean | Promise<boolean>;
488
504
  protected logPreflightRejected(reason: string): void;
489
505
  protected logDebugPayload(platform: string, payload: unknown): void;
@@ -1 +1 @@
1
- {"version":3,"file":"ChannelBase.d.ts","sourceRoot":"","sources":["../src/ChannelBase.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,aAAa,EACb,sBAAsB,EAEtB,6BAA6B,EAE7B,2BAA2B,EAC3B,6BAA6B,EAE7B,+BAA+B,EAE/B,sBAAsB,EACtB,sBAAsB,EACtB,yBAAyB,EAGzB,yBAAyB,EACzB,8BAA8B,EAI9B,QAAQ,EACR,2BAA2B,EAC3B,iCAAiC,EAEjC,aAAa,EACb,2BAA2B,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AyB,IAC/B,2BAA2B,GAC3B,SAAS;IAcb,SAAS,CAAC,oBAAoB,CAAC,IAAI,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM;IAK1E,SAAS,CAAC,4BAA4B,CACpC,IAAI,EAAE,MAAM,EACZ,WAAW,CAAC,EAAE,MAAM,GACnB,MAAM;IAST,OAAO,CAAC,aAAa;IAQrB,OAAO,CAAC,iBAAiB;IAkBzB,OAAO,CAAC,mBAAmB;IAyB3B,OAAO,CAAC,oBAAoB;IAI5B,OAAO,CAAC,kBAAkB;IAY1B,SAAS,CAAC,eAAe,CAAC,QAAQ,EAAE,QAAQ,GAAG,IAAI;IAInD,8EAA8E;YAChE,qBAAqB;IAUnC;;;;;;OAMG;cACa,cAAc,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC;IAo5BjE,OAAO,CAAC,uBAAuB;IAQ/B,OAAO,CAAC,4BAA4B;cAUpB,iBAAiB,CAC/B,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,0BAA0B,EAClC,QAAQ,CAAC,EAAE,MAAM,GAChB,OAAO,CAAC,IAAI,CAAC;cAgBA,sBAAsB,CACpC,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,0BAA0B,EAClC,QAAQ,CAAC,EAAE,MAAM,GAChB,OAAO,CAAC,IAAI,CAAC;CAmBjB"}
@@ -4,6 +4,7 @@ import { ChannelProactiveDeliveryError, isChannelProactiveDeliveryError, } from
4
4
  import { GroupGate } from './GroupGate.js';
5
5
  import { DmGate } from './DmGate.js';
6
6
  import { GroupHistoryStore } from './group-history-store.js';
7
+ import { resolvePrivatePolicy } from './private-policy.js';
7
8
  import { SenderGate } from './SenderGate.js';
8
9
  import { PairingStore } from './PairingStore.js';
9
10
  import { SessionRouter, readDaemonHttpErrorCode } from './SessionRouter.js';
@@ -146,6 +147,7 @@ export class ChannelBase {
146
147
  groupGate;
147
148
  dmGate;
148
149
  gate;
150
+ privatePolicy;
149
151
  router;
150
152
  name;
151
153
  /** Resolved (defaulted + frozen) identity/scope — adapters should read these, not raw config. */
@@ -860,6 +862,7 @@ export class ChannelBase {
860
862
  constructor(name, config, bridge, options) {
861
863
  this.name = name;
862
864
  this.config = config;
865
+ this.privatePolicy = resolvePrivatePolicy(config);
863
866
  this.bridge = bridge;
864
867
  this.locale = options?.locale ?? 'en';
865
868
  this.proxy = options?.proxy;
@@ -876,12 +879,12 @@ export class ChannelBase {
876
879
  this.bridgeRecovery = options?.bridgeRecovery;
877
880
  // Scoped by the channel's workspace cwd: two workspaces reusing the same
878
881
  // channel name must not share pairing/allowlist state (#7017).
879
- const pairingStore = config.senderPolicy === 'pairing' || config.groupPolicy === 'pairing'
882
+ const pairingStore = this.privatePolicy === 'pairing' || config.groupPolicy === 'pairing'
880
883
  ? new PairingStore(name, config.cwd)
881
884
  : undefined;
882
885
  this.groupGate = new GroupGate(config.groupPolicy, config.groups, pairingStore);
883
- this.dmGate = new DmGate(config.dmPolicy);
884
- this.gate = new SenderGate(config.senderPolicy, config.allowedUsers, pairingStore);
886
+ this.dmGate = new DmGate(this.privatePolicy === 'disabled' ? 'disabled' : 'open');
887
+ this.gate = new SenderGate(this.privatePolicy, config.allowedUsers, pairingStore);
885
888
  this.router =
886
889
  options?.router ||
887
890
  new SessionRouter(bridge, config.cwd, config.sessionScope);
@@ -2916,7 +2919,7 @@ export class ChannelBase {
2916
2919
  }
2917
2920
  };
2918
2921
  // For a shared session, clearing it affects everyone who shares it: restrict
2919
- // it to authorized senders (config.allowedUsers, when set) and require an
2922
+ // it to the session's operators (see isSharedSessionOperator) and require an
2920
2923
  // explicit "confirm". DMs on per-user/thread scope and per-user groups clear
2921
2924
  // directly — there /clear only touches the caller's own session.
2922
2925
  const clearHandler = async (envelope, args) => {
@@ -3058,7 +3061,9 @@ export class ChannelBase {
3058
3061
  const hasSession = this.namedSessions
3059
3062
  ? Boolean(await this.currentSessionId(envelope))
3060
3063
  : this.router.hasSession(this.name, envelope.senderId, envelope.chatId, envelope.threadId);
3061
- const policy = this.config.senderPolicy;
3064
+ const policy = envelope.isGroup && !this.isPersonalConversation(envelope)
3065
+ ? this.groupSendersFor(envelope)
3066
+ : this.privatePolicy;
3062
3067
  const lines = [
3063
3068
  `Session: ${hasSession ? 'active' : 'none'}`,
3064
3069
  `Access: ${policy}`,
@@ -3391,9 +3396,7 @@ export class ChannelBase {
3391
3396
  };
3392
3397
  return (this.groupGate.check(envelope, { createPairingRequest: false }).allowed &&
3393
3398
  this.dmGate.check(envelope).allowed &&
3394
- (normalizedTarget.isGroup && this.config.groupPolicy === 'pairing'
3395
- ? true
3396
- : this.gate.isAllowed(normalizedTarget.senderId)) &&
3399
+ this.senderGateFor(envelope).isAllowed(normalizedTarget.senderId) &&
3397
3400
  this.isAuthorizedForSharedSession(envelope));
3398
3401
  }
3399
3402
  /** Check if a message text matches a registered local command. */
@@ -3968,29 +3971,22 @@ export class ChannelBase {
3968
3971
  (target.isGroup === true && this.config.sessionScope === 'thread'));
3969
3972
  }
3970
3973
  /**
3971
- * Whether `envelope.senderId` may act on the resolved session's destructive or
3972
- * workspace-leaking commands (/clear, /who). A SHARED session with a non-empty
3973
- * allowedUsers list is restricted to those members; a per-user session, or one
3974
- * with no allowlist, is unrestricted. Shared verbatim by /clear and /who so the
3975
- * gate can't drift; each caller sends its own rejection wording.
3974
+ * Whether `envelope.senderId` may operate the resolved session: answer its
3975
+ * permission prompts, steer it, or run /cancel, /clear, /who, /status, /loop
3976
+ * and /btw. Shared verbatim by every such command so the gate can't drift;
3977
+ * each caller sends its own rejection wording.
3976
3978
  */
3977
3979
  isAuthorizedForSharedSession(envelope) {
3978
- return this.isAuthorizedForSharedSessionTarget(envelope);
3979
- }
3980
- isAuthorizedForSharedSessionTarget(target) {
3981
- if (!this.isSharedSessionTarget(target))
3982
- return true;
3983
- const authorized = this.config.allowedUsers;
3984
- return authorized.length === 0 || authorized.includes(target.senderId);
3980
+ return this.isSharedSessionOperator(envelope, envelope.senderId);
3985
3981
  }
3986
3982
  isAuthorizedForSharedSessionToolCall(target, sessionId) {
3983
+ return this.isSharedSessionOperator(target, this.activePrompts.get(sessionId)?.senderId);
3984
+ }
3985
+ isSharedSessionOperator(target, senderId) {
3987
3986
  if (!this.isSharedSessionTarget(target))
3988
3987
  return true;
3989
- const authorized = this.config.allowedUsers;
3990
- if (authorized.length === 0)
3991
- return true;
3992
- const senderId = this.activePrompts.get(sessionId)?.senderId;
3993
- return senderId !== undefined && authorized.includes(senderId);
3988
+ return (senderId !== undefined &&
3989
+ this.config.operators?.includes(senderId) === true);
3994
3990
  }
3995
3991
  toolCallerName(sessionId, target) {
3996
3992
  const active = this.activePrompts.get(sessionId);
@@ -4174,8 +4170,7 @@ export class ChannelBase {
4174
4170
  if (envelope.syntheticText)
4175
4171
  return;
4176
4172
  const senderId = truncateGroupHistoryField(envelope.senderId);
4177
- if (this.config.groupPolicy !== 'pairing' &&
4178
- !this.gate.isAllowed(senderId)) {
4173
+ if (!this.senderGateFor(envelope).isAllowed(senderId)) {
4179
4174
  return;
4180
4175
  }
4181
4176
  const entry = {
@@ -4240,13 +4235,12 @@ export class ChannelBase {
4240
4235
  process.stderr.write(`[${this.name}] failed to clear group history for chat ${sanitizeLogText(envelope.chatId, 64)}: ${err instanceof Error ? err.message : err}\n`);
4241
4236
  }
4242
4237
  }
4243
- prependGroupHistoryContext(promptText, entries) {
4238
+ prependGroupHistoryContext(envelope, promptText, entries) {
4244
4239
  if (entries.length === 0) {
4245
4240
  return promptText;
4246
4241
  }
4247
- const lines = this.config.groupPolicy === 'pairing'
4248
- ? entries
4249
- : entries.filter((entry) => this.gate.isAllowed(entry.senderId));
4242
+ const senderGate = this.senderGateFor(envelope);
4243
+ const lines = entries.filter((entry) => senderGate.isAllowed(entry.senderId));
4250
4244
  if (lines.length === 0) {
4251
4245
  return promptText;
4252
4246
  }
@@ -4257,6 +4251,36 @@ export class ChannelBase {
4257
4251
  });
4258
4252
  return `${GROUP_HISTORY_CONTEXT_MARKER}\n${formatted.join('\n')}\n\n${CURRENT_MESSAGE_MARKER}\n${promptText}`;
4259
4253
  }
4254
+ senderGateFor(target) {
4255
+ if (target.isGroup !== true || this.isPersonalConversation(target)) {
4256
+ return this.gate;
4257
+ }
4258
+ const senders = this.groupSendersFor(target);
4259
+ return new SenderGate(senders, senders === 'allowlist' ? this.groupAllowedUsersFor(target.chatId) : []);
4260
+ }
4261
+ groupSendersFor(target) {
4262
+ return (this.groupConfigFor(target.chatId)?.senders ??
4263
+ this.groupConfigFor('*')?.senders ??
4264
+ 'open');
4265
+ }
4266
+ /**
4267
+ * Whether a group-shaped conversation acts on behalf of one person, such as
4268
+ * a document comment thread or a task. Its sender follows `privatePolicy`
4269
+ * like a direct message, and `groups` does not apply; its
4270
+ * group shape still decides routing, memory, and presentation.
4271
+ */
4272
+ isPersonalConversation(_target) {
4273
+ return false;
4274
+ }
4275
+ groupAllowedUsersFor(chatId) {
4276
+ return (this.groupConfigFor(chatId)?.allowedUsers ??
4277
+ this.groupConfigFor('*')?.allowedUsers ??
4278
+ []);
4279
+ }
4280
+ groupConfigFor(key) {
4281
+ const groups = this.config.groups;
4282
+ return Object.hasOwn(groups, key) ? groups[key] : undefined;
4283
+ }
4260
4284
  preflightInbound(envelope, options = {}) {
4261
4285
  const groupResult = this.groupGate.check(envelope, {
4262
4286
  createPairingRequest: !options.deferPairingRequests,
@@ -4291,17 +4315,15 @@ export class ChannelBase {
4291
4315
  this.logPreflightRejected(`dm_${dmResult.reason ?? 'denied'}`);
4292
4316
  return false;
4293
4317
  }
4294
- if (envelope.isGroup && this.config.groupPolicy === 'pairing') {
4295
- this.markPreflighted(envelope);
4296
- return true;
4297
- }
4318
+ const senderGate = this.senderGateFor(envelope);
4298
4319
  if (options.deferPairingRequests === true &&
4299
- this.config.senderPolicy === 'pairing' &&
4300
- !this.gate.isAllowed(envelope.senderId)) {
4320
+ senderGate === this.gate &&
4321
+ this.privatePolicy === 'pairing' &&
4322
+ !senderGate.isAllowed(envelope.senderId)) {
4301
4323
  this.markPreflighted(envelope);
4302
4324
  return true;
4303
4325
  }
4304
- const result = this.gate.check(envelope.senderId, envelope.senderName);
4326
+ const result = senderGate.check(envelope.senderId, envelope.senderName);
4305
4327
  if (!result.allowed) {
4306
4328
  if (result.pairing !== undefined) {
4307
4329
  this.logPreflightRejected('sender_pairing_required');
@@ -4312,7 +4334,7 @@ export class ChannelBase {
4312
4334
  return false;
4313
4335
  });
4314
4336
  }
4315
- this.logPreflightRejected('sender_denied');
4337
+ this.logPreflightRejected(senderGate === this.gate ? 'sender_denied' : 'group_sender_denied');
4316
4338
  return false;
4317
4339
  }
4318
4340
  this.markPreflighted(envelope);
@@ -4815,10 +4837,11 @@ export class ChannelBase {
4815
4837
  promptText = promptText + '\n\n' + sanitizePromptText(envelope.metadata);
4816
4838
  }
4817
4839
  // Resolve dispatch mode: per-group override → channel config → default
4818
- const groupCfg = envelope.isGroup
4819
- ? this.config.groups[envelope.chatId] || this.config.groups['*']
4840
+ const groupMode = envelope.isGroup
4841
+ ? (this.groupConfigFor(envelope.chatId)?.dispatchMode ??
4842
+ this.groupConfigFor('*')?.dispatchMode)
4820
4843
  : undefined;
4821
- const mode = groupCfg?.dispatchMode || this.config.dispatchMode || 'steer';
4844
+ const mode = groupMode ?? this.config.dispatchMode ?? 'steer';
4822
4845
  const active = this.activePrompts.get(sessionId);
4823
4846
  // Diagnostic watchdog for a steered turn that chains behind a wedged
4824
4847
  // predecessor. Chain-and-wait (option a) means a hung predecessor bridge.prompt()
@@ -5015,7 +5038,7 @@ export class ChannelBase {
5015
5038
  const groupHistoryEntries = recognizedSlashCommand
5016
5039
  ? []
5017
5040
  : this.drainPendingGroupHistory(envelope);
5018
- let promptToSend = this.prependGroupHistoryContext(promptText, groupHistoryEntries);
5041
+ let promptToSend = this.prependGroupHistoryContext(envelope, promptText, groupHistoryEntries);
5019
5042
  const hiddenContext = [
5020
5043
  ...(acceptedRecallContext ? [acceptedRecallContext] : []),
5021
5044
  ...sessionContext,