omp-superagent 0.1.7 → 0.1.9

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 (122) hide show
  1. package/DESIGN.md +27 -16
  2. package/README.ko.md +40 -19
  3. package/README.md +43 -18
  4. package/THIRD_PARTY_NOTICES.md +11 -11
  5. package/config.example.json +2 -1
  6. package/docs/OPERATIONS.md +285 -85
  7. package/docs/design/execution.md +133 -24
  8. package/docs/design/messaging.md +235 -50
  9. package/docs/discord-voice.md +8 -4
  10. package/docs/releases/0.1.8.md +21 -0
  11. package/docs/releases/0.1.9.md +18 -0
  12. package/gateway/bin/omp-gateway-darwin-arm64 +0 -0
  13. package/gateway/bin/omp-gateway-darwin-x64 +0 -0
  14. package/gateway/bin/omp-gateway-linux-arm64 +0 -0
  15. package/gateway/bin/omp-gateway-linux-x64 +0 -0
  16. package/host-owner/bin/notices/darwin-arm64/Cargo-LICENSES.txt +2 -0
  17. package/host-owner/bin/notices/darwin-arm64/Cargo-SOURCES.txt +2 -0
  18. package/host-owner/bin/notices/darwin-arm64/crates/bitflags-2.13.2/LICENSE-APACHE +201 -0
  19. package/host-owner/bin/notices/darwin-arm64/crates/bitflags-2.13.2/LICENSE-MIT +25 -0
  20. package/host-owner/bin/notices/darwin-arm64/crates/rustix-1.1.6/COPYRIGHT +29 -0
  21. package/host-owner/bin/notices/darwin-arm64/crates/rustix-1.1.6/LICENSE-APACHE +201 -0
  22. package/host-owner/bin/notices/darwin-arm64/crates/rustix-1.1.6/LICENSE-Apache-2.0_WITH_LLVM-exception +220 -0
  23. package/host-owner/bin/notices/darwin-arm64/crates/rustix-1.1.6/LICENSE-MIT +23 -0
  24. package/host-owner/bin/notices/darwin-x64/Cargo-LICENSES.txt +2 -0
  25. package/host-owner/bin/notices/darwin-x64/Cargo-SOURCES.txt +2 -0
  26. package/host-owner/bin/notices/darwin-x64/crates/bitflags-2.13.2/LICENSE-APACHE +201 -0
  27. package/host-owner/bin/notices/darwin-x64/crates/bitflags-2.13.2/LICENSE-MIT +25 -0
  28. package/host-owner/bin/notices/darwin-x64/crates/rustix-1.1.6/COPYRIGHT +29 -0
  29. package/host-owner/bin/notices/darwin-x64/crates/rustix-1.1.6/LICENSE-APACHE +201 -0
  30. package/host-owner/bin/notices/darwin-x64/crates/rustix-1.1.6/LICENSE-Apache-2.0_WITH_LLVM-exception +220 -0
  31. package/host-owner/bin/notices/darwin-x64/crates/rustix-1.1.6/LICENSE-MIT +23 -0
  32. package/host-owner/bin/notices/linux-arm64/Cargo-LICENSES.txt +3 -0
  33. package/host-owner/bin/notices/linux-arm64/Cargo-SOURCES.txt +3 -0
  34. package/host-owner/bin/notices/linux-arm64/crates/bitflags-2.13.2/LICENSE-APACHE +201 -0
  35. package/host-owner/bin/notices/linux-arm64/crates/bitflags-2.13.2/LICENSE-MIT +25 -0
  36. package/host-owner/bin/notices/linux-arm64/crates/linux-raw-sys-0.12.1/COPYRIGHT +29 -0
  37. package/host-owner/bin/notices/linux-arm64/crates/linux-raw-sys-0.12.1/LICENSE-APACHE +201 -0
  38. package/host-owner/bin/notices/linux-arm64/crates/linux-raw-sys-0.12.1/LICENSE-Apache-2.0_WITH_LLVM-exception +220 -0
  39. package/host-owner/bin/notices/linux-arm64/crates/linux-raw-sys-0.12.1/LICENSE-MIT +23 -0
  40. package/host-owner/bin/notices/linux-arm64/crates/rustix-1.1.6/COPYRIGHT +29 -0
  41. package/host-owner/bin/notices/linux-arm64/crates/rustix-1.1.6/LICENSE-APACHE +201 -0
  42. package/host-owner/bin/notices/linux-arm64/crates/rustix-1.1.6/LICENSE-Apache-2.0_WITH_LLVM-exception +220 -0
  43. package/host-owner/bin/notices/linux-arm64/crates/rustix-1.1.6/LICENSE-MIT +23 -0
  44. package/host-owner/bin/notices/linux-x64/Cargo-LICENSES.txt +3 -0
  45. package/host-owner/bin/notices/linux-x64/Cargo-SOURCES.txt +3 -0
  46. package/host-owner/bin/notices/linux-x64/crates/bitflags-2.13.2/LICENSE-APACHE +201 -0
  47. package/host-owner/bin/notices/linux-x64/crates/bitflags-2.13.2/LICENSE-MIT +25 -0
  48. package/host-owner/bin/notices/linux-x64/crates/linux-raw-sys-0.12.1/COPYRIGHT +29 -0
  49. package/host-owner/bin/notices/linux-x64/crates/linux-raw-sys-0.12.1/LICENSE-APACHE +201 -0
  50. package/host-owner/bin/notices/linux-x64/crates/linux-raw-sys-0.12.1/LICENSE-Apache-2.0_WITH_LLVM-exception +220 -0
  51. package/host-owner/bin/notices/linux-x64/crates/linux-raw-sys-0.12.1/LICENSE-MIT +23 -0
  52. package/host-owner/bin/notices/linux-x64/crates/rustix-1.1.6/COPYRIGHT +29 -0
  53. package/host-owner/bin/notices/linux-x64/crates/rustix-1.1.6/LICENSE-APACHE +201 -0
  54. package/host-owner/bin/notices/linux-x64/crates/rustix-1.1.6/LICENSE-Apache-2.0_WITH_LLVM-exception +220 -0
  55. package/host-owner/bin/notices/linux-x64/crates/rustix-1.1.6/LICENSE-MIT +23 -0
  56. package/host-owner/bin/omp-host-owner-darwin-arm64 +0 -0
  57. package/host-owner/bin/omp-host-owner-darwin-x64 +0 -0
  58. package/host-owner/bin/omp-host-owner-linux-arm64 +0 -0
  59. package/host-owner/bin/omp-host-owner-linux-x64 +0 -0
  60. package/package.json +17 -15
  61. package/skills/head/SKILL.md +3 -11
  62. package/skills/head/references/routing.md +23 -17
  63. package/skills/head/references/supervision.md +13 -1
  64. package/skills/lane/references/workflow.md +8 -8
  65. package/src/cli.ts +6 -3
  66. package/src/config.ts +5 -0
  67. package/src/contracts.ts +95 -10
  68. package/src/cron-jobs.ts +443 -19
  69. package/src/cron-pr-intake.ts +257 -0
  70. package/src/discord-command-registration.ts +34 -186
  71. package/src/extension.ts +31 -3
  72. package/src/gateway-client.ts +11 -59
  73. package/src/gateway-protocol.ts +35 -1
  74. package/src/head-quota.ts +80 -0
  75. package/src/head-recovery.ts +249 -1
  76. package/src/host-extension.ts +194 -5
  77. package/src/host-protocol.ts +16 -9
  78. package/src/host-sdk-helper.ts +105 -10
  79. package/src/host.ts +111 -29
  80. package/src/installed-omp.ts +116 -4
  81. package/src/lane-models.ts +8 -0
  82. package/src/managed-ulw-probe.ts +22 -20
  83. package/src/managed-ulw.ts +137 -24
  84. package/src/messenger-command-catalog.json +6 -3
  85. package/src/messenger-commands.ts +9 -2
  86. package/src/native-presets.ts +32 -5
  87. package/src/omp-usage.ts +254 -36
  88. package/src/operator.ts +77 -0
  89. package/src/pr-github-schema.ts +2 -0
  90. package/src/pr-github.ts +4 -2
  91. package/src/pr-intake-automation.ts +315 -0
  92. package/src/pr-intake-comment.ts +225 -0
  93. package/src/pr-intake-fix.ts +232 -0
  94. package/src/pr-intake-github.ts +479 -0
  95. package/src/pr-intake-material.ts +229 -0
  96. package/src/pr-intake-mode.ts +59 -0
  97. package/src/pr-intake-review.ts +397 -0
  98. package/src/pr-intake-tree.ts +68 -0
  99. package/src/pr-intake-work.ts +29 -0
  100. package/src/pr-review-models.ts +28 -0
  101. package/src/result-attachment.ts +60 -79
  102. package/src/runtime.ts +2968 -449
  103. package/src/setup-profiles.ts +26 -65
  104. package/src/slack-command-registration.ts +48 -197
  105. package/src/store.ts +507 -87
  106. package/src/superkit-skills.ts +22 -0
  107. package/src/telegram-command-languages.json +17 -0
  108. package/src/telegram-command-registration.ts +32 -134
  109. package/src/topic-history.ts +30 -17
  110. package/src/worker-bridge.ts +21 -0
  111. package/src/worker-enrollment.ts +2 -1
  112. package/src/worker-host.ts +0 -24
  113. package/src/worker-serve-prepare.ts +19 -0
  114. package/src/worker-service.ts +51 -47
  115. package/scripts/ci.ts +0 -44
  116. package/scripts/release.ts +0 -112
  117. package/scripts/test-omp.sh +0 -43
  118. package/src/discord-commands.ts +0 -29
  119. package/src/discord-markdown.ts +0 -172
  120. package/src/slack-commands.ts +0 -18
  121. package/src/telegram-signal.ts +0 -14
  122. package/src/worker-stdio.ts +0 -61
