@qwen-code/channel-github 0.27.0 → 0.27.2-nightly.20261112.70a487be84

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.
@@ -11,7 +11,10 @@ interface GithubConfig extends ChannelConfig, RepoFilterConfigFields {
11
11
  deliverToBoundSessions?: boolean;
12
12
  prWatchEvents?: unknown;
13
13
  prWatchLimit?: unknown;
14
+ prWatchBudgetReserve?: unknown;
14
15
  boundSessionActions?: unknown;
16
+ requireBoundWatch?: boolean;
17
+ prCommentWatch?: unknown;
15
18
  }
16
19
  interface GithubCursor {
17
20
  lastProcessedAt: string;
@@ -28,7 +31,7 @@ interface GithubCursor {
28
31
  dispatchedComments?: string[];
29
32
  /**
30
33
  * created_at per dispatched comment key, so eviction can respect the
31
- * re-list window: a comment whose created_at is newer than the committed
34
+ * re-list window: a comment whose created_at is not before the committed
32
35
  * cursor can still be re-fetched (mark-read may have failed), so its key
33
36
  * must NOT be evicted — otherwise a re-listed aggregate SUPERSET batch
34
37
  * re-dispatches already-replied comments under a fresh batch hash that
@@ -39,6 +42,24 @@ interface GithubCursor {
39
42
  dispatchedCommentTimes?: Record<string, string>;
40
43
  /** Direct-action event node IDs already accepted by the channel. */
41
44
  dispatchedEvents?: string[];
45
+ /**
46
+ * The comments of the cursor's own second that the window which advanced
47
+ * the cursor there read (`at` is that cursor). GitHub stamps comments and
48
+ * notifications to the second, so a notification that arrives after that
49
+ * window can name a comment of the same second. The next window reads the
50
+ * cursor's second again and leaves out only these. Without a record for the
51
+ * cursor (one saved by an older version, or more than MAX_BOUNDARY_COMMENTS
52
+ * such comments), the window starts after that second. The first cursor is
53
+ * the start time with milliseconds, which no GitHub timestamp equals.
54
+ * `threads` (`owner/repo|thread` keys, at most MAX_BOUNDARY_COMMENTS) are
55
+ * the threads whose notification of that second the window listed: such a
56
+ * notification listed again is a re-listing, not a late one.
57
+ */
58
+ boundaryComments?: {
59
+ at: string;
60
+ keys: string[];
61
+ threads: string[];
62
+ };
42
63
  }
43
64
  /**
44
65
  * The repository event filter modes, shared by the descriptor options and
@@ -79,11 +100,25 @@ export declare const PR_NOTIFICATION_REASONS: readonly ["mention", "review_reque
79
100
  export declare const DEFAULT_PR_WATCH_LIMIT = 30;
80
101
  /** Hard ceiling for the configurable watch fan-out. */
81
102
  export declare const MAX_PR_WATCH_LIMIT = 500;
103
+ /**
104
+ * Requests held back for the interactive notification lane. When the last
105
+ * known REST budget is at or below this, the watch pass is skipped for the
106
+ * poll so a human mention is not starved by background PR polling. ~4% of a
107
+ * 5,000/hour classic-PAT budget: enough for several polls of mention traffic
108
+ * while barely trimming a healthy watch. Operators on other scales (GitHub
109
+ * Enterprise, finer-grained tokens) set prWatchBudgetReserve explicitly.
110
+ */
111
+ export declare const DEFAULT_PR_WATCH_BUDGET_RESERVE = 200;
112
+ /** Hard ceiling for the configurable watch budget reserve. */
113
+ export declare const MAX_PR_WATCH_BUDGET_RESERVE = 5000;
82
114
  interface BoundSessionConfigFields {
83
115
  deliverToBoundSessions?: unknown;
84
116
  prWatchEvents?: unknown;
85
117
  prWatchLimit?: unknown;
118
+ prWatchBudgetReserve?: unknown;
86
119
  boundSessionActions?: unknown;
120
+ requireBoundWatch?: unknown;
121
+ prCommentWatch?: unknown;
87
122
  }
88
123
  /**
89
124
  * Shared validation for the plugin descriptor (returns the message) and
@@ -111,6 +146,28 @@ interface PublicationAuditRecord {
111
146
  bodySha256: string;
112
147
  bodyChars: number;
113
148
  }
149
+ /**
150
+ * Cap on cached conditional responses, sized from the fan-out it has to
151
+ * serve: up to MAX_PR_WATCH_LIMIT open PRs, a terminal-drain slice on top,
152
+ * and the notifications pages. A cap below the sweep does not degrade
153
+ * proportionally — each miss evicts the entry the sweep is about to read, so
154
+ * every read of every later pass misses and the saving is exactly zero for
155
+ * the high-fan-out deployments this is meant to help. Derived from the watch
156
+ * limit so the two cannot drift apart.
157
+ *
158
+ * A moved notifications `since` cursor still mints new keys, so the map is
159
+ * bounded and evicts least-recently-used first; an evicted URL simply pays
160
+ * for one full 200 again.
161
+ */
162
+ export declare const CONDITIONAL_CACHE_MAX_ENTRIES: number;
163
+ /**
164
+ * Total retained body bytes. The entry and per-body caps only bound the
165
+ * product loosely — a thousand maximum-size bodies would be a quarter of a
166
+ * gigabyte — so the cache is also bounded directly. Real responses are one to
167
+ * two orders of magnitude below the per-body cap, so this binds only the
168
+ * pathological case and never evicts a working set.
169
+ */
170
+ export declare const CONDITIONAL_CACHE_MAX_TOTAL_BYTES: number;
114
171
  export declare class GithubChannel extends PollingChannelBase<GithubCursor> {
115
172
  private octokit;
116
173
  private botUsername;
@@ -122,9 +179,38 @@ export declare class GithubChannel extends PollingChannelBase<GithubCursor> {
122
179
  private pendingFinalDeliveryRetryAbort;
123
180
  private pendingFinalDeliveryRequestsActive;
124
181
  private pendingFinalDeliveryRetryStopRequested;
182
+ /**
183
+ * When the next pass over stored replies may start while the channel runs
184
+ * (epoch ms): the first poll from then on whose notification list succeeds
185
+ * starts it, unless a pass is still running. Undefined when none is
186
+ * scheduled. The pass at connect covers replies stored before the channel
187
+ * started.
188
+ */
189
+ private pendingFinalDeliveryRetryAt;
190
+ /**
191
+ * Stored replies this process posted, sent with an ambiguous answer, or
192
+ * found posted in the audit. They are never sent again by this process,
193
+ * even when neither the audit nor the pending file took the write; a pass
194
+ * that runs for other replies, or the next start, retries the removal of
195
+ * one still stored. Ids are kept for the life of the process: a reply with
196
+ * the same id is the same reply to the same message.
197
+ */
198
+ private settledPendingDeliveryIds;
199
+ /**
200
+ * Passes in a row that left stored replies behind (GitHub refused them, or
201
+ * the pending file could not be read); lengthens the wait between them.
202
+ */
203
+ private fruitlessPendingDeliveryPasses;
125
204
  private reasonFilter;
126
205
  private repoFilter;
127
206
  private deliverToBoundSessions;
207
+ private requireBoundWatch;
208
+ /**
209
+ * Bound PR comment watch: poll conversation + inline review comments and
210
+ * deliver each to every bound session that did not post it. Default-on
211
+ * with deliverToBoundSessions; `prCommentWatch: false` disables it.
212
+ */
213
+ private prCommentWatchEnabled;
128
214
  private prWatchEvents;
129
215
  /**
130
216
  * Operator instruction templates keyed by the closed bound-action
@@ -194,6 +280,33 @@ export declare class GithubChannel extends PollingChannelBase<GithubCursor> {
194
280
  */
195
281
  private coldEmptyFailurePolls;
196
282
  private partialSnapshotStreak;
283
+ /**
284
+ * Snapshot generation, bumped on every successful binding refresh. The
285
+ * gate grace is scoped to a generation, not to a drain call: pollOnce can
286
+ * drain the same PR twice against one snapshot, and a per-call grace would
287
+ * be spent by the second drain before any newer snapshot exists.
288
+ */
289
+ private bindingsGeneration;
290
+ /**
291
+ * Comment/watch keys the gate has deferred, mapped to the snapshot
292
+ * generation at the deferral. A watch installed after the bindings
293
+ * snapshot was fetched surfaces on the next refresh; the first gate-only
294
+ * exclusion holds the event (cursor unmoved / pending kept), and it stays
295
+ * held until a NEWER generation still finds it gated — then it is consumed
296
+ * like any other no-target event. In-memory: a restart resets the grace,
297
+ * which is harmless. Keys are removed when the event delivers or is
298
+ * consumed.
299
+ */
300
+ private gateDeferredOnce;
301
+ /**
302
+ * Whether a gate-excluded event should keep being held. Defers on first
303
+ * sight and while the snapshot generation is unchanged; once a newer
304
+ * generation has landed and the event is still gated, the grace is spent
305
+ * (returns false and clears the key) so the caller consumes it.
306
+ */
307
+ private gateGraceShouldHold;
308
+ /** Clear any grace for an event that delivered (or is being consumed). */
309
+ private gateGraceClear;
197
310
  /**
198
311
  * True while the most recent pending-watch reconciliation FAILED (e.g.
199
312
  * the watch file is unreadable). Generic recovery must then leave watch
@@ -211,6 +324,53 @@ export declare class GithubChannel extends PollingChannelBase<GithubCursor> {
211
324
  * recovery edge.
212
325
  */
213
326
  private watchReconcileBlockedCause;
327
+ /**
328
+ * Last REST budget seen on a SUCCESSFUL response, recorded by the request
329
+ * hook regardless of the call's return shape. Undefined until the first
330
+ * response carries the header. Gates the watch pass so background polling
331
+ * cannot starve the interactive notification lane.
332
+ */
333
+ private lastRateLimitRemaining;
334
+ /**
335
+ * Reset time (epoch ms) of the window lastRateLimitRemaining belongs to.
336
+ * Once passed, the reading is stale and must not gate the watch: a low
337
+ * count from a window that has already reset would otherwise starve the
338
+ * watch until the next successful response overwrites it.
339
+ */
340
+ private lastRateLimitResetAt;
341
+ /**
342
+ * Whether the watch pass is currently skipped for low budget. Edge-triggered
343
+ * journaling (the watchReconcileBlockedCause pattern): a permanent low-budget
344
+ * condition journalled once on the edge, not every poll, so it cannot rotate
345
+ * the useful rows out of the timeline. Cleared on the recovery edge.
346
+ */
347
+ private watchBudgetLow;
348
+ /**
349
+ * A `watch_budget_low` row has been journaled and its episode has not been
350
+ * closed by a recovery row yet. Tracked apart from watchBudgetLow because
351
+ * the two answer different questions: the skip latch is released when the
352
+ * watch stops being eligible (so a later starvation journals a fresh skip),
353
+ * but the episode stays open until the BUDGET recovers — otherwise a budget
354
+ * that recovers during an ineligible window would never get its recovery
355
+ * row. In-memory by design: a restart mid-episode leaves no recovery row,
356
+ * which the user guide states.
357
+ */
358
+ private watchBudgetEpisodeOpen;
359
+ /**
360
+ * ETag cache for the two polling reads, keyed by full request URL so a
361
+ * moved notifications `since` cursor is a distinct entry rather than a
362
+ * false hit. Connection-scoped: cleared on disconnect so a reconnect never
363
+ * serves a body cached under a previous credential.
364
+ */
365
+ private readonly conditionalCache;
366
+ /** Running total of cached body bytes, maintained by the two helpers below. */
367
+ private conditionalCacheBytes;
368
+ /**
369
+ * Floor (ms) from the notifications endpoint's `X-Poll-Interval`. GitHub
370
+ * asks polling clients not to poll faster than this; pollInterval raises
371
+ * the whole loop to it, which also slows the watch pass.
372
+ */
373
+ private notificationsPollFloorMs;
214
374
  /**
215
375
  * Consecutive binding-refresh failures since the last success. While no
216
376
  * snapshot has ever succeeded, the cold-start gate defers the comment lane,
@@ -285,6 +445,21 @@ export declare class GithubChannel extends PollingChannelBase<GithubCursor> {
285
445
  * nothing new (a repeated skip) are written once per window.
286
446
  */
287
447
  private windowJournalKeys;
448
+ /**
449
+ * The comments this window has read that were created in the latest second
450
+ * it has read a comment from, and the threads it has listed whose
451
+ * notification is of the latest second it has listed one from. When the
452
+ * window is marked read, those of the new cursor's second become
453
+ * GithubCursor.boundaryComments.
454
+ */
455
+ private windowLatestComments;
456
+ private windowLatestThreads;
457
+ /**
458
+ * Threads of late notifications (see `late` in pollOnce) this window has
459
+ * read: the comments of the cursor's second GitHub listed then were read,
460
+ * so a later failure reading one again in the window is treated as stale.
461
+ */
462
+ private windowLateThreadsRead;
288
463
  constructor(name: string, config: GithubConfig & Record<string, unknown>, bridge: ChannelAgentBridge, options?: ChannelBaseOptions);
289
464
  protected createInitialCursor(): GithubCursor;
290
465
  /**
@@ -296,6 +471,35 @@ export declare class GithubChannel extends PollingChannelBase<GithubCursor> {
296
471
  protected normalizeGroupId(groupId: string): string;
297
472
  protected validateCursor(parsed: unknown): GithubCursor | null;
298
473
  connect(): Promise<void>;
474
+ /**
475
+ * Runs one pass over the stored replies in the background, unless one is
476
+ * already running. A pass that leaves replies behind while the channel
477
+ * runs schedules the next one (see pollOnce). The pass at start keeps the
478
+ * in-call retries; later ones make a single attempt per reply.
479
+ */
480
+ private startPendingFinalDeliveryRetry;
481
+ /**
482
+ * Sets when the next pass over stored replies may start: when GitHub's
483
+ * `retry-after` or budget reset says the refusal ends, but no sooner than
484
+ * PENDING_REPLY_RETRY_MIN_DELAY_MS, doubled for each pass in a row that
485
+ * left replies behind, and no later than PENDING_REPLY_RETRY_MAX_DELAY_MS.
486
+ * An earlier schedule that is later still is kept.
487
+ */
488
+ private schedulePendingFinalDeliveryRetry;
489
+ /**
490
+ * GitHub asks polling clients not to poll the notifications endpoint
491
+ * faster than its `X-Poll-Interval`. The base class exposes one interval
492
+ * for the whole poll and the watch pass runs before the notifications lane,
493
+ * so honouring the floor also slows the watch. At the default 60s poll the
494
+ * header is also 60 and nothing changes; only a faster configured poll is
495
+ * raised, which is exactly what GitHub is asking for.
496
+ *
497
+ * The ceiling is re-applied because the header is server-controlled and
498
+ * super's clamp only covers the configured value: Node rounds a timeout
499
+ * above its 32-bit range down to 1ms, so an unbounded floor would turn the
500
+ * poll loop into a hot loop that burns the quota this is meant to save.
501
+ */
502
+ protected get pollInterval(): number;
299
503
  disconnect(): void;
300
504
  sendMessage(_chatId: string, _text: string): Promise<void>;
301
505
  protected sendThreadMessage(chatId: string, threadId: string | undefined, text: string, sourceLabel?: string): Promise<void>;
@@ -303,7 +507,20 @@ export declare class GithubChannel extends PollingChannelBase<GithubCursor> {
303
507
  protected publishFinalResponse(chatId: string, threadId: string | undefined, fullText: string, sessionId: string, sourceLabel?: string): Promise<void>;
304
508
  private buildPublicationAuditBase;
305
509
  private enqueuePendingFinalDelivery;
510
+ /**
511
+ * One pass over the stored replies. Resolves with the answer that stopped
512
+ * it early, if any, which may tell when to try again.
513
+ */
306
514
  private retryPendingFinalDeliveries;
515
+ /**
516
+ * Whether a stored reply is left that this process has not settled. An
517
+ * unreadable pending file counts as one, so a later pass tries again.
518
+ */
519
+ private hasUnsettledPendingDeliveries;
520
+ /**
521
+ * Whether the publication audit records the stored reply as posted. Read
522
+ * again for each reply, so a row another writer added meanwhile counts.
523
+ */
307
524
  private hasPostedPublicationAudit;
308
525
  private updatePendingFinalDeliveries;
309
526
  private removeReplyPendingInboundTask;
@@ -332,6 +549,23 @@ export declare class GithubChannel extends PollingChannelBase<GithubCursor> {
332
549
  private processAggregateLane;
333
550
  private findDirectTrigger;
334
551
  private fetchNewComments;
552
+ /**
553
+ * Remember a comment this window read, if it is of the latest second the
554
+ * window has read a comment from (the cursor can advance at most to the
555
+ * newest notification, and no comment it reads is newer than that).
556
+ */
557
+ private noteWindowComment;
558
+ /**
559
+ * GitHub notifies a mention that an edit adds to an older comment, but the
560
+ * lanes read only comments created in the window. Journal such a comment
561
+ * once per window, so the notification it raised is not consumed without a
562
+ * trace (unless it arrives after the cursor has passed the edit, as a late
563
+ * notification for a new comment can). The edit time has no upper bound: a later edit (or a notification
564
+ * stamped before the edit) leaves the comment newer than the window, and
565
+ * once the window commits nothing reads it again. A later window that
566
+ * reads the thread again can record it once more.
567
+ */
568
+ private recordEditedMentions;
335
569
  private fetchIssueMeta;
336
570
  private fetchPrMeta;
337
571
  private tryFirstContactBody;
@@ -340,9 +574,11 @@ export declare class GithubChannel extends PollingChannelBase<GithubCursor> {
340
574
  private recordDispatched;
341
575
  /**
342
576
  * Window-aware eviction. Once over the soft cap, drop EVERY key whose
343
- * comment can no longer be re-listed (created_at <= the committed cursor),
344
- * keeping protected keys regardless of position. A key newer than the
345
- * cursor — or with no recorded time (legacy migration) — is protected:
577
+ * comment can no longer be re-listed (created_at before the committed
578
+ * cursor; the window can read the cursor's own second again, see
579
+ * GithubCursor.boundaryComments), keeping protected keys regardless of
580
+ * position. A key at or after the cursor — or with no recorded time
581
+ * (legacy migration) — is protected:
346
582
  * evicting it would let a re-listed aggregate SUPERSET re-dispatch
347
583
  * already-replied comments under a fresh batch hash that misses the
348
584
  * publication-audit backstop (duplicate public reply / private injection
@@ -358,7 +594,7 @@ export declare class GithubChannel extends PollingChannelBase<GithubCursor> {
358
594
  /**
359
595
  * Bound the time map: drop entries that are neither in the ring nor still
360
596
  * re-listable. Times for fetched-but-not-yet-dispatched comments survive
361
- * while their created_at is newer than the cursor (they may be dispatched
597
+ * while their created_at is not before the cursor (they may be dispatched
362
598
  * later this poll), so eviction never loses a key's protection mid-poll.
363
599
  */
364
600
  private pruneCommentTimes;
@@ -483,6 +719,52 @@ export declare class GithubChannel extends PollingChannelBase<GithubCursor> {
483
719
  */
484
720
  private recordWatchOverflowSkip;
485
721
  private removeInboundTask;
722
+ /**
723
+ * The conditional exchange, owned at the transport boundary rather than in
724
+ * a request hook: `@octokit/request` hard-codes 304 into a RequestError
725
+ * INSIDE plugin-request-log's own wrap, so catching it any higher leaves an
726
+ * error-level log line per 304 (~1,800/hour at the watch cap) and hands
727
+ * githubApi a retryable failure. Converting it here means no layer above
728
+ * ever learns there was a 304.
729
+ */
730
+ private readonly conditionalFetch;
731
+ /**
732
+ * The only two writers of the cache, so the byte total cannot drift from
733
+ * the map. Re-inserting moves the key to the most-recently-used end.
734
+ */
735
+ private dropCached;
736
+ private storeCached;
737
+ /**
738
+ * Record the REST budget from a successful response's headers. Called by
739
+ * the request hook on every response. A missing or malformed remaining
740
+ * header leaves the last known value untouched (a proxy that strips the
741
+ * header must not erase a real reading). The reset time is refreshed from
742
+ * the same response; if that header is absent the reset is cleared, so the
743
+ * gate falls back to protecting on the count alone rather than trusting a
744
+ * reset time from a different window.
745
+ */
746
+ private recordRateLimitBudget;
747
+ /**
748
+ * Whether the watch pass must yield this poll to protect the notification
749
+ * lane. True only when a usable remaining reading is at or below the
750
+ * reserve AND its window has not already reset (a stale low count from a
751
+ * rolled-over window must not starve the watch). With no reading yet the
752
+ * watch runs normally; the reactive isWatchFailFastError backstop still
753
+ * covers a wrong estimate or a secondary limit.
754
+ */
755
+ private watchBudgetExhausted;
756
+ /**
757
+ * Open a low-budget episode: latch the skip and journal its edge once.
758
+ * Shared by the poll-boundary gate and the in-pass yield so a mid-pass stop
759
+ * records the same row rather than a second vocabulary.
760
+ */
761
+ private noteWatchBudgetLow;
762
+ /**
763
+ * Close the episode once the budget is no longer exhausted. A still-low
764
+ * budget keeps it open: the watch being ineligible says nothing about the
765
+ * budget, and claiming recovery there would be a false report.
766
+ */
767
+ private closeWatchBudgetEpisode;
486
768
  /**
487
769
  * Journals a degraded dependency the poll loop itself survived: the poll
488
770
  * still reports `ok`, so without this row a binding scan that stalls every
@@ -524,6 +806,20 @@ export declare class GithubChannel extends PollingChannelBase<GithubCursor> {
524
806
  private coldEmptyCapCause;
525
807
  private refreshBoundSessions;
526
808
  private resolveBoundDelivery;
809
+ /**
810
+ * The role of the entry that names THIS PR, or undefined for an untyped
811
+ * binding. Takes the winner legacy routing already resolved, so the URL
812
+ * parse stays within that one session's entries instead of repeating the
813
+ * whole follower scan on a path that used to be a single Map lookup.
814
+ */
815
+ private boundRoleOf;
816
+ /**
817
+ * The entry of `summary` that names the PR behind `key`, matched the same
818
+ * way for every candidate: the URL must parse, agree with its own number,
819
+ * and normalize to that key. Shared so the legacy role lookup and the
820
+ * role-aware follower scan cannot drift apart.
821
+ */
822
+ private boundPrEntryFor;
527
823
  /**
528
824
  * Pick the most-recent live follower of a PR from the full binding list,
529
825
  * excluding sessions already known Gone in this delivery attempt. Unlike
@@ -541,6 +837,43 @@ export declare class GithubChannel extends PollingChannelBase<GithubCursor> {
541
837
  * legacy single-winner shape verbatim.
542
838
  */
543
839
  private get boundRoleAware();
840
+ /**
841
+ * The active-watch gate (requireBoundWatch): a review/verify binding whose
842
+ * session holds no active watch on THIS PR is not a delivery target.
843
+ * Unknown watching (absent — detection failed or an older daemon) stays
844
+ * eligible: the gate is a noise filter, fail-open. fix and untyped
845
+ * bindings are never gated. Filtering happens at target selection only —
846
+ * the raw binding list keeps naming excluded followers so `followed` /
847
+ * absence semantics never mistake "bound but ineligible" for "unbound"
848
+ * and open the irreversible public path.
849
+ */
850
+ private watchGateExcludes;
851
+ /**
852
+ * True when raw followers exist and the watch gate excludes EVERY one of
853
+ * them — the only "no candidate" state the gate itself caused. A winner
854
+ * that is merely author-excluded, or a removed binding (no followers), is
855
+ * not this state and keeps the legacy frozen-target contract.
856
+ */
857
+ private gateExcludedAllFollowers;
858
+ /**
859
+ * Whether any non-channel raw binding row names a PR — the population the
860
+ * gate can actually filter. The routing map is gate-filtered, so its
861
+ * emptiness alone cannot prove "no bindings exist": cold-start decisions
862
+ * must read raw presence, or a fully-ineligible snapshot stalls the lane
863
+ * as if the sidecars were unreadable. Channel-owned rows are excluded
864
+ * because the routing map deliberately skips them.
865
+ */
866
+ private hasRawBoundPrs;
867
+ /**
868
+ * Whether the gate excluded the FROZEN delivery target itself. The
869
+ * delivery-time retire must be about the target the event was frozen to,
870
+ * not the whole follower set: an exempt fix/untyped target keeps the
871
+ * legacy frozen-target contract even when some other ineligible
872
+ * review/verify follower still lists the PR, and a removed binding (the
873
+ * target no longer follows) keeps it too. Only a target whose own binding
874
+ * the gate excludes retires.
875
+ */
876
+ private frozenTargetGateExcluded;
544
877
  /**
545
878
  * Every non-channel follower of a PR from the full binding list, each with
546
879
  * the role of the entry that names THIS PR (a session may follow several
@@ -700,6 +1033,14 @@ export declare class GithubChannel extends PollingChannelBase<GithubCursor> {
700
1033
  * configured budget is never silently smaller than requested.
701
1034
  */
702
1035
  private get prWatchLimit();
1036
+ /**
1037
+ * Requests reserved for the notification lane: at or below this remaining
1038
+ * budget the watch pass yields. Clamped like prWatchLimit; a configured 0
1039
+ * is honoured (disables the gate) so an operator can opt out, while unset
1040
+ * or invalid keeps the default. Rounds up so the reserve is never silently
1041
+ * smaller than requested.
1042
+ */
1043
+ private get prWatchBudgetReserve();
703
1044
  /**
704
1045
  * Edge-triggered state watch over the PRs bound to live sessions. Runs
705
1046
  * inside the existing poll loop; detection is API-level and costs no model
@@ -707,6 +1048,20 @@ export declare class GithubChannel extends PollingChannelBase<GithubCursor> {
707
1048
  */
708
1049
  private runPrStateWatch;
709
1050
  private watchOnePr;
1051
+ /**
1052
+ * Bound PR comment watch (docs/design/2026-11-08-bound-pr-comment-watch.md).
1053
+ * Poll conversation + inline review comments on a bound PR and deliver each
1054
+ * new one to every bound session that did NOT post it. Unlike the
1055
+ * notification lanes this does not filter the channel's own account: a
1056
+ * comment by the same GitHub login used by a DIFFERENT session/agent must
1057
+ * reach the follower. Authorship attribution (the daemon's posted-comment
1058
+ * lookup) withholds a comment only from the session that wrote it, which is
1059
+ * what prevents a fix session's own reply from re-triggering it.
1060
+ *
1061
+ * Default-on with deliverToBoundSessions; `prCommentWatch: false` disables
1062
+ * it. Failures are isolated here so they never skip the state transitions.
1063
+ */
1064
+ private watchPrComments;
710
1065
  /**
711
1066
  * Deliver queued watch events. Order per event: claim the inbound task
712
1067
  * (durable), move the key from pending to fired (durable), then run the
@@ -1 +1 @@
1
- {"version":3,"file":"GithubAdapter.d.ts","sourceRoot":"","sources":["../src/GithubAdapter.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,E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