omp-superagent 0.1.10 → 0.1.13

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 (154) hide show
  1. package/DESIGN.md +71 -15
  2. package/README.ko.md +10 -1
  3. package/README.md +10 -1
  4. package/THIRD_PARTY_NOTICES.md +35 -436
  5. package/assets/architecture-dark.svg +7 -12
  6. package/assets/architecture.ko-dark.svg +7 -12
  7. package/assets/architecture.ko.svg +7 -12
  8. package/assets/architecture.mmd +5 -13
  9. package/assets/architecture.svg +7 -12
  10. package/config.example.json +1 -0
  11. package/docs/OPERATIONS.en.md +282 -53
  12. package/docs/OPERATIONS.md +264 -45
  13. package/docs/design/execution.md +80 -52
  14. package/docs/design/messaging.md +113 -32
  15. package/docs/releases/0.1.11.md +20 -0
  16. package/docs/releases/0.1.13.md +13 -0
  17. package/gateway/bin/omp-gateway-darwin-arm64 +0 -0
  18. package/gateway/bin/omp-gateway-darwin-x64 +0 -0
  19. package/gateway/bin/omp-gateway-linux-arm64 +0 -0
  20. package/gateway/bin/omp-gateway-linux-x64 +0 -0
  21. package/host-owner/bin/omp-host-owner-darwin-arm64 +0 -0
  22. package/host-owner/bin/omp-host-owner-darwin-x64 +0 -0
  23. package/host-owner/bin/omp-host-owner-linux-arm64 +0 -0
  24. package/host-owner/bin/omp-host-owner-linux-x64 +0 -0
  25. package/package.json +13 -11
  26. package/scripts/{prepare-ulw.ts → prepare-super.ts} +1 -1
  27. package/scripts/upgrade-evidence-files.mjs +100 -0
  28. package/scripts/upgrade-evidence.mjs +192 -0
  29. package/scripts/upgrade-host-wire.mjs +162 -0
  30. package/skills/head/SKILL.md +12 -3
  31. package/skills/head/references/routing.md +1 -1
  32. package/skills/head/references/supervision.md +23 -26
  33. package/skills/lane/SKILL.md +28 -21
  34. package/skills/lane/references/workflow.md +15 -17
  35. package/src/cli.ts +33 -53
  36. package/src/{config.ts → config/config.ts} +7 -3
  37. package/src/config/wake-config.ts +36 -0
  38. package/src/contracts.ts +61 -12
  39. package/src/{cron-jobs.ts → cron/cron-jobs.ts} +21 -13
  40. package/src/{cron-pr-intake.ts → cron/cron-pr-intake.ts} +4 -4
  41. package/src/{cron-schedule.ts → cron/cron-schedule.ts} +3 -3
  42. package/src/extension.ts +43 -25
  43. package/src/{gateway-client.ts → gateway/gateway-client.ts} +89 -32
  44. package/src/{gateway-native.ts → gateway/gateway-native.ts} +4 -4
  45. package/src/{gateway-protocol.ts → gateway/gateway-protocol.ts} +69 -14
  46. package/src/{gateway-wire.ts → gateway/gateway-wire.ts} +12 -7
  47. package/src/gateway-config.ts +1 -1
  48. package/src/gateway-restart-env.ts +3 -3
  49. package/src/{group-access.ts → group/group-access.ts} +8 -3
  50. package/src/{group-policy.ts → group/group-policy.ts} +2 -2
  51. package/src/{group-runner.ts → group/group-runner.ts} +11 -6
  52. package/src/host-extension.ts +164 -36
  53. package/src/host-sdk-helper.ts +66 -65
  54. package/src/{decision-tool.ts → lane/decision-tool.ts} +12 -4
  55. package/src/{decisions.ts → lane/decisions.ts} +12 -10
  56. package/src/{lane-models.ts → lane/lane-models.ts} +1 -1
  57. package/src/{lane-rows.ts → lane/lane-rows.ts} +2 -2
  58. package/src/{lane-watch.ts → lane/lane-watch.ts} +6 -2
  59. package/src/{workflow.ts → lane/workflow.ts} +1 -1
  60. package/src/lane-extension.ts +25 -7
  61. package/src/managed-memory-helper.ts +2 -2
  62. package/src/{managed-ulw-probe.ts → managed-super-probe.ts} +3 -3
  63. package/src/{delivery.ts → messaging/delivery.ts} +1 -1
  64. package/src/{discord-command-registration.ts → messaging/discord-command-registration.ts} +3 -2
  65. package/src/{discord-context.ts → messaging/discord-context.ts} +1 -1
  66. package/src/{messenger-command-catalog.json → messaging/messenger-command-catalog.json} +1 -0
  67. package/src/messaging/messenger-commands.ts +55 -0
  68. package/src/{result-attachment.ts → messaging/result-attachment.ts} +3 -3
  69. package/src/{slack-command-registration.ts → messaging/slack-command-registration.ts} +3 -3
  70. package/src/{telegram-command-registration.ts → messaging/telegram-command-registration.ts} +2 -2
  71. package/src/omp/head-resume.ts +123 -0
  72. package/src/{host-owner-path.ts → omp/host-owner-path.ts} +1 -1
  73. package/src/{host-protocol.ts → omp/host-protocol.ts} +10 -2
  74. package/src/{host-superkit.ts → omp/host-superkit.ts} +1 -1
  75. package/src/{host.ts → omp/host.ts} +26 -17
  76. package/src/{installed-omp.ts → omp/installed-omp.ts} +1 -1
  77. package/src/{managed-memory.ts → omp/managed-memory.ts} +2 -2
  78. package/src/{managed-ulw.ts → omp/managed-super.ts} +42 -16
  79. package/src/omp/native-journal.ts +124 -0
  80. package/src/{native-launch-profile.ts → omp/native-launch-profile.ts} +6 -2
  81. package/src/{native-presets.ts → omp/native-presets.ts} +2 -2
  82. package/src/omp/native-sessions.ts +124 -0
  83. package/src/{omp-usage.ts → omp/omp-usage.ts} +1 -1
  84. package/src/{soul.ts → omp/soul.ts} +2 -2
  85. package/src/omp/stock-head-launch.ts +31 -0
  86. package/src/{autostart.ts → operator/autostart.ts} +3 -3
  87. package/src/{operator.ts → operator/operator.ts} +2 -2
  88. package/src/{setup-judge.ts → operator/setup-judge.ts} +1 -1
  89. package/src/{setup-profiles.ts → operator/setup-profiles.ts} +2 -2
  90. package/src/{setup.ts → operator/setup.ts} +5 -5
  91. package/src/operator/stop-lane.ts +25 -0
  92. package/src/{pr-intake-automation.ts → pr/pr-intake-automation.ts} +1 -1
  93. package/src/{pr-intake-mode.ts → pr/pr-intake-mode.ts} +3 -3
  94. package/src/{pr-intake-review.ts → pr/pr-intake-review.ts} +5 -5
  95. package/src/{pr-intake-work.ts → pr/pr-intake-work.ts} +1 -1
  96. package/src/{pr-review-models.ts → pr/pr-review-models.ts} +2 -2
  97. package/src/{pr-watch.ts → pr/pr-watch.ts} +36 -26
  98. package/src/{message-order.ts → routing/message-order.ts} +1 -1
  99. package/src/{topic-history.ts → routing/topic-history.ts} +2 -2
  100. package/src/{topic-request.ts → routing/topic-request.ts} +4 -2
  101. package/src/{runtime.ts → runtime/controller.ts} +867 -1213
  102. package/src/runtime/deferred-routing.ts +106 -0
  103. package/src/runtime/dm-timeline.ts +194 -0
  104. package/src/{head-recovery.ts → runtime/head-recovery.ts} +1 -1
  105. package/src/{head-rotation.ts → runtime/head-rotation.ts} +32 -5
  106. package/src/runtime/model-journal.ts +119 -0
  107. package/src/runtime/native-frames.ts +131 -0
  108. package/src/{observation-request.ts → runtime/observation-request.ts} +1 -1
  109. package/src/runtime/preset-sync.ts +232 -0
  110. package/src/runtime/preset-watch-paths.ts +137 -0
  111. package/src/runtime/result-attachments.ts +146 -0
  112. package/src/storage/deferred-routing.ts +149 -0
  113. package/src/{store.ts → storage/store.ts} +75 -42
  114. package/src/{worker-bridge.ts → worker/worker-bridge.ts} +2 -2
  115. package/src/{worker-enrollment.ts → worker/worker-enrollment.ts} +2 -2
  116. package/src/{worker-host.ts → worker/worker-host.ts} +7 -3
  117. package/src/{worker-placement.ts → worker/worker-placement.ts} +1 -1
  118. package/src/{worker-profile.ts → worker/worker-profile.ts} +1 -1
  119. package/src/{worker-registration.ts → worker/worker-registration.ts} +2 -2
  120. package/src/{worker-request.ts → worker/worker-request.ts} +5 -5
  121. package/src/{worker-service.ts → worker/worker-service.ts} +2 -2
  122. package/src/{worker-trust.ts → worker/worker-trust.ts} +1 -1
  123. package/src/{worker-wire.ts → worker/worker-wire.ts} +3 -3
  124. package/src/worker-serve-prepare.ts +4 -4
  125. package/src/board-extension.ts +0 -217
  126. package/src/board.ts +0 -467
  127. package/src/gateway-host-helper.ts +0 -13
  128. package/src/messenger-commands.ts +0 -15
  129. package/src/native-sessions.ts +0 -34
  130. /package/src/{credentials.ts → config/credentials.ts} +0 -0
  131. /package/src/{lane-report.ts → lane/lane-report.ts} +0 -0
  132. /package/src/{dialog.ts → messaging/dialog.ts} +0 -0
  133. /package/src/{telegram-command-languages.json → messaging/telegram-command-languages.json} +0 -0
  134. /package/src/{host-broker-services.ts → omp/host-broker-services.ts} +0 -0
  135. /package/src/{host-inventory-manifest.ts → omp/host-inventory-manifest.ts} +0 -0
  136. /package/src/{host-reply-voice.ts → omp/host-reply-voice.ts} +0 -0
  137. /package/src/{host-services.ts → omp/host-services.ts} +0 -0
  138. /package/src/{native-settings.ts → omp/native-settings.ts} +0 -0
  139. /package/src/{superkit-skills.ts → omp/superkit-skills.ts} +0 -0
  140. /package/src/{repository.ts → operator/repository.ts} +0 -0
  141. /package/src/{pr-github-schema.ts → pr/pr-github-schema.ts} +0 -0
  142. /package/src/{pr-github.ts → pr/pr-github.ts} +0 -0
  143. /package/src/{pr-intake-comment.ts → pr/pr-intake-comment.ts} +0 -0
  144. /package/src/{pr-intake-fix.ts → pr/pr-intake-fix.ts} +0 -0
  145. /package/src/{pr-intake-github.ts → pr/pr-intake-github.ts} +0 -0
  146. /package/src/{pr-intake-material.ts → pr/pr-intake-material.ts} +0 -0
  147. /package/src/{pr-intake-tree.ts → pr/pr-intake-tree.ts} +0 -0
  148. /package/src/{head-quota.ts → runtime/head-quota.ts} +0 -0
  149. /package/src/{worker-checkout.ts → worker/worker-checkout.ts} +0 -0
  150. /package/src/{worker-destination.ts → worker/worker-destination.ts} +0 -0
  151. /package/src/{worker-doctor.ts → worker/worker-doctor.ts} +0 -0
  152. /package/src/{worker-ledger.ts → worker/worker-ledger.ts} +0 -0
  153. /package/src/{worker-repository.ts → worker/worker-repository.ts} +0 -0
  154. /package/upstream/{ulw.json → super.json} +0 -0
