omp-superagent 0.1.7 → 0.1.9

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 (122) hide show
  1. package/DESIGN.md +27 -16
  2. package/README.ko.md +40 -19
  3. package/README.md +43 -18
  4. package/THIRD_PARTY_NOTICES.md +11 -11
  5. package/config.example.json +2 -1
  6. package/docs/OPERATIONS.md +285 -85
  7. package/docs/design/execution.md +133 -24
  8. package/docs/design/messaging.md +235 -50
  9. package/docs/discord-voice.md +8 -4
  10. package/docs/releases/0.1.8.md +21 -0
  11. package/docs/releases/0.1.9.md +18 -0
  12. package/gateway/bin/omp-gateway-darwin-arm64 +0 -0
  13. package/gateway/bin/omp-gateway-darwin-x64 +0 -0
  14. package/gateway/bin/omp-gateway-linux-arm64 +0 -0
  15. package/gateway/bin/omp-gateway-linux-x64 +0 -0
  16. package/host-owner/bin/notices/darwin-arm64/Cargo-LICENSES.txt +2 -0
  17. package/host-owner/bin/notices/darwin-arm64/Cargo-SOURCES.txt +2 -0
  18. package/host-owner/bin/notices/darwin-arm64/crates/bitflags-2.13.2/LICENSE-APACHE +201 -0
  19. package/host-owner/bin/notices/darwin-arm64/crates/bitflags-2.13.2/LICENSE-MIT +25 -0
  20. package/host-owner/bin/notices/darwin-arm64/crates/rustix-1.1.6/COPYRIGHT +29 -0
  21. package/host-owner/bin/notices/darwin-arm64/crates/rustix-1.1.6/LICENSE-APACHE +201 -0
  22. package/host-owner/bin/notices/darwin-arm64/crates/rustix-1.1.6/LICENSE-Apache-2.0_WITH_LLVM-exception +220 -0
  23. package/host-owner/bin/notices/darwin-arm64/crates/rustix-1.1.6/LICENSE-MIT +23 -0
  24. package/host-owner/bin/notices/darwin-x64/Cargo-LICENSES.txt +2 -0
  25. package/host-owner/bin/notices/darwin-x64/Cargo-SOURCES.txt +2 -0
  26. package/host-owner/bin/notices/darwin-x64/crates/bitflags-2.13.2/LICENSE-APACHE +201 -0
  27. package/host-owner/bin/notices/darwin-x64/crates/bitflags-2.13.2/LICENSE-MIT +25 -0
  28. package/host-owner/bin/notices/darwin-x64/crates/rustix-1.1.6/COPYRIGHT +29 -0
  29. package/host-owner/bin/notices/darwin-x64/crates/rustix-1.1.6/LICENSE-APACHE +201 -0
  30. package/host-owner/bin/notices/darwin-x64/crates/rustix-1.1.6/LICENSE-Apache-2.0_WITH_LLVM-exception +220 -0
  31. package/host-owner/bin/notices/darwin-x64/crates/rustix-1.1.6/LICENSE-MIT +23 -0
  32. package/host-owner/bin/notices/linux-arm64/Cargo-LICENSES.txt +3 -0
  33. package/host-owner/bin/notices/linux-arm64/Cargo-SOURCES.txt +3 -0
  34. package/host-owner/bin/notices/linux-arm64/crates/bitflags-2.13.2/LICENSE-APACHE +201 -0
  35. package/host-owner/bin/notices/linux-arm64/crates/bitflags-2.13.2/LICENSE-MIT +25 -0
  36. package/host-owner/bin/notices/linux-arm64/crates/linux-raw-sys-0.12.1/COPYRIGHT +29 -0
  37. package/host-owner/bin/notices/linux-arm64/crates/linux-raw-sys-0.12.1/LICENSE-APACHE +201 -0
  38. package/host-owner/bin/notices/linux-arm64/crates/linux-raw-sys-0.12.1/LICENSE-Apache-2.0_WITH_LLVM-exception +220 -0
  39. package/host-owner/bin/notices/linux-arm64/crates/linux-raw-sys-0.12.1/LICENSE-MIT +23 -0
  40. package/host-owner/bin/notices/linux-arm64/crates/rustix-1.1.6/COPYRIGHT +29 -0
  41. package/host-owner/bin/notices/linux-arm64/crates/rustix-1.1.6/LICENSE-APACHE +201 -0
  42. package/host-owner/bin/notices/linux-arm64/crates/rustix-1.1.6/LICENSE-Apache-2.0_WITH_LLVM-exception +220 -0
  43. package/host-owner/bin/notices/linux-arm64/crates/rustix-1.1.6/LICENSE-MIT +23 -0
  44. package/host-owner/bin/notices/linux-x64/Cargo-LICENSES.txt +3 -0
  45. package/host-owner/bin/notices/linux-x64/Cargo-SOURCES.txt +3 -0
  46. package/host-owner/bin/notices/linux-x64/crates/bitflags-2.13.2/LICENSE-APACHE +201 -0
  47. package/host-owner/bin/notices/linux-x64/crates/bitflags-2.13.2/LICENSE-MIT +25 -0
  48. package/host-owner/bin/notices/linux-x64/crates/linux-raw-sys-0.12.1/COPYRIGHT +29 -0
  49. package/host-owner/bin/notices/linux-x64/crates/linux-raw-sys-0.12.1/LICENSE-APACHE +201 -0
  50. package/host-owner/bin/notices/linux-x64/crates/linux-raw-sys-0.12.1/LICENSE-Apache-2.0_WITH_LLVM-exception +220 -0
  51. package/host-owner/bin/notices/linux-x64/crates/linux-raw-sys-0.12.1/LICENSE-MIT +23 -0
  52. package/host-owner/bin/notices/linux-x64/crates/rustix-1.1.6/COPYRIGHT +29 -0
  53. package/host-owner/bin/notices/linux-x64/crates/rustix-1.1.6/LICENSE-APACHE +201 -0
  54. package/host-owner/bin/notices/linux-x64/crates/rustix-1.1.6/LICENSE-Apache-2.0_WITH_LLVM-exception +220 -0
  55. package/host-owner/bin/notices/linux-x64/crates/rustix-1.1.6/LICENSE-MIT +23 -0
  56. package/host-owner/bin/omp-host-owner-darwin-arm64 +0 -0
  57. package/host-owner/bin/omp-host-owner-darwin-x64 +0 -0
  58. package/host-owner/bin/omp-host-owner-linux-arm64 +0 -0
  59. package/host-owner/bin/omp-host-owner-linux-x64 +0 -0
  60. package/package.json +17 -15
  61. package/skills/head/SKILL.md +3 -11
  62. package/skills/head/references/routing.md +23 -17
  63. package/skills/head/references/supervision.md +13 -1
  64. package/skills/lane/references/workflow.md +8 -8
  65. package/src/cli.ts +6 -3
  66. package/src/config.ts +5 -0
  67. package/src/contracts.ts +95 -10
  68. package/src/cron-jobs.ts +443 -19
  69. package/src/cron-pr-intake.ts +257 -0
  70. package/src/discord-command-registration.ts +34 -186
  71. package/src/extension.ts +31 -3
  72. package/src/gateway-client.ts +11 -59
  73. package/src/gateway-protocol.ts +35 -1
  74. package/src/head-quota.ts +80 -0
  75. package/src/head-recovery.ts +249 -1
  76. package/src/host-extension.ts +194 -5
  77. package/src/host-protocol.ts +16 -9
  78. package/src/host-sdk-helper.ts +105 -10
  79. package/src/host.ts +111 -29
  80. package/src/installed-omp.ts +116 -4
  81. package/src/lane-models.ts +8 -0
  82. package/src/managed-ulw-probe.ts +22 -20
  83. package/src/managed-ulw.ts +137 -24
  84. package/src/messenger-command-catalog.json +6 -3
  85. package/src/messenger-commands.ts +9 -2
  86. package/src/native-presets.ts +32 -5
  87. package/src/omp-usage.ts +254 -36
  88. package/src/operator.ts +77 -0
  89. package/src/pr-github-schema.ts +2 -0
  90. package/src/pr-github.ts +4 -2
  91. package/src/pr-intake-automation.ts +315 -0
  92. package/src/pr-intake-comment.ts +225 -0
  93. package/src/pr-intake-fix.ts +232 -0
  94. package/src/pr-intake-github.ts +479 -0
  95. package/src/pr-intake-material.ts +229 -0
  96. package/src/pr-intake-mode.ts +59 -0
  97. package/src/pr-intake-review.ts +397 -0
  98. package/src/pr-intake-tree.ts +68 -0
  99. package/src/pr-intake-work.ts +29 -0
  100. package/src/pr-review-models.ts +28 -0
  101. package/src/result-attachment.ts +60 -79
  102. package/src/runtime.ts +2968 -449
  103. package/src/setup-profiles.ts +26 -65
  104. package/src/slack-command-registration.ts +48 -197
  105. package/src/store.ts +507 -87
  106. package/src/superkit-skills.ts +22 -0
  107. package/src/telegram-command-languages.json +17 -0
  108. package/src/telegram-command-registration.ts +32 -134
  109. package/src/topic-history.ts +30 -17
  110. package/src/worker-bridge.ts +21 -0
  111. package/src/worker-enrollment.ts +2 -1
  112. package/src/worker-host.ts +0 -24
  113. package/src/worker-serve-prepare.ts +19 -0
  114. package/src/worker-service.ts +51 -47
  115. package/scripts/ci.ts +0 -44
  116. package/scripts/release.ts +0 -112
  117. package/scripts/test-omp.sh +0 -43
  118. package/src/discord-commands.ts +0 -29
  119. package/src/discord-markdown.ts +0 -172
  120. package/src/slack-commands.ts +0 -18
  121. package/src/telegram-signal.ts +0 -14
  122. package/src/worker-stdio.ts +0 -61
