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.
Files changed (82) hide show
  1. package/DESIGN.md +15 -12
  2. package/config.example.json +4 -1
  3. package/docs/OPERATIONS.en.md +205 -59
  4. package/docs/OPERATIONS.md +173 -47
  5. package/docs/design/execution.md +119 -37
  6. package/docs/design/messaging.md +160 -45
  7. package/docs/releases/0.1.18.md +10 -0
  8. package/docs/releases/0.1.19.md +10 -0
  9. package/gateway/bin/omp-gateway-darwin-arm64 +0 -0
  10. package/gateway/bin/omp-gateway-darwin-x64 +0 -0
  11. package/gateway/bin/omp-gateway-linux-arm64 +0 -0
  12. package/gateway/bin/omp-gateway-linux-x64 +0 -0
  13. package/host-owner/bin/omp-host-owner-darwin-arm64 +0 -0
  14. package/host-owner/bin/omp-host-owner-darwin-x64 +0 -0
  15. package/host-owner/bin/omp-host-owner-linux-arm64 +0 -0
  16. package/host-owner/bin/omp-host-owner-linux-x64 +0 -0
  17. package/package.json +1 -1
  18. package/skills/head/SKILL.md +6 -5
  19. package/skills/head/references/model-selection.md +8 -22
  20. package/skills/head/references/routing.md +36 -17
  21. package/skills/lane/SKILL.md +24 -76
  22. package/skills/lane/references/workflow.md +7 -94
  23. package/src/cli.ts +36 -16
  24. package/src/config/config.ts +21 -2
  25. package/src/contracts.ts +66 -7
  26. package/src/cron/cron-jobs.ts +135 -92
  27. package/src/cron/cron-pr-intake.ts +18 -11
  28. package/src/extension.ts +25 -10
  29. package/src/gateway/gateway-client.ts +3 -1
  30. package/src/host-extension.ts +76 -8
  31. package/src/lane/lane-report.ts +1 -1
  32. package/src/lane/lane-rows.ts +2 -1
  33. package/src/lane/workflow.ts +12 -6
  34. package/src/lane-extension.ts +4 -21
  35. package/src/managed-super-probe.ts +21 -15
  36. package/src/messaging/messenger-command-catalog.json +1 -1
  37. package/src/messaging/messenger-commands.ts +8 -3
  38. package/src/messaging/result-attachment.ts +77 -19
  39. package/src/messaging/slack-context.ts +50 -0
  40. package/src/messaging/written-directives.ts +56 -0
  41. package/src/omp/exit-record.ts +27 -0
  42. package/src/omp/host-protocol.ts +20 -0
  43. package/src/omp/host.ts +73 -20
  44. package/src/omp/installed-omp.ts +15 -12
  45. package/src/omp/managed-super.ts +135 -65
  46. package/src/omp/superkit-skills.ts +15 -2
  47. package/src/pr/pr-intake-order.ts +62 -0
  48. package/src/pr/pr-intake-review.ts +49 -31
  49. package/src/pr/pr-intake-work.ts +3 -2
  50. package/src/routing/message-order.ts +22 -1
  51. package/src/routing/topic-request.ts +48 -4
  52. package/src/runtime/controller.ts +968 -338
  53. package/src/runtime/deferred-routing.ts +12 -4
  54. package/src/runtime/dm-timeline.ts +3 -3
  55. package/src/runtime/inbound-attachments.ts +70 -0
  56. package/src/runtime/local-host-fence.ts +85 -0
  57. package/src/runtime/model-journal.ts +14 -9
  58. package/src/runtime/native-frames.ts +5 -1
  59. package/src/runtime/result-attachments.ts +151 -24
  60. package/src/runtime/worker-result-download.ts +36 -0
  61. package/src/storage/deferred-routing.ts +25 -4
  62. package/src/storage/store.ts +445 -75
  63. package/src/worker/worker-checkout.ts +89 -9
  64. package/src/worker/worker-destination.ts +8 -7
  65. package/src/worker/worker-doctor.ts +29 -9
  66. package/src/worker/worker-enrollment.ts +44 -12
  67. package/src/worker/worker-git-startup.ts +157 -0
  68. package/src/worker/worker-host.ts +16 -26
  69. package/src/worker/worker-ledger.ts +42 -18
  70. package/src/worker/worker-placement-intent.ts +13 -0
  71. package/src/worker/worker-placement.ts +204 -28
  72. package/src/worker/worker-profile.ts +18 -65
  73. package/src/worker/worker-project-startup.ts +106 -0
  74. package/src/worker/worker-registration.ts +85 -30
  75. package/src/worker/worker-repository.ts +55 -6
  76. package/src/worker/worker-request.ts +13 -6
  77. package/src/worker/worker-result-attachments.ts +185 -0
  78. package/src/worker/worker-result-wire.ts +12 -0
  79. package/src/worker/worker-service.ts +51 -23
  80. package/src/worker/worker-trust.ts +19 -4
  81. package/src/worker/worker-wire.ts +47 -14
  82. package/upstream/super.json +2 -3
@@ -65,6 +65,16 @@ receipt keeps its original place relative to slash commands. A distinct history
65
65
  revision of that pending message stays in the durable inbox after the original,
66
66
  where it can inherit the original physical route and logical topic. Already
67
67
  admitted inputs and their external effects are not executed again.