@@ -1,6 +1,6 @@
1
1
  <svg xmlns="http://www.w3.org/2000/svg" width="960" height="430" viewBox="0 0 960 430" role="img" aria-labelledby="architecture-title architecture-desc" font-family="system-ui, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', 'Noto Sans CJK KR', 'Segoe UI', sans-serif">
2
2
  <title id="architecture-title">상시 실행 서비스 하나, OMP 헤드 하나, 독립 레인 세션</title>
3
- <desc id="architecture-desc">Discord, Telegram, Slack은 상시 실행되는 Gateway 서비스에 연결됩니다. 모든 입력은 OMP 헤드 에이전트 세션으로 전달되며, 헤드는 직접 판단하고 작업하거나 레인 A와 레인 B의 독립 저장소·주제 세션을 제어합니다. 레인 제어는 헤드만 합니다. 레인 결과는 헤드와 Gateway를 거쳐 메신저로 돌아갑니다. 헤드와 레인은 정보 게시판을 공유하며, 점선 연결은 명령 경로가 아닙니다.</desc>
3
+ <desc id="architecture-desc">Discord, Telegram, Slack의 요청과 답변은 Gateway와 헤드 컨트롤러를 거칩니다. 연결된 주제의 일반 요청과 답변은 헤드 모델을 호출하지 않고 처리합니다. 헤드는 독립 레인 세션에 직접 작업을 맡깁니다. 위임 작업 결과, 헤드에 보낸 질문, 원본 메시지에 연결된 범위 검토 요청은 컨트롤러를 거쳐 헤드에 전달됩니다.</desc>
4
4
  <defs>