package/DESIGN.md CHANGED
@@ -4,9 +4,10 @@ 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
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. Otherwise,
8
- HEAD takes ordinary requests to answer directly or verify a workspace and assign
9
- work. Explicit placement and historical lookup remain controller paths.
7
+ Ordinary owner work stays in the native session bound to its topic. Unbound
8
+ ordinary requests go to the shared HEAD model to answer directly or verify a
9
+ workspace and assign work. Explicit placement, historical lookup and
10
+ code-handled controls do not require a shared-model turn to route.
10
11
  In a [bound Discord work thread](docs/design/messaging.md#topic-routing-and-controls),
11
12
  historical continuation and its replies stay there unless the operator explicitly
12
13
  asks to split. Separately,
@@ -19,7 +20,7 @@ or lanes. This is not a multitenant service or an OS sandbox.
19
20
  - [Execution and coordination](docs/design/execution.md): lanes, native Host lifecycle,
20
21
  models, workflows, managed integration, monitoring, and the board.
21
22
  - [Setup and operations](docs/OPERATIONS.md): configuration, commands, and recovery procedures.
22
- - [Release records](docs/releases/0.1.0.md#verification-records): dated evidence and its limits.
23
+ - [Versioned release records](docs/releases/): dated evidence and its limits.
23
24
 
24
25
  <picture>
25
26
  <source media="(prefers-color-scheme: dark)" srcset="assets/architecture-dark.svg">
@@ -36,7 +37,7 @@ or lanes. This is not a multitenant service or an OS sandbox.
36
37
  | 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) |
37
38
  | 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) |
38
39
  | Head | Its controller owns intake, placement, approvals and delivery. The shared model handles ordinary unbound requests, explicit `/head` work and manager coordination, not ordinary bound-topic prompts or their answers. | [Head extension](src/extension.ts), [runtime](src/runtime.ts), [coordination store](src/store.ts) |
