@wowyuarm/dsh-agent-team 0.1.10 → 0.1.12

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.
Files changed (135) hide show
  1. package/README.md +17 -4
  2. package/README.zh.md +17 -4
  3. package/package.json +53 -47
  4. package/packages/agent-team/README.md +6 -4
  5. package/packages/agent-team/README.zh.md +6 -4
  6. package/packages/agent-team/lib/context-management.js +40 -50
  7. package/packages/agent-team/lib/context-projection.js +15 -1
  8. package/packages/agent-team/lib/index.js +244 -154
  9. package/packages/agent-team/lib/invariant.js +38 -4
  10. package/packages/agent-team/lib/ledger.js +775 -383
  11. package/packages/agent-team/lib/member-context.js +6 -2
  12. package/packages/agent-team/lib/member-runtime.js +47 -9
  13. package/packages/agent-team/lib/member-time-context.js +20 -5
  14. package/packages/agent-team/lib/mentions.js +56 -0
  15. package/packages/agent-team/lib/pressure-policy.js +33 -9
  16. package/packages/agent-team/lib/session-event-cursor.js +116 -0
  17. package/packages/agent-team/lib/session-remediation.js +38 -26
  18. package/packages/agent-team/lib/spec.js +47 -34
  19. package/packages/agent-team/lib/stored-session-reader.js +138 -0
  20. package/packages/agent-team/lib/typert.host.js +157 -41
  21. package/packages/agent-team/lib/typert.remote-client.d.ts.map +1 -1
  22. package/packages/agent-team/lib/typert.remote-client.js +129 -32
  23. package/packages/agent-team/lib/types/context-management.d.ts +7 -0
  24. package/packages/agent-team/lib/types/context-management.d.ts.map +1 -1
  25. package/packages/agent-team/lib/types/context-projection.d.ts +8 -0
  26. package/packages/agent-team/lib/types/context-projection.d.ts.map +1 -1
  27. package/packages/agent-team/lib/types/index.d.ts +77 -7
  28. package/packages/agent-team/lib/types/index.d.ts.map +1 -1
  29. package/packages/agent-team/lib/types/invariant.d.ts.map +1 -1
  30. package/packages/agent-team/lib/types/ledger.d.ts +251 -20
  31. package/packages/agent-team/lib/types/ledger.d.ts.map +1 -1
  32. package/packages/agent-team/lib/types/member-context.d.ts.map +1 -1
  33. package/packages/agent-team/lib/types/member-runtime.d.ts +2 -1
  34. package/packages/agent-team/lib/types/member-runtime.d.ts.map +1 -1
  35. package/packages/agent-team/lib/types/member-time-context.d.ts.map +1 -1
  36. package/packages/agent-team/lib/types/mentions.d.ts +34 -0
  37. package/packages/agent-team/lib/types/mentions.d.ts.map +1 -0
  38. package/packages/agent-team/lib/types/pressure-policy.d.ts +18 -0
  39. package/packages/agent-team/lib/types/pressure-policy.d.ts.map +1 -1
  40. package/packages/agent-team/lib/types/session-event-cursor.d.ts +119 -0
  41. package/packages/agent-team/lib/types/session-event-cursor.d.ts.map +1 -0
  42. package/packages/agent-team/lib/types/session-remediation.d.ts +23 -0
  43. package/packages/agent-team/lib/types/session-remediation.d.ts.map +1 -1
  44. package/packages/agent-team/lib/types/spec.d.ts.map +1 -1
  45. package/packages/agent-team/lib/types/stored-session-reader.d.ts +92 -0
  46. package/packages/agent-team/lib/types/stored-session-reader.d.ts.map +1 -0
  47. package/packages/agent-team/lib/types/types/entities.d.ts +28 -20
  48. package/packages/agent-team/lib/types/types/entities.d.ts.map +1 -1
  49. package/packages/agent-team/lib/types/types/operations.d.ts +45 -19
  50. package/packages/agent-team/lib/types/types/operations.d.ts.map +1 -1
  51. package/packages/agent-team/lib/types/types/requests-results.d.ts +87 -4
  52. package/packages/agent-team/lib/types/types/requests-results.d.ts.map +1 -1
  53. package/packages/agent-team/preset/team-member/agent.cordis.yml +49 -7
  54. package/packages/client-agent-team/README.md +1 -1
  55. package/packages/client-agent-team/README.zh.md +1 -1
  56. package/packages/client-agent-team/lib/client.js +2357 -1207
  57. package/packages/client-agent-team/lib/client.js.map +1 -1
  58. package/packages/client-agent-team/lib/types/client/TeamAgentsPanel.d.ts.map +1 -1
  59. package/packages/client-agent-team/lib/types/client/TeamAgentsPanel.js +27 -7
  60. package/packages/client-agent-team/lib/types/client/TeamAvatarStack.d.ts +18 -0
  61. package/packages/client-agent-team/lib/types/client/TeamAvatarStack.d.ts.map +1 -0
  62. package/packages/client-agent-team/lib/types/client/TeamAvatarStack.js +22 -0
  63. package/packages/client-agent-team/lib/types/client/TeamChannelPage.d.ts +3 -1
  64. package/packages/client-agent-team/lib/types/client/TeamChannelPage.d.ts.map +1 -1
  65. package/packages/client-agent-team/lib/types/client/TeamChannelPage.js +167 -35
  66. package/packages/client-agent-team/lib/types/client/TeamChannelsPanel.d.ts.map +1 -1
  67. package/packages/client-agent-team/lib/types/client/TeamChannelsPanel.js +23 -27
  68. package/packages/client-agent-team/lib/types/client/TeamComposer.d.ts +11 -5
  69. package/packages/client-agent-team/lib/types/client/TeamComposer.d.ts.map +1 -1
  70. package/packages/client-agent-team/lib/types/client/TeamComposer.js +26 -26
  71. package/packages/client-agent-team/lib/types/client/TeamConversation.d.ts +1 -1
  72. package/packages/client-agent-team/lib/types/client/TeamConversation.d.ts.map +1 -1
  73. package/packages/client-agent-team/lib/types/client/TeamConversation.js +9 -2
  74. package/packages/client-agent-team/lib/types/client/TeamCountBadge.d.ts +20 -0
  75. package/packages/client-agent-team/lib/types/client/TeamCountBadge.d.ts.map +1 -0
  76. package/packages/client-agent-team/lib/types/client/TeamCountBadge.js +25 -0
  77. package/packages/client-agent-team/lib/types/client/TeamInboxPage.d.ts +25 -0
  78. package/packages/client-agent-team/lib/types/client/TeamInboxPage.d.ts.map +1 -0
  79. package/packages/client-agent-team/lib/types/client/TeamInboxPage.js +139 -0
  80. package/packages/client-agent-team/lib/types/client/TeamMemberEditor.d.ts.map +1 -1
  81. package/packages/client-agent-team/lib/types/client/TeamMemberEditor.js +8 -24
  82. package/packages/client-agent-team/lib/types/client/TeamMemberRow.d.ts +43 -0
  83. package/packages/client-agent-team/lib/types/client/TeamMemberRow.d.ts.map +1 -0
  84. package/packages/client-agent-team/lib/types/client/TeamMemberRow.js +27 -0
  85. package/packages/client-agent-team/lib/types/client/TeamMembersAction.d.ts +2 -2
  86. package/packages/client-agent-team/lib/types/client/TeamMembersAction.d.ts.map +1 -1
  87. package/packages/client-agent-team/lib/types/client/TeamMembersAction.js +2 -2
  88. package/packages/client-agent-team/lib/types/client/TeamMessage.d.ts +9 -2
  89. package/packages/client-agent-team/lib/types/client/TeamMessage.d.ts.map +1 -1
  90. package/packages/client-agent-team/lib/types/client/TeamMessage.js +11 -4
  91. package/packages/client-agent-team/lib/types/client/TeamPresenceDot.d.ts +8 -0
  92. package/packages/client-agent-team/lib/types/client/TeamPresenceDot.d.ts.map +1 -1
  93. package/packages/client-agent-team/lib/types/client/TeamPresenceDot.js +21 -1
  94. package/packages/client-agent-team/lib/types/client/TeamThreadPage.d.ts.map +1 -1
  95. package/packages/client-agent-team/lib/types/client/TeamThreadPage.js +108 -30
  96. package/packages/client-agent-team/lib/types/client/TeamWorkspaceBrowser.d.ts +1 -1
  97. package/packages/client-agent-team/lib/types/client/TeamWorkspaceBrowser.d.ts.map +1 -1
  98. package/packages/client-agent-team/lib/types/client/TeamWorkspaceBrowser.js +68 -7
  99. package/packages/client-agent-team/lib/types/client/index.d.ts.map +1 -1
  100. package/packages/client-agent-team/lib/types/client/index.js +19 -9
  101. package/packages/client-agent-team/lib/types/client/locales.d.ts +40 -2
  102. package/packages/client-agent-team/lib/types/client/locales.d.ts.map +1 -1
  103. package/packages/client-agent-team/lib/types/client/locales.js +40 -2
  104. package/packages/client-agent-team/lib/types/client/navigation.d.ts +10 -0
  105. package/packages/client-agent-team/lib/types/client/navigation.d.ts.map +1 -1
  106. package/packages/client-agent-team/lib/types/client/navigation.js +18 -7
  107. package/packages/client-agent-team/lib/types/client/scope-coverage.d.ts +41 -0
  108. package/packages/client-agent-team/lib/types/client/scope-coverage.d.ts.map +1 -0
  109. package/packages/client-agent-team/lib/types/client/scope-coverage.js +64 -0
  110. package/packages/client-agent-team/lib/types/client/slots.d.ts +7 -2
  111. package/packages/client-agent-team/lib/types/client/slots.d.ts.map +1 -1
  112. package/packages/client-agent-team/lib/types/client/team-changes.d.ts +33 -2
  113. package/packages/client-agent-team/lib/types/client/team-changes.d.ts.map +1 -1
  114. package/packages/client-agent-team/lib/types/client/team-changes.js +107 -25
  115. package/packages/client-agent-team/lib/types/client/team-dialog-save.d.ts +20 -0
  116. package/packages/client-agent-team/lib/types/client/team-dialog-save.d.ts.map +1 -0
  117. package/packages/client-agent-team/lib/types/client/team-dialog-save.js +36 -0
  118. package/packages/client-agent-team/lib/types/client/team-formatters.d.ts +43 -1
  119. package/packages/client-agent-team/lib/types/client/team-formatters.d.ts.map +1 -1
  120. package/packages/client-agent-team/lib/types/client/team-formatters.js +81 -6
  121. package/packages/tool-agent-team/README.md +2 -2
  122. package/packages/tool-agent-team/README.zh.md +2 -2
  123. package/packages/tool-agent-team/lib/context-tools.js +18 -14
  124. package/packages/tool-agent-team/lib/host-access.js +20 -0
  125. package/packages/tool-agent-team/lib/index.js +44 -32
  126. package/packages/tool-agent-team/lib/types/context-tools.d.ts.map +1 -1
  127. package/packages/tool-agent-team/lib/types/host-access.d.ts +14 -0
  128. package/packages/tool-agent-team/lib/types/host-access.d.ts.map +1 -0
  129. package/packages/tool-agent-team/lib/types/index.d.ts.map +1 -1
  130. package/packages/agent-team/lib/progress-nudge.js +0 -328
  131. package/packages/agent-team/lib/types/progress-nudge.d.ts +0 -136
  132. package/packages/agent-team/lib/types/progress-nudge.d.ts.map +0 -1
  133. package/packages/client-agent-team/lib/types/client/TeamSettings.d.ts +0 -3
  134. package/packages/client-agent-team/lib/types/client/TeamSettings.d.ts.map +0 -1
  135. package/packages/client-agent-team/lib/types/client/TeamSettings.js +0 -5