5
5
  <linearGradient id="hero" x1="0" y1="0" x2="1" y2="0"><stop offset="0" stop-color="#e23cb4"/><stop offset="0.5" stop-color="#9c4ffb"/><stop offset="1" stop-color="#22b8d4"/></linearGradient>
6
6
  <marker id="flow-arrow" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto" markerUnits="userSpaceOnUse"><path d="M0 0 10 5 0 10Z" fill="#6f6787"/></marker>
@@ -18,9 +18,6 @@
18
18
  <path d="M754 162H714V200H638" fill="none" stroke="#6f6787" stroke-width="1.8" stroke-linejoin="round" marker-end="url(#flow-arrow)"/>
19
19
  <path d="M638 234H714V266H754" fill="none" stroke="#8f3ff0" stroke-width="2.4" stroke-linejoin="round" marker-end="url(#control-arrow)"/>
20
20
  <path d="M754 306H684V258H638" fill="none" stroke="#6f6787" stroke-width="1.8" stroke-linejoin="round" marker-end="url(#flow-arrow)"/>
21
- <path d="M542 274V370" fill="none" stroke="#8b82a3" stroke-width="1.6" stroke-dasharray="5 5" stroke-linecap="round" stroke-linejoin="round"/>
22
- <path d="M936 122H948V392H936" fill="none" stroke="#8b82a3" stroke-width="1.6" stroke-dasharray="5 5" stroke-linecap="round" stroke-linejoin="round"/>
23
- <path d="M846 338V370" fill="none" stroke="#8b82a3" stroke-width="1.6" stroke-dasharray="5 5" stroke-linecap="round" stroke-linejoin="round"/>
24
21
  </g>
