omp-superagent 0.1.8 → 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.
- package/DESIGN.md +6 -2
- package/README.ko.md +12 -9
- package/README.md +13 -9
- package/THIRD_PARTY_NOTICES.md +8 -8
- package/docs/OPERATIONS.md +62 -20
- package/docs/design/execution.md +79 -14
- package/docs/design/messaging.md +66 -15
- package/docs/releases/0.1.9.md +18 -0
- package/gateway/bin/omp-gateway-darwin-arm64 +0 -0
- package/gateway/bin/omp-gateway-darwin-x64 +0 -0
- package/gateway/bin/omp-gateway-linux-arm64 +0 -0
- package/gateway/bin/omp-gateway-linux-x64 +0 -0
- package/host-owner/bin/notices/darwin-arm64/Cargo-LICENSES.txt +2 -0
- package/host-owner/bin/notices/darwin-arm64/Cargo-SOURCES.txt +2 -0
- package/host-owner/bin/notices/darwin-arm64/crates/bitflags-2.13.2/LICENSE-APACHE +201 -0
- package/host-owner/bin/notices/darwin-arm64/crates/bitflags-2.13.2/LICENSE-MIT +25 -0
- package/host-owner/bin/notices/darwin-arm64/crates/rustix-1.1.6/COPYRIGHT +29 -0
- package/host-owner/bin/notices/darwin-arm64/crates/rustix-1.1.6/LICENSE-APACHE +201 -0
- package/host-owner/bin/notices/darwin-arm64/crates/rustix-1.1.6/LICENSE-Apache-2.0_WITH_LLVM-exception +220 -0
- package/host-owner/bin/notices/darwin-arm64/crates/rustix-1.1.6/LICENSE-MIT +23 -0
- package/host-owner/bin/notices/darwin-x64/Cargo-LICENSES.txt +2 -0
- package/host-owner/bin/notices/darwin-x64/Cargo-SOURCES.txt +2 -0
- package/host-owner/bin/notices/darwin-x64/crates/bitflags-2.13.2/LICENSE-APACHE +201 -0
- package/host-owner/bin/notices/darwin-x64/crates/bitflags-2.13.2/LICENSE-MIT +25 -0
- package/host-owner/bin/notices/darwin-x64/crates/rustix-1.1.6/COPYRIGHT +29 -0
- package/host-owner/bin/notices/darwin-x64/crates/rustix-1.1.6/LICENSE-APACHE +201 -0
- package/host-owner/bin/notices/darwin-x64/crates/rustix-1.1.6/LICENSE-Apache-2.0_WITH_LLVM-exception +220 -0
- package/host-owner/bin/notices/darwin-x64/crates/rustix-1.1.6/LICENSE-MIT +23 -0
- package/host-owner/bin/notices/linux-arm64/Cargo-LICENSES.txt +3 -0
- package/host-owner/bin/notices/linux-arm64/Cargo-SOURCES.txt +3 -0
- package/host-owner/bin/notices/linux-arm64/crates/bitflags-2.13.2/LICENSE-APACHE +201 -0
- package/host-owner/bin/notices/linux-arm64/crates/bitflags-2.13.2/LICENSE-MIT +25 -0
- package/host-owner/bin/notices/linux-arm64/crates/linux-raw-sys-0.12.1/COPYRIGHT +29 -0
- package/host-owner/bin/notices/linux-arm64/crates/linux-raw-sys-0.12.1/LICENSE-APACHE +201 -0
- package/host-owner/bin/notices/linux-arm64/crates/linux-raw-sys-0.12.1/LICENSE-Apache-2.0_WITH_LLVM-exception +220 -0
- package/host-owner/bin/notices/linux-arm64/crates/linux-raw-sys-0.12.1/LICENSE-MIT +23 -0
- package/host-owner/bin/notices/linux-arm64/crates/rustix-1.1.6/COPYRIGHT +29 -0
- package/host-owner/bin/notices/linux-arm64/crates/rustix-1.1.6/LICENSE-APACHE +201 -0
- package/host-owner/bin/notices/linux-arm64/crates/rustix-1.1.6/LICENSE-Apache-2.0_WITH_LLVM-exception +220 -0
- package/host-owner/bin/notices/linux-arm64/crates/rustix-1.1.6/LICENSE-MIT +23 -0
- package/host-owner/bin/notices/linux-x64/Cargo-LICENSES.txt +3 -0
- package/host-owner/bin/notices/linux-x64/Cargo-SOURCES.txt +3 -0
- package/host-owner/bin/notices/linux-x64/crates/bitflags-2.13.2/LICENSE-APACHE +201 -0
- package/host-owner/bin/notices/linux-x64/crates/bitflags-2.13.2/LICENSE-MIT +25 -0
- package/host-owner/bin/notices/linux-x64/crates/linux-raw-sys-0.12.1/COPYRIGHT +29 -0
- package/host-owner/bin/notices/linux-x64/crates/linux-raw-sys-0.12.1/LICENSE-APACHE +201 -0
- package/host-owner/bin/notices/linux-x64/crates/linux-raw-sys-0.12.1/LICENSE-Apache-2.0_WITH_LLVM-exception +220 -0
- package/host-owner/bin/notices/linux-x64/crates/linux-raw-sys-0.12.1/LICENSE-MIT +23 -0
- package/host-owner/bin/notices/linux-x64/crates/rustix-1.1.6/COPYRIGHT +29 -0
- package/host-owner/bin/notices/linux-x64/crates/rustix-1.1.6/LICENSE-APACHE +201 -0
- package/host-owner/bin/notices/linux-x64/crates/rustix-1.1.6/LICENSE-Apache-2.0_WITH_LLVM-exception +220 -0
- package/host-owner/bin/notices/linux-x64/crates/rustix-1.1.6/LICENSE-MIT +23 -0
- package/host-owner/bin/omp-host-owner-darwin-arm64 +0 -0
- package/host-owner/bin/omp-host-owner-darwin-x64 +0 -0
- package/host-owner/bin/omp-host-owner-linux-arm64 +0 -0
- package/host-owner/bin/omp-host-owner-linux-x64 +0 -0
- package/package.json +10 -8
- package/skills/head/SKILL.md +3 -11
- package/skills/head/references/routing.md +23 -17
- package/skills/head/references/supervision.md +13 -1
- package/skills/lane/references/workflow.md +8 -8
- package/src/cli.ts +4 -4
- package/src/contracts.ts +71 -7
- package/src/discord-command-registration.ts +34 -186
- package/src/extension.ts +22 -2
- package/src/gateway-client.ts +11 -59
- package/src/gateway-protocol.ts +35 -1
- package/src/head-recovery.ts +226 -17
- package/src/host-extension.ts +82 -9
- package/src/host-protocol.ts +5 -9
- package/src/lane-models.ts +8 -0
- package/src/managed-ulw-probe.ts +22 -20
- package/src/messenger-command-catalog.json +6 -3
- package/src/messenger-commands.ts +9 -2
- package/src/operator.ts +77 -0
- package/src/pr-github-schema.ts +2 -0
- package/src/pr-intake-automation.ts +1 -2
- package/src/pr-intake-comment.ts +1 -2
- package/src/pr-intake-fix.ts +1 -2
- package/src/pr-intake-github.ts +1 -2
- package/src/pr-intake-material.ts +1 -2
- package/src/pr-intake-tree.ts +1 -2
- package/src/pr-review-models.ts +28 -0
- package/src/result-attachment.ts +60 -79
- package/src/runtime.ts +1461 -254
- package/src/setup-profiles.ts +26 -65
- package/src/slack-command-registration.ts +48 -197
- package/src/store.ts +265 -45
- package/src/superkit-skills.ts +22 -0
- package/src/telegram-command-languages.json +17 -0
- package/src/telegram-command-registration.ts +32 -134
- package/src/worker-bridge.ts +21 -0
- package/src/worker-enrollment.ts +2 -1
- package/src/worker-host.ts +0 -24
- package/src/worker-serve-prepare.ts +19 -0
- package/src/worker-service.ts +51 -47
- package/scripts/ci.ts +0 -44
- package/scripts/release.ts +0 -112
- package/scripts/test-omp.sh +0 -44
- package/src/discord-commands.ts +0 -29
- package/src/discord-markdown.ts +0 -399
- package/src/slack-commands.ts +0 -18
- package/src/telegram-signal.ts +0 -14
- package/src/worker-stdio.ts +0 -61
package/DESIGN.md
CHANGED
|
@@ -50,8 +50,12 @@ canonical `stateDir` are instance-owned, not arbitrary URLs or a general RPC pro
|
|
|
50
50
|
Native children get neither the manager nor the board. Managed extensions are not
|
|
51
51
|
installed globally into ordinary OMP.
|
|
52
52
|
|
|
53
|
-
The operator CLI is still Bun, not a second resident Gateway.
|
|
54
|
-
|
|
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
|
|
55
59
|
transports. The short-lived config reader reuses the CLI parser without
|
|
56
60
|
importing OMP or messenger SDKs. Session recovery and named preset validation
|
|
57
61
|
use their public OMP interfaces on demand; no OMP source or core patch is
|
package/README.ko.md
CHANGED
|
@@ -104,7 +104,7 @@ OS 샌드박스가 아닙니다. 자세한 내용은 [설계(영문)](DESIGN.md)
|
|
|
104
104
|
## 배포 형태
|
|
105
105
|
|
|
106
106
|
[npm 패키지](https://www.npmjs.com/package/omp-superagent)를 Bun 또는 npm으로 설치하거나
|
|
107
|
-
[GitHub Release](https://github.com/dbc-hbin/omp-superagent/releases/tag/v0.1.
|
|
107
|
+
[GitHub Release](https://github.com/dbc-hbin/omp-superagent/releases/tag/v0.1.9)의 소스·npm tarball을 받으세요.
|
|
108
108
|
실행에는 Bun이 필요하며 독립 실행 바이너리는 아닙니다. 설치 시 관리형 의존성을 준비합니다.
|
|
109
109
|
Host를 실행하려면 별도로 설치한 OMP가 필요하며, 이 프로젝트가 패치하거나 빌드하지 않습니다.
|
|
110
110
|
|
|
@@ -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.
|
|
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.
|
|
156
|
+
npm install --global omp-superagent@0.1.9
|
|
157
157
|
```
|
|
158
158
|
|
|
159
159
|
postinstall이 필수 관리형 omp-superkit 통합을 준비하므로 설치 스크립트를 생략하지 마세요.
|
|
@@ -333,12 +333,15 @@ SSH가 끊겨도 Host 자체는 종료되지 않습니다. Host가 종료된 뒤
|
|
|
333
333
|
- 헤드에서 Mnemopi가 활성화되어 검색할 수 있으면 다른 운영자 채널에서도 `지난주 로그인 버그 보던 데서 계속해줘`라고 할 수 있습니다. Mnemopi `recall`로 단서를 찾고, 날짜와 작업 내용을 원래 세션에서 확인합니다. 하나로 좁혀지면 그 저장소에서 이어가고, 여럿이면 번호로 고릅니다. 다른 메모리 백엔드로도 관리형 세션을 실행할 수 있지만 이 과거 작업 검색은 지원하지 않습니다. 제한 그룹방은 검색 대상이 아닙니다.
|
|
334
334
|
- 전역 조정은 `/head 요청`을 사용합니다. 저장소·주제별 레인 맥락은
|
|
335
335
|
독립적입니다. 음성 첨부 메타데이터 보존이 자동 전사를 뜻하지는 않습니다.
|
|
336
|
-
- `/help`와 `/status`로 명령·상태를 확인합니다. `/model
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
336
|
+
- `/help`와 `/status`로 명령·상태를 확인합니다. Discord 작업 스레드에서 `/model`을 열면
|
|
337
|
+
유휴 HEAD 또는 해당 스레드에 연결된 유휴 레인을 선택할 수 있습니다. 모델 ID를 직접 입력하는
|
|
338
|
+
`/model <provider/model>`은 `--lane`을 붙이지 않으면 HEAD에 적용됩니다. `/effort`도
|
|
339
|
+
HEAD에 적용됩니다. `/head`로 HEAD 모델 변경을 요청하면 해당 턴이 끝난 뒤 적용합니다.
|
|
340
|
+
전역 프리셋 저장은 명시적 `--global`이 필요합니다. Slack 일반 메시지 명령은 `!`를 씁니다.
|
|
340
341
|
- `/usage`는 OMP가 조회한 기본·확장 제공자의 계정별 한도와 리셋 시각을 마스킹된 계정 이름과 함께 보여줍니다. 모델은 호출하지 않습니다.
|
|
341
|
-
- `/usage
|
|
342
|
+
- Discord 명령 목록과 채팅에서는 `/usage-reset`으로 계정별 보유 리셋권을 확인합니다.
|
|
343
|
+
Telegram은 `/usage reset`, Slack은 `!usage reset` 또는 `/superagent-usage reset`을 사용합니다.
|
|
344
|
+
계정을 고르고 **Confirm**을 누르면 지금 쓸 수
|
|
342
345
|
있는 리셋권 한 개를 사용합니다. 계정 지정 리셋을 지원하는 순정 OMP가 필요합니다.
|
|
343
346
|
이와 별개로, 도구 실행이나 부분 응답 없이 Codex 한도 초과가 확인된 경우 HEAD는 새 사용량 보고에서
|
|
344
347
|
회복을 확인한 뒤 후속 대기 요청을 처리합니다. 리셋권을 쓰거나 실패한 요청을 완료 처리·재실행하지 않습니다.
|
|
@@ -418,7 +421,7 @@ bun run test:ci
|
|
|
418
421
|
| [실행과 조율(영문)](docs/design/execution.md) | 레인·native Host 수명·모델·workflow·관리형 통합·모니터링·게시판. |
|
|
419
422
|
| [운영 가이드](docs/OPERATIONS.md) | 설치·설정·명령·복구 절차. |
|
|
420
423
|
| [Discord 음성채팅](docs/discord-voice.md) | Codex 구독 음성 또는 별도 과금되는 API 음성 선택. |
|
|
421
|
-
| 릴리즈 | [릴리즈 노트](docs/releases/0.1.
|
|
424
|
+
| 릴리즈 | [릴리즈 노트](docs/releases/0.1.9.md) 및 [과거 검증 기록](docs/releases/0.1.0.md#verification-records). |
|
|
422
425
|
|
|
423
426
|
[oh-my-pi](https://github.com/can1357/oh-my-pi)를 기반으로 하며, workflow에는 [omp-superkit](https://github.com/dbc-hbin/omp-superkit)을 사용합니다.
|
|
424
427
|
|
package/README.md
CHANGED
|
@@ -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.
|
|
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.
|
|
@@ -156,7 +156,7 @@ To install OMP separately, see the
|
|
|
156
156
|
[upstream instructions](https://github.com/can1357/oh-my-pi#install).
|
|
157
157
|
|
|
158
158
|
```sh
|
|
159
|
-
bun add --global --trust omp-superagent@0.1.
|
|
159
|
+
bun add --global --trust omp-superagent@0.1.9
|
|
160
160
|
omp-sa --help
|
|
161
161
|
```
|
|
162
162
|
|
|
@@ -169,7 +169,7 @@ Ensure `bun pm bin --global` is on `PATH`.
|
|
|
169
169
|
Alternatively, with Bun on `PATH`:
|
|
170
170
|
|
|
171
171
|
```sh
|
|
172
|
-
npm install --global omp-superagent@0.1.
|
|
172
|
+
npm install --global omp-superagent@0.1.9
|
|
173
173
|
```
|
|
174
174
|
|
|
175
175
|
Keep lifecycle scripts enabled for the managed omp-superkit integration.
|
|
@@ -372,12 +372,16 @@ worker. That is not a stop command for an already running lane.
|
|
|
372
372
|
the original channel binding, transcript or approvals. Choose by number if multiple tasks match.
|
|
373
373
|
- Use `/head <request>` for coordination or direct global work. Repositories and
|
|
374
374
|
topics keep independent lane context; voice metadata does not imply transcription.
|
|
375
|
-
- Use `/help` and `/status` for controls and state.
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
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 `!`.
|
|
379
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.
|
|
380
|
-
- `/usage
|
|
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**
|
|
381
385
|
to spend one available ticket; this requires stock OMP with account-targeted reset support.
|
|
382
386
|
Separately, after a proven Codex quota rejection with no tool calls or partial answer,
|
|
383
387
|
HEAD releases later queued requests when fresh usage evidence confirms recovery. It does
|
|
@@ -462,7 +466,7 @@ recorded versions and scenarios. Offline CI does not verify live accounts or pro
|
|
|
462
466
|
| [Execution and coordination](docs/design/execution.md) | lanes, native Host lifecycle, models, workflows, managed integration, monitoring, and the board. |
|
|
463
467
|
| [Operations guide](docs/OPERATIONS.md) | platform setup, commands, and recovery. |
|
|
464
468
|
| [Voice configuration guide](docs/discord-voice.md) | Codex subscription voice or the separately billed API. |
|
|
465
|
-
| Releases | [Release notes](docs/releases/0.1.
|
|
469
|
+
| Releases | [Release notes](docs/releases/0.1.9.md) and [historical verification records](docs/releases/0.1.0.md#verification-records). |
|
|
466
470
|
|
|
467
471
|
Built on [oh-my-pi](https://github.com/can1357/oh-my-pi), with
|
|
468
472
|
[omp-superkit](https://github.com/dbc-hbin/omp-superkit) workflow integration.
|
package/THIRD_PARTY_NOTICES.md
CHANGED
|
@@ -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
|
|
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`)
|
|
260
|
-
|
|
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.
|
|
265
|
-
dependency
|
|
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
|
-
-
|
|
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`.
|
|
308
|
-
|
|
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/),
|
package/docs/OPERATIONS.md
CHANGED
|
@@ -206,13 +206,13 @@ board_subscribe({channels: ["general", "repo:/absolute/repository"]})
|
|
|
206
206
|
사용한다. 이 저장소는 OMP를 다운로드하거나 소스에서 빌드하지 않는다.
|
|
207
207
|
|
|
208
208
|
```sh
|
|
209
|
-
bun add --global --trust omp-superagent@0.1.
|
|
209
|
+
bun add --global --trust omp-superagent@0.1.9
|
|
210
210
|
omp-sa --help
|
|
211
211
|
```
|
|
212
212
|
|
|
213
213
|
`--trust`는 관리형 omp-superkit 준비 등 패키지 설치 스크립트를 허용한다.
|
|
214
214
|
`bun pm bin --global`의 출력 경로를 PATH에 포함한다. Bun이 PATH에 있으면
|
|
215
|
-
`npm install --global omp-superagent@0.1.
|
|
215
|
+
`npm install --global omp-superagent@0.1.9`도 사용할 수 있다.
|
|
216
216
|
설정은 설치 디렉터리가 아닌 사용자 작업 디렉터리에
|
|
217
217
|
`omp-sa setup --config ./config.local.json`으로 만든다. 설치만으로 봇을 활성화하지 않는다.
|
|
218
218
|
|
|
@@ -244,7 +244,9 @@ export PATH="$PWD/.upstream/toolchain/node_modules/.bin:$PATH"
|
|
|
244
244
|
|
|
245
245
|
설치에는 공식 [dbc-hbin/omp-superkit](https://github.com/dbc-hbin/omp-superkit)이 항상 포함된다.
|
|
246
246
|
루트 `bun install`의 postinstall이 관리형 패키지를 준비한다. 활성화 검사는 배포된 native SDK의
|
|
247
|
-
실제 prompt composition을 사용한다.
|
|
247
|
+
실제 prompt composition을 사용한다. 최신 레이아웃에서는 `skill://super`와 `skill://super-*`의
|
|
248
|
+
지침과 포인터를 검사하고, 기존 스킬 ID도 별칭으로 해석되는지 확인한다. 이전 레이아웃의 유효한
|
|
249
|
+
설치는 그대로 사용할 수 있다. omp-superkit만 다시 준비할 때는 다음을 사용한다.
|
|
248
250
|
|
|
249
251
|
```sh
|
|
250
252
|
bun run prepare:ulw
|
|
@@ -332,8 +334,10 @@ export DISCORD_BOT_TOKEN
|
|
|
332
334
|
위 입력은 Bash에서 토큰이 화면과 명령 이력에 노출되지 않게 받는 예다.
|
|
333
335
|
프로세스는 현재 사용자 권한과 환경을 사용한다. 레인과 worktree는 보안 샌드박스가 아니다.
|
|
334
336
|
|
|
335
|
-
Discord 자동완성 목록은 명시적으로 등록한다.
|
|
336
|
-
|
|
337
|
+
Discord 자동완성 목록은 명시적으로 등록한다. 명령을 등록하기 전에 Gateway와 HEAD 모두
|
|
338
|
+
새 버전으로 실행 중이어야 한다. Gateway만 교체하면 기존 HEAD에 재연결될 수 있다.
|
|
339
|
+
Discord에서 `/help`를 보내 `/usage-reset`이 표시되는지 확인한다. 표시되지 않으면
|
|
340
|
+
등록하지 말고 HEAD 업데이트를 먼저 마친다. 작업 중인 HEAD를 강제 종료하지 않는다.
|
|
337
341
|
|
|
338
342
|
```sh
|
|
339
343
|
bun --no-env-file src/cli.ts discord-commands --config config.local.json
|
|
@@ -342,7 +346,7 @@ bun --no-env-file src/cli.ts discord-commands --config config.local.json --apply
|
|
|
342
346
|
|
|
343
347
|
첫 명령은 읽기 전용 변경 확인이다. `--apply`는 **이 봇의 전역 명령 목록 전체를 교체**하므로
|
|
344
348
|
전용 Superagent 앱에서만 사용한다. Hermes 전용 명령은 제거하고 `/head`를 포함한
|
|
345
|
-
[공통 명령
|
|
349
|
+
[공통 명령 목록과 Discord 전용 `/usage-reset`](../src/messenger-command-catalog.json)을 등록한다.
|
|
346
350
|
별도 guild 명령이 전역 명령을 가리는 경우 몰래 삭제하지 않고 충돌을 알린다.
|
|
347
351
|
등록은 모델·메신저 연결을 시작하지 않으며 setup·doctor·start의 부수 효과로 실행되지 않는다.
|
|
348
352
|
인수가 있는 명령은 선택적인 `text` 필드를 사용한다. 예를 들어 `/model`의 `text`에
|
|
@@ -476,7 +480,8 @@ export SLACK_BOT_TOKEN SLACK_APP_TOKEN
|
|
|
476
480
|
```
|
|
477
481
|
|
|
478
482
|
Rust Gateway가 [Socket Mode](https://docs.slack.dev/apis/events-api/using-socket-mode/)와
|
|
479
|
-
[Web API](https://docs.slack.dev/apis/web-api/)를 사용한다. 명령
|
|
483
|
+
[Web API](https://docs.slack.dev/apis/web-api/)를 사용한다. 명령 등록은 같은 배포 파일의 일회성 Rust
|
|
484
|
+
REST 명령을 사용하며 Socket Mode나 Gateway 데몬을 시작하지 않는다.
|
|
480
485
|
스레드 조회는 현재 공식 [conversations.replies](https://docs.slack.dev/reference/methods/conversations.replies/)
|
|
481
486
|
문서의 bot history scopes를 따른다. bot token이면 채널 스레드를 무조건 조회할 수 없다는
|
|
482
487
|
과거 제한을 전제로 하지 않는다. 실제 접근 권한·workspace 보존 정책·API rate limit은 여전히 적용된다.
|
|
@@ -696,7 +701,7 @@ Judge에서 지정하도록 권장**한다. 기존 전역·프로젝트·overlay
|
|
|
696
701
|
`settings.json`/`agent.db`만 남아 실효 역할을 판정할 수 없으면 확인 불가로 안내한다.
|
|
697
702
|
legacy 파일은 존재 여부만 확인하고 읽거나 이관하지 않는다. 명시적인 상위 layer의
|
|
698
703
|
역할 선택·해제와 현행 전역 설정의 우선순위는 보존한다.
|
|
699
|
-
메신저 `/model`은
|
|
704
|
+
메신저 `/model`은 선택한 세션의 모델을 제어하므로, 영속적인
|
|
700
705
|
judge 역할 설정을 대신하는 경로로 안내하지 않는다. 기존 구성의 토큰 갱신·취소·저장 실패에는
|
|
701
706
|
이 검사와 권장을 실행하지 않는다.
|
|
702
707
|
|
|
@@ -963,30 +968,48 @@ paused native lane goal도 재개한다. 자동 report·재연결·새 queued
|
|
|
963
968
|
기록과 고정 안내만 남기고 새 메시지로 제어하도록 요청한다. Slack의 `!` 제어도 같은 정책이다.
|
|
964
969
|
일반 작업 메시지 수정은 새 입력 revision이며 이미 실행된 외부 효과를 취소하지 않는다.
|
|
965
970
|
|
|
966
|
-
### 헤드의
|
|
971
|
+
### 모델 선택과 헤드의 effort
|
|
967
972
|
|
|
968
|
-
|
|
969
|
-
|
|
973
|
+
Discord에서는 레인 스레드에서 **`/model`만** 실행하면 된다. 첫 번째 드롭다운에서
|
|
974
|
+
**HEAD** 또는 **현재 레인**을 고른다. 두 번째 드롭다운에서 공급자를 고르면 같은 자리에
|
|
975
|
+
해당 공급자의 모델 목록이 나온다. 마지막으로 모델을 선택해야 변경된다. 변경할 레인이
|
|
976
|
+
연결되어 있지 않은 대화에서는 HEAD만 선택할 수 있다.
|
|
977
|
+
텍스트로 모델 ID를 직접 보낼 때 `--lane`을 생략하면 레인 스레드에서도 **HEAD**가 바뀐다.
|
|
978
|
+
Discord·Telegram은 일반 `/` 텍스트를,
|
|
970
979
|
Discord는 등록된 슬래시 명령을 함께 지원한다. Slack은 일반 `!model`·`!effort` 텍스트와
|
|
971
980
|
등록된 `/superagent-model`·`/superagent-effort`를 지원하며 별도 HTTP endpoint는 없다.
|
|
972
981
|
|
|
973
982
|
| 명령 | 동작 |
|
|
974
983
|
| --- | --- |
|
|
975
|
-
| `/model` |
|
|
984
|
+
| `/model` | 모델 선택 메뉴 열기. Discord에서는 HEAD 또는 현재 레인을 선택하고, Telegram·Slack에서는 HEAD를 변경 |
|
|
976
985
|
| `/model list` | 현재 native 인증·활성화 상태에서 선택 가능한 chat 모델 목록 |
|
|
977
986
|
| `/model <provider/model>` | 목록의 정확한 provider/model로 헤드 모델 변경 |
|
|
987
|
+
| `/model --lane <provider/id>` | 현재 대화에 연결된 유휴 레인의 모델만 직접 변경. HEAD 모델 호출이나 실패한 요청 재실행 없음 |
|
|
978
988
|
| `/effort` | 현재 effort 표시 및 현재 모델이 지원하는 강도 선택 메뉴 열기 |
|
|
979
989
|
| `/effort <level>` | 조회에 표시된 값으로 헤드 effort 변경 |
|
|
980
990
|
| `/model preset` 또는 `/model preset list` | 기존 native 프리셋의 이름·유효성·가용 기본 모델 조회 |
|
|
981
991
|
| `/model preset <name>` | 해당 native 프리셋의 전체 역할·기본 effort를 유휴 헤드 세션에 적용 |
|
|
982
992
|
| `/model preset <name> --global` | 현재 헤드에 적용·확인한 동일 snapshot을 native 전역 기본 역할·effort에도 저장 |
|
|
983
993
|
|
|
994
|
+
레인 모델의 쿼터 소진이 확인되면 코드가 원래 대화에 한 번 알린다. 해당 레인의 후속 요청은
|
|
995
|
+
운영자가 모델을 선택할 때까지 기다린다. 실행 여부가 불확실한 요청은 원래 효과를 확인한 뒤
|
|
996
|
+
알림의 `/resolve --lane <input-id>`로 닫아야 한다. 일시적 429 등 그 밖의 실행 오류는
|
|
997
|
+
HEAD가 원래 작업 범위에서 복구하며, 쿼터 소진만으로 HEAD 모델이나 전역 설정을 바꾸지 않는다.
|
|
998
|
+
모델 변경 응답이 유실되면 Discord에서는 **원래 레인 대화에서 `/model`을 새로 열고
|
|
999
|
+
현재 레인과 같은 공급자·모델을 다시 선택**한다. 직접 입력하려면 같은 대화에서
|
|
1000
|
+
`/model --lane <provider/id>`를 새로 보낸다. 이미 적용됐다면 다시 바꾸지 않고 확인하며,
|
|
1001
|
+
실제 모델이나 소유권을 확인할 수 없으면 보류한다.
|
|
1002
|
+
이후 직접 고른 모델을 이전 오류 보고가 덮어쓰지는 않는다.
|
|
1003
|
+
수동 `/cron pr-review`에서 쿼터가 소진된 경우에도 해당 PR 스레드에서 모델을 바꿀 수 있다.
|
|
1004
|
+
이때는 현재 레인을 선택하면 도구 없이 정적 검토가 가능한 모델만 표시한다.
|
|
1005
|
+
같은 카드에서 HEAD를 선택하면 일반 모델 목록이 나온다. 무인 PR 검토에는 적용되지 않는다.
|
|
1006
|
+
|
|
984
1007
|
Discord와 Slack은 드롭다운, Telegram은 인라인 버튼으로 표시한다. 메뉴를 열거나 페이지를
|
|
985
1008
|
넘기는 것만으로는 아무 설정도 바뀌지 않는다. 메뉴는 5분 후 또는 Gateway가 재시작되면
|
|
986
1009
|
만료된다. 강도 메뉴를 연 뒤 헤드 모델이 달라졌다면 다시 열어야 한다. 클릭 접수와 실제 변경
|
|
987
1010
|
완료는 별개이며, 결과는 원래 대화에 별도로 표시된다. 텍스트 명령도 계속 사용할 수 있다.
|
|
988
1011
|
|
|
989
|
-
조회는 실행 중에도 모델 호출 없이 처리한다. 변경은 헤드가 유휴이고 승인·goal·백그라운드
|
|
1012
|
+
조회는 실행 중에도 모델 호출 없이 처리한다. HEAD 변경은 헤드가 유휴이고 승인·goal·백그라운드
|
|
990
1013
|
작업·소유 서비스·compaction·불확실한 제출이 없을 때만 처리한다. 바쁘면 거부하므로 작업이
|
|
991
1014
|
정리된 뒤 새 명령을 보내야 한다. 변경을 위해 실행 중 작업을 자동 중단하지 않는다.
|
|
992
1015
|
모델 변경 후 effort가 native 지원 범위에 맞춰 조정될 수 있으며 응답은 실제 readback 값을
|
|
@@ -1189,7 +1212,7 @@ head SHA를 사용한다. GitHub가 원자적으로 비교하는 값은 head SHA
|
|
|
1189
1212
|
| `/restart` | 바쁜 헤드를 체크포인트한 뒤 Gateway와 헤드 교체. 원래 대화 ACK·실제 안전한 종료 확인, 같은 세션/모델 복원, 안전한 goal 재개. 레인은 유지하며 불확실한 효과는 보류 |
|
|
1190
1213
|
| `/context` | 헤드 native 컨텍스트 사용량·한도 조회. 추정치·미상은 그대로 표시 |
|
|
1191
1214
|
| `/usage` | 설정한 프로필의 순정 `omp usage`에서 제공자별 계정 한도·사용량·리셋 시각 조회. 세션 토큰·비용 통계가 아님 |
|
|
1192
|
-
| `/usage reset` | 지금 쓸 수 있는 리셋권의 계정별·전체 개수 조회. 계정을 고른 뒤 Confirm을 눌러야 그 계정의 리셋권 1개 사용 |
|
|
1215
|
+
| `/usage-reset` (Discord), `/usage reset` (Telegram), `!usage reset` (Slack) | 지금 쓸 수 있는 리셋권의 계정별·전체 개수 조회. 계정을 고른 뒤 Confirm을 눌러야 그 계정의 리셋권 1개 사용 |
|
|
1193
1216
|
| `/compact [보존할 내용]` | 유휴 헤드의 native 컨텍스트 압축. 여러 줄 보존 지시 전달 가능 |
|
|
1194
1217
|
| `/stop` | 연결된 레인은 일시정지. 미배정 대화에서는 경로 질문이나 실행 중인 요청의 원문에 답장해 대상을 지정. 배정 대기와 HEAD 실행이 함께 있거나 수정본이 서로 다른 레인을 가리키면 임의로 중지하지 않고 같은 대화에서 안내 |
|
|
1195
1218
|
| `/stop head` | 현재 주제와 무관하게 공유 헤드 작업 중단 |
|
|
@@ -1214,10 +1237,16 @@ Gateway는 헤드가 연속 **30분 이상 유휴**이고 native 컨텍스트
|
|
|
1214
1237
|
CLI 조회 실패와 확인 가능한 한도가 없는 경우는 구분한다. Slack에서는 `!usage`
|
|
1215
1238
|
또는 등록된 `/superagent-usage`를 사용한다.
|
|
1216
1239
|
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
`/usage
|
|
1220
|
-
|
|
1240
|
+
리셋권 메뉴는 설치된 OMP CLI가 계정 지정 리셋권 사용을 지원할 때 동작한다.
|
|
1241
|
+
Discord 명령 목록과 허용된 일반 채팅에서는 인수 없는 `/usage-reset`만 사용한다.
|
|
1242
|
+
`/usage`는 인수 없는 한도 조회 전용이다. 예전 채팅의 `/usage reset`과 오래된 등록의
|
|
1243
|
+
`/usage text:reset`은 거부되며, 리셋권 메뉴를 열거나 모델·레인 작업을 시작하지 않는다.
|
|
1244
|
+
Gateway와 HEAD 업데이트 후 Discord `/help`에 `/usage-reset`이 표시되는지 확인한다.
|
|
1245
|
+
그런 다음 `discord-commands` 읽기 전용 결과에서 `/usage-reset` 추가를 확인하고 위의 전역
|
|
1246
|
+
등록 절차를 따른다. `/help` 확인 후에는 등록 전이라도 Discord에서 **일반 채팅 메시지**로
|
|
1247
|
+
`/usage-reset`을 보낼 수 있다(`requireAddressing`이 필요한 채널에서는 봇 멘션 또는 답장).
|
|
1248
|
+
Telegram에서는 `/usage reset`, Slack에서는 `!usage reset` 또는 `/superagent-usage reset`을 사용한다.
|
|
1249
|
+
`Codex · 계정 #7 · al…`처럼
|
|
1221
1250
|
로컬 `omp usage reset`의 계정 지정 번호와 가능한 경우 짧게 마스킹한 계정·조직 이름을 표시한다.
|
|
1222
1251
|
전체 이메일·제공자 계정 ID는 채팅에 넣지 않는다. 메뉴 열기·계정 선택·Cancel은 비용이 없다.
|
|
1223
1252
|
확인 카드는 5분 뒤 만료되며 원래 대화의 운영자만 Confirm으로 한 번 사용할 수 있다. 사용 결과가 불확실하면
|
|
@@ -1278,6 +1307,15 @@ Slack 일반 메시지는 `!resolve [input-id]`를 사용한다.
|
|
|
1278
1307
|
불명확한 것만으로는 풀지 않는다. 리셋권을 쓰거나, 테스트 모델 호출을 하거나,
|
|
1279
1308
|
실패한 원래 작업을 다시 보내지 않는다. 다른 실패와 불확실한 외부 효과는 계속 보류한다.
|
|
1280
1309
|
|
|
1310
|
+
모델 거절(`provider_refusal`)이나 제공자 오류처럼 도구를 하나도 시작하기 전에 끝난 헤드
|
|
1311
|
+
요청은 같은 실행 기록(요청 하나, 도구 호출 없는 실패 응답, 사용량 기록뿐)으로 확인되면
|
|
1312
|
+
보류하지 않고 실패로 닫으며, 다시 실행하지 않고 다음 요청을 처리한다(쿼터·사용량 한도 거절은
|
|
1313
|
+
복구가 확인되기 전에는 재시작 뒤 `session_exit`나 모델 변경·어댑터 부재가 있어도 계속 보류한다). 재시작 뒤 이미
|
|
1314
|
+
보류된 같은 종류의 입력도 복구 점검에서 닫는다(receipt 뒤에는 사용량 기록과 `session_exit` 같은
|
|
1315
|
+
custom 기록만 허용하고, 뒤에 메시지·새 실행·도구 시작이 있으면 계속 보류한다). 도구가 하나라도 시작됐거나 기록을 읽을 수
|
|
1316
|
+
없으면 계속 보류하고, 실패 안내에 정확한 `/resolve <input-id>`를 적는다. 보류 중 새 헤드
|
|
1317
|
+
메시지가 오면 막은 입력 ID와 `/resolve` 안내를 마커와 함께 한 트랜잭션에 저장해 한 번만 보낸다.
|
|
1318
|
+
|
|
1281
1319
|
요청 결과가 불확실해지면 코드가 먼저 native 근거와 실행 신원을 대조하고, 판단 가능한 근거가
|
|
1282
1320
|
있을 때 같은 헤드가 기존 native 세션에서 별도의 복구 판단 턴을 수행한다.
|
|
1283
1321
|
다른 AI 감독자나 새 세션을 만들지 않으며 원래 요청도 다시 제출하지 않는다. 실행·goal·비동기
|
|
@@ -1461,10 +1499,13 @@ bun --no-env-file src/cli.ts uninstall --config config.local.json
|
|
|
1461
1499
|
- 모든 플랫폼의 입력 첨부는 요청당 최대 10개, 개별 20 MiB, 합계 40 MiB다.
|
|
1462
1500
|
선언 크기·실제 스트림 크기를 대조하며 redirect는 따르지 않는다.
|
|
1463
1501
|
Telegram에서 `file_size`가 없으면 크기 미상(`null`)으로 저장한다. 알려진 0바이트와 구분하며,
|
|
1464
|
-
미상 크기도 실제 다운로드 바이트의 파일·요청·이미지
|
|
1465
|
-
|
|
1502
|
+
미상 크기도 실제 다운로드 바이트의 파일·요청·이미지 한도를 적용한다. Gateway가 전용 디렉터리에
|
|
1503
|
+
파일을 저장하고 요청 전체가 완료되면 파일별 경로·SHA-256을 반환한다. HEAD는 요청 ID와
|
|
1504
|
+
파일 순서로 영수증을 검증한다. PNG/JPEG/GIF/WebP는 내용 시그니처를 확인하며,
|
|
1505
|
+
모델에 넘길 바이트의 SHA-256이 영수증과 다르면 요청을 취소한다.
|
|
1466
1506
|
RPC base64 입력의 디코딩 후 이미지 데이터 합계는 별도로 8 MiB로 제한한다.
|
|
1467
1507
|
그 밖의 파일은 로컬 경로를 제공한다. 임의 URL 다운로드·문서 자동 변환은 제공하지 않는다.
|
|
1508
|
+
Gateway 재시작 시에는 소유권과 형식이 확인된 미완료 다운로드만 정리한다. 완료된 첨부는 남는다.
|
|
1468
1509
|
자격 증명·서명된 다운로드 URL은 모델 프롬프트에 넣지 않는다.
|
|
1469
1510
|
안전한 다운로드에 실패하면 그 요청의 모델 실행을 시작하지 않는다.
|
|
1470
1511
|
- Discord·Telegram 답장의 참조 ID·작성자·본문과 Telegram 선택 인용문을 head와 명시적 레인
|
|
@@ -1604,6 +1645,7 @@ GitHub 소스 아카이브는 커밋된 소스만 담으며 설치할 때 현재
|
|
|
1604
1645
|
owner를 빌드한다. npm `.tgz`는 네 플랫폼용 실행 파일과 라이선스 고지를 함께 담아 설치
|
|
1605
1646
|
머신에서 Rust 빌드를 요구하지 않는다. 실제 실행에는 두 배포 모두 Bun과 별도 설치한 OMP가
|
|
1606
1647
|
필요하다. 관리형 omp-superkit은 설치 단계에서 준비하며 아카이브에 내장하지 않는다.
|
|
1648
|
+
CI·기준판 테스트·릴리즈 스크립트는 소스 checkout 전용이며 npm 패키지에는 포함하지 않는다.
|
|
1607
1649
|
|
|
1608
1650
|
`package.json`의 버전과 `docs/releases/<version>.md`를 준비하고 의도한 변경을 커밋한다.
|
|
1609
1651
|
[CI의 네이티브 빌드 매트릭스](../.github/workflows/ci.yml)는 각 대상(`darwin-arm64`, `darwin-x64`,
|
package/docs/design/execution.md
CHANGED
|
@@ -51,7 +51,7 @@ references](../../skills/head/SKILL.md) for operating policy.
|
|
|
51
51
|
| Tools | Authority and outcome |
|
|
52
52
|
| --- | --- |
|
|
53
53
|
| `lane_start` | Requires a durable user source, title, existing absolute cwd, exact model or native preset, model reason and kickoff. Accepts a bounded brief, acceptance criteria, and an authorized destination or workflow. At most one new lane per source. Returns the durable ID and admission state, not an execution or completion receipt. |
|
|
54
|
-
| `lane_message` | Explicit follow-up with a real authorized `sourceId` and the target lane. Deduplicate by source and lane; check destination, attachment/quote scope and identity compatibility. The same source may reach existing lanes only where those routes and reporting are authorized. |
|
|
54
|
+
| `lane_message` | Explicit follow-up with a real authorized `sourceId` and the target lane. Deduplicate by source and lane; check destination, attachment/quote scope and identity compatibility. For a physical Discord work thread and a source from its exact guild parent, pin the HEAD-reviewed report route to that thread per handoff. This does not rebind the source or resume a paused lane. The same source may reach existing lanes only where those routes and reporting are authorized. |
|
|
55
55
|
| `lane_inspect` | Lists records without a live probe; inspecting a specific lane adds live status where observable, model readback, queue blockers and observed progress. Null actual state is unknown, not a match. |
|
|
56
56
|
| `lane_pause` | Takes a managed lane ID. Persists pause intent and requests an interrupt without claiming owned services or earlier effects are gone. |
|
|
57
57
|
| `lane_resume` | Takes a managed lane ID and an authorized original `sourceId`. May reopen a paused native goal after checking native state; never releases an uncertain submission or revives cancelled work. |
|
|
@@ -85,6 +85,38 @@ runtime exposes observation timestamps and `ownerCurrent`, not a guarantee
|
|
|
85
85
|
that a reported dependency is still live. Native children cannot use the
|
|
86
86
|
manager, report as the lane, or access the board.
|
|
87
87
|
|
|
88
|
+
### Failed lane requests
|
|
89
|
+
|
|
90
|
+
Confirmed provider quota exhaustion is an operator decision, not a recovery
|
|
91
|
+
prompt. The controller sends one notice on the authorized reply route and holds
|
|
92
|
+
new prompts on that lane until the operator selects a model in its bound topic
|
|
93
|
+
with `/model --lane <provider/id>` or the current-lane option on Discord's
|
|
94
|
+
`/model` card. If the model-change acknowledgement is lost, selecting the same
|
|
95
|
+
provider and model on a fresh card in the original conversation can reconcile
|
|
96
|
+
the pending change against the original session. A cold lane's subsequent
|
|
97
|
+
native application does not replace the receipt for the operator's original
|
|
98
|
+
choice. This does not change HEAD or replay the failed request. A transient
|
|
99
|
+
HTTP 429 or model-capacity error alone is not evidence of
|
|
100
|
+
exhausted account quota.
|
|
101
|
+
|
|
102
|
+
Other native execution errors, including in topic-owned work, go to HEAD for
|
|
103
|
+
recovery. Before forwarding a lost-response report, the controller checks the
|
|
104
|
+
original attached session for an exact settled receipt. If HEAD was busy, it
|
|
105
|
+
checks again before forwarding; if a settlement state read fails, the next
|
|
106
|
+
wake retries the read, not the prompt. A verified result supersedes the obsolete
|
|
107
|
+
report, including an informational report from an older session without a
|
|
108
|
+
verified owner. Such a report cannot authorize corrective work. Neither a
|
|
109
|
+
missing ACK nor a detached client authorizes resubmission.
|
|
110
|
+
A failed run proven to have started no local or provider-executed tools can close
|
|
111
|
+
as failed and permit HEAD to select an eligible fallback and send a fresh,
|
|
112
|
+
scoped correction. Recovery authority comes from HEAD's active report, not a
|
|
113
|
+
source ID supplied in a tool call. Cancellation of the original request or a
|
|
114
|
+
newer operator model selection invalidates the report, even if the model was
|
|
115
|
+
changed back. A correction keeps the original approval route. If a dialog is
|
|
116
|
+
first seen after reconnect and cannot be tied to that request, it stays on the
|
|
117
|
+
native Host rather than appearing in the lane thread. Uncertain effects stay
|
|
118
|
+
fenced; the report does not authorize a replay or a move to another lane.
|
|
119
|
+
|
|
88
120
|
## Execution budget and Host lifecycle
|
|
89
121
|
|
|
90
122
|
[`maxHosts`, `maxSubagents`, and `idleMs`](../../src/config.ts) are explicit
|
|
@@ -121,6 +153,9 @@ queue restoration uses the SDK's reassembled-frame byte limit: this is the value
|
|
|
121
153
|
[`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)
|
|
122
154
|
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).
|
|
123
155
|
An intact queue must not be reported as truncated. No second Bun runtime stays resident per Host.
|
|
156
|
+
For SSH workers the enrolled forced command hands its stdio to the Rust relay.
|
|
157
|
+
Admission and Host attestation can use a short-lived helper; no Bun process
|
|
158
|
+
stays just to forward bytes. SSH EOF detaches only that connection.
|
|
124
159
|
Gateway supervision reads the exact session, process and socket identity from a fresh handshake
|
|
125
160
|
instead of fetching the same full state again on the new connection.
|
|
126
161
|
|
|
@@ -240,8 +275,31 @@ Each lane records a resolved model, selection reason, and the complete native
|
|
|
240
275
|
role/thinking preset snapshot if a preset was selected. A later preset/global
|
|
241
276
|
change does not change that snapshot. Resume and reconnect check native
|
|
242
277
|
readback; unavailability or drift holds dispatch without silently selecting a
|
|
243
|
-
different model.
|
|
244
|
-
|
|
278
|
+
different model. A running lane may accept OMP's selected retry fallback
|
|
279
|
+
without changing its durable configured model. The current model must match
|
|
280
|
+
the newest flagged `model_change` on the active native journal branch, and the
|
|
281
|
+
uninterrupted flagged chain must start at the configured model. The controller
|
|
282
|
+
queries the attached native owner for the leaf and entries, including for
|
|
283
|
+
remote workers; it does not open worker paths. Exact catalog IDs take precedence
|
|
284
|
+
over native selector suffixes. An unflagged ephemeral switch, including context
|
|
285
|
+
promotion, does not authorize another model.
|
|
286
|
+
|
|
287
|
+
Warm recovery and cold resume may both return the Host to the original model.
|
|
288
|
+
Normal readback recognizes that model directly without relying on a reverse
|
|
289
|
+
journal entry. A newly restored Host must confirm the configured model and
|
|
290
|
+
record its active journal cursor before using retry evidence. Only a flagged
|
|
291
|
+
row after that cursor on the active branch can authorize a fallback, even
|
|
292
|
+
across reconnects. A current owner/generation receipt and a notice, written
|
|
293
|
+
together, prevent the same row from re-authorizing drift after recovery or
|
|
294
|
+
owner replacement. The notice reports which model is selected, not which model
|
|
295
|
+
generated an answer. Frozen preset lanes remain excluded. An authorized
|
|
296
|
+
`lane_set_model` can change one eligible idle lane with durable intent and
|
|
297
|
+
returns that change's own readback. The managed Host fences ordinary lane
|
|
298
|
+
model switches as maintenance and rechecks native activity before invoking
|
|
299
|
+
the setter; a menu click cannot use an earlier idle observation to switch a
|
|
300
|
+
lane that has since started work. If the selected model is already running as a
|
|
301
|
+
temporary fallback, its presence in `get_state` is not proof that it will be
|
|
302
|
+
restored as the lane's selected model. `config.model` is a head launch default,
|
|
245
303
|
not the lane default or a reason to overwrite a saved head's model on restart.
|
|
246
304
|
Managed Hosts use private settings overlays, with native session-scope
|
|
247
305
|
readback. Legacy lanes without a recorded selection adopt their authoritative
|
|
@@ -251,7 +309,9 @@ to recover a recorded session.
|
|
|
251
309
|
This preserves existing native provider fallback and retry policy; it is not a
|
|
252
310
|
guarantee about every lower-level provider request.
|
|
253
311
|
|
|
254
|
-
`/model
|
|
312
|
+
Direct `/model <provider/id>` and `/effort` target the shared head even in a
|
|
313
|
+
lane topic. Discord's `/model` card and the explicit `/model --lane` command
|
|
314
|
+
can instead target the lane bound to that conversation.
|
|
255
315
|
Read-only queries can run while busy; mutations require native idle and session
|
|
256
316
|
scope, record intent and report the actual applied model/effort. A current
|
|
257
317
|
owner's explicit natural-language request can use `head_set_model` after its
|
|
@@ -292,19 +352,21 @@ keyword interpretation; keep generated metadata fenced. Selection is
|
|
|
292
352
|
serialized, not injected as steering. A conflict or missing advertised
|
|
293
353
|
capability does not silently downgrade a selected SUPER request to ordinary work.
|
|
294
354
|
|
|
295
|
-
SUPER's
|
|
355
|
+
SUPER's commands and defaults are based on
|
|
296
356
|
[omp-superkit `c11a6e4e185f9c31f484a05a13528ef724337bc1`](https://github.com/dbc-hbin/omp-superkit/tree/c11a6e4e185f9c31f484a05a13528ef724337bc1).
|
|
357
|
+
[Revision `e8825367bed06985ccb1ee1e635dce850e22bbb9`](https://github.com/dbc-hbin/omp-superkit/tree/e8825367bed06985ccb1ee1e635dce850e22bbb9)
|
|
358
|
+
moved the workflow instructions into canonical skills and retained the original IDs as aliases.
|
|
297
359
|
Use a leading invocation; the `/` is optional in request text. These are OMP
|
|
298
360
|
extension commands, not registered messenger controls.
|
|
299
361
|
|
|
300
|
-
| OMP command | `workflow.name` |
|
|
301
|
-
| --- | --- | --- | --- |
|
|
302
|
-
| `/super` | `super` | `skill://ultrawork` | None |
|
|
303
|
-
| `/super-plan` | `super-plan` | `skill://ulw-plan` | `ultrathink` |
|
|
304
|
-
| `/super-run` | `super-run` | `skill://ulw-execute` | `orchestrate` |
|
|
305
|
-
| `/super-loop` | `super-loop` | `skill://ulw-loop` | `orchestrate` |
|
|
306
|
-
| `/super-research` | `super-research` | `skill://ulw-research` | `workflowz` |
|
|
307
|
-
| `/super-graph` | `super-graph` | `skill://mass-ulw` | `workflowz` |
|
|
362
|
+
| OMP command | `workflow.name` | Canonical OMP skill | Legacy skill | Default native keyword |
|
|
363
|
+
| --- | --- | --- | --- | --- |
|
|
364
|
+
| `/super` | `super` | `skill://super` | `skill://ultrawork` | None |
|
|
365
|
+
| `/super-plan` | `super-plan` | `skill://super-plan` | `skill://ulw-plan` | `ultrathink` |
|
|
366
|
+
| `/super-run` | `super-run` | `skill://super-run` | `skill://ulw-execute` | `orchestrate` |
|
|
367
|
+
| `/super-loop` | `super-loop` | `skill://super-loop` | `skill://ulw-loop` | `orchestrate` |
|
|
368
|
+
| `/super-research` | `super-research` | `skill://super-research` | `skill://ulw-research` | `workflowz` |
|
|
369
|
+
| `/super-graph` | `super-graph` | `skill://super-graph` | `skill://mass-ulw` | `workflowz` |
|
|
308
370
|
|
|
309
371
|
Plain SUPER arms the session without selecting a specialty workflow or implicitly
|
|
310
372
|
creating a goal in RPC. SUPER Graph selects the graph workflow, not plain SUPER
|
|
@@ -333,7 +395,10 @@ detection recognize both `omp-superkit` and the legacy `omp-ulw` package ID.
|
|
|
333
395
|
Stage the observed revision and its dependencies in a project-owned immutable
|
|
334
396
|
package. Ignore arbitrary dependency lifecycle scripts; run defined
|
|
335
397
|
materialization and an [offline native prompt-composition probe](../../src/managed-ulw-probe.ts)
|
|
336
|
-
for ordinary and explicitly activated operation.
|
|
398
|
+
for ordinary and explicitly activated operation. For the canonical layout the probe
|
|
399
|
+
checks that the hook uses the canonical directive and pointer paths and that native
|
|
400
|
+
discovery resolves both canonical skills and legacy aliases. An older revision
|
|
401
|
+
uses the full legacy skills instead. Serialize preparation via
|
|
337
402
|
the update lock and atomically publish `active.json` only after validation.
|
|
338
403
|
Once installed, activate only fast-forward revisions from the same source;
|
|
339
404
|
retain the last valid active revision and report failures. Do not delete older
|