omp-superagent 0.1.5 → 0.1.6

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 (57) hide show
  1. package/DESIGN.md +62 -8
  2. package/README.ko.md +22 -14
  3. package/README.md +36 -22
  4. package/config.example.json +1 -0
  5. package/docs/OPERATIONS.md +180 -42
  6. package/docs/design/execution.md +20 -7
  7. package/docs/design/messaging.md +131 -11
  8. package/docs/releases/0.1.6.md +21 -0
  9. package/gateway/bin/omp-gateway-darwin-arm64 +0 -0
  10. package/gateway/bin/omp-gateway-darwin-x64 +0 -0
  11. package/gateway/bin/omp-gateway-linux-arm64 +0 -0
  12. package/gateway/bin/omp-gateway-linux-x64 +0 -0
  13. package/host-owner/bin/omp-host-owner-darwin-arm64 +0 -0
  14. package/host-owner/bin/omp-host-owner-darwin-x64 +0 -0
  15. package/host-owner/bin/omp-host-owner-linux-arm64 +0 -0
  16. package/host-owner/bin/omp-host-owner-linux-x64 +0 -0
  17. package/package.json +1 -1
  18. package/skills/head/SKILL.md +7 -2
  19. package/skills/head/references/model-selection.md +4 -4
  20. package/skills/head/references/routing.md +9 -4
  21. package/skills/head/references/supervision.md +4 -3
  22. package/skills/lane/SKILL.md +19 -13
  23. package/skills/lane/references/workflow.md +19 -11
  24. package/src/board.ts +7 -2
  25. package/src/cli.ts +22 -6
  26. package/src/config.ts +26 -3
  27. package/src/contracts.ts +20 -2
  28. package/src/decision-tool.ts +1 -1
  29. package/src/extension.ts +40 -2
  30. package/src/gateway-client.ts +22 -1
  31. package/src/gateway-config.ts +4 -4
  32. package/src/gateway-restart-env.ts +7 -2
  33. package/src/gateway-wire.ts +8 -0
  34. package/src/group-access.ts +222 -0
  35. package/src/group-policy.ts +117 -0
  36. package/src/group-runner-extension.ts +153 -0
  37. package/src/group-runner.ts +284 -0
  38. package/src/head-rotation.ts +88 -0
  39. package/src/host-extension.ts +52 -3
  40. package/src/host-protocol.ts +1 -0
  41. package/src/host-sdk-helper.ts +7 -0
  42. package/src/host-superkit.ts +26 -0
  43. package/src/host.ts +5 -1
  44. package/src/lane-extension.ts +6 -3
  45. package/src/managed-memory-helper.ts +22 -0
  46. package/src/managed-memory.ts +100 -0
  47. package/src/managed-ulw.ts +16 -20
  48. package/src/messenger-command-catalog.json +3 -2
  49. package/src/native-launch-profile.ts +16 -0
  50. package/src/native-settings.ts +9 -3
  51. package/src/result-attachment.ts +211 -0
  52. package/src/runtime.ts +1109 -157
  53. package/src/setup-memory.ts +15 -33
  54. package/src/setup.ts +24 -22
  55. package/src/store.ts +214 -13
  56. package/src/topic-history.ts +430 -0
  57. package/src/topic-request.ts +88 -0
package/DESIGN.md CHANGED
@@ -3,9 +3,14 @@
3
3
  Superagent connects one OMP head to Discord, Telegram, and Slack. The head can
4
4
  work directly or delegate to independent native OMP sessions called **lanes**.
5
5
  The Gateway keeps the messenger connection and durable intake alive without