25
22
  <g>
26
23
  <rect x="24" y="132" width="160" height="142" rx="14" fill="#ffffff" stroke="#cfc7de" stroke-width="1.5"/>
@@ -39,7 +36,7 @@
39
36
  <rect x="446" y="132" width="192" height="142" rx="14" fill="#faf3ff" stroke="url(#hero)" stroke-width="2.5"/>
40
37
  <rect x="470" y="129" width="144" height="6" rx="3" fill="url(#hero)"/>
41
38
  <text x="542" y="167" font-size="22" font-weight="700" text-anchor="middle" fill="#7a2bd6">OMP 헤드</text>
42
- <text x="542" y="195" font-size="16" text-anchor="middle" fill="#5c5470">에이전트 세션</text>
39
+ <text x="542" y="195" font-size="16" text-anchor="middle" fill="#5c5470">모델 + 컨트롤러</text>
43
40
  <text x="542" y="222" font-size="16" text-anchor="middle" fill="#5c5470">판단 · 작업</text>
44
41
  <text x="542" y="250" font-size="15" font-weight="600" text-anchor="middle" fill="#7a2bd6">레인 제어는 헤드만</text>
45
42
  </g>
@@ -57,13 +54,11 @@
57
54
  <text x="845" y="288" font-size="16" text-anchor="middle" fill="#5c5470">독립 세션</text>
58
55
  <text x="845" y="315" font-size="16" text-anchor="middle" fill="#5c5470">저장소 / 주제 B</text>
59
56
  </g>
60
- <text x="249" y="304" font-size="15" fill="#5c5470">헤드를 거쳐 응답</text>
61
- <text x="650" y="219" font-size="15" fill="#5c5470">결과</text>
62
- <text x="695" y="295" font-size="15" fill="#5c5470">결과</text>
63
- <text x="553" y="325" font-size="15" fill="#5c5470">상태 / 맥락</text>
64
57
  <g>
