omp-superagent 0.1.10 → 0.1.11

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 (149) hide show
  1. package/DESIGN.md +58 -15
  2. package/README.ko.md +7 -0
  3. package/README.md +7 -0
  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 +106 -52
  12. package/docs/OPERATIONS.md +98 -44
  13. package/docs/design/execution.md +80 -52
  14. package/docs/design/messaging.md +113 -32
  15. package/docs/releases/0.1.11.md +18 -0
  16. package/gateway/bin/omp-gateway-darwin-arm64 +0 -0
  17. package/gateway/bin/omp-gateway-darwin-x64 +0 -0
  18. package/gateway/bin/omp-gateway-linux-arm64 +0 -0
  19. package/gateway/bin/omp-gateway-linux-x64 +0 -0
  20. package/host-owner/bin/omp-host-owner-darwin-arm64 +0 -0
  21. package/host-owner/bin/omp-host-owner-darwin-x64 +0 -0
  22. package/host-owner/bin/omp-host-owner-linux-arm64 +0 -0
  23. package/host-owner/bin/omp-host-owner-linux-x64 +0 -0
  24. package/package.json +10 -11
  25. package/scripts/{prepare-ulw.ts → prepare-super.ts} +1 -1
  26. package/skills/head/SKILL.md +12 -3
  27. package/skills/head/references/routing.md +1 -1
  28. package/skills/head/references/supervision.md +23 -26
  29. package/skills/lane/SKILL.md +28 -21
  30. package/skills/lane/references/workflow.md +15 -17
  31. package/src/cli.ts +33 -33
  32. package/src/{config.ts → config/config.ts} +7 -3
  33. package/src/config/wake-config.ts +36 -0
  34. package/src/contracts.ts +61 -12
  35. package/src/{cron-jobs.ts → cron/cron-jobs.ts} +21 -13
  36. package/src/{cron-pr-intake.ts → cron/cron-pr-intake.ts} +4 -4
  37. package/src/{cron-schedule.ts → cron/cron-schedule.ts} +3 -3
  38. package/src/extension.ts +43 -25
  39. package/src/{gateway-client.ts → gateway/gateway-client.ts} +89 -32
  40. package/src/{gateway-native.ts → gateway/gateway-native.ts} +4 -4
  41. package/src/{gateway-protocol.ts → gateway/gateway-protocol.ts} +69 -14
  42. package/src/{gateway-wire.ts → gateway/gateway-wire.ts} +12 -7
  43. package/src/gateway-config.ts +1 -1
  44. package/src/gateway-restart-env.ts +3 -3
  45. package/src/{group-access.ts → group/group-access.ts} +8 -3
  46. package/src/{group-policy.ts → group/group-policy.ts} +2 -2
  47. package/src/{group-runner.ts → group/group-runner.ts} +11 -6
  48. package/src/host-extension.ts +164 -36
  49. package/src/host-sdk-helper.ts +62 -65
  50. package/src/{decision-tool.ts → lane/decision-tool.ts} +12 -4
  51. package/src/{decisions.ts → lane/decisions.ts} +12 -10
  52. package/src/{lane-models.ts → lane/lane-models.ts} +1 -1
  53. package/src/{lane-rows.ts → lane/lane-rows.ts} +2 -2
  54. package/src/{lane-watch.ts → lane/lane-watch.ts} +6 -2
  55. package/src/{workflow.ts → lane/workflow.ts} +1 -1
  56. package/src/lane-extension.ts +25 -7
  57. package/src/managed-memory-helper.ts +2 -2
  58. package/src/{managed-ulw-probe.ts → managed-super-probe.ts} +3 -3
  59. package/src/{delivery.ts → messaging/delivery.ts} +1 -1
  60. package/src/{discord-command-registration.ts → messaging/discord-command-registration.ts} +3 -2
  61. package/src/{discord-context.ts → messaging/discord-context.ts} +1 -1
  62. package/src/{messenger-command-catalog.json → messaging/messenger-command-catalog.json} +1 -0
  63. package/src/messaging/messenger-commands.ts +55 -0
  64. package/src/{result-attachment.ts → messaging/result-attachment.ts} +3 -3
  65. package/src/{slack-command-registration.ts → messaging/slack-command-registration.ts} +3 -3
  66. package/src/{telegram-command-registration.ts → messaging/telegram-command-registration.ts} +2 -2
  67. package/src/omp/head-resume.ts +123 -0
  68. package/src/{host-owner-path.ts → omp/host-owner-path.ts} +1 -1
  69. package/src/{host-protocol.ts → omp/host-protocol.ts} +10 -2
  70. package/src/{host-superkit.ts → omp/host-superkit.ts} +1 -1
  71. package/src/{host.ts → omp/host.ts} +26 -17
  72. package/src/{installed-omp.ts → omp/installed-omp.ts} +1 -1
  73. package/src/{managed-memory.ts → omp/managed-memory.ts} +2 -2
  74. package/src/{managed-ulw.ts → omp/managed-super.ts} +42 -16
  75. package/src/omp/native-journal.ts +124 -0
  76. package/src/{native-launch-profile.ts → omp/native-launch-profile.ts} +6 -2
  77. package/src/{native-presets.ts → omp/native-presets.ts} +2 -2
  78. package/src/omp/native-sessions.ts +124 -0
  79. package/src/{omp-usage.ts → omp/omp-usage.ts} +1 -1
  80. package/src/{soul.ts → omp/soul.ts} +2 -2
  81. package/src/omp/stock-head-launch.ts +31 -0
  82. package/src/{autostart.ts → operator/autostart.ts} +3 -3
  83. package/src/{operator.ts → operator/operator.ts} +2 -2
  84. package/src/{setup-judge.ts → operator/setup-judge.ts} +1 -1
  85. package/src/{setup-profiles.ts → operator/setup-profiles.ts} +2 -2
  86. package/src/{setup.ts → operator/setup.ts} +5 -5
  87. package/src/{pr-intake-automation.ts → pr/pr-intake-automation.ts} +1 -1
  88. package/src/{pr-intake-mode.ts → pr/pr-intake-mode.ts} +3 -3
  89. package/src/{pr-intake-review.ts → pr/pr-intake-review.ts} +5 -5
  90. package/src/{pr-intake-work.ts → pr/pr-intake-work.ts} +1 -1
  91. package/src/{pr-review-models.ts → pr/pr-review-models.ts} +2 -2
  92. package/src/{pr-watch.ts → pr/pr-watch.ts} +36 -26
  93. package/src/{message-order.ts → routing/message-order.ts} +1 -1
  94. package/src/{topic-history.ts → routing/topic-history.ts} +2 -2
  95. package/src/{topic-request.ts → routing/topic-request.ts} +4 -2
  96. package/src/{runtime.ts → runtime/controller.ts} +867 -1213
  97. package/src/runtime/deferred-routing.ts +106 -0
  98. package/src/runtime/dm-timeline.ts +194 -0
  99. package/src/{head-recovery.ts → runtime/head-recovery.ts} +1 -1
  100. package/src/{head-rotation.ts → runtime/head-rotation.ts} +32 -5
  101. package/src/runtime/model-journal.ts +119 -0
  102. package/src/runtime/native-frames.ts +131 -0
  103. package/src/{observation-request.ts → runtime/observation-request.ts} +1 -1
  104. package/src/runtime/preset-sync.ts +232 -0
  105. package/src/runtime/preset-watch-paths.ts +137 -0
  106. package/src/runtime/result-attachments.ts +146 -0
  107. package/src/storage/deferred-routing.ts +149 -0
  108. package/src/{store.ts → storage/store.ts} +75 -42
  109. package/src/{worker-bridge.ts → worker/worker-bridge.ts} +2 -2
  110. package/src/{worker-enrollment.ts → worker/worker-enrollment.ts} +2 -2
  111. package/src/{worker-host.ts → worker/worker-host.ts} +7 -3
  112. package/src/{worker-placement.ts → worker/worker-placement.ts} +1 -1
  113. package/src/{worker-profile.ts → worker/worker-profile.ts} +1 -1
  114. package/src/{worker-registration.ts → worker/worker-registration.ts} +2 -2
  115. package/src/{worker-request.ts → worker/worker-request.ts} +5 -5
  116. package/src/{worker-service.ts → worker/worker-service.ts} +2 -2
  117. package/src/{worker-trust.ts → worker/worker-trust.ts} +1 -1
  118. package/src/{worker-wire.ts → worker/worker-wire.ts} +3 -3
  119. package/src/worker-serve-prepare.ts +4 -4
  120. package/src/board-extension.ts +0 -217
  121. package/src/board.ts +0 -467
  122. package/src/gateway-host-helper.ts +0 -13
  123. package/src/messenger-commands.ts +0 -15
  124. package/src/native-sessions.ts +0 -34
  125. /package/src/{credentials.ts → config/credentials.ts} +0 -0
  126. /package/src/{lane-report.ts → lane/lane-report.ts} +0 -0
  127. /package/src/{dialog.ts → messaging/dialog.ts} +0 -0
  128. /package/src/{telegram-command-languages.json → messaging/telegram-command-languages.json} +0 -0
  129. /package/src/{host-broker-services.ts → omp/host-broker-services.ts} +0 -0
  130. /package/src/{host-inventory-manifest.ts → omp/host-inventory-manifest.ts} +0 -0
  131. /package/src/{host-reply-voice.ts → omp/host-reply-voice.ts} +0 -0
  132. /package/src/{host-services.ts → omp/host-services.ts} +0 -0
  133. /package/src/{native-settings.ts → omp/native-settings.ts} +0 -0
  134. /package/src/{superkit-skills.ts → omp/superkit-skills.ts} +0 -0
  135. /package/src/{repository.ts → operator/repository.ts} +0 -0
  136. /package/src/{pr-github-schema.ts → pr/pr-github-schema.ts} +0 -0
  137. /package/src/{pr-github.ts → pr/pr-github.ts} +0 -0
  138. /package/src/{pr-intake-comment.ts → pr/pr-intake-comment.ts} +0 -0
  139. /package/src/{pr-intake-fix.ts → pr/pr-intake-fix.ts} +0 -0
  140. /package/src/{pr-intake-github.ts → pr/pr-intake-github.ts} +0 -0
  141. /package/src/{pr-intake-material.ts → pr/pr-intake-material.ts} +0 -0
  142. /package/src/{pr-intake-tree.ts → pr/pr-intake-tree.ts} +0 -0
  143. /package/src/{head-quota.ts → runtime/head-quota.ts} +0 -0
  144. /package/src/{worker-checkout.ts → worker/worker-checkout.ts} +0 -0
  145. /package/src/{worker-destination.ts → worker/worker-destination.ts} +0 -0
  146. /package/src/{worker-doctor.ts → worker/worker-doctor.ts} +0 -0
  147. /package/src/{worker-ledger.ts → worker/worker-ledger.ts} +0 -0
  148. /package/src/{worker-repository.ts → worker/worker-repository.ts} +0 -0
  149. /package/upstream/{ulw.json → super.json} +0 -0