39
- | 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) |
40
+ | Lane | Runs work in its own native session with its own cwd, model and context. Topic answers go through the controller outbox without a shared-model synthesis turn; manager handoffs report to the head. Neither sends directly to a messenger. | [Lane extension](src/lane-extension.ts), [lane reporting](src/lane-report.ts), [role instructions](skills/lane/SKILL.md) |
40
41
  | 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) |
41
42
  | 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) |
42
43
 
@@ -49,8 +50,12 @@ canonical `stateDir` are instance-owned, not arbitrary URLs or a general RPC pro
49
50
  Native children get neither the manager nor the board. Managed extensions are not
50
51
  installed globally into ordinary OMP.
51
52
 
52
- The operator CLI is still Bun, not a second resident Gateway. `start` invokes
53
- the packaged native launcher; the daemon constructs only the configured
53
+ The operator CLI is still Bun, not a second resident Gateway. Command registration
54
+ and confirmed avatar setup invoke a one-shot Rust REST client with credentials
55
+ for that operation only. The CLI keeps its private input pipe open while the
56
+ operation runs. Losing the parent stops further requests; a write already sent
57
+ without a receipt remains uncertain and is not retried. Neither operation starts a daemon or connects a bot.
58
+ `start` invokes the packaged native launcher; the daemon constructs only the configured
54
59
  transports. The short-lived config reader reuses the CLI parser without
55
60
  importing OMP or messenger SDKs. Session recovery and named preset validation
56
61
  use their public OMP interfaces on demand; no OMP source or core patch is
@@ -165,26 +170,32 @@ lifecycle control, not a model turn. It can be admitted while the head is busy:
165
170
 
166
171
  ## Stock OMP and verification scope
167
172
 