65
- <rect x="446" y="370" width="490" height="44" rx="12" fill="#f5f1fb" stroke="#8b82a3" stroke-width="1.2" stroke-dasharray="5 5"/>
66
- <text x="466" y="398" font-size="18" font-weight="700" fill="#1d1530">공유 게시판</text>
67
- <text x="586" y="398" font-size="15" fill="#5c5470">정보 공유 전용 · 제어 아님</text>
58
+ <path d="M24 360H49" fill="none" stroke="#8f3ff0" stroke-width="2.4" marker-end="url(#control-arrow)"/>
59
+ <text x="60" y="365" font-size="16" fill="#5c5470">헤드에서 레인으로: lane_start 또는 lane_message</text>
60
+ <path d="M24 383H49" fill="none" stroke="#6f6787" stroke-width="1.8" marker-end="url(#flow-arrow)"/>
61
+ <text x="60" y="388" font-size="16" fill="#5c5470">레인에서 헤드로: 위임 작업 결과, 헤드에 보낸 질문, 원본 메시지에 연결된 범위 검토 요청</text>
62
+ <text x="60" y="411" font-size="16" fill="#5c5470">컨트롤러는 연결된 주제의 일반 요청과 답변을 헤드 모델 호출 없이 처리합니다.</text>
68
63
  </g>
69
64
  </svg>
@@ -1,26 +1,18 @@
1
1
  flowchart LR
2
2
  M["Messengers<br/>Discord · Telegram · Slack"]
3
3
  G["Gateway<br/>Always-on service<br/>Admit · route · reply"]
4
- H["OMP Head<br/>Agent session<br/>Decides · works<br/>Head-only lane control"]
4
+ H["OMP Head<br/>Model + controller<br/>Bound topics bypass the model"]
5
5
  A["Lane A<br/>Independent session<br/>repo / topic A"]
6
6
  B["Lane B<br/>Independent session<br/>repo / topic B"]
7
- S["Shared board<br/>Information only · not control"]
8
-
9
7
  M --> G
10
8
  G --> H
11
- H -->|Head-only control| A
12
- H -->|Head-only control| B
13
- A -->|Results| H
14
- B -->|Results| H
9
+ H -->|"lane_start / lane_message"| A
10
+ H -->|"lane_start / lane_message"| B
11
+ A -->|"Manager results / decisions for HEAD / scope reviews"| H
12
+ B -->|"Manager results / decisions for HEAD / scope reviews"| H
15
13
  H --> G
16
14
  G --> M
17
- H -.- S
18
- A -.- S
19
- B -.- S
20
-
21
15
  classDef head fill:#faf3ff,stroke:#9c4ffb,color:#7a2bd6,stroke-width:2px
22
16
  classDef lane stroke:#22b8d4
23
- classDef board fill:#f5f1fb,stroke:#8b82a3,color:#1d1530,stroke-dasharray:5 5
24
17
  class H head
25
18
  class A,B lane
26
- class S board
@@ -1,6 +1,6 @@
1
1
  <svg xmlns="http://www.w3.org/2000/svg" width="960" height="430" viewBox="0 0 960 430" role="img" aria-labelledby="architecture-title architecture-desc" font-family="system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif">
2
2
  <title id="architecture-title">One always-on service, one OMP head, independent lane sessions</title>
3
- <desc id="architecture-desc">Discord, Telegram, and Slack connect to the always-on Gateway service. All input passes to the OMP Head agent session, which decides and works directly or controls independent repository or topic sessions in Lane A and Lane B. Only the head controls lanes. Lane results return through the head and Gateway to the messengers. The head and lanes share an informational board; dashed connections are not a command bus.</desc>
3
+ <desc id="architecture-desc">Discord, Telegram, and Slack connect to the Gateway, which relays requests and replies through the head controller. The controller routes bound-topic prompts and replies without a head model turn. The head assigns work directly to independent lane sessions. Manager handoff results, decisions addressed to HEAD, and source-bound scope reviews return through the controller.</desc>
4
4
  <defs>
5
5
  <linearGradient id="hero" x1="0" y1="0" x2="1" y2="0"><stop offset="0" stop-color="#e23cb4"/><stop offset="0.5" stop-color="#9c4ffb"/><stop offset="1" stop-color="#22b8d4"/></linearGradient>
6
6
  <marker id="flow-arrow" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto" markerUnits="userSpaceOnUse"><path d="M0 0 10 5 0 10Z" fill="#6f6787"/></marker>
@@ -18,9 +18,6 @@
18
18
  <path d="M754 162H714V200H638" fill="none" stroke="#6f6787" stroke-width="1.8" stroke-linejoin="round" marker-end="url(#flow-arrow)"/>