@@ -30,9 +30,10 @@ Discord 텍스트로만 받는다.
30
30
  `lane_inspect`, `lane_message`, `lane_pause`, `lane_resume`, `lane_close`,
31
31
  `thread_inspect`, `lane_thread_update`, `messenger_presence`, `lane_watch`, `pr_watch`, `pr_watch_list`,
32
32
  `discord_context`, `discord_purpose_list`, `discord_purpose_set`, `discord_purpose_clear`,
33
- `decision_list`, `decision_inspect`, `decision_withdraw`를 사용한다.
33
+ `decision_list`, `decision_inspect`, `decision_withdraw`, `lane_review_decision`을 사용한다.
34
34
  `decision_ask`는 HEAD와 레인 root에서 사용하며 native 자식에는 제공하지 않는다.
35
- `lane_inspect({})`가 목록 조회다. 레인에는 관리 권한을, native 자식에는 관리·게시판 권한을 주지 않는다.
35
+ `lane_inspect({})`로 목록을 조회한다. `lane_report`는 레인 root만 사용할 수 있다. 레인과
36
+ native 자식에는 관리 권한을 주지 않는다.
36
37
  일반 OMP에 이 확장들을 전역 설치하지 않는다. 도구 인자·역할 경계는
37
38
  [설계의 관리 도구 계약](design/execution.md#management-tools)을 따른다.
38
39
 
@@ -142,26 +143,30 @@ extension-command capability 조회를 하지 않는다. 레인은 실제 OMP je
142
143
  judge 도움말(OMP 19.1에서는 `help://eval/judge`)을 따른다. notice 활성화는 native `magicKeywords.enabled`·`magicKeywords.jevify`와
143
144
  eval 가용성에 달리므로 admission만으로 보장하지 않는다. 전역 설정을 바꾸지 않으며 jevify에는
144
145
  SUPER 스킬 조회·추가 레인·goal·모델 변경·workflow artifact가 필요하지 않다.
145
- 레인의 보고는 헤드용이며 외부 발송이 아니다. 내부 지시·보고는 영어, 헤드의 외부 답변은
146
- 사용자 언어를 사용한다.
147
-
148
- ### 공유 정보 게시판 사용
149
-
150
- 같은 instance에 실제 연결·등록된 head/lane만 게시판을 쓴다. 일반 OMP·다른 instance·native
151
- 자식·복사한 role 환경변수만 가진 세션은 참여할 수 없다. 같은 instance의 참여자는 모든
152
- 채널을 읽을 수 있으므로 repo 채널을 보안 격리로 여기지 않는다.
153
-
154
- ```text
155
- board_post({text: "Observed fact and relevant evidence", mentions: ["head"]})
156
- board_read({channel: "general", limit: 20})
157
- board_subscribe({channels: ["general", "repo:/absolute/repository"]})
158
- ```
159
-
160
- 이는 셸 명령이 아닌 native 도구 인자 예다. 실제 광고된 스키마를 따른다. 전체 transcript나
161
- 비밀 대신 간결한 관측·근거·충돌을 공유한다. 반환된 정확한 게시물만 읽음 처리하며 구독은
162
- 실제 세션별이다. header 알림과 본문 읽음은 다르다. 게시물은 명령·승인·완료 근거가 아니며
163
- 유휴 모델 호출·unloaded 레인 기동을 만들지 않는다. membership·도구 필드·알림의 정확한
164
- 계약은 [설계의 게시판 절](design/execution.md#shared-information-board)을 따른다.
146
+ 내부 지시와 헤드가 위임한 작업의 보고는 영어로 작성한다. 운영자에게 보내는 답변은
147
+ 운영자의 언어를 사용한다.
148
+
149
+ ### 헤드와 레인의 직접 조율
150
+
151
+ - **근거 또는 대기 상태:** 레인 root는 `lane_report`로 선택한 근거나 정확한 대기 대상을
152
+ 기록한다. 연결 주제의 직접 작업에서 기록한 관측은 헤드에 알리지 않는다. 헤드가 위임한
153
+ 작업에서 근거나 대기 상태가 바뀌면 헤드 큐에 들어가지만 메신저로 직접 보내지는 않는다.
154
+ 실제 결정에 필요한 경우에만 관측 상태를 조회하며, 반복해서 조회하지 않는다.
155
+ - **현재 범위에서 헤드의 판단이 필요한 선택:** 편집 담당이 겹치는 경우처럼 조율이 필요하면
156
+ 레인에 연결된 주제에서도 `decision_ask`에 `to: "head"`를 지정한다. 같은 native 질문을
157
+ 대상으로 헤드 검토 한 건이 즉시 영속 큐에 들어가지만 바로 답변이 오는 것은 아니다.
158
+ 헤드는 원래 선택지 중 하나로 답하거나 같은 카드를 원래 경로의 운영자에게 넘긴다.
159
+ `to`를 생략하면 연결 주제의 질문은 운영자에게, 헤드가 위임한 작업의 질문은 헤드에게 간다.
160
+ 정정 지시를 받은 작업에서 명시적으로 헤드에게 보낸 질문은 운영자에게 넘기지 않고
161
+ 내부에서 취소한다.
162
+ - **기존 범위와 충돌하는 운영자 정정:** 연결 주제의 독립된 원본 메시지가 요건을 충족하면
163
+ 레인 root가 원본 source ID로 `lane_report({status:"scope_review", sourceId})`를 직접 호출한다.
164
+ 헤드만 검증된 검토 ID와 운영자 원문 그대로를 사용해 같은 레인에 정정 `lane_message`를 보낼 수
165
+ 있다. 정정 지시가 도착할 때까지 충돌하는 작업은 보류한다. 질문 카드로 범위 검토나 native
166
+ 승인을 대신하지 않는다.
167
+
168
+ [직접 조율](design/execution.md#direct-lane-coordination) 및
169
+ [범위 검토 계약](design/execution.md#bound-topic-assignment-scope-review)을 참고한다.
165
170
 
166
171
  ### 새 레인의 모델 선택
167
172
 
@@ -203,18 +208,25 @@ board_subscribe({channels: ["general", "repo:/absolute/repository"]})
203
208
  18에서 19로 올리기 전에 기존 Host가 맡은 백그라운드 서비스를 확인한다. OMP 19의 사용자별
204
209
  데몬은 이전 브로커의 서비스를 인수하지 않는다. 새 데몬의 목록이 비어 있어도 이전 세션에서
205
210
  완료를 확인하지 못한 작업의 종료·회수를 승인하는 증거는 아니다.
211
+
212
+ **Bun 저널 검증기를 사용하던 설치를 덮어쓸 때:** 기존 설치를 유지한 상태에서 작업 정산을
213
+ 기다리고, 상주 레인 Host(원격 워커 포함)와 Gateway/HEAD를 정상 종료한다. 종료 영수증과
214
+ 소유 프로세스의 실제 종료를 확인한 뒤 파일을 교체한다. `stop main`만으로는 독립 레인이
215
+ 종료되지 않는다. 이전 소유자는 종료 시까지 원래 helper 파일이 필요하고, 새 소유자는 Rust로
216
+ 저널을 검증한다. 상태 DB와 세션 파일은 그대로 보존한다.
217
+
206
218
  기본 `command: ["omp"]`는 PATH에서 찾는다. 다른 설치를 쓰려면 `command`의 첫 항목에
207
219
  그 OMP 경로를 넣는다. 상대 경로는 설정 파일의 디렉터리 기준이며 모든 레인이 같은 경로를
208
220
  사용한다. 이 저장소는 OMP를 다운로드하거나 소스에서 빌드하지 않는다.
209
221
 
210
222
  ```sh
211
- bun add --global --trust omp-superagent@0.1.10
223
+ bun add --global --trust omp-superagent@0.1.11
212
224
  omp-sa --help
213
225
  ```
214
226
 
215
227
  `--trust`는 관리형 omp-superkit 준비 등 패키지 설치 스크립트를 허용한다.
216
228
  `bun pm bin --global`의 출력 경로를 PATH에 포함한다. Bun이 PATH에 있으면
217
- `npm install --global omp-superagent@0.1.10`도 사용할 수 있다.
229
+ `npm install --global omp-superagent@0.1.11`도 사용할 수 있다.
218
230
  설정은 설치 디렉터리가 아닌 사용자 작업 디렉터리에
219
231
  `omp-sa setup --config ./config.local.json`으로 만든다. 설치만으로 봇을 활성화하지 않는다.
220
232
 
@@ -227,8 +239,10 @@ bun install --frozen-lockfile
227
239
  ```
228
240
 
229
241
  설치 단계에서는 OMP를 실행하지 않는다. `setup`·`doctor`와 실제 Host 시작에서 선택된 CLI를 확인한다.
230
- 루트 SDK 의존성은 배포된 `@oh-my-pi/pi-coding-agent`, `@oh-my-pi/pi-ai`,
231
- `@oh-my-pi/pi-catalog`, `@oh-my-pi/pi-natives`, `@oh-my-pi/pi-tui`, `@oh-my-pi/pi-utils`이며 모두 같은 기준판으로 고정한다. 설치는 봇을 시작하지 않으며
242
+ 별도 Bun 프로세스에서 실행하는 도우미는 `@oh-my-pi/pi-coding-agent`, `@oh-my-pi/pi-catalog`,
243
+ `@oh-my-pi/pi-natives`, `@oh-my-pi/pi-utils`에 직접 의존하며 모두 같은 기준판으로 고정한다.
244
+ 확장에서 사용하는 `pi-ai`는 Host가 제공하므로 개발 의존성에만 직접 선언한다.
245
+ `pi-ai`와 `pi-tui`는 여전히 coding-agent SDK의 하위 의존성으로 설치된다. 설치는 봇을 시작하지 않으며
232
246
  기존 OMP 실행 파일·전역 설정을 교체하지 않는다.
233
247
 
234
248
  시스템 Bun을 바꾸지 않으려면 선택적으로 격리된 로컬 도구를 사용한다.
@@ -254,7 +268,7 @@ export PATH="$PWD/.upstream/toolchain/node_modules/.bin:$PATH"
254
268
  bun run prepare:ulw
255
269
  ```
256
270
 
257
- 설정은 `upstream/ulw.json`의 공식 원격과 `checkIntervalMs: 3600000`(1시간)이다. 설치 때 원격의
271
+ 설정은 `upstream/super.json`의 공식 원격과 `checkIntervalMs: 3600000`(1시간)이다. 설치 때 원격의
258
272
  **기본 브랜치 HEAD**를 확인한다. production Gateway 시작에는 이미 유효한 active 설치가
259
273
  필요하다. 이를 확인하면 IPC/head를 먼저 시작하고 startup 원격 확인은 백그라운드로 수행하며,
260
274
  이후 매시간 새 커밋을 확인해 준비·활성화한다. 느리거나 접근 불가능한 upstream 때문에 정상
@@ -338,7 +352,7 @@ export DISCORD_BOT_TOKEN
338
352
 
339
353
  Discord 자동완성 목록은 명시적으로 등록한다. 명령을 등록하기 전에 Gateway와 HEAD 모두
340
354
  새 버전으로 실행 중이어야 한다. Gateway만 교체하면 기존 HEAD에 재연결될 수 있다.
341
- Discord에서 `/help`를 보내 `/usage-reset`이 표시되는지 확인한다. 표시되지 않으면
355
+ Discord에서 `/help`를 보내 `/usage-reset`과 `/fast` 메뉴의 Confirm 안내가 표시되는지 확인한다. 표시되지 않으면
342
356
  등록하지 말고 HEAD 업데이트를 먼저 마친다. 작업 중인 HEAD를 강제 종료하지 않는다.
343
357
 
344
358
  ```sh
@@ -348,11 +362,13 @@ bun --no-env-file src/cli.ts discord-commands --config config.local.json --apply
348
362
 
349
363
  첫 명령은 읽기 전용 변경 확인이다. `--apply`는 **이 봇의 전역 명령 목록 전체를 교체**하므로
350
364
  전용 Superagent 앱에서만 사용한다. Hermes 전용 명령은 제거하고 `/head`를 포함한
351
- [공통 명령 목록과 Discord 전용 `/usage-reset`](../src/messenger-command-catalog.json)을 등록한다.
365
+ [공통 명령 목록과 Discord 전용 `/usage-reset`](../src/messaging/messenger-command-catalog.json)을 등록한다.
352
366
  별도 guild 명령이 전역 명령을 가리는 경우 몰래 삭제하지 않고 충돌을 알린다.
353
367
  등록은 모델·메신저 연결을 시작하지 않으며 setup·doctor·start의 부수 효과로 실행되지 않는다.
354
368
  인수가 있는 명령은 선택적인 `text` 필드를 사용한다. 예를 들어 `/model`의 `text`에
355
- `preset high`, `/stop`의 `text`에 `head`를 넣는다. 일반 메시지로 쓰는 `/status`도 지원하며,
369
+ `preset high`, `/stop`의 `text`에 `head`를 넣는다. 입력란이 안 보이면 읽기 전용 조회의
370
+ `preApplyTextOptionDrift`(누락됐거나 오래된 전역 옵션)와 `guilds[].shadowing`(전역 명령을
371
+ 가리는 서버 명령)을 확인한다. 일반 메시지로 쓰는 `/status`도 지원하며,
356
372
  `discord.requireAddressing`을 켠 부모 채널에서는 다른 일반 메시지와 마찬가지로 이 봇을
357
373
  멘션하거나 이 봇의 메시지에 답장해야 한다.
358
374
 
@@ -574,8 +590,11 @@ job/dependency는 명시적인 근거 포함 `resolved`를 사용한다.
574
590
  실제 파일/도구 결과를 선택·해시하고 native journal에 기록한다. eval에서는 보고 cell을
575
591
  완료한 뒤 긴 대기에 들어가야 해당 경계에서 헤드가 회수할 수 있다. 재시작 시 같은 원본
576
592
  input/request/session/file/generation과 제출 전 cursor를 확인해 미회수 기록을 읽고 중복을
577
- 제거한다. native children은 보고 도구를 쓸 수 없다. 관측은 검증된 acceptance나 현재
578
- 대상의 생존 보장이 아니며, 감시 모델·타이머·자동 독촉/재개/종료를 만들지 않는다.
593
+ 제거한다. native 자식은 보고 도구를 쓸 수 없다. 관측만으로 요구 사항 충족이나 대상이 아직
594
+ 실행 중임을 증명할 수 없다. 연결 주제의 직접 작업에서 기록한 관측은 헤드 모델에 알리지
595
+ 않는다. 헤드가 위임한 작업의 근거나 대기 상태 변경만 헤드 큐에 들어간다. 감시 모델,
596
+ 타이머, 자동 알림을 만들거나 작업을 재개·종료하지 않는다. 추적된 선택의 응답이 제출됐더라도
597
+ 그 응답 기록은 작업을 수행했다는 근거가 아니다.
579
598
 
580
599
  Gateway가 허용된 원본 메시지를 영속 접수한 뒤 수신 확인 반응을 남긴다. 헤드가 없어도
581
600
  접수 표시는 가능하며, 반응 API 응답을 기다리느라 플랫폼 ACK·offset이나 모델 실행·답변을
@@ -752,6 +771,7 @@ high/middle/low는 명시적 `start`의 전용 초기 설정 턴에서 기존
752
771
  | `maxHosts` | 헤드 1개를 포함한 상주 Host 예산. 필수 정수, 최소 2. 초과 작업은 대기한다. |
753
772
  | `maxSubagents` | 전체 Host에 분배할 네이티브 task 동시성 예산. 필수 정수, `maxHosts` 이상. Host별 한도는 `floor(maxSubagents / maxHosts)`다. |
754
773
  | `idleMs` | 안전하게 정착한 유휴 레인을 회수하기까지의 시간(밀리초). 필수 0 이상 정수. 헤드는 대상이 아니며 세션 기록은 삭제하지 않는다. |
774
+ | `headIdleMs` | 할 일이 없는 HEAD를 메모리에 유지하는 시간(밀리초). 기본값 `1800000`(30분), `0`이면 휴면을 사용하지 않는다. 레인 회수 시간과 세션 기록은 바뀌지 않는다. |
755
775
  | `model` | 선택 항목. 헤드 시작에 사용할 OMP 모델 식별자. 생략 시 기존 OMP 설정을 따른다. 모든 새 레인의 기본값이 아니며 새 레인은 `lane_start`의 model 또는 preset으로 각각 선택한다. 재개는 저장된 레인 선택을 유지한다. |
756
776
  | `discord` | 선택 블록. 존재하면 `tokenEnv`, `ownerId`, `allowedGuildIds`, `allowedChannelIds` 모두 필수. |
757
777
  | `discord.requireAddressing` | 선택 불리언, 기본값 `false`. `true`이면 허용된 서버의 부모 채널과 이 봇이 만들지 않은 스레드에서 이 봇의 실제 멘션 또는 이 봇이 보낸 메시지에 대한 답장이 포함된 소유자의 일반 메시지만 접수한다. |
@@ -966,6 +986,8 @@ HEAD 답변에서 저장한 리비전을 확인한다. 설정은 재시작 후
966
986
  `로그인 점검은 새 스레드에서 해줘`, `Split this into a new thread: Check login`처럼
967
987
  분리 의도와 작업을 한 줄 평문으로 명시한다. 다른 디렉터리에서 할 작업이라면
968
988
  `/new cwd: /실제/작업/경로`를 첫 줄에, 작업을 다음 줄에 적는다.
989
+ 공백이 있는 경로는 그대로 쓰거나 `/new cwd: "/projects/My App"`처럼 짝이 맞는
990
+ 따옴표로 감쌀 수 있다. 셸 변수나 `~`는 확장하지 않는다.
969
991
  `이건 따로 빼줘`처럼 작업을 특정하지 않으면 같은 스레드에서 `/new`로 작업을 명시해 달라고
970
992
  안내하고 새 스레드를 만들지 않는다. 수정 메시지·인용·첨부는 새 스레드 지시가 아니다.
971
993
  이 평문 분리 지시는 Discord DM이나 다른 플랫폼에는 적용되지 않는다. Gateway는 LLM 분류나 lane 실행을 하지 않는다.
@@ -1008,7 +1030,7 @@ paused native lane goal도 재개한다. 자동 report·재연결·새 queued
1008
1030
  기록과 고정 안내만 남기고 새 메시지로 제어하도록 요청한다. Slack의 `!` 제어도 같은 정책이다.
1009
1031
  일반 작업 메시지 수정은 새 입력 revision이며 이미 실행된 외부 효과를 취소하지 않는다.
1010
1032
 
1011
- ### 모델 선택과 헤드의 effort
1033
+ ### 모델 선택, 헤드 effort, Fast 모드
1012
1034
 
1013
1035
  Discord에서는 레인 스레드에서 **`/model`만** 실행하면 된다. 첫 번째 드롭다운에서
1014
1036
  **HEAD** 또는 **현재 레인**을 고른다. 두 번째 드롭다운에서 공급자를 고르면 같은 자리에
@@ -1027,10 +1049,17 @@ Discord는 등록된 슬래시 명령을 함께 지원한다. Slack은 일반 `!
1027
1049
  | `/model --lane <provider/id>` | 현재 대화에 연결된 유휴 레인의 모델만 직접 변경. HEAD 모델 호출이나 실패한 요청 재실행 없음 |
1028
1050
  | `/effort` | 현재 effort 표시 및 현재 모델이 지원하는 강도 선택 메뉴 열기 |
1029
1051
  | `/effort <level>` | 조회에 표시된 값으로 헤드 effort 변경 |
1052
+ | `/fast` | 공유 HEAD의 현재 모드 표시 및 선택창 열기. `off`, `on`(Fast), `ultra`(Ultrafast) 중 고른 뒤 **Confirm**을 누른다. 조회는 작업 중에도 가능하며, 변경은 유휴 HEAD와 지원 모델에서만 가능 |
1030
1053
  | `/model preset` 또는 `/model preset list` | 기존 native 프리셋의 이름·유효성·가용 기본 모델 조회 |
1031
1054
  | `/model preset <name>` | 해당 native 프리셋의 전체 역할·기본 effort를 유휴 헤드 세션에 적용 |
1032
1055
  | `/model preset <name> --global` | 현재 헤드에 적용·확인한 동일 snapshot을 native 전역 기본 역할·effort에도 저장 |
1033
1056
 
1057
+ Discord·Telegram에서는 인자 없이 `/fast`, Slack에서는 `!fast` 또는 `/superagent-fast`를 사용한다
1058
+ (스레드에서는 `!fast`). 모드를 고르는 것만으로는 변경되지 않는다. **Back**은 선택창으로 돌아가고
1059
+ **Cancel**은 변경 없이 닫는다. Gateway와 HEAD를 업데이트한 뒤 등록 메뉴는 별도로 갱신한다.
1060
+ 명령 자체가 모델을 호출하거나 레인·전역 기본값을
1061
+ 바꾸지 않는다. 이후 Fast나 Ultrafast로 처리되는 요청의 비용은 더 높을 수 있다.
1062
+
1034
1063
  레인 모델의 쿼터 소진이 확인되면 코드가 원래 대화에 한 번 알린다. 해당 레인의 후속 요청은
1035
1064
  운영자가 모델을 선택할 때까지 기다린다. 실행 여부가 불확실한 요청은 원래 효과를 확인한 뒤
1036
1065
  알림의 `/resolve --lane <input-id>`로 닫아야 한다. 일시적 429 등 그 밖의 실행 오류는
@@ -1268,6 +1297,24 @@ Gateway는 헤드가 연속 **30분 이상 유휴**이고 native 컨텍스트
1268
1297
  교체하지 않는다. 레인 `idleMs`와는 별개다. `status`의 `head.rotation`에서 이전·새 세션 ID와
1269
1298
  교체 단계를 확인할 수 있다. `/restart`는 이 자동 교체와 달리 같은 헤드 세션을 복원한다.
1270
1299
 
1300
+ `head.hibernation.stage`가 `sleeping`이면 `head.pid: null`, `head.ready: false`가 정상이다.
1301
+ Gateway는 메신저 연결을 유지한다. 다음 입력을 저장한 뒤 **같은 세션**을 깨우므로 첫 응답에는
1302
+ Host 기동 시간이 더해진다. Discord 세션을 잃고 새로 연결하거나 Slack이 재연결되면,
1303
+ 새 메시지가 없어도 누락된 이력을 확인하기 위해 깨어난다. `omp-sa status` 조회만으로는 깨지 않는다. 메모리보다 첫 응답
1304
+ 속도가 중요하면 `headIdleMs: 0`으로 설정한다. 상주 레인, 예약 작업, 미정산 작업이 있으면
1305
+ 설정한 시간이 지나도 HEAD를 내리지 않는다.
1306
+ 저널이 심볼릭 링크이거나, Host가 안전하게 휴면할 수 있다고 확인하지 못하거나, 순정 OMP가
1307
+ 현재 모델 선택을 복원할 수 없으면 HEAD는 상주한다. 휴면 때문에 꺼 둔 유료 서비스 등급이
1308
+ 다시 켜지거나, `--max-time` 제한이 처음부터 시작되거나, 완료된 `--plan-yolo`가 재실행되지는 않는다.
1309
+ 잠든 HEAD를 복구할 때는 원래의 OMP 프로필과 세션 저장 위치를 사용한다. 에이전트 디렉터리가
1310
+ 같아도 `XDG_DATA_HOME` 변경으로 실제 세션 경로가 달라졌다면 이어받지 않는다.
1311
+ `launching`은 네이티브 프로세스가 이미 떠 있어도 컨트롤러의 준비를 확인하지 못한 상태일 수 있다.
1312
+ 기동 도중 설정을 바꿨다면 파일을 원래 바이트 그대로 복원한다. 같은 HEAD가 이미 저장된 입력을 처리하므로 다시 보낼 필요가 없다.
1313
+ HEAD가 Gateway에서 시작 시 이력 조회 순서를 보장할 수 없다고 보고하면, 작업을 재개하기
1314
+ 전에 Gateway를 정상 정지하고 같은 설치본에서 Gateway와 HEAD를 함께 다시 시작한다.
1315
+ 휴면 중 메신저 권한 설정을 바꾸려면 Gateway를 정상 정지하고 설정을 수정한 뒤 명시적으로
1316
+ 다시 시작한다. 메시지 수신만으로 바뀐 권한을 적용해 자동 기동하지 않는다.
1317
+
1271
1318
  인수 없는 `/usage`는 모델을 호출하지 않고, 설치된 OMP가 보고한 수치만 원래 대화에
1272
1319
  보낸다. 제공자별 남은 한도와 초기화 시각은 Superagent 호스트의 로컬 시간대를 자동으로 따른다.
1273
1320
  기본 제공자와 확장에서 등록한 제공자 모두 OMP가 조회한 결과를 표시한다. 운영자가 실행 명령에
@@ -1406,8 +1453,9 @@ ID/path 기반 기록 접근도 같은 원본을 사용한다. 별도 history CL
1406
1453
  기록만 확인하려면 native 기록 도구나 원본 경로의 `read`를 사용한다. `/resume`으로 의도적인
1407
1454
  일반 작업 재개도 가능하며 읽기 전용 보장 경로가 아니다. 원본이 다른 writer에 열려 있으면
1408
1455
  native 정책에 따라 fork하며 writer 해제 뒤 재개·후속 세션 선택도 native 정책을 따른다. 이는 기존
1409
- 관리 Host의 동일 프로세스 attach나 실행 소유권 인계가 아니다. 일반 재개는 manager/board
1410
- 확장을 자동 로드하거나 관리·게시판 권한을 얻지 않는다. 기록 내용은 새로운 권한·지시가 아니다.
1456
+ 관리 Host의 동일 프로세스 attach나 실행 소유권 인계가 아니다. 일반 재개는 관리형 역할
1457
+ 확장을 자동으로 로드하지 않으며 관리 권한을 부여하지 않는다. 기록은 새로운 권한이나
1458
+ 지시가 아니다.
1411
1459
 
1412
1460
  상담용 `task`의 `agent: "seance"`·`sourceSession`은 **실제 호출자가 광고할 때만** 사용한다
1413
1461
  (18.20.2의 기능). 공식 OMP 18.20.3은
@@ -1445,11 +1493,17 @@ head의 native 승인 카드 복구를 먼저 마친 뒤 입력·콜백 처리
1445
1493
  복구 전에 들어온 답변을 오래된 것으로 소비하거나 ACK하지 않는다. Slack의 서로 다른
1446
1494
  동시 선택·모달 제출은 카드별로 순서대로 처리하고 실제 재전달만 중복 제거한다.
1447
1495
 
1448
- 레인이 `decision_ask`로 올린 질문은 먼저 헤드가 검토한다. 위임 범위 안의 일상적 선택이면
1449
- 헤드가 대신 고른 원래 선택지를 레인으로 돌려보낸다. 선택 이유는 내부 이력에 남기고 별도
1450
- 메신저 알림은 보내지 않는다. 중요한 범위·비용·권한·외부 약속이 걸리거나 사용자 판단이
1451
- 필요하면 이관 이유를 원래 질문 카드에 함께 표시한다. 실제 실행 승인과 일반 native dialog는
1452
- 헤드가 대신 답하지 않는다. 아래의 `ask` 카드는 `decision_ask`가 쓰는 구조화된
1496
+ 헤드가 위임한 작업의 질문과 레인 root가 `decision_ask({to:"head", questions:[…]})`로
1497
+ 명시적으로 보낸 질문은 헤드가 먼저 검토한다. 다른 연결 주제 질문은 운영자에게 직접 간다.
1498
+ 정정 지시를 받은 작업에서 명시적으로 헤드에게 보낸 질문은 거부하고 운영자에게 표시하지
1499
+ 않은 채 내부에서 취소한다.
1500
+ 위임 범위 안의 일상적 선택이면 헤드는 `lane_review_decision`으로 원래 선택지 중 하나를
1501
+ 골라 레인에 돌려보낸다. 이유는 내부 이력에 남기고 별도 메신저 알림은 보내지 않는다.
1502
+ 운영자의 판단이 필요하면 대기 중인 같은 질문을 넘기고 원래 카드에 이관 이유를 표시한다.
1503
+ 정정 지시가 아닌 기존 검토가 남은 상태에서 헤드가 중지되면 컨트롤러가 대기 중인 같은
1504
+ 질문을 원래 운영자에게 넘길 수 있다.
1505
+ 이 경로는 범위 변경이나 native 실행 승인을 허가하지 않는다. 일반 native dialog에도 헤드가
1506
+ 대신 답하지 않는다. 아래의 `ask` 카드는 `decision_ask`가 쓰는 구조화된
1453
1507
  `askDialog`다. OMP 19.1 내장 `ask`의 HTML `form`은 Host가 메신저로 보내지 않고
1454
1508
  즉시 취소한다. 선택한 기본값도 제출하지 않는다.
1455
1509
 
@@ -1573,8 +1627,8 @@ Git 원격 주소로 매칭합니다. 커밋하지 않은 변경과 무시된
1573
1627
  깨끗한 커밋을 기준으로 요청하세요. 실행 중인 레인이 해당 checkout을 예약하며
1574
1628
  자동 fetch·브랜치 전환·변경 폐기는 하지 않습니다. 후속 요청은 같은 워커의 같은 세션으로 갑니다.
1575
1629
  SSH가 끊겨도 Host 자체는 종료되지 않습니다. Host가 종료된 뒤 checkout이 달라져 있으면
1576
- 재기동은 보류됩니다. 답변과 승인 카드는 원래 대화로 돌아오지만 메신저 첨부파일 전달과
1577
- 헤드의 로컬 SQLite 보드 접근은 원격 레인에서 지원하지 않습니다. 헤드의 OMP 실행 명령에
1630
+ 재기동은 보류됩니다. 답변과 승인 카드는 원래 대화로 돌아오지만 메신저 첨부파일 전달은
1631
+ 원격 레인에서 지원하지 않습니다. 헤드의 OMP 실행 명령에
1578
1632
  도구·프로필·승인 등의 추가 플래그가 있으면 이를 빼고 원격 실행하지 않고 요청을 거부합니다.
1579
1633
  워커는 자동 로드 플러그인이 없는 전용 OMP 프로필을 사용하세요. `.omp/`, `.env`, Git 필터 등
1580
1634
  실행 설정이 있는 checkout, linked worktree, 서브모듈은 자동으로 수정하거나 로드하지 않고 거부합니다.
@@ -1613,7 +1667,7 @@ SSH가 끊겨도 Host 자체는 종료되지 않습니다. Host가 종료된 뒤
1613
1667
  Discord는 같은 허가된 물리 채널의 참조만 조회하고, Telegram 승인 카드 답장은 기존 절차를
1614
1668
  유지한다. 음성 여부·길이는 전달하지만 자동 전사 기능은 아니다. Discord 스티커 전용 등
1615
1669
  의미 있는 텍스트·지원 첨부가 없는 입력/수정은 새 작업으로 접수하지 않는다.
1616
- - 레인 저장소·게시판 저장소 채널 탐색은 시작 셸의 `GIT_DIR`, `GIT_WORK_TREE` 및 다른
1670
+ - 레인 저장소 탐색은 시작 셸의 `GIT_DIR`, `GIT_WORK_TREE` 및 다른
1617
1671
  `GIT_*` 환경을 제거한 Git 프로세스를 사용한다. 일반 도구 환경 전체의 격리와는 다르다.
1618
1672
  - 입력 리소스의 허용 범위는 플랫폼마다 다르다.
1619
1673
  - Discord: `cdn.discordapp.com`·`media.discordapp.net`의 HTTPS
@@ -1714,7 +1768,7 @@ native 시나리오는 기존 opt-in을 명시적으로 켜며 `OMP_TEST_COMMAND
1714
1768
  검증 명령이 아니다. CLI 자동 선택은 native/PTY·외부 패키지 opt-in을 대신 켜지 않는다.
1715
1769
 
1716
1770
  ```sh
1717
- OMP_SUPERAGENT_NATIVE_TEST=1 bun test test/native-host.test.ts test/native-runtime.test.ts test/native-model-selection.test.ts test/native-board.test.ts test/native-gateway.test.ts
1771
+ OMP_SUPERAGENT_NATIVE_TEST=1 bun test test/native-host.test.ts test/native-runtime.test.ts test/native-model-selection.test.ts test/native-gateway.test.ts
1718
1772
  OMP_SUPERAGENT_NATIVE_TEST=1 bun test test/native-autonomy.test.ts
1719
1773
  ```
1720
1774
 
@@ -23,8 +23,8 @@ the worker launches the stock Host and owns its Unix socket, processes and nativ
23
23
  journal. An SSH disconnect is client detach, not cancellation, an exit receipt,
24
24
  or authority to reassign work. Open and attachment are separate from sending
25
25
  the first input. A pending or ambiguous launch must be reconciled on that
26
- worker, never retried on another machine. Remote PIDs and session paths are not
27
- local filesystem or board identities. See [worker enrollment](../OPERATIONS.en.md#add-a-remote-worker).
26
+ worker, never retried on another machine. Remote PIDs and session paths do not
27
+ identify local processes or files. See [worker enrollment](../OPERATIONS.en.md#add-a-remote-worker).
28
28
 
29
29
  When several workers qualify, placement accounts for both reported free slots
30
30
  and head assignments waiting to start. Concurrent admissions reserve their
@@ -69,12 +69,19 @@ handoffs and their internal reports use English. No lane gains messenger
69
69
  credentials. Distinguish dispatch acceptance, actual execution, native
70
70
  settlement, verified acceptance criteria, and user delivery.
71
71
 
72
- The [`lane_report` tool](../../src/lane-extension.ts) records evidence in the
72
+ ### Direct lane coordination
73
+
74
+ The [`lane_report` tool](../../src/lane-extension.ts) records observations in the
73
75
  native journal. It hashes selected files in bounded chunks, verifying their identity
74
- and metadata before accepting the digest, or hashes successful tool results. Duplicate
76
+ and metadata before accepting the digest, or hashes successful work tool results.
77
+ Tracked decisions and other coordination receipts are not work evidence. Duplicate
75
78
  content and repeated waits do not refresh evidence timestamps; ordinary
76
79
  commentary is not verification. Resolve only the exact tool/approval/job or
77
- dependency wait. Lane observation reads request only the entries appended
80
+ dependency wait. Direct-topic observations are inspectable and do not notify HEAD.
81
+ Changed manager-handoff evidence or wait transitions are queued for HEAD as
82
+ nonterminal observations. Queueing does not guarantee a new model turn or a
83
+ messenger message.
84
+ Lane observation reads request only the entries appended
78
85
  after the source-bound journal cursor (`get_entries` with `since`). A missing
79
86
  cursor fails the observation rather than replaying another request's history.
80
87
  When only a starting position is needed, the managed owner waits for its queued
@@ -83,7 +90,24 @@ Already-running owners without that capability keep using their stock response.
83
90
  Ownership and outcome checks that need the full journal still read it. The
84
91
  runtime exposes observation timestamps and `ownerCurrent`, not a guarantee
85
92
  that a reported dependency is still live. Native children cannot use the
86
- manager, report as the lane, or access the board.
93
+ manager, report as the lane, or request tracked decisions.
94
+
95
+ A manager handoff returns its final result to HEAD for review. State a blocking
96
+ conflict in that result if no authorized work remains. If HEAD needs to choose
97
+ between in-scope options (for example, which lane owns a shared edit),
98
+ use [`decision_ask({to:"head", questions:[…]})`](messaging.md#approvals-and-owner-decisions)
99
+ even from a bound topic. It immediately queues one durable review of the same
100
+ pending native dialog. Omitting `to` keeps the default: a topic-owned question
101
+ goes directly to its authorized topic; a manager-handoff question goes to HEAD.
102
+ HEAD answers with an original option or escalates the same card on its original
103
+ route via `lane_review_decision`. Do not use a decision to change scope or
104
+ grant native approvals. If a standalone bound-topic owner message explicitly
105
+ supersedes the assignment, use the isolated scope-review procedure below.
106
+ An explicit HEAD-directed question on the resulting corrective assignment is
107
+ cancelled privately, not rerouted to the owner.
108
+ HEAD uses `lane_message` for a specific authorized follow-up; neither an
109
+ observation nor a decision supplies fresh dispatch authority. Do not poll or
110
+ schedule a model just to check for updates.
87
111
 
88
112
  ### Bound-topic assignment scope review
89
113
 
@@ -157,7 +181,7 @@ fenced; the report does not authorize a replay or a move to another lane.
157
181
 
158
182
  ## Execution budget and Host lifecycle
159
183
 
160
- [`maxHosts`, `maxSubagents`, and `idleMs`](../../src/config.ts) are explicit
184
+ [`maxHosts`, `maxSubagents`, and `idleMs`](../../src/config/config.ts) are explicit
161
185
  operator inputs. `maxHosts` includes the head; the per-Host native child
162
186
  concurrency budget is `floor(maxSubagents / maxHosts)`. This bounds configured
163
187
  execution concurrency, not machine memory, CPU or provider spend. Lanes wait
@@ -165,6 +189,11 @@ durably when slots are full. Prioritize authorized follow-ups; approval and
165
189
  stop controls remain reachable. A queued lane, a resident Host, an active turn
166
190
  and an accepted work result are different states.
167
191
 
192
+ The separate [`headIdleMs` policy](../../DESIGN.md#idle-head-hibernation) can
193
+ unload HEAD when there are no resident lanes or controller obligations. It
194
+ does not reassign the HEAD slot to a lane. The Gateway retains admission,
195
+ not model or lane authority; waking resumes the same journal.
196
+
168
197
  Each resident lane is an independent OMP process. Detaching the head's control
169
198
  connection or replacing the head does not end that process. Reconnect only to
170
199
  the matching owned socket, PID, native session ID/file and execution generation.
@@ -190,7 +219,18 @@ persists its launch fence immediately before the manifest is sent, so a refusal
190
219
  before then still releases the slot. Discovery and preparation have separate deadlines.
191
220
  A descendant holding output open cannot extend those deadlines. The owner invokes short-lived
192
221
  SDK helpers for operations that depend on stock semantics, including fitting a withdrawn
193
- queue and verifying journal persistence after exit. On the private v2 interrupt channel,
222
+ queue. The Gateway reads the [session header](../../native-journal/header.rs) itself.
223
+ After its child exits, the [Rust owner](../../host-owner/src/exit_receipt.rs) verifies
224
+ the journal and publishes the exit receipt without starting Bun or loading an SDK.
225
+ The [resident worker](../../src/omp/native-journal.ts) still reads a header in process.
226
+ Only the first physical line, with
227
+ surrounding whitespace trimmed, may be a title slot. Before the session header
228
+ only JSON whitespace is skipped, not a UTF-8 BOM. Identity lookup stops at the
229
+ header; it does not attest to the body. Exit verification checks the entire
230
+ journal and the owner's expected observations. A BOM before a JSON record is
231
+ invalid regardless of read boundaries; a U+FEFF inside a JSON string is data.
232
+ An incomplete or malformed journal is not proof of a settled exit.
233
+ On the private v2 interrupt channel,
194
234
  queue restoration uses the SDK's reassembled-frame byte limit: this is the value of
195
235
  [`maxResponseBytes` in OMP 19.0](https://github.com/can1357/oh-my-pi/blob/v19.0.0/packages/coding-agent/src/modes/rpc/rpc-frame.ts#L341-L347)
196
236
  and [`maxIntactFrameBytes` in 19.1](https://github.com/can1357/oh-my-pi/blob/v19.1.0/packages/coding-agent/src/modes/rpc/rpc-frame.ts#L341-L347).
@@ -218,7 +258,7 @@ The [Host extension](../../src/host-extension.ts) uses the exact registered
218
258
  where available, or the older public `hasPendingAsyncWork()` where appropriate;
219
259
  owned services, child work and unconfirmed completions still need separate
220
260
  checks. The configured CLI's advertised process interface selects the read-only
221
- [OMP 18 broker](../../src/host-broker-services.ts) or [OMP 19 daemon](../../src/host-services.ts)
261
+ [OMP 18 broker](../../src/omp/host-broker-services.ts) or [OMP 19 daemon](../../src/omp/host-services.ts)
222
262
  observation path. Do not start or take over their services, treat probe failure
223
263
  as an empty result, or invent native service generations for old broker records.
224
264
  A terminal service row is not confirmation that its native completion was
@@ -248,7 +288,7 @@ the validated successor. A failure to write at that point fails the restart;
248
288
  it does not restart the predecessor or activate adapters. Head and lane extension
249
289
  composition must be valid before either launch can persist a fallback.
250
290
 
251
- The [guarded native writer](../../src/native-settings.ts) rechecks the expected
291
+ The [guarded native writer](../../src/omp/native-settings.ts) rechecks the expected
252
292
  configuration under the native lock, preserves unrelated settings, and reads
253
293
  back the effective value. It does not overwrite stale values, higher-priority
254
294
  disables or unsets, or unverified legacy/unknown settings. If enabled memory
@@ -258,12 +298,12 @@ still specifically requires an active, searchable Mnemopi backend on the head.
258
298
 
259
299
  ### Native discovery and resume
260
300
 
261
- [Native discovery](../../src/native-sessions.ts) publishes symlinks to the
301
+ [Native discovery](../../src/omp/native-sessions.ts) publishes symlinks to the
262
302
  original journal and artifact directory in the active profile's native project
263
303
  bucket. It does not copy transcripts, transfer a writer lease or wake unloaded
264
304
  lanes. Use normal OMP discovery and `/resume`; native rules govern concurrent
265
- writers and forks. An ordinary resume gets no manager or board authority and
266
- is not attachment to the running managed Host.
305
+ writers and forks. An ordinary resume does not load managed role extensions or
306
+ attach to the running managed Host.
267
307
 
268
308
  ### Goal continuity
269
309
 
@@ -283,7 +323,7 @@ resumes an eligible head goal as described in the [restart contract](../../DESIG
283
323
 
284
324
  ## Models and presets
285
325
 
286
- [`lane_models`](../../src/lane-models.ts) derives the shortlist from native
326
+ [`lane_models`](../../src/lane/lane-models.ts) derives the shortlist from native
287
327
  availability and exact provider/model IDs. Model capabilities and prices are
288
328
  catalogue fields, not measured quality, total cost or permission to spend.
289
329
  The [model-selection skill](../../skills/head/references/model-selection.md)
@@ -293,7 +333,7 @@ unavailability or failure without inventing a receipt or switching providers.
293
333
  Judge usage is native. Runtime enforces exact selection, availability and reason,
294
334
  not a mandatory judge call.
295
335
 
296
- At startup, [preset initialization](../../src/native-presets.ts) inspects native
336
+ At startup, [preset initialization](../../src/omp/native-presets.ts) inspects native
297
337
  `high`, `middle`, `low` presets. If needed the existing head gets one tracked
298
338
  bootstrap turn; do not repeat an uncertain turn after reconnect or restart.
299
339
  Create only missing presets and verify native readback before ordinary work
@@ -363,6 +403,17 @@ default roles/thinking; ordinary head and lane changes leave global configuratio
363
403
  and other lanes alone. Native preset bootstrap/refresh and native auth updates
364
404
  have separate scopes.
365
405
 
406
+ `/fast` displays the current mode and opens a menu on shared HEAD, even while
407
+ busy. A change requires Confirm on the original sent card and the same HEAD
408
+ session, generation, model and selected mode shown as current when it opened.
409
+ HEAD must be idle to change the active model family's tier; the owner serializes it as
410
+ maintenance, and the extension uses native `AgentSession` fast/ultrafast
411
+ controls and flushes the native journal. These APIs were checked in the
412
+ [pinned OMP SDK](../../DESIGN.md#stock-omp-and-verification-scope). No lane, global default
413
+ or provider request is involved. Readback distinguishes the selected mode
414
+ from whether OMP can use a fast tier for the current model, not whether a
415
+ provider accepted it. Uncertain mutations are held, not replayed.
416
+
366
417
  Argumentless `/model` and `/effort` use the same read-only native catalogue and
367
418
  effort capabilities to construct menus. A selection is a new owner control on
368
419
  the original topic, not a model turn or native approval. The head validates
@@ -371,7 +422,7 @@ also requires the model for which the options were shown.
371
422
 
372
423
  ## Owner-facing reply voice
373
424
 
374
- [SOUL](../../src/soul.ts) is an instance-wide presentation preference, not a
425
+ [SOUL](../../src/omp/soul.ts) is an instance-wide presentation preference, not a
375
426
  role, workflow, or OMP profile. The default and the one saved override use
376
427
  bounded choices for presentational concept (plain, editorial, or mentoring),
377
428
  tone, register, detail, answer order, and emoji. The HEAD
@@ -425,7 +476,7 @@ may select a method inside an already authorized objective without claiming the
425
476
  operator selected it. Read the installed skill and preserve its approval and
426
477
  artifact ownership requirements.
427
478
 
428
- [Workflow dispatch](../../src/workflow.ts) binds each choice to the original
479
+ [Workflow dispatch](../../src/lane/workflow.ts) binds each choice to the original
429
480
  source and an explicit `workflow: {name, reason}` on every workflow-selecting
430
481
  `lane_start` or `lane_message`, even when forwarding a user selection. A brief
431
482
  or report is not the selection field. Preserve the original text and native
@@ -467,15 +518,15 @@ does not stand in for its missing canonical command.
467
518
 
468
519
  ## Managed omp-superkit integration
469
520
 
470
- [Preparation](../../scripts/prepare-ulw.ts) runs during `postinstall` or
521
+ [Preparation](../../scripts/prepare-super.ts) runs during `postinstall` or
471
522
  `bun run prepare:ulw`, even if OMP is not installed. The
472
- [declared remote](../../upstream/ulw.json) is the official `omp-superkit`
473
- repository. [Managed installation](../../src/managed-ulw.ts) and duplicate
523
+ [declared remote](../../upstream/super.json) is the official `omp-superkit`
524
+ repository. [Managed installation](../../src/omp/managed-super.ts) and duplicate
474
525
  detection recognize both `omp-superkit` and the legacy `omp-ulw` package ID.
475
526
 
476
527
  Stage the observed revision and its dependencies in a project-owned immutable
477
528
  package. Ignore arbitrary dependency lifecycle scripts; run defined
478
- materialization and an [offline native prompt-composition probe](../../src/managed-ulw-probe.ts)
529
+ materialization and an [offline native prompt-composition probe](../../src/managed-super-probe.ts)
479
530
  for ordinary and explicitly activated operation. For the canonical layout the probe
480
531
  checks that the hook uses the canonical directive and pointer paths and that native
481
532
  discovery resolves both canonical skills and legacy aliases. An older revision
@@ -505,7 +556,7 @@ discarding custom commands or enabling disabled extensions.
505
556
 
506
557
  ## Scheduled work and PR observation
507
558
 
508
- - [Cron jobs](../../src/cron-jobs.ts) run through the head's existing maintenance
559
+ - [Cron jobs](../../src/cron/cron-jobs.ts) run through the head's existing maintenance
509
560
  loop, not a Gateway scheduler or a second agent. `/cron` is a code-handled
510
561
  control scoped to the original owner's full route. `cron_create` requires
511
562
  an explicit request in the current admitted owner turn and the native tool
@@ -528,7 +579,7 @@ discarding custom commands or enabling disabled extensions.
528
579
  than forwarded to a model, and queued shell output is not sent. Verify any
529
580
  previously started legacy run on its original host before resolving it.
530
581
  See the [operator reference](../OPERATIONS.en.md#scheduled-jobs-cron) for syntax and controls.
531
- - [Repository PR intake](../../src/cron-pr-intake.ts) is a typed cron job, not
582
+ - [Repository PR intake](../../src/cron/cron-pr-intake.ts) is a typed cron job, not
532
583
  an executable prompt. Only original configured-owner Discord guild parent
533
584
  controls enroll a repository. Discovery pins the authenticated GitHub owner
534
585
  and repository, filters old/self-authored PRs, and records each offer before
@@ -539,18 +590,21 @@ discarding custom commands or enabling disabled extensions.
539
590
  lane; it is not owner input and cannot serve as a source for manager tools.
540
591
  No ordinary scheduled prompt, observed PR text or model answer grants authority.
541
592
  Older discovery-only registrations remain manual until the owner opts in.
542
- [Review control](../../src/pr-intake-review.ts) binds subsequent actions to
593
+ [Review control](../../src/pr/pr-intake-review.ts) binds subsequent actions to
543
594
  that lane, route, enrollment epoch, review input, delivered answer and SHA.
544
595
  Static review uses a trusted workspace without a contributor checkout. Unlike
545
596
  ordinary coding lanes, this restricted local Host must attest a tool-less
546
597
  session on a supported native provider before the controller submits patch
547
- data. It does not need manager, coordination, shell or editing tools. Fix
598
+ data. The stock launch explicitly selects an empty built-in tool list
599
+ (`--tools=`) and loads only the trusted lifecycle extension. Activation then
600
+ checks the native tool sets before admission. No manager, coordination,
601
+ shell or editing tools are available. Fix
548
602
  proposals and merge verdicts are data, not standing write authority. Each
549
603
  effect checks the enrolled repository, original route and policy revision;
550
604
  higher stages require an explicit policy or a fresh SHA-bound owner command.
551
605
  An uncertain write permits read-only reconciliation, not resubmission. See [operator commands
552
606
  and supported GitHub protections](../OPERATIONS.en.md#reviewing-new-external-prs-cron-pr-add).
553
- - [PR watch](../../src/pr-watch.ts) reads only explicitly registered GitHub PRs
607
+ - [PR watch](../../src/pr/pr-watch.ts) reads only explicitly registered GitHub PRs
554
608
  through existing `gh` authentication and GETs. Establish a quiet baseline,
555
609
  then record changed observations and their cursor together. Work only while
556
610
  the head runtime is available; a watch cannot recover every remote event
@@ -567,29 +621,3 @@ discarding custom commands or enabling disabled extensions.
567
621
  An unloaded Host, an empty socket, and an `agent_end` event are not proof
568
622
  that the work stalled or finished. Clear observation requests may route to
569
623
  HEAD from a bound thread. Routing text alone changes no subscription.
570
-
571
- ## Shared information board
572
-
573
- The [board extension](../../src/board-extension.ts) checks the canonical
574
- instance and current native session ID, file, PID and applicable lane generation
575
- against managed registration for every access or notice. Role environment
576
- alone is insufficient. Standalone resumes, other instances, stale/unloaded
577
- Hosts and native children are excluded. A connected paused lane remains a
578
- participant. The runtime assigns the actor and deduplicates posts by native
579
- session and tool-call ID.
580
-
581
- `board_post`, `board_read`, and `board_subscribe` operate on `general` and
582
- `repo:<canonical absolute path>` channels. Subscribers are per native session;
583
- all registered participants can read all channels in the instance, so channels
584
- are not ACLs. Mark only the exact IDs returned by `board_read`; a reply does
585
- not mark its parent read. Keep notice cursors separate from read receipts.
586
-
587
- Registered head and lane roots receive header-only notices at native context
588
- boundaries. Lane posts are eligible for head notices; lanes receive notices
589
- for subscriptions and explicit mentions. An idle head can display an event-driven
590
- native notice with `triggerTurn: false`; idle lanes wait until their next
591
- authorized turn. A notice is not a model wake,
592
- read confirmation, actor impersonation, command, approval or evidence of
593
- completion. No self-wake, read-ACK loop or unloaded lane activation. Use
594
- durable lane reports for actual outcomes; the board cannot supply an external
595
- messenger route.