@@ -51,7 +51,7 @@ references](../../skills/head/SKILL.md) for operating policy.
51
51
  | Tools | Authority and outcome |
52
52
  | --- | --- |
53
53
  | `lane_start` | Requires a durable user source, title, existing absolute cwd, exact model or native preset, model reason and kickoff. Accepts a bounded brief, acceptance criteria, and an authorized destination or workflow. At most one new lane per source. Returns the durable ID and admission state, not an execution or completion receipt. |
54
- | `lane_message` | Explicit follow-up with a real authorized `sourceId` and the target lane. Deduplicate by source and lane; check destination, attachment/quote scope and identity compatibility. The same source may reach existing lanes only where those routes and reporting are authorized. |
54
+ | `lane_message` | Explicit follow-up with a real authorized `sourceId` and the target lane. Deduplicate by source and lane; check destination, attachment/quote scope and identity compatibility. For a physical Discord work thread and a source from its exact guild parent, pin the HEAD-reviewed report route to that thread per handoff. This does not rebind the source or resume a paused lane. The same source may reach existing lanes only where those routes and reporting are authorized. |
55
55
  | `lane_inspect` | Lists records without a live probe; inspecting a specific lane adds live status where observable, model readback, queue blockers and observed progress. Null actual state is unknown, not a match. |