6
- running a model. All configured messenger owners are the **same trusted operator**:
7
- they share head context, not platform identities or conversation bindings. This is
8
- not a multitenant service or an OS sandbox.
6
+ running a model. All configured messenger owners are the **same trusted operator**.
7
+ Ordinary owner work stays in the native session bound to its topic. In a
8
+ [bound Discord work thread](docs/design/messaging.md#topic-routing-and-controls),
9
+ historical continuation and its replies stay there unless the operator explicitly
10
+ asks to split. Separately,
11
+ [restricted group rooms](docs/design/messaging.md#restricted-group-rooms) opt
12
+ specific members into explicit group actions without access to the owner head
13
+ or lanes. This is not a multitenant service or an OS sandbox.
9
14
 
10
15
  - [Messaging and authority](docs/design/messaging.md): ingress, routing, controls,
11
16
  approvals, recovery, delivery, and Discord voice.
@@ -28,7 +33,7 @@ not a multitenant service or an OS sandbox.
28
33
  | --- | --- | --- |
29
34
  | CLI and setup | Configuration, credentials, doctor, start/status/stop and one-shot macOS registration. | [CLI](src/cli.ts), [config](src/config.ts), [setup](src/setup.ts), [credentials](src/credentials.ts), [autostart](src/autostart.ts) |
30
35
  | Gateway | One Rust process authenticates the configured adapters, admits intake durably, proxies scoped messenger effects and supervises exactly one head. It never connects to lane RPC or decides work. | [Gateway](gateway/src/main.rs), [server](gateway/src/server.rs), [ingress ledger](gateway/src/store.rs), [client](src/gateway-client.ts), [adapter hub](gateway/src/adapter.rs) |
31
- | Head | Interprets every ordinary message and follow-up, runs direct work or explicitly dispatches lanes, owns approvals and reporting, and decides what is sent back. | [Head extension](src/extension.ts), [runtime](src/runtime.ts), [coordination store](src/store.ts) |
36
+ | Head | Its controller owns intake, placement, approvals and delivery. The shared model handles explicit `/head` work and manager coordination, not ordinary topic prompts or their answers. | [Head extension](src/extension.ts), [runtime](src/runtime.ts), [coordination store](src/store.ts) |
32
37
  | Lane | Runs its assigned work in its own native session with its own cwd, model and context; reports to the head, not directly to a messenger. | [Lane extension](src/lane-extension.ts), [lane reporting](src/lane-report.ts), [role instructions](skills/lane/SKILL.md) |
33
38
  | Host | One installed OMP process owns each managed root session. A detached Rust process owns its stdin/stdout and private reconnectable socket; it does not run inference, tools, or supervision policy. | [Host client](src/host.ts), [stdio owner](host-owner/src/main.rs), [SDK helper](src/host-sdk-helper.ts), [native lifecycle extension](src/host-extension.ts) |
34
39
  | Board | An informational log in `coordination.sqlite` shared by registered head/lane sessions in the same instance. Not a command, approval, or delivery bus. | [Board](src/board.ts), [board extension](src/board-extension.ts) |
@@ -69,7 +74,9 @@ part of the native build.
69
74
  tracks the initial approval barrier. After that barrier, the Gateway can keep
70
75
  admitting authorized input while the head is absent. `head.connected` is not
71
76
  `head.ready`: readiness also requires a live head, a ready controller, and
72
- completed preset initialization. Check `gateway.unresolvedEvents` for held ingress.
77
+ completed preset initialization. A managed Host must also verify the selected
78
+ superkit modules in its actual root OMP session before exposing its socket.
79
+ Check `gateway.unresolvedEvents` for held ingress.
73
80
  4. Automatic recovery reconnects only after verifying native PID, session ID/file,
74
81
  and socket ownership. Start a replacement only after confirming the old process
75
82
  and its stdio owner are gone; remove a stale socket only if its inode is the owned
@@ -83,6 +90,33 @@ part of the native build.
83
90
  no `KeepAlive`, immediate activation, or second supervisor. `uninstall` removes
84
91
  only future startup. There is no Linux service installer or Windows support.
85
92
 
93
+ ### Idle head rotation
94
+
95
+ The Gateway may replace only the designated head after the runtime attests at
96
+ least 30 continuous minutes of native head idle and known native context usage
97
+ of at least 50%. Pending Gateway ingress, head-dependent work, native approvals,
98
+ goals, children, unresolved deliveries and scheduled or placement activity
99
+ can make a head ineligible. The stock Host and runtime both recheck their
100
+ guards immediately before graceful shutdown. Rotation does not abort work,
101
+ cancel approvals, or force-kill a process.
102
+
103
+ An atomic intake fence leaves new events durably queued in their original
104
+ order. The Gateway waits for the exact old native exit and persistence receipt
105
+ and the stdio owner's exit before reserving a new head generation. The new
106
+ native journal has a different session ID and path; it has no copied transcript
107
+ or replayed prompt. The replacement preserves the selected model and configured
108
+ effort (including automatic effort) and verifies native readback. Resident
109
+ lanes retain their Host, topic binding and generation; the replacement
110
+ reconciles already-admitted independent work by its original lane identity
111
+ and native journal, not by submitting it again.
112
+
113
+ Inspect `head.rotation.stage` in `omp-sa status` for the latest rotation.
114
+ An ambiguous shutdown never authorizes another shutdown request or early
115
+ replacement; a verified exit can continue the existing transition. Explicit
116
+ operator stop supersedes an in-flight rotation. `/restart` remains a separate
117
+ control and restores the exact current native session, including one created
118
+ by rotation.
119
+
86
120
  ### Explicit restart
87
121
 
88
122
  Messenger `/restart` (Slack `!restart` or `/superagent-restart`) replaces **both**
@@ -91,14 +125,24 @@ lifecycle control, not a model turn. It can be admitted while the head is busy:
91
125
 
92
126
  - Durably fence new dispatch and confirm a `sent` acknowledgement on the original
93
127
  route before handing off the restart. Checkpoint with native APIs: cancel the
94
- head's pending cards by their original IDs, abort/clear queued native work and
95
- pause the active head goal as appropriate. Require actual quiescence before
96
- normal shutdown; do not force-kill when effects or ownership remain unclear.
128
+ head's pending cards by their original IDs, abort/clear queued native work,
129
+ pause the active head goal and cancel and reap the root's native background
130
+ jobs. Cancellation alone is not an exit receipt. If the final checkpoint is
131
+ still busy, a **new** owner `/restart` can continue from the saved checkpoint
132
+ on that same head; a duplicate command or uncertain handoff cannot. Require
133
+ actual quiescence before shutdown; never signal a PID to bypass ownership.
97
134
  - Bind one durable lifecycle request to the original owner input, acknowledgement
98
135
  and current process identity. Duplicate delivery does not start another replacement.
136
+ Compatible edits to runtime limits or the default model can take effect on
137
+ restart. Pin the accepted configuration for the handoff; changes to instance,
138
+ native profile or messenger authority are not a restart of the same service.
99
139
  The Gateway's one-shot successor waits for the old lifetime lock to release.
100
140
  A later operator stop invalidates the restart and prevents successor revival.
101
141
  - Restore the exact head native session and saved model/effort and reconcile approvals.
142
+ The replacement uses the same native profile and workspace to reopen the
143
+ existing Mnemopi memory, not a copy of memory in the Gateway database.
144
+ If the checkpoint recorded `auto`, verify the restored configured selector
145
+ rather than requiring OMP to choose the same effective level again.
102
146
  For the same model identified as non-reasoning by both Hosts, stock OMP can
103
147
  represent inactive effort as either absent or `off`. Any other effort mismatch
104
148
  keeps intake held; a configured default is not evidence of active effort.
@@ -158,3 +202,13 @@ for design ideas, not a promise of compatibility or permission to copy code. The
158
202
  were compared at branch snapshots on 2026-11-13 (exact revisions not recorded).
159
203
  Their embedded agent paths do not establish the separate native Host failure
160
204
  boundary described here.
205
+
206
+ Restricted group design was compared against
207
+ [OpenClaw `6978b40e`](https://github.com/openclaw/openclaw/tree/6978b40e9d3812083064c97e24de00454d6bf868/docs/gateway/security)
208
+ and [Hermes `242315ce`](https://github.com/NousResearch/hermes-agent/blob/242315ce571cde721e717a544cf8ae6c343315cf/gateway/authz_mixin.py)
209
+ ([published docs source `aeb5a071`](https://github.com/NousResearch/hermes-agent/tree/aeb5a071069dbd85d85f2c8d44337f16df29d475/website/docs/user-guide)).
210
+ We use separate channel, sender and capability gates without dynamic role
211
+ names, wildcard grants, mention bypasses, or a command-only admin check.
212
+ [Gajae Way `31fa12d`](https://github.com/Yeachan-Heo/gajae-way/tree/31fa12d829ee68a34b6420c451462bf45168bb54)
213
+ is an AGPL-3.0 behavioral reference for result attachments only; no upstream
214
+ code is reused.
package/README.ko.md CHANGED
@@ -10,7 +10,7 @@
10
10
 
11
11
  <p align="center">
12
12
  Discord·Telegram·Slack을 <a href="https://github.com/can1357/oh-my-pi">oh-my-pi</a>의 세션·인증·도구·native <code>task</code>에 연결합니다.
13
- 헤드는 직접 작업하거나 독립 레인에 위임하고 결과를 종합합니다. 기존 레인에 연결된 대화에서도 모든 후속 입력은 먼저 헤드로 갑니다.
13
+ 일반 작업과 후속 답변은 주제별 독립 OMP 세션에서 처리합니다. 주제 간 조정은 <code>/head</code>로 전역 헤드에 요청합니다.
14
14
  </p>
15
15
 
16
16
  <p align="center">
@@ -52,7 +52,7 @@
52
52
  </td>
53
53
  <td width="50%" valign="top">
54
54
  <h4>레인별 native 모델·프리셋</h4>
55
- 헤드가 native judge의 자문을 받아 선택하며, 다른 레인이나 전역 설정을 바꾸지 않습니다.
55
+ 새 주제는 현재 헤드 모델로 시작한 뒤 자기 모델을 유지합니다. 명시적 위임에는 별도 모델이나 프리셋을 선택할 수 있습니다.
56
56
  </td>
57
57
  </tr>
58
58
  <tr>
@@ -82,7 +82,7 @@
82
82
  </picture>
83
83
 
84
84
  Gateway는 메신저 연결·수신 장부·헤드 수명을 관리하는 데몬입니다. 작업을 판단하고 레인을 지시하는 주체는 헤드입니다.
85
- 레인은 결과를 헤드에 보고하고, 헤드는 원래 대화에 맞춰 답합니다.
85
+ 헤드 런타임이 승인과 전송을 관리하되 일반 작업의 진행·답변은 전역 모델에 보내지 않습니다.
86
86
 
87
87
  [구조도 Mermaid 원본](assets/architecture.mmd)
88
88
 
@@ -103,7 +103,7 @@ OS 샌드박스가 아닙니다. 자세한 내용은 [설계(영문)](DESIGN.md)
103
103
  ## 배포 형태
104
104
 
105
105
  [npm 패키지](https://www.npmjs.com/package/omp-superagent)를 Bun 또는 npm으로 설치하거나
106
- [GitHub Release](https://github.com/dbc-hbin/omp-superagent/releases/tag/v0.1.5)의 소스·npm tarball을 받으세요.
106
+ [GitHub Release](https://github.com/dbc-hbin/omp-superagent/releases/tag/v0.1.6)의 소스·npm tarball을 받으세요.
107
107
  실행에는 Bun이 필요하며 독립 실행 바이너리는 아닙니다. 설치 시 관리형 의존성을 준비합니다.
108
108
  Host를 실행하려면 별도로 설치한 OMP가 필요하며, 이 프로젝트가 패치하거나 빌드하지 않습니다.
109
109
 
@@ -140,7 +140,7 @@ OMP 19 데몬은 이전 브로커의 서비스를 인수하지 않습니다.
140
140
  OMP 자체를 설치하려면 [공식 설치 안내](https://github.com/can1357/oh-my-pi#install)를 참고하세요.
141
141
 
142
142
  ```sh
143
- bun add --global --trust omp-superagent@0.1.5
143
+ bun add --global --trust omp-superagent@0.1.6
144
144
  omp-sa --help
145
145
  ```
146
146
 
@@ -153,7 +153,7 @@ omp-sa --help
153
153
  Bun이 `PATH`에 있다면 npm으로도 설치할 수 있습니다.
154
154
 
155
155
  ```sh
156
- npm install --global omp-superagent@0.1.5
156
+ npm install --global omp-superagent@0.1.6
157
157
  ```
158
158
 
159
159
  postinstall이 필수 관리형 ULW 통합을 준비하므로 설치 스크립트를 생략하지 마세요.
@@ -201,8 +201,13 @@ omp-sa setup --config ./config.local.json
201
201
  </td></tr></table>
202
202
 
203
203
  봇·모델 세션은 시작하지 않습니다. 최종 저장 확인에는 Discord/Telegram 봇 프로필 사진을
204
- 마스코트로 바꾸는 작업도 포함됩니다. 권장하는 Mnemopi 기억 backend 활성화는 별도의 명시적
205
- `yes`와 최종 저장 확인이 있어야 하며 OMP 전역 기억 backend를 변경합니다.
204
+ 마스코트로 바꾸는 작업도 포함됩니다.
205
+
206
+ 기존 구성에서도 관리형 헤드와 레인은 native Mnemopi가 실효 설정으로 적용되어 있어야
207
+ 시작할 수 있습니다. OMP 전역 메모리 backend를 변경하려면 별도의 명시적 `yes`와 최종
208
+ 저장 확인이 필요합니다. 프로젝트·실행 오버레이는 보존하며, 여전히 Mnemopi를 사용할 수
209
+ 없으면 셋업이 완료되지 않았다고 알립니다.
210
+
206
211
  누락된 native judge 역할은 설정을 권장하지만 모델을 자동 선택하거나 호출하지 않습니다.
207
212
 
208
213
  메모리 동작, 다른 설정 경로, 수동 설정과 저장 효과는
@@ -245,16 +250,19 @@ Linux 서비스 설치는 제공하지 않습니다.
245
250
 
246
251
  ## 사용 방법
247
252
 
248
- - 일반 메시지로 요청하세요. 질문은 바로 답하고, 작업 지시는 별도 주제에서 짧은 착수 보고와
249
- 의미 있는 진척·결과를 전달합니다.
250
- - 같은 주제의 후속 입력은 헤드를 통해 실행 중인 작업을 조정합니다. 저장소·주제별 레인 맥락은
253
+ - 새 주제에서도 작업 내용을 바로 적으세요. 예를 들어 `client-ui에서 로그인 오류 봐줘`라고 하면 같은 대화에서 사용한 `client-ui` 작업 디렉터리를 찾습니다. 이전 작업 메시지에 답장해 그 경로를 다시 쓸 수도 있습니다.
254
+ - 다른 운영자 채널에서도 `지난주 로그인 버그 보던 데서 계속해줘`라고 할 수 있습니다. OMP의 Mnemopi `recall`로 단서를 찾고, 날짜와 작업 내용을 원래 세션에서 확인합니다. 하나로 좁혀지면 그 저장소에서 이어가고, 여럿이면 번호로 고릅니다. 제한 그룹방은 검색 대상이 아닙니다.
255
+ - 저장소를 특정할 수 없을 때만 묻습니다. 저장소 이름이나 절대 경로로 답하세요. 경로를 직접 지정하려면 첫 줄에 `cwd: /작업/절대경로`를 적으면 됩니다.
256
+ - 같은 주제의 후속 요청에는 경로가 필요 없습니다. 전역 조정은 `/head 요청`을 사용합니다. 저장소·주제별 레인 맥락은
251
257
  독립적입니다. 음성 첨부 메타데이터 보존이 자동 전사를 뜻하지는 않습니다.
252
258
  - `/help`와 `/status`로 명령·상태를 확인합니다. `/model`·`/effort`는 유휴 헤드 세션만
253
- 바꾸며 기존 레인·전역 기본값은 유지합니다. 일반 메시지로 헤드 모델 변경을 요청하면
259
+ 바꾸며 기존 레인·전역 기본값은 유지합니다. `/head`로 헤드 모델 변경을 요청하면
254
260
  해당 턴이 끝난 뒤 적용합니다. 전역 프리셋 저장은 명시적 `--global`이 필요합니다.
255
261
  Slack 일반 메시지 명령은 `!`를 씁니다.
256
262
  - `/usage`는 순정 OMP가 보고한 제공자별 계정 한도와 리셋 시각을 모델 호출 없이 보여줍니다.
257
- - “2시간마다 CI 상태를 요약해서 여기로 보내줘”라고 요청하거나
263
+ - 결과 파일을 받으려면 운영자 요청 첫 줄에 `attach: 보고서/결과.pdf`처럼 작업 디렉터리 상대 경로를 적으세요.
264
+ - 단체방·서버에서는 [제한 그룹 모드](docs/OPERATIONS.md#단체방서버-권한-분리)로 허용된 사용자에게 요청 접수, 도구 없는 채팅 또는 worktree 편집을 열 수 있습니다. 운영자 세션 권한은 주지 않습니다.
265
+ - `/head 2시간마다 CI 상태를 요약해서 여기로 보내줘`라고 요청하거나
258
266
  `/cron add "every 2h" CI 상태를 요약해줘`로 직접 등록하고,
259
267
  `/cron list`로 확인합니다. [예약 작업 명령](docs/OPERATIONS.md#예약-작업-cron)으로 수정·중지·재개·즉시 실행·삭제할 수 있습니다.
260
268
  - `/stop`은 연결 레인을 일시정지하고 `/resume`은 재개를 허가합니다. 승인·취소·도구 제외와
@@ -311,7 +319,7 @@ bun run test:ci
311
319
  | [실행과 조율(영문)](docs/design/execution.md) | 레인·native Host 수명·모델·workflow·관리형 통합·모니터링·게시판. |
312
320
  | [운영 가이드](docs/OPERATIONS.md) | 설치·설정·명령·복구 절차. |
313
321
  | [Discord 음성채팅](docs/discord-voice.md) | Codex 구독 음성 또는 별도 과금되는 API 음성 선택. |
314
- | 릴리즈 | [릴리즈 노트](docs/releases/0.1.5.md) 및 [과거 검증 기록](docs/releases/0.1.0.md#verification-records). |
322
+ | 릴리즈 | [릴리즈 노트](docs/releases/0.1.6.md) 및 [과거 검증 기록](docs/releases/0.1.0.md#verification-records). |
315
323
 
316
324
  [oh-my-pi](https://github.com/can1357/oh-my-pi)를 기반으로 하며, workflow에는 [omp-superkit](https://github.com/dbc-hbin/omp-superkit)을 사용합니다.
317
325
 
package/README.md CHANGED
@@ -12,8 +12,8 @@
12
12
  Connect Discord, Telegram, and Slack to <a href="https://github.com/can1357/oh-my-pi">oh-my-pi</a>.
13
13
  The head can investigate, write code, and answer directly—or assign work to independent
14
14
  OMP sessions called <strong>lanes</strong>, each with its own repository, context, and model.
15
- Every request and follow-up goes through the head, which coordinates the work and brings
16
- the results back to your conversation.
15
+ Ordinary requests and replies stay in their work topic. Address the global head
16
+ with <code>/head</code> when you want coordination across topics.
17
17
  </p>
18
18
 
19
19
  <p align="center">
@@ -57,8 +57,8 @@
57
57
  </td>
58
58
  <td width="50%" valign="top">
59
59
  <h4>Models chosen per lane</h4>
60
- The head consults OMP's judge and chooses a native model or preset. Lane model
61
- changes stay local to that session, without rewriting global settings.
60
+ A topic starts with the current head model and retains its own selection.
61
+ For explicit delegation, the head can choose a different native model or preset.
62
62
  </td>
63
63
  </tr>
64
64
  <tr>
@@ -91,8 +91,8 @@
91
91
  </picture>
92
92
 
93
93
  The **Gateway** owns messenger connections and the head's lifecycle. The **head** owns
94
- lane control and decides whether to work directly or delegate. **Lanes** report to the
95
- head; the head replies to the original conversation.
94
+ lane control, approvals and delivery. A topic's **lane** handles its own follow-ups;
95
+ the controller returns its replies without a global model turn.
96
96
 
97
97
  [Mermaid source](assets/architecture.mmd)
98
98
 
@@ -104,8 +104,8 @@ service or an OS sandbox; see [Design](DESIGN.md).
104
104
  | Step | What it changes |
105
105
  | --- | --- |
106
106
  | [Install](#1-install) | Prepares dependencies and the managed ULW integration. Does not start a bot or replace OMP. |
107
- | [`setup`](#2-configure) | Writes `config.local.json` and the owner-only, plaintext `config.local.json.env` (`0600`). Bot avatars change only on the confirmed final save. Enabling Mnemopi needs a separate `yes` and changes OMP's global memory backend. Starts no bot or model session. |
108
- | [`doctor`](#3-start) | Checks local configuration without logging into the messengers. |
107
+ | [`setup`](#2-configure) | Writes `config.local.json` and the owner-only, plaintext `config.local.json.env` (`0600`). Bot avatars change only on the confirmed final save. Changing OMP's global memory backend needs a separate `yes`. Starts no bot or model session. |
108
+ | [`doctor`](#3-start) | Checks local configuration and effective Mnemopi without logging into the messengers. |
109
109
  | [`start`](#3-start) | Starts the detached Gateway and head and connects all configured messengers. |
110
110
  | [Discord voice](docs/discord-voice.md) | Off by default. A rejected subscription call never switches to API billing. |
111
111
  | [`/stop`](#working-from-chat) | Pauses the bound lane. Approvals, cancellations, tool exclusions, and uncertain-effect holds remain binding. |
@@ -114,7 +114,7 @@ service or an OS sandbox; see [Design](DESIGN.md).
114
114
 
115
115
  Install from [npm](https://www.npmjs.com/package/omp-superagent) or use the source
116
116
  and npm tarballs from the
117
- [GitHub Release](https://github.com/dbc-hbin/omp-superagent/releases/tag/v0.1.5).
117
+ [GitHub Release](https://github.com/dbc-hbin/omp-superagent/releases/tag/v0.1.6).
118
118
  Install with Bun or npm below. Bun is still required at runtime; this is not a
119
119
  standalone binary. Installation prepares the managed dependencies. Running a Host
120
120
  requires a separately installed OMP; this project neither patches nor builds it.
@@ -157,7 +157,7 @@ To install OMP separately, see the
157
157
  [upstream instructions](https://github.com/can1357/oh-my-pi#install).
158
158
 
159
159
  ```sh
160
- bun add --global --trust omp-superagent@0.1.5
160
+ bun add --global --trust omp-superagent@0.1.6
161
161
  omp-sa --help
162
162
  ```
163
163
 
@@ -170,7 +170,7 @@ Ensure `bun pm bin --global` is on `PATH`.
170
170
  Alternatively, with Bun on `PATH`:
171
171
 
172
172
  ```sh
173
- npm install --global omp-superagent@0.1.5
173
+ npm install --global omp-superagent@0.1.6
174
174
  ```
175
175
 
176
176
  Keep lifecycle scripts enabled for the managed ULW integration.
@@ -218,10 +218,12 @@ credentials take precedence. Configure model authentication through OMP.
218
218
  </td></tr></table>
219
219
 
220
220
  Setup does not start a bot or model session. Its final save confirmation includes
221
- replacing configured Discord/Telegram bot avatars with the mascot. Enabling the
222
- recommended Mnemopi memory backend requires a separate explicit `yes` and final save;
223
- it changes OMP's global memory backend. Setup recommends configuring a missing native
224
- judge role but does not choose or call a model.
221
+ replacing configured Discord/Telegram bot avatars with the mascot. Head and lane
222
+ workspaces require effective native Mnemopi (`memory.backend: mnemopi`), even for
223
+ existing configurations. Setup asks for a separate explicit `yes` before changing
224
+ OMP's global memory backend. It does not override project or launch settings. If
225
+ Mnemopi is still unavailable, setup keeps the saved files but reports incomplete.
226
+ Setup recommends configuring a missing native judge role but does not choose or call a model.
225
227
 
226
228
  See [configuration and setup effects](docs/OPERATIONS.md#3-설정) for permissions,
227
229
  memory behavior, alternative config paths, and manual configuration.
@@ -234,7 +236,9 @@ Check local configuration without logging into the messengers:
234
236
  omp-sa doctor --config ./config.local.json
235
237
  ```
236
238
 
237
- Start the detached Gateway and head, connecting **all configured messengers**:
239
+ Startup refuses if the head's native profile and workspace do not resolve to Mnemopi.
240
+ Each lane launch also checks its own workspace. Start the detached Gateway and head,
241
+ connecting **all configured messengers**:
238
242
 
239
243
  ```sh
240
244
  omp-sa start --config ./config.local.json
@@ -264,16 +268,26 @@ crash supervisor; Linux service installation is not provided.
264
268
 
265
269
  ## Working from chat
266
270
 
267
- - Ask normally. Questions get direct answers; work instructions open a topic with a
268
- brief approach, followed by meaningful progress and results.
269
- - Follow up in the same topic to steer active work through the head. Repositories and
271
+ - Start with the request itself. For example, “check login in client-ui” selects a uniquely named
272
+ workspace previously used in this conversation. Reply to a placed task or its delivered
273
+ message to reuse its workspace in a new topic without copying its history.
274
+ - From any allowed owner channel, describe the earlier work, e.g. “continue the login bug
275
+ investigation from last week.” The controller uses OMP's Mnemopi recall and verifies
276
+ candidates against this instance's eligible session journals.
277
+ A cross-channel continuation uses the matched workspace and relevant task evidence, not
278
+ the original channel binding, transcript or approvals. Choose by number if multiple tasks match.
279
+ - If the workspace is unclear, reply to the question with a known repository name or absolute
280
+ directory. An explicit `cwd: /absolute/workspace` on the first line still overrides inference.
281
+ - Use `/head <request>` for coordination or direct global work. Repositories and
270
282
  topics keep independent lane context; voice metadata does not imply transcription.
271
283
  - Use `/help` and `/status` for controls and state. `/model` and `/effort` manage the
272
284
  idle head session, not existing lanes or global defaults. You can also ask the head
273
- in a normal message to switch its own model after that turn. Global preset changes
285
+ with `/head` to switch its own model after that turn. Global preset changes
274
286
  require explicit `--global`. Slack's message commands use `!`.
275
287
  - `/usage` shows provider account quotas and reset times reported by stock OMP, without a model turn.
276
- - Ask HEAD to summarize CI every two hours, or use `/cron add "every 2h" Summarize CI`, and
288
+ - To receive a generated file, start an owner request with `attach: path/to/result.pdf` (relative to the work directory).
289
+ - For a shared server or room, [configure restricted group access](docs/OPERATIONS.md#단체방서버-권한-분리) for request intake, tool-free chat or scoped worktree edits. These rooms cannot operate the owner session.
290
+ - Ask `/head` to summarize CI every two hours, or use `/cron add "every 2h" Summarize CI`, and
277
291
  manage it from the same chat with [`/cron`](docs/OPERATIONS.md#예약-작업-cron).
278
292
  - `/stop` pauses the bound lane; `/resume` authorizes continuation. Approvals,
279
293
  cancellations, tool exclusions, and uncertain-effect holds remain binding.
@@ -332,7 +346,7 @@ recorded versions and scenarios. Offline CI does not verify live accounts or pro
332
346
  | [Execution and coordination](docs/design/execution.md) | lanes, native Host lifecycle, models, workflows, managed integration, monitoring, and the board. |
333
347
  | [Operations guide](docs/OPERATIONS.md) | platform setup, commands, and recovery. |
334
348
  | [Voice configuration guide](docs/discord-voice.md) | Codex subscription voice or the separately billed API. |
335
- | Releases | [Release notes](docs/releases/0.1.5.md) and [historical verification records](docs/releases/0.1.0.md#verification-records). |
349
+ | Releases | [Release notes](docs/releases/0.1.6.md) and [historical verification records](docs/releases/0.1.0.md#verification-records). |
336
350
 
337
351
  Built on [oh-my-pi](https://github.com/can1357/oh-my-pi), with
338
352
  [omp-superkit](https://github.com/dbc-hbin/omp-superkit) workflow integration.
@@ -5,6 +5,7 @@
5
5
  "maxHosts": 4,
6
6
  "maxSubagents": 8,
7
7
  "idleMs": 300000,
8
+ "groupRooms": [],
8
9
  "discord": {
9
10
  "tokenEnv": "DISCORD_BOT_TOKEN",
10
11
  "ownerId": "REPLACE_WITH_OWNER_USER_ID",