omp-superagent 0.1.13 → 0.1.15
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 +59 -23
- package/docs/OPERATIONS.md +53 -18
- package/docs/design/execution.md +161 -43
- package/docs/design/messaging.md +45 -9
- package/docs/releases/0.1.15.md +13 -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 +22 -47
- package/skills/head/references/routing.md +11 -12
- 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 +4 -0
- package/src/contracts.ts +34 -27
- package/src/cron/cron-jobs.ts +4 -3
- package/src/cron/cron-pr-intake.ts +1 -2
- package/src/extension.ts +57 -14
- package/src/gateway/gateway-client.ts +14 -12
- 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/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 +444 -408
- package/src/runtime/head-recovery.ts +7 -7
- package/src/runtime/worker-memory.ts +156 -0
- package/src/storage/deferred-routing.ts +1 -7
- package/src/storage/store.ts +441 -375
- 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
|
@@ -192,17 +192,22 @@ use the owner's language.
|
|
|
192
192
|
one durable review of the original native dialog, not an immediate answer. HEAD answers
|
|
193
193
|
with an original option or escalates the same card to the owner on its original route.
|
|
194
194
|
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
|
-
|
|
195
|
+
questions to HEAD.
|
|
196
|
+
- **Changing the lane's work:** Give the new instruction directly in that lane's
|
|
197
|
+
bound topic. An explicit instruction from the authenticated owner overrides
|
|
198
|
+
conflicting scope or acceptance in the earlier HEAD brief within the selected
|
|
199
|
+
workspace. It takes effect when OMP consumes the input in a new turn or as a
|
|
200
|
+
steer; there is no separate HEAD approval or handoff. For example,
|
|
201
|
+
“Include the API docs in this repo and verify the examples too” revises the
|
|
202
|
+
task. Quoting or forwarding that text is not an instruction. The change does
|
|
203
|
+
not move the checkout, reassign siblings, resume paused work, approve native
|
|
204
|
+
actions, or permit repeating denied or uncertain effects.
|
|
205
|
+
If a reconnect recovers an older instruction after a newer message in that
|
|
206
|
+
topic, send a fresh instruction if the work is still wanted. A queued request
|
|
207
|
+
for a bot account that is no longer connected is not run under its replacement.
|
|
203
208
|
|
|
204
209
|
See [direct lane coordination](design/execution.md#direct-lane-coordination) and the
|
|
205
|
-
[
|
|
210
|
+
[rules for direct owner changes](design/execution.md#direct-owner-changes-to-bound-topic-work).
|
|
206
211
|
|
|
207
212
|
### Choosing a Model for a New Lane
|
|
208
213
|
|
|
@@ -444,13 +449,13 @@ with 0.1.11, owners verify their own exits in-process in Rust.
|
|
|
444
449
|
### First Installation
|
|
445
450
|
|
|
446
451
|
```sh
|
|
447
|
-
bun add --global --trust omp-superagent@0.1.
|
|
452
|
+
bun add --global --trust omp-superagent@0.1.15
|
|
448
453
|
omp-sa --help
|
|
449
454
|
```
|
|
450
455
|
|
|
451
456
|
`--trust` allows package installation scripts, including preparation of the managed
|
|
452
457
|
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.
|
|
458
|
+
also use `npm install --global omp-superagent@0.1.15`. Create the configuration in your
|
|
454
459
|
own working directory, not the installation directory, with
|
|
455
460
|
`omp-sa setup --config ./config.local.json`. Installation alone does not activate the bot.
|
|
456
461
|
|
|
@@ -1270,6 +1275,9 @@ do not constitute receipts for platform login or actual model calls. Check the G
|
|
|
1270
1275
|
listed by the CLI to distinguish the actual errors and states for each stage. The Gateway's local
|
|
1271
1276
|
endpoint is `<stateDir>/run/gateway.sock`; the actual adapter and supervisor logs are in
|
|
1272
1277
|
`<stateDir>/logs/gateway.log`. Do not confuse the native head log with the transport log.
|
|
1278
|
+
For a Discord owner message ignored by the parent-channel allowlist, look for
|
|
1279
|
+
`Discord owner input ignored: channel not allowlisted`. The rate-limited entry
|
|
1280
|
+
has only the guild, destination and parent IDs. Nothing is posted in that channel.
|
|
1273
1281
|
A ready Gateway persists incoming events before ACK even when the head is absent. Unresolved
|
|
1274
1282
|
admissions or replies keep their pending order and appear in `gateway.unresolvedEvents` and as
|
|
1275
1283
|
`head.ready: false`.
|
|
@@ -1350,11 +1358,12 @@ channel, go to HEAD; a bound work thread goes to its lane. `/head <request>` exp
|
|
|
1350
1358
|
HEAD even in a thread. If work is running in the same conversation, the input is applied at the
|
|
1351
1359
|
next OMP steering boundary without `/steer`. If idle, it starts a new run. The first reply just
|
|
1352
1360
|
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
|
|
1361
|
+
reply route. A direct owner steer can revise the lane's task without changing the run's
|
|
1362
|
+
reporting mode. Admission of a message or acceptance of an RPC call does not prove the model
|
|
1363
|
+
read the input. Other conversations, internal reports, workflow selections, and control commands
|
|
1364
|
+
are not mixed into the current run. Steering does not bypass pauses, approvals, compaction, or
|
|
1365
|
+
holds for uncertainty. The original Discord addressing policy still applies, and final replies or
|
|
1366
|
+
reports for the same run are not sent twice.
|
|
1358
1367
|
|
|
1359
1368
|
**You can request a new topic without a command, too.** When a new lane is needed, an independent
|
|
1360
1369
|
OMP session in the verified working directory is bound to a supported thread or topic. In a
|
|
@@ -2027,13 +2036,11 @@ submissions in order for each card and deduplicates only actual redeliveries.
|
|
|
2027
2036
|
|
|
2028
2037
|
HEAD first reviews manager-handoff questions and root-lane questions explicitly
|
|
2029
2038
|
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.
|
|
2039
|
+
go to the owner directly. For a routine choice within the current scope, HEAD
|
|
2040
|
+
uses `lane_review_decision` to return one of the original choices to the lane.
|
|
2034
2041
|
It records the reason internally without sending a separate messenger notification.
|
|
2035
2042
|
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
|
|
2043
|
+
on the original question card. If HEAD stops during an existing review, the
|
|
2037
2044
|
controller may escalate that same pending dialog to the original owner. Neither path
|
|
2038
2045
|
authorizes a scope change, grants native execution approval, or answers ordinary native
|
|
2039
2046
|
dialogs on the operator's behalf.
|
|
@@ -2208,6 +2215,28 @@ Check `omp-sa status --config ./config.local.json` for the saved placement.
|
|
|
2208
2215
|
To revoke new SSH connections, remove **only this enrollment's key** on the
|
|
2209
2216
|
worker. That is not a stop command for an already running lane.
|
|
2210
2217
|
|
|
2218
|
+
**Optional project memory pull.** Before starting a **new** remote lane, set
|
|
2219
|
+
`"remoteMemorySync": true` in HEAD's private config if explicit facts retained
|
|
2220
|
+
on that worker may be stored in HEAD's native project bank. The default is
|
|
2221
|
+
off. Use Mnemopi in `per-project` mode on both ends and place the lane in HEAD's
|
|
2222
|
+
own approved repository directory. The new worker lane starts with a private
|
|
2223
|
+
bank, without pre-existing shared facts. Existing sessions and other backends are not migrated.
|
|
2224
|
+
For text-only search, keep `mnemopi.noEmbeddings: true` in the persistent HEAD
|
|
2225
|
+
profile. For vector indexing, HEAD must already use persistent `models.offline: true`
|
|
2226
|
+
and authorize an in-process embedding provider on its live bank. A local model
|
|
2227
|
+
name or cached weights alone leave indexing deferred. A temporary
|
|
2228
|
+
override is not enough. Online HEADs with embeddings enabled are ineligible,
|
|
2229
|
+
even when a local model is named: on reopen, stock OMP can send stored facts
|
|
2230
|
+
to a process-wide provider. Sync never changes your chat or embedding settings.
|
|
2231
|
+
This setting takes effect with the normal authorized config activation; do not
|
|
2232
|
+
restart a live service just to inspect it. Check the lane's `memorySync` field
|
|
2233
|
+
with `lane_inspect`. A checked page is not necessarily a vector-indexed page.
|
|
2234
|
+
`pending` means embedding is in flight; `deferred` means no vector or active
|
|
2235
|
+
task is confirmed. Text search can already work in either case.
|
|
2236
|
+
No transfers run while a lane is unloaded. Setting the option to `false` stops
|
|
2237
|
+
future pulls after config activation; it does not erase facts already stored.
|
|
2238
|
+
See the [backend matrix, indexing and privacy limits](design/execution.md#idle-remote-memory-pull).
|
|
2239
|
+
|
|
2211
2240
|
## 5. Operational scope and recovery constraints
|
|
2212
2241
|
|
|
2213
2242
|
- Autonomous work uses the existing native task/job, goal, and workflow owners. It preserves
|
|
@@ -2322,7 +2351,9 @@ OMP_SUPERAGENT_WORKER_SSH_TEST=1 bun test test/native-worker-ssh.test.ts
|
|
|
2322
2351
|
```
|
|
2323
2352
|
|
|
2324
2353
|
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.
|
|
2354
|
+
builds the native binaries, then runs the test files with two isolated workers. Both the
|
|
2355
|
+
local and CI suites build the loopback operator once through Cargo and pass its reported
|
|
2356
|
+
executable to those workers. A targeted `bun test` builds it on demand. To check for
|
|
2326
2357
|
order dependencies, run the same set serially with `bun test test`. The default tests exclude
|
|
2327
2358
|
opt-in native/PTY scenarios. Do not substitute a bare `bun test`, which also discovers tests
|
|
2328
2359
|
in `.upstream`. In a checkout with OMP and managed omp-superkit ready, `bun run test:ci`
|
|
@@ -2333,7 +2364,7 @@ standalone CLI on `PATH`. It skips `node_modules/.bin`, which Bun puts at the fr
|
|
|
2333
2364
|
not fall back to the SDK CLI or an older binary. It prints the selected OMP version and
|
|
2334
2365
|
executable path and checks metadata for the public RPC and process observation capabilities.
|
|
2335
2366
|
`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
|
|
2367
|
+
checks run only on macOS. `test:ci` shares the native binaries extracted by the
|
|
2337
2368
|
installed CLI in a temporary per-run cache. Each fixture's HOME, settings, and authentication
|
|
2338
2369
|
remain isolated. Setting `OMP_TEST_NATIVES_DIR` to a trusted absolute path uses that path
|
|
2339
2370
|
instead of the temporary cache; it is not deleted after the run.
|
|
@@ -2350,6 +2381,11 @@ The download requires internet access, curl, and shasum. CI does not run OMP 18.
|
|
|
2350
2381
|
run the same checks manually with `bash scripts/test-omp.sh v18.22.2`, or specify `v18.20.3`
|
|
2351
2382
|
to test the older asynchronous task API.
|
|
2352
2383
|
|
|
2384
|
+
CI caches Rust dependencies, not the project's binaries or test results. Only a
|
|
2385
|
+
successful `main` push saves the cache. Source tests and package builds use separate
|
|
2386
|
+
targets; a tagged package build does not restore the dependency cache. All compilation,
|
|
2387
|
+
tests, linkage checks and package install checks still run on a cache hit.
|
|
2388
|
+
|
|
2353
2389
|
**OMP upstream compatibility** runs every Monday at 04:17 UTC or on manual dispatch in
|
|
2354
2390
|
Actions. It looks up the latest official upstream release tag once, then runs the same
|
|
2355
2391
|
checks against that tag on Ubuntu and macOS ARM64. Reproduce a failing tag locally with
|
package/docs/OPERATIONS.md
CHANGED
|
@@ -157,16 +157,18 @@ SUPER 스킬 조회·추가 레인·goal·모델 변경·workflow artifact가
|
|
|
157
157
|
대상으로 헤드 검토 한 건이 즉시 영속 큐에 들어가지만 바로 답변이 오는 것은 아니다.
|
|
158
158
|
헤드는 원래 선택지 중 하나로 답하거나 같은 카드를 원래 경로의 운영자에게 넘긴다.
|
|
159
159
|
`to`를 생략하면 연결 주제의 질문은 운영자에게, 헤드가 위임한 작업의 질문은 헤드에게 간다.
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
160
|
+
- **레인의 작업 변경:** 해당 레인에 연결된 주제에서 새 지시를 직접 보낸다. 인증된 운영자가
|
|
161
|
+
명시적으로 지시한 내용은 선택된 작업공간 안에서 기존 헤드 지시와 충돌하는 작업 범위나
|
|
162
|
+
완료 기준을 바꿀 수 있다. 레인이 새 턴이나 steer로 입력을 읽을 때 적용하며, 별도의 헤드
|
|
163
|
+
승인이나 재위임은 없다. 예를 들어 “이 저장소의 API 문서도 수정하고 예제까지 검증해 줘”는
|
|
164
|
+
작업을 변경하는 지시다. 같은 문장을 인용하거나 전달하는 것만으로는 지시가 되지 않는다.
|
|
165
|
+
체크아웃 변경, 다른 레인의 작업 인수, 일시정지 해제, native 승인, 거부되었거나 결과가
|
|
166
|
+
불확실한 작업의 재시도는 허용하지 않는다.
|
|
167
|
+
재연결로 같은 주제의 예전 지시가 최신 메시지보다 늦게 복구된 경우, 여전히 필요한 작업은
|
|
168
|
+
새 메시지로 지시한다. 봇 계정이 바뀌면 이전 계정의 대기 요청은 새 계정으로 실행하지 않는다.
|
|
167
169
|
|
|
168
170
|
[직접 조율](design/execution.md#direct-lane-coordination) 및
|
|
169
|
-
[
|
|
171
|
+
[운영자의 직접 작업 변경 규칙](design/execution.md#direct-owner-changes-to-bound-topic-work)을 참고한다.
|
|
170
172
|
|
|
171
173
|
### 새 레인의 모델 선택
|
|
172
174
|
|
|
@@ -385,13 +387,13 @@ bun --no-env-file "$NEW_CLI" doctor --config "$CONFIG" &&
|
|
|
385
387
|
### 처음 설치
|
|
386
388
|
|
|
387
389
|
```sh
|
|
388
|
-
bun add --global --trust omp-superagent@0.1.
|
|
390
|
+
bun add --global --trust omp-superagent@0.1.15
|
|
389
391
|
omp-sa --help
|
|
390
392
|
```
|
|
391
393
|
|
|
392
394
|
`--trust`는 관리형 omp-superkit 준비 등 패키지 설치 스크립트를 허용한다.
|
|
393
395
|
`bun pm bin --global`의 출력 경로를 PATH에 포함한다. Bun이 PATH에 있으면
|
|
394
|
-
`npm install --global omp-superagent@0.1.
|
|
396
|
+
`npm install --global omp-superagent@0.1.15`도 사용할 수 있다.
|
|
395
397
|
설정은 설치 디렉터리가 아닌 사용자 작업 디렉터리에
|
|
396
398
|
`omp-sa setup --config ./config.local.json`으로 만든다. 설치만으로 봇을 활성화하지 않는다.
|
|
397
399
|
|
|
@@ -786,6 +788,10 @@ Slack은 [`reactions.add`](https://docs.slack.dev/reference/methods/reactions.ad
|
|
|
786
788
|
바꾸거나 자동 재시도하지 않는다. 이 표시는 작업 성공·완료 검증이나 플랫폼 read receipt가
|
|
787
789
|
아니다. 강제 종료·API 실패 시 원격 반응 정리는 보장하지 않는다.
|
|
788
790
|
|
|
791
|
+
같은 Discord 대화의 후속 메시지가 실행 중인 HEAD 턴에 합류한 경우 최종 답변 본문은
|
|
792
|
+
한 번만 전송한다. native 실행에서 후속 메시지가 그 답변 전에 들어왔고 해당 요청의
|
|
793
|
+
종료가 확인되면, 답변 전송이 확인된 뒤 각각의 원본 후속 메시지에 통합 답변 링크를 단다.
|
|
794
|
+
|
|
789
795
|
## 3. 설정
|
|
790
796
|
|
|
791
797
|
### 터미널 셋업
|
|
@@ -1075,6 +1081,9 @@ start는 **detached Gateway를 먼저 실행**하고 Gateway가 지정 head 하
|
|
|
1075
1081
|
영수증이 아니다. CLI가 출력한 Gateway/Host 로그에서 해당 단계의 실제 오류·상태를 구분한다.
|
|
1076
1082
|
Gateway 로컬 endpoint는 `<stateDir>/run/gateway.sock`, 실제 어댑터·감독 로그는
|
|
1077
1083
|
`<stateDir>/logs/gateway.log`다. native head 로그와 transport 로그를 혼동하지 않는다.
|
|
1084
|
+
Discord 소유자 메시지가 부모 채널 allowlist에서 제외되면 이 로그에서
|
|
1085
|
+
`Discord owner input ignored: channel not allowlisted`를 확인한다. 빈도를 제한하며
|
|
1086
|
+
서버·전송 대상·부모 채널 ID만 남긴다. 제외된 채널에는 아무것도 게시하지 않는다.
|
|
1078
1087
|
헤드 부재 중에도 준비된 Gateway는 ACK 전에 수신을 저장한다. 미해결 접수/답변은
|
|
1079
1088
|
pending 순서를 유지하고 `gateway.unresolvedEvents`와 `head.ready: false`로 표시한다.
|
|
1080
1089
|
재연결·접수 재전달은 원래 작업·외부 효과의 재실행 허가가 아니다. 운영자는 로그·원래 receipt와
|
|
@@ -1139,7 +1148,8 @@ HEAD 답변에서 저장한 리비전을 확인한다. 설정은 재시작 후
|
|
|
1139
1148
|
작업 스레드는 해당 레인으로 전달한다. `/head 요청`은 스레드에서도 HEAD를 지정한다.
|
|
1140
1149
|
같은 대화에 실행 중인 작업이 있으면 `/steer` 없이 다음 OMP steering 경계에서 반영하고,
|
|
1141
1150
|
유휴 상태면 새 실행을 시작한다. 스레드 개설 직후의 첫 답장도 원래 실행의 답변 경로가
|
|
1142
|
-
그 스레드로 확인되면 합류할 수 있다.
|
|
1151
|
+
그 스레드로 확인되면 합류할 수 있다. 운영자가 직접 보낸 steer는 레인의 작업을 바꿀 수 있지만
|
|
1152
|
+
실행의 보고 방식은 바꾸지 않는다. 메시지 접수나 RPC 수락만으로 모델이 입력을 읽었다고
|
|
1143
1153
|
볼 수는 없다. 다른 대화, 내부 보고, workflow 선택과 제어 명령은 현재 실행에 섞지 않으며
|
|
1144
1154
|
일시정지·승인·압축·불확실성 보류를 우회하지 않는다. 원래 Discord 주소 지정 정책은 그대로
|
|
1145
1155
|
적용하며, 같은 실행의 최종 답변/보고는 중복 발송하지 않는다.
|
|
@@ -1660,13 +1670,11 @@ head의 native 승인 카드 복구를 먼저 마친 뒤 입력·콜백 처리
|
|
|
1660
1670
|
|
|
1661
1671
|
헤드가 위임한 작업의 질문과 레인 root가 `decision_ask({to:"head", questions:[…]})`로
|
|
1662
1672
|
명시적으로 보낸 질문은 헤드가 먼저 검토한다. 다른 연결 주제 질문은 운영자에게 직접 간다.
|
|
1663
|
-
|
|
1664
|
-
않은 채 내부에서 취소한다.
|
|
1665
|
-
위임 범위 안의 일상적 선택이면 헤드는 `lane_review_decision`으로 원래 선택지 중 하나를
|
|
1673
|
+
현재 작업 범위 안의 일상적 선택이면 헤드는 `lane_review_decision`으로 원래 선택지 중 하나를
|
|
1666
1674
|
골라 레인에 돌려보낸다. 이유는 내부 이력에 남기고 별도 메신저 알림은 보내지 않는다.
|
|
1667
1675
|
운영자의 판단이 필요하면 대기 중인 같은 질문을 넘기고 원래 카드에 이관 이유를 표시한다.
|
|
1668
|
-
|
|
1669
|
-
|
|
1676
|
+
기존 검토가 남은 상태에서 헤드가 중지되면 컨트롤러가 대기 중인 같은 질문을 원래
|
|
1677
|
+
운영자에게 넘길 수 있다.
|
|
1670
1678
|
이 경로는 범위 변경이나 native 실행 승인을 허가하지 않는다. 일반 native dialog에도 헤드가
|
|
1671
1679
|
대신 답하지 않는다. 아래의 `ask` 카드는 `decision_ask`가 쓰는 구조화된
|
|
1672
1680
|
`askDialog`다. OMP 19.1 내장 `ask`의 HTML `form`은 Host가 메신저로 보내지 않고
|
|
@@ -1802,6 +1810,27 @@ SSH가 끊겨도 Host 자체는 종료되지 않습니다. Host가 종료된 뒤
|
|
|
1802
1810
|
`omp-sa status --config ./config.local.json`에서 확인합니다. 접근을 철회할 때는
|
|
1803
1811
|
워커에서 **해당 등록 키만** 제거하세요. 키 제거가 이미 실행 중인 레인을 중단하지는 않습니다.
|
|
1804
1812
|
|
|
1813
|
+
**원격 레인의 프로젝트 메모리 가져오기(선택).** 워커에 명시적으로 저장한 사실을
|
|
1814
|
+
HEAD의 프로젝트 메모리에도 남겨도 되는 경우에만, **새 레인**을 열기 전에 HEAD
|
|
1815
|
+
설정에 `"remoteMemorySync": true`를 지정하세요. 기본은 꺼짐입니다. 양쪽 모두
|
|
1816
|
+
Mnemopi의 `per-project` 모드를 사용해야 하고, 레인의 로컬 작업 경로가 HEAD의 승인된 작업 경로와 같아야
|
|
1817
|
+
합니다. 새 워커 레인은 별도 메모리 저장소로 시작하며 기존 공유 메모리를 읽거나 옮기지
|
|
1818
|
+
않습니다. 텍스트 검색만 쓰려면 HEAD의 영구 프로필에 `mnemopi.noEmbeddings: true`가
|
|
1819
|
+
설정되어 있어야 합니다. 즉시 벡터 색인은 이미 `models.offline: true`로 운영하는 HEAD에서
|
|
1820
|
+
해당 메모리 저장소에 지정·허용된 인프로세스 임베딩 제공자가 있을 때 지원합니다.
|
|
1821
|
+
로컬 모델 이름이나 캐시된 가중치만 있으면 텍스트를 저장하고 벡터 색인은 보류합니다.
|
|
1822
|
+
일시적인 설정 변경만으로는 허용되지 않습니다. 온라인 HEAD에서 임베딩이 켜져 있으면
|
|
1823
|
+
모델 이름이 로컬이어도 가져오지 않습니다. OMP가 저장소를 다시 열 때 기존 사실을
|
|
1824
|
+
프로세스 공용 제공자에게 보낼 수 있기 때문입니다. 동기화가 채팅·임베딩 설정을 바꾸지는 않습니다.
|
|
1825
|
+
기존 세션이나 다른 백엔드의 데이터는 옮기지 않습니다. 설정은 평소처럼
|
|
1826
|
+
승인된 기동 시 반영되며, 상태 확인만을 위해 재시작할 필요는 없습니다.
|
|
1827
|
+
`lane_inspect`의 `memorySync`에서 마지막 페이지의 상태를 확인하세요. 조회 성공과
|
|
1828
|
+
벡터 색인 확인은 다릅니다. `pending`은 임베딩 진행 중, `deferred`는 저장된 벡터도
|
|
1829
|
+
실행 중인 임베딩도 확인되지 않은 상태입니다. 둘 다 텍스트 검색은 가능합니다. 유휴 Host가 이미
|
|
1830
|
+
내려갔다면 복사를 위해 깨우지 않습니다.
|
|
1831
|
+
다시 `false`로 설정하면 다음 설정 반영부터 가져오기가 중단되며, 이미 양쪽에 저장한
|
|
1832
|
+
사실은 삭제되지 않습니다. [백엔드별 지원 범위와 개인정보·색인 제약](design/execution.md#idle-remote-memory-pull)을 참고하세요.
|
|
1833
|
+
|
|
1805
1834
|
## 5. 운영 범위와 복구 제약
|
|
1806
1835
|
|
|
1807
1836
|
- 자율 작업은 기존 native task/job·goal·workflow owner를 사용하며 원래 허가 목표·source/route·
|
|
@@ -1893,7 +1922,9 @@ OMP_SUPERAGENT_WORKER_SSH_TEST=1 bun test test/native-worker-ssh.test.ts
|
|
|
1893
1922
|
```
|
|
1894
1923
|
|
|
1895
1924
|
일반 회귀는 `bun run check`와 `bun run test`로 실행한다. 테스트 스크립트는 네이티브 바이너리를
|
|
1896
|
-
빌드한 뒤 격리된 워커 두 개로 테스트 파일을 실행한다.
|
|
1925
|
+
빌드한 뒤 격리된 워커 두 개로 테스트 파일을 실행한다. 로컬과 CI 모두 루프백 operator를 Cargo로
|
|
1926
|
+
한 번 빌드해 출력된 실행 파일 경로를 워커에 전달한다. 개별 `bun test`는 필요할 때 직접 빌드한다.
|
|
1927
|
+
순서 의존성을 확인할 때는 같은 범위를 `bun test test`로 직렬 실행할 수 있다.
|
|
1897
1928
|
기본 테스트는 opt-in native/PTY 시나리오를 제외한다. `.upstream`까지 탐색하는 인수 없는
|
|
1898
1929
|
`bun test`로 대체하지 않는다. OMP와 관리형 omp-superkit이 준비된 checkout의 `bun run test:ci`는
|
|
1899
1930
|
타입 검사, Rust Host owner·Gateway 테스트, 로컬 project/native/PTY·omp-superkit 통합 회귀를 실행한다. `scripts/ci.ts`는 활성
|
|
@@ -1901,7 +1932,7 @@ OMP_SUPERAGENT_WORKER_SSH_TEST=1 bun test test/native-worker-ssh.test.ts
|
|
|
1901
1932
|
standalone CLI를 찾는다. Bun이 앞에 넣은 `node_modules/.bin`은 건너뛰며 SDK CLI나 과거 binary로 대체하지 않는다.
|
|
1902
1933
|
선택한 OMP 버전·실행 경로를 출력하고 공개 RPC·프로세스 관측 기능을 메타데이터로 확인한다.
|
|
1903
1934
|
`test:ci` 자체는 OMP를 다운로드·빌드·업데이트하지 않는다. Python 3이 필요하며 launchd 검증은 macOS에서만 실행한다.
|
|
1904
|
-
`test:ci`는 설치된 CLI가 추출한 네이티브
|
|
1935
|
+
`test:ci`는 설치된 CLI가 추출한 네이티브 바이너리를 실행별 임시 캐시에 공유한다. 각 fixture의 HOME·설정·인증은 계속 격리한다.
|
|
1905
1936
|
`OMP_TEST_NATIVES_DIR`에 신뢰하는 절대 경로를 직접 지정하면 임시 캐시 대신 사용하며, 이 경로는 실행 후 삭제하지 않는다.
|
|
1906
1937
|
|
|
1907
1938
|
PR, `main`, 수동 실행과 `v*` 릴리즈 태그의 GitHub Actions는 Ubuntu 24.04와 macOS 15 ARM64에서
|
|
@@ -1915,6 +1946,10 @@ SHA-256과 `omp --version`을 확인한다.
|
|
|
1915
1946
|
OMP 18은 CI에서 실행하지 않는다. 필요할 때만 `bash scripts/test-omp.sh v18.22.2` 또는 이전
|
|
1916
1947
|
비동기 작업 API를 쓰는 `v18.20.3`을 지정해 같은 검사를 수동으로 실행한다.
|
|
1917
1948
|
|
|
1949
|
+
CI는 Rust 의존성만 캐시하며 프로젝트 바이너리나 테스트 결과는 재사용하지 않는다. 성공한
|
|
1950
|
+
`main` 푸시만 캐시를 저장한다. 소스 테스트와 패키지 빌드의 캐시는 분리하고, 태그의 패키지는
|
|
1951
|
+
캐시를 복원하지 않고 빌드한다. 캐시가 있어도 프로젝트 컴파일·테스트·링크·설치 검증은 그대로 수행한다.
|
|
1952
|
+
|
|
1918
1953
|
**OMP upstream compatibility**는 매주 월요일 04:17 UTC 또는 Actions에서 수동으로 실행한다.
|
|
1919
1954
|
upstream의 최신 정식 릴리스 태그를 한 번 조회한 뒤 Ubuntu·macOS ARM64에서 그 태그로 같은 검사를 수행한다.
|
|
1920
1955
|
실패한 태그는 로컬에서 `bash scripts/test-omp.sh vX.Y.Z`로 재현한다. 필요한 기능이 없거나 회귀가
|