56
56
  | `lane_pause` | Takes a managed lane ID. Persists pause intent and requests an interrupt without claiming owned services or earlier effects are gone. |
57
57
  | `lane_resume` | Takes a managed lane ID and an authorized original `sourceId`. May reopen a paused native goal after checking native state; never releases an uncertain submission or revives cancelled work. |
@@ -60,12 +60,14 @@ references](../../skills/head/SKILL.md) for operating policy.
60
60
  | `thread_inspect`, `lane_thread_update` and the `decision_*` tools | Use the [messaging and authority contract](messaging.md) for scope, original thread/approval identities and readback. |
61
61
 
62
62
  Send only the original task, relevant evidence, constraints and acceptance
63
- criteria to a lane; never copy the full head transcript. A new topic starts
64
- with the exact observed head model, not its conversation; subsequent work uses
65
- the topic's own saved model and session. A topic lane replies in the operator's
66
- language through the controller outbox. Explicit manager handoffs and their
67
- internal reports use English. No lane gains messenger credentials. Distinguish dispatch acceptance, actual
68
- execution, native settlement, verified acceptance criteria, and user delivery.
63
+ criteria to a lane; never copy the full head transcript. Controller-created
64
+ topics start with the exact observed head model, while explicit manager
65
+ handoffs use the model or preset selected at `lane_start`. Subsequent work
66
+ uses the topic's own saved model and session. Ordinary bound-topic work replies
67
+ in the operator's language through the controller outbox. Explicit manager
68
+ handoffs and their internal reports use English. No lane gains messenger
69
+ credentials. Distinguish dispatch acceptance, actual execution, native
70
+ settlement, verified acceptance criteria, and user delivery.
69
71
 