68
+ When Slack packet normalization changes, the Gateway matches exact retained
69
+ receipts from Gateway or HEAD (including deferred routing) before admitting a
70
+ new projection. Legacy `!usage-reset` text and attachment-based revision IDs
71
+ do not authorize another effect. If a Gateway receipt was lost after HEAD
72
+ persisted a message or edit, the pending event keeps that retained clock on
73
+ retransmission. Only the two exact old and current JSON representations derived
74
+ from the same verified Slack timestamp are equivalent; a different payload is
75
+ not. Slack broadcast events are references; only the exact owning reply can
76
+ establish its text and attachment evidence. A temporary Slack lookup failure
77
+ does not acknowledge an unverified broadcast as consumed.
68
78
 
69
79
  ### Account presence
70
80
 
@@ -174,14 +184,19 @@ and logical topics) queue behind it; other conversations are not held. A
174
184
  redelivery of a queued input shares the store's immutable-payload and signed
175
185
  attachment URL reconciliation. Fresh `/restart`, `/stop head`, and
176
186
  `/stop <exact authorized lane-id>` bypass deferred waiting, including after
177
- restart. A bare `/stop` bypasses failing admission only if it is not a reply and
178
- comes from an already-bound physical Discord work thread. Bare DM and
179
- reply-relative stops wait for earlier routing, rather than choosing today's
180
- apparent target; edits cannot acquire priority. Global HEAD stops and
187
+ restart. A bare `/stop` (`!stop` in Slack) bypasses failing admission only in an
188
+ already-bound physical Discord or Slack work thread, and only if the message does
189
+ not reference another target. On Slack, the thread's root can be a placement
190
+ receipt, so it must not resolve to a workspace question, a separate placement
191
+ or an unverified target. Bare DM and reply-relative stops wait for earlier
192
+ routing, rather than choosing today's apparent target; edits cannot acquire
193
+ priority. Global HEAD stops and
181
194
  lane-specific stops snapshot receipt order across both queues. A later resume
182
195
  waits for an older deferred stop of that exact lane without being cancelled by
183
- it; other lanes' work is independent. A pending queued
184
- choice fences the automatic history choice like an unreceipted Gateway event. A
196
+ it; other lanes' work is independent. A pending queued choice, including a Slack
197
+ message with fractional milliseconds, fences the automatic history choice like
198
+ an unreceipted Gateway event. Only a delivered question with actual historical
199
+ candidates starts a timer; an empty or failed lookup does not authorize work. A
185
200
  failed admission stays first in its conversation and is retried with bounded
186
201
  backoff; a permanent denial is dropped. The queue survives a restart and resumes
187
202
  in order once intake is ready. On first opening an older store, HEAD migrates the
@@ -226,7 +241,7 @@ before the foreign completion is still sent to its own conversation. If a
226
241
  native batch cannot be split by origin, only individually identified job
227
242
  receipts are sent.
228
243
 
229
- Same-conversation Discord HEAD steers still share one final answer. When the
244
+ Same-conversation Discord and Slack HEAD steers share one final answer. When the
230
245
  native session has observed a steer before that answer and completed its
231
246
  correlated prompt, the controller records its physical source with the answer.
232
247
  The opening request may be a Discord application command with no physical
@@ -235,9 +250,13 @@ prove that a joined message was answered, even in the same topic. A clean
235
250
  answer observed before that input can still provide proof if selected for
236
251
  delivery. An observed job launched in a continuation proved by a completion
237
252
  from the same request can contribute to its answer.
238
- Once Discord confirms the answer's message ID, the outbox queues a short inline
239
- link for each distinct joined message; a deleted source cannot fall back to a
240
- standalone link. This does not duplicate the answer or claim that each
253
+ Once the messenger confirms the answer's message ID, the outbox queues a short
254
+ notice for each distinct joined message. Discord replies to that exact input.
255
+ Slack verifies the original owner and bot answer in the same physical route and
256
+ links to both using `chat.getPermalink`. A confirmed rate limit before the notice
257
+ was posted leaves it pending until the provider's retry delay, for up to two
258
+ retries. An uncertain post is not retried. A missing or unverifiable source
259
+ cannot fall back to an unanchored notice. This does not duplicate the answer or claim that each
241
260
  request's work succeeded. An uncertain or failed answer send does not produce
242
261
  a link.
243
262
 
