omp-superagent 0.1.9 → 0.1.11

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 (151) hide show
  1. package/DESIGN.md +68 -21
  2. package/README.ko.md +30 -372
  3. package/README.md +31 -419
  4. package/THIRD_PARTY_NOTICES.md +35 -436
  5. package/assets/architecture-dark.svg +7 -12
  6. package/assets/architecture.ko-dark.svg +7 -12
  7. package/assets/architecture.ko.svg +7 -12
  8. package/assets/architecture.mmd +5 -13
  9. package/assets/architecture.svg +7 -12
  10. package/config.example.json +8 -0
  11. package/docs/OPERATIONS.en.md +2277 -0
  12. package/docs/OPERATIONS.md +198 -45
  13. package/docs/design/execution.md +163 -54
  14. package/docs/design/messaging.md +125 -34
  15. package/docs/kakao-bridge-protocol.md +193 -0
  16. package/docs/releases/0.1.10.md +17 -0
  17. package/docs/releases/0.1.11.md +18 -0
  18. package/gateway/bin/omp-gateway-darwin-arm64 +0 -0
  19. package/gateway/bin/omp-gateway-darwin-x64 +0 -0
  20. package/gateway/bin/omp-gateway-linux-arm64 +0 -0
  21. package/gateway/bin/omp-gateway-linux-x64 +0 -0
  22. package/host-owner/bin/omp-host-owner-darwin-arm64 +0 -0
  23. package/host-owner/bin/omp-host-owner-darwin-x64 +0 -0
  24. package/host-owner/bin/omp-host-owner-linux-arm64 +0 -0
  25. package/host-owner/bin/omp-host-owner-linux-x64 +0 -0
  26. package/package.json +10 -11
  27. package/scripts/{prepare-ulw.ts → prepare-super.ts} +1 -1
  28. package/skills/head/SKILL.md +36 -5
  29. package/skills/head/references/routing.md +1 -1
  30. package/skills/head/references/supervision.md +32 -26
  31. package/skills/lane/SKILL.md +39 -21
  32. package/skills/lane/references/workflow.md +23 -16
  33. package/src/cli.ts +35 -33
  34. package/src/{config.ts → config/config.ts} +51 -6
  35. package/src/config/wake-config.ts +36 -0
  36. package/src/contracts.ts +91 -13
  37. package/src/{cron-jobs.ts → cron/cron-jobs.ts} +21 -13
  38. package/src/{cron-pr-intake.ts → cron/cron-pr-intake.ts} +4 -4
  39. package/src/{cron-schedule.ts → cron/cron-schedule.ts} +3 -3
  40. package/src/extension.ts +64 -28
  41. package/src/{gateway-client.ts → gateway/gateway-client.ts} +89 -32
  42. package/src/{gateway-native.ts → gateway/gateway-native.ts} +4 -4
  43. package/src/{gateway-protocol.ts → gateway/gateway-protocol.ts} +69 -14
  44. package/src/{gateway-wire.ts → gateway/gateway-wire.ts} +12 -7
  45. package/src/gateway-config.ts +1 -1
  46. package/src/gateway-restart-env.ts +3 -3
  47. package/src/{group-access.ts → group/group-access.ts} +8 -3
  48. package/src/{group-policy.ts → group/group-policy.ts} +2 -2
  49. package/src/{group-runner.ts → group/group-runner.ts} +11 -6
  50. package/src/host-extension.ts +213 -43
  51. package/src/host-sdk-helper.ts +62 -65
  52. package/src/{decision-tool.ts → lane/decision-tool.ts} +12 -4
  53. package/src/{decisions.ts → lane/decisions.ts} +12 -10
  54. package/src/{lane-models.ts → lane/lane-models.ts} +1 -1
  55. package/src/{lane-report.ts → lane/lane-report.ts} +22 -0
  56. package/src/{lane-rows.ts → lane/lane-rows.ts} +2 -2
  57. package/src/{lane-watch.ts → lane/lane-watch.ts} +6 -2
  58. package/src/{workflow.ts → lane/workflow.ts} +1 -1
  59. package/src/lane-extension.ts +69 -13
  60. package/src/managed-memory-helper.ts +2 -2
  61. package/src/{managed-ulw-probe.ts → managed-super-probe.ts} +3 -3
  62. package/src/{delivery.ts → messaging/delivery.ts} +1 -1
  63. package/src/{discord-command-registration.ts → messaging/discord-command-registration.ts} +3 -2
  64. package/src/{discord-context.ts → messaging/discord-context.ts} +1 -1
  65. package/src/{messenger-command-catalog.json → messaging/messenger-command-catalog.json} +1 -0
  66. package/src/messaging/messenger-commands.ts +55 -0
  67. package/src/{result-attachment.ts → messaging/result-attachment.ts} +3 -3
  68. package/src/{slack-command-registration.ts → messaging/slack-command-registration.ts} +3 -3
  69. package/src/{telegram-command-registration.ts → messaging/telegram-command-registration.ts} +2 -2
  70. package/src/omp/head-resume.ts +123 -0
  71. package/src/{host-owner-path.ts → omp/host-owner-path.ts} +1 -1
  72. package/src/{host-protocol.ts → omp/host-protocol.ts} +11 -2
  73. package/src/omp/host-reply-voice.ts +181 -0
  74. package/src/{host-superkit.ts → omp/host-superkit.ts} +1 -1
  75. package/src/{host.ts → omp/host.ts} +26 -17
  76. package/src/{installed-omp.ts → omp/installed-omp.ts} +1 -1
  77. package/src/{managed-memory.ts → omp/managed-memory.ts} +2 -2
  78. package/src/{managed-ulw.ts → omp/managed-super.ts} +42 -16
  79. package/src/omp/native-journal.ts +124 -0
  80. package/src/{native-launch-profile.ts → omp/native-launch-profile.ts} +6 -2
  81. package/src/{native-presets.ts → omp/native-presets.ts} +2 -2
  82. package/src/omp/native-sessions.ts +124 -0
  83. package/src/{omp-usage.ts → omp/omp-usage.ts} +1 -1
  84. package/src/omp/soul.ts +214 -0
  85. package/src/omp/stock-head-launch.ts +31 -0
  86. package/src/{autostart.ts → operator/autostart.ts} +3 -3
  87. package/src/{operator.ts → operator/operator.ts} +2 -2
  88. package/src/{setup-judge.ts → operator/setup-judge.ts} +1 -1
  89. package/src/{setup-profiles.ts → operator/setup-profiles.ts} +2 -2
  90. package/src/{setup.ts → operator/setup.ts} +7 -6
  91. package/src/{pr-intake-automation.ts → pr/pr-intake-automation.ts} +1 -1
  92. package/src/{pr-intake-mode.ts → pr/pr-intake-mode.ts} +3 -3
  93. package/src/{pr-intake-review.ts → pr/pr-intake-review.ts} +5 -5
  94. package/src/{pr-intake-work.ts → pr/pr-intake-work.ts} +1 -1
  95. package/src/{pr-review-models.ts → pr/pr-review-models.ts} +2 -2
  96. package/src/{pr-watch.ts → pr/pr-watch.ts} +36 -26
  97. package/src/{message-order.ts → routing/message-order.ts} +3 -2
  98. package/src/{topic-history.ts → routing/topic-history.ts} +2 -2
  99. package/src/{topic-request.ts → routing/topic-request.ts} +4 -2
  100. package/src/{runtime.ts → runtime/controller.ts} +1278 -1267
  101. package/src/runtime/deferred-routing.ts +106 -0
  102. package/src/runtime/dm-timeline.ts +194 -0
  103. package/src/{head-recovery.ts → runtime/head-recovery.ts} +1 -1
  104. package/src/{head-rotation.ts → runtime/head-rotation.ts} +32 -5
  105. package/src/runtime/model-journal.ts +119 -0
  106. package/src/runtime/native-frames.ts +131 -0
  107. package/src/{observation-request.ts → runtime/observation-request.ts} +1 -1
  108. package/src/runtime/preset-sync.ts +232 -0
  109. package/src/runtime/preset-watch-paths.ts +137 -0
  110. package/src/runtime/result-attachments.ts +146 -0
  111. package/src/storage/deferred-routing.ts +149 -0
  112. package/src/{store.ts → storage/store.ts} +450 -49
  113. package/src/{worker-bridge.ts → worker/worker-bridge.ts} +2 -2
  114. package/src/{worker-enrollment.ts → worker/worker-enrollment.ts} +2 -2
  115. package/src/{worker-host.ts → worker/worker-host.ts} +7 -3
  116. package/src/{worker-placement.ts → worker/worker-placement.ts} +1 -1
  117. package/src/{worker-profile.ts → worker/worker-profile.ts} +1 -1
  118. package/src/{worker-registration.ts → worker/worker-registration.ts} +2 -2
  119. package/src/{worker-request.ts → worker/worker-request.ts} +5 -5
  120. package/src/{worker-service.ts → worker/worker-service.ts} +2 -2
  121. package/src/{worker-trust.ts → worker/worker-trust.ts} +1 -1
  122. package/src/{worker-wire.ts → worker/worker-wire.ts} +3 -3
  123. package/src/worker-serve-prepare.ts +4 -4
  124. package/src/board-extension.ts +0 -217
  125. package/src/board.ts +0 -467
  126. package/src/gateway-host-helper.ts +0 -13
  127. package/src/messenger-commands.ts +0 -15
  128. package/src/native-sessions.ts +0 -34
  129. /package/src/{credentials.ts → config/credentials.ts} +0 -0
  130. /package/src/{dialog.ts → messaging/dialog.ts} +0 -0
  131. /package/src/{telegram-command-languages.json → messaging/telegram-command-languages.json} +0 -0
  132. /package/src/{host-broker-services.ts → omp/host-broker-services.ts} +0 -0
  133. /package/src/{host-inventory-manifest.ts → omp/host-inventory-manifest.ts} +0 -0
  134. /package/src/{host-services.ts → omp/host-services.ts} +0 -0
  135. /package/src/{native-settings.ts → omp/native-settings.ts} +0 -0
  136. /package/src/{superkit-skills.ts → omp/superkit-skills.ts} +0 -0
  137. /package/src/{repository.ts → operator/repository.ts} +0 -0
  138. /package/src/{pr-github-schema.ts → pr/pr-github-schema.ts} +0 -0
  139. /package/src/{pr-github.ts → pr/pr-github.ts} +0 -0
  140. /package/src/{pr-intake-comment.ts → pr/pr-intake-comment.ts} +0 -0
  141. /package/src/{pr-intake-fix.ts → pr/pr-intake-fix.ts} +0 -0
  142. /package/src/{pr-intake-github.ts → pr/pr-intake-github.ts} +0 -0
  143. /package/src/{pr-intake-material.ts → pr/pr-intake-material.ts} +0 -0
  144. /package/src/{pr-intake-tree.ts → pr/pr-intake-tree.ts} +0 -0
  145. /package/src/{head-quota.ts → runtime/head-quota.ts} +0 -0
  146. /package/src/{worker-checkout.ts → worker/worker-checkout.ts} +0 -0
  147. /package/src/{worker-destination.ts → worker/worker-destination.ts} +0 -0
  148. /package/src/{worker-doctor.ts → worker/worker-doctor.ts} +0 -0
  149. /package/src/{worker-ledger.ts → worker/worker-ledger.ts} +0 -0
  150. /package/src/{worker-repository.ts → worker/worker-repository.ts} +0 -0
  151. /package/upstream/{ulw.json → super.json} +0 -0