@@ -13,7 +13,7 @@ import { type AgentTeamDurableMemberResult } from './ledger.ts';
13
13
  import type { AgentTeamAddMemberRequest, AgentTeamAgentMember, AgentTeamAgentMemberStatus, AgentTeamArchiveChannelRequest, AgentTeamArchiveChannelResult, AgentTeamArchiveMemberRequest, AgentTeamArchiveMemberResult, AgentTeamChangesRequest, AgentTeamChangesResult, AgentTeamClaimList, AgentTeamClaimRequest, AgentTeamClaimResult, AgentTeamClientMemberStatus, AgentTeamContextCheckpointRef, AgentTeamCreateChannelRequest, AgentTeamCreateChannelResult, AgentTeamGetAttachmentRequest, AgentTeamGetAttachmentResult, AgentTeamInbox, AgentTeamInboxRequest, AgentTeamJoinChannelRequest, AgentTeamJoinChannelResult, AgentTeamMemberId, AgentTeamMemberResult, AgentTeamMembersRequest, AgentTeamResolveTaskRefsRequest, AgentTeamResolveTaskRefsResult, AgentTeamOperationReceipt, AgentTeamPromoteThreadRequest, AgentTeamPromoteThreadResult, AgentTeamPutAttachmentRequest, AgentTeamPutAttachmentResult, AgentTeamRecoverMemberRequest, AgentTeamRecoverMemberResult, AgentTeamClearMemberContextRequest, AgentTeamClearMemberContextResult, AgentTeamRolloverSessionRequest, AgentTeamDmRequest, AgentTeamDmResult, AgentTeamRemoveChannelMemberRequest, AgentTeamRemoveChannelMemberResult, AgentTeamRemoveMemberRequest, AgentTeamRemoveMemberResult, AgentTeamReplyRequest, AgentTeamReplyResult, AgentTeamSendMessageRequest, AgentTeamSendMessageResult, AgentTeamSetMemberStateRequest, AgentTeamStatus, AgentTeamTask, AgentTeamTaskRequest, AgentTeamTaskResult, AgentTeamThreadAttentionRequest, AgentTeamThreadAttentionResult, AgentTeamThreadAttentionStatus, AgentTeamThreadHistory, AgentTeamThreadHistoryRequest, AgentTeamThreadReadRequest, AgentTeamThreadReadResult, AgentTeamThreadObservations, AgentTeamThreadObservationsRequest, AgentTeamUpdateChannelRequest, AgentTeamUpdateChannelResult, AgentTeamUpdateMemberRequest, AgentTeamView, AgentTeamViewRequest } from './types.ts';