168
- The [package manifest](package.json) pins the published SDK to **19.0.0**, with
169
- upstream [v19.0.0 source](https://github.com/can1357/oh-my-pi/commit/57771ae562b9345e0579bceb2d68d585e3e6927e).
173
+ The [package manifest](package.json) pins the published SDK to **19.1.1**, with
174
+ upstream [v19.1.1 source](https://github.com/can1357/oh-my-pi/commit/31ffee513f27a01bba7d4dfbe12bae239cdc646a).
170
175
  That pin is not a CLI version allowlist. [CLI inspection](src/installed-omp.ts)
171
176
  checks CLI identity, public `rpc-ui`, resume, extension and model flags, and the
172
- advertised process interface. Host initialization checks the real RPC/extension
177
+ advertised process interface. A process reuses an inspection only while the
178
+ configured executable's resolved regular file (path, device, inode, size, mtime,
179
+ ctime), its resolved shebang interpreter and the inspected loader environment
180
+ are unchanged. Failures are never reused. Host initialization checks the real RPC/extension
173
181
  surface. Do not patch or build OMP, use the in-tree SDK as the CLI, or use a
174
182
  runtime wrapper in place of the native CLI.
175
183
 
176
184
  [CI](https://github.com/dbc-hbin/omp-superagent/actions/workflows/ci.yml)
177
- runs the SDK-matched official CLI on Linux and macOS. OMP 18 can still be tested
178
- locally with `bash scripts/test-omp.sh <release-tag>`. `bun run test:ci` uses the installed
185
+ uses the SDK-matched official CLI for the baseline tests on Linux x64 and macOS
186
+ ARM64. Separate jobs build and verify installation of the npm payload on Linux
187
+ and macOS on both architectures; see the [packaging procedure](docs/OPERATIONS.md#소스npm-릴리즈).
188
+ OMP 18 can still be tested locally with `bash scripts/test-omp.sh <release-tag>`.
189
+ `bun run test:ci` uses the installed
179
190
  CLI; `bun run test:baseline` downloads and verifies the SDK-matched official binary.
180
191
  The [weekly/manual compatibility workflow](https://github.com/dbc-hbin/omp-superagent/actions/workflows/omp-compatibility.yml)
181
192
  checks the latest upstream release without falling back or changing SDK pins.
182
193
  These local fixtures cover native RPC/Host, Gateway and setup surfaces; they do not
183
194
  prove live messenger accounts, provider requests or costs, or login/reboot behavior.
184
- Treat CI configuration as a test matrix, not a test result. For example, the
185
- [v0.1.3 tag run](https://github.com/dbc-hbin/omp-superagent/actions/runs/44695941397)
186
- passed the configured stock CLI checks for that release. See the [release
187
- notes](docs/releases/0.1.3.md) and historical records for their respective scopes.
195
+ Treat CI configuration as a test matrix, not a test result. Use the Actions
196
+ run for the exact commit or tag for results. Past evidence, such as the
197
+ [v0.1.3 tag run](https://github.com/dbc-hbin/omp-superagent/actions/runs/44695941397),
198
+ applies only to that release's configured checks, not to the current SDK baseline.
188
199
 
189
200
  Same-process native TUI/herdr attachment to managed RPC Hosts is **unsupported**.
190
201
  Native session discovery and ordinary resume are not attachment or a grant of
package/README.ko.md CHANGED
@@ -82,7 +82,8 @@
82
82
  </picture>
83
83
 
84
84
  Gateway는 메신저 연결·수신 장부·헤드 수명을 관리하는 데몬입니다. 작업을 판단하고 레인을 지시하는 주체는 헤드입니다.
85
- 헤드 런타임이 승인과 전송을 관리하되, 연결된 레인의 진행·답변은 전역 모델을 거치지 않습니다.
85
+ 헤드 런타임이 승인과 전송을 관리합니다. 연결된 주제의 일반 후속 요청은 해당 레인이 처리하며,
86
+ 전역 모델을 거치지 않고 답변을 전달합니다.
86
87
 
87
88
  [구조도 Mermaid 원본](assets/architecture.mmd)
88
89
 
@@ -103,7 +104,7 @@ OS 샌드박스가 아닙니다. 자세한 내용은 [설계(영문)](DESIGN.md)
103
104
  ## 배포 형태
104
105
 
105
106
  [npm 패키지](https://www.npmjs.com/package/omp-superagent)를 Bun 또는 npm으로 설치하거나
106
- [GitHub Release](https://github.com/dbc-hbin/omp-superagent/releases/tag/v0.1.7)의 소스·npm tarball을 받으세요.
107
+ [GitHub Release](https://github.com/dbc-hbin/omp-superagent/releases/tag/v0.1.9)의 소스·npm tarball을 받으세요.
107
108
  실행에는 Bun이 필요하며 독립 실행 바이너리는 아닙니다. 설치 시 관리형 의존성을 준비합니다.
108
109
  Host를 실행하려면 별도로 설치한 OMP가 필요하며, 이 프로젝트가 패치하거나 빌드하지 않습니다.
109
110
 
@@ -111,14 +112,13 @@ Host를 실행하려면 별도로 설치한 OMP가 필요하며, 이 프로젝
111
112
 
112
113
  현재 소스는 Git, **Bun >= 1.4.4**, 로컬 Unix socket을 사용합니다. 패키지 설치에는 OMP가
113
114
  필요 없습니다. Host를 실행할 때는 별도로 설치한 OMP의 기능을 검사하며, 버전 범위로 제한하지
114
- 않습니다. CI 기준판은 **OMP 19.0.0**이며, **18.20.3과 18.22.2**는 이전 릴리스에서 검증했습니다.
115
+ 않습니다. CI 기준판은 **OMP 19.1.1**이며, **18.20.3과 18.22.2**는 이전 릴리스에서 검증했습니다.
115
116
  Windows는 지원하지 않습니다.
116
117
 
117
118
  <details>
118
119
  <summary><strong>SDK 고정 버전과 CI 재현</strong></summary>
119
120
 
120
- SDK는 **19.0.0**으로 유지하며 upstream 커밋은
121
- [`57771ae562b9345e0579bceb2d68d585e3e6927e`](https://github.com/can1357/oh-my-pi/commit/57771ae562b9345e0579bceb2d68d585e3e6927e)입니다.
121
+ SDK는 [upstream `v19.1.1` 커밋](https://github.com/can1357/oh-my-pi/commit/31ffee513f27a01bba7d4dfbe12bae239cdc646a)에 맞춰 고정합니다.
122
122
  `bun run test:ci`는 현재 설치된 OMP를 검사합니다. CI 기준판을 재현하려면 `bun run test:baseline`을
123
123
  사용하세요. OMP 18은 수동 검사만 제공합니다. `bash scripts/test-omp.sh v18.22.2` 또는 `v18.20.3`을
124
124
  지정하면 해당 공식 바이너리를 검증한 뒤 같은 회귀를 로컬에서 실행합니다.
@@ -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.7
143
+ bun add --global --trust omp-superagent@0.1.9
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.7
156
+ npm install --global omp-superagent@0.1.9
157
157
  ```
158
158
 
159
159
  postinstall이 필수 관리형 omp-superkit 통합을 준비하므로 설치 스크립트를 생략하지 마세요.
@@ -317,9 +317,13 @@ SSH가 끊겨도 Host 자체는 종료되지 않습니다. Host가 종료된 뒤
317
317
 
318
318
  ## 사용 방법
319
319
 
320
- - `디스코드 봇 온라인 상태 유지해 줘`, `owner/repo#35 CI가 통과하면 알려줘`, `이 작업이 멈추거나 끝나면 알려줘`처럼 요청하세요. 같은 대화에서 상태를 묻거나 감시만 중지할 수 있습니다. 감시가 PR 병합이나 작업 중지를 허가하지는 않습니다. Discord 온라인 표시를 꺼도 메시지는 계속 받습니다.
321
- - 이미 연결된 작업 스레드나 주제에서는 저장소 이름이나 명령 없이 후속 메시지를 보내면 그 작업을 이어갑니다.
322
- - 그 밖에서는 요청을 그대로 보내세요. 저장소 이름을 안다면 `client-ui에서 로그인 오류 봐줘`처럼 적어도 됩니다.
320
+ - `discord.requireAddressing`을 켜면(기본값은 꺼짐), 허용된 서버의 부모 채널이나 이 봇이 만들지
321
+ 않은 스레드에서는 이 봇을 멘션하거나 같은 대화에서 이 봇이 보낸 메시지에 답장해야 운영자의
322
+ 일반 메시지가 접수됩니다. 이 봇이 만든 스레드에서는 멘션·답장이 필요 없고, 운영자 DM과 앱 명령은 그대로입니다.
323
+ - 일반 후속 요청은 같은 대화에 보내세요. 연결된 작업 스레드에서는 해당 레인으로, 헤드가 처리하는
324
+ 대화나 `/head 요청`은 HEAD로 갑니다. `/steer` 없이도 조건을 충족하면 다음 OMP steering 경계에서
325
+ 실행 중인 작업에 반영하고, 유휴 상태라면 새 턴을 시작합니다. 일시정지·승인·불확실한 효과에 대한 보류는 유지합니다.
326
+ - 새 요청은 그대로 보내세요. 저장소 이름을 안다면 `client-ui에서 로그인 오류 봐줘`처럼 적어도 됩니다.
323
327
  HEAD는 저장소가 필요 없는 질문에는 직접 답하고, 작업에는 요청과 해당 대화의 문맥을 바탕으로 실제
324
328
  작업 디렉터리를 찾아 확인한 뒤 배정합니다. 중요한 모호함이 남을 때만 구체적으로 묻습니다.
325
329
  기본 저장소나 마지막으로 활동한 채팅을 기준으로 삼지 않습니다. 아직 연결되지 않은 Discord
@@ -329,16 +333,33 @@ SSH가 끊겨도 Host 자체는 종료되지 않습니다. Host가 종료된 뒤
329
333
  - 헤드에서 Mnemopi가 활성화되어 검색할 수 있으면 다른 운영자 채널에서도 `지난주 로그인 버그 보던 데서 계속해줘`라고 할 수 있습니다. Mnemopi `recall`로 단서를 찾고, 날짜와 작업 내용을 원래 세션에서 확인합니다. 하나로 좁혀지면 그 저장소에서 이어가고, 여럿이면 번호로 고릅니다. 다른 메모리 백엔드로도 관리형 세션을 실행할 수 있지만 이 과거 작업 검색은 지원하지 않습니다. 제한 그룹방은 검색 대상이 아닙니다.
330
334
  - 전역 조정은 `/head 요청`을 사용합니다. 저장소·주제별 레인 맥락은
331
335
  독립적입니다. 음성 첨부 메타데이터 보존이 자동 전사를 뜻하지는 않습니다.
332
- - `/help`와 `/status`로 명령·상태를 확인합니다. `/model`·`/effort`는 유휴 헤드 세션만
333
- 바꾸며 기존 레인·전역 기본값은 유지합니다. `/head`로 헤드 모델 변경을 요청하면
334
- 해당 턴이 끝난 뒤 적용합니다. 전역 프리셋 저장은 명시적 `--global`이 필요합니다.
335
- Slack 일반 메시지 명령은 `!`를 씁니다.
336
- - `/usage`는 순정 OMP가 보고한 제공자별 계정 한도와 리셋 시각을 모델 호출 없이 보여줍니다.
336
+ - `/help`와 `/status`로 명령·상태를 확인합니다. Discord 작업 스레드에서 `/model`을 열면
337
+ 유휴 HEAD 또는 해당 스레드에 연결된 유휴 레인을 선택할 수 있습니다. 모델 ID를 직접 입력하는
338
+ `/model <provider/model>`은 `--lane`을 붙이지 않으면 HEAD에 적용됩니다. `/effort`도
339
+ HEAD에 적용됩니다. `/head`로 HEAD 모델 변경을 요청하면 해당 턴이 끝난 뒤 적용합니다.
340
+ 전역 프리셋 저장은 명시적 `--global`이 필요합니다. Slack 일반 메시지 명령은 `!`를 씁니다.
341
+ - `/usage`는 OMP가 조회한 기본·확장 제공자의 계정별 한도와 리셋 시각을 마스킹된 계정 이름과 함께 보여줍니다. 모델은 호출하지 않습니다.
342
+ - Discord 명령 목록과 채팅에서는 `/usage-reset`으로 계정별 보유 리셋권을 확인합니다.
343
+ Telegram은 `/usage reset`, Slack은 `!usage reset` 또는 `/superagent-usage reset`을 사용합니다.
344
+ 계정을 고르고 **Confirm**을 누르면 지금 쓸 수
345
+ 있는 리셋권 한 개를 사용합니다. 계정 지정 리셋을 지원하는 순정 OMP가 필요합니다.
346
+ 이와 별개로, 도구 실행이나 부분 응답 없이 Codex 한도 초과가 확인된 경우 HEAD는 새 사용량 보고에서
347
+ 회복을 확인한 뒤 후속 대기 요청을 처리합니다. 리셋권을 쓰거나 실패한 요청을 완료 처리·재실행하지 않습니다.
337
348
  - 결과 파일을 받으려면 운영자 요청 첫 줄에 `attach: 보고서/결과.pdf`처럼 작업 디렉터리 상대 경로를 적으세요.
338
349
  - 단체방·서버에서는 [제한 그룹 모드](docs/OPERATIONS.md#단체방서버-권한-분리)로 허용된 사용자에게 요청 접수, 도구 없는 채팅 또는 worktree 편집을 열 수 있습니다. 운영자 세션 권한은 주지 않습니다.
339
350
  - `/head 2시간마다 CI 상태를 요약해서 여기로 보내줘`라고 요청하거나
340
- `/cron add "every 2h" CI 상태를 요약해줘`로 직접 등록하고,
341
- `/cron list`로 확인합니다. [예약 작업 명령](docs/OPERATIONS.md#예약-작업-cron)으로 수정·중지·재개·즉시 실행·삭제할 수 있습니다.
351
+ `/cron add "every 2h" CI 상태를 요약해줘`로 직접 등록한 뒤, 같은 대화에서
352
+ [`/cron`](docs/OPERATIONS.md#예약-작업-cron)으로 관리합니다. 예약 프롬프트에는 HEAD의
353
+ 일반 승인 규칙이 적용되며, 직접 셸 예약(`/cron add shell`)은 비활성화되어 있습니다.
354
+ - `디스코드 봇 온라인 상태 유지해 줘`, `owner/repo#35 CI가 통과하면 알려줘`,
355
+ `이 작업이 멈추거나 끝나면 알려줘`처럼 요청하세요. 같은 대화에서 상태를 묻거나 감시를 중지할 수
356
+ 있습니다. 감시는 알림만 보냅니다. PR을 변경하거나 작업을 중지하지 않으며, Discord 온라인 표시를
357
+ 꺼도 메시지는 계속 받습니다.
358
+ - [외부 PR 자동화](docs/OPERATIONS.md#새-외부-pr-검토-cron-pr-add)는 감시와 별개입니다.
359
+ 허용된 Discord 서버의 부모 채널에서 `/cron pr-add`로 본인의 `gh` 인증 계정이 소유한
360
+ 저장소를 명시적으로 등록합니다. 신규 등록은 기본적으로 무인 리뷰와 GitHub 코멘트만 남깁니다.
361
+ 수정 커밋이나 병합을 자동화하려면 `/cron pr-mode`로 상위 모드를 선택해야 하며,
362
+ 병합에는 독립 승인·필수 CI·브랜치 보호 규칙 충족이 필요합니다.
342
363
  - `/stop`은 연결 레인을 일시정지하고 `/resume`은 재개를 허가합니다. 승인·취소·도구 제외와
343
364
  불확실한 효과에 대한 보류는 유지합니다. 진척 보고·복구가 작업 완료의 검증이나 외부 효과의
344
365
  취소를 뜻하지 않으며, 저장된 goal은 crash replay나 로드되지 않은 상태의 실행을 보장하지 않습니다.
@@ -387,7 +408,7 @@ bun run test:ci
387
408
  오프라인 native/PTY 범위·필요 도구·로컬 패키징과 게시 경계는
388
409
  [개발자 검증·소스 릴리즈 절차](docs/OPERATIONS.md#6-개발자-검증)를 참고하세요.
389
410
  [현재 CI](https://github.com/dbc-hbin/omp-superagent/blob/main/.github/workflows/ci.yml)는
390
- 순정 OMP 19.0.0을 검사 대상에 포함합니다.
411
+ 고정된 SDK와 같은 버전의 순정 CLI를 검사합니다.
391
412
  [과거 실행 기록](docs/releases/0.1.0.md#verification-records)은 기록된 버전과 시나리오에만 적용됩니다.
392
413
  오프라인 CI는 실계정 접속이나 운영 준비 완료를 보증하지 않습니다.
393
414
 
@@ -400,7 +421,7 @@ bun run test:ci
400
421
  | [실행과 조율(영문)](docs/design/execution.md) | 레인·native Host 수명·모델·workflow·관리형 통합·모니터링·게시판. |
401
422
  | [운영 가이드](docs/OPERATIONS.md) | 설치·설정·명령·복구 절차. |
402
423
  | [Discord 음성채팅](docs/discord-voice.md) | Codex 구독 음성 또는 별도 과금되는 API 음성 선택. |
403
- | 릴리즈 | [릴리즈 노트](docs/releases/0.1.7.md) 및 [과거 검증 기록](docs/releases/0.1.0.md#verification-records). |
424
+ | 릴리즈 | [릴리즈 노트](docs/releases/0.1.9.md) 및 [과거 검증 기록](docs/releases/0.1.0.md#verification-records). |
404
425
 
405
426
  [oh-my-pi](https://github.com/can1357/oh-my-pi)를 기반으로 하며, workflow에는 [omp-superkit](https://github.com/dbc-hbin/omp-superkit)을 사용합니다.
406
427
 
package/README.md CHANGED
@@ -91,7 +91,7 @@
91
91
  </picture>
92
92
 
93
93
  The **Gateway** owns messenger connections and the head's lifecycle. The **head** owns
94
- lane control, approvals and delivery. A topic's **lane** handles its own follow-ups;
94
+ lane control, approvals and delivery. A bound topic's **lane** handles its ordinary follow-ups;
95
95
  the controller returns its replies without a global model turn.
96
96
 
97
97
  [Mermaid source](assets/architecture.mmd)
@@ -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.7).
117
+ [GitHub Release](https://github.com/dbc-hbin/omp-superagent/releases/tag/v0.1.9).
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.
@@ -123,7 +123,7 @@ requires a separately installed OMP; this project neither patches nor builds it.
123
123
 
124
124
  This checkout requires Git, **Bun >= 1.4.4**, and local Unix sockets. Installing the
125
125
  package does not require OMP. To run a Host, install stock OMP separately; the
126
- CLI checks capabilities, not a version range. CI tests **OMP 19.0.0**;
126
+ CLI checks capabilities, not a version range. CI tests **OMP 19.1.1**;
127
127
  **18.20.3 and 18.22.2** were tested in earlier releases.
128
128
  Windows is unsupported.
129
129
  Configure `command` with the installed OMP executable followed by native CLI flags;
@@ -132,8 +132,7 @@ runtime/script wrappers are unsupported.
132
132
  <details>
133
133
  <summary><strong>SDK pin and CI reproduction</strong></summary>
134
134
 
135
- The SDK stays pinned to **19.0.0**, from upstream `v19.0.0` commit
136
- [`57771ae562b9345e0579bceb2d68d585e3e6927e`](https://github.com/can1357/oh-my-pi/commit/57771ae562b9345e0579bceb2d68d585e3e6927e).
135
+ The SDK is pinned to the [upstream `v19.1.1` commit](https://github.com/can1357/oh-my-pi/commit/31ffee513f27a01bba7d4dfbe12bae239cdc646a).
137
136
  `bun run test:ci` tests the installed OMP. Use `bun run test:baseline` to reproduce
138
137
  the SDK-matched CI check. OMP 18 is manual only: `bash scripts/test-omp.sh v18.22.2`
139
138
  (or `v18.20.3`) verifies the release binary and runs the same suite locally.
@@ -157,7 +156,7 @@ To install OMP separately, see the
157
156
  [upstream instructions](https://github.com/can1357/oh-my-pi#install).
158
157
 
159
158
  ```sh
160
- bun add --global --trust omp-superagent@0.1.7
159
+ bun add --global --trust omp-superagent@0.1.9
161
160
  omp-sa --help
162
161
  ```
163
162
 
@@ -170,7 +169,7 @@ Ensure `bun pm bin --global` is on `PATH`.
170
169
  Alternatively, with Bun on `PATH`:
171
170
 
172
171
  ```sh
173
- npm install --global omp-superagent@0.1.7
172
+ npm install --global omp-superagent@0.1.9
174
173
  ```
175
174
 
176
175
  Keep lifecycle scripts enabled for the managed omp-superkit integration.
@@ -347,10 +346,15 @@ worker. That is not a stop command for an already running lane.
347
346
 
348
347
  ## Working from chat
349
348
 
350
- - Ask “keep the Discord bot online”, “watch `owner/repo#35` and tell me when CI passes”, or “let me know when this lane stalls or finishes”. Ask for status or stop the watch in the same conversation. A watch does not authorize a merge or stop the work. Discord presence controls only the bot's indicator, not its ability to receive messages.
351
- - Send follow-ups in the existing work thread or topic to continue its task. No repository
352
- name or command is needed.
353
- - Elsewhere, send the request itself, even if it names a repository. HEAD answers questions
349
+ - With `discord.requireAddressing` enabled (off by default), ordinary owner messages in
350
+ allowed server parent channels and threads this bot did not create must mention this
351
+ bot or reply to one of its messages in the same conversation. Threads this bot created
352
+ do not require a mention or reply; owner DMs and app commands are unaffected.
353
+ - Send ordinary follow-ups in the same conversation. They go to the bound lane in a work
354
+ thread and to HEAD in a head conversation or with `/head <request>`. No `/steer` is
355
+ needed: eligible follow-ups steer an active run at an OMP steering boundary, or start
356
+ a new turn if idle. Pause, approval, and uncertain-effect holds still apply.
357
+ - For a new request, send the request itself, even if it names a repository. HEAD answers questions
354
358
  that need no workspace directly. For “check login in client-ui,” it uses your request and
355
359
  its conversation context to find and verify the workspace before assigning work. It asks a
356
360
  focused question only if a material ambiguity remains; it does not use a default repository
@@ -368,15 +372,36 @@ worker. That is not a stop command for an already running lane.
368
372
  the original channel binding, transcript or approvals. Choose by number if multiple tasks match.
369
373
  - Use `/head <request>` for coordination or direct global work. Repositories and
370
374
  topics keep independent lane context; voice metadata does not imply transcription.
371
- - Use `/help` and `/status` for controls and state. `/model` and `/effort` manage the
372
- idle head session, not existing lanes or global defaults. You can also ask the head
373
- with `/head` to switch its own model after that turn. Global preset changes
374
- require explicit `--global`. Slack's message commands use `!`.
375
- - `/usage` shows provider account quotas and reset times reported by stock OMP, without a model turn.
375
+ - Use `/help` and `/status` for controls and state. In a Discord work thread,
376
+ `/model` lets you choose the idle HEAD or the idle lane bound to that thread.
377
+ A direct `/model <provider/model>` still targets HEAD unless you add `--lane`.
378
+ `/effort` targets HEAD. You can also use `/head` to ask HEAD to switch its own
379
+ model after that turn. Global preset changes require explicit `--global`.
380
+ Slack's message commands use `!`.
381
+ - `/usage` shows masked account names, quotas, and reset times for built-in and extension-provided usage sources reported by stock OMP, without a model turn.
382
+ - `/usage-reset` shows saved reset tickets by account in Discord's slash picker or chat.
383
+ On Telegram use `/usage reset`; on Slack use `!usage reset` or `/superagent-usage reset`.
384
+ Select an account and choose **Confirm**
385
+ to spend one available ticket; this requires stock OMP with account-targeted reset support.
386
+ Separately, after a proven Codex quota rejection with no tool calls or partial answer,
387
+ HEAD releases later queued requests when fresh usage evidence confirms recovery. It does
388
+ not spend a ticket, mark the failed request complete, or replay it.
376
389
  - To receive a generated file, start an owner request with `attach: path/to/result.pdf` (relative to the work directory).
377
390
  - 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.
378
391
  - Ask `/head` to summarize CI every two hours, or use `/cron add "every 2h" Summarize CI`, and
379
392
  manage it from the same chat with [`/cron`](docs/OPERATIONS.md#예약-작업-cron).
393
+ Scheduled prompts use HEAD's normal approval rules; direct shell schedules
394
+ (`/cron add shell`) are disabled.
395
+ - Ask “keep the Discord bot online”, “watch `owner/repo#35` and tell me when CI passes”,
396
+ or “let me know when this lane stalls or finishes”. Ask for status or stop the watch
397
+ in the same conversation. Watches only notify; they do not act on PRs or stop work.
398
+ Discord presence changes the bot's indicator, not message intake.
399
+ - [External PR automation](docs/OPERATIONS.md#새-외부-pr-검토-cron-pr-add) is separate:
400
+ explicitly enroll a repository owned by your authenticated `gh` account with
401
+ `/cron pr-add` from an allowed Discord server parent channel. New enrollments default to
402
+ unattended review and a GitHub comment only. For automatic fix commits or merges, choose
403
+ a higher mode with `/cron pr-mode`; merges still require independent approval, required
404
+ CI, and branch protection checks.
380
405
  - `/stop` pauses the bound lane; `/resume` authorizes continuation. Approvals,
381
406
  cancellations, tool exclusions, and uncertain-effect holds remain binding.
382
407
  Neither progress reports nor recovery prove task completion or undo external effects.
@@ -428,7 +453,7 @@ bun run test:ci
428
453
  See [developer verification and source release steps](docs/OPERATIONS.md#6-개발자-검증)
429
454
  for offline native/PTY coverage, prerequisites, and local packaging/publication boundaries.
430
455
  The [current CI matrix](https://github.com/dbc-hbin/omp-superagent/blob/main/.github/workflows/ci.yml)
431
- includes stock OMP 19.0.0.
456
+ uses the stock CLI matching the pinned SDK.
432
457
  [Historical results](docs/releases/0.1.0.md#verification-records) apply only to the
433
458
  recorded versions and scenarios. Offline CI does not verify live accounts or production readiness.
434
459
 
@@ -441,7 +466,7 @@ recorded versions and scenarios. Offline CI does not verify live accounts or pro
441
466
  | [Execution and coordination](docs/design/execution.md) | lanes, native Host lifecycle, models, workflows, managed integration, monitoring, and the board. |
442
467
  | [Operations guide](docs/OPERATIONS.md) | platform setup, commands, and recovery. |
443
468
  | [Voice configuration guide](docs/discord-voice.md) | Codex subscription voice or the separately billed API. |
444
- | Releases | [Release notes](docs/releases/0.1.7.md) and [historical verification records](docs/releases/0.1.0.md#verification-records). |
469
+ | Releases | [Release notes](docs/releases/0.1.9.md) and [historical verification records](docs/releases/0.1.0.md#verification-records). |
445
470
 
446
471
  Built on [oh-my-pi](https://github.com/can1357/oh-my-pi), with
447
472
  [omp-superkit](https://github.com/dbc-hbin/omp-superkit) workflow integration.
@@ -129,7 +129,7 @@ SOFTWARE.
129
129
  credits `Copyright (c) 2026 SmokeDev`; the [codex-voice MIT notice](https://github.com/dmmeteo/codex-voice/blob/956d6b299f13b02a7ad036a619568e1740a2ee67/LICENSE-MIT)
130
130
  credits `Copyright (c) 2026 codex-asr contributors`. Both use the MIT permission notice reproduced above.
131
131
  Neither project grants a subscription entitlement. Discord routing, source-bound confirmation and HEAD delivery remain this project's responsibilities.
132
- - The Bun Gateway oracle and the production one-shot setup path use
132
+ - The test-only Bun Gateway oracle uses
133
133
  [discord.js](https://github.com/discordjs/discord.js), not a copied client.
134
134
  The declared range is `^14.25.1`; `bun.lock` records the resolved version.
135
135
  The inspected installed version, `14.28.1`, is **Apache-2.0, not MIT**.
@@ -256,16 +256,16 @@ was imported. This project continues to use stock OMP and native skill discovery
256
256
  source revision `055a5a440f04d0b9fd5fd75a6d14dac4c2b83553`.
257
257
  Installed metadata is in `node_modules/grammy/package.json`; dependency pins
258
258
  are in `bun.lock`.
259
- - The Bun Gateway oracle (`test/oracles/bun-gateway/telegram.ts`) and
260
- `src/setup-profiles.ts` use `Api` and `InputFile`, not a
259
+ - The Bun Gateway oracle (`test/oracles/bun-gateway/telegram.ts`) uses
260
+ grammY, not a
261
261
  copied Telegram bot or SUL implementation. Version `1.46.0`'s
262
262
  `Api.setMyProfilePhoto`, the [official method](https://core.telegram.org/bots/api#setmyprofilephoto),
263
263
  and [JPEG multipart contract](https://core.telegram.org/bots/api#inputprofilephotostatic)
264
- were checked on 2026-11-15. No separate raw Bot API client or image-conversion
265
- dependency was added.
264
+ were checked on 2026-11-15. Production setup now calls the official Bot API
265
+ from Rust; no image-conversion dependency is needed.
266
266
  - Documentation: [grammY API](https://grammy.dev/guide/api),
267
267
  [Telegram Bot API](https://core.telegram.org/bots/api).
268
- - SDK cancellation uses [`abort-controller` 3.0.0](https://github.com/mysticatea/abort-controller),
268
+ - The test oracle uses [`abort-controller` 3.0.0](https://github.com/mysticatea/abort-controller),
269
269
  the signal implementation required by grammY's Node API. Its MIT license,
270
270
  Copyright (c) 2017 Toru Nagashima, is retained in
271
271
  `node_modules/abort-controller/LICENSE`; preserve it when redistributing the dependency.
@@ -304,8 +304,8 @@ SOFTWARE.
304
304
  | `@slack/socket-mode` | `3.2.0` | [`5e8d3f08c16144a2d700c38389bf94cbcc4d5f0f`](https://github.com/slackapi/node-slack-sdk/tree/5e8d3f08c16144a2d700c38389bf94cbcc4d5f0f) | MIT |
305
305
 
306
306
  - The Bun Gateway oracle (`test/oracles/bun-gateway/slack.ts`) uses the
307
- official `WebClient` and `SocketModeClient`. Only `WebClient`, for one-shot
308
- setup, remains a production Node Slack SDK dependency. Transport, routing and
307
+ official `WebClient` and `SocketModeClient`. Both are development dependencies;
308
+ production command registration uses the Web API from Rust. Transport, routing and
309
309
  approval coordination were not copied from another Slack bot or SUL-covered bot.
310
310
  - Documentation: [Web API SDK](https://docs.slack.dev/tools/node-slack-sdk/web-api/),
311
311
  [Socket Mode SDK](https://docs.slack.dev/tools/node-slack-sdk/socket-mode/),
@@ -406,12 +406,12 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
406
406
 
407
407
  ## OMP: installed runtime and published SDK
408
408
 
409
- - SDK/API baseline: [can1357/oh-my-pi v19.0.0](https://github.com/can1357/oh-my-pi/tree/57771ae562b9345e0579bceb2d68d585e3e6927e).
409
+ - SDK/API baseline: [can1357/oh-my-pi v19.1.1](https://github.com/can1357/oh-my-pi/tree/31ffee513f27a01bba7d4dfbe12bae239cdc646a).
410
410
  - The operator installs OMP separately. This repository does not patch, build,
411
411
  or redistribute an OMP executable. Local native tests discover that installed
412
412
  runtime by default. CI verifies OMP release binaries against their checksum
413
- manifests; PR and release runs cover OMP 18.22.2 and the SDK-matched release,
414
- and also check OMP 18.20.3 on Ubuntu.
413
+ manifests. PR and release runs use the SDK-matched CLI on Linux and macOS;
414
+ OMP 18 checks are manual.
415
415
  - `src/host-broker-services.ts` implements a read-only subset of the
416
416
  [stock OMP 18.22.2 launch broker protocol](https://github.com/can1357/oh-my-pi/tree/e1ae2cc998efd1ca151b46ebefc0e0dab6c23c63/packages/coding-agent/src/launch).
417
417
  It uses the published native IPC and lock primitives without copying the broker
@@ -11,7 +11,8 @@
11
11
  "ownerId": "REPLACE_WITH_OWNER_USER_ID",
12
12
  "allowedGuildIds": ["REPLACE_WITH_GUILD_ID"],
13
13
  "allowedChannelIds": ["REPLACE_WITH_PARENT_CHANNEL_ID"],
14
- "requireAddressing": false
14
+ "requireAddressing": false,
15
+ "editProgressInPlace": false
15
16
  },
16
17
  "telegram": {
17
18
  "tokenEnv": "TELEGRAM_BOT_TOKEN",