omp-superagent 0.1.13 → 0.1.16
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 +8 -5
- package/THIRD_PARTY_NOTICES.md +6 -0
- package/assets/architecture-dark.svg +4 -4
- package/assets/architecture.ko-dark.svg +4 -4
- package/assets/architecture.ko.svg +4 -4
- package/assets/architecture.mmd +5 -5
- package/assets/architecture.svg +4 -4
- package/config.example.json +1 -0
- package/docs/OPERATIONS.en.md +80 -23
- package/docs/OPERATIONS.md +73 -18
- package/docs/design/execution.md +180 -43
- package/docs/design/messaging.md +62 -10
- package/docs/releases/0.1.15.md +13 -0
- package/docs/releases/0.1.16.md +9 -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/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 +6 -3
- package/scripts/prepare-worker-memory.ts +37 -0
- package/skills/head/SKILL.md +29 -47
- package/skills/head/references/routing.md +35 -16
- package/skills/head/references/supervision.md +10 -14
- package/skills/lane/SKILL.md +14 -16
- package/skills/lane/references/workflow.md +14 -27
- package/src/cli.ts +56 -56
- package/src/config/config.ts +14 -0
- package/src/contracts.ts +38 -30
- package/src/cron/cron-jobs.ts +4 -3
- package/src/cron/cron-pr-intake.ts +1 -2
- package/src/extension.ts +69 -24
- package/src/gateway/gateway-client.ts +24 -15
- package/src/group/group-runner.ts +3 -2
- package/src/group-runner-extension.ts +7 -3
- package/src/host-extension.ts +109 -2
- package/src/host-sdk-helper.ts +6 -1
- package/src/lane/decision-tool.ts +2 -3
- package/src/lane/lane-report.ts +8 -30
- package/src/lane/lane-rows.ts +1 -1
- package/src/lane/workflow.ts +44 -3
- package/src/lane-extension.ts +5 -46
- package/src/messaging/discord-context.ts +8 -6
- package/src/messaging/discord-work-thread.ts +36 -0
- package/src/omp/host-protocol.ts +4 -3
- package/src/omp/host.ts +24 -7
- package/src/omp/managed-super.ts +43 -27
- package/src/omp/native-sessions.ts +12 -0
- package/src/omp/worker-memory-import.ts +410 -0
- package/src/omp/worker-memory-sdk.ts +8 -0
- package/src/operator/setup.ts +8 -13
- package/src/pr/pr-github-schema.ts +9 -0
- package/src/pr/pr-github.ts +6 -2
- package/src/pr/pr-intake-automation.ts +11 -8
- package/src/pr/pr-intake-fix.ts +2 -5
- package/src/pr/pr-intake-review.ts +7 -7
- package/src/routing/topic-history.ts +2 -2
- package/src/runtime/controller.ts +720 -468
- package/src/runtime/head-recovery.ts +7 -7
- package/src/runtime/head-superstack.ts +83 -0
- package/src/runtime/result-attachments.ts +3 -1
- package/src/runtime/worker-memory.ts +156 -0
- package/src/storage/deferred-routing.ts +1 -7
- package/src/storage/store.ts +465 -372
- package/src/worker/worker-host.ts +3 -2
- package/src/worker/worker-ledger.ts +20 -11
- package/src/worker/worker-memory-page.ts +83 -0
- package/src/worker/worker-memory-proofs.ts +260 -0
- package/src/worker/worker-memory-source.ts +305 -0
- package/src/worker/worker-memory-storage.ts +130 -0
- package/src/worker/worker-profile.ts +2 -0
- package/src/worker/worker-repository.ts +92 -7
- package/src/worker/worker-request.ts +1 -0
- package/src/worker/worker-service.ts +25 -8
- package/src/worker/worker-wire.ts +20 -6
package/DESIGN.md
CHANGED
|
@@ -4,10 +4,13 @@ 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
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
Ordinary work from the authenticated owner stays in the native session bound
|
|
8
|
+
to its topic. Direct, explicit instructions there can revise the lane's scope
|
|
9
|
+
or acceptance within its selected workspace, including through native steering,
|
|
10
|
+
without a HEAD review. Unbound ordinary requests go to the shared HEAD model
|
|
11
|
+
to answer directly or verify a workspace and assign work. Explicit placement,
|
|
12
|
+
historical lookup and code-handled controls do not require a shared-model turn
|
|
13
|
+
to route.
|
|
11
14
|
In a [bound Discord work thread](docs/design/messaging.md#topic-routing-and-controls),
|
|
12
15
|
historical continuation and its replies stay there unless the operator explicitly
|
|
13
16
|
asks to split. Separately,
|
|
@@ -41,7 +44,7 @@ owns its durable state. Moving a module does not transfer authority to the Gatew
|
|
|
41
44
|
| --- | --- | --- |
|
|
42
45
|
| CLI and setup | Configuration, credentials, doctor, start/status/stop and one-shot macOS registration. | [CLI](src/cli.ts), [config](src/config/config.ts), [setup](src/operator/setup.ts), [credentials](src/config/credentials.ts), [autostart](src/operator/autostart.ts) |
|
|
43
46
|
| 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/gateway-client.ts), [adapter hub](gateway/src/adapter.rs) |
|
|
44
|
-
| Head | Its controller owns intake, placement,
|
|
47
|
+
| Head | Its controller owns intake, placement, approval routing and delivery. The shared model handles ordinary unbound requests, explicit `/head` work and manager coordination. It does not review direct bound-topic scope revisions. | [Head extension](src/extension.ts), [runtime](src/runtime/controller.ts), [coordination store](src/storage/store.ts) |
|
|
45
48
|
| 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/lane-report.ts), [role instructions](skills/lane/SKILL.md) |
|
|
46
49
|
| 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/omp/host.ts), [stdio owner](host-owner/src/main.rs), [SDK helper](src/host-sdk-helper.ts), [native lifecycle extension](src/host-extension.ts) |
|
|
47
50
|
|
package/THIRD_PARTY_NOTICES.md
CHANGED
|
@@ -25,6 +25,12 @@ binary: `host-owner/bin/notices/<platform>-<arch>/` or
|
|
|
25
25
|
|
|
26
26
|
## oh-my-pi: adapted code and artwork
|
|
27
27
|
|
|
28
|
+
- The opt-in worker memory import verifies Mnemopi's project-bank naming
|
|
29
|
+
contract from [`mnemopi/config.ts` in v19.2.1](https://github.com/can1357/oh-my-pi/blob/b55cd1bb664d8ab46ddc77f2a34eb47555dbf1ac/packages/coding-agent/src/mnemopi/config.ts).
|
|
30
|
+
`scripts/prepare-worker-memory.ts` builds the small embedded-CLI helper
|
|
31
|
+
locally from the installed MIT-licensed `@oh-my-pi/pi-coding-agent` and
|
|
32
|
+
`@oh-my-pi/pi-mnemopi` dependencies;
|
|
33
|
+
the generated module is not part of either distribution.
|
|
28
34
|
- `src/host-extension.ts` adapts the `get_state` projection from
|
|
29
35
|
[`rpc-mode.ts` in v18.22.0](https://github.com/can1357/oh-my-pi/blob/3e8cff3b7ce19a805c11a26a6dd1703066435851/packages/coding-agent/src/modes/rpc/rpc-mode.ts).
|
|
30
36
|
- `host-owner/src/wire.rs` adapts the wire limits, v1 shrink thresholds, and
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<svg xmlns="http://www.w3.org/2000/svg" width="960" height="430" viewBox="0 0 960 430" role="img" aria-labelledby="architecture-title architecture-desc" font-family="system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif">
|
|
2
2
|
<title id="architecture-title">One always-on service, one OMP head, independent lane sessions</title>
|
|
3
|
-
<desc id="architecture-desc">Discord, Telegram, and Slack connect to the Gateway
|
|
3
|
+
<desc id="architecture-desc">Discord, Telegram, and Slack connect to the Gateway. The head controller routes bound-topic owner work and replies without a head model turn, including changes to the lane's work within its workspace. The head coordinates independent lanes and reviews manager handoff results and decisions addressed to it.</desc>
|
|
4
4
|
<defs>
|
|
5
5
|
<linearGradient id="hero" x1="0" y1="0" x2="1" y2="0"><stop offset="0" stop-color="#fc49c6"/><stop offset="0.5" stop-color="#b47cff"/><stop offset="1" stop-color="#57e6fb"/></linearGradient>
|
|
6
6
|
<marker id="flow-arrow" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto" markerUnits="userSpaceOnUse"><path d="M0 0 10 5 0 10Z" fill="#a49bbd"/></marker>
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
<text x="542" y="167" font-size="22" font-weight="700" text-anchor="middle" fill="#d6b2ff">OMP Head</text>
|
|
39
39
|
<text x="542" y="195" font-size="16" text-anchor="middle" fill="#b7aecb">model + controller</text>
|
|
40
40
|
<text x="542" y="222" font-size="16" text-anchor="middle" fill="#b7aecb">decides · works</text>
|
|
41
|
-
<text x="542" y="250" font-size="15" font-weight="600" text-anchor="middle" fill="#d6b2ff">
|
|
41
|
+
<text x="542" y="250" font-size="15" font-weight="600" text-anchor="middle" fill="#d6b2ff">Lane coordination</text>
|
|
42
42
|
</g>
|
|
43
43
|
<g>
|
|
44
44
|
<rect x="754" y="80" width="182" height="108" rx="14" fill="#17141f" stroke="#3f3854" stroke-width="1.5"/>
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
<path d="M24 360H49" fill="none" stroke="#bb86ff" stroke-width="2.4" marker-end="url(#control-arrow)"/>
|
|
59
59
|
<text x="60" y="365" font-size="16" fill="#b7aecb">HEAD to lane: lane_start or lane_message</text>
|
|
60
60
|
<path d="M24 383H49" fill="none" stroke="#a49bbd" stroke-width="1.8" marker-end="url(#flow-arrow)"/>
|
|
61
|
-
<text x="60" y="388" font-size="16" fill="#b7aecb">Lane to HEAD: delegated results
|
|
62
|
-
<text x="60" y="411" font-size="16" fill="#b7aecb">
|
|
61
|
+
<text x="60" y="388" font-size="16" fill="#b7aecb">Lane to HEAD: delegated results and decisions for HEAD</text>
|
|
62
|
+
<text x="60" y="411" font-size="16" fill="#b7aecb">Direct bound-topic work, including scope changes, needs no HEAD model turn.</text>
|
|
63
63
|
</g>
|
|
64
64
|
</svg>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<svg xmlns="http://www.w3.org/2000/svg" width="960" height="430" viewBox="0 0 960 430" role="img" aria-labelledby="architecture-title architecture-desc" font-family="system-ui, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', 'Noto Sans CJK KR', 'Segoe UI', sans-serif">
|
|
2
2
|
<title id="architecture-title">상시 실행 서비스 하나, OMP 헤드 하나, 독립 레인 세션</title>
|
|
3
|
-
<desc id="architecture-desc">Discord, Telegram, Slack
|
|
3
|
+
<desc id="architecture-desc">Discord, Telegram, Slack은 Gateway에 연결됩니다. 헤드 컨트롤러는 연결된 주제에서 운영자가 직접 보낸 요청과 작업공간 내 범위 변경, 그에 대한 답변을 헤드 모델 호출 없이 전달합니다. 헤드는 독립 레인을 조율하고 위임 작업 결과와 헤드에 보낸 질문을 검토합니다.</desc>
|
|
4
4
|
<defs>
|
|
5
5
|
<linearGradient id="hero" x1="0" y1="0" x2="1" y2="0"><stop offset="0" stop-color="#fc49c6"/><stop offset="0.5" stop-color="#b47cff"/><stop offset="1" stop-color="#57e6fb"/></linearGradient>
|
|
6
6
|
<marker id="flow-arrow" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto" markerUnits="userSpaceOnUse"><path d="M0 0 10 5 0 10Z" fill="#a49bbd"/></marker>
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
<text x="542" y="167" font-size="22" font-weight="700" text-anchor="middle" fill="#d6b2ff">OMP 헤드</text>
|
|
39
39
|
<text x="542" y="195" font-size="16" text-anchor="middle" fill="#b7aecb">모델 + 컨트롤러</text>
|
|
40
40
|
<text x="542" y="222" font-size="16" text-anchor="middle" fill="#b7aecb">판단 · 작업</text>
|
|
41
|
-
<text x="542" y="250" font-size="15" font-weight="600" text-anchor="middle" fill="#d6b2ff">레인
|
|
41
|
+
<text x="542" y="250" font-size="15" font-weight="600" text-anchor="middle" fill="#d6b2ff">레인 조율</text>
|
|
42
42
|
</g>
|
|
43
43
|
<g>
|
|
44
44
|
<rect x="754" y="80" width="182" height="108" rx="14" fill="#17141f" stroke="#3f3854" stroke-width="1.5"/>
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
<path d="M24 360H49" fill="none" stroke="#bb86ff" stroke-width="2.4" marker-end="url(#control-arrow)"/>
|
|
59
59
|
<text x="60" y="365" font-size="16" fill="#b7aecb">헤드에서 레인으로: lane_start 또는 lane_message</text>
|
|
60
60
|
<path d="M24 383H49" fill="none" stroke="#a49bbd" stroke-width="1.8" marker-end="url(#flow-arrow)"/>
|
|
61
|
-
<text x="60" y="388" font-size="16" fill="#b7aecb">레인에서 헤드로: 위임 작업
|
|
62
|
-
<text x="60" y="411" font-size="16" fill="#b7aecb"
|
|
61
|
+
<text x="60" y="388" font-size="16" fill="#b7aecb">레인에서 헤드로: 위임 작업 결과와 헤드에 보낸 질문</text>
|
|
62
|
+
<text x="60" y="411" font-size="16" fill="#b7aecb">연결된 주제에서 운영자가 직접 지시한 작업과 범위 변경에는 헤드 모델 호출이 필요 없습니다.</text>
|
|
63
63
|
</g>
|
|
64
64
|
</svg>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<svg xmlns="http://www.w3.org/2000/svg" width="960" height="430" viewBox="0 0 960 430" role="img" aria-labelledby="architecture-title architecture-desc" font-family="system-ui, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', 'Noto Sans CJK KR', 'Segoe UI', sans-serif">
|
|
2
2
|
<title id="architecture-title">상시 실행 서비스 하나, OMP 헤드 하나, 독립 레인 세션</title>
|
|
3
|
-
<desc id="architecture-desc">Discord, Telegram, Slack
|
|
3
|
+
<desc id="architecture-desc">Discord, Telegram, Slack은 Gateway에 연결됩니다. 헤드 컨트롤러는 연결된 주제에서 운영자가 직접 보낸 요청과 작업공간 내 범위 변경, 그에 대한 답변을 헤드 모델 호출 없이 전달합니다. 헤드는 독립 레인을 조율하고 위임 작업 결과와 헤드에 보낸 질문을 검토합니다.</desc>
|
|
4
4
|
<defs>
|
|
5
5
|
<linearGradient id="hero" x1="0" y1="0" x2="1" y2="0"><stop offset="0" stop-color="#e23cb4"/><stop offset="0.5" stop-color="#9c4ffb"/><stop offset="1" stop-color="#22b8d4"/></linearGradient>
|
|
6
6
|
<marker id="flow-arrow" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto" markerUnits="userSpaceOnUse"><path d="M0 0 10 5 0 10Z" fill="#6f6787"/></marker>
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
<text x="542" y="167" font-size="22" font-weight="700" text-anchor="middle" fill="#7a2bd6">OMP 헤드</text>
|
|
39
39
|
<text x="542" y="195" font-size="16" text-anchor="middle" fill="#5c5470">모델 + 컨트롤러</text>
|
|
40
40
|
<text x="542" y="222" font-size="16" text-anchor="middle" fill="#5c5470">판단 · 작업</text>
|
|
41
|
-
<text x="542" y="250" font-size="15" font-weight="600" text-anchor="middle" fill="#7a2bd6">레인
|
|
41
|
+
<text x="542" y="250" font-size="15" font-weight="600" text-anchor="middle" fill="#7a2bd6">레인 조율</text>
|
|
42
42
|
</g>
|
|
43
43
|
<g>
|
|
44
44
|
<rect x="754" y="80" width="182" height="108" rx="14" fill="#ffffff" stroke="#cfc7de" stroke-width="1.5"/>
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
<path d="M24 360H49" fill="none" stroke="#8f3ff0" stroke-width="2.4" marker-end="url(#control-arrow)"/>
|
|
59
59
|
<text x="60" y="365" font-size="16" fill="#5c5470">헤드에서 레인으로: lane_start 또는 lane_message</text>
|
|
60
60
|
<path d="M24 383H49" fill="none" stroke="#6f6787" stroke-width="1.8" marker-end="url(#flow-arrow)"/>
|
|
61
|
-
<text x="60" y="388" font-size="16" fill="#5c5470">레인에서 헤드로: 위임 작업
|
|
62
|
-
<text x="60" y="411" font-size="16" fill="#5c5470"
|
|
61
|
+
<text x="60" y="388" font-size="16" fill="#5c5470">레인에서 헤드로: 위임 작업 결과와 헤드에 보낸 질문</text>
|
|
62
|
+
<text x="60" y="411" font-size="16" fill="#5c5470">연결된 주제에서 운영자가 직접 지시한 작업과 범위 변경에는 헤드 모델 호출이 필요 없습니다.</text>
|
|
63
63
|
</g>
|
|
64
64
|
</svg>
|
package/assets/architecture.mmd
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
flowchart LR
|
|
2
2
|
M["Messengers<br/>Discord · Telegram · Slack"]
|
|
3
3
|
G["Gateway<br/>Always-on service<br/>Admit · route · reply"]
|
|
4
|
-
H["OMP Head<br/>Model + controller<br/>
|
|
4
|
+
H["OMP Head<br/>Model + controller<br/>Coordinates lanes"]
|
|
5
5
|
A["Lane A<br/>Independent session<br/>repo / topic A"]
|
|
6
6
|
B["Lane B<br/>Independent session<br/>repo / topic B"]
|
|
7
7
|
M --> G
|
|
8
8
|
G --> H
|
|
9
|
-
H -->|"
|
|
10
|
-
H -->|"
|
|
11
|
-
A -->|"
|
|
12
|
-
B -->|"
|
|
9
|
+
H -->|"Bound owner work via controller / HEAD handoff"| A
|
|
10
|
+
H -->|"Bound owner work via controller / HEAD handoff"| B
|
|
11
|
+
A -->|"Topic replies via controller / manager results / HEAD decisions"| H
|
|
12
|
+
B -->|"Topic replies via controller / manager results / HEAD decisions"| H
|
|
13
13
|
H --> G
|
|
14
14
|
G --> M
|
|
15
15
|
classDef head fill:#faf3ff,stroke:#9c4ffb,color:#7a2bd6,stroke-width:2px
|
package/assets/architecture.svg
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<svg xmlns="http://www.w3.org/2000/svg" width="960" height="430" viewBox="0 0 960 430" role="img" aria-labelledby="architecture-title architecture-desc" font-family="system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif">
|
|
2
2
|
<title id="architecture-title">One always-on service, one OMP head, independent lane sessions</title>
|
|
3
|
-
<desc id="architecture-desc">Discord, Telegram, and Slack connect to the Gateway
|
|
3
|
+
<desc id="architecture-desc">Discord, Telegram, and Slack connect to the Gateway. The head controller routes bound-topic owner work and replies without a head model turn, including changes to the lane's work within its workspace. The head coordinates independent lanes and reviews manager handoff results and decisions addressed to it.</desc>
|
|
4
4
|
<defs>
|
|
5
5
|
<linearGradient id="hero" x1="0" y1="0" x2="1" y2="0"><stop offset="0" stop-color="#e23cb4"/><stop offset="0.5" stop-color="#9c4ffb"/><stop offset="1" stop-color="#22b8d4"/></linearGradient>
|
|
6
6
|
<marker id="flow-arrow" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto" markerUnits="userSpaceOnUse"><path d="M0 0 10 5 0 10Z" fill="#6f6787"/></marker>
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
<text x="542" y="167" font-size="22" font-weight="700" text-anchor="middle" fill="#7a2bd6">OMP Head</text>
|
|
39
39
|
<text x="542" y="195" font-size="16" text-anchor="middle" fill="#5c5470">model + controller</text>
|
|
40
40
|
<text x="542" y="222" font-size="16" text-anchor="middle" fill="#5c5470">decides · works</text>
|
|
41
|
-
<text x="542" y="250" font-size="15" font-weight="600" text-anchor="middle" fill="#7a2bd6">
|
|
41
|
+
<text x="542" y="250" font-size="15" font-weight="600" text-anchor="middle" fill="#7a2bd6">Lane coordination</text>
|
|
42
42
|
</g>
|
|
43
43
|
<g>
|
|
44
44
|
<rect x="754" y="80" width="182" height="108" rx="14" fill="#ffffff" stroke="#cfc7de" stroke-width="1.5"/>
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
<path d="M24 360H49" fill="none" stroke="#8f3ff0" stroke-width="2.4" marker-end="url(#control-arrow)"/>
|
|
59
59
|
<text x="60" y="365" font-size="16" fill="#5c5470">HEAD to lane: lane_start or lane_message</text>
|
|
60
60
|
<path d="M24 383H49" fill="none" stroke="#6f6787" stroke-width="1.8" marker-end="url(#flow-arrow)"/>
|
|
61
|
-
<text x="60" y="388" font-size="16" fill="#5c5470">Lane to HEAD: delegated results
|
|
62
|
-
<text x="60" y="411" font-size="16" fill="#5c5470">
|
|
61
|
+
<text x="60" y="388" font-size="16" fill="#5c5470">Lane to HEAD: delegated results and decisions for HEAD</text>
|
|
62
|
+
<text x="60" y="411" font-size="16" fill="#5c5470">Direct bound-topic work, including scope changes, needs no HEAD model turn.</text>
|
|
63
63
|
</g>
|
|
64
64
|
</svg>
|
package/config.example.json
CHANGED
package/docs/OPERATIONS.en.md
CHANGED
|
@@ -152,6 +152,13 @@ commands. Pass `jevify` or one of the six names above and a nonempty reason in t
|
|
|
152
152
|
`workflow: {name, reason}` argument to `lane_start` or `lane_message`. Legacy ULW invocations
|
|
153
153
|
are supported only in the original user request, not as new structured selections.
|
|
154
154
|
|
|
155
|
+
Send `/head /superstack <task>` as message text to enable Superstack for the
|
|
156
|
+
shared HEAD's current branch and route the task using the managed skill.
|
|
157
|
+
`/head /superstack` and `/head /superstack off` wait for that Host to become fully
|
|
158
|
+
idle, then enable or disable the mode without starting work.
|
|
159
|
+
It is not a lane workflow or a registered messenger command. An older running
|
|
160
|
+
Host may not have the command; it keeps its launch-time Superkit revision until replaced.
|
|
161
|
+
|
|
155
162
|
Existing source, provenance, and deduplication behavior is preserved. Workflow selection
|
|
156
163
|
is a serialized dispatch, not steering while execution is underway. For a SUPER workflow,
|
|
157
164
|
record why it is more useful than a lighter option and read the selected skill. Invocation
|
|
@@ -192,17 +199,22 @@ use the owner's language.
|
|
|
192
199
|
one durable review of the original native dialog, not an immediate answer. HEAD answers
|
|
193
200
|
with an original option or escalates the same card to the owner on its original route.
|
|
194
201
|
Omit `to` for normal routing: bound-topic questions go to the owner, manager-handoff
|
|
195
|
-
questions to HEAD.
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
202
|
+
questions to HEAD.
|
|
203
|
+
- **Changing the lane's work:** Give the new instruction directly in that lane's
|
|
204
|
+
bound topic. An explicit instruction from the authenticated owner overrides
|
|
205
|
+
conflicting scope or acceptance in the earlier HEAD brief within the selected
|
|
206
|
+
workspace. It takes effect when OMP consumes the input in a new turn or as a
|
|
207
|
+
steer; there is no separate HEAD approval or handoff. For example,
|
|
208
|
+
“Include the API docs in this repo and verify the examples too” revises the
|
|
209
|
+
task. Quoting or forwarding that text is not an instruction. The change does
|
|
210
|
+
not move the checkout, reassign siblings, resume paused work, approve native
|
|
211
|
+
actions, or permit repeating denied or uncertain effects.
|
|
212
|
+
If a reconnect recovers an older instruction after a newer message in that
|
|
213
|
+
topic, send a fresh instruction if the work is still wanted. A queued request
|
|
214
|
+
for a bot account that is no longer connected is not run under its replacement.
|
|
203
215
|
|
|
204
216
|
See [direct lane coordination](design/execution.md#direct-lane-coordination) and the
|
|
205
|
-
[
|
|
217
|
+
[rules for direct owner changes](design/execution.md#direct-owner-changes-to-bound-topic-work).
|
|
206
218
|
|
|
207
219
|
### Choosing a Model for a New Lane
|
|
208
220
|
|
|
@@ -444,13 +456,13 @@ with 0.1.11, owners verify their own exits in-process in Rust.
|
|
|
444
456
|
### First Installation
|
|
445
457
|
|
|
446
458
|
```sh
|
|
447
|
-
bun add --global --trust omp-superagent@0.1.
|
|
459
|
+
bun add --global --trust omp-superagent@0.1.15
|
|
448
460
|
omp-sa --help
|
|
449
461
|
```
|
|
450
462
|
|
|
451
463
|
`--trust` allows package installation scripts, including preparation of the managed
|
|
452
464
|
omp-superkit. Add the output of `bun pm bin --global` to PATH. If Bun is on PATH, you can
|
|
453
|
-
also use `npm install --global omp-superagent@0.1.
|
|
465
|
+
also use `npm install --global omp-superagent@0.1.15`. Create the configuration in your
|
|
454
466
|
own working directory, not the installation directory, with
|
|
455
467
|
`omp-sa setup --config ./config.local.json`. Installation alone does not activate the bot.
|
|
456
468
|
|
|
@@ -1117,6 +1129,8 @@ completed. Do not add a separate preset block to this configuration file.
|
|
|
1117
1129
|
| `discord` | Optional block. If present, `tokenEnv`, `ownerId`, `allowedGuildIds`, and `allowedChannelIds` are all required. |
|
|
1118
1130
|
| `discord.requireAddressing` | Optional boolean, default `false`. With `true`, in parent channels of allowed servers and threads not created by this bot, only ordinary messages from the owner with an actual mention of this bot or a reply to a message it sent are accepted. |
|
|
1119
1131
|
| `discord.editProgressInPlace` | Optional boolean, default `false`. With `true`, intermediate progress updates for a Discord request edit one `⏳` status message in place instead of posting new messages. |
|
|
1132
|
+
| `discord.allowCrossChannelThreads` | Optional boolean, default `false`. With `true`, HEAD can explicitly select a different eligible parent in the same Discord bot account, owner, and guild via `lane_start`. |
|
|
1133
|
+
| `discord.crossChannelThreadScope` | Optional `"allowlist"` (default) or `"guild"`. Only applies when `allowCrossChannelThreads` is `true`. Guild scope allows eligible parents outside `allowedChannelIds` in the same allowed server. It does not change request, command, or history authorization. |
|
|
1120
1134
|
| `telegram` | Optional block. If present, `tokenEnv`, `ownerId`, and `allowedChatIds` are all required. Keep the minus sign on group chat IDs. |
|
|
1121
1135
|
| `slack` | Optional block. If present, `botTokenEnv`, `appTokenEnv`, `ownerId`, `teamId`, and `allowedChannelIds` are all required. |
|
|
1122
1136
|
| `groupRooms` | Optional list. Enables the group modes below only for the specified rooms and users. Even the operator has only ordinary group permissions in those rooms. Defaults to an empty list. |
|
|
@@ -1270,6 +1284,9 @@ do not constitute receipts for platform login or actual model calls. Check the G
|
|
|
1270
1284
|
listed by the CLI to distinguish the actual errors and states for each stage. The Gateway's local
|
|
1271
1285
|
endpoint is `<stateDir>/run/gateway.sock`; the actual adapter and supervisor logs are in
|
|
1272
1286
|
`<stateDir>/logs/gateway.log`. Do not confuse the native head log with the transport log.
|
|
1287
|
+
For a Discord owner message ignored by the parent-channel allowlist, look for
|
|
1288
|
+
`Discord owner input ignored: channel not allowlisted`. The rate-limited entry
|
|
1289
|
+
has only the guild, destination and parent IDs. Nothing is posted in that channel.
|
|
1273
1290
|
A ready Gateway persists incoming events before ACK even when the head is absent. Unresolved
|
|
1274
1291
|
admissions or replies keep their pending order and appear in `gateway.unresolvedEvents` and as
|
|
1275
1292
|
`head.ready: false`.
|
|
@@ -1350,11 +1367,12 @@ channel, go to HEAD; a bound work thread goes to its lane. `/head <request>` exp
|
|
|
1350
1367
|
HEAD even in a thread. If work is running in the same conversation, the input is applied at the
|
|
1351
1368
|
next OMP steering boundary without `/steer`. If idle, it starts a new run. The first reply just
|
|
1352
1369
|
after opening a thread can also join the original run if that thread is confirmed as the run's
|
|
1353
|
-
reply route.
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
for
|
|
1370
|
+
reply route. A direct owner steer can revise the lane's task without changing the run's
|
|
1371
|
+
reporting mode. Admission of a message or acceptance of an RPC call does not prove the model
|
|
1372
|
+
read the input. Other conversations, internal reports, workflow selections, and control commands
|
|
1373
|
+
are not mixed into the current run. Steering does not bypass pauses, approvals, compaction, or
|
|
1374
|
+
holds for uncertainty. The original Discord addressing policy still applies, and final replies or
|
|
1375
|
+
reports for the same run are not sent twice.
|
|
1358
1376
|
|
|
1359
1377
|
**You can request a new topic without a command, too.** When a new lane is needed, an independent
|
|
1360
1378
|
OMP session in the verified working directory is bound to a supported thread or topic. In a
|
|
@@ -1371,6 +1389,18 @@ asks you to specify the task with `/new` in the same thread and does not create
|
|
|
1371
1389
|
Edited messages, quotes, and attachments do not count as instructions to create a thread.
|
|
1372
1390
|
The plain-text split instruction does not apply in Discord DMs or on other platforms. The Gateway
|
|
1373
1391
|
does not use an LLM for classification or execute lanes.
|
|
1392
|
+
A new Discord thread uses the source conversation's parent by default. `/new` and plain
|
|
1393
|
+
split directives keep that parent. When the operator enables `discord.allowCrossChannelThreads`,
|
|
1394
|
+
HEAD can explicitly select another parent via `lane_start` for an authorized owner request.
|
|
1395
|
+
An ordinary request in an unbound thread stays there. The default `"allowlist"` scope requires
|
|
1396
|
+
the destination in `allowedChannelIds`. Explicit `"guild"` scope also permits an unlisted parent
|
|
1397
|
+
in the same trusted guild, with the same bot account and owner. Restricted `groupRooms` remain
|
|
1398
|
+
ineligible. The bot needs permission to create and post in that thread; `thread_inspect`
|
|
1399
|
+
can verify required forum or media tags. Failure does not choose a different parent.
|
|
1400
|
+
The source receives one notice identifying the channel and thread. Work output stays in the
|
|
1401
|
+
thread; HEAD's own acknowledgments are separate. Unlisted threads do not accept requests
|
|
1402
|
+
or commands or enable history reads. Continue work and answer approvals from the original
|
|
1403
|
+
allowed conversation. This setting does not change Discord permissions.
|
|
1374
1404
|
|
|
1375
1405
|
| Platform | Automatic topic creation |
|
|
1376
1406
|
| --- | --- |
|
|
@@ -2027,13 +2057,11 @@ submissions in order for each card and deduplicates only actual redeliveries.
|
|
|
2027
2057
|
|
|
2028
2058
|
HEAD first reviews manager-handoff questions and root-lane questions explicitly
|
|
2029
2059
|
addressed with `decision_ask({to:"head", questions:[…]})`. Other bound-topic questions
|
|
2030
|
-
go to the owner directly.
|
|
2031
|
-
|
|
2032
|
-
choice within the delegated scope, HEAD uses `lane_review_decision` to return one
|
|
2033
|
-
of the original choices to the lane.
|
|
2060
|
+
go to the owner directly. For a routine choice within the current scope, HEAD
|
|
2061
|
+
uses `lane_review_decision` to return one of the original choices to the lane.
|
|
2034
2062
|
It records the reason internally without sending a separate messenger notification.
|
|
2035
2063
|
When owner judgment is required, HEAD escalates the same pending dialog with the reason
|
|
2036
|
-
on the original question card. If HEAD stops during an existing
|
|
2064
|
+
on the original question card. If HEAD stops during an existing review, the
|
|
2037
2065
|
controller may escalate that same pending dialog to the original owner. Neither path
|
|
2038
2066
|
authorizes a scope change, grants native execution approval, or answers ordinary native
|
|
2039
2067
|
dialogs on the operator's behalf.
|
|
@@ -2208,6 +2236,28 @@ Check `omp-sa status --config ./config.local.json` for the saved placement.
|
|
|
2208
2236
|
To revoke new SSH connections, remove **only this enrollment's key** on the
|
|
2209
2237
|
worker. That is not a stop command for an already running lane.
|
|
2210
2238
|
|
|
2239
|
+
**Optional project memory pull.** Before starting a **new** remote lane, set
|
|
2240
|
+
`"remoteMemorySync": true` in HEAD's private config if explicit facts retained
|
|
2241
|
+
on that worker may be stored in HEAD's native project bank. The default is
|
|
2242
|
+
off. Use Mnemopi in `per-project` mode on both ends and place the lane in HEAD's
|
|
2243
|
+
own approved repository directory. The new worker lane starts with a private
|
|
2244
|
+
bank, without pre-existing shared facts. Existing sessions and other backends are not migrated.
|
|
2245
|
+
For text-only search, keep `mnemopi.noEmbeddings: true` in the persistent HEAD
|
|
2246
|
+
profile. For vector indexing, HEAD must already use persistent `models.offline: true`
|
|
2247
|
+
and authorize an in-process embedding provider on its live bank. A local model
|
|
2248
|
+
name or cached weights alone leave indexing deferred. A temporary
|
|
2249
|
+
override is not enough. Online HEADs with embeddings enabled are ineligible,
|
|
2250
|
+
even when a local model is named: on reopen, stock OMP can send stored facts
|
|
2251
|
+
to a process-wide provider. Sync never changes your chat or embedding settings.
|
|
2252
|
+
This setting takes effect with the normal authorized config activation; do not
|
|
2253
|
+
restart a live service just to inspect it. Check the lane's `memorySync` field
|
|
2254
|
+
with `lane_inspect`. A checked page is not necessarily a vector-indexed page.
|
|
2255
|
+
`pending` means embedding is in flight; `deferred` means no vector or active
|
|
2256
|
+
task is confirmed. Text search can already work in either case.
|
|
2257
|
+
No transfers run while a lane is unloaded. Setting the option to `false` stops
|
|
2258
|
+
future pulls after config activation; it does not erase facts already stored.
|
|
2259
|
+
See the [backend matrix, indexing and privacy limits](design/execution.md#idle-remote-memory-pull).
|
|
2260
|
+
|
|
2211
2261
|
## 5. Operational scope and recovery constraints
|
|
2212
2262
|
|
|
2213
2263
|
- Autonomous work uses the existing native task/job, goal, and workflow owners. It preserves
|
|
@@ -2322,7 +2372,9 @@ OMP_SUPERAGENT_WORKER_SSH_TEST=1 bun test test/native-worker-ssh.test.ts
|
|
|
2322
2372
|
```
|
|
2323
2373
|
|
|
2324
2374
|
Run the general regression checks with `bun run check` and `bun run test`. The test script
|
|
2325
|
-
builds the native binaries, then runs the test files with two isolated workers.
|
|
2375
|
+
builds the native binaries, then runs the test files with two isolated workers. Both the
|
|
2376
|
+
local and CI suites build the loopback operator once through Cargo and pass its reported
|
|
2377
|
+
executable to those workers. A targeted `bun test` builds it on demand. To check for
|
|
2326
2378
|
order dependencies, run the same set serially with `bun test test`. The default tests exclude
|
|
2327
2379
|
opt-in native/PTY scenarios. Do not substitute a bare `bun test`, which also discovers tests
|
|
2328
2380
|
in `.upstream`. In a checkout with OMP and managed omp-superkit ready, `bun run test:ci`
|
|
@@ -2333,7 +2385,7 @@ standalone CLI on `PATH`. It skips `node_modules/.bin`, which Bun puts at the fr
|
|
|
2333
2385
|
not fall back to the SDK CLI or an older binary. It prints the selected OMP version and
|
|
2334
2386
|
executable path and checks metadata for the public RPC and process observation capabilities.
|
|
2335
2387
|
`test:ci` itself does not download, build, or update OMP. Python 3 is required, and launchd
|
|
2336
|
-
checks run only on macOS. `test:ci` shares
|
|
2388
|
+
checks run only on macOS. `test:ci` shares the native binaries extracted by the
|
|
2337
2389
|
installed CLI in a temporary per-run cache. Each fixture's HOME, settings, and authentication
|
|
2338
2390
|
remain isolated. Setting `OMP_TEST_NATIVES_DIR` to a trusted absolute path uses that path
|
|
2339
2391
|
instead of the temporary cache; it is not deleted after the run.
|
|
@@ -2350,6 +2402,11 @@ The download requires internet access, curl, and shasum. CI does not run OMP 18.
|
|
|
2350
2402
|
run the same checks manually with `bash scripts/test-omp.sh v18.22.2`, or specify `v18.20.3`
|
|
2351
2403
|
to test the older asynchronous task API.
|
|
2352
2404
|
|
|
2405
|
+
CI caches Rust dependencies, not the project's binaries or test results. Only a
|
|
2406
|
+
successful `main` push saves the cache. Source tests and package builds use separate
|
|
2407
|
+
targets; a tagged package build does not restore the dependency cache. All compilation,
|
|
2408
|
+
tests, linkage checks and package install checks still run on a cache hit.
|
|
2409
|
+
|
|
2353
2410
|
**OMP upstream compatibility** runs every Monday at 04:17 UTC or on manual dispatch in
|
|
2354
2411
|
Actions. It looks up the latest official upstream release tag once, then runs the same
|
|
2355
2412
|
checks against that tag on Ubuntu and macOS ARM64. Reproduce a failing tag locally with
|
package/docs/OPERATIONS.md
CHANGED
|
@@ -126,6 +126,13 @@ HEAD가 저장소와 작업 범위를 판단하는 데 참고하며, 메모를
|
|
|
126
126
|
`lane_start`/`lane_message`의 실제 `workflow: {name, reason}`에는 `jevify` 또는 위 여섯 이름
|
|
127
127
|
중 하나와 비어 있지 않은 이유를 전달한다. 기존 ULW 호출은 원본 사용자 요청에서만 호환되며,
|
|
128
128
|
새 구조화 선택에는 쓰지 않는다.
|
|
129
|
+
|
|
130
|
+
메신저에서 `/head /superstack <작업>`을 보내면 공유 HEAD의 현재 브랜치에서 모드를 켜고
|
|
131
|
+
관리형 Superkit 스킬로 작업의 처리 방식을 고른다. `/head /superstack`과
|
|
132
|
+
`/head /superstack off`는 Host가 완전히 유휴 상태가 된 뒤 작업 시작 없이 모드를 켜거나 끈다.
|
|
133
|
+
레인 워크플로 선택값이나 별도로
|
|
134
|
+
등록된 메신저 명령은 아니다. 실행 중인 구버전 Host는 교체 전까지 시작 시 선택한 Superkit을 쓴다.
|
|
135
|
+
|
|
129
136
|
기존 source/provenance·dedupe를 유지하며 workflow 선택은 실행 중 steering이 아닌 직렬
|
|
130
137
|
dispatch다. SUPER 워크플로는 더 가벼운 대안보다 유용한 이유를 남기고 선택한 스킬을 읽는다.
|
|
131
138
|
호출 이름과 스킬 ID는 다르다. 예를 들어 `super-run`은 `skill://ulw-execute`를 읽는다.
|
|
@@ -157,16 +164,18 @@ SUPER 스킬 조회·추가 레인·goal·모델 변경·workflow artifact가
|
|
|
157
164
|
대상으로 헤드 검토 한 건이 즉시 영속 큐에 들어가지만 바로 답변이 오는 것은 아니다.
|
|
158
165
|
헤드는 원래 선택지 중 하나로 답하거나 같은 카드를 원래 경로의 운영자에게 넘긴다.
|
|
159
166
|
`to`를 생략하면 연결 주제의 질문은 운영자에게, 헤드가 위임한 작업의 질문은 헤드에게 간다.
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
+
- **레인의 작업 변경:** 해당 레인에 연결된 주제에서 새 지시를 직접 보낸다. 인증된 운영자가
|
|
168
|
+
명시적으로 지시한 내용은 선택된 작업공간 안에서 기존 헤드 지시와 충돌하는 작업 범위나
|
|
169
|
+
완료 기준을 바꿀 수 있다. 레인이 새 턴이나 steer로 입력을 읽을 때 적용하며, 별도의 헤드
|
|
170
|
+
승인이나 재위임은 없다. 예를 들어 “이 저장소의 API 문서도 수정하고 예제까지 검증해 줘”는
|
|
171
|
+
작업을 변경하는 지시다. 같은 문장을 인용하거나 전달하는 것만으로는 지시가 되지 않는다.
|
|
172
|
+
체크아웃 변경, 다른 레인의 작업 인수, 일시정지 해제, native 승인, 거부되었거나 결과가
|
|
173
|
+
불확실한 작업의 재시도는 허용하지 않는다.
|
|
174
|
+
재연결로 같은 주제의 예전 지시가 최신 메시지보다 늦게 복구된 경우, 여전히 필요한 작업은
|
|
175
|
+
새 메시지로 지시한다. 봇 계정이 바뀌면 이전 계정의 대기 요청은 새 계정으로 실행하지 않는다.
|
|
167
176
|
|
|
168
177
|
[직접 조율](design/execution.md#direct-lane-coordination) 및
|
|
169
|
-
[
|
|
178
|
+
[운영자의 직접 작업 변경 규칙](design/execution.md#direct-owner-changes-to-bound-topic-work)을 참고한다.
|
|
170
179
|
|
|
171
180
|
### 새 레인의 모델 선택
|
|
172
181
|
|
|
@@ -385,13 +394,13 @@ bun --no-env-file "$NEW_CLI" doctor --config "$CONFIG" &&
|
|
|
385
394
|
### 처음 설치
|
|
386
395
|
|
|
387
396
|
```sh
|
|
388
|
-
bun add --global --trust omp-superagent@0.1.
|
|
397
|
+
bun add --global --trust omp-superagent@0.1.15
|
|
389
398
|
omp-sa --help
|
|
390
399
|
```
|
|
391
400
|
|
|
392
401
|
`--trust`는 관리형 omp-superkit 준비 등 패키지 설치 스크립트를 허용한다.
|
|
393
402
|
`bun pm bin --global`의 출력 경로를 PATH에 포함한다. Bun이 PATH에 있으면
|
|
394
|
-
`npm install --global omp-superagent@0.1.
|
|
403
|
+
`npm install --global omp-superagent@0.1.15`도 사용할 수 있다.
|
|
395
404
|
설정은 설치 디렉터리가 아닌 사용자 작업 디렉터리에
|
|
396
405
|
`omp-sa setup --config ./config.local.json`으로 만든다. 설치만으로 봇을 활성화하지 않는다.
|
|
397
406
|
|
|
@@ -786,6 +795,10 @@ Slack은 [`reactions.add`](https://docs.slack.dev/reference/methods/reactions.ad
|
|
|
786
795
|
바꾸거나 자동 재시도하지 않는다. 이 표시는 작업 성공·완료 검증이나 플랫폼 read receipt가
|
|
787
796
|
아니다. 강제 종료·API 실패 시 원격 반응 정리는 보장하지 않는다.
|
|
788
797
|
|
|
798
|
+
같은 Discord 대화의 후속 메시지가 실행 중인 HEAD 턴에 합류한 경우 최종 답변 본문은
|
|
799
|
+
한 번만 전송한다. native 실행에서 후속 메시지가 그 답변 전에 들어왔고 해당 요청의
|
|
800
|
+
종료가 확인되면, 답변 전송이 확인된 뒤 각각의 원본 후속 메시지에 통합 답변 링크를 단다.
|
|
801
|
+
|
|
789
802
|
## 3. 설정
|
|
790
803
|
|
|
791
804
|
### 터미널 셋업
|
|
@@ -941,6 +954,8 @@ high/middle/low는 명시적 `start`의 전용 초기 설정 턴에서 기존
|
|
|
941
954
|
| `discord` | 선택 블록. 존재하면 `tokenEnv`, `ownerId`, `allowedGuildIds`, `allowedChannelIds` 모두 필수. |
|
|
942
955
|
| `discord.requireAddressing` | 선택 불리언, 기본값 `false`. `true`이면 허용된 서버의 부모 채널과 이 봇이 만들지 않은 스레드에서 이 봇의 실제 멘션 또는 이 봇이 보낸 메시지에 대한 답장이 포함된 소유자의 일반 메시지만 접수한다. |
|
|
943
956
|
| `discord.editProgressInPlace` | 선택 불리언, 기본값 `false`. `true`이면 Discord에서 한 요청의 중간 진행 보고를 새 메시지로 쌓지 않고 하나의 `⏳` 상태 메시지로 제자리 수정한다. |
|
|
957
|
+
| `discord.allowCrossChannelThreads` | 선택 불리언, 기본값 `false`. `true`이면 헤드가 `lane_start`로 인계할 때 같은 봇 계정·소유자·서버의 다른 적격 채널을 새 작업 스레드의 부모로 명시할 수 있다. |
|
|
958
|
+
| `discord.crossChannelThreadScope` | 선택 항목. 기본값 `"allowlist"`, 또는 `"guild"`. `allowCrossChannelThreads`가 `true`일 때만 적용된다. `"guild"`는 같은 허용 서버에서 `allowedChannelIds`에 없는 적격 채널까지 배치 대상으로 허용한다. 요청·명령 접수와 기록 조회 권한은 바뀌지 않는다. |
|
|
944
959
|
| `telegram` | 선택 블록. 존재하면 `tokenEnv`, `ownerId`, `allowedChatIds` 모두 필수. 그룹 chat ID의 음수 부호를 보존한다. |
|
|
945
960
|
| `slack` | 선택 블록. 존재하면 `botTokenEnv`, `appTokenEnv`, `ownerId`, `teamId`, `allowedChannelIds` 모두 필수. |
|
|
946
961
|
| `groupRooms` | 선택 목록. 등록한 방과 사용자에게만 아래 그룹 모드를 열며, 해당 방에서는 운영자도 일반 그룹 권한만 갖는다. 기본값은 빈 목록이다. |
|
|
@@ -1075,6 +1090,9 @@ start는 **detached Gateway를 먼저 실행**하고 Gateway가 지정 head 하
|
|
|
1075
1090
|
영수증이 아니다. CLI가 출력한 Gateway/Host 로그에서 해당 단계의 실제 오류·상태를 구분한다.
|
|
1076
1091
|
Gateway 로컬 endpoint는 `<stateDir>/run/gateway.sock`, 실제 어댑터·감독 로그는
|
|
1077
1092
|
`<stateDir>/logs/gateway.log`다. native head 로그와 transport 로그를 혼동하지 않는다.
|
|
1093
|
+
Discord 소유자 메시지가 부모 채널 allowlist에서 제외되면 이 로그에서
|
|
1094
|
+
`Discord owner input ignored: channel not allowlisted`를 확인한다. 빈도를 제한하며
|
|
1095
|
+
서버·전송 대상·부모 채널 ID만 남긴다. 제외된 채널에는 아무것도 게시하지 않는다.
|
|
1078
1096
|
헤드 부재 중에도 준비된 Gateway는 ACK 전에 수신을 저장한다. 미해결 접수/답변은
|
|
1079
1097
|
pending 순서를 유지하고 `gateway.unresolvedEvents`와 `head.ready: false`로 표시한다.
|
|
1080
1098
|
재연결·접수 재전달은 원래 작업·외부 효과의 재실행 허가가 아니다. 운영자는 로그·원래 receipt와
|
|
@@ -1139,7 +1157,8 @@ HEAD 답변에서 저장한 리비전을 확인한다. 설정은 재시작 후
|
|
|
1139
1157
|
작업 스레드는 해당 레인으로 전달한다. `/head 요청`은 스레드에서도 HEAD를 지정한다.
|
|
1140
1158
|
같은 대화에 실행 중인 작업이 있으면 `/steer` 없이 다음 OMP steering 경계에서 반영하고,
|
|
1141
1159
|
유휴 상태면 새 실행을 시작한다. 스레드 개설 직후의 첫 답장도 원래 실행의 답변 경로가
|
|
1142
|
-
그 스레드로 확인되면 합류할 수 있다.
|
|
1160
|
+
그 스레드로 확인되면 합류할 수 있다. 운영자가 직접 보낸 steer는 레인의 작업을 바꿀 수 있지만
|
|
1161
|
+
실행의 보고 방식은 바꾸지 않는다. 메시지 접수나 RPC 수락만으로 모델이 입력을 읽었다고
|
|
1143
1162
|
볼 수는 없다. 다른 대화, 내부 보고, workflow 선택과 제어 명령은 현재 실행에 섞지 않으며
|
|
1144
1163
|
일시정지·승인·압축·불확실성 보류를 우회하지 않는다. 원래 Discord 주소 지정 정책은 그대로
|
|
1145
1164
|
적용하며, 같은 실행의 최종 답변/보고는 중복 발송하지 않는다.
|
|
@@ -1156,6 +1175,17 @@ HEAD 답변에서 저장한 리비전을 확인한다. 설정은 재시작 후
|
|
|
1156
1175
|
`이건 따로 빼줘`처럼 작업을 특정하지 않으면 같은 스레드에서 `/new`로 작업을 명시해 달라고
|
|
1157
1176
|
안내하고 새 스레드를 만들지 않는다. 수정 메시지·인용·첨부는 새 스레드 지시가 아니다.
|
|
1158
1177
|
이 평문 분리 지시는 Discord DM이나 다른 플랫폼에는 적용되지 않는다. Gateway는 LLM 분류나 lane 실행을 하지 않는다.
|
|
1178
|
+
새 Discord 스레드는 기본적으로 원래 대화의 부모 채널에 만든다. `/new`와 평문 분리
|
|
1179
|
+
지시는 계속 그 부모를 쓴다. 운영자가 `discord.allowCrossChannelThreads`를 켜면 HEAD가
|
|
1180
|
+
허용된 소유자 요청을 `lane_start`로 인계하면서 다른 부모를 명시할 수 있다. 연결되지 않은
|
|
1181
|
+
스레드의 일반 요청은 그 스레드에 남는다. 기본 `"allowlist"` 범위는 `allowedChannelIds`에
|
|
1182
|
+
있는 채널만 대상으로 삼는다. `"guild"` 범위는 같은 허용 서버·봇 계정·소유자에 한해
|
|
1183
|
+
목록에 없는 적격 채널도 대상으로 삼는다. `groupRooms`로 제한된 방은 제외하며, 봇이
|
|
1184
|
+
스레드를 만들고 메시지를 보낼 권한을 실제로 가져야 한다. forum/media 필수 태그는
|
|
1185
|
+
`thread_inspect`로 확인한다. 실패하면 다른 채널로 대체하지 않는다.
|
|
1186
|
+
원래 대화에는 채널과 스레드를 알리는 배치 안내 한 건을 보낸다. 작업 출력은 새 스레드로
|
|
1187
|
+
보내고 HEAD 자체 확인은 별개다. 목록에 없는 스레드는 요청·명령 접수나 기록 조회에
|
|
1188
|
+
사용하지 않는다. 후속 지시와 승인은 원래 허용된 대화에서 한다. Discord 권한은 바꾸지 않는다.
|
|
1159
1189
|
|
|
1160
1190
|
| 플랫폼 | 자동 주제 생성 |
|
|
1161
1191
|
| --- | --- |
|
|
@@ -1660,13 +1690,11 @@ head의 native 승인 카드 복구를 먼저 마친 뒤 입력·콜백 처리
|
|
|
1660
1690
|
|
|
1661
1691
|
헤드가 위임한 작업의 질문과 레인 root가 `decision_ask({to:"head", questions:[…]})`로
|
|
1662
1692
|
명시적으로 보낸 질문은 헤드가 먼저 검토한다. 다른 연결 주제 질문은 운영자에게 직접 간다.
|
|
1663
|
-
|
|
1664
|
-
않은 채 내부에서 취소한다.
|
|
1665
|
-
위임 범위 안의 일상적 선택이면 헤드는 `lane_review_decision`으로 원래 선택지 중 하나를
|
|
1693
|
+
현재 작업 범위 안의 일상적 선택이면 헤드는 `lane_review_decision`으로 원래 선택지 중 하나를
|
|
1666
1694
|
골라 레인에 돌려보낸다. 이유는 내부 이력에 남기고 별도 메신저 알림은 보내지 않는다.
|
|
1667
1695
|
운영자의 판단이 필요하면 대기 중인 같은 질문을 넘기고 원래 카드에 이관 이유를 표시한다.
|
|
1668
|
-
|
|
1669
|
-
|
|
1696
|
+
기존 검토가 남은 상태에서 헤드가 중지되면 컨트롤러가 대기 중인 같은 질문을 원래
|
|
1697
|
+
운영자에게 넘길 수 있다.
|
|
1670
1698
|
이 경로는 범위 변경이나 native 실행 승인을 허가하지 않는다. 일반 native dialog에도 헤드가
|
|
1671
1699
|
대신 답하지 않는다. 아래의 `ask` 카드는 `decision_ask`가 쓰는 구조화된
|
|
1672
1700
|
`askDialog`다. OMP 19.1 내장 `ask`의 HTML `form`은 Host가 메신저로 보내지 않고
|
|
@@ -1802,6 +1830,27 @@ SSH가 끊겨도 Host 자체는 종료되지 않습니다. Host가 종료된 뒤
|
|
|
1802
1830
|
`omp-sa status --config ./config.local.json`에서 확인합니다. 접근을 철회할 때는
|
|
1803
1831
|
워커에서 **해당 등록 키만** 제거하세요. 키 제거가 이미 실행 중인 레인을 중단하지는 않습니다.
|
|
1804
1832
|
|
|
1833
|
+
**원격 레인의 프로젝트 메모리 가져오기(선택).** 워커에 명시적으로 저장한 사실을
|
|
1834
|
+
HEAD의 프로젝트 메모리에도 남겨도 되는 경우에만, **새 레인**을 열기 전에 HEAD
|
|
1835
|
+
설정에 `"remoteMemorySync": true`를 지정하세요. 기본은 꺼짐입니다. 양쪽 모두
|
|
1836
|
+
Mnemopi의 `per-project` 모드를 사용해야 하고, 레인의 로컬 작업 경로가 HEAD의 승인된 작업 경로와 같아야
|
|
1837
|
+
합니다. 새 워커 레인은 별도 메모리 저장소로 시작하며 기존 공유 메모리를 읽거나 옮기지
|
|
1838
|
+
않습니다. 텍스트 검색만 쓰려면 HEAD의 영구 프로필에 `mnemopi.noEmbeddings: true`가
|
|
1839
|
+
설정되어 있어야 합니다. 즉시 벡터 색인은 이미 `models.offline: true`로 운영하는 HEAD에서
|
|
1840
|
+
해당 메모리 저장소에 지정·허용된 인프로세스 임베딩 제공자가 있을 때 지원합니다.
|
|
1841
|
+
로컬 모델 이름이나 캐시된 가중치만 있으면 텍스트를 저장하고 벡터 색인은 보류합니다.
|
|
1842
|
+
일시적인 설정 변경만으로는 허용되지 않습니다. 온라인 HEAD에서 임베딩이 켜져 있으면
|
|
1843
|
+
모델 이름이 로컬이어도 가져오지 않습니다. OMP가 저장소를 다시 열 때 기존 사실을
|
|
1844
|
+
프로세스 공용 제공자에게 보낼 수 있기 때문입니다. 동기화가 채팅·임베딩 설정을 바꾸지는 않습니다.
|
|
1845
|
+
기존 세션이나 다른 백엔드의 데이터는 옮기지 않습니다. 설정은 평소처럼
|
|
1846
|
+
승인된 기동 시 반영되며, 상태 확인만을 위해 재시작할 필요는 없습니다.
|
|
1847
|
+
`lane_inspect`의 `memorySync`에서 마지막 페이지의 상태를 확인하세요. 조회 성공과
|
|
1848
|
+
벡터 색인 확인은 다릅니다. `pending`은 임베딩 진행 중, `deferred`는 저장된 벡터도
|
|
1849
|
+
실행 중인 임베딩도 확인되지 않은 상태입니다. 둘 다 텍스트 검색은 가능합니다. 유휴 Host가 이미
|
|
1850
|
+
내려갔다면 복사를 위해 깨우지 않습니다.
|
|
1851
|
+
다시 `false`로 설정하면 다음 설정 반영부터 가져오기가 중단되며, 이미 양쪽에 저장한
|
|
1852
|
+
사실은 삭제되지 않습니다. [백엔드별 지원 범위와 개인정보·색인 제약](design/execution.md#idle-remote-memory-pull)을 참고하세요.
|
|
1853
|
+
|
|
1805
1854
|
## 5. 운영 범위와 복구 제약
|
|
1806
1855
|
|
|
1807
1856
|
- 자율 작업은 기존 native task/job·goal·workflow owner를 사용하며 원래 허가 목표·source/route·
|
|
@@ -1893,7 +1942,9 @@ OMP_SUPERAGENT_WORKER_SSH_TEST=1 bun test test/native-worker-ssh.test.ts
|
|
|
1893
1942
|
```
|
|
1894
1943
|
|
|
1895
1944
|
일반 회귀는 `bun run check`와 `bun run test`로 실행한다. 테스트 스크립트는 네이티브 바이너리를
|
|
1896
|
-
빌드한 뒤 격리된 워커 두 개로 테스트 파일을 실행한다.
|
|
1945
|
+
빌드한 뒤 격리된 워커 두 개로 테스트 파일을 실행한다. 로컬과 CI 모두 루프백 operator를 Cargo로
|
|
1946
|
+
한 번 빌드해 출력된 실행 파일 경로를 워커에 전달한다. 개별 `bun test`는 필요할 때 직접 빌드한다.
|
|
1947
|
+
순서 의존성을 확인할 때는 같은 범위를 `bun test test`로 직렬 실행할 수 있다.
|
|
1897
1948
|
기본 테스트는 opt-in native/PTY 시나리오를 제외한다. `.upstream`까지 탐색하는 인수 없는
|
|
1898
1949
|
`bun test`로 대체하지 않는다. OMP와 관리형 omp-superkit이 준비된 checkout의 `bun run test:ci`는
|
|
1899
1950
|
타입 검사, Rust Host owner·Gateway 테스트, 로컬 project/native/PTY·omp-superkit 통합 회귀를 실행한다. `scripts/ci.ts`는 활성
|
|
@@ -1901,7 +1952,7 @@ OMP_SUPERAGENT_WORKER_SSH_TEST=1 bun test test/native-worker-ssh.test.ts
|
|
|
1901
1952
|
standalone CLI를 찾는다. Bun이 앞에 넣은 `node_modules/.bin`은 건너뛰며 SDK CLI나 과거 binary로 대체하지 않는다.
|
|
1902
1953
|
선택한 OMP 버전·실행 경로를 출력하고 공개 RPC·프로세스 관측 기능을 메타데이터로 확인한다.
|
|
1903
1954
|
`test:ci` 자체는 OMP를 다운로드·빌드·업데이트하지 않는다. Python 3이 필요하며 launchd 검증은 macOS에서만 실행한다.
|
|
1904
|
-
`test:ci`는 설치된 CLI가 추출한 네이티브
|
|
1955
|
+
`test:ci`는 설치된 CLI가 추출한 네이티브 바이너리를 실행별 임시 캐시에 공유한다. 각 fixture의 HOME·설정·인증은 계속 격리한다.
|
|
1905
1956
|
`OMP_TEST_NATIVES_DIR`에 신뢰하는 절대 경로를 직접 지정하면 임시 캐시 대신 사용하며, 이 경로는 실행 후 삭제하지 않는다.
|
|
1906
1957
|
|
|
1907
1958
|
PR, `main`, 수동 실행과 `v*` 릴리즈 태그의 GitHub Actions는 Ubuntu 24.04와 macOS 15 ARM64에서
|
|
@@ -1915,6 +1966,10 @@ SHA-256과 `omp --version`을 확인한다.
|
|
|
1915
1966
|
OMP 18은 CI에서 실행하지 않는다. 필요할 때만 `bash scripts/test-omp.sh v18.22.2` 또는 이전
|
|
1916
1967
|
비동기 작업 API를 쓰는 `v18.20.3`을 지정해 같은 검사를 수동으로 실행한다.
|
|
1917
1968
|
|
|
1969
|
+
CI는 Rust 의존성만 캐시하며 프로젝트 바이너리나 테스트 결과는 재사용하지 않는다. 성공한
|
|
1970
|
+
`main` 푸시만 캐시를 저장한다. 소스 테스트와 패키지 빌드의 캐시는 분리하고, 태그의 패키지는
|
|
1971
|
+
캐시를 복원하지 않고 빌드한다. 캐시가 있어도 프로젝트 컴파일·테스트·링크·설치 검증은 그대로 수행한다.
|
|
1972
|
+
|
|
1918
1973
|
**OMP upstream compatibility**는 매주 월요일 04:17 UTC 또는 Actions에서 수동으로 실행한다.
|
|
1919
1974
|
upstream의 최신 정식 릴리스 태그를 한 번 조회한 뒤 Ubuntu·macOS ARM64에서 그 태그로 같은 검사를 수행한다.
|
|
1920
1975
|
실패한 태그는 로컬에서 `bash scripts/test-omp.sh vX.Y.Z`로 재현한다. 필요한 기능이 없거나 회귀가
|