@@ -1,6 +1,6 @@
1
1
  # Execution and coordination
2
2
 
3
- [Architecture](../../DESIGN.md) · [Messaging and authority](messaging.md) · [Operations](../OPERATIONS.md)
3
+ [Architecture](../../DESIGN.md) · [Messaging and authority](messaging.md) · [Operations](../OPERATIONS.en.md)
4
4
 
5
5
  ## Lane control
6
6
 
@@ -23,8 +23,8 @@ the worker launches the stock Host and owns its Unix socket, processes and nativ
23
23
  journal. An SSH disconnect is client detach, not cancellation, an exit receipt,
24
24
  or authority to reassign work. Open and attachment are separate from sending
25
25
  the first input. A pending or ambiguous launch must be reconciled on that
26
- worker, never retried on another machine. Remote PIDs and session paths are not
27
- local filesystem or board identities. See [worker enrollment](../../README.md#add-a-remote-worker).
26
+ worker, never retried on another machine. Remote PIDs and session paths do not
27
+ identify local processes or files. See [worker enrollment](../OPERATIONS.en.md#add-a-remote-worker).
28
28
 
29
29
  When several workers qualify, placement accounts for both reported free slots
30
30
  and head assignments waiting to start. Concurrent admissions reserve their
@@ -69,12 +69,19 @@ handoffs and their internal reports use English. No lane gains messenger
69
69
  credentials. Distinguish dispatch acceptance, actual execution, native
70
70
  settlement, verified acceptance criteria, and user delivery.
71
71
 
72
- The [`lane_report` tool](../../src/lane-extension.ts) records evidence in the
72
+ ### Direct lane coordination
73
+
74
+ The [`lane_report` tool](../../src/lane-extension.ts) records observations in the
73
75
  native journal. It hashes selected files in bounded chunks, verifying their identity
74
- and metadata before accepting the digest, or hashes successful tool results. Duplicate
76
+ and metadata before accepting the digest, or hashes successful work tool results.
77
+ Tracked decisions and other coordination receipts are not work evidence. Duplicate
75
78
  content and repeated waits do not refresh evidence timestamps; ordinary
76
79
  commentary is not verification. Resolve only the exact tool/approval/job or
77
- dependency wait. Lane observation reads request only the entries appended
80
+ dependency wait. Direct-topic observations are inspectable and do not notify HEAD.
81
+ Changed manager-handoff evidence or wait transitions are queued for HEAD as
82
+ nonterminal observations. Queueing does not guarantee a new model turn or a
83
+ messenger message.
84
+ Lane observation reads request only the entries appended
78
85
  after the source-bound journal cursor (`get_entries` with `since`). A missing
79
86
  cursor fails the observation rather than replaying another request's history.
80
87
  When only a starting position is needed, the managed owner waits for its queued
@@ -83,7 +90,62 @@ Already-running owners without that capability keep using their stock response.
83
90
  Ownership and outcome checks that need the full journal still read it. The
84
91
  runtime exposes observation timestamps and `ownerCurrent`, not a guarantee
85
92
  that a reported dependency is still live. Native children cannot use the
86
- manager, report as the lane, or access the board.
93
+ manager, report as the lane, or request tracked decisions.
94
+
95
+ A manager handoff returns its final result to HEAD for review. State a blocking
96
+ conflict in that result if no authorized work remains. If HEAD needs to choose
97
+ between in-scope options (for example, which lane owns a shared edit),
98
+ use [`decision_ask({to:"head", questions:[…]})`](messaging.md#approvals-and-owner-decisions)
99
+ even from a bound topic. It immediately queues one durable review of the same
100
+ pending native dialog. Omitting `to` keeps the default: a topic-owned question
101
+ goes directly to its authorized topic; a manager-handoff question goes to HEAD.
102
+ HEAD answers with an original option or escalates the same card on its original
103
+ route via `lane_review_decision`. Do not use a decision to change scope or
104
+ grant native approvals. If a standalone bound-topic owner message explicitly
105
+ supersedes the assignment, use the isolated scope-review procedure below.
106
+ An explicit HEAD-directed question on the resulting corrective assignment is
107
+ cancelled privately, not rerouted to the owner.
108
+ HEAD uses `lane_message` for a specific authorized follow-up; neither an
109
+ observation nor a decision supplies fresh dispatch authority. Do not poll or
110
+ schedule a model just to check for updates.
111
+
112
+ ### Bound-topic assignment scope review
113
+
114
+ An existing assignment can conflict with a later explicit owner correction.
115
+ Ordinary bound-topic requests and replies still stay in the lane. For a
116
+ standalone original owner message in the active bound topic, the root lane
117
+ may call `lane_report({status:"scope_review", sourceId})` **directly**, using
118
+ the current original source ID. The arguments cannot contain a target,
119
+ owner-text copy, or lane-authored explanation. A scope review is neither a
120
+ progress report nor a manager handoff. It has only an identity receipt from
121
+ the native tool result and appends no custom progress event.
122
+
123
+ The controller requires a matched native execution start and successful end
124
+ from the exact current root lane session, file, request and generation. It
125
+ rejects eval, `xd://`, custom-only or replayed receipts and fails closed on
126
+ steering ambiguity. It rechecks the authenticated original owner input and
127
+ its current topic binding independently. Both the review and corrective
128
+ prompt require a fresh Gateway check of the original messenger account; a
129
+ stored allowlist alone is insufficient after reconnect. A newer owner
130
+ message in the same topic takes precedence even if catch-up admitted the
131
+ older physical message last. Review requires exact trimmed owner text with
132
+ no detected credentials or excluded material, including quotes spanning
133
+ lines. Ineligible text stays in the bound lane; its
134
+ redacted or projected remainder cannot authorize a review. HEAD compares
135
+ the eligible text against the existing assignment and receives no lane
136
+ prose, quote, or attachment as part of the review.
137
+
138
+ If the original text explicitly supersedes the conflicting scope, the only
139
+ allowed dispatch is a direct `lane_message` to that same lane with its review
140
+ ID as `sourceId` and the exact verified owner text as `text`, without a
141
+ workflow or override. The controller may dispatch one fresh, deduplicated
142
+ corrective input only after the original lane run and HEAD review both
143
+ settle successfully. The correction applies only to that assignment, not to
144
+ tool availability, native approvals, operator settings, or other work. It
145
+ cannot replay denied or uncertain effects. The lane delivers the corrected
146
+ outcome on the original thread; HEAD does not echo the request or add a
147
+ second reply. If the correction is unsupported or unclear, HEAD gives one
148
+ bounded reason or clarification there, without dispatching work.
87
149
 
88
150
  ### Failed lane requests
89
151
 
@@ -119,7 +181,7 @@ fenced; the report does not authorize a replay or a move to another lane.
119
181
 
120
182
  ## Execution budget and Host lifecycle
121
183
 
122
- [`maxHosts`, `maxSubagents`, and `idleMs`](../../src/config.ts) are explicit
184
+ [`maxHosts`, `maxSubagents`, and `idleMs`](../../src/config/config.ts) are explicit
123
185
  operator inputs. `maxHosts` includes the head; the per-Host native child
124
186
  concurrency budget is `floor(maxSubagents / maxHosts)`. This bounds configured
125
187
  execution concurrency, not machine memory, CPU or provider spend. Lanes wait
@@ -127,6 +189,11 @@ durably when slots are full. Prioritize authorized follow-ups; approval and
127
189
  stop controls remain reachable. A queued lane, a resident Host, an active turn
128
190
  and an accepted work result are different states.
129
191
 
192
+ The separate [`headIdleMs` policy](../../DESIGN.md#idle-head-hibernation) can
193
+ unload HEAD when there are no resident lanes or controller obligations. It
194
+ does not reassign the HEAD slot to a lane. The Gateway retains admission,
195
+ not model or lane authority; waking resumes the same journal.
196
+
130
197
  Each resident lane is an independent OMP process. Detaching the head's control
131
198
  connection or replacing the head does not end that process. Reconnect only to
132
199
  the matching owned socket, PID, native session ID/file and execution generation.
@@ -138,6 +205,10 @@ journal persistence. An enabled native goal, including a paused one, can prevent
138
205
  shutdown. Do not infer eligibility from `agent_end`, an RPC disconnect, a saved
139
206
  file, or a lease alone. Release ownership and the slot only after actual native
140
207
  exit; a shutdown ACK is not exit. Reload the same native session when authorized.
208
+ A read-only ownership snapshot may resample the full evidence for the same
209
+ root after native child registration and attachment invalidate successive
210
+ reads. After at most two resamples, another change leaves ownership
211
+ unverified. Root mismatches, other failures and maintenance drains do not retry.
141
212
 
142
213
  The resident Rust owner speaks the stock JSONL/v2 protocol. Bun and the published SDK still
143
214
  prepare and publish the native session under its exact profile. One short-lived
@@ -148,7 +219,18 @@ persists its launch fence immediately before the manifest is sent, so a refusal
148
219
  before then still releases the slot. Discovery and preparation have separate deadlines.
149
220
  A descendant holding output open cannot extend those deadlines. The owner invokes short-lived
150
221
  SDK helpers for operations that depend on stock semantics, including fitting a withdrawn
151
- queue and verifying journal persistence after exit. On the private v2 interrupt channel,
222
+ queue. The Gateway reads the [session header](../../native-journal/header.rs) itself.
223
+ After its child exits, the [Rust owner](../../host-owner/src/exit_receipt.rs) verifies
224
+ the journal and publishes the exit receipt without starting Bun or loading an SDK.
225
+ The [resident worker](../../src/omp/native-journal.ts) still reads a header in process.
226
+ Only the first physical line, with
227
+ surrounding whitespace trimmed, may be a title slot. Before the session header
228
+ only JSON whitespace is skipped, not a UTF-8 BOM. Identity lookup stops at the
229
+ header; it does not attest to the body. Exit verification checks the entire
230
+ journal and the owner's expected observations. A BOM before a JSON record is
231
+ invalid regardless of read boundaries; a U+FEFF inside a JSON string is data.
232
+ An incomplete or malformed journal is not proof of a settled exit.
233
+ On the private v2 interrupt channel,
152
234
  queue restoration uses the SDK's reassembled-frame byte limit: this is the value of
153
235
  [`maxResponseBytes` in OMP 19.0](https://github.com/can1357/oh-my-pi/blob/v19.0.0/packages/coding-agent/src/modes/rpc/rpc-frame.ts#L341-L347)
154
236
  and [`maxIntactFrameBytes` in 19.1](https://github.com/can1357/oh-my-pi/blob/v19.1.0/packages/coding-agent/src/modes/rpc/rpc-frame.ts#L341-L347).
@@ -176,7 +258,7 @@ The [Host extension](../../src/host-extension.ts) uses the exact registered
176
258
  where available, or the older public `hasPendingAsyncWork()` where appropriate;
177
259
  owned services, child work and unconfirmed completions still need separate
178
260
  checks. The configured CLI's advertised process interface selects the read-only
179
- [OMP 18 broker](../../src/host-broker-services.ts) or [OMP 19 daemon](../../src/host-services.ts)
261
+ [OMP 18 broker](../../src/omp/host-broker-services.ts) or [OMP 19 daemon](../../src/omp/host-services.ts)
180
262
  observation path. Do not start or take over their services, treat probe failure
181
263
  as an empty result, or invent native service generations for old broker records.
182
264
  A terminal service row is not confirmation that its native completion was
@@ -206,7 +288,7 @@ the validated successor. A failure to write at that point fails the restart;
206
288
  it does not restart the predecessor or activate adapters. Head and lane extension
207
289
  composition must be valid before either launch can persist a fallback.
208
290
 
209
- The [guarded native writer](../../src/native-settings.ts) rechecks the expected
291
+ The [guarded native writer](../../src/omp/native-settings.ts) rechecks the expected
210
292
  configuration under the native lock, preserves unrelated settings, and reads
211
293
  back the effective value. It does not overwrite stale values, higher-priority
212
294
  disables or unsets, or unverified legacy/unknown settings. If enabled memory
@@ -216,12 +298,12 @@ still specifically requires an active, searchable Mnemopi backend on the head.
216
298
 
217
299
  ### Native discovery and resume
218
300
 
219
- [Native discovery](../../src/native-sessions.ts) publishes symlinks to the
301
+ [Native discovery](../../src/omp/native-sessions.ts) publishes symlinks to the
220
302
  original journal and artifact directory in the active profile's native project
221
303
  bucket. It does not copy transcripts, transfer a writer lease or wake unloaded
222
304
  lanes. Use normal OMP discovery and `/resume`; native rules govern concurrent
223
- writers and forks. An ordinary resume gets no manager or board authority and
224
- is not attachment to the running managed Host.
305
+ writers and forks. An ordinary resume does not load managed role extensions or
306
+ attach to the running managed Host.
225
307
 
226
308
  ### Goal continuity
227
309
 
@@ -241,7 +323,7 @@ resumes an eligible head goal as described in the [restart contract](../../DESIG
241
323
 
242
324
  ## Models and presets
243
325
 
244
- [`lane_models`](../../src/lane-models.ts) derives the shortlist from native
326
+ [`lane_models`](../../src/lane/lane-models.ts) derives the shortlist from native
245
327
  availability and exact provider/model IDs. Model capabilities and prices are
246
328
  catalogue fields, not measured quality, total cost or permission to spend.
247
329
  The [model-selection skill](../../skills/head/references/model-selection.md)
@@ -251,7 +333,7 @@ unavailability or failure without inventing a receipt or switching providers.
251
333
  Judge usage is native. Runtime enforces exact selection, availability and reason,
252
334
  not a mandatory judge call.
253
335
 
254
- At startup, [preset initialization](../../src/native-presets.ts) inspects native
336
+ At startup, [preset initialization](../../src/omp/native-presets.ts) inspects native
255
337
  `high`, `middle`, `low` presets. If needed the existing head gets one tracked
256
338
  bootstrap turn; do not repeat an uncertain turn after reconnect or restart.
257
339
  Create only missing presets and verify native readback before ordinary work
@@ -321,12 +403,62 @@ default roles/thinking; ordinary head and lane changes leave global configuratio
321
403
  and other lanes alone. Native preset bootstrap/refresh and native auth updates
322
404
  have separate scopes.
323
405
 
406
+ `/fast` displays the current mode and opens a menu on shared HEAD, even while
407
+ busy. A change requires Confirm on the original sent card and the same HEAD
408
+ session, generation, model and selected mode shown as current when it opened.
409
+ HEAD must be idle to change the active model family's tier; the owner serializes it as
410
+ maintenance, and the extension uses native `AgentSession` fast/ultrafast
411
+ controls and flushes the native journal. These APIs were checked in the
412
+ [pinned OMP SDK](../../DESIGN.md#stock-omp-and-verification-scope). No lane, global default
413
+ or provider request is involved. Readback distinguishes the selected mode
414
+ from whether OMP can use a fast tier for the current model, not whether a
415
+ provider accepted it. Uncertain mutations are held, not replayed.
416
+
324
417
  Argumentless `/model` and `/effort` use the same read-only native catalogue and
325
418
  effort capabilities to construct menus. A selection is a new owner control on
326
419
  the original topic, not a model turn or native approval. The head validates
327
420
  the menu's session and generation before applying it, and an effort selection
328
421
  also requires the model for which the options were shown.
329
422
 
423
+ ## Owner-facing reply voice
424
+
425
+ [SOUL](../../src/omp/soul.ts) is an instance-wide presentation preference, not a
426
+ role, workflow, or OMP profile. The default and the one saved override use
427
+ bounded choices for presentational concept (plain, editorial, or mentoring),
428
+ tone, register, detail, answer order, and emoji. The HEAD
429
+ contract still defines its identity. The `soul_update` native tool checks the
430
+ current root HEAD session and a fresh, explicit original owner request. The
431
+ controller derives the supported combination from that exact message, not from
432
+ model-supplied fields. A plain request already addressed to HEAD does not need
433
+ a command or a SOUL keyword. Questions, one-off requests, quotes, edits,
434
+ derived input, and restricted-group messages cannot authorize a change. The
435
+ instance ledger owns the revision and readback. Choosing a concept does not
436
+ change any other setting by implication or establish a new role.
437
+
438
+ The controller supplies the current voice on new, eligible owner-facing
439
+ HEAD turns (including synthesis from a normal lane report) and on direct
440
+ topic-reply lane turns. It uses the admitted run's delivery scope, not message
441
+ content or the current channel. A steer inherits the opening run's scope:
442
+ joining an active manager handoff does not give the lane the reply voice.
443
+ The private owned Host takes only the closed voice profile and renders a
444
+ root-only, temporary system block. An opaque admission token is removed at
445
+ the stock input boundary; neither token nor style enters the user history,
446
+ lane brief, or global `PERSONALITY.md`. Native task children, internal control prompts,
447
+ structured replies, and code-generated notices do not use it. Settings apply
448
+ to the next eligible run on a capable resident Host, without reloading its
449
+ session or changing SUPER activation. Hosts advertising reply voice v2 also
450
+ receive the concept; v1 Hosts continue receiving the original style fields
451
+ without the concept. Hosts with no capability continue unstyled.
452
+
453
+ The prompt boundary was compared with [Cataly `d2cb7078`](https://github.com/vntrevx/Cataly/blob/d2cb7078033ccab27895515d4c566fe7ed4078de/extension/index.ts#L1274-L1295),
454
+ [OpenClaw `6978b40e`](https://github.com/openclaw/openclaw/blob/6978b40e9d3812083064c97e24de00454d6bf868/docs/concepts/system-prompt.md#L166-L185),
455
+ [Hermes `242315ce`](https://github.com/NousResearch/hermes-agent/blob/242315ce571cde721e717a544cf8ae6c343315cf/agent/system_prompt.py#L547-L553),
456
+ and [Dori `3b5487df`](https://github.com/vntrevx/omp-dori/blob/3b5487df12540cdd428ebcf7455375d72921e2dc/skills/dori-mode/SKILL.md#L65-L74).
457
+ These are design references, not prompt or code reuse. The stock OMP extension
458
+ and RPC contract was inspected at [v19.1.1](https://github.com/can1357/oh-my-pi/commit/31ffee513f27a01bba7d4dfbe12bae239cdc646a);
459
+ the installed Host advertises the optional bridge rather than inferring it
460
+ from a CLI version.
461
+
330
462
  ## Workflow selection
331
463
 
332
464
  The root role extensions add only their own role instructions to native context.
@@ -344,7 +476,7 @@ may select a method inside an already authorized objective without claiming the
344
476
  operator selected it. Read the installed skill and preserve its approval and
345
477
  artifact ownership requirements.
346
478
 
347
- [Workflow dispatch](../../src/workflow.ts) binds each choice to the original
479
+ [Workflow dispatch](../../src/lane/workflow.ts) binds each choice to the original
348
480
  source and an explicit `workflow: {name, reason}` on every workflow-selecting
349
481
  `lane_start` or `lane_message`, even when forwarding a user selection. A brief
350
482
  or report is not the selection field. Preserve the original text and native
@@ -386,15 +518,15 @@ does not stand in for its missing canonical command.
386
518
 
387
519
  ## Managed omp-superkit integration
388
520
 
389
- [Preparation](../../scripts/prepare-ulw.ts) runs during `postinstall` or
521
+ [Preparation](../../scripts/prepare-super.ts) runs during `postinstall` or
390
522
  `bun run prepare:ulw`, even if OMP is not installed. The
391
- [declared remote](../../upstream/ulw.json) is the official `omp-superkit`
392
- repository. [Managed installation](../../src/managed-ulw.ts) and duplicate
523
+ [declared remote](../../upstream/super.json) is the official `omp-superkit`
524
+ repository. [Managed installation](../../src/omp/managed-super.ts) and duplicate
393
525
  detection recognize both `omp-superkit` and the legacy `omp-ulw` package ID.
394
526
 
395
527
  Stage the observed revision and its dependencies in a project-owned immutable
396
528
  package. Ignore arbitrary dependency lifecycle scripts; run defined
397
- materialization and an [offline native prompt-composition probe](../../src/managed-ulw-probe.ts)
529
+ materialization and an [offline native prompt-composition probe](../../src/managed-super-probe.ts)
398
530
  for ordinary and explicitly activated operation. For the canonical layout the probe
399
531
  checks that the hook uses the canonical directive and pointer paths and that native
400
532
  discovery resolves both canonical skills and legacy aliases. An older revision
@@ -424,7 +556,7 @@ discarding custom commands or enabling disabled extensions.
424
556
 
425
557
  ## Scheduled work and PR observation
426
558
 
427
- - [Cron jobs](../../src/cron-jobs.ts) run through the head's existing maintenance
559
+ - [Cron jobs](../../src/cron/cron-jobs.ts) run through the head's existing maintenance
428
560
  loop, not a Gateway scheduler or a second agent. `/cron` is a code-handled
429
561
  control scoped to the original owner's full route. `cron_create` requires
430
562
  an explicit request in the current admitted owner turn and the native tool
@@ -446,8 +578,8 @@ discarding custom commands or enabling disabled extensions.
446
578
  jobs remain inspectable and removable; pending runs are cancelled rather
447
579
  than forwarded to a model, and queued shell output is not sent. Verify any
448
580
  previously started legacy run on its original host before resolving it.
449
- See the [operator reference](../OPERATIONS.md#예약-작업-cron) for syntax and controls.
450
- - [Repository PR intake](../../src/cron-pr-intake.ts) is a typed cron job, not
581
+ See the [operator reference](../OPERATIONS.en.md#scheduled-jobs-cron) for syntax and controls.
582
+ - [Repository PR intake](../../src/cron/cron-pr-intake.ts) is a typed cron job, not
451
583
  an executable prompt. Only original configured-owner Discord guild parent
452
584
  controls enroll a repository. Discovery pins the authenticated GitHub owner
453
585
  and repository, filters old/self-authored PRs, and records each offer before
@@ -458,18 +590,21 @@ discarding custom commands or enabling disabled extensions.
458
590
  lane; it is not owner input and cannot serve as a source for manager tools.
459
591
  No ordinary scheduled prompt, observed PR text or model answer grants authority.
460
592
  Older discovery-only registrations remain manual until the owner opts in.
461
- [Review control](../../src/pr-intake-review.ts) binds subsequent actions to
593
+ [Review control](../../src/pr/pr-intake-review.ts) binds subsequent actions to
462
594
  that lane, route, enrollment epoch, review input, delivered answer and SHA.
463
595
  Static review uses a trusted workspace without a contributor checkout. Unlike
464
596
  ordinary coding lanes, this restricted local Host must attest a tool-less
465
597
  session on a supported native provider before the controller submits patch
466
- data. It does not need manager, coordination, shell or editing tools. Fix
598
+ data. The stock launch explicitly selects an empty built-in tool list
599
+ (`--tools=`) and loads only the trusted lifecycle extension. Activation then
600
+ checks the native tool sets before admission. No manager, coordination,
601
+ shell or editing tools are available. Fix
467
602
  proposals and merge verdicts are data, not standing write authority. Each
468
603
  effect checks the enrolled repository, original route and policy revision;
469
604
  higher stages require an explicit policy or a fresh SHA-bound owner command.
470
605
  An uncertain write permits read-only reconciliation, not resubmission. See [operator commands
471
- and supported GitHub protections](../OPERATIONS.md#새-외부-pr-검토-cron-pr-add).
472
- - [PR watch](../../src/pr-watch.ts) reads only explicitly registered GitHub PRs
606
+ and supported GitHub protections](../OPERATIONS.en.md#reviewing-new-external-prs-cron-pr-add).
607
+ - [PR watch](../../src/pr/pr-watch.ts) reads only explicitly registered GitHub PRs
473
608
  through existing `gh` authentication and GETs. Establish a quiet baseline,
474
609
  then record changed observations and their cursor together. Work only while
475
610
  the head runtime is available; a watch cannot recover every remote event
@@ -486,29 +621,3 @@ discarding custom commands or enabling disabled extensions.
486
621
  An unloaded Host, an empty socket, and an `agent_end` event are not proof
487
622
  that the work stalled or finished. Clear observation requests may route to
488
623
  HEAD from a bound thread. Routing text alone changes no subscription.
489
-
490
- ## Shared information board
491
-
492
- The [board extension](../../src/board-extension.ts) checks the canonical
493
- instance and current native session ID, file, PID and applicable lane generation
494
- against managed registration for every access or notice. Role environment
495
- alone is insufficient. Standalone resumes, other instances, stale/unloaded
496
- Hosts and native children are excluded. A connected paused lane remains a
497
- participant. The runtime assigns the actor and deduplicates posts by native
498
- session and tool-call ID.
499
-
500
- `board_post`, `board_read`, and `board_subscribe` operate on `general` and
501
- `repo:<canonical absolute path>` channels. Subscribers are per native session;
502
- all registered participants can read all channels in the instance, so channels
503
- are not ACLs. Mark only the exact IDs returned by `board_read`; a reply does
504
- not mark its parent read. Keep notice cursors separate from read receipts.
505
-
506
- Registered head and lane roots receive header-only notices at native context
507
- boundaries. Lane posts are eligible for head notices; lanes receive notices
508
- for subscriptions and explicit mentions. An idle head can display an event-driven
509
- native notice with `triggerTurn: false`; idle lanes wait until their next
510
- authorized turn. A notice is not a model wake,
511
- read confirmation, actor impersonation, command, approval or evidence of
512
- completion. No self-wake, read-ACK loop or unloaded lane activation. Use
513
- durable lane reports for actual outcomes; the board cannot supply an external
514
- messenger route.