@@ -309,15 +328,16 @@ See the [operations guide](../OPERATIONS.en.md#4-commands-and-daily-use) for com
309
328
  evidence from the owner's request and context to discover and verify a directory
310
329
  before dispatch. It asks a focused question only if a material ambiguity remains.
311
330
  Neither a default repository nor the last active lane or chat is evidence of
312
- intent. If the original route is an unbound Discord thread, use that thread for
331
+ intent. If the original route is an unbound Discord or Slack thread, use that thread for
313
332
  any assigned work; create a sibling only on explicit request.
314
333
  An implicit workspace question left over from an older release is not a
315
334
  session binding. A follow-up can reference a single unstarted request in its
316
- current Discord thread or DM, or by replying to the exact sent question
335
+ current Discord or Slack thread or DM, or by replying to the exact sent question
317
336
  (including its Slack root timestamp). Submission rechecks that it is still
318
337
  awaiting placement; neither its excerpt nor hints based on it are reused
319
338
  after placement or cancellation. An exact workspace selection still answers
320
- the original question without replay.
339
+ the original question without replay. A terminal notice for an invalid or
340
+ mismatched directory is not a selectable workspace question.
321
341
  - Where there are eligible managed sessions, ordinary HEAD routing automatically
322
342
  checks relevant original owner text against scoped Mnemopi recall and a bounded
323
343
  search of authorized native journals. The read-only pass adds only matching
@@ -333,12 +353,35 @@ See the [operations guide](../OPERATIONS.en.md#4-commands-and-daily-use) for com
333
353
  - Explicit `cwd: /absolute/path`, `/new` with a task, an exact reply to a placed
334
354
  original or its delivered message with a verified workspace, and intentional
335
355
  historical lookup use controller placement. Invalid explicit cwd is rejected,
336
- not sent to HEAD as ordinary input. A new topic may reuse a workspace, never
337
- another topic's transcript. The quote body is not placement evidence; `/new`
356
+ not sent to HEAD as ordinary input. In Slack a verified leading mention of
357
+ this bot can precede `cwd:`, a plain thread split, or a historical continuation.
358
+ Only placement and lookup omit that address; it does not change the original
359
+ receipt or authorize a written control or workflow selector. A workspace
360
+ header or written choice decodes Slack path entities once. A new topic may
361
+ reuse a workspace, never another topic's transcript. The quote body is not placement evidence; `/new`
338
362
  in a bound thread can reuse that thread's workspace. When explicit placement
339
363
  needs workspace clarification, a known name or absolute path selects just one
340
364
  pending original on its original route. Neither an edited confirmation nor a
341
- stale answer becomes another task. A Slack reply uses the sent question's root timestamp.
365
+ stale answer becomes another task. A Slack channel-root reply uses the sent
366
+ question's root timestamp; a plausible reply or bare `!stop` can wait for
367
+ that exact receipt even when a slash invocation has no message timestamp or
368
+ a DM request has a logical topic ID. A
369
+ separate top-level Slack message is not a reply to the question. Within an
370
+ existing Slack thread, a written
371
+ `!choose <source-ts> <answer>` names the exact delivered question without
372
+ routing to another thread or guessing among outstanding questions. An explicit
373
+ answer must physically follow the final post of the question and be authored
374
+ no later than the deadline when the question has one. A number, a known
375
+ workspace name, a bare absolute path, or a `cwd:`-only answer to a single
376
+ threaded question uses the same physical post order. While the receipt is
377
+ in flight, HEAD retains these answers without applying them to an
378
+ unconfirmed post. On a lost IPC reply or startup it can recover the exact
379
+ completed, same-route Gateway send before consuming the answer. A history
380
+ question's deadline starts from its final Slack post, independent of when
381
+ HEAD obtains the receipt. It does not resend the question for proof. A timely
382
+ answer can hold automatic fallback from the durable queues. A bare number can be
383
+ ambiguous near an expired question, but that question no longer competes with
384
+ a later question or claims unrelated numbers indefinitely.
342
385
  - A retrospective request with a task description can search previous managed native
343
386
  sessions across the configured owner's currently allowed channels. Search the
344
387
  operator's text, not reply bodies, pasted commands or attachments. Telegram
@@ -366,11 +409,11 @@ See the [operations guide](../OPERATIONS.en.md#4-commands-and-daily-use) for com
366
409
  journal. Recheck the prior identity, work state, entry and pinned evidence
367
410
  digest before native submission, without searching mutable memory again;
368
411
  historical text cannot start workflows or approve effects.
369
- Outside a bound Discord work thread, a new request with a different explicit
412
+ Outside a bound Discord or Slack work thread, a new request with a different explicit
370
413
  workspace can start a separate topic. `/new` with a request in a thread starts
371
414
  a separate topic instead of changing a lane's cwd. A closed lane or an
372
415
  uncertain receipt is not reopened by ordinary input.
373
- - In an already-bound physical Discord work thread, work and replies stay in the
416
+ - In an already-bound native Discord or Slack work thread, work and replies stay in the
374
417
  current thread. A historical match contributes only verified, pinned evidence
375
418
  to the current lane, not a handoff to a different session or workspace. Ask
376
419
  about ambiguous matches in that same thread and honor a timely choice. For
@@ -379,7 +422,7 @@ See the [operations guide](../OPERATIONS.en.md#4-commands-and-daily-use) for com
379
422
  from the current session, then a verified candidate in the same cwd by recency.
380
423
  If none remains eligible, continue with the current lane context. This timeout
381
424
  does not approve effects or authorize cross-workspace execution.
382
- - A different `cwd:` in a bound Discord work thread does not change its lane or
425
+ - A different `cwd:` in a bound Discord or Slack work thread does not change its lane or
383
426
  open a sibling automatically. To separate work, send `/new <request>` or a
384
427
  direct, one-line split request, e.g. `이건 따로 빼줘: 로그인 점검`,
385
428
  `로그인 점검은 새 스레드에서 해줘`, `Split this into a new thread: Check login`,
@@ -387,9 +430,18 @@ See the [operations guide](../OPERATIONS.en.md#4-commands-and-daily-use) for com
387
430
  `이건 따로 빼줘` or `Split this into a new thread`, the controller asks them to
388
431
  name the task with `/new` instead of creating a topic. Natural split
389
432
  directives preserve an explicit `cwd:` header, including spaces inside path
390
- quotes. They apply only to original owner messages in physical Discord work
391
- threads, not edits, quoted text or attachments. DM and other adapters retain
392
- their existing topic behavior.
433
+ quotes. They apply only to original owner messages in native Discord or Slack
434
+ work threads, not edits, quoted text or attachments. When Slack removes a
435
+ verified bot address, rich formatting in the task after the split directive
436
+ remains task data. A verified `cwd:` header alone does not attest the split
437
+ directive or a workflow selector on the next line, including after `!new`.
438
+ An unverified task body is presented to the model as task data inside the
439
+ native context fence rather than passed to OMP's magic-keyword matcher. If blocks are present,
440
+ the raw fallback text cannot supply an address that the blocks do not attest.
441
+ Slack splits and workspace answers must have matching written-body
442
+ evidence from Gateway, with or without an address; old receipts are
443
+ not reinterpreted or upgraded on redelivery. Slack uses `!new` as
444
+ its text command. Ordinary DM context selection is unchanged.
393
445
  - `/new` and plain split directives keep the source parent. With operator opt-in,
394
446
  HEAD may select a different native parent for an original authorized owner
395
447
  request via `lane_start`. The default `"allowlist"` scope requires the
@@ -402,10 +454,13 @@ See the [operations guide](../OPERATIONS.en.md#4-commands-and-daily-use) for com
402
454
  The grant permits work delivery, not text or command intake or history
403
455
  recovery; approvals remain on the original allowed route. The source receives
404
456
  one placement notice; progress and final work reports use the work thread.
457
+ Slack's separate `allowCrossChannelThreads` opt-in only permits another
458
+ allowlisted channel in the same workspace and authenticated account, where the
459
+ bot is a member. The exact verified starter `ts` is the thread identity.
405
460
  - `/head <request>` explicitly addresses the shared coordination model (Slack:
406
461
  `!head` or `/superagent-head`). Manager handoffs keep HEAD's review path.
407
- When HEAD selects an existing physical Discord work thread from its exact
408
- authorized guild parent, that thread is the handoff's progress and final
462
+ When HEAD selects an existing native Discord or Slack work thread from its exact
463
+ authorized parent, that thread is the handoff's progress and final
409
464
  report route. An opening `lane_start` requires its confirmed kickoff in
410
465
  that thread; an explicit `lane_message` pins the route on admission.
411
466
  This applies equally to local and enrolled SSH lanes. It does not
@@ -422,7 +477,11 @@ See the [operations guide](../OPERATIONS.en.md#4-commands-and-daily-use) for com
422
477
  quoted text do not become global settings changes.
423
478
  - Thread-first work sends a short kickoff to the selected topic. The durable
424
479
  `sent` receipt gates new lane dispatch and steering for that input. A missing
425
- or uncertain delivery is not a successful kickoff.
480
+ or uncertain delivery is not a successful kickoff. A pending Slack kickoff
481
+ behind a proven preflight rate limit keeps the original placement pending,
482
+ not uncertain. An ordered restart acknowledgement on the same route waits
483
+ without blocking unrelated delivery; only its sent receipt authorizes the
484
+ restart handoff. A later explicit HEAD stop still supersedes that wait.
426
485
  - `/new` selects a fresh logical topic in an eligible private conversation.
427
486
  With no request it does not start a lane or model turn. `/main` changes future
428
487
  input context without altering previous bindings, approvals or work. Topic
@@ -470,7 +529,7 @@ See the [operations guide](../OPERATIONS.en.md#4-commands-and-daily-use) for com
470
529
  | --- | --- |
471
530
  | Discord | Ordinary `/...` messages and explicitly registered application commands share authorized ingress. Interactions have an `interactionId` and no message ID; do not use them for history, reactions, fetch, thread sources or replies, or persist response tokens. Server text/announcement channels support threads; forum/media posts can require exact tag IDs. DMs use logical topics. |
472
531
  | Telegram | Ordinary slash messages and owner-scoped menus keep real message IDs. Normalize only actual bot-command entities addressed to this bot; ignore commands addressed to other bots. Native topics require eligible forum supergroups or topic-enabled private chat; group topic creation needs the granted capability. |
473
- | Slack | Ordinary `!...` messages and registered `/superagent-*` commands use Socket Mode. Slash commands have no message `ts`: deduplicate with a token-free scoped invocation fingerprint; anchor topic boundaries to the last durably admitted real owner message and use admission order on the same anchor. Do not persist trigger/response tokens or invent a timestamp. Use real root messages for threads, never nested threads. |
532
+ | Slack | Ordinary `!...` messages and registered `/superagent-*` commands use Socket Mode. Slack does not allow app slash commands inside threads; use `!` there. Slash commands have no message `ts`: deduplicate with a token-free scoped invocation fingerprint; anchor topic boundaries to the last durably admitted real owner message and use admission order on the same anchor. Do not persist trigger/response tokens or invent a timestamp. Use real root messages for threads, never nested threads. |
474
533
 
475
534
  [Command definitions](../../src/messaging/messenger-commands.ts) are shared. Menu registration
476
535
  is a separate explicit apply, not a side effect of setup, doctor or start. Command
@@ -483,7 +542,9 @@ part of an identifier. Prompt bodies and multiline compaction instructions are
483
542
  not split into words. Ordinary Slack command arguments decode Slack's three
484
543
  mrkdwn entities once; registered slash payloads are already plain text. HEAD,
485
544
  its initial lane handoff and exact `attach:` path verification use the same
486
- decoded arguments. Later `lane_message` instructions are HEAD-authored text,
545
+ decoded arguments. A bare Slack `attach:` also shows the lane the verified
546
+ filename decoded once; unrelated task text keeps its original spelling.
547
+ Later `lane_message` instructions are HEAD-authored text,
487
548
  not Slack input. Neither interpretation changes the original receipt used for
488
549
  redelivery.
489
550
 
@@ -504,7 +565,7 @@ is not a native mutation receipt. The head requires the recorded sent receipt
504
565
  for the exact card before changing settings. Unselected cards expire after five
505
566
  minutes, on Gateway restart, or when a new menu of the same kind replaces them
506
567
  on the same route.
507
- On Discord, the model card shows two selects: the destination (HEAD or the
568
+ On Discord and Slack, the model card offers the destination (HEAD or the
508
569
  lane bound to the opening conversation) and the provider/model browser. With
509
570
  both destinations available the operator must pick one; without a bound lane
510
571
  only HEAD is offered. Browsing providers or changing the destination is not a
@@ -521,8 +582,9 @@ The reset picker chooses an exact linked account from the configured OMP profile
521
582
  Discord accepts the argumentless `/usage-reset` command in its picker and in
522
583
  authorized messages. `/usage` only reads quotas. The Gateway rejects stale
523
584
  `/usage` interactions carrying options; HEAD refuses legacy `/usage reset`
524
- messages as invalid controls, not model or lane requests. Edits cannot open
525
- the reset picker. Telegram and Slack keep their existing reset syntax.
585
+ messages as invalid controls, not model or lane requests. Slack accepts
586
+ `!usage-reset` or `/superagent-usage-reset`, as well as `!usage reset`. Telegram
587
+ keeps `/usage reset`. Edits cannot open the reset picker.
526
588
  The first click only changes the displayed card revision; Confirm on that
527
589
  revision is the only action that admits a reset request. Cancel closes the card
528
590
  without admitting any request. The head checks the original sent card and live
@@ -577,6 +639,12 @@ Manage Threads, and skip archived threads. A confirmed Discord rate limit
577
639
  defers reconciliation and rechecks current state before the next write;
578
640
  an ambiguous write is not retried.
579
641
 
642
+ Slack `thread_inspect` verifies the exact root against the authenticated
643
+ account. A bot-created work starter has an editable label: explicit title
644
+ updates and automatic `⏳`/`✅` changes edit that starter using `chat.update`, not
645
+ an owner message or the Slack channel's name. Slack has no per-thread archive,
646
+ reopen, or forum tag API; those fields are not simulated.
647
+
580
648
  `/help`, `/status`, `/context` and `/usage` are code-handled reads with no model turn.
581
649
  [`/usage`](../../src/omp/omp-usage.ts) invokes the configured executable and
582
650
  profile with `usage --json --redact`, so OMP discovers built-in and extension-provided
@@ -590,8 +658,10 @@ Unknown quota is not zero or an estimate of this session's usage. `/compact` use
590
658
  compaction and requires an idle eligible head; status and priority stop remain
591
659
  available while it runs. `/stop` pauses the bound lane. In an unbound topic a
592
660
  reply can select the exact pending placement or the running HEAD request on
593
- that route. If the bare command could mean either, or the referenced physical
594
- message's revisions do not identify one target, report the ambiguity on the
661
+ that route. A Slack question still being posted elsewhere in the channel
662
+ does not delay a stop for an already bound lane. If the bare command could
663
+ mean either, or the referenced physical message's revisions do not identify
664
+ one target, report the ambiguity on the
595
665
  original route instead of cancelling one by guesswork. Use `/stop head` for
596
666
  the global control, or name a lane ID to pause it. Once admitted to the
597
667
  head, priority controls and approval answers do not wait for an ordinary model
@@ -676,12 +746,42 @@ owner and request ID. A failed ownership read or a duplicate cannot lift a pause
676
746
  directory. The head receives file receipts, not a second copy of every
677
747
  download over the Gateway socket; it still constructs the native image input.
678
748
  The adapters preserve audio metadata; they do not transcribe attachments.
749
+ For an enrolled SSH lane, HEAD verifies the source receipt and transfers
750
+ bounded chunks on the attested Host connection. Only that peer's matching
751
+ prompt can claim the batch. The worker uses private generated filenames
752
+ under its session directory and constructs the stock image input locally.
753
+ A slow transfer waits in its own lane. Pausing before prompt submission
754
+ leaves the input pending for resume. If pause races an already-sent prompt,
755
+ the controller still tracks its receipt: a pre-dispatch refusal is not an
756
+ uncertain submission, and a lost acknowledgement without a native result
757
+ keeps later work held even after resume. A matching terminal abort on that
758
+ same Host connection closes only the interrupted request, without retrying
759
+ it. A confirmed rejection before native submission can settle a timed-out
760
+ request on its original connection; it does not authorize another attempt.
761
+ The prompt carries neither messenger
762
+ download locators nor head spool paths.
679
763
  - An owner can authorize one specific result file with a standalone leading
680
764
  `attach: workspace/relative-file.ext` line. `result_attach` stages the exact
681
765
  allowed regular file from that source's working directory; arbitrary model
682
766
  prose cannot attach it. A lane calls this tool directly, including in code
683
767
  mode: the head matches the live native execution start and result before it
684
- queues the file. An Eval result or a replayed journal entry is not a delivery
768
+ queues the file. For SSH lanes the worker binds that nomination to its own
769
+ workspace and the admitted request on its original connection. The owner may
770
+ write the `attach:` line immediately after an explicit `worker-current:`
771
+ directive; this authorizes a result only in that selected worker directory.
772
+ A request from an existing thread does not authorize file delivery to a
773
+ sibling thread, even in the same channel. A request from a parent
774
+ conversation can use the child thread created for that exact request.
775
+ For an ordinary remote handoff, moving the work or its text report to a sibling
776
+ does not lose the result: the file goes back to the owner's original topic.
777
+ Previously stored Telegram text without evidence for the whole written filename
778
+ retains its local semantics, but does not grant a new worker copy.
779
+ HEAD requests its bytes on the original connection without supplying
780
+ a filesystem path. When several inputs join one run, each nomination belongs
781
+ to its own request; HEAD copies the files one at a time in bounded chunks.
782
+ Before staging a completed file into the local result spool, HEAD rechecks
783
+ its request, session and authorized route. An Eval
784
+ result or a replayed journal entry is not a delivery
685
785
  request. Files must be nonempty and at most 8 MiB; symlinks,
686
786
  hard links, dot paths and managed private state are excluded. Delivery uses
687
787
  the original authorized topic and stable outbox identity, with no destination
@@ -704,8 +804,11 @@ owner and request ID. A failed ownership read or a duplicate cannot lift a pause
704
804
  25 seconds for the whole Discord output, including destination lookup,
705
805
  leaving time to return the result before the head's 30-second IPC timeout.
706
806
  No new parts are posted after that deadline. An in-flight POST at expiry or
707
- a failure after a visible part is uncertain; nothing is resent. Slack
708
- uses upload URL → bytes → `files.completeUploadExternal`, not `files.upload`.
807
+ a failure after a visible part is uncertain; nothing is resent. Slack splits
808
+ at paragraph, line, then space boundaries into at most five posts of up to
809
+ 3,000 UTF-16 units. It holds a partial send as uncertain and records later
810
+ parts and the final timestamp only for a complete multipart send. Larger
811
+ output uses upload URL → bytes → `files.completeUploadExternal`, not `files.upload`.
709
812
  Telegram and Slack do not automatically retry remote mutations. Discord renders
710
813
  ordinary Markdown pipe tables at delivery as stacked list items, with the
711
814
  column labels and each row's values on separate lines. This leaves links,
@@ -721,18 +824,27 @@ owner and request ID. A failed ownership read or a duplicate cannot lift a pause
721
824
  - Pending outbox delivery runs concurrently across distinct physical routes
722
825
  (platform, account, authority, guild, channel, thread) while preserving
723
826
  strict sequence order within each physical route and never automatically
724
- retrying uncertain sends. Routes wake as soon as outputs become pending
827
+ retrying uncertain sends. A confirmed `Retry-After` holds later output on
828
+ that route only; the pending work stays visible to lifecycle guards. Slack
829
+ joined links honor the original preflight rejection time even if HEAD loses
830
+ the response or restarts before recording the delay. The exact completed
831
+ Gateway receipt settles success or definitive rejection for a joined link,
832
+ workspace question, kickoff, or restart acknowledgement, even if its IPC
833
+ reply is lost. Definitively rejected plain posts are not retried. A delay
834
+ the scheduler cannot represent is not retried and does not make the
835
+ rejection uncertain. An unfinished or ambiguous send never authorizes a retry.
836
+ Routes wake as soon as outputs become pending
725
837
  without waiting behind an unrelated command tail; restart checkpoints still
726
838
  wait for all in-flight route deliveries to settle before lifecycle handoff.
727
- - In-place editing of Discord progress reports is opt-in via
728
- `discord.editProgressInPlace` (default `false`). By default, every progress
839
+ - In-place editing of progress reports is opt-in via
840
+ `discord.editProgressInPlace` or `slack.editProgressInPlace` (both default `false`). By default, every progress
729
841
  update and HEAD lane progress summary posts as an ordinary new message so
730
- progress history stays visible. When enabled on Discord, nonterminal progress
842
+ progress history stays visible. When enabled, nonterminal progress
731
843
  for one request—including direct HEAD progress, direct topic progress, and
732
844
  HEAD summaries of non-topic lane progress keyed by the original lane input—uses
733
845
  a single `⏳` status message edited in place (`⏳\n` when the body begins
734
846
  with a code fence so card fences remain intact). Each update stays its own
735
- immutable output with `status: true`; initial long status messages use the
847
+ immutable output with `status: true`. On Discord, initial long status messages use the
736
848
  single-message text attachment fallback instead of splitting across multiple
737
849
  posts so later edits replace that single message cleanly. When an update is
738
850
  claimed for delivery, the controller fixes `editOf` to the physical message of
@@ -740,9 +852,10 @@ owner and request ID. A failed ownership read or a duplicate cannot lift a pause
740
852
  redelivery edits that same message. An uncertain post never becomes an edit
741
853
  target. A rejected edit fails only that update and is never reposted; it
742
854
  releases the target so a later update posts a fresh status message. An
743
- ambiguous edit stays uncertain. Final answers and lane completion reports are
744
- still separate new messages. Telegram and Slack always post ordinary progress
745
- messages; the Gateway rejects `editOf` and `status: true` outside Discord.
855
+ ambiguous edit stays uncertain. Slack verifies its own status marker and
856
+ exact destination before `chat.update`; an over-limit Slack status does not
857
+ create a file or a second message. Final answers and lane completion reports
858
+ remain separate. Other transports post ordinary progress messages.
746
859
  - Discord turns a fenced ```` ```card ```` [json-render](https://github.com/vercel-labs/json-render)
747
860
  spec (`{"root", "elements"}`, root `Card`; `Card`, `Section`, `Text`,
748
861
  `Fields`, `Field`, `Table`, `Divider`, `Image`) into an embed at delivery.
@@ -751,8 +864,10 @@ owner and request ID. A failed ownership read or a duplicate cannot lift a pause
751
864
  permission at the parent channel; otherwise send the original fence as text.
752
865
  An Image needs a valid HTTPS URL. A spec that is
753
866
  invalid, uses another component, reuses an element or exceeds Discord's embed
754
- limits stays verbatim as its code block, which is also what Telegram and Slack
755
- show. The [Rust renderer](../../gateway/src/discord/embeds.rs) and the
867
+ limits stays verbatim as its code block. Slack renders the same card format
868
+ as non-interactive Block Kit with HTTPS-only images and its own block bounds;
869
+ unsupported content stays literal. Telegram keeps the original text.
870
+ The [Rust renderer](../../gateway/src/discord/embeds.rs) and the
756
871
  [test-only Bun renderer](../../test/oracles/bun-gateway/discord-markdown.ts)
757
872
  share one [fixture](../../test/fixtures/discord-cards.json).
758
873
 
@@ -0,0 +1,10 @@
1
+ # omp-superagent 0.1.18
2
+
3
+ - Slack work stays in its bound thread unless explicitly split. `!model` can select HEAD or the bound lane, and `!stop` can pause the bound lane even while an unrelated workspace question is pending. Optional settings enable mention-only channel intake, work starters in another allowlisted channel, and in-place progress updates. [#77](https://github.com/dbc-hbin/omp-superagent/pull/77)
4
+ - Slack supports repository PR intake from allowed parent conversations. Workspace answers and manual PR controls use verified Slack message identity and order. After an interrupted response, Superagent uses the matching durable Gateway receipt to settle delivery rather than treating missing confirmation as success or blindly resending. [#77](https://github.com/dbc-hbin/omp-superagent/pull/77)
5
+ - Managed Hosts verify current Superkit presets and canonical workflow discovery through native OMP, without depending on preset wording or retired aliases. Already-admitted legacy workflow commands still work on compatible Hosts. [#76](https://github.com/dbc-hbin/omp-superagent/pull/76)
6
+ - CI tests the latest official stock OMP on Linux and macOS and verifies fresh installs of the current package on all four target platforms. It no longer reinstalls a historical npm release to simulate an upgrade. [#76](https://github.com/dbc-hbin/omp-superagent/pull/76)
7
+
8
+ **Before upgrading**, follow the [upgrade procedure](https://github.com/dbc-hbin/omp-superagent/blob/v0.1.18/docs/OPERATIONS.en.md#update-an-existing-installation) ([한국어](https://github.com/dbc-hbin/omp-superagent/blob/v0.1.18/docs/OPERATIONS.md#기존-설치-업데이트)). Use the old installation to stop affected resident lanes and Gateway/HEAD and verify their exits before installing `omp-superagent@0.1.18`. For Slack, review the [app scopes and command setup](https://github.com/dbc-hbin/omp-superagent/blob/v0.1.18/docs/OPERATIONS.en.md#23-slack); reinstall the Slack app if you add scopes. In threads, use `!` controls rather than app slash commands.
9
+
10
+ [Changes since 0.1.17](https://github.com/dbc-hbin/omp-superagent/compare/v0.1.17...v0.1.18)
@@ -0,0 +1,10 @@
1
+ # omp-superagent 0.1.19
2
+
3
+ - Remote lanes can work directly in an enrolled worker's current checkout, including uncommitted files. Use `--default-current` for a specific local counterpart or select the worker for one request. Input attachments travel over the enrolled connection, and requested result files return to their authorized topic. This does not sync the two checkouts. [#81](https://github.com/dbc-hbin/omp-superagent/pull/81)
4
+ - A worker can run an exact model available in its own profile even when HEAD does not have it. New local and remote lanes no longer need a written model-selection reason. A proven pre-spawn failure frees the worker slot without reopening an unverified journal; a lost acknowledgement does not replay work. [#81](https://github.com/dbc-hbin/omp-superagent/pull/81)
5
+ - A local lane whose previous Host is gone can release its capacity without granting access to an unverified journal or deleting the checkout. [#79](https://github.com/dbc-hbin/omp-superagent/pull/79)
6
+ - Managed Superkit preparation now uses the latest published GitHub release rather than the tip of its development branch. It verifies the release asset before activating it. [#80](https://github.com/dbc-hbin/omp-superagent/pull/80)
7
+
8
+ **Before upgrading**, follow the [upgrade procedure](https://github.com/dbc-hbin/omp-superagent/blob/v0.1.19/docs/OPERATIONS.en.md#update-an-existing-installation) ([한국어](https://github.com/dbc-hbin/omp-superagent/blob/v0.1.19/docs/OPERATIONS.md#기존-설치-업데이트)). Use the old installation to stop affected resident lanes and Gateway/HEAD and verify their exits before installing `omp-superagent@0.1.19`. Use matching HEAD and worker builds for the new attachment features. Existing lanes are not moved by the upgrade.
9
+
10
+ [Changes since 0.1.18](https://github.com/dbc-hbin/omp-superagent/compare/v0.1.18...v0.1.19)
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "omp-superagent",
3
- "version": "0.1.17",
3
+ "version": "0.1.19",
4
4
  "description": "One messenger-connected OMP head with independent work sessions",
5
5
  "license": "MIT",
6
6
  "author": "dbc-hbin",
@@ -48,7 +48,7 @@ work, send a separate update, or grant scope or execution authority.
48
48
  from the tool. For unsupported or ambiguous wording, clarify in ordinary
49
49
  language; do not ask for command syntax or claim a save. One-off requests
50
50
  remain local to that answer. No file, preset, or memory edit.
51
- - Keep discovered work in the original unbound Discord thread. Do not create a
51
+ - Keep discovered work in the original unbound Discord or Slack thread. Do not create a
52
52
  sibling without an explicit split request. A new lane needs a confirmed kickoff.
53
53
  Leave explicit cwd, `/new`, exact replies with a known workspace, and intentional
54
54
  historical lookup or choice to the controller's placement path.
@@ -68,9 +68,10 @@ work, send a separate update, or grant scope or execution authority.
68
68
  - Split independently acceptable outcomes when they need separate topics or
69
69
  workspaces. Keep one owner for a combined result; use bounded native `task`
70
70
  slices there. Before dispatch, consult `routing.md` for checkout and handoff rules.
71
- - For remote work, use `lane_start.placement` with a verified local `cwd`
72
- and its clean committed revision on an approved paired worker. Never invent
73
- an SSH destination or fall back to local against the request. Placement is fixed.
71
+ - For remote work, verify the local `cwd`. Ordinary remote selection matches its
72
+ clean commit. Use an enrolled worker's current files only under the explicit
73
+ worker-current authority in `routing.md`; these are not copies of local edits.
74
+ Never invent an SSH destination or move an existing lane.
74
75
  - For a HEAD-directed follow-up, send `lane_message` to the existing lane.
75
76
  `lane_start` can create only one lane per original source. Before fan-out,
76
77
  check that each destination may receive the original attachments, quotes and
@@ -86,7 +87,7 @@ load references for direct answers or routine progress updates.
86
87
 
87
88
  | When | Reference |
88
89
  | --- | --- |
89
- | Starting or splitting lanes, managing Discord topics, resolving workspace or shared-resource conflicts, or selecting an explicit workflow | `routing.md` |
90
+ | Starting or splitting lanes, managing Discord or Slack work threads, resolving workspace or shared-resource conflicts, or selecting an explicit workflow | `routing.md` |
90
91
  | Selecting a substantive lane model, handling an authorized model change, or resolving capability/risk ambiguity | `model-selection.md` |
91
92
  | Correcting or closing work, tracking a PR, or reconciling an interruption, approval, or uncertain effect | `supervision.md` |
92
93
 
@@ -1,8 +1,7 @@
1
1
  # Native advisory model selection
2
2
 
3
- Read for substantive new lanes, authorized model changes, and unresolved
4
- capability, risk, or briefing decisions. Don't compare models for a simple
5
- question or to monitor work.
3
+ Use when model selection or an authorized change needs explanation. If the
4
+ operator already specified an exact model, there is no comparison to make.
6
5
 
7
6
  ## Dedicated bootstrap only
8
7
 
@@ -36,25 +35,12 @@ an active session in response.
36
35
  `supportsTools:false` rules out tool-dependent work; missing metadata is unknown.
37
36
  Catalog context, modalities, reasoning and price are facts, not a benchmark,
38
37
  quota, total predicted cost, or spending authorization.
39
- 3. Normally consult native `eval` judge for a substantive choice with meaningful
40
- alternatives or an ambiguous capability/risk/brief. Read the judge help topic
41
- advertised by `eval` (`help://eval/judge` on OMP 19.1). Supply only necessary
42
- requirements, uncertainties and candidate metadata: no transcripts, secrets,
43
- credentials, endpoints or unrelated private data. For independent parallel lane comparisons use
44
- `judge_batch`/`judgeBatch` under that contract when it helps, with compatible
45
- questions and real candidate labels in each input; inspect individual errors
46
- and continue or wait for native results, not poll. Advice isn't authorization or
47
- verification: check gaps and choose the exact identity yourself.
48
- 4. Pass exactly one of `model: {provider,id}` or an observed `preset: <name>` to
49
- `lane_start`/`lane_set_model` with nonempty `modelReason` describing fit and cost.
50
- In that tool, `preset` is the name, not the `lane_models` selector syntax.
51
- Explain a meaningful override or omitted/unavailable advice. One forced/explicit
52
- choice or truly trivial routing need not generate a comparison; unavailability
53
- isn't permission to substitute an explicit choice. If advisory judge is
54
- unavailable, excluded, or failed, don't enable it, change global settings,
55
- or use another provider to force advice. Decide from available facts if adequate;
56
- ask only for a real unresolved owner tradeoff. Native judge usage is authoritative;
57
- `modelReason` or a successful catalog call is not a judge receipt.
38
+ 3. Use native judge if advice would change the choice. Share only the relevant
39
+ requirements and candidate metadata. No second opinion or explanation for
40
+ skipping one is required.
41
+ 4. Pass exactly one `model: {provider,id}` or `preset: <name>`. `lane_start`
42
+ accepts a selection note when useful. An explicit `lane_set_model` change
43
+ records its reason. Do not substitute for an operator-selected model.
58
44
 
59
45
  ## Keep selection local and check state before changing it
60
46