omp-superagent 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/DESIGN.md +189 -48
- package/README.ko.md +30 -16
- package/README.md +39 -20
- package/THIRD_PARTY_NOTICES.md +81 -6
- package/docs/OPERATIONS.md +178 -30
- package/docs/discord-voice.md +96 -0
- package/docs/releases/0.1.2.md +53 -0
- package/package.json +13 -7
- package/scripts/ci.ts +10 -5
- package/scripts/release.ts +14 -6
- package/scripts/test-omp.sh +36 -0
- package/skills/head/SKILL.md +82 -241
- package/skills/head/references/model-selection.md +81 -261
- package/skills/head/references/routing.md +179 -354
- package/skills/head/references/supervision.md +120 -310
- package/skills/lane/SKILL.md +53 -175
- package/skills/lane/references/workflow.md +93 -347
- package/src/cli.ts +96 -10
- package/src/codex-live-bridge.py +73 -0
- package/src/codex-live.ts +244 -0
- package/src/codex-voice-requirements.txt +5 -0
- package/src/codex_live_auth.py +192 -0
- package/src/codex_live_media.py +219 -0
- package/src/codex_live_provider.py +192 -0
- package/src/config.ts +77 -2
- package/src/contracts.ts +70 -6
- package/src/decision-tool.ts +59 -0
- package/src/decisions.ts +143 -0
- package/src/delivery.ts +10 -0
- package/src/discord-context.ts +118 -0
- package/src/discord-voice-draft.ts +124 -0
- package/src/discord-voice-link.ts +270 -0
- package/src/discord-voice.ts +150 -0
- package/src/discord.ts +312 -45
- package/src/extension.ts +178 -21
- package/src/gateway-client.ts +11 -4
- package/src/gateway-server.ts +52 -4
- package/src/gateway-store.ts +16 -2
- package/src/gateway.ts +27 -11
- package/src/host-broker-services.ts +108 -0
- package/src/host-extension.ts +159 -47
- package/src/host-owner.ts +16 -0
- package/src/host-protocol.ts +9 -1
- package/src/host-services.ts +54 -0
- package/src/host.ts +3 -2
- package/src/installed-omp.ts +34 -26
- package/src/lane-extension.ts +5 -0
- package/src/lane-rows.ts +12 -0
- package/src/messengers.ts +38 -9
- package/src/native-presets.ts +91 -3
- package/src/native-settings.ts +3 -1
- package/src/openai-live.ts +377 -0
- package/src/pr-github-schema.ts +110 -0
- package/src/pr-github.ts +170 -0
- package/src/pr-watch.ts +200 -0
- package/src/runtime.ts +419 -54
- package/src/slack.ts +14 -11
- package/src/store.ts +86 -30
- package/src/telegram.ts +28 -12
- package/scripts/check-omp.ts +0 -4
|
@@ -1,312 +1,122 @@
|
|
|
1
1
|
# Event-driven lane supervision
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
`lane_inspect({})` lists recorded `Lane[]`. `lane_inspect({"id":"…"})` returns
|
|
124
|
-
that lane plus `state`, the actual attached native state, or `null` when not attached.
|
|
125
|
-
Use `sessionFile`, `sessionId`, `generation`, recorded runtime/work state, and native
|
|
126
|
-
evidence together; a null state is not proof that nothing ran or no process owns it.
|
|
127
|
-
Use available native session/history reads and workspace/external evidence for
|
|
128
|
-
details not contained in inspect. Do not invent transcript or queue tool parameters.
|
|
129
|
-
|
|
130
|
-
After compaction or restart, reorient from the current request, relevant lane's
|
|
131
|
-
brief/acceptance and native history before steering it. Inspect only lanes relevant
|
|
132
|
-
to the decision; do not turn reorientation into repeated all-lane status sweeps.
|
|
133
|
-
|
|
134
|
-
Keep these distinctions explicit:
|
|
135
|
-
- Stored exact `model`, `modelPreset` name/null, full `modelPresetSnapshot` with
|
|
136
|
-
roles/thinking, and `modelReason` are the retained
|
|
137
|
-
head selection, not proof of judge
|
|
138
|
-
consultation. ID-specific inspect also exposes attached `state.model` and
|
|
139
|
-
`modelCheck.expected`, `actual`, `error`; null actual/state is unknown, not a match.
|
|
140
|
-
Model unavailability or drift holds execution rather than silently substituting a
|
|
141
|
-
default selection. Existing OMP native fallback/retry/usage policy still applies;
|
|
142
|
-
the integration holds observed drift before further dispatch, not every unseen
|
|
143
|
-
provider attempt, and adds no automatic model escalation. Pre-selection legacy
|
|
144
|
-
records can adopt authoritative native identity with
|
|
145
|
-
an explicitly non-judge-selected reason; never call this a judged decision.
|
|
146
|
-
- `workState` records open/paused/completed/cancelled work; `runtimeState` records
|
|
147
|
-
unloaded/starting/running/idle/interrupted execution. Neither proves acceptance.
|
|
148
|
-
- `agent_end`, `isSettled`, or idle can coexist with unfinished user goals. Assess
|
|
149
|
-
pending native UI, async/subagent work, owned services, and queued/uncertain inputs
|
|
150
|
-
where authoritative evidence is available. Missing evidence is unknown, not zero.
|
|
151
|
-
- The runtime owns admission, host budgets, persistence, and idle release. Do not
|
|
152
|
-
duplicate its scheduler or treat controller disconnect as termination.
|
|
153
|
-
Same-process native TUI/herdr attachment to managed RPC sessions is unsupported;
|
|
154
|
-
never substitute log tailing or a second `--resume` writer. Process/worktree
|
|
155
|
-
isolation is not a security sandbox.
|
|
156
|
-
|
|
157
|
-
## 3. Advance authorized work or correct results with one explicit instruction
|
|
158
|
-
|
|
159
|
-
On a real durable lane report event, assess the reported result against acceptance.
|
|
160
|
-
Repair a verified gap or choose/prioritize the next useful remaining work within the
|
|
161
|
-
entrusted project objective without asking for per-step permission. If acceptance
|
|
162
|
-
is met, finish; if approval, scope, uncertainty, or an owner choice blocks the next
|
|
163
|
-
action, hold that action and continue only independent authorized work. A board post
|
|
164
|
-
or invented report receipt cannot substitute for this event/source boundary.
|
|
165
|
-
|
|
166
|
-
Send one actionable instruction in English; preserve exact original source
|
|
167
|
-
text/quotations when needed. This internal instruction is not the head's user-language
|
|
168
|
-
external answer:
|
|
169
|
-
|
|
170
|
-
```text
|
|
171
|
-
Observed result/gap: acceptance criterion and evidence actually checked
|
|
172
|
-
Next work/correction: authorized remaining behavior, priority, allowed edit surface, constraints/non-goals
|
|
173
|
-
Verification: observable result needed; checks already run and restrictions
|
|
174
|
-
Report back: outcome, evidence, unresolved risks or owner decision
|
|
175
|
-
```
|
|
176
|
-
|
|
177
|
-
If the correction selects an ULW method, first apply routing's lighter-alternative
|
|
178
|
-
and workflow-benefit gate and read the actual installed native skill. Set the real
|
|
179
|
-
optional `workflow: {name, reason}` field, with a supported name and nonempty reason.
|
|
180
|
-
Keep `selectedBy: user|head`, necessity/evidence, lighter alternative, canonical
|
|
181
|
-
artifact/owner, acceptance/stop and permission limits as concise instruction `text`,
|
|
182
|
-
not additional API fields. An explicit head choice acts on existing authorization,
|
|
183
|
-
not a claim the user named it. No brand-consent question is needed; real scope/cost
|
|
184
|
-
choices, installed gates and native plan approval remain required. All workflow-selecting
|
|
185
|
-
head-to-lane handoffs, including forwarding an original explicit user choice, require this field;
|
|
186
|
-
omission is ordinary work, never activation from copied user/correction/report text.
|
|
187
|
-
Only actual user-origin head inputs may derive a leading invocation. An explicit
|
|
188
|
-
choice conflicting with the source user invocation or a changed/omitted source-bound
|
|
189
|
-
retry is rejected. Reconcile/resume existing lane
|
|
190
|
-
and workflow records rather than creating another lane, native goal or competing
|
|
191
|
-
ledger. Distinguish skill loading from observed native activation and report required
|
|
192
|
-
unavailable capabilities.
|
|
193
|
-
|
|
194
|
-
Use `lane_message` fields `id`, `text`, `sourceId`, and optional `workflow` as above.
|
|
195
|
-
The lane must be open. `sourceId`
|
|
196
|
-
must name an actually stored authorized input: a newly received request's trusted
|
|
197
|
-
`Request ID` or a new trusted internal report receipt's header ID can support a new
|
|
198
|
-
correction. The receipt adds coordination identity, not authority for new external
|
|
199
|
-
effects. Stay within the operator's existing objective.
|
|
200
|
-
|
|
201
|
-
Deduplication is `handoff:<sourceId>:<lane>`. Reuse a source ID only for an identical
|
|
202
|
-
retry to that lane; changed instructions need a genuinely new received event. Do
|
|
203
|
-
not invent a UUID, suffix, timestamp, or report receipt, or reuse the report body's
|
|
204
|
-
old source ID to evade this rule. If no fresh ID exists, do not claim new work was
|
|
205
|
-
queued; explain the held instruction and request a fresh owner input when needed.
|
|
206
|
-
Inspect ambiguous submission evidence before any retry. A durable-queue response
|
|
207
|
-
does not establish execution, delivery to the lane, or successful effects.
|
|
208
|
-
|
|
209
|
-
## 4. Own blockers and approvals
|
|
210
|
-
|
|
211
|
-
- Identify whether the missing item is a discoverable fact, failed implementation,
|
|
212
|
-
unavailable capability, conflicting scope, or an owner-only decision. Investigate
|
|
213
|
-
reachable facts; a failed check is evidence to fix, not an automatic user blocker.
|
|
214
|
-
- For an ambiguous capability, risk, or briefing decision, load
|
|
215
|
-
`skill://superagent-head/references/model-selection.md` and normally get native
|
|
216
|
-
judge advice on minimal relevant facts. Critically decide yourself; recommendations
|
|
217
|
-
do not verify results, authorize new scope/spend, or automatically escalate a lane's
|
|
218
|
-
model. Reconcile capability mismatch with the lane's evidence and retained model,
|
|
219
|
-
asking the owner only for a genuine unresolved budget/capability choice. Do not
|
|
220
|
-
invoke judge merely to acknowledge a report or monitor a lane's presence.
|
|
221
|
-
- An explicitly authorized idle-lane model change is allowed; retained selection
|
|
222
|
-
prohibits implicit replay/default/preset retargeting, not this deliberate operation.
|
|
223
|
-
Inspect the target's actual state, load the model-selection reference, and use only
|
|
224
|
-
`lane_set_model` with `id`, a stored authorized `sourceId`, exactly one of exact
|
|
225
|
-
`model` or existing native `preset`, and nonempty `modelReason`. It requires no active input,
|
|
226
|
-
native UI, goal, owned services, or held uncertainty. Never interrupt work or bypass
|
|
227
|
-
a hold just to switch. Confirm native readback and the durable change result before
|
|
228
|
-
claiming success; inspect an uncertain result rather than blindly replaying it.
|
|
229
|
-
Preserve pause/cancel, uncertain input,
|
|
230
|
-
and task authority. Any observed native preset name can resolve to a new full
|
|
231
|
-
roles/thinking snapshot and exact default identity for this lane only. Later
|
|
232
|
-
preset edits cannot retarget other existing lanes. Never persist OMP-wide
|
|
233
|
-
model/config settings, rewrite credential setup, or change the head/other lanes
|
|
234
|
-
to perform the switch. Native authentication refresh remains normal.
|
|
235
|
-
First-deployment native preset initialization is a separate deliberate operation;
|
|
236
|
-
do not rerun it as recovery or use it to bypass a model hold.
|
|
237
|
-
- Keep technical correction with the current lane. For an actual operator choice,
|
|
238
|
-
use native `ask` with the advertised schema in the appropriate conversation,
|
|
239
|
-
presenting the relevant evidence and consequence. Avoid duplicate questions if an
|
|
240
|
-
original native question/approval is already pending.
|
|
241
|
-
- Approvals remain with the operator and their exact original native request/card,
|
|
242
|
-
session/generation, platform/account, and physical conversation. A topic switch,
|
|
243
|
-
worker recommendation, ordinary chat reply, or another card is not an answer.
|
|
244
|
-
Do not bypass an unavailable/secret dialog; direct the operator to local OMP UI.
|
|
245
|
-
- An unrelated repo or new external authority is a routing decision, not corrective
|
|
246
|
-
scope creep. Load the routing reference and use a separate authorized topic.
|
|
247
|
-
|
|
248
|
-
## 5. Recover without replaying uncertain effects
|
|
249
|
-
|
|
250
|
-
On an interrupted connection, failed native outcome, or restart, first separate what
|
|
251
|
-
was queued, accepted, executed, persisted, and delivered. Inspect the original native
|
|
252
|
-
session, workspace changes, and authoritative external state. Report observed facts
|
|
253
|
-
and unresolved claims separately; do not infer success or failure from absence of a
|
|
254
|
-
reply, old socket, journal, lease, or PID alone.
|
|
255
|
-
|
|
256
|
-
For uncertain submitted inputs, stop duplicate execution. No current lane tool clears
|
|
257
|
-
that uncertainty. Later queued inputs stay fenced as well; a new follow-up or resume
|
|
258
|
-
cannot bypass the unresolved submission. `lane_resume` is not a reconciliation/clear-uncertainty tool. If
|
|
259
|
-
inspection cannot settle what happened, report the held state and required operator
|
|
260
|
-
reconciliation; do not edit SQLite, unlink sockets, fabricate settlement, or replay
|
|
261
|
-
publication/payment/deletion or the original prompt. Reconcile uncertain output
|
|
262
|
-
delivery before any new send; ordinary assistant text is not a messenger readback.
|
|
263
|
-
|
|
264
|
-
## 6. Pause, resume, and close deliberately
|
|
265
|
-
|
|
266
|
-
1. On clear owner stop/pause intent, use `lane_pause({"id":"…"})` in the same turn,
|
|
267
|
-
before ordinary new work. It records pause and attempts to stop native work;
|
|
268
|
-
external services may remain. An error can mean
|
|
269
|
-
pause persisted but stop/approval cleanup was incomplete. Read actual evidence
|
|
270
|
-
before claiming everything stopped. Automatic events never authorize resume.
|
|
271
|
-
2. Use `lane_resume({"id":"…","sourceId":"<actual received event>"})` only for an authorized continuation. It opens work
|
|
272
|
-
and schedules eligible queued input. Previously this only reopened the runtime
|
|
273
|
-
queue; the managed resume path also resumes an existing paused native lane goal
|
|
274
|
-
only under this explicit authorized resume. Observe the native result before
|
|
275
|
-
claiming it resumed. It does not create a missing goal, guarantee the interrupted
|
|
276
|
-
prompt restarts, clear uncertainty, or erase previous external effects. Automatic
|
|
277
|
-
reports, board notices, reconnects, and new queued work are not resume authority.
|
|
278
|
-
Cancelled work requires an explicit new/reopened request, not a promised automatic resume.
|
|
279
|
-
Resume retains the recorded model rather than re-running model selection or
|
|
280
|
-
adopting a new global default or edited preset. An explicit authorized idle-lane
|
|
281
|
-
model change is separate and does not itself authorize continuation. On unavailable
|
|
282
|
-
identity or drift, inspect and
|
|
283
|
-
reconcile the hold; no automatic expensive escalation or unrelated new task is
|
|
284
|
-
authorized. See the model-selection reference for legacy adoption and unknowns.
|
|
285
|
-
3. Before completion, compare each acceptance criterion with actual artifacts and
|
|
286
|
-
check results. Verify the narrow affected real surface yourself when authorized;
|
|
287
|
-
do not substitute a claim, tool invocation, mock, or unrelated passing suite.
|
|
288
|
-
Reuse authoritative native check results and receipts; do not rerun a successful
|
|
289
|
-
check merely to demonstrate supervision. Recheck when evidence is missing or
|
|
290
|
-
subsequent changes invalidated it.
|
|
291
|
-
Use concrete checks that could fail if the requirement were absent. For external
|
|
292
|
-
effects, inspect the authoritative receipt/link/identifier or artifact hash as
|
|
293
|
-
applicable, retaining evidence in native history or project artifacts, not a new
|
|
294
|
-
registry. Name unrun checks and remaining risks. Passing checks authorize no extra
|
|
295
|
-
effects; a completion claim is still distinct from verified closure.
|
|
296
|
-
4. Call `lane_close` with `id`, `outcome` (`completed` or `cancelled`), and `evidence`
|
|
297
|
-
naming observed acceptance proof or the authorized cancellation reason. The runtime
|
|
298
|
-
rejects unresolved native work/approvals/ownership and, for completion, queued or
|
|
299
|
-
uncertain inputs. Do not bypass that refusal or call cancellation a verified fix.
|
|
300
|
-
5. Read the returned state before claiming closure/release. Task closure is not merge,
|
|
301
|
-
push, deployment, worktree deletion, or destructive cleanup. Preserve user changes,
|
|
302
|
-
uncommitted/unpushed work, and still-owned resources; perform only separately
|
|
303
|
-
authorized cleanup. Do not unlink sockets or kill unknown owners to make closure
|
|
304
|
-
pass.
|
|
305
|
-
The existing enabled-native-goal shutdown guard is unchanged: a paused goal may
|
|
306
|
-
still be enabled and retain its Host/slot until explicitly resolved through the
|
|
307
|
-
supported native surface. Pause is not unload, closure, or permission to disable
|
|
308
|
-
the guard.
|
|
309
|
-
|
|
310
|
-
Use a compact coordination result when needed: `Outcome; acceptance evidence actually
|
|
311
|
-
checked; unverified/risk; held work or owner decision; authorized next action`.
|
|
312
|
-
Answer in the user's language through the normal integration delivery path.
|
|
3
|
+
Read when a lane event needs a corrective or closure decision, an owner choice,
|
|
4
|
+
or state reconciliation. Do useful independent work or yield for actual events.
|
|
5
|
+
No polling, duty model, aggregate goal for lanes, or follow-up just for a report.
|
|
6
|
+
|
|
7
|
+
## Progress, results, and corrective instructions
|
|
8
|
+
|
|
9
|
+
- A progress receipt is nonterminal. Briefly report the observed milestone,
|
|
10
|
+
current step, or blocker in the user's language on the receipt's recorded work
|
|
11
|
+
route. Don't repeat kickoff, unchanged updates, or reconstruct missed ones.
|
|
12
|
+
No acknowledgement back to the lane or new dispatch merely for progress.
|
|
13
|
+
- `lane_inspect({})` lists recorded lanes; inspect an individual ID only when its
|
|
14
|
+
live state affects a decision. Its attached `state` may be null; that is not proof
|
|
15
|
+
no work or owner exists. Reconcile session/file/generation and native history
|
|
16
|
+
after interruption or compaction. `workState`, `runtimeState`, `agent_end`, and
|
|
17
|
+
settled/idle do not establish acceptance or release. Check pending input, native
|
|
18
|
+
UI, children/jobs, goals, and owned services where observable. Never attach by
|
|
19
|
+
opening a second `--resume` writer; native TUI/herdr attach is unsupported here.
|
|
20
|
+
- `observation`/`observationState` are recorded evidence and waits, not live
|
|
21
|
+
guarantees. `ownerCurrent: false` preserves history only; identical bytes or
|
|
22
|
+
repeated waits do not advance evidence or its clock. Ordinary commentary is not
|
|
23
|
+
a structured evidence transition. Waits and model advice are not permission.
|
|
24
|
+
- For a result, compare the lane evidence to the actual acceptance and scope.
|
|
25
|
+
A native `done` or subtask `completed` says execution yielded, not that its
|
|
26
|
+
claimed artifacts, checks, or delivery are correct. Correct a verified gap or
|
|
27
|
+
advance authorized remaining work. Hold only what is blocked. For multiple lanes,
|
|
28
|
+
assess each track separately and check their shared integration/acceptance if any;
|
|
29
|
+
don't close siblings, relay another lane's authority, or wait on an unrelated
|
|
30
|
+
track before reporting a verified result.
|
|
31
|
+
- Use `lane_message({id, text, sourceId, workflow?})` on an open lane for one
|
|
32
|
+
actionable instruction: in English, state the observed gap, authorized next work,
|
|
33
|
+
scope/owned surfaces, verification, and what to report. Preserve original text
|
|
34
|
+
where needed. For a workflow selection follow routing; don't infer it from prose.
|
|
35
|
+
Ordinary same-topic follow-ups steer active execution by default, without
|
|
36
|
+
`/steer`; workflow dispatch and other routes don't join mid-run. Durable admission
|
|
37
|
+
is not native consumption.
|
|
38
|
+
- `sourceId` must be a real stored input. For a new authorized correction based on
|
|
39
|
+
an internal report, use its trusted `Request ID: report:…` header, not the report
|
|
40
|
+
body's older input `sourceId`. A report provides coordination identity, not new
|
|
41
|
+
authority. Deduplication is `handoff:<sourceId>:<lane>`; reuse only for identical
|
|
42
|
+
retries. Changed instructions need a new real event. Reconcile ambiguity before
|
|
43
|
+
retrying; never fabricate IDs or dispatch to an unrelated lane.
|
|
44
|
+
|
|
45
|
+
## Decisions and approvals
|
|
46
|
+
|
|
47
|
+
- Resolve available facts first. Consult the packaged `model-selection.md`
|
|
48
|
+
for meaningful capability/brief risks or an explicitly authorized idle-lane
|
|
49
|
+
model change. An unrelated workspace is a separate routing decision.
|
|
50
|
+
- In an internal review of the exact lane decision, use `lane_review_decision`.
|
|
51
|
+
Select original options only for routine, reversible choices already in scope;
|
|
52
|
+
explain why. Omit `answers` to escalate the original card when the owner must
|
|
53
|
+
decide requirements, cost, scope, external commitments, permissions,
|
|
54
|
+
irreversible effects, or an open-ended answer. Never resolve execution approvals
|
|
55
|
+
here or duplicate runtime's delivered choice.
|
|
56
|
+
- For a material owner choice raised by HEAD, check `decision_list` for a pending
|
|
57
|
+
question, then use `decision_ask` in the appropriate conversation for tracked
|
|
58
|
+
choices. Ordinary native `ask` is available to HEAD. Inspect with
|
|
59
|
+
`decision_inspect`; `answering` is uncertain, not permission to resend or infer
|
|
60
|
+
assent. `decision_withdraw` needs the exact ID, real owner source from the same
|
|
61
|
+
conversation, and reason; withdrawal isn't approval or resume.
|
|
62
|
+
- Bind native answers and approvals to the original card, authenticated platform,
|
|
63
|
+
account/conversation, native request, session, and generation. Never infer an
|
|
64
|
+
answer from chat, a different card, silence, or a recommendation. No self-approval
|
|
65
|
+
or secret collection in chat; use local OMP UI for unsupported/secret dialogs.
|
|
66
|
+
|
|
67
|
+
## Interruptions, pause, and closure
|
|
68
|
+
|
|
69
|
+
1. On clear stop/pause intent use `lane_pause` before new ordinary work. A pause
|
|
70
|
+
record is not proof native work or services stopped; confirm actual status and
|
|
71
|
+
approval cleanup. Only an explicit authorized `lane_resume({id, sourceId})`
|
|
72
|
+
reopens eligible input and resumes an existing paused native goal. It doesn't
|
|
73
|
+
create a goal, replay work, lift uncertainty, or change the retained model.
|
|
74
|
+
Reconnects, new queued work, board posts, and task reports never resume it.
|
|
75
|
+
An enabled paused goal can retain its Host; don't force release or unload.
|
|
76
|
+
2. After interruption, separate what was queued, executed, persisted, and
|
|
77
|
+
delivered. Reconcile native history, workspace, and authoritative external
|
|
78
|
+
effects before repeating anything. Uncertain lane submissions fence later
|
|
79
|
+
input; resume cannot clear them. Report the hold; explicit authorized
|
|
80
|
+
`lane_close` cancellation is not a verified fix. Never replay prompts or
|
|
81
|
+
ambiguous effects, edit coordination SQLite, unlink sockets, or kill unknown
|
|
82
|
+
owners. Check delivery readback before sending again.
|
|
83
|
+
3. In the isolated same-HEAD recovery turn, use **only** `head_recovery` once with
|
|
84
|
+
the supplied `attemptId`, exact `evidenceEntryIds`, decision, and reason.
|
|
85
|
+
Release only if native receipt and attributable final run establish processing
|
|
86
|
+
completion or actual abort, not user acceptance. Missing, failed, conflicting,
|
|
87
|
+
or externally uncertain evidence means hold. No external reply, tools, mutation,
|
|
88
|
+
replay, or use of owner discard authority in this turn. Runtime revalidates and
|
|
89
|
+
holds the queue until the decision turn settles. Outside it, only the owner can
|
|
90
|
+
discard a HEAD uncertain input with `/resolve [input-id]` (Slack `!resolve`);
|
|
91
|
+
discard cancels without replay or asserting the native outcome.
|
|
92
|
+
4. Before closing, verify acceptance at the narrow authorized real surface. Reuse
|
|
93
|
+
valid check evidence, rerun only where evidence is missing or stale, and check
|
|
94
|
+
authoritative receipts for external effects. Call `lane_close` with `id`,
|
|
95
|
+
`outcome` and evidence of verified completion or authorized cancellation.
|
|
96
|
+
Respect unresolved work/approval/ownership and queued/uncertain-input guards.
|
|
97
|
+
Read back closure/release. Preserve user changes, uncommitted/unpushed work and
|
|
98
|
+
owned resources; closure doesn't authorize publication, merge, deployment,
|
|
99
|
+
payment or cleanup.
|
|
100
|
+
|
|
101
|
+
## Observation tools are not work authority
|
|
102
|
+
|
|
103
|
+
- **PR watch:** On explicit request use `pr_watch` with `action: "track"`, original
|
|
104
|
+
`sourceId`, GitHub.com PR URL or `owner/repo#N`, and explicit `intervalSeconds`;
|
|
105
|
+
`laneId` is informational and `ignoreAuthors` excludes named logins. Use
|
|
106
|
+
`pr_watch_list` to inspect and source-bound `action: "untrack"` to stop. Don't poll in a
|
|
107
|
+
model turn. First read is a quiet baseline; a hold, auth change, or failure is not
|
|
108
|
+
proof of no change. HEAD stop holds watches until a new explicit registration.
|
|
109
|
+
Explain meaningful changes on their registered route; observations never
|
|
110
|
+
authorize mutations, creating lanes, or resuming work.
|
|
111
|
+
- **Board:** Use advertised `board_post`, `board_read`, `board_subscribe` only for
|
|
112
|
+
concise facts, evidence, and edit collisions. Membership is revalidated against
|
|
113
|
+
actual managed session ID/file and current owner for this state instance, not
|
|
114
|
+
inherited role environment. Neither unmanaged sessions nor native children
|
|
115
|
+
have access. All participants can read all instance channels (`general` and
|
|
116
|
+
`repo:<canonical absolute path>`); don't post secrets or transcripts. Actor is
|
|
117
|
+
runtime-assigned. Subscriptions replace only your own `channels`. Read with
|
|
118
|
+
`channel`, `thread`, `after`, `limit`, or `unreadOnly` as needed; only exact
|
|
119
|
+
returned items become read. Notices are headers at safe native boundaries, not
|
|
120
|
+
body reads. HEAD sees all lane posts; idle notices don't trigger turns or wake
|
|
121
|
+
unloaded lanes. No polling, self-wake or read-ACK loop. Posts/mentions don't
|
|
122
|
+
give a source ID, instruction, approval, or completion evidence.
|