14
14
  export { agentTeamDomainSpec, agentTeamOperationSchema } from './spec.ts';
15
15
  export type * from './types.ts';
16
- export { AGENT_TEAM_HUMAN_MEMBER_ID, AGENT_TEAM_INITIALIZE_REQUEST_ID } from './ledger.ts';
16
+ export { AGENT_TEAM_HUMAN_HANDLE, AGENT_TEAM_HUMAN_MEMBER_ID, AGENT_TEAM_INITIALIZE_REQUEST_ID } from './ledger.ts';
17
17
  export { AGENT_TEAM_TOOL_NAMES } from './member-runtime.ts';
18
18
  /** Process-stable marker carried by the final Team message tool definition. */
19
19
  export declare const AGENT_TEAM_PRESET_MARKER: unique symbol;
@@ -122,6 +122,15 @@ export interface AgentTeamTimelineToolResult {
122
122
  readonly hardLimit: number;
123
123
  readonly handoffAt: number;
124
124
  readonly items: readonly AgentTeamTimelineItem[];
125
+ /**
126
+ * The unreadable ancestor that ended the lineage walk early, when one did:
127
+ * history is complete through the last listed source and provably absent
128
+ * beyond it. Never a Member-availability fact.
129
+ */
130
+ readonly incompleteFrom?: {
131
+ readonly sessionId: SessionId;
132
+ readonly reason: string;
133
+ };
125
134
  }
126
135
  /** Host owner of the single Agent Team in one dshHome. */