70
72
  The [`lane_report` tool](../../src/lane-extension.ts) records evidence in the
71
73
  native journal. It hashes selected files in bounded chunks, verifying their identity
@@ -83,6 +85,38 @@ runtime exposes observation timestamps and `ownerCurrent`, not a guarantee
83
85
  that a reported dependency is still live. Native children cannot use the
84
86
  manager, report as the lane, or access the board.
85
87
 
88
+ ### Failed lane requests
89
+
90
+ Confirmed provider quota exhaustion is an operator decision, not a recovery
91
+ prompt. The controller sends one notice on the authorized reply route and holds
92
+ new prompts on that lane until the operator selects a model in its bound topic
93
+ with `/model --lane <provider/id>` or the current-lane option on Discord's
94
+ `/model` card. If the model-change acknowledgement is lost, selecting the same
95
+ provider and model on a fresh card in the original conversation can reconcile
96
+ the pending change against the original session. A cold lane's subsequent
97
+ native application does not replace the receipt for the operator's original
98
+ choice. This does not change HEAD or replay the failed request. A transient
99
+ HTTP 429 or model-capacity error alone is not evidence of
100
+ exhausted account quota.
101
+
102
+ Other native execution errors, including in topic-owned work, go to HEAD for
103
+ recovery. Before forwarding a lost-response report, the controller checks the
104
+ original attached session for an exact settled receipt. If HEAD was busy, it
105
+ checks again before forwarding; if a settlement state read fails, the next
106
+ wake retries the read, not the prompt. A verified result supersedes the obsolete
107
+ report, including an informational report from an older session without a
108
+ verified owner. Such a report cannot authorize corrective work. Neither a
109
+ missing ACK nor a detached client authorizes resubmission.
110
+ A failed run proven to have started no local or provider-executed tools can close
111
+ as failed and permit HEAD to select an eligible fallback and send a fresh,
112
+ scoped correction. Recovery authority comes from HEAD's active report, not a
113
+ source ID supplied in a tool call. Cancellation of the original request or a
114
+ newer operator model selection invalidates the report, even if the model was
115
+ changed back. A correction keeps the original approval route. If a dialog is
116
+ first seen after reconnect and cannot be tied to that request, it stays on the
117
+ native Host rather than appearing in the lane thread. Uncertain effects stay
118
+ fenced; the report does not authorize a replay or a move to another lane.
119
+
86
120
  ## Execution budget and Host lifecycle
87
121
 
88
122
  [`maxHosts`, `maxSubagents`, and `idleMs`](../../src/config.ts) are explicit
@@ -106,13 +140,22 @@ file, or a lease alone. Release ownership and the slot only after actual native
106
140
  exit; a shutdown ACK is not exit. Reload the same native session when authorized.
107
141
 
108
142
  The resident Rust owner speaks the stock JSONL/v2 protocol. Bun and the published SDK still
