omp-superagent 0.1.17 → 0.1.19
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 +15 -12
- package/config.example.json +4 -1
- package/docs/OPERATIONS.en.md +205 -59
- package/docs/OPERATIONS.md +173 -47
- package/docs/design/execution.md +119 -37
- package/docs/design/messaging.md +160 -45
- package/docs/releases/0.1.18.md +10 -0
- package/docs/releases/0.1.19.md +10 -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 +1 -1
- package/skills/head/SKILL.md +6 -5
- package/skills/head/references/model-selection.md +8 -22
- package/skills/head/references/routing.md +36 -17
- package/skills/lane/SKILL.md +24 -76
- package/skills/lane/references/workflow.md +7 -94
- package/src/cli.ts +36 -16
- package/src/config/config.ts +21 -2
- package/src/contracts.ts +66 -7
- package/src/cron/cron-jobs.ts +135 -92
- package/src/cron/cron-pr-intake.ts +18 -11
- package/src/extension.ts +25 -10
- package/src/gateway/gateway-client.ts +3 -1
- package/src/host-extension.ts +76 -8
- package/src/lane/lane-report.ts +1 -1
- package/src/lane/lane-rows.ts +2 -1
- package/src/lane/workflow.ts +12 -6
- package/src/lane-extension.ts +4 -21
- package/src/managed-super-probe.ts +21 -15
- package/src/messaging/messenger-command-catalog.json +1 -1
- package/src/messaging/messenger-commands.ts +8 -3
- package/src/messaging/result-attachment.ts +77 -19
- package/src/messaging/slack-context.ts +50 -0
- package/src/messaging/written-directives.ts +56 -0
- package/src/omp/exit-record.ts +27 -0
- package/src/omp/host-protocol.ts +20 -0
- package/src/omp/host.ts +73 -20
- package/src/omp/installed-omp.ts +15 -12
- package/src/omp/managed-super.ts +135 -65
- package/src/omp/superkit-skills.ts +15 -2
- package/src/pr/pr-intake-order.ts +62 -0
- package/src/pr/pr-intake-review.ts +49 -31
- package/src/pr/pr-intake-work.ts +3 -2
- package/src/routing/message-order.ts +22 -1
- package/src/routing/topic-request.ts +48 -4
- package/src/runtime/controller.ts +968 -338
- package/src/runtime/deferred-routing.ts +12 -4
- package/src/runtime/dm-timeline.ts +3 -3
- package/src/runtime/inbound-attachments.ts +70 -0
- package/src/runtime/local-host-fence.ts +85 -0
- package/src/runtime/model-journal.ts +14 -9
- package/src/runtime/native-frames.ts +5 -1
- package/src/runtime/result-attachments.ts +151 -24
- package/src/runtime/worker-result-download.ts +36 -0
- package/src/storage/deferred-routing.ts +25 -4
- package/src/storage/store.ts +445 -75
- package/src/worker/worker-checkout.ts +89 -9
- package/src/worker/worker-destination.ts +8 -7
- package/src/worker/worker-doctor.ts +29 -9
- package/src/worker/worker-enrollment.ts +44 -12
- package/src/worker/worker-git-startup.ts +157 -0
- package/src/worker/worker-host.ts +16 -26
- package/src/worker/worker-ledger.ts +42 -18
- package/src/worker/worker-placement-intent.ts +13 -0
- package/src/worker/worker-placement.ts +204 -28
- package/src/worker/worker-profile.ts +18 -65
- package/src/worker/worker-project-startup.ts +106 -0
- package/src/worker/worker-registration.ts +85 -30
- package/src/worker/worker-repository.ts +55 -6
- package/src/worker/worker-request.ts +13 -6
- package/src/worker/worker-result-attachments.ts +185 -0
- package/src/worker/worker-result-wire.ts +12 -0
- package/src/worker/worker-service.ts +51 -23
- package/src/worker/worker-trust.ts +19 -4
- package/src/worker/worker-wire.ts +47 -14
- package/upstream/super.json +2 -3
package/DESIGN.md
CHANGED
|
@@ -11,7 +11,7 @@ without a HEAD review. Unbound ordinary requests go to the shared HEAD model
|
|
|
11
11
|
to answer directly or verify a workspace and assign work. Explicit placement,
|
|
12
12
|
historical lookup and code-handled controls do not require a shared-model turn
|
|
13
13
|
to route.
|
|
14
|
-
In a [bound Discord work thread](docs/design/messaging.md#topic-routing-and-controls),
|
|
14
|
+
In a [bound Discord or Slack work thread](docs/design/messaging.md#topic-routing-and-controls),
|
|
15
15
|
historical continuation and its replies stay there unless the operator explicitly
|
|
16
16
|
asks to split. Separately,
|
|
17
17
|
[restricted group rooms](docs/design/messaging.md#restricted-group-rooms) opt
|
|
@@ -245,20 +245,23 @@ surface. Do not patch or build OMP, use the in-tree SDK as the CLI, or use a
|
|
|
245
245
|
runtime wrapper in place of the native CLI.
|
|
246
246
|
|
|
247
247
|
[CI](https://github.com/dbc-hbin/omp-superagent/actions/workflows/ci.yml)
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
and
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
248
|
+
selects one latest official OMP tag per run for the Linux x64 and macOS ARM64
|
|
249
|
+
source tests, including the weekly schedule and manual `source_only` runs.
|
|
250
|
+
A full rerun repeats the lookup and can select a different tag under the same
|
|
251
|
+
Actions run ID. CI does not fall back or change SDK pins. Full runs also build and
|
|
252
|
+
verify a fresh install of the current npm payload on Linux and macOS on both
|
|
253
|
+
architectures. They do not reinstall a historical npm release; see the
|
|
254
|
+
[packaging procedure](docs/OPERATIONS.en.md#source-and-npm-releases).
|
|
255
|
+
Locally, `bun run test:ci` uses the installed CLI, `bun run test:baseline` downloads
|
|
256
|
+
and verifies the SDK-matched official binary, and `bash scripts/test-omp.sh <release-tag>`
|
|
257
|
+
reproduces checks for a particular release, including older releases such as OMP 18.
|
|
256
258
|
These local fixtures cover native RPC/Host, Gateway and setup surfaces; they do not
|
|
257
259
|
prove live messenger accounts, provider requests or costs, or login/reboot behavior.
|
|
258
|
-
Treat CI configuration as a test matrix, not a test result.
|
|
259
|
-
|
|
260
|
+
Treat CI configuration as a test matrix, not a test result. For the exact commit
|
|
261
|
+
or project tag, record the Actions run ID and attempt number and the OMP tag
|
|
262
|
+
printed on the `Testing stock OMP` log line. Past evidence, such as the
|
|
260
263
|
[v0.1.3 tag run](https://github.com/dbc-hbin/omp-superagent/actions/runs/44695941397),
|
|
261
|
-
applies only to that release's configured checks, not to
|
|
264
|
+
applies only to that release's configured checks, not to later OMP versions.
|
|
262
265
|
|
|
263
266
|
Same-process native TUI/herdr attachment to managed RPC Hosts is **unsupported**.
|
|
264
267
|
Native session discovery and ordinary resume are not attachment or a grant of
|
package/config.example.json
CHANGED
|
@@ -26,7 +26,10 @@
|
|
|
26
26
|
"appTokenEnv": "SLACK_APP_TOKEN",
|
|
27
27
|
"ownerId": "REPLACE_WITH_SLACK_OWNER_ID",
|
|
28
28
|
"teamId": "REPLACE_WITH_SLACK_TEAM_ID",
|
|
29
|
-
"allowedChannelIds": ["REPLACE_WITH_SLACK_CHANNEL_ID"]
|
|
29
|
+
"allowedChannelIds": ["REPLACE_WITH_SLACK_CHANNEL_ID"],
|
|
30
|
+
"requireAddressing": false,
|
|
31
|
+
"allowCrossChannelThreads": false,
|
|
32
|
+
"editProgressInPlace": false
|
|
30
33
|
},
|
|
31
34
|
"kakao": {
|
|
32
35
|
"bridgeUrl": "http://127.0.0.1:REPLACE_WITH_BRIDGE_PORT",
|
package/docs/OPERATIONS.en.md
CHANGED
|
@@ -35,6 +35,7 @@ Only the head can use `lane_models`, `lane_init_presets`, `lane_start`, `lane_se
|
|
|
35
35
|
`lane_inspect`, `lane_message`, `lane_pause`, `lane_resume`, `lane_close`,
|
|
36
36
|
`thread_inspect`, `lane_thread_update`, `messenger_presence`, `lane_watch`, `pr_watch`, `pr_watch_list`,
|
|
37
37
|
`discord_context`, `discord_purpose_list`, `discord_purpose_set`, `discord_purpose_clear`,
|
|
38
|
+
`slack_context`, `slack_purpose_list`, `slack_purpose_set`, `slack_purpose_clear`,
|
|
38
39
|
`decision_list`, `decision_inspect`, `decision_withdraw`, and `lane_review_decision`.
|
|
39
40
|
`decision_ask` is available to HEAD and root lanes, but not to native children.
|
|
40
41
|
Use `lane_inspect({})` to list lanes. Only root lanes can use `lane_report`; neither
|
|
@@ -238,9 +239,8 @@ entries that were manually changed or deleted, other presets, and entries shadow
|
|
|
238
239
|
higher-precedence configuration are not overwritten. Model and preset snapshots held by
|
|
239
240
|
the running head and existing lanes remain unchanged.
|
|
240
241
|
|
|
241
|
-
The head
|
|
242
|
-
|
|
243
|
-
Consultation is skill policy, not a runtime gate requiring a receipt for every invocation.
|
|
242
|
+
The head selects an exact model or preset. A judge comparison and a written
|
|
243
|
+
selection note are optional for new lanes; neither is needed to start ordinary work.
|
|
244
244
|
The lane's selection is stored as a full preset snapshot and does not change on later
|
|
245
245
|
preset edits or resume. Availability or identity drift puts the lane on hold without
|
|
246
246
|
automatic substitution. Request an explicit model change for an idle lane only through
|
|
@@ -256,9 +256,8 @@ exceptions, judge limits, model adoption, and the private overlay contract.
|
|
|
256
256
|
The current source uses Git, **Bun >= 1.4.4** (`packageManager: bun@1.4.4`), and a local
|
|
257
257
|
Unix socket. You can install the package without OMP. Running the Host requires a separately
|
|
258
258
|
installed stock OMP. Rather than gating by version number, the Host checks interfaces for
|
|
259
|
-
`rpc-ui`, session resumption, extensions, model selection, and process observation.
|
|
260
|
-
|
|
261
|
-
[OMP 19.1.1](https://github.com/can1357/oh-my-pi/commit/31ffee513f27a01bba7d4dfbe12bae239cdc646a).
|
|
259
|
+
`rpc-ui`, session resumption, extensions, model selection, and process observation. CI tests
|
|
260
|
+
the latest official OMP release. Older versions, such as OMP 18, can be checked by tag.
|
|
262
261
|
`doctor` reports the executable path selected by `command`, its version, and the service
|
|
263
262
|
backend. It does not guarantee login or runtime compatibility. The Host performs actual RPC
|
|
264
263
|
initialization and ownership checks.
|
|
@@ -270,8 +269,8 @@ never confirmed in the old session.
|
|
|
270
269
|
|
|
271
270
|
The default `command: ["omp"]` looks up OMP on PATH. To use a different installation, put
|
|
272
271
|
its OMP path in the first entry of `command`. A relative path is resolved against the
|
|
273
|
-
configuration file's directory, and all lanes use the same path.
|
|
274
|
-
download OMP or build it from source.
|
|
272
|
+
configuration file's directory, and all lanes use the same path. Installing or running
|
|
273
|
+
Superagent does not download OMP or build it from source.
|
|
275
274
|
|
|
276
275
|
### Update an Existing Installation
|
|
277
276
|
|
|
@@ -537,21 +536,29 @@ previous layout still work. To prepare only omp-superkit again, run:
|
|
|
537
536
|
bun run prepare:ulw
|
|
538
537
|
```
|
|
539
538
|
|
|
540
|
-
`upstream/super.json` specifies the official
|
|
541
|
-
Installation checks
|
|
539
|
+
`upstream/super.json` specifies the official GitHub release source and
|
|
540
|
+
`checkIntervalMs: 3600000` (one hour). Installation checks GitHub's **latest stable
|
|
541
|
+
release** and verifies its packaged ZIP against the published SHA-256. Unreleased
|
|
542
|
+
commits are not installed. A production Gateway needs a
|
|
542
543
|
valid active installation before startup. Once it confirms that, it starts IPC and the
|
|
543
|
-
head first, checks the remote in the background, and then checks hourly for new
|
|
544
|
+
head first, checks the remote in the background, and then checks hourly for new releases
|
|
544
545
|
to prepare and activate. A slow or unreachable upstream does not delay startup if the
|
|
545
546
|
Gateway already has a valid active installation. Ordinary code checks for updates; this
|
|
546
547
|
is not a model watchdog, does not run a work lane, and does not authorize messenger bot
|
|
547
|
-
login.
|
|
548
|
+
login. Preparation needs `curl`, `git`, and `unzip` on PATH, and network access for
|
|
549
|
+
GitHub and any package dependencies. The process does not modify the
|
|
548
550
|
user's omp-superkit checkout, global OMP installation or configuration, or shared prompt
|
|
549
551
|
sources.
|
|
550
552
|
|
|
553
|
+
If GitHub limits anonymous API requests, set `OMP_SUPERAGENT_SUPERKIT_GITHUB_TOKEN`
|
|
554
|
+
for preparation to a GitHub token with read access to the public release metadata.
|
|
555
|
+
It is used only for the official metadata endpoint, not the ZIP download.
|
|
556
|
+
|
|
551
557
|
Only an immutable revision that passes preparation and the offline composition probe is
|
|
552
|
-
activated, and activation is atomic.
|
|
553
|
-
|
|
554
|
-
|
|
558
|
+
activated, and activation is atomic. An existing commit-based installation remains
|
|
559
|
+
usable. The next release must come from the same remote and tag the active commit or
|
|
560
|
+
a descendant; this also applies across the official `omp-ulw` → `omp-superkit` rename.
|
|
561
|
+
Failures, rewinds, and divergence leave the previous package active.
|
|
555
562
|
See the [design](design/execution.md#managed-omp-superkit-integration) for the lock, staging,
|
|
556
563
|
and probe contracts. Do not bypass them by manually editing the managed pointer or lock.
|
|
557
564
|
If there is no valid active revision, `start` fails before activating adapters. Recover
|
|
@@ -564,11 +571,11 @@ To check installation status without network access, run:
|
|
|
564
571
|
bun run prepare:ulw -- --status
|
|
565
572
|
```
|
|
566
573
|
|
|
567
|
-
The Gateway status response's `ulw` fields
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
574
|
+
The Gateway status response's `ulw` fields `releaseTag`, `revision`, and `packagePath`
|
|
575
|
+
identify the **active package the next new Host will use**, not the version of every
|
|
576
|
+
running Host. `releaseTag` is null for a legacy commit-based installation.
|
|
577
|
+
`upstreamReleaseTag` and `upstreamRevision` describe the last remote check; read them
|
|
578
|
+
alongside `checkedAt`, `error`, and `updating`. `injected` appears only for test injection. A failed or
|
|
572
579
|
unperformed remote check does not show as a confirmed match with the latest version.
|
|
573
580
|
In `omp-sa status --config FILE`, `gateway.head.loadedSuperkitPath` is the package path
|
|
574
581
|
verified when the connected head's actual OMP session started. If it differs from
|
|
@@ -780,6 +787,43 @@ guarantee cleanup for languages you did not select. The official API methods are
|
|
|
780
787
|
`/` forms as Slack controls. Commands registered in Slack's picker use
|
|
781
788
|
**`/superagent-<command>`**, for example `/superagent-new`, `/superagent-main`,
|
|
782
789
|
and `/superagent-status`, to avoid conflicts with built-in Slack commands.
|
|
790
|
+
Slack [does not allow app slash commands in threads](https://docs.slack.dev/interactivity/implementing-slash-commands/);
|
|
791
|
+
use `!` there. `!model` can select HEAD or the bound lane. Use `!usage-reset`
|
|
792
|
+
or `/superagent-usage-reset` for the saved reset picker; `!usage reset` still works.
|
|
793
|
+
|
|
794
|
+
Set `slack.requireAddressing` to `true` to require a real mention of this bot in
|
|
795
|
+
ordinary workspace-channel messages, including their threads. It defaults to
|
|
796
|
+
`false` and does not affect owner DMs, written controls, installed slash commands,
|
|
797
|
+
or verified card interactions. To specify a workspace, start with a real bot
|
|
798
|
+
mention followed by `cwd: /absolute/path` and put the task on the next line.
|
|
799
|
+
In a Slack thread with several pending workspace
|
|
800
|
+
questions, use the exact `!choose <request-ts> <path or number>` printed by each
|
|
801
|
+
question. An expired `!choose` is ignored and does not start new work. A bare
|
|
802
|
+
number can still be ambiguous just after expiry; use `!choose` when referring to
|
|
803
|
+
a particular question.
|
|
804
|
+
|
|
805
|
+
Slack work already bound to a thread stays there unless explicitly split.
|
|
806
|
+
Set `slack.allowCrossChannelThreads` to `true` to permit explicit HEAD placement in
|
|
807
|
+
another allowlisted channel in the same workspace, where the bot is a member.
|
|
808
|
+
Set `slack.editProgressInPlace` to `true` to edit one confirmed progress message.
|
|
809
|
+
Progress too long for that single Slack status is sent as ordinary output.
|
|
810
|
+
Both settings default to `false`. A bot-created work starter supports an editable
|
|
811
|
+
label and the latest submitted run's status; user-authored roots are not edited.
|
|
812
|
+
If ordered intake is blocked in a bound work thread, bare `!stop` can still pause
|
|
813
|
+
the exact bound lane unless the root links the command to a different or unverified
|
|
814
|
+
target; use `!stop <lane-id>` to be explicit. Slack does not provide
|
|
815
|
+
native thread archive/reopen, forum tag, or bot Huddle media controls. Use
|
|
816
|
+
`!stop`/`!resume` for lane lifecycle, not to archive a thread. Configure bot presence
|
|
817
|
+
in the Slack app settings, not with a chat command.
|
|
818
|
+
|
|
819
|
+
For an original Slack request, `slack_context` reads the current channel name,
|
|
820
|
+
topic, native Slack purpose, and exact thread identity when available.
|
|
821
|
+
`slack_purpose_list`, `slack_purpose_set`, and `slack_purpose_clear` manage
|
|
822
|
+
Superagent's local notes for that channel or thread only; they do not change
|
|
823
|
+
Slack settings or work routing. A follow-up verified to have joined the same HEAD
|
|
824
|
+
answer gets a notice with links to the original follow-up and final answer in the
|
|
825
|
+
same conversation. No notice is sent when an exact message cannot be verified,
|
|
826
|
+
including when the final output only has a file receipt.
|
|
783
827
|
|
|
784
828
|
Command registration needs an **app configuration token**, separate from the bot token and
|
|
785
829
|
the `connections:write` app token. Put it in an environment variable or private credential
|
|
@@ -933,6 +977,15 @@ also shows uncertain IDs for earlier inputs or inputs joined to the current exec
|
|
|
933
977
|
and any runtime or kickoff blocks. `pending` does not guarantee native delivery or
|
|
934
978
|
execution.
|
|
935
979
|
|
|
980
|
+
When admission waits for `maxHosts`, `queueHolds.capacity` reports the last
|
|
981
|
+
completed admission check: resident count (including HEAD), limit, and `unverifiedLocalLaneIds`.
|
|
982
|
+
Inspect those lanes individually. `localFence: "journal-unverified"` means
|
|
983
|
+
HEAD verified a dead local Host and released only its slot; the original
|
|
984
|
+
journal, approvals and inputs remain held. Use a new lane for independent
|
|
985
|
+
work. Do not rename the socket, edit the ledger, or replay uncertain input.
|
|
986
|
+
An unknown owner, including an older installation with neither a recorded
|
|
987
|
+
handshake nor a matching fresh exit receipt, continues to count.
|
|
988
|
+
|
|
936
989
|
Elapsed time is calculated at query time and is null if the clock moves backward. Only
|
|
937
990
|
the root lane's `lane_report` selects and hashes actual files or tool results and records
|
|
938
991
|
them in the native journal. In `eval`, finish the report cell before entering a long
|
|
@@ -1639,7 +1692,7 @@ command for every PR. Each level includes the actions allowed by the previous on
|
|
|
1639
1692
|
|
|
1640
1693
|
| Recognized Korean text to send in the parent channel | Equivalent command | Unattended behavior |
|
|
1641
1694
|
| --- | --- | --- |
|
|
1642
|
-
| `무인으로 리뷰만` (“Unattended review only”) | `/cron pr-mode JOB review` | Review in a per-PR
|
|
1695
|
+
| `무인으로 리뷰만` (“Unattended review only”) | `/cron pr-mode JOB review` | Review in a per-PR messenger thread and a tool-free OMP lane, then leave only a GitHub review comment tied to that SHA. Do not submit an approving review. |
|
|
1643
1696
|
| `무인으로 리뷰 후 수정커밋까지` (“Unattended review and fix commits”) | `/cron pr-mode JOB fix` | In addition to reviewing and commenting, create a regular commit only if a fix can be applied safely, then review the new SHA. Do not merge. |
|
|
1644
1697
|
| `무인으로 수정커밋후 머지까지` (“Unattended fix commits and merge”) | `/cron pr-mode JOB merge` | If needed, fix and review again. Perform a regular merge only if the final SHA passes review and independent approval, required CI, and branch protection rules are all satisfied. |
|
|
1645
1698
|
|
|
@@ -1658,7 +1711,9 @@ target, send a new command specifying the repository. Quoted owner messages,
|
|
|
1658
1711
|
edited messages, PR descriptions, and model output are not configuration commands.
|
|
1659
1712
|
For example, to register `dbc-hbin/omp-superagent`, authenticate `gh` on HEAD as
|
|
1660
1713
|
`dbc-hbin` on `github.com` and send the commands below as the configured owner in
|
|
1661
|
-
**
|
|
1714
|
+
**an allowed Discord or Slack parent channel**. On Slack use `!cron` in a new
|
|
1715
|
+
message for PR enrollment, controls, and approval; `/superagent-cron` has no
|
|
1716
|
+
physical message timestamp and cannot authorize PR changes. GitHub organizations, repositories
|
|
1662
1717
|
owned by someone else, DMs, and existing threads are not eligible. Putting the same
|
|
1663
1718
|
instructions in an ordinary `/cron add` prompt will not enable this feature.
|
|
1664
1719
|
|
|
@@ -1687,12 +1742,15 @@ status with `/cron show JOB PR_NUMBER` in the parent channel.
|
|
|
1687
1742
|
is not copied as if it were owner input for each PR. The lane runs only after the
|
|
1688
1743
|
actual thread and delivery of the starter message are verified. If you need to
|
|
1689
1744
|
proceed manually, use `/cron pr-review JOB NUMBER SHA` from the notification. If a
|
|
1690
|
-
thread is already open for the PR, use that thread.
|
|
1745
|
+
thread is already open for the PR, use that thread. On Slack the verified
|
|
1746
|
+
bot alert is itself the root; Superagent does not create a second message
|
|
1747
|
+
to start the thread. Slack approval must follow the last confirmed answer
|
|
1748
|
+
part; a file receipt alone cannot authorize it.
|
|
1691
1749
|
2. **Created thread:** The lane performs a static review only of the changes fetched
|
|
1692
1750
|
from GitHub for that SHA. It does not check out the PR branch on the host or install,
|
|
1693
1751
|
build, or test it. The configured model provider processes the changes sent to the
|
|
1694
1752
|
model. Replies and fix proposals may contain excerpts of the code and can be seen
|
|
1695
|
-
by anyone who can read that
|
|
1753
|
+
by anyone who can read that thread. Check both disclosure boundaries before
|
|
1696
1754
|
registering a private repository. Keep `stateDir` outside the Git checkout.
|
|
1697
1755
|
Restricted mode uses an empty local directory and a stock OMP session with no tools.
|
|
1698
1756
|
If isolation cannot be verified, for example because of custom launch arguments or
|
|
@@ -2205,16 +2263,23 @@ checkout, use the source checkout instructions in [Local preparation](#1-local-p
|
|
|
2205
2263
|
Configure the worker account's own OMP provider access (not a shell-command
|
|
2206
2264
|
API key or remote auth broker) and enable its native
|
|
2207
2265
|
memory backend (for example `omp config set memory.backend mnemopi` if none
|
|
2208
|
-
is enabled).
|
|
2209
|
-
**at the requested commit**.
|
|
2266
|
+
is enabled). Choose the repository to enroll. For reproducible placement (`--repo`),
|
|
2267
|
+
prepare a clean checkout **at the requested commit**. To work on the worker's
|
|
2268
|
+
existing files, including uncommitted work, choose a current-checkout mode below. Enable **OpenSSH
|
|
2210
2269
|
server** for this account over your private network (e.g. a tailnet). The
|
|
2211
2270
|
endpoint must enforce OpenSSH `authorized_keys` forced commands; Tailscale
|
|
2212
2271
|
SSH's own login policy is not a substitute. No public port, second head,
|
|
2213
2272
|
`omp-sa setup` or `omp-sa start` is needed on the worker.
|
|
2214
2273
|
2. **On the head:** verify the worker's SSH host-key fingerprint with its operator
|
|
2215
2274
|
and trust it in the head account's `known_hosts`. Use a directly resolvable DNS
|
|
2216
|
-
name/IP, not a nickname from `~/.ssh/config`.
|
|
2217
|
-
|
|
2275
|
+
name/IP, not a nickname from `~/.ssh/config`. To route through the head's
|
|
2276
|
+
local Tailscale client instead of system DNS/TCP, use `tailscale://dev@linux-box:2222`.
|
|
2277
|
+
This uses `tailscale nc` as a byte pipe; it is **not** Tailscale SSH login.
|
|
2278
|
+
IPv6 literals use brackets, e.g. `dev@[fd00::42]:2222`. If Tailscale SSH handles port 22,
|
|
2279
|
+
use an OpenSSH port on the private network. Alternatively, an operator can
|
|
2280
|
+
expose an existing loopback OpenSSH listener through a tailnet-only TCP forward
|
|
2281
|
+
(Tailscale Serve), without moving its listening port. Restrict the exposed
|
|
2282
|
+
port to the intended client in the tailnet access policy. Pin the OpenSSH host key as
|
|
2218
2283
|
`[host]:port` in `known_hosts`, and use `dev@linux-box:port` in both `worker add`
|
|
2219
2284
|
calls. For the default SSH port:
|
|
2220
2285
|
```sh
|
|
@@ -2225,6 +2290,18 @@ checkout, use the source checkout instructions in [Local preparation](#1-local-p
|
|
|
2225
2290
|
```sh
|
|
2226
2291
|
omp-sa worker init --head-key 'ssh-ed25519 …' --repo "$HOME/src/my-app"
|
|
2227
2292
|
```
|
|
2293
|
+
Choose a flag **per checkout**, when authorizing the key:
|
|
2294
|
+
|
|
2295
|
+
| Flag | What a new lane can use |
|
|
2296
|
+
| --- | --- |
|
|
2297
|
+
| `--repo PATH` | The exact, clean commit matched to the head. |
|
|
2298
|
+
| `--current-repo PATH` | Also the current contents on the worker, including staged, unstaged and untracked files, without copying or resetting them. Normal startup restrictions apply. |
|
|
2299
|
+
| `--trusted-repo PATH` | Also permits the supported project settings, filters and submodules described below. Use only for code the worker operator trusts. |
|
|
2300
|
+
|
|
2301
|
+
To run simultaneous lanes in **different, non-overlapping** enrolled repositories,
|
|
2302
|
+
pass `--capacity N` here (default `1`, at most the number of repositories).
|
|
2303
|
+
Each physical checkout still admits only one resident writer. A repeated init
|
|
2304
|
+
with a different policy does not broaden an existing key's permissions.
|
|
2228
2305
|
This authorizes a dedicated forced-command key in that account's
|
|
2229
2306
|
`~/.ssh/authorized_keys`. Do not copy the head's private key, bot tokens or
|
|
2230
2307
|
configuration. Use a dedicated OS account if the worker should not have access
|
|
@@ -2235,17 +2312,65 @@ checkout, use the source checkout instructions in [Local preparation](#1-local-p
|
|
|
2235
2312
|
repeat `worker add` with `--default --local-repo /path/on/head/my-app`.
|
|
2236
2313
|
Omitting `--local-repo` uses the configured `headCwd`. Other checkouts with
|
|
2237
2314
|
the same Git origin do not inherit permission to send ordinary tasks there.
|
|
2315
|
+
To work in the **worker's current files by default** instead, use this on the
|
|
2316
|
+
head after enrolling that repository with `--current-repo` or `--trusted-repo`:
|
|
2317
|
+
```sh
|
|
2318
|
+
omp-sa worker add dev@linux-box --default-current --local-repo /path/on/head/my-app --config ./config.local.json
|
|
2319
|
+
```
|
|
2320
|
+
New ordinary requests for that physical head checkout now use the worker's
|
|
2321
|
+
files without a special chat directive. You can register a path through a
|
|
2322
|
+
symlink. If you later point it at another checkout, reselect the intended
|
|
2323
|
+
default explicitly; `worker doctor` will report the change. If the binding cannot be verified,
|
|
2324
|
+
placement fails rather than running against other files. Explicit local
|
|
2325
|
+
placement opts out. Existing defaults and previously bound lanes do not change
|
|
2326
|
+
just because the software was upgraded. If an older enrollment recorded only
|
|
2327
|
+
the physical directory, repeat `worker add --default-current` with the alias
|
|
2328
|
+
before retargeting it; its original spelling cannot be recovered from the old record.
|
|
2238
2329
|
|
|
2239
2330
|
Use `omp-sa worker list --config ./config.local.json` to see verified enrollments
|
|
2240
2331
|
without contacting the workers. To check one now, run
|
|
2241
2332
|
`omp-sa worker doctor dev@linux-box --config ./config.local.json` using the exact
|
|
2242
2333
|
enrolled destination, including its port if specified. It checks the worker identity
|
|
2243
|
-
and available slots.
|
|
2244
|
-
|
|
2334
|
+
and available slots. It checks a default's workspace policy: matching commit
|
|
2335
|
+
for `--default`, or the original local checkout and currently verified worker
|
|
2336
|
+
checkout for `--default-current`. A blocked check exits nonzero; neither command starts a lane.
|
|
2245
2337
|
|
|
2246
|
-
Now ask for a remote lane or name the required platform in chat.
|
|
2247
|
-
the repository by Git origin, not folder name
|
|
2248
|
-
|
|
2338
|
+
Now ask for a remote lane or name the required platform in chat. Ordinary exact
|
|
2339
|
+
placement matches the repository by Git origin, not folder name, and requires a
|
|
2340
|
+
clean, committed source tree. To select the worker's own files for a single request,
|
|
2341
|
+
send the following to HEAD. Copy the worker ID and repository ID from `worker list`;
|
|
2342
|
+
append the relative subdirectory to the first line only if not working at the root.
|
|
2343
|
+
|
|
2344
|
+
```text
|
|
2345
|
+
/head worker-current: WORKER_ID REPO_ID
|
|
2346
|
+
attach: reports/test-results.txt
|
|
2347
|
+
Run the tests against the worker's uncommitted changes and send me the report.
|
|
2348
|
+
```
|
|
2349
|
+
|
|
2350
|
+
The `attach:` line is optional. Write both control lines yourself, not in a
|
|
2351
|
+
quote or forward. You can attach input files to the same message. The result
|
|
2352
|
+
file is relative to the selected **worker** directory. An exact model ID
|
|
2353
|
+
available only in the worker profile can be used there; the worker verifies
|
|
2354
|
+
the selected model before starting the request. An already-open lane in
|
|
2355
|
+
that worker directory can handle the request; no additional registration or
|
|
2356
|
+
second copy of the selector is needed. If an older Slack or
|
|
2357
|
+
Telegram receipt cannot show that you wrote the directive, replaying the
|
|
2358
|
+
message will not grant permission. Check whether the earlier request ran or
|
|
2359
|
+
sent a file before sending a new instruction.
|
|
2360
|
+
|
|
2361
|
+
The head needs a verified local directory for the same repository and relative
|
|
2362
|
+
subdirectory, but the commits and working files need not match in this mode.
|
|
2363
|
+
The lane pins the worker's actual base commit and physical directories. A
|
|
2364
|
+
different checkout or base is not a continuation. **This does not sync files.**
|
|
2365
|
+
If the changes exist only on the head, send the specific files or a reviewed
|
|
2366
|
+
patch as attachments, or prepare the worker checkout through your own authorized
|
|
2367
|
+
file-sharing workflow before opening it. For example, attach a reviewed patch
|
|
2368
|
+
and ask the lane to run `git apply --check` in its checkout before applying it;
|
|
2369
|
+
an overlapping worker edit is a conflict, not permission to overwrite it.
|
|
2370
|
+
Send a new untracked file explicitly if it is not in the patch. Do not send
|
|
2371
|
+
dotenv, credentials or a whole home directory. An `ovnfs attach` view without a
|
|
2372
|
+
physical `.git` directory is not itself an enrollable Git checkout. There is no automatic copy back.
|
|
2373
|
+
The worker reserves
|
|
2249
2374
|
its checkout for one resident lane; it does not fetch, switch branches, or discard
|
|
2250
2375
|
edits. Follow-ups stay on the same worker and native session; disconnecting SSH
|
|
2251
2376
|
does not stop that Host. After a verified release, a lane can reopen its same
|
|
@@ -2259,14 +2384,28 @@ and that no public socket remains. For a previously attached lane, this also
|
|
|
2259
2384
|
requires proof that guarded shutdown confirmed no native work remained. The old
|
|
2260
2385
|
lane stays held for inspection; its journal and permissions are unchanged.
|
|
2261
2386
|
Missing proof is not permission to remove a stale-looking checkout claim.
|
|
2262
|
-
Chat replies and approval cards use the original route
|
|
2263
|
-
|
|
2387
|
+
Chat replies and approval cards use the original route. Supported messenger
|
|
2388
|
+
attachments travel as verified bytes over the enrolled connection, not as CDN
|
|
2389
|
+
links, bot credentials or head-local paths. Use matching builds at both ends.
|
|
2390
|
+
To receive a result in an existing worker lane, start the owner message with
|
|
2391
|
+
`attach: relative/path` on its own line. The named regular file comes from the worker,
|
|
2392
|
+
not a same-name file on the head; the local 8 MiB limit and route checks apply.
|
|
2264
2393
|
Remote lanes require the normal stock OMP command without extra head-side flags:
|
|
2265
2394
|
custom tool/profile/approval flags are never silently removed to run remotely.
|
|
2266
|
-
Use a dedicated worker OMP profile without ambient plugins.
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2395
|
+
Use a dedicated worker OMP profile without ambient plugins. With `--trusted-repo`
|
|
2396
|
+
and current placement, owned regular `.env` files may remain for the project's
|
|
2397
|
+
own tools; the worker does not load them as Host credentials. The selected
|
|
2398
|
+
directory's `.omp/config.yml` or `.omp/settings.json` can provide `modelRoles`
|
|
2399
|
+
and `defaultThinkingLevel`. A project role set to `null` inherits the worker
|
|
2400
|
+
profile's role, as it does in local OMP. Selecting an exact lane model changes only the
|
|
2401
|
+
`default` role; a named preset still supplies its own role map. `.omp/README.md`
|
|
2402
|
+
and `.omp/.gitignore` may remain alongside these settings. Ordinary fetch, pull
|
|
2403
|
+
and push preferences, local Git filters and validated submodules do not need to
|
|
2404
|
+
be removed; verification does not execute filters or fetch/update modules.
|
|
2405
|
+
Use stored worker model credentials, not provider keys inherited through the
|
|
2406
|
+
environment, in this mode. This is **not** permission for ambient project plugins,
|
|
2407
|
+
MCP servers, Git hooks/includes, arbitrary `.omp` settings or linked worktrees.
|
|
2408
|
+
An operator who needs a custom model extension can list its trusted,
|
|
2270
2409
|
absolute module path in a private `worker-extensions.json` array in the worker's
|
|
2271
2410
|
OMP agent directory (`0600`, outside enrolled checkouts).
|
|
2272
2411
|
Check `omp-sa status --config ./config.local.json` for the saved placement.
|
|
@@ -2428,33 +2567,38 @@ remain isolated. Setting `OMP_TEST_NATIVES_DIR` to a trusted absolute path uses
|
|
|
2428
2567
|
instead of the temporary cache; it is not deleted after the run.
|
|
2429
2568
|
|
|
2430
2569
|
GitHub Actions runs for PRs, `main`, manual dispatches, and `v*` release tags on Ubuntu 24.04
|
|
2431
|
-
and macOS 15 ARM64.
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
`
|
|
2435
|
-
and
|
|
2570
|
+
and macOS 15 ARM64. One lookup selects the latest official OMP tag for both runners. A
|
|
2571
|
+
full rerun repeats the lookup, so the tag can change under the same Actions run ID. When
|
|
2572
|
+
recording verification results, include the run ID, attempt number, and OMP tag from the
|
|
2573
|
+
`Testing stock OMP` log line. Publishing a release requires tests to pass on both runners
|
|
2574
|
+
and package installation to pass on all four platforms, including macOS Intel. Each source
|
|
2575
|
+
runner uses `bash scripts/test-omp.sh <release-tag>`
|
|
2576
|
+
to download the selected official CLI to a temporary directory and verify its SHA-256 and
|
|
2577
|
+
`omp --version`. It reuses the native executables prepared by
|
|
2436
2578
|
`bun install --frozen-lockfile` and puts that CLI at the front of `PATH` only while running the
|
|
2437
|
-
shared test runner. The
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2579
|
+
shared test runner. The download requires internet access, curl, and shasum.
|
|
2580
|
+
Locally, `bun run test:baseline` verifies the SDK-matched CLI without replacing the installed OMP.
|
|
2581
|
+
To check an older release, run `bash scripts/test-omp.sh v18.22.2`, or specify `v18.20.3` to
|
|
2582
|
+
test the older asynchronous task API.
|
|
2441
2583
|
|
|
2442
2584
|
CI caches Rust dependencies, not the project's binaries or test results. Only a
|
|
2443
2585
|
successful `main` push saves the cache. Source tests and package builds use separate
|
|
2444
2586
|
targets; a tagged package build does not restore the dependency cache. All compilation,
|
|
2445
2587
|
tests, linkage checks and package install checks still run on a cache hit.
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
`
|
|
2451
|
-
|
|
2452
|
-
|
|
2588
|
+
The Bun suite compares the Host owner and Gateway with their recorded original behavior.
|
|
2589
|
+
|
|
2590
|
+
**OMP upstream compatibility** runs as part of **CI** every Monday at 04:17 UTC.
|
|
2591
|
+
For the same source tests without packaging or publishing, manually run **CI** with
|
|
2592
|
+
`source_only=true`. Both paths use the same Ubuntu and macOS ARM64 tests and latest
|
|
2593
|
+
OMP lookup as full CI. Missing required capabilities or regressions fail CI without
|
|
2594
|
+
falling back to another version. Reproduce a failing tag locally with
|
|
2595
|
+
`bash scripts/test-omp.sh vX.Y.Z`. A compatibility check alone does not change product
|
|
2596
|
+
support or the SDK lockfile. This check does not verify live
|
|
2453
2597
|
accounts, paid providers, herdr, or real login/reboot, and does not establish support for the
|
|
2454
2598
|
historical same-process TUI attach behavior. See the corresponding Actions run for the
|
|
2455
2599
|
actual result of the latest upstream check. Do not reuse the
|
|
2456
2600
|
[previous release's verification records for stock 18.20.2 and patched 18.20.0](releases/0.1.0.md#verification-records)
|
|
2457
|
-
as evidence for
|
|
2601
|
+
as evidence for later OMP versions or changes.
|
|
2458
2602
|
|
|
2459
2603
|
### Targeted native and omp-superkit regression tests
|
|
2460
2604
|
|
|
@@ -2523,9 +2667,11 @@ and `dist/omp-superagent-<version>.tgz`, plus a `.sha256` for each. The command
|
|
|
2523
2667
|
does not publish anything.
|
|
2524
2668
|
|
|
2525
2669
|
After an approved new version tag is pushed to the remote, CI must pass the Linux and macOS
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2670
|
+
source tests with the selected latest OMP release and a fresh installation of the current npm
|
|
2671
|
+
package without OMP on all four platforms. CI does not install a historical npm predecessor
|
|
2672
|
+
or replay an in-place npm upgrade. CI then runs `bun run release --publish` to publish
|
|
2673
|
+
**the verified artifacts without rebuilding them** to GitHub Releases. A separate npm job
|
|
2674
|
+
downloads the same `.tgz` from that release, verifies
|
|
2529
2675
|
its SHA-256, and publishes it to npm using GitHub Actions OIDC. The version, tag, and commit
|
|
2530
2676
|
must agree, and an ordinary tag push does not overwrite an existing release. Only with
|
|
2531
2677
|
explicit approval to replace an existing release, move its tag to a commit that has already
|