127
136
  export default class AgentTeam extends TypertRemoteService {
@@ -137,6 +146,13 @@ export default class AgentTeam extends TypertRemoteService {
137
146
  private readonly runningAgents;
138
147
  /** Per-Member runtime state: tool restrictions, skill mounts, warnings, private memory. */
139
148
  private readonly memberRuntime;
149
+ /**
150
+ * The single seam for every per-Session stored read: handle lifecycle and
151
+ * failure normalization live here, so a DSH persistence-interface change is
152
+ * adapted once, and consumers choose policy by failure category instead of
153
+ * matching error text.
154
+ */
155
+ private readonly sessionReader;
140
156
  /**
141
157
  * Why one Member shows error presence, per failure source. Reads prefer
142
158
  * activation, then runtime, then compaction; slots clear independently, so
@@ -150,11 +166,13 @@ export default class AgentTeam extends TypertRemoteService {
150
166
  private attachmentGcTimer?;
151
167
  private readonly recovery;
152
168
  /**
153
- * Advisory progress-visibility nudges. Purely in-process: the ledger owns
154
- * eligibility, this coordinator owns counting and notices, and neither ever
155
- * writes Team facts. See docs/team-collaboration.md for the regimes.
169
+ * Incremental fold state for {@link contextManagement}'s projection lookup:
170
+ * one entry per Member, replaced when that Member's Session changes. Keying
171
+ * by Member rather than by Session id is what bounds the map — a rollover
172
+ * that leaves the previous generation's projection behind retains it for the
173
+ * life of the process, and only the current Session can ever read it.
156
174
  */
157
- private readonly progressNudge;
175
+ private readonly contextCursors;
158
176
  /**
159
177
  * Context self-management: the one deep module that turns a Member's
160
178
  * successful `context_rollover` tool result into its next private context
@@ -165,8 +183,19 @@ export default class AgentTeam extends TypertRemoteService {
165
183
  private readonly contextManagement;
166
184
  private lifecycleTail;
167
185
  private accepting;
168
- private changeVersion;
186
+ /**
187
+ * Presence wake epoch: Agent running/idle/failure is runtime state with no
188
+ * durable fact behind it, so the presence scope counts those edge wakes in
189
+ * process. It never takes part in a projection waiter's comparison.
190
+ */
191
+ private presenceEpoch;
169
192
  private readonly changeWaiters;
193
+ /**
194
+ * The startup-opened remediation instance, held for the restart heal: the
195
+ * completion-cache domain may only be opened once per plugin lifecycle, so
196
+ * the restart path reuses this instance instead of opening its own.
197
+ */
198
+ private remediation;
170
199
  constructor(ctx: Context);
171
200
  /** Open the durable ledger and restore every enabled Member independently. */
172
201
  protected [Service.init](): Promise<void>;
@@ -319,7 +348,7 @@ export default class AgentTeam extends TypertRemoteService {
319
348
  reply(request: AgentTeamReplyRequest): Promise<AgentTeamReplyResult>;
320
349
  /** Human's personal Attention operation. */
321
350
  changeAttention(request: AgentTeamThreadAttentionRequest): Promise<AgentTeamThreadAttentionResult>;
322
- /** Host-only Human Inbox projection; the Web Client does not consume it. */
351
+ /** Human Inbox projection; the Web Client consumes the direct-only slice as its mention queue. */
323
352
  inbox(request: AgentTeamInboxRequest): AgentTeamInbox;
324
353
  /** Human's durable, atomically acknowledged Thread read. */
325
354
  readThread(request: AgentTeamThreadReadRequest): Promise<AgentTeamThreadReadResult>;
@@ -373,6 +402,14 @@ export default class AgentTeam extends TypertRemoteService {
373
402
  viewForAgent(agent: Agent, request: AgentTeamViewRequest): AgentTeamView;
374
403
  /** Validate the durable ledger against an independently replayed projection. */
375
404
  validateLedger(): void;
405
+ /**
406
+ * Validate the durable ledger for the invariant's mount check. The
407
+ * constructor already re-derived every durable record against its own
408
+ * scratch projection, so this adopts that conclusion once while nothing has
409
+ * committed since; every other call, and every commit-driven validation,
410
+ * replays the whole table again.
411
+ */
412
+ validateLedgerAtMount(): void;
376
413
  /**
377
414
  * Effective context-pressure budget for one Member's current route:
378
415
  * `hardLimit = min(256K, routeWindow - outputReserve)` and
@@ -580,6 +617,18 @@ export default class AgentTeam extends TypertRemoteService {
580
617
  private validateMemberPreset;
581
618
  private memberStatus;
582
619
  private setMemberFailure;
620
+ /** Store one structured activation diagnostic; runtime/compaction slots stay plain messages. */
621
+ private setActivationDiagnostic;
622
+ /**
623
+ * Route one activation failure to its diagnostic class: preset composition
624
+ * failures by their own error class, session failures by the seam's typed
625
+ * classification (our call sites carry it directly; a Harness resume
626
+ * failure carries it through the cause chain), everything else as an
627
+ * unclassified activation failure.
628
+ */
629
+ private activationDiagnosticOf;
630
+ /** Mark a session-refused activation diagnostic as proven non-remediable. */
631
+ private markRefusalNonRemediable;
583
632
  private clearMemberFailure;
584
633
  private requireWorkspace;
585
634
  private requireLedger;
@@ -590,6 +639,12 @@ export default class AgentTeam extends TypertRemoteService {
590
639
  /** Model-visible running/stopping job labels for the pressure notice. */
591
640
  private runningJobLabels;
592
641
  private emitAutoCompactionChanged;
642
+ /**
643
+ * Presence-only invalidation: Agent running/idle/activation/failure changes
644
+ * alter no durable projection, so only members/presence subscribers wake —
645
+ * the workspace catalog and the scope-less Inbox subscriptions stay parked.
646
+ */
647
+ private emitPresenceChanged;
593
648
  /** Wake from durable unread state with bounded facts for direct and state-changing work. */
594
649
  private notifyMember;
595
650
  private isInboxNotice;
@@ -605,8 +660,23 @@ export default class AgentTeam extends TypertRemoteService {
605
660
  * Wake waiters for one committed or lifecycle change. Undefined broadcasts
606
661
  * to everyone; an empty scope list invalidates nobody because no shared
607
662
  * projection changed; otherwise global and matching scoped waiters wake.
663
+ * Presence-only scopes sit outside that: they change no durable projection,
664
+ * so only matching presence waiters wake and the scope-less Inbox
665
+ * subscriptions stay parked.
666
+ *
667
+ * Each woken waiter receives the version of its own scope's domain, so a
668
+ * wake can never hand a projection waiter a presence number or the other way
669
+ * around. Nothing here advances the projection version.
608
670
  */
609
671
  private emitChanged;
672
+ /**
673
+ * The cursor domain of one scope: presence scopes count process-local edge
674
+ * wakes, every other scope compares against the durable ledger position of
675
+ * the newest shared-projection commit. The two domains are deliberately
676
+ * separate, so a presence edge cannot invalidate a projection subscriber and
677
+ * a private read invalidates no one.
678
+ */
679
+ private changeVersionOf;
610
680
  private validateChangeScope;
611
681
  private enqueueLifecycle;
612
682
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AACtD,OAAO,EAAyB,KAAK,KAAK,EAA4C,MAAM,wBAAwB,CAAA;AAMpH,OAAO,EAAW,SAAS,EAAuC,MAAM,0BAA0B,CAAA;AAIlG,OAAO,EAAU,mBAAmB,EAAE,MAAM,kCAAkC,CAAA;AAQ9E,OAAO,EAAoE,KAAK,4BAA4B,EAAE,MAAM,aAAa,CAAA;AAQjI,OAAO,KAAK,EACV,yBAAyB,EACzB,oBAAoB,EACpB,0BAA0B,EAC1B,8BAA8B,EAC9B,6BAA6B,EAC7B,6BAA6B,EAC7B,4BAA4B,EAE5B,uBAAuB,EACvB,sBAAsB,EAEtB,kBAAkB,EAClB,qBAAqB,EACrB,oBAAoB,EACpB,2BAA2B,EAC3B,6BAA6B,EAG7B,6BAA6B,EAC7B,4BAA4B,EAC5B,6BAA6B,EAC7B,4BAA4B,EAC5B,cAAc,EACd,qBAAqB,EACrB,2BAA2B,EAC3B,0BAA0B,EAI1B,iBAAiB,EACjB,qBAAqB,EACrB,uBAAuB,EACvB,+BAA+B,EAC/B,8BAA8B,EAG9B,yBAAyB,EACzB,6BAA6B,EAC7B,4BAA4B,EAC5B,6BAA6B,EAC7B,4BAA4B,EAC5B,6BAA6B,EAC7B,4BAA4B,EAC5B,kCAAkC,EAClC,iCAAiC,EACjC,+BAA+B,EAC/B,kBAAkB,EAClB,iBAAiB,EAEjB,mCAAmC,E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ts"],"names":[],"mappings":"AAAA,wEAAwE;AAExE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAKlD,oCAAoC;AACpC,eAAO,MAAM,IAAI,yBAAyB,CAAA;AAC1C,sEAAsE;AACtE,eAAO,MAAM,MAAM,UAAiB,CAAA;AAiBpC;;;;GAIG;AACH,eAAO,MAAM,KAAK,GAAI,KAAK,OAAO,KAAG,OAAO,CAAC,MAAM,IAAI,CACU,CAAA"}
1
+ {"version":3,"file":"invariant.d.ts","sourceRoot":"","sources":["../../src/invariant.ts"],"names":[],"mappings":"AAAA,wEAAwE;AAExE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAKlD,oCAAoC;AACpC,eAAO,MAAM,IAAI,yBAAyB,CAAA;AAC1C,sEAAsE;AACtE,eAAO,MAAM,MAAM,UAAiB,CAAA;AAkDpC;;;;GAIG;AACH,eAAO,MAAM,KAAK,GAAI,KAAK,OAAO,KAAG,OAAO,CAAC,MAAM,IAAI,CACU,CAAA"}
@@ -1,9 +1,15 @@
1
1
  import type { KvTable } from '@deepseek-ai/dsh-storage-domain';
2
2
  import type { SessionId, SessionLogOffset, SessionSeq } from '@deepseek-ai/dsh-session';
3
3
  import type { WorkspaceId } from '@deepseek-ai/dsh-workspace';
4
- import type { AgentTeamAddMemberRequest, AgentTeamAttachmentId, AgentTeamAgentMember, AgentTeamArchiveChannelRequest, AgentTeamArchiveChannelResult, AgentTeamArchiveMemberRequest, AgentTeamArchiveMemberResult, AgentTeamChangeScope, AgentTeamContextCheckpointRef, AgentTeamClaim, AgentTeamClaimList, AgentTeamClaimRequest, AgentTeamClaimResult, AgentTeamClaimRef, AgentTeamCreateChannelRequest, AgentTeamCreateChannelResult, AgentTeamDmRequest, AgentTeamDmResult, AgentTeamHumanActor, AgentTeamInbox, AgentTeamInboxRequest, AgentTeamInboxItem, AgentTeamJoinChannelRequest, AgentTeamJoinChannelResult, AgentTeamMemberActor, AgentTeamMemberId, AgentTeamOperation, AgentTeamOperationId, AgentTeamOperationReceipt, AgentTeamRemoveChannelMemberRequest, AgentTeamRemoveChannelMemberResult, AgentTeamRemoveMemberRequest, AgentTeamRemoveMemberResult, AgentTeamReplyRequest, AgentTeamReplyResult, AgentTeamRequestId, AgentTeamResolvedTaskRef, AgentTeamMessageAttachment, AgentTeamSendMessageRequest, AgentTeamSendMessageResult, AgentTeamSetMemberStateRequest, AgentTeamStatus, AgentTeamTask, AgentTeamTaskRequest, AgentTeamTaskResult, AgentTeamTaskRef, AgentTeamThreadAttentionRequest, AgentTeamThreadAttentionResult, AgentTeamThreadAttentionStatus, AgentTeamThreadHistory, AgentTeamThreadHistoryRequest, AgentTeamThreadReadFact, AgentTeamThreadReadRequest, AgentTeamThreadReadResult, AgentTeamThreadObservations, AgentTeamThreadObservationsRequest, AgentTeamThreadRef, AgentTeamPromoteThreadRequest, AgentTeamPromoteThreadResult, AgentTeamProgressNudgeTargets, AgentTeamUpdateChannelRequest, AgentTeamUpdateChannelResult, AgentTeamUpdateMemberRequest, AgentTeamView, AgentTeamViewRequest } from './types.ts';
4
+ import type { AgentTeamAddMemberRequest, AgentTeamAttachmentId, AgentTeamAgentMember, AgentTeamArchiveChannelRequest, AgentTeamArchiveChannelResult, AgentTeamArchiveMemberRequest, AgentTeamArchiveMemberResult, AgentTeamChangeScope, AgentTeamContextCheckpointRef, AgentTeamClaim, AgentTeamClaimList, AgentTeamClaimRequest, AgentTeamClaimResult, AgentTeamClaimRef, AgentTeamCreateChannelRequest, AgentTeamCreateChannelResult, AgentTeamDmRequest, AgentTeamDmResult, AgentTeamHumanActor, AgentTeamInbox, AgentTeamInboxRequest, AgentTeamInboxItem, AgentTeamJoinChannelRequest, AgentTeamJoinChannelResult, AgentTeamMemberActor, AgentTeamMemberId, AgentTeamOperation, AgentTeamOperationId, AgentTeamOperationReceipt, AgentTeamRemoveChannelMemberRequest, AgentTeamRemoveChannelMemberResult, AgentTeamRemoveMemberRequest, AgentTeamRemoveMemberResult, AgentTeamReplyRequest, AgentTeamReplyResult, AgentTeamRequestId, AgentTeamResolvedTaskRef, AgentTeamMessageAttachment, AgentTeamSendMessageRequest, AgentTeamSendMessageResult, AgentTeamSetMemberStateRequest, AgentTeamStatus, AgentTeamTask, AgentTeamTaskRequest, AgentTeamTaskResult, AgentTeamTaskRef, AgentTeamThreadAttentionRequest, AgentTeamThreadAttentionResult, AgentTeamThreadAttentionStatus, AgentTeamThreadHistory, AgentTeamThreadHistoryRequest, AgentTeamThreadReadFact, AgentTeamThreadReadData, AgentTeamThreadReadRequest, AgentTeamThreadReadResult, AgentTeamThreadReadSnapshot, AgentTeamThreadObservations, AgentTeamThreadObservationsRequest, AgentTeamThreadRef, AgentTeamPromoteThreadRequest, AgentTeamPromoteThreadResult, AgentTeamUpdateChannelRequest, AgentTeamUpdateChannelResult, AgentTeamUpdateMemberRequest, AgentTeamView, AgentTeamViewRequest } from './types.ts';
5
5
  /** Stable Human Member identity shared by every replay of one dshHome Team. */
6
6
  export declare const AGENT_TEAM_HUMAN_MEMBER_ID: AgentTeamMemberId;
7
+ /**
8
+ * The handle the Human is addressed by in Message bodies. The body parser and
9
+ * the Member directory both read this one constant, so a configurable display
10
+ * name has a single place to land instead of a hard-coded literal per surface.
11
+ */
12
+ export declare const AGENT_TEAM_HUMAN_HANDLE = "human";
7
13
  /** Idempotency identity of the one Host bootstrap operation. */
8
14
  export declare const AGENT_TEAM_INITIALIZE_REQUEST_ID: AgentTeamRequestId;
9
15
  /** Resolve the one Human authority owned by this Team. */
@@ -119,11 +125,37 @@ export interface AgentTeamLedgerResult<T> {
119
125
  readonly value: T;
120
126
  readonly committed: boolean;
121
127
  }
128
+ /**
129
+ * Outcome of one Thread read. A read that committed always carries the receipt
130
+ * of the operation it wrote; a read that committed nothing — an already-read
131
+ * Thread — answers with the current picture instead, and only a retry of a
132
+ * read that did commit still carries that original receipt.
133
+ */
134
+ export type AgentTeamThreadReadOutcome = {
135
+ readonly value: AgentTeamThreadReadResult & {
136
+ readonly receipt: AgentTeamOperationReceipt;
137
+ };
138
+ readonly committed: true;
139
+ } | {
140
+ readonly value: AgentTeamThreadReadResult;
141
+ readonly committed: false;
142
+ };
122
143
  interface AgentTeamDurableMemberResult {
123
144
  readonly receipt: AgentTeamOperationReceipt;
124
145
  readonly member: AgentTeamAgentMember;
125
146
  }
126
147
  export type { AgentTeamDurableMemberResult };
148
+ /**
149
+ * Which of the two durable Thread-read forms one record holds. Both schemas are
150
+ * strict and structurally disjoint — only the pre-receipt snapshot carries the
151
+ * Thread picture — so `thread` decides it for every stored record.
152
+ */
153
+ export declare function isThreadReadSnapshot(data: AgentTeamThreadReadData): data is AgentTeamThreadReadSnapshot;
154
+ /** The Thread and optional Task one read targeted, whichever form the record holds. */
155
+ export declare function threadReadTargetOf(data: AgentTeamThreadReadData): {
156
+ readonly threadRef: AgentTeamThreadRef;
157
+ readonly taskRef?: AgentTeamTaskRef | undefined;
158
+ };
127
159
  /** Replay and append logic behind the Agent Team service interface. */
128
160
  export declare class AgentTeamLedger {
129
161
  private readonly table;
@@ -134,6 +166,23 @@ export declare class AgentTeamLedger {
134
166
  private readonly createOccurredAt;
135
167
  private readonly createRef;
136
168
  private operationTail;
169
+ /**
170
+ * Head of the durable records the constructor's record-level replay
171
+ * validated, adoptable once by the invariant mount. See `validateAtMount`.
172
+ */
173
+ private bootValidation;
174
+ /**
175
+ * Sequence of the newest committed record that invalidated the shared
176
+ * projection — the durable position the Client's change cursors compare
177
+ * against, rebuilt by replay like every other index.
178
+ *
179
+ * Records whose commit is private read progress or audit-only
180
+ * (`changeScopesOf` derives no scope for them) never move it, so one
181
+ * Member's Thread read cannot make a parked Client believe that something it
182
+ * watches changed. Being a ledger position rather than a process counter, it
183
+ * also stays monotone across a restart.
184
+ */
185
+ private projectionVersion;
137
186
  constructor(table: KvTable<AgentTeamOperationId, AgentTeamOperation>, options?: AgentTeamLedgerOptions);
138
187
  initialize(request?: AgentTeamInitializeRequest): Promise<AgentTeamLedgerResult<AgentTeamOperationReceipt>>;
139
188
  createChannel(request: AgentTeamAuthorizedCreateChannelRequest): Promise<AgentTeamLedgerResult<AgentTeamCreateChannelResult>>;
@@ -211,18 +260,6 @@ export declare class AgentTeamLedger {
211
260
  * first — the read-only input for the pressure notice's Claim labels.
212
261
  */
213
262
  activeClaimsForMember(memberId: AgentTeamMemberId): readonly AgentTeamClaim[];
214
- /**
215
- * Current progress-nudge candidacy for one Member: threads whose Thread
216
- * progress reminder applies (active Claim, or following a taskless Thread)
217
- * and tasks where the Claim reminder applies (following a still-`todo` Task
218
- * with no Claim history for this Member). A deep read-only projection — the
219
- * caller never re-derives attention, claim, task-resolution, or channel
220
- * archive state. Archived channels and resolved tasks produce no candidacy;
221
- * results are ordered by Thread revision descending, then threadRef.
222
- */
223
- progressNudgeTargets(memberId: AgentTeamMemberId): AgentTeamProgressNudgeTargets;
224
- /** Whether this Member has ever held a Claim on the Task, in any state. */
225
- private hasLifetimeClaimOnTask;
226
263
  listMembers(): readonly AgentTeamAgentMember[];
227
264
  joinChannel(request: AgentTeamAuthorizedJoinChannelRequest): Promise<AgentTeamLedgerResult<AgentTeamJoinChannelResult>>;
228
265
  removeChannelMember(request: AgentTeamAuthorizedRemoveChannelMemberRequest): Promise<AgentTeamLedgerResult<AgentTeamRemoveChannelMemberResult>>;
@@ -270,12 +307,54 @@ export declare class AgentTeamLedger {
270
307
  taskRef?: AgentTeamTaskRef | undefined;
271
308
  }): AgentTeamThreadAttentionStatus;
272
309
  inbox(actor: AgentTeamHumanActor | AgentTeamMemberActor, request: AgentTeamInboxRequest): AgentTeamInbox;
310
+ /**
311
+ * The one person a row names: whoever committed the fact that row's instant
312
+ * came from — a Message's sender, an activity's actor — resolved to the handle
313
+ * the row draws. Resolving it here is what spares every Client row a Member
314
+ * view of its own, and a Member the roster no longer names still reads as
315
+ * themselves through their raw id rather than as nobody.
316
+ */
317
+ private inboxActorFor;
318
+ /** One Member as a row draws them: the id carries the identity hue, the handle the initial. */
319
+ private memberActor;
320
+ /**
321
+ * The people a Task still has on it, resolved the way a row draws them: owners
322
+ * of its live Claims, in claim order, deduped. A released Claim is not work,
323
+ * and a done or closed Task keeps its Claims as history rather than as
324
+ * presence — deliberately the same rule the Channel feed applies to the same
325
+ * Task, so 「谁在这个 Task 上」 never acquires a second definition.
326
+ */
327
+ private liveClaimOwners;
328
+ /**
329
+ * The Human Inbox's 「最近活跃」 slice: the Threads this reader has written in
330
+ * — the durable way back into work instead of a mention-only queue.
331
+ * Participation is the whole admission rule: a reader who replied to somebody
332
+ * else's Thread is here whether or not they follow it, and so is one who
333
+ * started a Thread nobody has answered yet, because starting one is writing
334
+ * its anchor. Attention deliberately plays no part — it decides what notifies
335
+ * a reader (a reply does not implicitly follow a Thread), and reading it here
336
+ * as well is what once hid every Thread a reader had replied to without
337
+ * following. A Thread the reader later unfollowed stays: they did take part
338
+ * in it, and unfollowing stops the notifications, not the record. Every
339
+ * Thread still holding unread is excluded because the queue above already
340
+ * carries it, and the slice is newest-activity first, bounded by
341
+ * `RECENT_INBOX_LIMIT`. Rows are the same shape as unread rows with every
342
+ * count at zero — they are the same row to render.
343
+ */
344
+ private recentInboxItems;
345
+ /**
346
+ * Threads that can hold unread facts for one reader, from the per-reader
347
+ * derived indexes: Attention follows plus direct and activity markers.
348
+ * Every unread source is covered — ordinary unread requires Attention, and
349
+ * marker unread requires a marker — so no full Thread scan is needed.
350
+ */
351
+ private inboxCandidateThreads;
273
352
  /** Model-visible notification material derived from the recipient's current durable unread state. */
274
353
  notificationFacts(memberId: AgentTeamMemberId, request: AgentTeamInboxRequest): readonly {
275
354
  readonly item: AgentTeamInboxItem;
276
355
  readonly facts: readonly AgentTeamThreadReadFact[];
277
356
  }[];
278
- readThread(request: AgentTeamAuthorizedThreadReadRequest): Promise<AgentTeamLedgerResult<AgentTeamThreadReadResult>>;
357
+ readThread(request: AgentTeamAuthorizedThreadReadRequest): Promise<AgentTeamThreadReadOutcome>;
279
358
  threadObservations(actor: AgentTeamHumanActor, request: AgentTeamThreadObservationsRequest): AgentTeamThreadObservations;
280
359
  /** Every operation carrying an inbox delta drives the Inbox projection; the payload shape decides, not a per-kind list. */
281
360
  private attentionDelta;
@@ -293,9 +372,39 @@ export declare class AgentTeamLedger {
293
372
  view(request: AgentTeamViewRequest, memberId?: AgentTeamMemberId): AgentTeamView;
294
373
  status(): AgentTeamStatus;
295
374
  validate(): void;
375
+ /**
376
+ * Validate the durable ledger for the invariant's mount check, reusing the
377
+ * constructor's record-level replay once instead of paying a second identical
378
+ * one at startup.
379
+ *
380
+ * The adoption is gated on the operations table's single-writer identity —
381
+ * this ledger's commit path is the only caller of `table.put` — so an
382
+ * unchanged record count, head sequence and head operation id mean a
383
+ * mount-time replay would re-derive precisely the records the constructor
384
+ * already re-derived against its own scratch projection. Any commit between
385
+ * construction and mount, and every later call, falls back to the full
386
+ * replay. The check is never narrowed: the reused conclusion is still that
387
+ * same independent replay of every durable record.
388
+ */
389
+ validateAtMount(): void;
296
390
  hasCommitted(requestId: AgentTeamRequestId): boolean;
297
391
  /** Return one stored committed operation by id. */
298
392
  getOperation(operationId: AgentTeamOperationId): AgentTeamOperation | undefined;
393
+ /**
394
+ * Claim releases are thread-visible facts: an open Channel page and every
395
+ * affected Thread page must refetch alongside the workspace-wide change. Each
396
+ * released activity contributes its own Thread scope plus the Channel that
397
+ * owns its Task, deduplicated against the caller's initial scopes — which is
398
+ * why the caller passes them in rather than the helper inventing them.
399
+ */
400
+ private withReleasedActivityScopes;
401
+ /**
402
+ * Durable position of the newest shared-projection commit: the version every
403
+ * change waiter outside the presence scope observes. It only moves when a
404
+ * commit has scopes somebody could refetch (`changeScopesOf`), never for
405
+ * private read progress or an audit-only record.
406
+ */
407
+ projectionSequence(): number;
299
408
  /** Scopes whose projections one committed operation invalidates; undefined wakes every waiter. */
300
409
  changeScopesOf(operation: AgentTeamOperation): readonly AgentTeamChangeScope[] | undefined;
301
410
  /** Members whose Inbox projection may have changed; the Host notifies only live ones. */
@@ -304,25 +413,102 @@ export declare class AgentTeamLedger {
304
413
  private replay;
305
414
  private validateRecords;
306
415
  private validateOperation;
416
+ /**
417
+ * Validation of one operation's Inbox delta against the projection it was
418
+ * derived from.
419
+ *
420
+ * Direct marker references resolve through the replay-derived Message index:
421
+ * this runs once per inbox-carrying record, so a rescan of the Message list
422
+ * here would make every record cost the whole ledger. The index is written by
423
+ * the same fact appends that build `factsByThread`, so a lookup sees exactly
424
+ * the records replayed before this one and can never reach a Message that
425
+ * arrives later — which is why the operation's own entity, not yet in the
426
+ * projection, needs the `additional*` fallbacks. The commit path resolved the
427
+ * projection first and then its own record, and that precedence is kept.
428
+ */
307
429
  private validateInboxDelta;
430
+ /**
431
+ * Replay validation of one departure's release snapshot against the
432
+ * projection it was derived from. `memberId` scopes everything to a single
433
+ * departing Member; `undefined` validates every owner, which is what
434
+ * archiving a whole Channel releases. The two scopes differ in exactly four
435
+ * ways, all of them visible here rather than spread over two copies:
436
+ *
437
+ * 1. released Claims are owner-filtered for a Member, unfiltered for a Channel;
438
+ * 2. Activities group per (owner, Thread) with owners sorted, which for a
439
+ * single departing Member collapses to one Activity per Thread — the shape
440
+ * the commit path writes;
441
+ * 3. the inbox cleanup covers the departing Member's Attention and markers, or
442
+ * every Member's on the archived Channel's Threads;
443
+ * 4. the failure message names which of the two paths lost its cleanup.
444
+ */
308
445
  private validateReleaseCleanup;
309
- /** Replay validation of one Channel archival's release snapshot across every owner. */
310
- private validateChannelArchivalCleanup;
311
446
  private validateMessageInbox;
312
447
  private validateMentions;
313
448
  private validMentionTarget;
314
449
  private apply;
315
450
  private applyTo;
451
+ /**
452
+ * Replay the departure snapshot a releasing operation carries. The order is
453
+ * replay semantics, not style: Claims land before the Activities that
454
+ * reference them, and Tasks/Threads before the inbox delta that reads them.
455
+ * Each caller still applies its own identifying writes (member, membership,
456
+ * channel) around this call.
457
+ */
458
+ private applyReleaseSnapshot;
316
459
  /** Facts arrive in ledger sequence order, so global and per-thread lists stay sorted by append only. */
317
460
  private appendMessageFact;
318
461
  private appendActivityFact;
462
+ /** Display ordinals are a per-Channel creation counter; the workspace filter happens at read time. */
463
+ private recordTaskNumber;
464
+ /**
465
+ * Replay-order Attention observations, appended from committed Inbox deltas
466
+ * only (the hypothetical read projection applies its delta directly). The
467
+ * follow/unfollow decision mirrors the full replay scan it replaces: a
468
+ * removal records only when Attention existed, and a set records unless it
469
+ * is the Thread-creating Message (initial Attention) or merely advances the
470
+ * same follow's watermark. Removals are evaluated before sets, exactly like
471
+ * the scan's loop order.
472
+ */
473
+ private recordAttentionObservations;
474
+ private appendObservation;
319
475
  private applyInboxDelta;
476
+ /** Insert into the Member's Thread bucket keeping the sequence order the read path must see. */
477
+ private insertBucketedMarker;
478
+ private removeBucketedMarker;
320
479
  private prepareRead;
480
+ /**
481
+ * Derive the durable receipt of one Thread read from a prior projection: the
482
+ * Thread it targeted, the watermark it reaches, the Attention row it writes
483
+ * and the Inbox delta it consumes. This is the whole durable content of a
484
+ * receipt-shaped read and the only thing `validateRecords` re-derives for
485
+ * one; the picture derivation below builds on the same result, so the two can
486
+ * never drift.
487
+ */
488
+ private prepareReadReceiptFrom;
321
489
  /** Derive the only legal durable result of one Thread read from a prior projection. */
322
490
  private prepareReadFrom;
323
491
  private readFactFrom;
324
492
  private unreadFor;
325
493
  private unreadForFrom;
494
+ /**
495
+ * The single authority on "this fact is unread for this reader". The picture
496
+ * derivation and the remaining-count derivation both go through it, so the
497
+ * count a read reports can never disagree with the facts it lists. Marker
498
+ * membership arrives as key sets: the caller may be looking at a state the
499
+ * projection has not applied yet.
500
+ */
501
+ private isUnreadFact;
502
+ /**
503
+ * Unread count once this read's own Inbox delta has been applied, derived
504
+ * without materializing a hypothetical projection. The delta can only touch
505
+ * the reader's own Attention row and its own marker keys in one Thread, and
506
+ * every lookup in `isUnreadFact` is scoped to that same (member, Thread)
507
+ * pair, so the post-delta state is the Attention row the receipt already
508
+ * derived plus those marker keys with the delta's own removals and additions
509
+ * applied.
510
+ */
511
+ private remainingUnreadAfter;
326
512
  private visibleToFollower;
327
513
  private threadFacts;
328
514
  private threadFactsFrom;
@@ -371,7 +557,6 @@ export declare class AgentTeamLedger {
371
557
  private issueConfirmation;
372
558
  private consumeConfirmation;
373
559
  private assertMentionTargets;
374
- private memberNotFollowing;
375
560
  private unreadRequired;
376
561
  private staleRevision;
377
562
  private releaseSummaries;
@@ -393,7 +578,9 @@ export declare class AgentTeamLedger {
393
578
  * Display numbers for Tasks: one counter per home Channel, in creation
394
579
  * order. This is the single numbering authority — Channel cards, Thread
395
580
  * headings, cross-channel ref resolution, and inbox renders all show the
396
- * ordinal the Task holds inside its own Channel.
581
+ * ordinal the Task holds inside its own Channel. The ordinals are derived
582
+ * at replay time (`taskNumberByTask`); this read only filters them to one
583
+ * Workspace.
397
584
  */
398
585
  private taskNumbers;
399
586
  private hasActiveClaim;
@@ -440,6 +627,38 @@ export declare class AgentTeamLedger {
440
627
  private assertJoinableMember;
441
628
  private normalizeRecipients;
442
629
  private normalizeUnique;
630
+ /**
631
+ * Names a Message body may address in one Channel: every live Member of that
632
+ * Channel plus the Human. A name outside this set stays prose, which is what
633
+ * keeps an incidental name-drop from reaching someone the Channel cannot
634
+ * deliver to.
635
+ */
636
+ private mentionCandidatesFor;
637
+ /**
638
+ * Merge the `@Handle` mentions authored in `body` into an explicit recipient
639
+ * set. Body mentions are the primary channel now: an Agent has no recipient
640
+ * parameter to forget, and the same scan serves Human input typed by hand.
641
+ * The result stays a plain recipient set, so every downstream projection —
642
+ * delivery markers, chip rendering, confirmation — is unchanged.
643
+ */
644
+ private mergeBodyMentions;
645
+ /**
646
+ * Whether one Member has ever held Attention on one Thread. Committed Inbox
647
+ * deltas append a follow/unfollow observation, and the live index covers the
648
+ * Thread-creating Message whose initial Attention is never observed — so the
649
+ * two together answer "was this Member ever part of this Thread" without
650
+ * adding a second durable authority.
651
+ */
652
+ private everParticipated;
653
+ private everParticipatedFrom;
654
+ /**
655
+ * Split the Agent recipients an existing Thread cannot deliver to: those the
656
+ * body named that the Thread has never carried. The send still commits — a
657
+ * text mention must never fail the write — and the author is told through the
658
+ * result, because inviting a Member into an existing Thread stays a Human
659
+ * decision.
660
+ */
661
+ private undeliverableRecipients;
443
662
  private normalizeDirection;
444
663
  private assertHandleAvailable;
445
664
  /** Provider route and model id are exact identifiers; only whitespace-only values are rejected. */
@@ -503,7 +722,13 @@ export declare class AgentTeamLedger {
503
722
  private taskResult;
504
723
  private attentionResult;
505
724
  private promotionResult;
506
- private threadReadResult;
725
+ /**
726
+ * The Thread picture a read answers with, derived from the projection the
727
+ * read resolved against. Committed reads, no-op reads and retries all share
728
+ * this one derivation, so a read that writes nothing still returns the same
729
+ * Attention, facts, watermark and unread count a committed one would.
730
+ */
731
+ private readPicture;
507
732
  private receipt;
508
733
  private removalResult;
509
734
  private archivalResult;
@@ -526,7 +751,13 @@ export declare class AgentTeamLedger {
526
751
  private repairLegacyChannelCleanup;
527
752
  /** The pre-fix Channel Thread scope: only Threads carrying a Task. */
528
753
  private legacyChannelThreadRefs;
529
- /** Ledgers written before message occurredAt existed store bare messages; Thread reads resolve instants from the originating operations. */
754
+ /**
755
+ * Ledgers written before message occurredAt existed store bare messages;
756
+ * snapshot-shaped Thread reads resolve instants from the originating
757
+ * operations. A receipt-shaped read carries no message at all, so it passes
758
+ * through untouched — the load path must never touch a shape it does not
759
+ * have, and it never writes either form back.
760
+ */
530
761
  private normalizeOperation;
531
762
  private enqueue;
532
763
  }