github-issue-tower-defence-management 1.112.2 → 1.112.3

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 (37) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/README.md +5 -8
  3. package/bin/adapter/entry-points/handlers/HandleScheduledEventUseCaseHandler.js +2 -9
  4. package/bin/adapter/entry-points/handlers/HandleScheduledEventUseCaseHandler.js.map +1 -1
  5. package/bin/adapter/repositories/ConfigurableSilentSessionMessageComposer.js +0 -6
  6. package/bin/adapter/repositories/ConfigurableSilentSessionMessageComposer.js.map +1 -1
  7. package/bin/adapter/repositories/TranscriptOwnerCallStatusProvider.js +26 -1
  8. package/bin/adapter/repositories/TranscriptOwnerCallStatusProvider.js.map +1 -1
  9. package/bin/domain/usecases/DefaultSilentSessionMessageComposer.js +0 -9
  10. package/bin/domain/usecases/DefaultSilentSessionMessageComposer.js.map +1 -1
  11. package/bin/domain/usecases/NotifySilentLiveSessionsUseCase.js +3 -13
  12. package/bin/domain/usecases/NotifySilentLiveSessionsUseCase.js.map +1 -1
  13. package/package.json +1 -1
  14. package/src/adapter/entry-points/handlers/HandleScheduledEventUseCaseHandler.ts +0 -5
  15. package/src/adapter/entry-points/handlers/notifySilentTmuxSessions.test.ts +2 -42
  16. package/src/adapter/repositories/ConfigurableSilentSessionMessageComposer.test.ts +0 -44
  17. package/src/adapter/repositories/ConfigurableSilentSessionMessageComposer.ts +0 -8
  18. package/src/adapter/repositories/GoogleSpreadsheetRepository.integration.test.ts +4 -4
  19. package/src/adapter/repositories/GraphqlProjectRepository.test.ts +4 -2
  20. package/src/adapter/repositories/KySlackRepository.test.ts +5 -4
  21. package/src/adapter/repositories/TranscriptOwnerCallStatusProvider.test.ts +90 -0
  22. package/src/adapter/repositories/TranscriptOwnerCallStatusProvider.ts +29 -1
  23. package/src/adapter/repositories/issue/ApiV3IssueRepository.test.ts +6 -2
  24. package/src/domain/usecases/DefaultSilentSessionMessageComposer.test.ts +1 -17
  25. package/src/domain/usecases/DefaultSilentSessionMessageComposer.ts +0 -11
  26. package/src/domain/usecases/NotifySilentLiveSessionsUseCase.test.ts +2 -62
  27. package/src/domain/usecases/NotifySilentLiveSessionsUseCase.ts +7 -20
  28. package/src/domain/usecases/adapter-interfaces/SilentSessionMessageComposer.ts +0 -1
  29. package/types/adapter/entry-points/handlers/HandleScheduledEventUseCaseHandler.d.ts.map +1 -1
  30. package/types/adapter/repositories/ConfigurableSilentSessionMessageComposer.d.ts +0 -2
  31. package/types/adapter/repositories/ConfigurableSilentSessionMessageComposer.d.ts.map +1 -1
  32. package/types/adapter/repositories/TranscriptOwnerCallStatusProvider.d.ts.map +1 -1
  33. package/types/domain/usecases/DefaultSilentSessionMessageComposer.d.ts +0 -1
  34. package/types/domain/usecases/DefaultSilentSessionMessageComposer.d.ts.map +1 -1
  35. package/types/domain/usecases/NotifySilentLiveSessionsUseCase.d.ts.map +1 -1
  36. package/types/domain/usecases/adapter-interfaces/SilentSessionMessageComposer.d.ts +0 -1
  37. package/types/domain/usecases/adapter-interfaces/SilentSessionMessageComposer.d.ts.map +1 -1
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [1.112.3](https://github.com/HiromiShikata/npm-cli-github-issue-tower-defence-management/compare/v1.112.2...v1.112.3) (2026-06-28)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **schedule:** remove owner re-notification path and count only genuine human owner replies ([#1049](https://github.com/HiromiShikata/npm-cli-github-issue-tower-defence-management/issues/1049)) ([5809680](https://github.com/HiromiShikata/npm-cli-github-issue-tower-defence-management/commit/580968033320347badfe3a6f1237f9bbd0f876ad)), closes [#1047](https://github.com/HiromiShikata/npm-cli-github-issue-tower-defence-management/issues/1047)
7
+
1
8
  ## [1.112.2](https://github.com/HiromiShikata/npm-cli-github-issue-tower-defence-management/compare/v1.112.1...v1.112.2) (2026-06-28)
2
9
 
3
10
 
package/README.md CHANGED
@@ -287,15 +287,14 @@ inTmuxLauncherCommand?: string # Optional: Launcher command that starts an inter
287
287
  silentNotificationEnabled?: boolean # Optional: Master switch for the silent live session self-check notification. The step is a no-op unless this is `true` (or the `TDPM_SILENT_NOTIFICATION_ENABLED` environment variable equals the string `true`). This gate prevents the step from acting automatically when the daemon is run with a default configuration; it must be explicitly turned on. Default false
288
288
  subAgentOutputRootDirectory?: string # Optional: Root directory holding one output file per sub-process (file name derived from the sub-process label). The modification time of each file is read to compute how long the sub-process output has been idle. When unset, sub-process idle time is reported as 0 and only the running-time threshold can trigger a sub-process notification
289
289
  subAgentProcessMatchPattern?: string # Optional: Regular expression matched against each process command line to discover the sub-processes that belong to a monitored session. The expression must define a named capture group `session` whose value equals the monitored session name, and may define a named capture group `label` used as the display name. When unset, the sub-process check is skipped
290
- ownerCallMarker?: string # Optional: Marker substring that identifies an assistant message asking the owner for a decision or confirmation. When set, a session whose latest marker-bearing assistant message is newer (by full timestamp) than its latest genuine owner reply is treated as waiting on the owner: the main-session stalled section is suppressed, and instead — once the wait exceeds `mainSilentThresholdSeconds` — an owner-re-notification section is sent that tells the agent to re-raise its pending call-to-user so the owner is notified again. When unset, no session is treated as waiting on the owner
290
+ ownerCallMarker?: string # Optional: Marker substring that identifies an assistant message asking the owner for a decision or confirmation. When set, the main-session stalled section is suppressed while a session's latest marker-bearing assistant message is newer (by full timestamp) than its latest genuine owner reply. When unset, no session is treated as waiting on the owner
291
291
  subAgentTranscriptRootDirectory?: string # Optional: Root directory under which each session has a `<sessionName>/subagents/` directory holding one `agent-<id>.jsonl` transcript per sub-agent. A sub-agent whose latest transcript entry reports a `stop_reason` of `end_turn` or `stop_sequence` is treated as finished and skipped; for any other sub-agent the idle time is computed from the transcript file modification time (following symlinks) and the running time from its first entry timestamp. When set, this transcript-based discovery is used instead of `subAgentProcessMatchPattern`. When unset, the process-match discovery is used
292
- mainSilentThresholdSeconds?: number # Optional: Seconds of main-session output silence after which the main-session self-check section is sent. The same threshold also gates the owner-re-notification section: a session waiting on the owner is re-reminded only once its silence reaches this value. Default 600
292
+ mainSilentThresholdSeconds?: number # Optional: Seconds of main-session output silence after which the main-session self-check section is sent. Default 600
293
293
  subAgentSilentThresholdSeconds?: number # Optional: Seconds of sub-process output silence after which the sub-process section is sent. Default 300
294
294
  subAgentRunningThresholdSeconds?: number # Optional: Seconds a sub-process may run before the sub-process section is sent regardless of its output silence. Default 900
295
295
  silentNotificationCooldownSeconds?: number # Optional: Minimum seconds between notifications to the same session. Default 1800
296
296
  silentNotificationStaggerSeconds?: number # Optional: Seconds to wait between consecutive session notifications within one cycle, so the targets are notified sequentially rather than all at once. Default 25
297
297
  silentMainStalledMessage?: string # Optional: Overrides the body of the main-session stalled section. When unset, a generic built-in message is used
298
- silentOwnerReNotificationMessage?: string # Optional: Overrides the body of the owner-re-notification section sent to a session that has been waiting on the owner past `mainSilentThresholdSeconds`. When unset, a generic built-in message is used that instructs the agent to re-raise its pending call-to-user and states the injected message is not the owner replying
299
298
  silentSubAgentMessageHeader?: string # Optional: Overrides the line shown above the sub-process list in the sub-process section. When unset, a generic built-in line is used
300
299
  silentSubAgentMessageFooter?: string # Optional: Overrides the line shown below the sub-process list in the sub-process section. When unset, a generic built-in line is used
301
300
  changeTargetPathAliases?: # Optional: Map of short alias keys to full repository-root-relative directory paths. Allows `change-target:<alias>` labels to reference deeply nested paths that exceed GitHub's 50-character label limit. When a `change-target:` label's value matches a key in this map, it is expanded to the corresponding full path before confinement checking. Values with leading or trailing slashes are normalized automatically. Example below
@@ -555,19 +554,17 @@ For each `In Tmux by human` issue with no live session, the reconciler launches
555
554
 
556
555
  ## Silent Live Session Notification
557
556
 
558
- Each schedule cycle, when `silentNotificationEnabled` is true, also inspects every live interactive Claude Code session and sends a short reminder into a session via `tmux send-keys`. There are three independent reminder paths: (1) the main-session stalled self-check, sent to a session that is silent but not waiting on the owner; (2) the owner-re-notification, sent to a session that IS waiting on the owner and has waited long enough; and (3) the sub-process stall reminder. The reminder is composed of only the sections whose condition is met, so a session receives one combined message containing one or more sections. The main-session stalled section and the owner-re-notification section are mutually exclusive for a given cycle, because a session is either waiting on the owner or not. When `silentNotificationEnabled` is not set, the entire step is a no-op even if the daemon picks up its configuration automatically.
557
+ Each schedule cycle, when `silentNotificationEnabled` is true, also inspects every live interactive Claude Code session and sends a short self-check reminder into a session via `tmux send-keys` when either of two independent conditions holds. The reminder is composed of only the sections whose condition is met, so a session receives one combined message containing one or both sections. When `silentNotificationEnabled` is not set, the entire step is a no-op even if the daemon picks up its configuration automatically.
559
558
 
560
559
  Sessions are selected purely from the live process tree, independently of session naming or any GitHub issue linkage: every live tmux session is taken, the descendants of each session's pane processes are walked, and the first descendant that is an interactive Claude Code process (its command line contains `claude` and does not contain the owner-handover marker `Take ownership of`, and its environment exposes both `CLAUDE_CODE_SESSION_ID` and `CLAUDE_CONFIG_DIR`) is taken as that session's process. Both issue-url-named sessions and plain-named sessions (for example `workbench`) are selected equally. Because the walk is anchored on tmux panes, background owner-handover spawns, the preparation daemon, and monitor processes — none of which run inside an interactive tmux pane — are excluded; the owner-handover marker check is an additional guard. Each selected session's transcript is then resolved from its process environment as `<CLAUDE_CONFIG_DIR>/projects/<cwd-slug>/<CLAUDE_CODE_SESSION_ID>.jsonl` (the most recently modified match is used when several exist), so a session that has no issue URL resolves just as reliably as one that does.
561
560
 
562
- The main-session stalled section is sent when the session's main output has been idle for at least `mainSilentThresholdSeconds` and the session is not waiting on the owner. Idle time is computed from the timestamp of the latest `assistant` entry in the session's resolved transcript rather than from the transcript file modification time, so a transcript that is only updated by tool results or owner replies still counts as silent. Whether a session is waiting on the owner is determined through an injectable port; the built-in default reports no session as waiting, so the owner-aware behavior is only applied when a host provides an implementation. When `ownerCallMarker` is configured, a transcript-based implementation is used: it reads each session's resolved transcript and treats the session as waiting on the owner when the latest entry containing `ownerCallMarker` is newer (by full timestamp) than the latest genuine owner reply. A reminder that the monitor injects into a session via `tmux send-keys` itself lands in that session's transcript as a `user` text entry; every injected reminder carries a fixed sentinel tag (`[TDPM_SILENT_SESSION_SELF_CHECK_REMINDER]`), and a `user` entry whose text contains that sentinel is not counted as a genuine owner reply. This prevents the monitor's own reminder from being mistaken for the owner answering.
563
-
564
- The owner-re-notification section replaces the old "suppress and stay silent" behavior for a session that is waiting on the owner. A session waiting on the owner must not be left silent indefinitely, because the owner is only notified when a fresh call-to-user is raised; a single past call-to-user that has gone quiet never reaches them. So when a session is waiting on the owner (an unanswered `ownerCallMarker` call) AND its silence has reached `mainSilentThresholdSeconds`, the monitor sends the owner-re-notification section instead of suppressing. That section instructs the agent to re-raise / re-emit its pending call-to-user now so the owner's call-to-user marker re-fires, and it explicitly states that the injected message is not the owner replying and must not be treated as an owner answer; it does not tell the agent it is stalled or idle, because the session is correctly waiting. Like the other sections it carries the `[TDPM_SILENT_SESSION_SELF_CHECK_REMINDER]` sentinel, so the re-notification itself is never miscounted as an owner reply. The per-session cooldown (`silentNotificationCooldownSeconds`, default 1800 seconds) limits the owner to being re-reminded at most about once every 30 minutes, and the re-notification stops automatically once the owner actually replies, because a genuine owner reply clears the unanswered-owner-call condition. Both this section and the main-session stalled section default to a generic built-in message and can be overridden with `silentOwnerReNotificationMessage` and `silentMainStalledMessage` respectively.
561
+ The main-session stalled section is sent when the session's main output has been idle for at least `mainSilentThresholdSeconds`, unless the session is currently waiting on the owner (in that case the silence is expected and the section is suppressed). Idle time is computed from the timestamp of the latest `assistant` entry in the session's resolved transcript rather than from the transcript file modification time, so a transcript that is only updated by tool results or owner replies still counts as silent. Whether a session is waiting on the owner is determined through an injectable port; the built-in default reports no session as waiting, so the suppression is only applied when a host provides an implementation. When `ownerCallMarker` is configured, a transcript-based implementation is used: it reads each session's resolved transcript and treats the session as waiting on the owner when the latest entry containing `ownerCallMarker` is newer (by full timestamp) than the latest genuine owner reply. A self-check reminder that the monitor injects into a session via `tmux send-keys` itself lands in that session's transcript as a `user` text entry; every injected reminder carries a fixed sentinel tag (`[TDPM_SILENT_SESSION_SELF_CHECK_REMINDER]`), and a `user` entry whose text contains that sentinel is not counted as a genuine owner reply. This prevents the monitor's own reminder from being mistaken for the owner answering, which would otherwise make a genuinely waiting session stop being suppressed.
565
562
 
566
563
  The sub-process section is sent, regardless of main output, when at least one sub-process of the session has been output-idle for `subAgentSilentThresholdSeconds` or has been running for `subAgentRunningThresholdSeconds`; the message lists each matched sub-process with its idle and running minutes. Sub-processes are discovered in one of two ways: when `subAgentTranscriptRootDirectory` is configured, each session's `subagents/agent-<id>.jsonl` transcripts are scanned, finished sub-agents (latest transcript entry `stop_reason` equal to `end_turn` or `stop_sequence`) are skipped, and idle time is taken from the transcript file modification time (following symlinks) while running time is taken from its first entry timestamp; otherwise sub-processes are discovered by matching `subAgentProcessMatchPattern` against process command lines.
567
564
 
568
565
  A per-session cooldown (`silentNotificationCooldownSeconds`) prevents repeated notifications, persisted via the cache. Because the scheduled handler runs once per project but the silent-session monitor inspects the single global set of live tmux sessions, this cooldown is stored in a single project-independent cache scope (a fixed shared path rather than the per-project cache directory). This way the 30-minute cooldown is shared across every per-project pass and a session is notified at most once per cooldown window even when several projects are enabled; all other per-project caches are unaffected. When more than one session is notified in the same cycle, the sends are spaced out sequentially with `silentNotificationStaggerSeconds` between consecutive sends (no wait before the first or after the last) so the targets are not all triggered at once. Process-snapshot collection, transcript resolution, owner-call detection, the wait between sends, and the message wording are all performed through injectable ports, so the logic is unit-testable without touching the host, and the host-specific process and environment access, sub-process pattern, and message wording are supplied through adapters or configuration. When `silentNotificationEnabled` is not true the step is a no-op, and any error during the step is logged and swallowed so the schedule cycle is never affected.
569
566
 
570
- Each config key above has a matching environment variable read when the config key is unset: `TDPM_SILENT_NOTIFICATION_ENABLED` (the string `true` enables the step), `TDPM_SILENT_OWNER_CALL_MARKER`, `TDPM_SUBAGENT_OUTPUT_ROOT_DIRECTORY`, `TDPM_SUBAGENT_PROCESS_MATCH_PATTERN`, `TDPM_SUBAGENT_TRANSCRIPT_ROOT_DIRECTORY`, `TDPM_MAIN_SILENT_THRESHOLD_SECONDS`, `TDPM_SUBAGENT_SILENT_THRESHOLD_SECONDS`, `TDPM_SUBAGENT_RUNNING_THRESHOLD_SECONDS`, `TDPM_SILENT_NOTIFICATION_COOLDOWN_SECONDS`, `TDPM_SILENT_NOTIFICATION_STAGGER_SECONDS`, `TDPM_SILENT_MAIN_STALLED_MESSAGE`, `TDPM_SILENT_OWNER_RE_NOTIFICATION_MESSAGE`, `TDPM_SILENT_SUBAGENT_MESSAGE_HEADER`, and `TDPM_SILENT_SUBAGENT_MESSAGE_FOOTER`.
567
+ Each config key above has a matching environment variable read when the config key is unset: `TDPM_SILENT_NOTIFICATION_ENABLED` (the string `true` enables the step), `TDPM_SILENT_OWNER_CALL_MARKER`, `TDPM_SUBAGENT_OUTPUT_ROOT_DIRECTORY`, `TDPM_SUBAGENT_PROCESS_MATCH_PATTERN`, `TDPM_SUBAGENT_TRANSCRIPT_ROOT_DIRECTORY`, `TDPM_MAIN_SILENT_THRESHOLD_SECONDS`, `TDPM_SUBAGENT_SILENT_THRESHOLD_SECONDS`, `TDPM_SUBAGENT_RUNNING_THRESHOLD_SECONDS`, `TDPM_SILENT_NOTIFICATION_COOLDOWN_SECONDS`, `TDPM_SILENT_NOTIFICATION_STAGGER_SECONDS`, `TDPM_SILENT_MAIN_STALLED_MESSAGE`, `TDPM_SILENT_SUBAGENT_MESSAGE_HEADER`, and `TDPM_SILENT_SUBAGENT_MESSAGE_FOOTER`.
571
568
 
572
569
  ## Token Rotation Order File
573
570
 
@@ -115,13 +115,13 @@ class HandleScheduledEventUseCaseHandler {
115
115
  this.handle = async (configFilePath, _verbose) => {
116
116
  const configFileContent = fs_1.default.readFileSync(configFilePath, 'utf8');
117
117
  const input = yaml_1.default.parse(configFileContent);
118
- if (!(() => { const _io0 = input => "string" === typeof input.org && "number" === typeof input.allowIssueCacheMinutes && (undefined === input.thresholdForAutoReject || "number" === typeof input.thresholdForAutoReject) && (null === input.changeTargetPathAliases || undefined === input.changeTargetPathAliases || "object" === typeof input.changeTargetPathAliases && null !== input.changeTargetPathAliases && false === Array.isArray(input.changeTargetPathAliases) && _io1(input.changeTargetPathAliases)) && "string" === typeof input.projectUrl && "string" === typeof input.projectName && (null === input.labelsAsLlmAgentName || undefined === input.labelsAsLlmAgentName || Array.isArray(input.labelsAsLlmAgentName) && input.labelsAsLlmAgentName.every(elem => "string" === typeof elem)) && "string" === typeof input.manager && ("object" === typeof input.workingReport && null !== input.workingReport && _io2(input.workingReport)) && "string" === typeof input.urlOfStoryView && "boolean" === typeof input.disabled && (null === input.startPreparation || undefined === input.startPreparation || "object" === typeof input.startPreparation && null !== input.startPreparation && _io3(input.startPreparation)) && (null === input.dailySecurityScan || undefined === input.dailySecurityScan || "object" === typeof input.dailySecurityScan && null !== input.dailySecurityScan && _io4(input.dailySecurityScan)) && (null === input.allowedIssueAuthors || undefined === input.allowedIssueAuthors || "string" === typeof input.allowedIssueAuthors || Array.isArray(input.allowedIssueAuthors) && input.allowedIssueAuthors.every(elem => "string" === typeof elem)) && (undefined === input.claudeCodeOauthTokenListJsonPath || "string" === typeof input.claudeCodeOauthTokenListJsonPath) && (undefined === input.consoleDataOutputDir || "string" === typeof input.consoleDataOutputDir) && (undefined === input.dashboardDataDir || "string" === typeof input.dashboardDataDir) && (undefined === input.workflowBlockerStoryName || "string" === typeof input.workflowBlockerStoryName) && (undefined === input.inTmuxDataOutputDir || "string" === typeof input.inTmuxDataOutputDir) && (undefined === input.inTmuxConsoleBaseUrl || "string" === typeof input.inTmuxConsoleBaseUrl) && (undefined === input.inTmuxConsoleToken || "string" === typeof input.inTmuxConsoleToken) && (undefined === input.inTmuxProjectOrder || Array.isArray(input.inTmuxProjectOrder) && input.inTmuxProjectOrder.every(elem => "string" === typeof elem)) && (undefined === input.inTmuxLauncherCommand || "string" === typeof input.inTmuxLauncherCommand) && (undefined === input.silentNotificationEnabled || "boolean" === typeof input.silentNotificationEnabled) && (undefined === input.ownerCallMarker || "string" === typeof input.ownerCallMarker) && (undefined === input.subAgentOutputRootDirectory || "string" === typeof input.subAgentOutputRootDirectory) && (undefined === input.subAgentProcessMatchPattern || "string" === typeof input.subAgentProcessMatchPattern) && (undefined === input.subAgentTranscriptRootDirectory || "string" === typeof input.subAgentTranscriptRootDirectory) && (undefined === input.mainSilentThresholdSeconds || "number" === typeof input.mainSilentThresholdSeconds) && (undefined === input.subAgentSilentThresholdSeconds || "number" === typeof input.subAgentSilentThresholdSeconds) && (undefined === input.subAgentRunningThresholdSeconds || "number" === typeof input.subAgentRunningThresholdSeconds) && (undefined === input.silentNotificationCooldownSeconds || "number" === typeof input.silentNotificationCooldownSeconds) && (undefined === input.silentNotificationStaggerSeconds || "number" === typeof input.silentNotificationStaggerSeconds) && (undefined === input.silentMainStalledMessage || "string" === typeof input.silentMainStalledMessage) && (undefined === input.silentOwnerReNotificationMessage || "string" === typeof input.silentOwnerReNotificationMessage) && (undefined === input.silentSubAgentMessageHeader || "string" === typeof input.silentSubAgentMessageHeader) && (undefined === input.silentSubAgentMessageFooter || "string" === typeof input.silentSubAgentMessageFooter) && ("object" === typeof input.credentials && null !== input.credentials && _io5(input.credentials)); const _io1 = input => Object.keys(input).every(key => {
118
+ if (!(() => { const _io0 = input => "string" === typeof input.org && "number" === typeof input.allowIssueCacheMinutes && (undefined === input.thresholdForAutoReject || "number" === typeof input.thresholdForAutoReject) && (null === input.changeTargetPathAliases || undefined === input.changeTargetPathAliases || "object" === typeof input.changeTargetPathAliases && null !== input.changeTargetPathAliases && false === Array.isArray(input.changeTargetPathAliases) && _io1(input.changeTargetPathAliases)) && "string" === typeof input.projectUrl && "string" === typeof input.projectName && (null === input.labelsAsLlmAgentName || undefined === input.labelsAsLlmAgentName || Array.isArray(input.labelsAsLlmAgentName) && input.labelsAsLlmAgentName.every(elem => "string" === typeof elem)) && "string" === typeof input.manager && ("object" === typeof input.workingReport && null !== input.workingReport && _io2(input.workingReport)) && "string" === typeof input.urlOfStoryView && "boolean" === typeof input.disabled && (null === input.startPreparation || undefined === input.startPreparation || "object" === typeof input.startPreparation && null !== input.startPreparation && _io3(input.startPreparation)) && (null === input.dailySecurityScan || undefined === input.dailySecurityScan || "object" === typeof input.dailySecurityScan && null !== input.dailySecurityScan && _io4(input.dailySecurityScan)) && (null === input.allowedIssueAuthors || undefined === input.allowedIssueAuthors || "string" === typeof input.allowedIssueAuthors || Array.isArray(input.allowedIssueAuthors) && input.allowedIssueAuthors.every(elem => "string" === typeof elem)) && (undefined === input.claudeCodeOauthTokenListJsonPath || "string" === typeof input.claudeCodeOauthTokenListJsonPath) && (undefined === input.consoleDataOutputDir || "string" === typeof input.consoleDataOutputDir) && (undefined === input.dashboardDataDir || "string" === typeof input.dashboardDataDir) && (undefined === input.workflowBlockerStoryName || "string" === typeof input.workflowBlockerStoryName) && (undefined === input.inTmuxDataOutputDir || "string" === typeof input.inTmuxDataOutputDir) && (undefined === input.inTmuxConsoleBaseUrl || "string" === typeof input.inTmuxConsoleBaseUrl) && (undefined === input.inTmuxConsoleToken || "string" === typeof input.inTmuxConsoleToken) && (undefined === input.inTmuxProjectOrder || Array.isArray(input.inTmuxProjectOrder) && input.inTmuxProjectOrder.every(elem => "string" === typeof elem)) && (undefined === input.inTmuxLauncherCommand || "string" === typeof input.inTmuxLauncherCommand) && (undefined === input.silentNotificationEnabled || "boolean" === typeof input.silentNotificationEnabled) && (undefined === input.ownerCallMarker || "string" === typeof input.ownerCallMarker) && (undefined === input.subAgentOutputRootDirectory || "string" === typeof input.subAgentOutputRootDirectory) && (undefined === input.subAgentProcessMatchPattern || "string" === typeof input.subAgentProcessMatchPattern) && (undefined === input.subAgentTranscriptRootDirectory || "string" === typeof input.subAgentTranscriptRootDirectory) && (undefined === input.mainSilentThresholdSeconds || "number" === typeof input.mainSilentThresholdSeconds) && (undefined === input.subAgentSilentThresholdSeconds || "number" === typeof input.subAgentSilentThresholdSeconds) && (undefined === input.subAgentRunningThresholdSeconds || "number" === typeof input.subAgentRunningThresholdSeconds) && (undefined === input.silentNotificationCooldownSeconds || "number" === typeof input.silentNotificationCooldownSeconds) && (undefined === input.silentNotificationStaggerSeconds || "number" === typeof input.silentNotificationStaggerSeconds) && (undefined === input.silentMainStalledMessage || "string" === typeof input.silentMainStalledMessage) && (undefined === input.silentSubAgentMessageHeader || "string" === typeof input.silentSubAgentMessageHeader) && (undefined === input.silentSubAgentMessageFooter || "string" === typeof input.silentSubAgentMessageFooter) && ("object" === typeof input.credentials && null !== input.credentials && _io5(input.credentials)); const _io1 = input => Object.keys(input).every(key => {
119
119
  const value = input[key];
120
120
  if (undefined === value)
121
121
  return true;
122
122
  return "string" === typeof value;
123
123
  }); const _io2 = input => "string" === typeof input.repo && (Array.isArray(input.members) && input.members.every(elem => "string" === typeof elem)) && "string" === typeof input.spreadsheetUrl; const _io3 = input => "string" === typeof input.defaultAgentName && (null === input.defaultLlmModelName || undefined === input.defaultLlmModelName || "string" === typeof input.defaultLlmModelName) && (null === input.fallbackLlmModelName || undefined === input.fallbackLlmModelName || "string" === typeof input.fallbackLlmModelName) && (null === input.defaultLlmAgentName || undefined === input.defaultLlmAgentName || "string" === typeof input.defaultLlmAgentName) && "string" === typeof input.configFilePath && (null === input.maximumPreparingIssuesCount || "number" === typeof input.maximumPreparingIssuesCount) && (undefined === input.utilizationPercentageThreshold || "number" === typeof input.utilizationPercentageThreshold) && (null === input.allowedIssueAuthors || undefined === input.allowedIssueAuthors || Array.isArray(input.allowedIssueAuthors) && input.allowedIssueAuthors.every(elem => "string" === typeof elem)) && (undefined === input.preparationProcessCheckCommand || "string" === typeof input.preparationProcessCheckCommand) && (null === input.codexHomeCandidates || undefined === input.codexHomeCandidates || Array.isArray(input.codexHomeCandidates) && input.codexHomeCandidates.every(elem => "string" === typeof elem)) && (undefined === input.awLogDirectoryPath || "string" === typeof input.awLogDirectoryPath) && (undefined === input.awLogStaleThresholdMinutes || "number" === typeof input.awLogStaleThresholdMinutes) && (null === input.awaitingQualityCheckStatus || undefined === input.awaitingQualityCheckStatus || "string" === typeof input.awaitingQualityCheckStatus) && (null === input.labelsAsLlmAgentName || undefined === input.labelsAsLlmAgentName || Array.isArray(input.labelsAsLlmAgentName) && input.labelsAsLlmAgentName.every(elem => "string" === typeof elem)); const _io4 = input => "string" === typeof input.scanBaseDirectory && "number" === typeof input.targetHourUtc && (undefined === input.enableKevNvdReport || "boolean" === typeof input.enableKevNvdReport) && (undefined === input.kevReportRepo || "string" === typeof input.kevReportRepo); const _io5 = input => "object" === typeof input.manager && null !== input.manager && _io6(input.manager) && ("object" === typeof input.bot && null !== input.bot && _io10(input.bot)); const _io6 = input => "object" === typeof input.github && null !== input.github && _io7(input.github) && ("object" === typeof input.slack && null !== input.slack && _io8(input.slack)) && ("object" === typeof input.googleServiceAccount && null !== input.googleServiceAccount && _io9(input.googleServiceAccount)); const _io7 = input => "string" === typeof input.token; const _io8 = input => "string" === typeof input.userToken; const _io9 = input => "string" === typeof input.serviceAccountKey; const _io10 = input => "object" === typeof input.github && null !== input.github && _io11(input.github); const _io11 = input => "string" === typeof input.token; return input => "object" === typeof input && null !== input && _io0(input); })()(input)) {
124
- throw new Error(`Invalid input: ${JSON.stringify(input)}\n\n${JSON.stringify((() => { const _io0 = input => "string" === typeof input.org && "number" === typeof input.allowIssueCacheMinutes && (undefined === input.thresholdForAutoReject || "number" === typeof input.thresholdForAutoReject) && (null === input.changeTargetPathAliases || undefined === input.changeTargetPathAliases || "object" === typeof input.changeTargetPathAliases && null !== input.changeTargetPathAliases && false === Array.isArray(input.changeTargetPathAliases) && _io1(input.changeTargetPathAliases)) && "string" === typeof input.projectUrl && "string" === typeof input.projectName && (null === input.labelsAsLlmAgentName || undefined === input.labelsAsLlmAgentName || Array.isArray(input.labelsAsLlmAgentName) && input.labelsAsLlmAgentName.every(elem => "string" === typeof elem)) && "string" === typeof input.manager && ("object" === typeof input.workingReport && null !== input.workingReport && _io2(input.workingReport)) && "string" === typeof input.urlOfStoryView && "boolean" === typeof input.disabled && (null === input.startPreparation || undefined === input.startPreparation || "object" === typeof input.startPreparation && null !== input.startPreparation && _io3(input.startPreparation)) && (null === input.dailySecurityScan || undefined === input.dailySecurityScan || "object" === typeof input.dailySecurityScan && null !== input.dailySecurityScan && _io4(input.dailySecurityScan)) && (null === input.allowedIssueAuthors || undefined === input.allowedIssueAuthors || "string" === typeof input.allowedIssueAuthors || Array.isArray(input.allowedIssueAuthors) && input.allowedIssueAuthors.every(elem => "string" === typeof elem)) && (undefined === input.claudeCodeOauthTokenListJsonPath || "string" === typeof input.claudeCodeOauthTokenListJsonPath) && (undefined === input.consoleDataOutputDir || "string" === typeof input.consoleDataOutputDir) && (undefined === input.dashboardDataDir || "string" === typeof input.dashboardDataDir) && (undefined === input.workflowBlockerStoryName || "string" === typeof input.workflowBlockerStoryName) && (undefined === input.inTmuxDataOutputDir || "string" === typeof input.inTmuxDataOutputDir) && (undefined === input.inTmuxConsoleBaseUrl || "string" === typeof input.inTmuxConsoleBaseUrl) && (undefined === input.inTmuxConsoleToken || "string" === typeof input.inTmuxConsoleToken) && (undefined === input.inTmuxProjectOrder || Array.isArray(input.inTmuxProjectOrder) && input.inTmuxProjectOrder.every(elem => "string" === typeof elem)) && (undefined === input.inTmuxLauncherCommand || "string" === typeof input.inTmuxLauncherCommand) && (undefined === input.silentNotificationEnabled || "boolean" === typeof input.silentNotificationEnabled) && (undefined === input.ownerCallMarker || "string" === typeof input.ownerCallMarker) && (undefined === input.subAgentOutputRootDirectory || "string" === typeof input.subAgentOutputRootDirectory) && (undefined === input.subAgentProcessMatchPattern || "string" === typeof input.subAgentProcessMatchPattern) && (undefined === input.subAgentTranscriptRootDirectory || "string" === typeof input.subAgentTranscriptRootDirectory) && (undefined === input.mainSilentThresholdSeconds || "number" === typeof input.mainSilentThresholdSeconds) && (undefined === input.subAgentSilentThresholdSeconds || "number" === typeof input.subAgentSilentThresholdSeconds) && (undefined === input.subAgentRunningThresholdSeconds || "number" === typeof input.subAgentRunningThresholdSeconds) && (undefined === input.silentNotificationCooldownSeconds || "number" === typeof input.silentNotificationCooldownSeconds) && (undefined === input.silentNotificationStaggerSeconds || "number" === typeof input.silentNotificationStaggerSeconds) && (undefined === input.silentMainStalledMessage || "string" === typeof input.silentMainStalledMessage) && (undefined === input.silentOwnerReNotificationMessage || "string" === typeof input.silentOwnerReNotificationMessage) && (undefined === input.silentSubAgentMessageHeader || "string" === typeof input.silentSubAgentMessageHeader) && (undefined === input.silentSubAgentMessageFooter || "string" === typeof input.silentSubAgentMessageFooter) && ("object" === typeof input.credentials && null !== input.credentials && _io5(input.credentials)); const _io1 = input => Object.keys(input).every(key => {
124
+ throw new Error(`Invalid input: ${JSON.stringify(input)}\n\n${JSON.stringify((() => { const _io0 = input => "string" === typeof input.org && "number" === typeof input.allowIssueCacheMinutes && (undefined === input.thresholdForAutoReject || "number" === typeof input.thresholdForAutoReject) && (null === input.changeTargetPathAliases || undefined === input.changeTargetPathAliases || "object" === typeof input.changeTargetPathAliases && null !== input.changeTargetPathAliases && false === Array.isArray(input.changeTargetPathAliases) && _io1(input.changeTargetPathAliases)) && "string" === typeof input.projectUrl && "string" === typeof input.projectName && (null === input.labelsAsLlmAgentName || undefined === input.labelsAsLlmAgentName || Array.isArray(input.labelsAsLlmAgentName) && input.labelsAsLlmAgentName.every(elem => "string" === typeof elem)) && "string" === typeof input.manager && ("object" === typeof input.workingReport && null !== input.workingReport && _io2(input.workingReport)) && "string" === typeof input.urlOfStoryView && "boolean" === typeof input.disabled && (null === input.startPreparation || undefined === input.startPreparation || "object" === typeof input.startPreparation && null !== input.startPreparation && _io3(input.startPreparation)) && (null === input.dailySecurityScan || undefined === input.dailySecurityScan || "object" === typeof input.dailySecurityScan && null !== input.dailySecurityScan && _io4(input.dailySecurityScan)) && (null === input.allowedIssueAuthors || undefined === input.allowedIssueAuthors || "string" === typeof input.allowedIssueAuthors || Array.isArray(input.allowedIssueAuthors) && input.allowedIssueAuthors.every(elem => "string" === typeof elem)) && (undefined === input.claudeCodeOauthTokenListJsonPath || "string" === typeof input.claudeCodeOauthTokenListJsonPath) && (undefined === input.consoleDataOutputDir || "string" === typeof input.consoleDataOutputDir) && (undefined === input.dashboardDataDir || "string" === typeof input.dashboardDataDir) && (undefined === input.workflowBlockerStoryName || "string" === typeof input.workflowBlockerStoryName) && (undefined === input.inTmuxDataOutputDir || "string" === typeof input.inTmuxDataOutputDir) && (undefined === input.inTmuxConsoleBaseUrl || "string" === typeof input.inTmuxConsoleBaseUrl) && (undefined === input.inTmuxConsoleToken || "string" === typeof input.inTmuxConsoleToken) && (undefined === input.inTmuxProjectOrder || Array.isArray(input.inTmuxProjectOrder) && input.inTmuxProjectOrder.every(elem => "string" === typeof elem)) && (undefined === input.inTmuxLauncherCommand || "string" === typeof input.inTmuxLauncherCommand) && (undefined === input.silentNotificationEnabled || "boolean" === typeof input.silentNotificationEnabled) && (undefined === input.ownerCallMarker || "string" === typeof input.ownerCallMarker) && (undefined === input.subAgentOutputRootDirectory || "string" === typeof input.subAgentOutputRootDirectory) && (undefined === input.subAgentProcessMatchPattern || "string" === typeof input.subAgentProcessMatchPattern) && (undefined === input.subAgentTranscriptRootDirectory || "string" === typeof input.subAgentTranscriptRootDirectory) && (undefined === input.mainSilentThresholdSeconds || "number" === typeof input.mainSilentThresholdSeconds) && (undefined === input.subAgentSilentThresholdSeconds || "number" === typeof input.subAgentSilentThresholdSeconds) && (undefined === input.subAgentRunningThresholdSeconds || "number" === typeof input.subAgentRunningThresholdSeconds) && (undefined === input.silentNotificationCooldownSeconds || "number" === typeof input.silentNotificationCooldownSeconds) && (undefined === input.silentNotificationStaggerSeconds || "number" === typeof input.silentNotificationStaggerSeconds) && (undefined === input.silentMainStalledMessage || "string" === typeof input.silentMainStalledMessage) && (undefined === input.silentSubAgentMessageHeader || "string" === typeof input.silentSubAgentMessageHeader) && (undefined === input.silentSubAgentMessageFooter || "string" === typeof input.silentSubAgentMessageFooter) && ("object" === typeof input.credentials && null !== input.credentials && _io5(input.credentials)); const _io1 = input => Object.keys(input).every(key => {
125
125
  const value = input[key];
126
126
  if (undefined === value)
127
127
  return true;
@@ -302,10 +302,6 @@ class HandleScheduledEventUseCaseHandler {
302
302
  path: _path + ".silentMainStalledMessage",
303
303
  expected: "(string | undefined)",
304
304
  value: input.silentMainStalledMessage
305
- }), undefined === input.silentOwnerReNotificationMessage || "string" === typeof input.silentOwnerReNotificationMessage || _report(_exceptionable, {
306
- path: _path + ".silentOwnerReNotificationMessage",
307
- expected: "(string | undefined)",
308
- value: input.silentOwnerReNotificationMessage
309
305
  }), undefined === input.silentSubAgentMessageHeader || "string" === typeof input.silentSubAgentMessageHeader || _report(_exceptionable, {
310
306
  path: _path + ".silentSubAgentMessageHeader",
311
307
  expected: "(string | undefined)",
@@ -793,9 +789,6 @@ class HandleScheduledEventUseCaseHandler {
793
789
  mainStalledMessage: mergedInput.silentMainStalledMessage ??
794
790
  process.env.TDPM_SILENT_MAIN_STALLED_MESSAGE ??
795
791
  null,
796
- ownerReNotificationMessage: mergedInput.silentOwnerReNotificationMessage ??
797
- process.env.TDPM_SILENT_OWNER_RE_NOTIFICATION_MESSAGE ??
798
- null,
799
792
  subAgentMessageHeader: mergedInput.silentSubAgentMessageHeader ??
800
793
  process.env.TDPM_SILENT_SUBAGENT_MESSAGE_HEADER ??
801
794
  null,
@@ -1 +1 @@
1
- {"version":3,"file":"HandleScheduledEventUseCaseHandler.js","sourceRoot":"","sources":["../../../../src/adapter/entry-points/handlers/HandleScheduledEventUseCaseHandler.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gDAAwB;AACxB,kDAA0B;AAC1B,4CAAoB;AACpB,+DAA2D;AAC3D,6DAAyD;AACzD,6DAAyD;AACzD,+DAA2D;AAC3D,2DAAuD;AACvD,uEAAmE;AACnE,qFAAkF;AAClF,uEAAmE;AACnE,yEAGoC;AACpC,uEAAmE;AACnE,wDAG8B;AAC9B,kFAA+E;AAC/E,sFAAmF;AACnF,gGAA6F;AAC7F,0FAAuF;AACvF,wFAAqF;AACrF,sFAAmF;AACnF,wGAAqG;AACrG,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CAAmC;gCAC/C,IAAI;yBACP;wBACD,GAAG,EAAE,SAAS;qBACf,CAAC,CAAC;gBACL,CAAC;gBAAC,OAAO,KAAK,EAAE,CAAC;oBACf,OAAO,CAAC,KAAK,CACX,0CACE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CACvD,EAAE,CACH,CAAC;gBACJ,CAAC;YACH,CAAC;YACD,OAAO,MAAM,CAAC;QAChB,CAAC,CAAC;IACJ,CAAC;CAAA;AAxjBD,gFAwjBC"}
1
+ {"version":3,"file":"HandleScheduledEventUseCaseHandler.js","sourceRoot":"","sources":["../../../../src/adapter/entry-points/handlers/HandleScheduledEventUseCaseHandler.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gDAAwB;AACxB,kDAA0B;AAC1B,4CAAoB;AACpB,+DAA2D;AAC3D,6DAAyD;AACzD,6DAAyD;AACzD,+DAA2D;AAC3D,2DAAuD;AACvD,uEAAmE;AACnE,qFAAkF;AAClF,uEAAmE;AACnE,yEAGoC;AACpC,uEAAmE;AACnE,wDAG8B;AAC9B,kFAA+E;AAC/E,sFAAmF;AACnF,gGAA6F;AAC7F,0FAAuF;AACvF,wFAAqF;AACrF,sFAAmF;AACnF,wGAAqG;AACrG,8GAA2G;AAC3G,sGAAmG;AACnG,gGAA6F;AAC7F,kGAA+F;AAC/F,gIAA6H;AAC7H,oHAAiH;AACjH,wGAAqG;AAIrG,0FAAuF;AACvF,wGAAqG;AACrG,gIAA6H;AAC7H,wGAAqG;AACrG,kIAA+H;AAC/H,8GAA2G;AAC3G,0GAAuG;AACvG,wGAAqG;AACrG,0HAAuH;AACvH,8GAA2G;AAC3G,8FAA2F;AAC3F,sFAAmF;AACnF,wGAAqG;AACrG,oGAAiG;AACjG,sGAAmG;AACnG,gHAA6G;AAC7G,0HAAuH;AACvH,kGAA+F;AAC/F,8GAA2G;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B,EAC1C,OAAO,CAAC,GAAG,CAAC,sCAAsC,EAClD,qEAA0C,CAAC,8BAA8B,CAC1E;wBACD,+BAA+B,EAAE,iBAAiB,CAChD,WAAW,CAAC,+BAA+B,EAC3C,OAAO,CAAC,GAAG,CAAC,uCAAuC,EACnD,qEAA0C,CAAC,+BAA+B,CAC3E;wBACD,eAAe,EAAE,iBAAiB,CAChC,WAAW,CAAC,iCAAiC,EAC7C,OAAO,CAAC,GAAG,CAAC,yCAAyC,EACrD,qEAA0C,CAAC,eAAe,CAC3D;wBACD,cAAc,EAAE,iBAAiB,CAC/B,WAAW,CAAC,gCAAgC,EAC5C,OAAO,CAAC,GAAG,CAAC,wCAAwC,EACpD,qEAA0C,CAAC,cAAc,CAC1D;wBACD,gBAAgB,EAAE;4BAChB,kBAAkB,EAChB,WAAW,CAAC,wBAAwB;gCACpC,OAAO,CAAC,GAAG,CAAC,gCAAgC;gCAC5C,IAAI;4BACN,qBAAqB,EACnB,WAAW,CAAC,2BAA2B;gCACvC,OAAO,CAAC,GAAG,CAAC,mCAAmC;gCAC/C,IAAI;4BACN,qBAAqB,EACnB,WAAW,CAAC,2BAA2B;gCACvC,OAAO,CAAC,GAAG,CAAC,mCAAmC;gCAC/C,IAAI;yBACP;wBACD,GAAG,EAAE,SAAS;qBACf,CAAC,CAAC;gBACL,CAAC;gBAAC,OAAO,KAAK,EAAE,CAAC;oBACf,OAAO,CAAC,KAAK,CACX,0CACE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CACvD,EAAE,CACH,CAAC;gBACJ,CAAC;YACH,CAAC;YACD,OAAO,MAAM,CAAC;QAChB,CAAC,CAAC;IACJ,CAAC;CAAA;AAnjBD,gFAmjBC"}
@@ -19,12 +19,6 @@ class ConfigurableSilentSessionMessageComposer {
19
19
  }
20
20
  return withReminderSentinel(this.templates.mainStalledMessage);
21
21
  };
22
- this.composeOwnerReNotificationSection = (waitingSeconds) => {
23
- if (this.templates.ownerReNotificationMessage === null) {
24
- return this.fallback.composeOwnerReNotificationSection(waitingSeconds);
25
- }
26
- return withReminderSentinel(this.templates.ownerReNotificationMessage);
27
- };
28
22
  this.composeSubAgentSection = (subAgents) => {
29
23
  if (this.templates.subAgentMessageHeader === null &&
30
24
  this.templates.subAgentMessageFooter === null) {
@@ -1 +1 @@
1
- {"version":3,"file":"ConfigurableSilentSessionMessageComposer.js","sourceRoot":"","sources":["../../../src/adapter/repositories/ConfigurableSilentSessionMessageComposer.ts"],"names":[],"mappings":";;;AAEA,uGAAuG;AAEvG,MAAM,oBAAoB,GAAG,CAAC,OAAe,EAAU,EAAE,CACvD,OAAO,CAAC,QAAQ,CAAC,gEAAgC,CAAC;IAChD,CAAC,CAAC,OAAO;IACT,CAAC,CAAC,GAAG,gEAAgC,IAAI,OAAO,EAAE,CAAC;AASvD,MAAM,aAAa,GAAG,CAAC,OAAe,EAAU,EAAE;IAChD,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,GAAG,EAAE,CAAC,CAAC;IACzC,OAAO,GAAG,OAAO,GAAG,CAAC;AACvB,CAAC,CAAC;AAEF,MAAa,wCAAwC;IACnD,YACmB,SAAwC,EACxC,QAAsC;QADtC,cAAS,GAAT,SAAS,CAA+B;QACxC,aAAQ,GAAR,QAAQ,CAA8B;QAGzD,8BAAyB,GAAG,CAAC,iBAAyB,EAAU,EAAE;YAChE,IAAI,IAAI,CAAC,SAAS,CAAC,kBAAkB,KAAK,IAAI,EAAE,CAAC;gBAC/C,OAAO,IAAI,CAAC,QAAQ,CAAC,yBAAyB,CAAC,iBAAiB,CAAC,CAAC;YACpE,CAAC;YACD,OAAO,oBAAoB,CAAC,IAAI,CAAC,SAAS,CAAC,kBAAkB,CAAC,CAAC;QACjE,CAAC,CAAC;QAEF,sCAAiC,GAAG,CAAC,cAAsB,EAAU,EAAE;YACrE,IAAI,IAAI,CAAC,SAAS,CAAC,0BAA0B,K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C,QAAQ,CAAC,aAAa,CACvB,iBAAiB,aAAa,CAAC,QAAQ,CAAC,cAAc,CAAC,EAAE,CAC7D,CAAC;YACF,MAAM,QAAQ,GAAa,EAAE,CAAC;YAC9B,IAAI,IAAI,CAAC,SAAS,CAAC,qBAAqB,KAAK,IAAI,EAAE,CAAC;gBAClD,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,qBAAqB,CAAC,CAAC;YACtD,CAAC;YACD,QAAQ,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,CAAC;YACxB,IAAI,IAAI,CAAC,SAAS,CAAC,qBAAqB,KAAK,IAAI,EAAE,CAAC;gBAClD,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,qBAAqB,CAAC,CAAC;YACtD,CAAC;YACD,OAAO,oBAAoB,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;QACnD,CAAC,CAAC;IA/BC,CAAC;CAgCL;AApCD,4FAoCC"}
@@ -66,6 +66,29 @@ const extractText = (content) => {
66
66
  }
67
67
  return texts.join('\n');
68
68
  };
69
+ // A transcript user entry is only a genuine owner reply when it was actually
70
+ // typed (or queued) by the human owner. Claude Code records the provenance of
71
+ // each user entry on the top-level `origin` and `promptSource` fields. A
72
+ // genuine human prompt is identified by EITHER `origin.kind === 'human'` OR a
73
+ // `promptSource` of `typed`/`queued`; the second condition is required because
74
+ // older-format transcripts record genuine human replies with a `promptSource`
75
+ // of `queued`/`typed` but no `origin` field, and dropping those would leave a
76
+ // real owner reply uncounted and the session waiting forever. Every
77
+ // system-injected user entry, by contrast, uses a `promptSource` of `system`
78
+ // (sub-agent `task-notification` notices, cross-session `peer` messages) or
79
+ // `sdk` (spawn prompts), or has neither field (tool results, skill/meta
80
+ // entries) — none of which match. Only a genuine human entry may clear an
81
+ // outstanding call-to-user; otherwise a system-injected entry would be
82
+ // miscounted as the owner answering and a genuinely waiting session would stop
83
+ // being suppressed.
84
+ const isGenuineHumanEntry = (parsed) => {
85
+ const origin = parsed.origin;
86
+ if (isRecord(origin) && readString(origin, 'kind') === 'human') {
87
+ return true;
88
+ }
89
+ const promptSource = readString(parsed, 'promptSource');
90
+ return promptSource === 'typed' || promptSource === 'queued';
91
+ };
69
92
  const hasOwnerTextReply = (content) => {
70
93
  if (typeof content === 'string') {
71
94
  if (content.length === 0) {
@@ -139,7 +162,9 @@ class TranscriptOwnerCallStatusProvider {
139
162
  extractText(messageContent).includes(marker)) {
140
163
  lastOwnerCallEpochMs = epochMs;
141
164
  }
142
- if (type === 'user' && hasOwnerTextReply(messageContent)) {
165
+ if (type === 'user' &&
166
+ isGenuineHumanEntry(parsed) &&
167
+ hasOwnerTextReply(messageContent)) {
143
168
  lastOwnerReplyEpochMs = epochMs;
144
169
  }
145
170
  }
@@ -1 +1 @@
1
- {"version":3,"file":"TranscriptOwnerCallStatusProvider.js","sourceRoot":"","sources":["../../../src/adapter/repositories/TranscriptOwnerCallStatusProvider.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AAEzB,uGAAuG;AAEvG,MAAM,QAAQ,GAAG,CAAC,KAAc,EAAoC,EAAE,CACpE,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,CAAC;AAE9C,MAAM,UAAU,GAAG,CACjB,KAA8B,EAC9B,GAAW,EACI,EAAE;IACjB,MAAM,SAAS,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC;IAC7B,OAAO,OAAO,SAAS,KAAK,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC;AAC1D,CAAC,CAAC;AAEF,MAAM,sBAAsB,GAAG,CAAC,SAAwB,EAAiB,EAAE;IACzE,IAAI,SAAS,KAAK,IAAI,EAAE,CAAC;QACvB,OAAO,IAAI,CAAC;IACd,CAAC;IACD,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,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O,KAAK,CAAC;YACf,CAAC;YACD,OAAO,CACL,qBAAqB,KAAK,IAAI;gBAC9B,oBAAoB,GAAG,qBAAqB,CAC7C,CAAC;QACJ,CAAC,CAAC;IApE4D,CAAC;CAqEhE;AAtED,8EAsEC"}
1
+ {"version":3,"file":"TranscriptOwnerCallStatusProvider.js","sourceRoot":"","sources":["../../../src/adapter/repositories/TranscriptOwnerCallStatusProvider.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AAEzB,uGAAuG;AAEvG,MAAM,QAAQ,GAAG,CAAC,KAAc,EAAoC,EAAE,CACpE,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,CAAC;AAE9C,MAAM,UAAU,GAAG,CACjB,KAA8B,EAC9B,GAAW,EACI,EAAE;IACjB,MAAM,SAAS,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC;IAC7B,OAAO,OAAO,SAAS,KAAK,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC;AAC1D,CAAC,CAAC;AAEF,MAAM,sBAAsB,GAAG,CAAC,SAAwB,EAAiB,EAAE;IACzE,IAAI,SAAS,KAAK,IAAI,EAAE,CAAC;QACvB,OAAO,IAAI,CAAC;IACd,CAAC;IACD,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;IACrC,OAAO,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC;AAC9C,CAAC,CAAC;AAEF,MAAM,WAAW,GAAG,CAAC,OAAgB,EAAU,EAAE;IAC/C,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE,CAAC;QAChC,OAAO,OAAO,CAAC;IACjB,CAAC;IACD,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC;QAC5B,OAAO,EAAE,CAAC;I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C,MAAM,CAAC,EAC5C,CAAC;oBACD,oBAAoB,GAAG,OAAO,CAAC;gBACjC,CAAC;gBACD,IACE,IAAI,KAAK,MAAM;oBACf,mBAAmB,CAAC,MAAM,CAAC;oBAC3B,iBAAiB,CAAC,cAAc,CAAC,EACjC,CAAC;oBACD,qBAAqB,GAAG,OAAO,CAAC;gBAClC,CAAC;YACH,CAAC;YACD,IAAI,oBAAoB,KAAK,IAAI,EAAE,CAAC;gBAClC,OAAO,KAAK,CAAC;YACf,CAAC;YACD,OAAO,CACL,qBAAqB,KAAK,IAAI;gBAC9B,oBAAoB,GAAG,qBAAqB,CAC7C,CAAC;QACJ,CAAC,CAAC;IAxE4D,CAAC;CAyEhE;AA1ED,8EA0EC"}
@@ -17,20 +17,11 @@ const composeMainStalledMessage = (mainSilentSeconds) => {
17
17
  `Also, in your next output, report an estimate of how many minutes you expect to need to finish all remaining tasks.`,
18
18
  ].join('\n');
19
19
  };
20
- const composeOwnerReNotificationMessage = (waitingSeconds) => {
21
- const minutes = Math.floor(waitingSeconds / 60);
22
- return [
23
- `${silentSessionReminderSentinel_1.SILENT_SESSION_REMINDER_SENTINEL} This is an automated monitor reminder, NOT the owner replying. Do NOT treat this message as an owner answer to your outstanding call-to-user; your pending question is still unanswered. You have been waiting on the owner for ${minutes} minutes and the owner has not yet replied. The owner is only notified when a fresh call-to-user is raised, so a single past call-to-user that has gone quiet will never reach them. Re-raise your pending call-to-user to the owner now: re-emit it so a new call-to-user marker fires and the owner is notified again. Keep your question and proposed options unchanged unless you have new information. You are correctly waiting on the owner — you are not stalled or idle — so do not abandon the wait and do not invent an owner decision yourself; simply re-surface the same request so the owner sees it.`,
24
- ].join('\n');
25
- };
26
20
  class DefaultSilentSessionMessageComposer {
27
21
  constructor() {
28
22
  this.composeMainStalledSection = (mainSilentSeconds) => {
29
23
  return composeMainStalledMessage(mainSilentSeconds);
30
24
  };
31
- this.composeOwnerReNotificationSection = (waitingSeconds) => {
32
- return composeOwnerReNotificationMessage(waitingSeconds);
33
- };
34
25
  this.composeSubAgentSection = (subAgents) => {
35
26
  const lines = subAgents.map((subAgent) => `- ${subAgent.label}: silent for ${formatMinutes(subAgent.silentSeconds)}, running for ${formatMinutes(subAgent.runningSeconds)}`);
36
27
  return [
@@ -1 +1 @@
1
- {"version":3,"file":"DefaultSilentSessionMessageComposer.js","sourceRoot":"","sources":["../../../src/domain/usecases/DefaultSilentSessionMessageComposer.ts"],"names":[],"mappings":";;;AAEA,mFAAmF;AAEnF,MAAM,aAAa,GAAG,CAAC,OAAe,EAAU,EAAE;IAChD,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,GAAG,EAAE,CAAC,CAAC;IACzC,OAAO,GAAG,OAAO,GAAG,CAAC;AACvB,CAAC,CAAC;AAEF,MAAM,yBAAyB,GAAG,CAAC,iBAAyB,EAAU,EAAE;IACtE,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,iBAAiB,GAAG,EAAE,CAAC,CAAC;IACnD,OAAO;QACL,GAAG,gEAAgC,oCAAoC,OAAO,syBAAsyB;QACp3B,0KAA0K;QAC1K,yLAAyL;QACzL,4FAA4F;QAC5F,0YAA0Y;QAC1Y,qHAAqH;KACtH,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACf,CAAC,CAAC;AAEF,MAAM,iCAAiC,GAAG,CAAC,cAAsB,EAAU,EAAE;IAC3E,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,GAAG,EAAE,CAAC,CAAC;IAChD,OAAO;QACL,GAAG,gEAAgC,oOAAoO,OAAO,slBAAslB;KACr2B,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACf,CAAC,CAAC;AAEF,MAAa,mCAAmC;IAAhD;QACE,8BAAyB,GAAG,CAAC,iBAAyB,EAAU,EAAE;YAChE,OAAO,yBAAyB,CAAC,iBAAiB,CAAC,CAAC;QACtD,CAAC,CAAC;QAEF,sCAAiC,GAAG,CAAC,cAAsB,EAAU,EAAE;YACrE,OAAO,iCAAiC,CAAC,cAAc,CAAC,CAAC;QAC3D,CAAC,CAAC;QAEF,2BAAsB,GAAG,CAAC,SAA6B,EAAU,EAAE;YACjE,MAAM,KAAK,GAAG,SAAS,CAAC,GAAG,CACzB,CAAC,QAAQ,EAAE,EAAE,CACX,KAAK,QAAQ,CAAC,KAAK,gBAAgB,aAAa,CAC9C,QAAQ,CAAC,aAAa,CACvB,iBAAiB,aAAa,CAAC,QAAQ,CAAC,cAAc,CAAC,EAAE,CAC7D,CAAC;YACF,OAAO;gBACL,GAAG,gEAAgC,2EAA2E;gBAC9G,GAAG,KAAK;gBACR,sNAAsN;aACvN,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACf,CAAC,CAAC;IACJ,CAAC;CAAA;AAtBD,kFAsBC"}
1
+ {"version":3,"file":"DefaultSilentSessionMessageComposer.js","sourceRoot":"","sources":["../../../src/domain/usecases/DefaultSilentSessionMessageComposer.ts"],"names":[],"mappings":";;;AAEA,mFAAmF;AAEnF,MAAM,aAAa,GAAG,CAAC,OAAe,EAAU,EAAE;IAChD,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,GAAG,EAAE,CAAC,CAAC;IACzC,OAAO,GAAG,OAAO,GAAG,CAAC;AACvB,CAAC,CAAC;AAEF,MAAM,yBAAyB,GAAG,CAAC,iBAAyB,EAAU,EAAE;IACtE,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,iBAAiB,GAAG,EAAE,CAAC,CAAC;IACnD,OAAO;QACL,GAAG,gEAAgC,oCAAoC,OAAO,syBAAsyB;QACp3B,0KAA0K;QAC1K,yLAAyL;QACzL,4FAA4F;QAC5F,0YAA0Y;QAC1Y,qHAAqH;KACtH,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACf,CAAC,CAAC;AAEF,MAAa,mCAAmC;IAAhD;QACE,8BAAyB,GAAG,CAAC,iBAAyB,EAAU,EAAE;YAChE,OAAO,yBAAyB,CAAC,iBAAiB,CAAC,CAAC;QACtD,CAAC,CAAC;QAEF,2BAAsB,GAAG,CAAC,SAA6B,EAAU,EAAE;YACjE,MAAM,KAAK,GAAG,SAAS,CAAC,GAAG,CACzB,CAAC,QAAQ,EAAE,EAAE,CACX,KAAK,QAAQ,CAAC,KAAK,gBAAgB,aAAa,CAC9C,QAAQ,CAAC,aAAa,CACvB,iBAAiB,aAAa,CAAC,QAAQ,CAAC,cAAc,CAAC,EAAE,CAC7D,CAAC;YACF,OAAO;gBACL,GAAG,gEAAgC,2EAA2E;gBAC9G,GAAG,KAAK;gBACR,sNAAsN;aACvN,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACf,CAAC,CAAC;IACJ,CAAC;CAAA;AAlBD,kFAkBC"}
@@ -80,19 +80,9 @@ class NotifySilentLiveSessionsUseCase {
80
80
  this.composeMessage = (snapshot, thresholds) => {
81
81
  const sections = [];
82
82
  if (snapshot.mainSilentSeconds !== null &&
83
- snapshot.mainSilentSeconds >= thresholds.mainSilentThresholdSeconds) {
84
- if (snapshot.hasUnansweredOwnerCall) {
85
- // The session is correctly waiting on the owner, but it has been silent
86
- // long enough that the owner has effectively not been re-notified. Rather
87
- // than suppress, instruct the agent to re-raise its pending call-to-user
88
- // so the owner's marker re-fires. The per-session cooldown applied in
89
- // run() limits this to roughly once per cooldown window, and it stops
90
- // automatically once the owner replies (hasUnansweredOwnerCall clears).
91
- sections.push(this.messageComposer.composeOwnerReNotificationSection(snapshot.mainSilentSeconds));
92
- }
93
- else {
94
- sections.push(this.messageComposer.composeMainStalledSection(snapshot.mainSilentSeconds));
95
- }
83
+ snapshot.mainSilentSeconds >= thresholds.mainSilentThresholdSeconds &&
84
+ !snapshot.hasUnansweredOwnerCall) {
85
+ sections.push(this.messageComposer.composeMainStalledSection(snapshot.mainSilentSeconds));
96
86
  }
97
87
  const stalledSubAgents = snapshot.subAgents.filter((subAgent) => subAgent.silentSeconds >= thresholds.subAgentSilentThresholdSeconds ||
98
88
  subAgent.runningSeconds >= thresholds.subAgentRunningThresholdSeconds);
@@ -1 +1 @@
1
- {"version":3,"file":"NotifySilentLiveSessionsUseCase.js","sourceRoot":"","sources":["../../../src/domain/usecases/NotifySilentLiveSessionsUseCase.ts"],"names":[],"mappings":";;;AAUA,mGAAgG;AAEnF,QAAA,qCAAqC,GAAG,EAAE,GAAG,EAAE,CAAC;AAChD,QAAA,yCAAyC,GAAG,CAAC,GAAG,EAAE,CAAC;AACnD,QAAA,0CAA0C,GAAG,EAAE,GAAG,EAAE,CAAC;AACrD,QAAA,qCAAqC,GAAG,EAAE,GAAG,EAAE,CAAC;AAChD,QAAA,oCAAoC,GAAG,EAAE,CAAC;AAOvD,MAAa,+BAA+B;IAI1C,YACmB,kCAAsE,EACtE,wCAAkF,EAClF,+BAAgE,EAChE,0BAA6D,EAC7D,uBAAgD,EAChD,sBAA2D,EAC3D,eAA6C,EAC7C,OAAgB;QAPhB,uCAAkC,GAAlC,kCAAkC,CAAoC;QACtE,6CAAwC,GAAxC,wCAAwC,CAA0C;QAClF,oCAA+B,GAA/B,+BAA+B,CAAiC;QAChE,+BAA0B,GAA1B,0BAA0B,CAAmC;QAC7D,4BAAuB,GAAvB,uBAAuB,CAAyB;QAChD,2BAAsB,GAAtB,sBAAsB,CAAqC;QAC3D,oBAAe,GAAf,eAAe,CAA8B;QAC7C,YAAO,GAAP,OAAO,CAAS;QAXlB,mCAA8B,GAC7C,IAAI,6EAAqC,EAAE,CAAC;QAa9C,QAAG,GAAG,KAAK,EAAE,MAOZ,EAAiB,EAAE;YAClB,MAAM,QAAQ,GACZ,MAAM,IAAI,CAAC,kCAAkC,CAAC,WAAW,EAAE,CAAC;YAC9D,MAAM,mBAAmB,GACvB,IAAI,CAAC,8BAA8B,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;YACxD,MAAM,2BAA2B,GAC/B,IAAI,CAAC,wCAAwC,CAAC,sBAAsB,CAClE,mBAAmB,CACpB,CAAC;YAEJ,MAAM,SAAS,GA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AED,MAAM,gBAAgB,GAAG,QAAQ,CAAC,SAAS,CAAC,MAAM,CAChD,CAAC,QAAQ,EAAE,EAAE,CACX,QAAQ,CAAC,aAAa,IAAI,UAAU,CAAC,8BAA8B;gBACnE,QAAQ,CAAC,cAAc,IAAI,UAAU,CAAC,+BAA+B,CACxE,CAAC;YACF,IAAI,gBAAgB,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;gBAChC,QAAQ,CAAC,IAAI,CACX,IAAI,CAAC,eAAe,CAAC,sBAAsB,CAAC,gBAAgB,CAAC,CAC9D,CAAC;YACJ,CAAC;YAED,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;gBAC1B,OAAO,IAAI,CAAC;YACd,CAAC;YACD,OAAO,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAC/B,CAAC,CAAC;IAhLC,CAAC;CAiLL;AA9LD,0EA8LC"}
1
+ {"version":3,"file":"NotifySilentLiveSessionsUseCase.js","sourceRoot":"","sources":["../../../src/domain/usecases/NotifySilentLiveSessionsUseCase.ts"],"names":[],"mappings":";;;AAUA,mGAAgG;AAEnF,QAAA,qCAAqC,GAAG,EAAE,GAAG,EAAE,CAAC;AAChD,QAAA,yCAAyC,GAAG,CAAC,GAAG,EAAE,CAAC;AACnD,QAAA,0CAA0C,GAAG,EAAE,GAAG,EAAE,CAAC;AACrD,QAAA,qCAAqC,GAAG,EAAE,GAAG,EAAE,CAAC;AAChD,QAAA,oCAAoC,GAAG,EAAE,CAAC;AAOvD,MAAa,+BAA+B;IAI1C,YACmB,kCAAsE,EACtE,wCAAkF,EAClF,+BAAgE,EAChE,0BAA6D,EAC7D,uBAAgD,EAChD,sBAA2D,EAC3D,eAA6C,EAC7C,OAAgB;QAPhB,uCAAkC,GAAlC,kCAAkC,CAAoC;QACtE,6CAAwC,GAAxC,wCAAwC,CAA0C;QAClF,oCAA+B,GAA/B,+BAA+B,CAAiC;QAChE,+BAA0B,GAA1B,0BAA0B,CAA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IACE,QAAQ,CAAC,iBAAiB,KAAK,IAAI;gBACnC,QAAQ,CAAC,iBAAiB,IAAI,UAAU,CAAC,0BAA0B;gBACnE,CAAC,QAAQ,CAAC,sBAAsB,EAChC,CAAC;gBACD,QAAQ,CAAC,IAAI,CACX,IAAI,CAAC,eAAe,CAAC,yBAAyB,CAC5C,QAAQ,CAAC,iBAAiB,CAC3B,CACF,CAAC;YACJ,CAAC;YAED,MAAM,gBAAgB,GAAG,QAAQ,CAAC,SAAS,CAAC,MAAM,CAChD,CAAC,QAAQ,EAAE,EAAE,CACX,QAAQ,CAAC,aAAa,IAAI,UAAU,CAAC,8BAA8B;gBACnE,QAAQ,CAAC,cAAc,IAAI,UAAU,CAAC,+BAA+B,CACxE,CAAC;YACF,IAAI,gBAAgB,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;gBAChC,QAAQ,CAAC,IAAI,CACX,IAAI,CAAC,eAAe,CAAC,sBAAsB,CAAC,gBAAgB,CAAC,CAC9D,CAAC;YACJ,CAAC;YAED,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;gBAC1B,OAAO,IAAI,CAAC;YACd,CAAC;YACD,OAAO,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAC/B,CAAC,CAAC;IAnKC,CAAC;CAoKL;AAjLD,0EAiLC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "github-issue-tower-defence-management",
3
- "version": "1.112.2",
3
+ "version": "1.112.3",
4
4
  "description": "",
5
5
  "main": "bin/index.js",
6
6
  "scripts": {
@@ -128,7 +128,6 @@ export class HandleScheduledEventUseCaseHandler {
128
128
  silentNotificationCooldownSeconds?: number;
129
129
  silentNotificationStaggerSeconds?: number;
130
130
  silentMainStalledMessage?: string;
131
- silentOwnerReNotificationMessage?: string;
132
131
  silentSubAgentMessageHeader?: string;
133
132
  silentSubAgentMessageFooter?: string;
134
133
  credentials: {
@@ -634,10 +633,6 @@ export class HandleScheduledEventUseCaseHandler {
634
633
  mergedInput.silentMainStalledMessage ??
635
634
  process.env.TDPM_SILENT_MAIN_STALLED_MESSAGE ??
636
635
  null,
637
- ownerReNotificationMessage:
638
- mergedInput.silentOwnerReNotificationMessage ??
639
- process.env.TDPM_SILENT_OWNER_RE_NOTIFICATION_MESSAGE ??
640
- null,
641
636
  subAgentMessageHeader:
642
637
  mergedInput.silentSubAgentMessageHeader ??
643
638
  process.env.TDPM_SILENT_SUBAGENT_MESSAGE_HEADER ??
@@ -21,7 +21,6 @@ const CLAUDE_PID = 201;
21
21
 
22
22
  const EMPTY_TEMPLATES: SilentSessionMessageTemplates = {
23
23
  mainStalledMessage: null,
24
- ownerReNotificationMessage: null,
25
24
  subAgentMessageHeader: null,
26
25
  subAgentMessageFooter: null,
27
26
  };
@@ -169,7 +168,6 @@ describe('notifySilentTmuxSessions', () => {
169
168
  ...baseParams(runner),
170
169
  messageTemplates: {
171
170
  mainStalledMessage: 'CUSTOM_MAIN_TEMPLATE',
172
- ownerReNotificationMessage: null,
173
171
  subAgentMessageHeader: null,
174
172
  subAgentMessageFooter: null,
175
173
  },
@@ -183,42 +181,7 @@ describe('notifySilentTmuxSessions', () => {
183
181
  );
184
182
  });
185
183
 
186
- it('sends no notification while an owner call is unanswered and the wait is within the threshold', async () => {
187
- const recentOwnerCall = new Date(
188
- (NOW_EPOCH_SECONDS - 5 * 60) * 1000,
189
- ).toISOString();
190
- writeTranscript([
191
- {
192
- type: 'user',
193
- timestamp: '2026-06-25T23:00:00.000Z',
194
- message: { role: 'user', content: 'go ahead' },
195
- },
196
- {
197
- type: 'assistant',
198
- timestamp: recentOwnerCall,
199
- message: {
200
- role: 'assistant',
201
- stop_reason: 'end_turn',
202
- content: [
203
- { type: 'text', text: 'waiting <<OWNER_CALL>> please decide' },
204
- ],
205
- },
206
- },
207
- ]);
208
- const runner = liveSessionRunner();
209
-
210
- await notifySilentTmuxSessions({
211
- ...baseParams(runner),
212
- ownerCallMarker: '<<OWNER_CALL>>',
213
- });
214
-
215
- const sendCall = runner.runCommand.mock.calls.find(
216
- (call) => call[0] === 'tmux' && call[1][0] === 'send-keys',
217
- );
218
- expect(sendCall).toBeUndefined();
219
- });
220
-
221
- it('re-notifies the owner when an owner call has been unanswered past the threshold', async () => {
184
+ it('suppresses the notification whenever an owner call is unanswered, regardless of how long the session has been silent', async () => {
222
185
  const stalePendingOwnerCall = new Date(
223
186
  (NOW_EPOCH_SECONDS - 11 * 60) * 1000,
224
187
  ).toISOString();
@@ -250,10 +213,7 @@ describe('notifySilentTmuxSessions', () => {
250
213
  const sendCall = runner.runCommand.mock.calls.find(
251
214
  (call) => call[0] === 'tmux' && call[1][0] === 'send-keys',
252
215
  );
253
- expect(sendCall?.[1][2]).toBe(SESSION_NAME);
254
- expect(sendCall?.[1][4]).toContain(SILENT_SESSION_REMINDER_SENTINEL);
255
- expect(sendCall?.[1][4]).toContain('Re-raise your pending call-to-user');
256
- expect(sendCall?.[1][4]).not.toContain('You have produced no output for');
216
+ expect(sendCall).toBeUndefined();
257
217
  });
258
218
 
259
219
  it('does not re-notify the same silent session on the next cycle within cooldown', async () => {
@@ -6,9 +6,6 @@ type Mocked<T> = jest.Mocked<T> & jest.MockedObject<T>;
6
6
 
7
7
  const createFallback = (): Mocked<SilentSessionMessageComposer> => ({
8
8
  composeMainStalledSection: jest.fn().mockReturnValue('FALLBACK_MAIN'),
9
- composeOwnerReNotificationSection: jest
10
- .fn()
11
- .mockReturnValue('FALLBACK_OWNER'),
12
9
  composeSubAgentSection: jest.fn().mockReturnValue('FALLBACK_SUB'),
13
10
  });
14
11
 
@@ -18,7 +15,6 @@ describe('ConfigurableSilentSessionMessageComposer', () => {
18
15
  const composer = new ConfigurableSilentSessionMessageComposer(
19
16
  {
20
17
  mainStalledMessage: null,
21
- ownerReNotificationMessage: null,
22
18
  subAgentMessageHeader: null,
23
19
  subAgentMessageFooter: null,
24
20
  },
@@ -33,7 +29,6 @@ describe('ConfigurableSilentSessionMessageComposer', () => {
33
29
  const composer = new ConfigurableSilentSessionMessageComposer(
34
30
  {
35
31
  mainStalledMessage: 'CUSTOM_MAIN',
36
- ownerReNotificationMessage: null,
37
32
  subAgentMessageHeader: null,
38
33
  subAgentMessageFooter: null,
39
34
  },
@@ -50,7 +45,6 @@ describe('ConfigurableSilentSessionMessageComposer', () => {
50
45
  const composer = new ConfigurableSilentSessionMessageComposer(
51
46
  {
52
47
  mainStalledMessage: null,
53
- ownerReNotificationMessage: null,
54
48
  subAgentMessageHeader: null,
55
49
  subAgentMessageFooter: null,
56
50
  },
@@ -68,7 +62,6 @@ describe('ConfigurableSilentSessionMessageComposer', () => {
68
62
  const composer = new ConfigurableSilentSessionMessageComposer(
69
63
  {
70
64
  mainStalledMessage: null,
71
- ownerReNotificationMessage: null,
72
65
  subAgentMessageHeader: 'HEADER',
73
66
  subAgentMessageFooter: 'FOOTER',
74
67
  },
@@ -86,48 +79,11 @@ describe('ConfigurableSilentSessionMessageComposer', () => {
86
79
  expect(fallback.composeSubAgentSection).not.toHaveBeenCalled();
87
80
  });
88
81
 
89
- it('uses the fallback owner-re-notification section when no template is configured', () => {
90
- const fallback = createFallback();
91
- const composer = new ConfigurableSilentSessionMessageComposer(
92
- {
93
- mainStalledMessage: null,
94
- ownerReNotificationMessage: null,
95
- subAgentMessageHeader: null,
96
- subAgentMessageFooter: null,
97
- },
98
- fallback,
99
- );
100
- expect(composer.composeOwnerReNotificationSection(600)).toBe(
101
- 'FALLBACK_OWNER',
102
- );
103
- expect(fallback.composeOwnerReNotificationSection).toHaveBeenCalledWith(
104
- 600,
105
- );
106
- });
107
-
108
- it('uses the configured owner-re-notification template when provided', () => {
109
- const fallback = createFallback();
110
- const composer = new ConfigurableSilentSessionMessageComposer(
111
- {
112
- mainStalledMessage: null,
113
- ownerReNotificationMessage: 'CUSTOM_OWNER',
114
- subAgentMessageHeader: null,
115
- subAgentMessageFooter: null,
116
- },
117
- fallback,
118
- );
119
- const section = composer.composeOwnerReNotificationSection(600);
120
- expect(section).toContain('CUSTOM_OWNER');
121
- expect(section).toContain(SILENT_SESSION_REMINDER_SENTINEL);
122
- expect(fallback.composeOwnerReNotificationSection).not.toHaveBeenCalled();
123
- });
124
-
125
82
  it('does not double-prepend the sentinel when the template already carries it', () => {
126
83
  const fallback = createFallback();
127
84
  const composer = new ConfigurableSilentSessionMessageComposer(
128
85
  {
129
86
  mainStalledMessage: `${SILENT_SESSION_REMINDER_SENTINEL} CUSTOM_MAIN`,
130
- ownerReNotificationMessage: null,
131
87
  subAgentMessageHeader: null,
132
88
  subAgentMessageFooter: null,
133
89
  },
@@ -9,7 +9,6 @@ const withReminderSentinel = (message: string): string =>
9
9
 
10
10
  export type SilentSessionMessageTemplates = {
11
11
  mainStalledMessage: string | null;
12
- ownerReNotificationMessage: string | null;
13
12
  subAgentMessageHeader: string | null;
14
13
  subAgentMessageFooter: string | null;
15
14
  };
@@ -32,13 +31,6 @@ export class ConfigurableSilentSessionMessageComposer implements SilentSessionMe
32
31
  return withReminderSentinel(this.templates.mainStalledMessage);
33
32
  };
34
33
 
35
- composeOwnerReNotificationSection = (waitingSeconds: number): string => {
36
- if (this.templates.ownerReNotificationMessage === null) {
37
- return this.fallback.composeOwnerReNotificationSection(waitingSeconds);
38
- }
39
- return withReminderSentinel(this.templates.ownerReNotificationMessage);
40
- };
41
-
42
34
  composeSubAgentSection = (subAgents: SubAgentActivity[]): string => {
43
35
  if (
44
36
  this.templates.subAgentMessageHeader === null &&
@@ -6,11 +6,11 @@ dotenv.config();
6
6
 
7
7
  const GOOGLE_SERVICE_ACCOUNT_KEY = process.env.GOOGLE_SERVICE_ACCOUNT_KEY;
8
8
 
9
- if (!GOOGLE_SERVICE_ACCOUNT_KEY) {
10
- throw new Error('GOOGLE_SERVICE_ACCOUNT_KEY is required');
11
- }
9
+ const describeWhenCredentials = GOOGLE_SERVICE_ACCOUNT_KEY
10
+ ? describe
11
+ : describe.skip;
12
12
 
13
- describe('GoogleSpreadsheetRepository integration tests', () => {
13
+ describeWhenCredentials('GoogleSpreadsheetRepository integration tests', () => {
14
14
  jest.setTimeout(60 * 1000);
15
15
  jest.retryTimes(3, { logErrorsBeforeRetry: true });
16
16
 
@@ -28,10 +28,12 @@ describe('convertToFieldOptionColor', () => {
28
28
  });
29
29
  });
30
30
 
31
- describe('GraphqlProjectRepository', () => {
31
+ const token = process.env.GH_TOKEN;
32
+ const describeWhenCredentials = token ? describe : describe.skip;
33
+
34
+ describeWhenCredentials('GraphqlProjectRepository', () => {
32
35
  const localStorageRepository = new LocalStorageRepository();
33
36
  let repository: GraphqlProjectRepository;
34
- const token = process.env.GH_TOKEN;
35
37
  const login = 'HiromiShikata';
36
38
  const projectUrl = `https://github.com/users/HiromiShikata/projects/49`;
37
39
  const projectNumber = 49;
@@ -12,16 +12,17 @@ const TEST_USER_NAME = 'shikata.hiromi_test2';
12
12
  const TEST_IMAGE_URL = 'https://i.imgur.com/Zi3qToQ.jpeg';
13
13
  const TEST_IMAGE_PATH = './tmp/test/fixtures/test-image.png';
14
14
 
15
- if (!SLACK_USER_TOKEN) {
16
- throw new Error('SLACK_USER_TOKEN is required');
17
- }
15
+ const describeWhenCredentials = SLACK_USER_TOKEN ? describe : describe.skip;
18
16
 
19
- describe('KySlackRepository Integration Tests', () => {
17
+ describeWhenCredentials('KySlackRepository Integration Tests', () => {
20
18
  jest.setTimeout(60 * 1000);
21
19
  jest.retryTimes(3, { logErrorsBeforeRetry: true });
22
20
  let slackRepository: KySlackRepository;
23
21
 
24
22
  beforeAll(() => {
23
+ if (!SLACK_USER_TOKEN) {
24
+ return;
25
+ }
25
26
  slackRepository = new KySlackRepository(SLACK_USER_TOKEN);
26
27
  });
27
28
  beforeEach(async () => {
@@ -52,9 +52,42 @@ describe('TranscriptOwnerCallStatusProvider', () => {
52
52
  const ownerReply = (timestamp: string): object => ({
53
53
  type: 'user',
54
54
  timestamp,
55
+ origin: { kind: 'human' },
56
+ promptSource: 'typed',
55
57
  message: { role: 'user', content: 'go ahead' },
56
58
  });
57
59
 
60
+ const ownerReplyQueuedNoOrigin = (timestamp: string): object => ({
61
+ type: 'user',
62
+ timestamp,
63
+ promptSource: 'queued',
64
+ message: { role: 'user', content: 'go ahead' },
65
+ });
66
+
67
+ const taskNotification = (timestamp: string): object => ({
68
+ type: 'user',
69
+ timestamp,
70
+ origin: { kind: 'task-notification' },
71
+ promptSource: 'system',
72
+ message: {
73
+ role: 'user',
74
+ content:
75
+ '<task-notification>\n<task-id>abc123</task-id>\nA sub-agent finished.\n</task-notification>',
76
+ },
77
+ });
78
+
79
+ const peerAgentMessage = (timestamp: string): object => ({
80
+ type: 'user',
81
+ timestamp,
82
+ origin: { kind: 'peer' },
83
+ promptSource: 'system',
84
+ isMeta: true,
85
+ message: {
86
+ role: 'user',
87
+ content: 'Another Claude session sent a message: please continue.',
88
+ },
89
+ });
90
+
58
91
  const toolResult = (timestamp: string): object => ({
59
92
  type: 'user',
60
93
  timestamp,
@@ -188,6 +221,63 @@ describe('TranscriptOwnerCallStatusProvider', () => {
188
221
  expect(result.has(sessionName)).toBe(false);
189
222
  });
190
223
 
224
+ it('does not count a system-injected task-notification user entry as an owner reply', async () => {
225
+ const transcriptPath = writeTranscript('workbench.jsonl', [
226
+ assistantWithMarker('2026-06-27T10:00:00.000Z'),
227
+ taskNotification('2026-06-27T10:10:00.000Z'),
228
+ ]);
229
+ const provider = new TranscriptOwnerCallStatusProvider('<<OWNER_CALL>>');
230
+
231
+ const result = await provider.listSessionNamesWithUnansweredOwnerCall(
232
+ new Map([[sessionName, transcriptPath]]),
233
+ );
234
+
235
+ expect(result.has(sessionName)).toBe(true);
236
+ });
237
+
238
+ it('does not count a cross-session peer agent message as an owner reply', async () => {
239
+ const transcriptPath = writeTranscript('workbench.jsonl', [
240
+ assistantWithMarker('2026-06-27T10:00:00.000Z'),
241
+ peerAgentMessage('2026-06-27T10:10:00.000Z'),
242
+ ]);
243
+ const provider = new TranscriptOwnerCallStatusProvider('<<OWNER_CALL>>');
244
+
245
+ const result = await provider.listSessionNamesWithUnansweredOwnerCall(
246
+ new Map([[sessionName, transcriptPath]]),
247
+ );
248
+
249
+ expect(result.has(sessionName)).toBe(true);
250
+ });
251
+
252
+ it('counts a genuine human reply that has promptSource queued but no origin field', async () => {
253
+ const transcriptPath = writeTranscript('workbench.jsonl', [
254
+ assistantWithMarker('2026-06-27T10:00:00.000Z'),
255
+ ownerReplyQueuedNoOrigin('2026-06-27T10:10:00.000Z'),
256
+ ]);
257
+ const provider = new TranscriptOwnerCallStatusProvider('<<OWNER_CALL>>');
258
+
259
+ const result = await provider.listSessionNamesWithUnansweredOwnerCall(
260
+ new Map([[sessionName, transcriptPath]]),
261
+ );
262
+
263
+ expect(result.has(sessionName)).toBe(false);
264
+ });
265
+
266
+ it('counts a genuine human-origin reply that arrives after a task-notification', async () => {
267
+ const transcriptPath = writeTranscript('workbench.jsonl', [
268
+ assistantWithMarker('2026-06-27T10:00:00.000Z'),
269
+ taskNotification('2026-06-27T10:10:00.000Z'),
270
+ ownerReply('2026-06-27T10:20:00.000Z'),
271
+ ]);
272
+ const provider = new TranscriptOwnerCallStatusProvider('<<OWNER_CALL>>');
273
+
274
+ const result = await provider.listSessionNamesWithUnansweredOwnerCall(
275
+ new Map([[sessionName, transcriptPath]]),
276
+ );
277
+
278
+ expect(result.has(sessionName)).toBe(false);
279
+ });
280
+
191
281
  it('does not report a session that never raised an owner call', async () => {
192
282
  const transcriptPath = writeTranscript('workbench.jsonl', [
193
283
  assistantPlain('2026-06-27T10:00:00.000Z'),
@@ -40,6 +40,30 @@ const extractText = (content: unknown): string => {
40
40
  return texts.join('\n');
41
41
  };
42
42
 
43
+ // A transcript user entry is only a genuine owner reply when it was actually
44
+ // typed (or queued) by the human owner. Claude Code records the provenance of
45
+ // each user entry on the top-level `origin` and `promptSource` fields. A
46
+ // genuine human prompt is identified by EITHER `origin.kind === 'human'` OR a
47
+ // `promptSource` of `typed`/`queued`; the second condition is required because
48
+ // older-format transcripts record genuine human replies with a `promptSource`
49
+ // of `queued`/`typed` but no `origin` field, and dropping those would leave a
50
+ // real owner reply uncounted and the session waiting forever. Every
51
+ // system-injected user entry, by contrast, uses a `promptSource` of `system`
52
+ // (sub-agent `task-notification` notices, cross-session `peer` messages) or
53
+ // `sdk` (spawn prompts), or has neither field (tool results, skill/meta
54
+ // entries) — none of which match. Only a genuine human entry may clear an
55
+ // outstanding call-to-user; otherwise a system-injected entry would be
56
+ // miscounted as the owner answering and a genuinely waiting session would stop
57
+ // being suppressed.
58
+ const isGenuineHumanEntry = (parsed: Record<string, unknown>): boolean => {
59
+ const origin = parsed.origin;
60
+ if (isRecord(origin) && readString(origin, 'kind') === 'human') {
61
+ return true;
62
+ }
63
+ const promptSource = readString(parsed, 'promptSource');
64
+ return promptSource === 'typed' || promptSource === 'queued';
65
+ };
66
+
43
67
  const hasOwnerTextReply = (content: unknown): boolean => {
44
68
  if (typeof content === 'string') {
45
69
  if (content.length === 0) {
@@ -122,7 +146,11 @@ export class TranscriptOwnerCallStatusProvider implements OwnerCallStatusProvide
122
146
  ) {
123
147
  lastOwnerCallEpochMs = epochMs;
124
148
  }
125
- if (type === 'user' && hasOwnerTextReply(messageContent)) {
149
+ if (
150
+ type === 'user' &&
151
+ isGenuineHumanEntry(parsed) &&
152
+ hasOwnerTextReply(messageContent)
153
+ ) {
126
154
  lastOwnerReplyEpochMs = epochMs;
127
155
  }
128
156
  }
@@ -3,11 +3,15 @@ import { LocalStorageRepository } from '../LocalStorageRepository';
3
3
  import dotenv from 'dotenv';
4
4
 
5
5
  dotenv.config();
6
- describe('ApiV3IssueRepository', () => {
6
+
7
+ const githubToken = process.env.GH_TOKEN;
8
+ const describeWhenCredentials = githubToken ? describe : describe.skip;
9
+
10
+ describeWhenCredentials('ApiV3IssueRepository', () => {
7
11
  const localStorageRepository = new LocalStorageRepository();
8
12
  const repository = new ApiV3IssueRepository(
9
13
  localStorageRepository,
10
- process.env.GH_TOKEN || 'dummy',
14
+ githubToken,
11
15
  );
12
16
  test('searchIssue', async () => {
13
17
  const result = await repository.searchIssue({
@@ -9,20 +9,6 @@ describe('DefaultSilentSessionMessageComposer', () => {
9
9
  expect(section).toContain(SILENT_SESSION_REMINDER_SENTINEL);
10
10
  });
11
11
 
12
- it('embeds the reminder sentinel in the owner-re-notification section', () => {
13
- const section = composer.composeOwnerReNotificationSection(1800);
14
- expect(section).toContain(SILENT_SESSION_REMINDER_SENTINEL);
15
- });
16
-
17
- it('instructs the agent to re-raise its pending call-to-user without treating the reminder as an owner reply', () => {
18
- const section = composer.composeOwnerReNotificationSection(1800);
19
- expect(section).toContain('waiting on the owner for 30 minutes');
20
- expect(section).toContain('NOT the owner replying');
21
- expect(section).toContain('Re-raise your pending call-to-user');
22
- expect(section).toContain('you are not stalled or idle');
23
- expect(section.toLowerCase()).not.toContain('no output for');
24
- });
25
-
26
12
  it('embeds the reminder sentinel in the sub-agent section', () => {
27
13
  const section = composer.composeSubAgentSection([
28
14
  { label: 'sub-process-1', silentSeconds: 360, runningSeconds: 1200 },
@@ -67,12 +53,10 @@ describe('DefaultSilentSessionMessageComposer', () => {
67
53
 
68
54
  it('does not contain any host-specific or internal identifiers', () => {
69
55
  const mainSection = composer.composeMainStalledSection(600);
70
- const ownerSection = composer.composeOwnerReNotificationSection(1800);
71
56
  const subSection = composer.composeSubAgentSection([
72
57
  { label: 'sub-process-1', silentSeconds: 360, runningSeconds: 1200 },
73
58
  ]);
74
- const combined =
75
- `${mainSection}\n${ownerSection}\n${subSection}`.toLowerCase();
59
+ const combined = `${mainSection}\n${subSection}`.toLowerCase();
76
60
  expect(combined).not.toContain('claude');
77
61
  expect(combined).not.toContain('take ownership');
78
62
  expect(combined).not.toContain('/home/');
@@ -19,22 +19,11 @@ const composeMainStalledMessage = (mainSilentSeconds: number): string => {
19
19
  ].join('\n');
20
20
  };
21
21
 
22
- const composeOwnerReNotificationMessage = (waitingSeconds: number): string => {
23
- const minutes = Math.floor(waitingSeconds / 60);
24
- return [
25
- `${SILENT_SESSION_REMINDER_SENTINEL} This is an automated monitor reminder, NOT the owner replying. Do NOT treat this message as an owner answer to your outstanding call-to-user; your pending question is still unanswered. You have been waiting on the owner for ${minutes} minutes and the owner has not yet replied. The owner is only notified when a fresh call-to-user is raised, so a single past call-to-user that has gone quiet will never reach them. Re-raise your pending call-to-user to the owner now: re-emit it so a new call-to-user marker fires and the owner is notified again. Keep your question and proposed options unchanged unless you have new information. You are correctly waiting on the owner — you are not stalled or idle — so do not abandon the wait and do not invent an owner decision yourself; simply re-surface the same request so the owner sees it.`,
26
- ].join('\n');
27
- };
28
-
29
22
  export class DefaultSilentSessionMessageComposer implements SilentSessionMessageComposer {
30
23
  composeMainStalledSection = (mainSilentSeconds: number): string => {
31
24
  return composeMainStalledMessage(mainSilentSeconds);
32
25
  };
33
26
 
34
- composeOwnerReNotificationSection = (waitingSeconds: number): string => {
35
- return composeOwnerReNotificationMessage(waitingSeconds);
36
- };
37
-
38
27
  composeSubAgentSection = (subAgents: SubAgentActivity[]): string => {
39
28
  const lines = subAgents.map(
40
29
  (subAgent) =>
@@ -21,7 +21,6 @@ import { InteractiveLiveSession } from '../entities/InteractiveLiveSession';
21
21
  type Mocked<T> = jest.Mocked<T> & jest.MockedObject<T>;
22
22
 
23
23
  const MAIN_STALLED_SECTION = 'MAIN_STALLED_SECTION';
24
- const OWNER_RENOTIFICATION_SECTION = 'OWNER_RENOTIFICATION_SECTION';
25
24
  const SUBAGENT_SECTION = 'SUBAGENT_SECTION';
26
25
 
27
26
  describe('NotifySilentLiveSessionsUseCase', () => {
@@ -125,9 +124,6 @@ describe('NotifySilentLiveSessionsUseCase', () => {
125
124
  composeMainStalledSection: jest
126
125
  .fn()
127
126
  .mockReturnValue(MAIN_STALLED_SECTION),
128
- composeOwnerReNotificationSection: jest
129
- .fn()
130
- .mockReturnValue(OWNER_RENOTIFICATION_SECTION),
131
127
  composeSubAgentSection: jest.fn().mockReturnValue(SUBAGENT_SECTION),
132
128
  };
133
129
  mockSleeper = {
@@ -201,7 +197,7 @@ describe('NotifySilentLiveSessionsUseCase', () => {
201
197
  ).toHaveBeenCalledWith(['workbench']);
202
198
  });
203
199
 
204
- it('sends the owner-re-notification section instead of the stalled section when an owner call is pending past the threshold', async () => {
200
+ it('suppresses the stalled section and sends nothing when an owner call is pending past the threshold', async () => {
205
201
  setupLiveInteractiveSession('workbench');
206
202
  mockSessionOutputActivityRepository.listSessionOutputActivities.mockResolvedValue(
207
203
  [
@@ -221,65 +217,12 @@ describe('NotifySilentLiveSessionsUseCase', () => {
221
217
  expect(
222
218
  mockMessageComposer.composeMainStalledSection,
223
219
  ).not.toHaveBeenCalled();
224
- expect(
225
- mockMessageComposer.composeOwnerReNotificationSection,
226
- ).toHaveBeenCalledWith(DEFAULT_MAIN_SILENT_THRESHOLD_SECONDS);
227
- expect(
228
- mockNotificationRepository.sendSelfCheckNotification,
229
- ).toHaveBeenCalledWith('workbench', OWNER_RENOTIFICATION_SECTION);
230
- });
231
-
232
- it('does not send the owner-re-notification section when the owner-call wait is within the threshold', async () => {
233
- setupLiveInteractiveSession('workbench');
234
- mockSessionOutputActivityRepository.listSessionOutputActivities.mockResolvedValue(
235
- [
236
- {
237
- sessionName: 'workbench',
238
- lastOutputEpochSeconds:
239
- nowEpochSeconds - DEFAULT_MAIN_SILENT_THRESHOLD_SECONDS + 1,
240
- },
241
- ],
242
- );
243
- mockOwnerCallStatusProvider.listSessionNamesWithUnansweredOwnerCall.mockResolvedValue(
244
- new Set(['workbench']),
245
- );
246
-
247
- await useCase.run(runParams());
248
-
249
- expect(
250
- mockMessageComposer.composeOwnerReNotificationSection,
251
- ).not.toHaveBeenCalled();
252
- expect(
253
- mockNotificationRepository.sendSelfCheckNotification,
254
- ).not.toHaveBeenCalled();
255
- });
256
-
257
- it('does not re-notify the owner within the cooldown window while still waiting on the owner', async () => {
258
- setupLiveInteractiveSession('workbench');
259
- mockSessionOutputActivityRepository.listSessionOutputActivities.mockResolvedValue(
260
- [
261
- {
262
- sessionName: 'workbench',
263
- lastOutputEpochSeconds:
264
- nowEpochSeconds - DEFAULT_MAIN_SILENT_THRESHOLD_SECONDS,
265
- },
266
- ],
267
- );
268
- mockOwnerCallStatusProvider.listSessionNamesWithUnansweredOwnerCall.mockResolvedValue(
269
- new Set(['workbench']),
270
- );
271
- mockNotificationRepository.getLastNotifiedEpochSeconds.mockResolvedValue(
272
- nowEpochSeconds - DEFAULT_NOTIFICATION_COOLDOWN_SECONDS + 1,
273
- );
274
-
275
- await useCase.run(runParams());
276
-
277
220
  expect(
278
221
  mockNotificationRepository.sendSelfCheckNotification,
279
222
  ).not.toHaveBeenCalled();
280
223
  });
281
224
 
282
- it('stops re-notifying the owner once a genuine owner reply clears the unanswered call', async () => {
225
+ it('sends the main stalled section when the session is silent past the threshold and not waiting on the owner', async () => {
283
226
  setupLiveInteractiveSession('workbench');
284
227
  mockSessionOutputActivityRepository.listSessionOutputActivities.mockResolvedValue(
285
228
  [
@@ -296,9 +239,6 @@ describe('NotifySilentLiveSessionsUseCase', () => {
296
239
 
297
240
  await useCase.run(runParams());
298
241
 
299
- expect(
300
- mockMessageComposer.composeOwnerReNotificationSection,
301
- ).not.toHaveBeenCalled();
302
242
  expect(mockMessageComposer.composeMainStalledSection).toHaveBeenCalledWith(
303
243
  DEFAULT_MAIN_SILENT_THRESHOLD_SECONDS,
304
244
  );
@@ -172,27 +172,14 @@ export class NotifySilentLiveSessionsUseCase {
172
172
 
173
173
  if (
174
174
  snapshot.mainSilentSeconds !== null &&
175
- snapshot.mainSilentSeconds >= thresholds.mainSilentThresholdSeconds
175
+ snapshot.mainSilentSeconds >= thresholds.mainSilentThresholdSeconds &&
176
+ !snapshot.hasUnansweredOwnerCall
176
177
  ) {
177
- if (snapshot.hasUnansweredOwnerCall) {
178
- // The session is correctly waiting on the owner, but it has been silent
179
- // long enough that the owner has effectively not been re-notified. Rather
180
- // than suppress, instruct the agent to re-raise its pending call-to-user
181
- // so the owner's marker re-fires. The per-session cooldown applied in
182
- // run() limits this to roughly once per cooldown window, and it stops
183
- // automatically once the owner replies (hasUnansweredOwnerCall clears).
184
- sections.push(
185
- this.messageComposer.composeOwnerReNotificationSection(
186
- snapshot.mainSilentSeconds,
187
- ),
188
- );
189
- } else {
190
- sections.push(
191
- this.messageComposer.composeMainStalledSection(
192
- snapshot.mainSilentSeconds,
193
- ),
194
- );
195
- }
178
+ sections.push(
179
+ this.messageComposer.composeMainStalledSection(
180
+ snapshot.mainSilentSeconds,
181
+ ),
182
+ );
196
183
  }
197
184
 
198
185
  const stalledSubAgents = snapshot.subAgents.filter(
@@ -2,6 +2,5 @@ import { SubAgentActivity } from '../../entities/LiveSessionActivitySnapshot';
2
2
 
3
3
  export interface SilentSessionMessageComposer {
4
4
  composeMainStalledSection: (mainSilentSeconds: number) => string;
5
- composeOwnerReNotificationSection: (waitingSeconds: number) => string;
6
5
  composeSubAgentSection: (subAgents: SubAgentActivity[]) => string;
7
6
  }
@@ -1 +1 @@
1
- {"version":3,"file":"HandleScheduledEventUseCaseHandler.d.ts","sourceRoot":"","sources":["../../../../src/adapter/entry-points/handlers/HandleScheduledEventUseCaseHandler.ts"],"names":[],"mappings":"AAkCA,OAAO,EAAE,KAAK,EAAE,MAAM,gCAAgC,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AA0D3D,qBAAa,kCAAkC;IAC7C,MAAM,GACJ,gBAAgB,MAAM,EACtB,UAAU,OAAO,KAChB,OAAO,CAAC;QACT,OAAO,EAAE,OAAO,CAAC;QACjB,MAAM,EAAE,KAAK,EAAE,CAAC;QAChB,SAAS,EAAE,OAAO,CAAC;QACnB,eAAe,EAAE,IAAI,EAAE,CAAC;KACzB,GAAG,IAAI,CAAC,CA8iBP;CACH"}
1
+ {"version":3,"file":"HandleScheduledEventUseCaseHandler.d.ts","sourceRoot":"","sources":["../../../../src/adapter/entry-points/handlers/HandleScheduledEventUseCaseHandler.ts"],"names":[],"mappings":"AAkCA,OAAO,EAAE,KAAK,EAAE,MAAM,gCAAgC,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AA0D3D,qBAAa,kCAAkC;IAC7C,MAAM,GACJ,gBAAgB,MAAM,EACtB,UAAU,OAAO,KAChB,OAAO,CAAC;QACT,OAAO,EAAE,OAAO,CAAC;QACjB,MAAM,EAAE,KAAK,EAAE,CAAC;QAChB,SAAS,EAAE,OAAO,CAAC;QACnB,eAAe,EAAE,IAAI,EAAE,CAAC;KACzB,GAAG,IAAI,CAAC,CAyiBP;CACH"}
@@ -2,7 +2,6 @@ import { SubAgentActivity } from '../../domain/entities/LiveSessionActivitySnaps
2
2
  import { SilentSessionMessageComposer } from '../../domain/usecases/adapter-interfaces/SilentSessionMessageComposer';
3
3
  export type SilentSessionMessageTemplates = {
4
4
  mainStalledMessage: string | null;
5
- ownerReNotificationMessage: string | null;
6
5
  subAgentMessageHeader: string | null;
7
6
  subAgentMessageFooter: string | null;
8
7
  };
@@ -11,7 +10,6 @@ export declare class ConfigurableSilentSessionMessageComposer implements SilentS
11
10
  private readonly fallback;
12
11
  constructor(templates: SilentSessionMessageTemplates, fallback: SilentSessionMessageComposer);
13
12
  composeMainStalledSection: (mainSilentSeconds: number) => string;
14
- composeOwnerReNotificationSection: (waitingSeconds: number) => string;
15
13
  composeSubAgentSection: (subAgents: SubAgentActivity[]) => string;
16
14
  }
17
15
  //# sourceMappingURL=ConfigurableSilentSessionMessageComposer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ConfigurableSilentSessionMessageComposer.d.ts","sourceRoot":"","sources":["../../../src/adapter/repositories/ConfigurableSilentSessionMessageComposer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,mDAAmD,CAAC;AACrF,OAAO,EAAE,4BAA4B,EAAE,MAAM,uEAAuE,CAAC;AAQrH,MAAM,MAAM,6BAA6B,GAAG;IAC1C,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,0BAA0B,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1C,qBAAqB,EAAE,MAAM,GAAG,IAAI,CAAC;IACrC,qBAAqB,EAAE,MAAM,GAAG,IAAI,CAAC;CACtC,CAAC;AAOF,qBAAa,wCAAyC,YAAW,4BAA4B;IAEzF,OAAO,CAAC,QAAQ,CAAC,SAAS;IAC1B,OAAO,CAAC,QAAQ,CAAC,QAAQ;gBADR,SAAS,EAAE,6BAA6B,EACxC,QAAQ,EAAE,4BAA4B;IAGzD,yBAAyB,GAAI,mBAAmB,MAAM,KAAG,MAAM,CAK7D;IAEF,iCAAiC,GAAI,gBAAgB,MAAM,KAAG,MAAM,CAKlE;IAEF,sBAAsB,GAAI,WAAW,gBAAgB,EAAE,KAAG,MAAM,CAsB9D;CACH"}
1
+ {"version":3,"file":"ConfigurableSilentSessionMessageComposer.d.ts","sourceRoot":"","sources":["../../../src/adapter/repositories/ConfigurableSilentSessionMessageComposer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,mDAAmD,CAAC;AACrF,OAAO,EAAE,4BAA4B,EAAE,MAAM,uEAAuE,CAAC;AAQrH,MAAM,MAAM,6BAA6B,GAAG;IAC1C,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,qBAAqB,EAAE,MAAM,GAAG,IAAI,CAAC;IACrC,qBAAqB,EAAE,MAAM,GAAG,IAAI,CAAC;CACtC,CAAC;AAOF,qBAAa,wCAAyC,YAAW,4BAA4B;IAEzF,OAAO,CAAC,QAAQ,CAAC,SAAS;IAC1B,OAAO,CAAC,QAAQ,CAAC,QAAQ;gBADR,SAAS,EAAE,6BAA6B,EACxC,QAAQ,EAAE,4BAA4B;IAGzD,yBAAyB,GAAI,mBAAmB,MAAM,KAAG,MAAM,CAK7D;IAEF,sBAAsB,GAAI,WAAW,gBAAgB,EAAE,KAAG,MAAM,CAsB9D;CACH"}
@@ -1 +1 @@
1
- {"version":3,"file":"TranscriptOwnerCallStatusProvider.d.ts","sourceRoot":"","sources":["../../../src/adapter/repositories/TranscriptOwnerCallStatusProvider.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAE,MAAM,kEAAkE,CAAC;AAiE3G,qBAAa,iCAAkC,YAAW,uBAAuB;IACnE,OAAO,CAAC,QAAQ,CAAC,eAAe;gBAAf,eAAe,EAAE,MAAM,GAAG,IAAI;IAE3D,uCAAuC,GACrC,6BAA6B,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,KAC/C,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAYrB;IAEF,OAAO,CAAC,sBAAsB,CAkD5B;CACH"}
1
+ {"version":3,"file":"TranscriptOwnerCallStatusProvider.d.ts","sourceRoot":"","sources":["../../../src/adapter/repositories/TranscriptOwnerCallStatusProvider.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAE,MAAM,kEAAkE,CAAC;AAyF3G,qBAAa,iCAAkC,YAAW,uBAAuB;IACnE,OAAO,CAAC,QAAQ,CAAC,eAAe;gBAAf,eAAe,EAAE,MAAM,GAAG,IAAI;IAE3D,uCAAuC,GACrC,6BAA6B,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,KAC/C,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAYrB;IAEF,OAAO,CAAC,sBAAsB,CAsD5B;CACH"}
@@ -2,7 +2,6 @@ import { SubAgentActivity } from '../entities/LiveSessionActivitySnapshot';
2
2
  import { SilentSessionMessageComposer } from './adapter-interfaces/SilentSessionMessageComposer';
3
3
  export declare class DefaultSilentSessionMessageComposer implements SilentSessionMessageComposer {
4
4
  composeMainStalledSection: (mainSilentSeconds: number) => string;
5
- composeOwnerReNotificationSection: (waitingSeconds: number) => string;
6
5
  composeSubAgentSection: (subAgents: SubAgentActivity[]) => string;
7
6
  }
8
7
  //# sourceMappingURL=DefaultSilentSessionMessageComposer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DefaultSilentSessionMessageComposer.d.ts","sourceRoot":"","sources":["../../../src/domain/usecases/DefaultSilentSessionMessageComposer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,yCAAyC,CAAC;AAC3E,OAAO,EAAE,4BAA4B,EAAE,MAAM,mDAAmD,CAAC;AA2BjG,qBAAa,mCAAoC,YAAW,4BAA4B;IACtF,yBAAyB,GAAI,mBAAmB,MAAM,KAAG,MAAM,CAE7D;IAEF,iCAAiC,GAAI,gBAAgB,MAAM,KAAG,MAAM,CAElE;IAEF,sBAAsB,GAAI,WAAW,gBAAgB,EAAE,KAAG,MAAM,CAY9D;CACH"}
1
+ {"version":3,"file":"DefaultSilentSessionMessageComposer.d.ts","sourceRoot":"","sources":["../../../src/domain/usecases/DefaultSilentSessionMessageComposer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,yCAAyC,CAAC;AAC3E,OAAO,EAAE,4BAA4B,EAAE,MAAM,mDAAmD,CAAC;AAoBjG,qBAAa,mCAAoC,YAAW,4BAA4B;IACtF,yBAAyB,GAAI,mBAAmB,MAAM,KAAG,MAAM,CAE7D;IAEF,sBAAsB,GAAI,WAAW,gBAAgB,EAAE,KAAG,MAAM,CAY9D;CACH"}
@@ -1 +1 @@
1
- {"version":3,"file":"NotifySilentLiveSessionsUseCase.d.ts","sourceRoot":"","sources":["../../../src/domain/usecases/NotifySilentLiveSessionsUseCase.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kCAAkC,EAAE,MAAM,yDAAyD,CAAC;AAC7G,OAAO,EAAE,wCAAwC,EAAE,MAAM,+DAA+D,CAAC;AACzH,OAAO,EAAE,uBAAuB,EAAE,MAAM,8CAA8C,CAAC;AACvF,OAAO,EAAE,+BAA+B,EAAE,MAAM,sDAAsD,CAAC;AACvG,OAAO,EAAE,iCAAiC,EAAE,MAAM,wDAAwD,CAAC;AAC3G,OAAO,EAAE,4BAA4B,EAAE,MAAM,mDAAmD,CAAC;AACjG,OAAO,EAAE,mCA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7D,uBAAuB,EAAE,uBAAuB,EAChD,sBAAsB,EAAE,mCAAmC,EAC3D,eAAe,EAAE,4BAA4B,EAC7C,OAAO,EAAE,OAAO;IAGnC,GAAG,GAAU,QAAQ;QACnB,0BAA0B,EAAE,MAAM,CAAC;QACnC,8BAA8B,EAAE,MAAM,CAAC;QACvC,+BAA+B,EAAE,MAAM,CAAC;QACxC,eAAe,EAAE,MAAM,CAAC;QACxB,cAAc,EAAE,MAAM,CAAC;QACvB,GAAG,EAAE,IAAI,CAAC;KACX,KAAG,OAAO,CAAC,IAAI,CAAC,CAmEf;IAEF,OAAO,CAAC,gBAAgB,CA8CtB;IAEF,OAAO,CAAC,cAAc,CAqCpB;CACH"}
@@ -1,7 +1,6 @@
1
1
  import { SubAgentActivity } from '../../entities/LiveSessionActivitySnapshot';
2
2
  export interface SilentSessionMessageComposer {
3
3
  composeMainStalledSection: (mainSilentSeconds: number) => string;
4
- composeOwnerReNotificationSection: (waitingSeconds: number) => string;
5
4
  composeSubAgentSection: (subAgents: SubAgentActivity[]) => string;
6
5
  }
7
6
  //# sourceMappingURL=SilentSessionMessageComposer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SilentSessionMessageComposer.d.ts","sourceRoot":"","sources":["../../../../src/domain/usecases/adapter-interfaces/SilentSessionMessageComposer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,4CAA4C,CAAC;AAE9E,MAAM,WAAW,4BAA4B;IAC3C,yBAAyB,EAAE,CAAC,iBAAiB,EAAE,MAAM,KAAK,MAAM,CAAC;IACjE,iCAAiC,EAAE,CAAC,cAAc,EAAE,MAAM,KAAK,MAAM,CAAC;IACtE,sBAAsB,EAAE,CAAC,SAAS,EAAE,gBAAgB,EAAE,KAAK,MAAM,CAAC;CACnE"}
1
+ {"version":3,"file":"SilentSessionMessageComposer.d.ts","sourceRoot":"","sources":["../../../../src/domain/usecases/adapter-interfaces/SilentSessionMessageComposer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,4CAA4C,CAAC;AAE9E,MAAM,WAAW,4BAA4B;IAC3C,yBAAyB,EAAE,CAAC,iBAAiB,EAAE,MAAM,KAAK,MAAM,CAAC;IACjE,sBAAsB,EAAE,CAAC,SAAS,EAAE,gBAAgB,EAAE,KAAK,MAAM,CAAC;CACnE"}