19
19
  <path d="M638 234H714V266H754" fill="none" stroke="#8f3ff0" stroke-width="2.4" stroke-linejoin="round" marker-end="url(#control-arrow)"/>
20
20
  <path d="M754 306H684V258H638" fill="none" stroke="#6f6787" stroke-width="1.8" stroke-linejoin="round" marker-end="url(#flow-arrow)"/>
21
- <path d="M542 274V370" fill="none" stroke="#8b82a3" stroke-width="1.6" stroke-dasharray="5 5" stroke-linecap="round" stroke-linejoin="round"/>
22
- <path d="M936 122H948V392H936" fill="none" stroke="#8b82a3" stroke-width="1.6" stroke-dasharray="5 5" stroke-linecap="round" stroke-linejoin="round"/>
23
- <path d="M846 338V370" fill="none" stroke="#8b82a3" stroke-width="1.6" stroke-dasharray="5 5" stroke-linecap="round" stroke-linejoin="round"/>
24
21
  </g>
25
22
  <g>
26
23
  <rect x="24" y="132" width="160" height="142" rx="14" fill="#ffffff" stroke="#cfc7de" stroke-width="1.5"/>
@@ -39,7 +36,7 @@
39
36
  <rect x="446" y="132" width="192" height="142" rx="14" fill="#faf3ff" stroke="url(#hero)" stroke-width="2.5"/>
40
37
  <rect x="470" y="129" width="144" height="6" rx="3" fill="url(#hero)"/>
41
38
  <text x="542" y="167" font-size="22" font-weight="700" text-anchor="middle" fill="#7a2bd6">OMP Head</text>
42
- <text x="542" y="195" font-size="16" text-anchor="middle" fill="#5c5470">agent session</text>
39
+ <text x="542" y="195" font-size="16" text-anchor="middle" fill="#5c5470">model + controller</text>
43
40
  <text x="542" y="222" font-size="16" text-anchor="middle" fill="#5c5470">decides · works</text>
44
41
  <text x="542" y="250" font-size="15" font-weight="600" text-anchor="middle" fill="#7a2bd6">Head-only lane control</text>
45
42
  </g>
@@ -57,13 +54,11 @@
57
54
  <text x="845" y="288" font-size="16" text-anchor="middle" fill="#5c5470">independent session</text>
58
55
  <text x="845" y="315" font-size="16" text-anchor="middle" fill="#5c5470">repo / topic B</text>
59
56
  </g>
60
- <text x="249" y="304" font-size="15" fill="#5c5470">Replies via head</text>
61
- <text x="650" y="219" font-size="15" fill="#5c5470">results</text>
62
- <text x="695" y="295" font-size="15" fill="#5c5470">results</text>
63
- <text x="553" y="325" font-size="15" fill="#5c5470">status / context</text>
64
57
  <g>
65
- <rect x="446" y="370" width="490" height="44" rx="12" fill="#f5f1fb" stroke="#8b82a3" stroke-width="1.2" stroke-dasharray="5 5"/>
66
- <text x="466" y="398" font-size="18" font-weight="700" fill="#1d1530">Shared board</text>
67
- <text x="609" y="398" font-size="15" fill="#5c5470">information only · not control</text>
58
+ <path d="M24 360H49" fill="none" stroke="#8f3ff0" stroke-width="2.4" marker-end="url(#control-arrow)"/>
59
+ <text x="60" y="365" font-size="16" fill="#5c5470">HEAD to lane: lane_start or lane_message</text>
60
+ <path d="M24 383H49" fill="none" stroke="#6f6787" stroke-width="1.8" marker-end="url(#flow-arrow)"/>
61
+ <text x="60" y="388" font-size="16" fill="#5c5470">Lane to HEAD: delegated results, decisions for HEAD, and source-bound scope reviews</text>
62
+ <text x="60" y="411" font-size="16" fill="#5c5470">The controller routes bound-topic prompts and replies without a HEAD model turn.</text>
68
63
  </g>
69
64
  </svg>
@@ -5,6 +5,7 @@
5
5
  "maxHosts": 4,
6
6
  "maxSubagents": 8,
7
7
  "idleMs": 300000,
8
+ "headIdleMs": 1800000,
8
9
  "groupRooms": [],
9
10
  "discord": {
10
11
  "tokenEnv": "DISCORD_BOT_TOKEN",