109
- prepare and publish the native session under its exact profile. The owner invokes short-lived
143
+ prepare and publish the native session under its exact profile. One short-lived
144
+ [SDK helper](../../src/host-sdk-helper.ts) per launch first reports the managed launch
145
+ composition from native discovery without creating or publishing a session; only after the launcher answers with
146
+ the manifest built from that composition does the same process prepare the session. A worker
147
+ persists its launch fence immediately before the manifest is sent, so a refusal or timeout
148
+ before then still releases the slot. Discovery and preparation have separate deadlines.
149
+ A descendant holding output open cannot extend those deadlines. The owner invokes short-lived
110
150
  SDK helpers for operations that depend on stock semantics, including fitting a withdrawn
111
151
  queue and verifying journal persistence after exit. On the private v2 interrupt channel,
112
152
  queue restoration uses the SDK's reassembled-frame byte limit: this is the value of
113
153
  [`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)
114
154
  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).
115
155
  An intact queue must not be reported as truncated. No second Bun runtime stays resident per Host.
156
+ For SSH workers the enrolled forced command hands its stdio to the Rust relay.
157
+ Admission and Host attestation can use a short-lived helper; no Bun process
158
+ stays just to forward bytes. SSH EOF detaches only that connection.
116
159
  Gateway supervision reads the exact session, process and socket identity from a fresh handshake
117
160
  instead of fetching the same full state again on the new connection.
118
161
 
@@ -215,15 +258,48 @@ Create only missing presets and verify native readback before ordinary work
215
258
  starts. Invalid, tombstoned, shadowed or operator-edited entries are not
216
259
  overwritten. Managed presets follow the native `slow`, `default`, and `smol`
217
260
  roles respectively when their available selections change. Refresh only the
218
- entries still under management; do not switch existing sessions. These labels
261
+ entries still under management; do not switch existing sessions. Preset role
262
+ synchronization watches the configured native preset/role files, parent
263
+ directories (so replaced directories with new inodes rebind cleanly), and
264
+ every symlink hop (`fs.watch`, debounced), watches surviving ancestors for
265
+ uncreated directories, and reconciles once after installing watchers. On macOS
266
+ the maintenance tick also checks file metadata to recover changes missed during
267
+ FSEvents registration. Unchanged files do not trigger a preset reload. Errors
268
+ and explicit `"deferred"` outcomes get bounded backoff retries. Deferred work
269
+ continues at a slow interval after those retries so late model availability
270
+ can apply without another config edit. Slow periodic polling also stays
271
+ active whenever any source is uncovered or a watcher errors. These labels
219
272
  are preset names, not custom roles or tested performance/cost tiers.
220
273
 
221
274
  Each lane records a resolved model, selection reason, and the complete native
222
275
  role/thinking preset snapshot if a preset was selected. A later preset/global
223
276
  change does not change that snapshot. Resume and reconnect check native
224
277
  readback; unavailability or drift holds dispatch without silently selecting a
225
- different model. An authorized `lane_set_model` can change one eligible idle
226
- lane, with durable intent and readback. `config.model` is a head launch default,
278
+ different model. A running lane may accept OMP's selected retry fallback
279
+ without changing its durable configured model. The current model must match
280
+ the newest flagged `model_change` on the active native journal branch, and the
281
+ uninterrupted flagged chain must start at the configured model. The controller
282
+ queries the attached native owner for the leaf and entries, including for
283
+ remote workers; it does not open worker paths. Exact catalog IDs take precedence
284
+ over native selector suffixes. An unflagged ephemeral switch, including context
285
+ promotion, does not authorize another model.
286
+
287
+ Warm recovery and cold resume may both return the Host to the original model.
288
+ Normal readback recognizes that model directly without relying on a reverse
289
+ journal entry. A newly restored Host must confirm the configured model and
290
+ record its active journal cursor before using retry evidence. Only a flagged
291
+ row after that cursor on the active branch can authorize a fallback, even
292
+ across reconnects. A current owner/generation receipt and a notice, written
293
+ together, prevent the same row from re-authorizing drift after recovery or
294
+ owner replacement. The notice reports which model is selected, not which model
295
+ generated an answer. Frozen preset lanes remain excluded. An authorized
296
+ `lane_set_model` can change one eligible idle lane with durable intent and
297
+ returns that change's own readback. The managed Host fences ordinary lane
298
+ model switches as maintenance and rechecks native activity before invoking
299
+ the setter; a menu click cannot use an earlier idle observation to switch a
300
+ lane that has since started work. If the selected model is already running as a
301
+ temporary fallback, its presence in `get_state` is not proof that it will be
302
+ restored as the lane's selected model. `config.model` is a head launch default,
227
303
  not the lane default or a reason to overwrite a saved head's model on restart.
228
304
  Managed Hosts use private settings overlays, with native session-scope
229
305
  readback. Legacy lanes without a recorded selection adopt their authoritative
@@ -233,7 +309,9 @@ to recover a recorded session.
233
309
  This preserves existing native provider fallback and retry policy; it is not a
234
310
  guarantee about every lower-level provider request.
235
311
 
236
- `/model` and `/effort` target the shared head even when issued in a lane topic.
312
+ Direct `/model <provider/id>` and `/effort` target the shared head even in a
313
+ lane topic. Discord's `/model` card and the explicit `/model --lane` command
314
+ can instead target the lane bound to that conversation.
237
315
  Read-only queries can run while busy; mutations require native idle and session
238
316
  scope, record intent and report the actual applied model/effort. A current
239
317
  owner's explicit natural-language request can use `head_set_model` after its
@@ -274,19 +352,21 @@ keyword interpretation; keep generated metadata fenced. Selection is
274
352
  serialized, not injected as steering. A conflict or missing advertised
275
353
  capability does not silently downgrade a selected SUPER request to ordinary work.
276
354
 
277
- SUPER's command, skill and native-keyword contracts are based on
355
+ SUPER's commands and defaults are based on
278
356
  [omp-superkit `c11a6e4e185f9c31f484a05a13528ef724337bc1`](https://github.com/dbc-hbin/omp-superkit/tree/c11a6e4e185f9c31f484a05a13528ef724337bc1).
357
+ [Revision `e8825367bed06985ccb1ee1e635dce850e22bbb9`](https://github.com/dbc-hbin/omp-superkit/tree/e8825367bed06985ccb1ee1e635dce850e22bbb9)
358
+ moved the workflow instructions into canonical skills and retained the original IDs as aliases.
279
359
  Use a leading invocation; the `/` is optional in request text. These are OMP
280
360
  extension commands, not registered messenger controls.
281
361
 
282
- | OMP command | `workflow.name` | Discoverable OMP skill | Default native keyword |
283
- | --- | --- | --- | --- |
284
- | `/super` | `super` | `skill://ultrawork` | None |
285
- | `/super-plan` | `super-plan` | `skill://ulw-plan` | `ultrathink` |
286
- | `/super-run` | `super-run` | `skill://ulw-execute` | `orchestrate` |
287
- | `/super-loop` | `super-loop` | `skill://ulw-loop` | `orchestrate` |
288
- | `/super-research` | `super-research` | `skill://ulw-research` | `workflowz` |
289
- | `/super-graph` | `super-graph` | `skill://mass-ulw` | `workflowz` |
362
+ | OMP command | `workflow.name` | Canonical OMP skill | Legacy skill | Default native keyword |
363
+ | --- | --- | --- | --- | --- |
364
+ | `/super` | `super` | `skill://super` | `skill://ultrawork` | None |
365
+ | `/super-plan` | `super-plan` | `skill://super-plan` | `skill://ulw-plan` | `ultrathink` |
366
+ | `/super-run` | `super-run` | `skill://super-run` | `skill://ulw-execute` | `orchestrate` |
367
+ | `/super-loop` | `super-loop` | `skill://super-loop` | `skill://ulw-loop` | `orchestrate` |
368
+ | `/super-research` | `super-research` | `skill://super-research` | `skill://ulw-research` | `workflowz` |
369
+ | `/super-graph` | `super-graph` | `skill://super-graph` | `skill://mass-ulw` | `workflowz` |
290
370
 
291
371
  Plain SUPER arms the session without selecting a specialty workflow or implicitly
292
372
  creating a goal in RPC. SUPER Graph selects the graph workflow, not plain SUPER
@@ -315,7 +395,10 @@ detection recognize both `omp-superkit` and the legacy `omp-ulw` package ID.
315
395
  Stage the observed revision and its dependencies in a project-owned immutable
316
396
  package. Ignore arbitrary dependency lifecycle scripts; run defined
317
397
  materialization and an [offline native prompt-composition probe](../../src/managed-ulw-probe.ts)
318
- for ordinary and explicitly activated operation. Serialize preparation via
398
+ for ordinary and explicitly activated operation. For the canonical layout the probe
399
+ checks that the hook uses the canonical directive and pointer paths and that native
400
+ discovery resolves both canonical skills and legacy aliases. An older revision
401
+ uses the full legacy skills instead. Serialize preparation via
319
402
  the update lock and atomically publish `active.json` only after validation.
320
403
  Once installed, activate only fast-forward revisions from the same source;
321
404
  retain the last valid active revision and report failures. Do not delete older
@@ -358,8 +441,34 @@ discarding custom commands or enabling disabled extensions.
358
441
  approval authority. An unresolved run is not repeated; a head stop fence
359
442
  requires explicit per-job resume. Pause and removal can cancel a queued
360
443
  run, not interrupt submitted or uncertain work. Delivery uses the normal
361
- head outbox. See the [operator reference](../OPERATIONS.md#예약-작업-cron)
362
- for schedule syntax and controls.
444
+ head outbox. Direct shell schedules are disabled: an authenticated route and
445
+ scrubbed credentials are not a runtime capability boundary. Legacy shell
446
+ jobs remain inspectable and removable; pending runs are cancelled rather
447
+ than forwarded to a model, and queued shell output is not sent. Verify any
448
+ 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
451
+ an executable prompt. Only original configured-owner Discord guild parent
452
+ controls enroll a repository. Discovery pins the authenticated GitHub owner
453
+ and repository, filters old/self-authored PRs, and records each offer before
454
+ delivery. The separately authenticated registration/mode action sets a bounded
455
+ unattended ceiling: review/comment, safe fix, or protected merge. The confirmed
456
+ bot offer's Discord snowflake identifies the one thread for that PR. A
457
+ noninteractive controller receipt admits an exact SHA to a tool-less native
458
+ lane; it is not owner input and cannot serve as a source for manager tools.
459
+ No ordinary scheduled prompt, observed PR text or model answer grants authority.
460
+ Older discovery-only registrations remain manual until the owner opts in.
461
+ [Review control](../../src/pr-intake-review.ts) binds subsequent actions to
462
+ that lane, route, enrollment epoch, review input, delivered answer and SHA.
463
+ Static review uses a trusted workspace without a contributor checkout. Unlike
464
+ ordinary coding lanes, this restricted local Host must attest a tool-less
465
+ session on a supported native provider before the controller submits patch
466
+ data. It does not need manager, coordination, shell or editing tools. Fix
467
+ proposals and merge verdicts are data, not standing write authority. Each
468
+ effect checks the enrolled repository, original route and policy revision;
469
+ higher stages require an explicit policy or a fresh SHA-bound owner command.
470
+ An uncertain write permits read-only reconciliation, not resubmission. See [operator commands
471
+ and supported GitHub protections](../OPERATIONS.md#새-외부-pr-검토-cron-pr-add).
363
472
  - [PR watch](../../src/pr-watch.ts) reads only explicitly registered GitHub PRs
364
473
  through existing `gh` authentication and GETs. Establish a quiet baseline,
365
474
  then record changed observations and their cursor together. Work only while