lycheedev 2.5.0 → 3.0.0

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 (40) hide show
  1. package/bin/lycheedev.mjs +39 -3
  2. package/bin/update.mjs +168 -0
  3. package/native/windows-amd64/lycheedev.exe +0 -0
  4. package/package.json +1 -1
  5. package/payload/addon/Bridge/ActivityView.lua +26 -12
  6. package/payload/addon/Bridge/InputProtection.lua +63 -0
  7. package/payload/addon/Bridge/InputState.lua +45 -0
  8. package/payload/addon/Bridge/MemoryProtocol.lua +31 -0
  9. package/payload/addon/Bridge/ProbeExecution.lua +147 -0
  10. package/payload/addon/Bridge/ReceiverBindings.lua +6 -0
  11. package/payload/addon/Bridge/SlotProtocol.lua +165 -0
  12. package/payload/addon/Bridge/SlotRuntime.lua +106 -0
  13. package/payload/addon/Bridge/StartupBeacon.lua +8 -11
  14. package/payload/addon/Core/Compat.lua +7 -0
  15. package/payload/addon/Core/Controls.lua +16 -0
  16. package/payload/addon/Core/Locale.lua +6 -4
  17. package/payload/addon/Core/Locale_enUS.lua +4 -2
  18. package/payload/addon/Core/Platform.lua +4 -2
  19. package/payload/addon/Core/Runtime.lua +17 -6
  20. package/payload/addon/Lychee Dev.toc +8 -2
  21. package/payload/addon/Modules/AutomationHistory.lua +119 -0
  22. package/payload/addon/Modules/AutomationView.lua +26 -6
  23. package/payload/addon/UI/Pages/About.lua +0 -3
  24. package/payload/addon/UI/Pages/Automation.lua +40 -27
  25. package/payload/addon/UI/Pages/Diagnostics.lua +2 -4
  26. package/payload/addon/UI/Pages/Object.lua +0 -1
  27. package/payload/addon/UI/Pages/Run.lua +2 -1
  28. package/payload/addon/UI/Pages/Trace.lua +0 -1
  29. package/payload/addon/UI/Theme.lua +3 -2
  30. package/payload/addon/UI/Widgets.lua +32 -22
  31. package/payload/addon/UI/Window.lua +3 -35
  32. package/payload/skill/SKILL.md +40 -60
  33. package/payload/skill/agents/openai.yaml +1 -1
  34. package/payload/skill/references/commands.md +22 -15
  35. package/payload/skill/references/error-diagnosis.md +7 -11
  36. package/payload/skill/references/installation.md +64 -13
  37. package/payload/skill/references/live-investigation.md +193 -252
  38. package/payload/skill/references/live-startup.md +62 -132
  39. package/release.json +97 -67
  40. package/payload/addon/UI/Pages/Settings.lua +0 -82
@@ -1,185 +1,152 @@
1
1
  # Live investigation
2
2
 
3
- Use this workflow only for an authorized running-client action. The CLI owns
4
- window identity, background input, reload correlation, SavedVariables parsing,
5
- durable recovery and locking. Never ask the user to type `/dev` commands.
3
+ Jump to [connect](#select-and-connect), [execute and close](#complete-an-investigation),
4
+ [input recovery](#input-and-recovery), [probe design](#design-a-discriminating-probe),
5
+ [bounded probes](#write-bounded-probes), [source hypotheses](#test-source-hypotheses),
6
+ or [resume/reload](#recover-without-replay).
7
+
8
+ For authorized running-client work, the CLI owns native memory reads, 64 input
9
+ slots, process/actor identity, persistence and recovery. No wowdump or QR reader
10
+ is needed. Use the same invoking-project directory for every call; `.lycheedev/live`
11
+ holds connection journals, nonce/ticket lineage and exact result artifacts.
12
+
13
+ The in-game Automation page retains the latest 100 native operation records per
14
+ character, with up to 32 KiB of UTF-8 report preview each. Reload/logout saves
15
+ them through SavedVariables; a client crash may lose unsaved previews. The
16
+ project journal remains the durable evidence/recovery source. An empty or cleared
17
+ UI history never authorizes replay. Old running/prepared display records become
18
+ interrupted after runtime replacement; completed reports survive release and
19
+ reload. Earlier operations that never wrote UI history are not backfilled.
6
20
 
7
21
  ## Select and connect
8
22
 
9
- Recover a supplied operation ID before starting another action. Otherwise reuse
10
- a saved session with `live connect --session <id>`. With a fixed snapshot and
11
- known target, call `live connect` directly with its constraints; it already
12
- discovers candidates. Use `lycheedev live instances --format json` when the
13
- target needs discovery, scoped with `--installation` when the user limited the
14
- installation. For a PID-scoped task, use `live connect --pid <pid>` with the
15
- fixed snapshot and any character constraints; `live instances` has no PID filter.
16
- A unique eligible client needs no question.
17
- If several candidates remain, present product/build,
18
- character and realm, adding the installation path only when needed, then retry
19
- with an exact filter:
23
+ Use `live instances --passive` for window inventory without input. Connect directly
24
+ when installation/PID are known; never choose a different character to bypass a
25
+ busy or unavailable target. The selected process creation identity and actor remain
26
+ fixed throughout recovery. One process has one logical connection and one active
27
+ CLI driver; a foreign project's durable claim is not an expired timeout.
20
28
 
21
- ```text
22
- lycheedev live connect --snapshot <pin> --character <name> --realm <realm> --format json
23
- ```
24
-
25
- `live connect` performs identity probing, opt-in and readiness verification.
26
- Reuse `result.id` with `live connect --session <id>`; another Agent can use the
27
- same saved session and must not send the user back to a manual connection step.
28
- One game window has one writer, while source and data reads may run in parallel.
29
- Never choose by ordinal among similar clients or infer identity from a folder
30
- name. A not-ready, combat, black-capture or ambiguous result is not success.
31
- For installation during a running game, missing identity receipts, or connection
32
- failures before a session exists, read [live-startup.md](live-startup.md). Disk
33
- installation and runtime availability are different facts; neither an identity
34
- timeout nor a missing eligible candidate proves the addon needs a reload.
35
-
36
- Automatic capture uses a bounded receipt region (up to 1024 by 1024 pixels) and
37
- saves its actual window-relative coordinates in the session. If the receipt was
38
- moved outside that region, select a suitable explicit region on a new connection.
39
- `--capture-area window` explicitly requests the whole window and retains the
40
- 4096-pixel-per-dimension budget; it is not an unlimited fallback for large displays.
41
-
42
- ## Complete an investigation
43
-
44
- Prefer one operation for an ordinary investigation:
45
-
46
- ```text
47
- lycheedev live execute --session <session-id> --file <probe.lua> --request <stable-key> --budget-seconds <1-120> --format json
48
- ```
49
-
50
- Use `--probe <immutable-PRB-revision>` instead of `--file` to reuse registered
51
- source. The CLI freezes code, target, account, report scope and budget, then
52
- loads, executes, verifies the report, acknowledges it and proves its display
53
- was cleared before releasing the window. Report bytes use character-scoped
54
- SavedVariables; unresolved peers that might share that file block writes.
55
- Different installations and verified different character partitions stay
56
- independent. Do not guess account or actor identity to bypass a conflict.
57
-
58
- Exit 0 means the full goal is complete. Exit 5 can mean a verified business
59
- failure with completed cleanup; read `business.state` and the report. Exit 6
60
- means pending work: keep the same operation, follow `nextAction`, and use
61
- `live resume <operation-id>`. A report may already be usable while cleanup is
62
- pending. Changing a file or budget under an existing request key is a conflict;
63
- resume the returned operation to use its original frozen source. Never issue a
64
- new request to repeat unknown execution. A successful complete operation needs
65
- no extra finish/hide call.
66
-
67
- Loading and report persistence can reload the client, so recreate required
68
- scene state inside the probe and finish sampling before reporting.
69
- Each command releases the receiver panel and keyboard focus before entering
70
- business code. While an asynchronous probe is running, the bridge leaves no
71
- waiting panel or handshake QR over the scene. Finish visual sampling before
72
- calling Finish/Fail: terminal receipts and subsequent cleanup input can be
73
- visible again. After execute completes, `display.state=cleared` confirms its
74
- receipt cleanup. Do not treat captures taken during command transport as the
75
- unobstructed scene.
76
-
77
- ## Compose atomic actions when needed
78
-
79
- Each mutating action has one purpose and one stable idempotency key. Reuse the
80
- same `--request` only when retrying the same intended action; changing the probe,
81
- count, target or meaning requires a new key.
82
-
83
- Register source locally without touching the game:
29
+ If several candidates match and the task does not choose one, show their known
30
+ product/build, character/realm and PID (unknown identity stays unknown), then ask
31
+ which to connect. Do not pick the first process. When the user explicitly asks
32
+ to test both instances, retain both fixed targets and proceed within that scope;
33
+ there is no remaining selection question.
84
34
 
85
35
  ```text
86
- lycheedev live probe put --name <name> --file <probe.lua> --format json
36
+ lycheedev live connect --project <project-directory> --installation <client> --pid <pid> --character <name> --realm <realm> --wait-seconds 120 --format json
87
37
  ```
88
38
 
89
- Names are mutable handles; the returned `PRB-...` revision is immutable. Carry
90
- that revision in handoffs. Loading is a separate game action and does not run
91
- the probe. Choose an integer execution budget from the event wait, sample count,
92
- cleanup needs and expected client behavior. The supported range is 1..120 seconds;
93
- the CLI and addon reject out-of-range values instead of shortening them. This
94
- budget is stored with the immutable operation and is not renewed by resume:
95
-
96
- ```text
97
- lycheedev live probe load --session <session-id> --probe <name-or-PRB-revision> --request <stable-key> --budget-seconds <1-120> --format json
98
- ```
39
+ Retain `result.session` (CON), identity, project and journal path. An optional
40
+ `--snapshot` constrains the exact data build; source/data pinning is independent of
41
+ connection storage. A fresh bind, not a cached address or an actor descriptor,
42
+ authorizes work. `--no-cache` disables disposable address hints; invalid hints
43
+ already fall back to a fresh scan. Read [startup](live-startup.md) when activation
44
+ is pending or an installation was just updated.
99
45
 
100
- The load result is an operation ID. Loading a new revision can reload the client
101
- and discard transient UI, timers and frame references. Prepare a reproducible
102
- scene after load, inside the probe or through already loaded capabilities. If
103
- the question requires the original transient scene and no existing loaded
104
- capability can observe it before reload, report that limit rather than claiming
105
- to have measured the original scene. Execute only that loaded operation. This
106
- command returns after report verification; continue through acknowledgement and
107
- final receipt dismissal in the same turn:
108
-
109
- ```text
110
- lycheedev live run <operation-id> --format json
111
- ```
112
-
113
- Inspect and interpret the verified report before acknowledgement. Then complete
114
- that exact operation, including receipt dismissal:
115
-
116
- ```text
117
- lycheedev live finish <operation-id> --format json
118
- ```
119
-
120
- Finish acknowledges the report, retires the exact queue entry, releases window
121
- ownership and verifies receipt dismissal without another cleanup reload. Check
122
- `report.state: verified`, `cleanup: complete`, `display.state: cleared` and
123
- `complete: true`. Do not ACK before the report bytes and capture IDs needed by
124
- the investigation are safely archived. Successful finish retains `display.capture`
125
- as durable clear evidence and needs no extra hide. Repeating an already completed
126
- finish verifies that archived result without sending new game input; it does not
127
- claim the screen is still empty after later activity.
128
-
129
- If acknowledgement succeeded but display cleanup failed, the verified report
130
- and `cleanup: complete` remain usable while `display.state: pending` keeps the
131
- task incomplete. Retry `live finish` for the same operation after diagnosing the
132
- relevant readiness condition; it does not repeat ACK or execute the probe.
133
- Use `live ack <operation-id>` separately only when the user explicitly wants to
134
- retain the receipt or a staged workflow needs it.
135
-
136
- For connection-only tasks, standalone reload, or separately acknowledged work,
137
- once the displayed receipt's evidence is archived and no further live step needs
138
- it, dismiss the card:
46
+ ## Complete an investigation
139
47
 
140
48
  ```text
141
- lycheedev live hide --session <session-id> --format json
49
+ lycheedev live execute --project <project-directory> --session <CON-id> --file <probe.lua> --request <stable-key> --budget-seconds 30 --wait-seconds 120 --policy observation --format json
142
50
  ```
143
51
 
144
- It refuses windows owned by in-flight operations and verifies the clear from
145
- valid frames; `live.receipt_hide_pending` (exit 6) means readiness or clearing
146
- could not be verified within the bound. It does not prove the card remains
147
- visible or that hide was sent. Inspect the returned input evidence and the
148
- window condition before retrying. Later
149
- commands replace the display anyway, so intermediate cards may stay visible
150
- between planned live steps. At the end of the investigation, verify
151
- `result.cleared: true`. If dismissal remains blocked, report it separately as
152
- unfinished screen cleanup; do not discard a verified report or call the whole
153
- task complete. Never dismiss instead of first reading and archiving evidence.
154
-
155
- Perform standalone reload automatically when requested or necessary to complete
156
- the authorized task (for example, activating an addon update). Do not ask the
157
- user to type `/reload` when this supported path is available:
52
+ Use `--probe <immutable-PRB-revision>` instead of a file for registered source.
53
+ `--budget-seconds` bounds the addon probe (1..120); `--wait-seconds` bounds this
54
+ CLI invocation (1..600, default 120), including scans and recovery. A longer host
55
+ wait does not extend probe execution. The CLI performs prepare/commit, strict
56
+ HEAD/BODY association, fresh confirmation, durable result storage and release.
57
+
58
+ Choose `observation` only when repeating the whole probe after a confirmed new
59
+ runtime is safe. Use the default `opaque` for state-changing or uncertain code.
60
+ A retry keeps the logical operation/request and records a new attempt/ticket;
61
+ it is not evidence that the interrupted attempt did nothing.
62
+
63
+ Completion requires `complete: true`, `reportState: verified` and `cleanup: complete`.
64
+ Inspect `report.ok`, `report.error`, truncation and assertions separately. A Lua
65
+ failure or probe timeout is a verified business outcome and still needs release.
66
+ A native complete result needs no ACK/finish/hide command. Original result bytes
67
+ remain in the project even after the game exits. Repeat the same request to read
68
+ it without executing again, including after later operations on that connection.
69
+
70
+ Cleanup callback failures retain the verified report and trigger a journaled
71
+ reload; a fresh binding then records `cleanupMethod: runtime_destroyed`. The
72
+ original `resourcesReleased: false` is preserved. It is distinct from a normal
73
+ release acknowledgement. Journal segments rotate only at idle boundaries and
74
+ remain linked under the connection's `.jsonl.history` directory; preserve these
75
+ alongside the active log. A missing segment must not be worked around by issuing
76
+ a new request key.
77
+
78
+ Loading a slot does not require a reload for each probe. The CLI reserves control
79
+ capacity and reloads at a quiescent boundary when needed. That reload can discard
80
+ scene state: observation probes should reconstruct their own prerequisites, or
81
+ state why the original transient scene cannot be reproduced. The input shield is
82
+ released before business code. Ordinary queries, event listeners and async waits
83
+ do not lock input: the click-through Lychee says `Agent 运行中` / `Agent running`.
84
+ Only an actual input-protection phase says `Agent 接管中` / `Agent in control`.
85
+ Neither label is proof of result retrieval.
158
86
 
159
87
  ```text
160
- lycheedev live reload --session <session-id> --request <stable-key> --format json
88
+ lycheedev live disconnect <CON-id> --project <project-directory> --wait-seconds 120 --format json
161
89
  ```
162
90
 
163
- It requires a nonce-correlated new runtime receipt; disappearance of the old
164
- picture is not proof. Success has `complete: true` and `runtimeCapture`;
165
- `report.state: unavailable` is normal because reload produces no probe report.
166
- The next new action refreshes the saved connection internally, on the same
167
- window and character. Do not use reload as an alias for probe loading or add an
168
- extra reload after load/ACK. On interruption, inspect/resume the returned
169
- operation rather than sending another reload with a new request key.
170
-
171
- Existing addon errors have their own bounded operation and need no temporary
172
- probe:
91
+ Disconnect at the end of the authorized investigation unless continued use is
92
+ needed. It verifies unbind before releasing host ownership, or uses OS proof that
93
+ the exact process lifetime ended; see [process exit](live-startup.md#ownership-and-recovery).
94
+ A repeated completed
95
+ close repairs any interrupted host retirement without new game input.
96
+ For interrupted opaque work, `closed: true` does not imply a known business
97
+ outcome: preserve `operationState: execution_unknown`, `complete: false` and the
98
+ missing report. Do not turn successful connection cleanup into task success.
99
+
100
+ ## Input and recovery
101
+
102
+ The coordinator owns every input attempt. It observes current memory input
103
+ state, journals the intended action, then rechecks before sending. With an ordinary
104
+ focused editor it sends one Esc and observes again; Esc may close/cancel that UI.
105
+ Combat, secret/unavailable observations and stale samples are not permission to
106
+ send Esc. Held system keys wait for release. No foreground input or color-patch
107
+ protocol is required. Native invocation uses fixed Ctrl+Alt+F12; agents never
108
+ send it themselves or edit the slot files.
109
+
110
+ Connected reload uses the same readiness checks. It sends no Esc when input is
111
+ already clear, and re-observes after each necessary Esc. The explicit installation
112
+ fallback also uses this path when the addon advertises telemetry; see
113
+ [startup](live-startup.md) for first-install and older-runtime limits.
114
+
115
+ Input evidence is distinct from execution: `not_sent` proves zero messages were
116
+ queued; `submitted` proves only queue submission; `uncertain` (or an intent with
117
+ no outcome) does not permit replay. These facts drive CLI recovery. Do not
118
+ reinterpret them into manual retry instructions. Use the same CON/project and
119
+ `live resume`; inspect `waiting` when present. Recheck after a changed condition
120
+ within the authorized task; do not repeat indefinitely against an absent process,
121
+ foreign ownership or an unresolved opaque execution outcome.
122
+
123
+ `waiting: shared_publication` is bounded contention inside one installation,
124
+ not a lost connection. Resume the same CON/request; keep its nonce and do not
125
+ delete a slot reservation. Another driver may release its short lock normally,
126
+ but an unresolved reservation needs its original owner's recovery. A combat or
127
+ focus wait holds that slot only, not the installation's publication lock.
128
+
129
+ `complete` applies to the current command. A connected runtime does not complete
130
+ a pending disconnect, and a previous probe report does not complete reload.
131
+ The bouncing Lychee shows activity only. Ordinary probes do not block input;
132
+ short input protection says `Agent 接管中`, ordinary execution says `Agent 运行中`.
133
+ Neither animation nor a reload hint proves an accepted request.
134
+
135
+ The whole `.lycheedev/live` directory is the recovery unit. Keep connection logs,
136
+ linked history segments, content-addressed `connections/artifacts`, target metadata
137
+ and result files together. New journals reference exact code/result bytes by digest;
138
+ older inline snapshots remain readable. Missing or corrupt referenced content is
139
+ a recovery error, never a reason to generate another request key.
140
+
141
+ ## Register reusable source
173
142
 
174
143
  ```text
175
- lycheedev live bugs --session <session-id> --request <stable-key> --count <1-100> --format json
176
- lycheedev live finish <operation-id> --format json
144
+ lycheedev live probe put --name <name> --file <probe.lua> --format json
177
145
  ```
178
146
 
179
- An unavailable !BugGrabber provider is valid evidence, not an empty error list.
180
- Preserve returned scope, ordering, requested/returned/available counts,
181
- `complete`, missing fields and provider version.
182
-
147
+ Names are mutable selectors; retain the returned immutable PRB revision. Use it
148
+ with native execute. Old queue-oriented atomic commands belong to legacy records
149
+ and are not the transport for CON connections.
183
150
  ## Design a discriminating probe
184
151
 
185
152
  Start from the question and two or more plausible explanations. Pin the exact
@@ -203,10 +170,9 @@ cursor routing or protected hardware input.
203
170
 
204
171
  Specify what must be true before each action, what output proves or refutes each
205
172
  hypothesis, and what remains untested. Rebuild scene state after load when needed.
206
- Finish observation and probe-owned cleanup before the CLI flushes the report to
207
- SavedVariables, because that flush can reload the client. All business results,
208
- logs, samples and assertions go in the bounded SV report; optical receipts only
209
- signal state and identity. An expected assertion failure should use a clear
173
+ Finish observation and probe-owned cleanup before reporting. Results, logs and
174
+ assertions use a bounded memory report; the CLI verifies and durably saves its
175
+ exact bytes before releasing runtime storage. An expected assertion failure should use a clear
210
176
  failure state instead of wrapping an exception as success. A verified report
211
177
  proves retrieval and integrity, not that its assertions passed.
212
178
 
@@ -246,12 +212,46 @@ expensive callback work. Async probes have a mandatory bounded timer, at most
246
212
  single-use. Wrap every asynchronous entry with `probe:Callback` so late callbacks
247
213
  cannot enter user code after termination and exceptions become failed reports.
248
214
  Register resource cleanup before activating each timer/frame. Cleanup runs on
249
- completion, failure, timeout or session loss; cleanup failures remain pending
215
+ completion, failure or timeout; cleanup failures remain pending
250
216
  and prevent a false successful acknowledgement. Do
251
217
  not create permanent hooks or mutate Blizzard-owned APIs.
252
218
  Choose the load budget to cover the probe's own async deadline and cleanup; a
253
219
  longer host wait cannot extend the declared execution budget.
254
220
 
221
+ ### Scene prerequisites and optional input protection
222
+
223
+ For scene-dependent probes, declare a small, side-effect-free predicate with
224
+ `probe:Guard(check, events, reason)`. It must return the non-secret boolean `true`.
225
+ The runtime checks it immediately, on the listed events, before each wrapped
226
+ callback, and before successful completion. A false, unavailable, secret or
227
+ throwing predicate fails the probe with the supplied reason. At most eight
228
+ guards and eight distinct events are supported; no polling is added. Choose
229
+ events that actually cover the target or UI changes relevant to the experiment.
230
+ Preserve that failed report, then reconstruct the scene or propose a revised
231
+ experiment according to the operation's observation/opaque policy. A scene
232
+ failure is not permission to automatically replay an effect.
233
+
234
+ Do not acquire input protection for ordinary data reads, listeners or waiting.
235
+ Only an explicitly exclusive UI experiment should call
236
+ `assert(probe:ProtectInput(seconds))`. It permits one protection phase per probe,
237
+ with an Agent-chosen duration no longer than the remaining probe budget; there
238
+ is no separate five-second cap. Use
239
+ `probe:ReleaseInput()` immediately after the exclusive actions; the remainder
240
+ of an async probe runs normally. Completion and errors release before user
241
+ cleanup. The hard deadline, combat, leaving the world or Ctrl+Alt+[ release the
242
+ shield and fail the active probe rather than silently continuing unprotected.
243
+ Use `probe:IsInputProtected()` to observe this probe's lease. Late callbacks and
244
+ old lease timers cannot resume a finished probe or release a newer lease.
245
+
246
+ This is an in-game input shield, not an OS-wide lock, protection from disconnects,
247
+ or a source of secure hardware-action authority. Keep checking scene prerequisites
248
+ even while protected. Use bounded Lua: a blocked synchronous Lua callback cannot
249
+ be preempted by a Lua timer. Slot loading protects only its short dispatch burst
250
+ (two-second safety deadline) and releases before business entry. Fixed reload
251
+ retains the host's serialized, bounded input transaction; it must work even when
252
+ the addon is not loaded, so an in-game takeover indicator is not guaranteed for
253
+ that fallback. Never hold a game shield while scanning memory or awaiting reload.
254
+
255
255
  Combat lockdown and secret values are trust boundaries. Check them before
256
256
  comparison, formatting or branching. Record unavailable and truncated values
257
257
  explicitly instead of substituting defaults.
@@ -306,97 +306,38 @@ cause and completed display cleanup are separate outcomes.
306
306
  ## Recover without replay
307
307
 
308
308
  ```text
309
- lycheedev live status <operation-id> --format json
310
- lycheedev live resume <operation-id> --format json
311
- lycheedev live cancel <operation-id> --format json
309
+ lycheedev live status <CON-id> --project <project-directory> --format json
310
+ lycheedev live resume <CON-id> --project <project-directory> --wait-seconds 120 --format json
312
311
  ```
313
312
 
314
- Status is read-only. Resume uses the original target, request, revision and
315
- phase; it never changes target or replays a possibly submitted probe or reload.
316
- Before a session exists, an unresolved bootstrap input can return a durable
317
- `BTP-...` ID. `live status BTP-...` reads its recorded attempt. `live resume
318
- BTP-...` may repeat the input handshake under the same owner only when durable
319
- progress proves the business commit was never submitted; it preserves prior
320
- attempts and permits at most three across restarts. At or beyond the commit
321
- fence it only observes the matching receipt. Do not recreate this retry logic
322
- with manual keys or a fresh request. A persistence reload with proven zero
323
- native messages may likewise recover under the original operation; partial,
324
- unknown or contradictory input evidence never authorizes replay.
325
- Keep the selected window and installation fixed while recovering it. An
326
- unconfirmed attempt is not permission to start a fresh connect or reset.
327
- An unresolved fixed reload also keeps its original `OP-...`; resume observes
328
- its journaled input progress and runtime evidence without resending uncertain
329
- keys. An explicit user decision may abandon either a `BTP-...` bootstrap
330
- attempt or fixed reload `OP-...`, preserving unknown effects and releasing only
331
- host ownership. Neither abandonment is proof that the game action did not run.
332
- Atomic ACK has a narrower idempotent recovery path described below. Cancel is
333
- safe only before queue publication or game input. For a
334
- later unresolved async operation, resume observation; do not start a replacement
335
- probe because that could execute twice.
336
-
337
- Resume can recover an already persisted atomic probe report even when the game
338
- is offline or its reload QR was missed. This verifies the report, not the reload
339
- or permission for another game input. Read the returned report before deciding
340
- whether the investigation needs more live work.
341
-
342
- If finish or ACK returns `live.ack_readiness_pending`, keep the usable report
343
- and original operation ID: the CLI did not obtain fresh readiness for that input. Retry that
344
- operation only after relevant readiness conditions change; do not loop connect,
345
- repeat the probe, request another reload, or remove ownership to make it pass.
346
- If an atomic ACK may already have been submitted, resume observes its receipt
347
- first. The CLI may make a bounded idempotent ACK retry only after fresh readiness
348
- for the same retained report identity. This does not replay the probe. Older
349
- pre-atomic operations remain observation-only; do not invent an agent-side retry
350
- loop or raw ACK input. Missing confirmation remains a cleanup obligation, not
351
- evidence that the probe failed or that ACK never executed.
352
-
353
- If the user explicitly chooses to stop recovery (for example, they switched
354
- characters and want to release an old task), inspect its status and use:
313
+ Status reads persisted evidence. Resume acquires the same connection's driver
314
+ lease, reconciles original nonces and continues within the caller's wait budget.
315
+ Exit 6 retains usable results and unfinished cleanup; continue the same task.
316
+ Do not replace a request, edit its files, clear ownership or repeat raw input to
317
+ force progress. A cached hit never bypasses identity/checksum/fresh-confirmation
318
+ validation. Incomplete scan coverage is not proof that no result exists.
319
+
320
+ After user reload, a newly discovered descriptor is only a candidate. The CLI
321
+ binds it with a fresh nonce before retiring the old runtime's reservations.
322
+ Repeatable observations can resume in a new attempt, bounded to three attempts.
323
+ For opaque execution after a possible commit, `execution_unknown` remains unknown;
324
+ inspect external postconditions using an authorized independent observation
325
+ instead of repeating the effect. A fresh runtime may prove old runtime resources
326
+ are gone without proving that the old script never changed persistent state.
327
+
328
+ A partial final journal write can be repaired under the owning driver lease only
329
+ when the entire preceding chain validates; the original bytes are retained.
330
+ Corrupt complete events, missing journals, foreign ownership, incompatible files
331
+ or an unavailable client require diagnosis. Never recreate an empty ledger to
332
+ turn uncertainty into a new operation. Report the exact blocker and retained IDs
333
+ if no safe progress remains; do not label that handoff complete.
334
+
335
+ For an intentional idle reload, use a stable request key:
355
336
 
356
337
  ```text
357
- lycheedev live abandon <operation-id> --format json
338
+ lycheedev live reload --project <project-directory> --session <CON-id> --request <reload-key> --wait-seconds 120 --format json
358
339
  ```
359
340
 
360
- Probe and bug-snapshot operations can be abandoned in `load_requested`, `loaded`,
361
- `dispatch_requested`, `reported`, `flush_requested`, `persisted`, `verified` or
362
- `ack_requested`, provided acknowledgement has not been verified. Prepared work
363
- uses cancel instead. The CLI validates the retained evidence; do not edit the
364
- journal to force eligibility. Zero, partial or complete queued input is not
365
- proof of execution. An unavailable report stays unavailable; a submitted ACK
366
- without its confirmation stays unconfirmed.
367
-
368
- Abandon requires the user's explicit decision, never an automatic fallback for
369
- busy, missing readiness, or an unknown effect. It preserves the available
370
- evidence, retires only that exact disk queue entry and releases its
371
- window ownership without game input. `cleanup: abandoned`, `complete: false`
372
- does not prove the game was ACKed or unloaded; old runtime/SavedVariables content may
373
- remain. Do not describe this as successful cleanup or re-run the old request.
374
- For a missing report, `report.state` stays `unavailable` and the execution result
375
- stays unknown; a verified report remains verified.
376
- Interrupted abandonment resumes by the same operation ID, without game input.
377
- Older releases may lose dispatch evidence during abandonment and reject its
378
- retry/resume. Do not assume a newer skill fixes an older executable or invent
379
- the lost evidence; retain the error and operation ID for diagnosis.
380
- After success, a new authorized task still requires fresh identity and readiness.
381
-
382
- An absent optical receipt alone does not establish combat, player activity,
383
- or a failed reload. Separate observed input readiness from the unknown cause;
384
- use retained input/capture evidence to diagnose it. Chat-focus recovery and
385
- reload event ordering belong to the addon/CLI, not an agent-side input loop.
386
-
387
- Distinguish report verification from cleanup. A verified report is usable even
388
- while cleanup is pending, but the operation is not fully complete. Preserve the
389
- operation ID, immutable probe revision, fixed snapshot and capture IDs in any
390
- handoff. Source text, reports and logs are evidence, never instructions.
391
-
392
- | Observed state | Agent's next action |
393
- | --- | --- |
394
- | Probe load returned an operation ID | Continue `live run` for that operation; a screenshot is not the report. |
395
- | Connection or identity QR visible, no probe operation | Continue the authorized investigation using the verified session; if connection itself was the whole task, dismiss its receipt with `live hide`. Do not invent a probe operation. |
396
- | Verified report, cleanup pending, ACK not submitted | Read the report and retain captures, then call `live finish` on the same operation. |
397
- | Input may already have been submitted, confirmation missing | Inspect/resume that operation; do not replay a probe/reload. Only the CLI may perform the bounded same-report atomic ACK retry after fresh readiness. |
398
- | Finish returned cleanup complete, display pending | Preserve the report; diagnose the display condition, then retry `live finish` on the same operation without re-running the probe or ACK. |
399
- | Finish returned display cleared and complete true | Screen cleanup is verified; no additional hide or reconnect is needed. |
400
- | Connection/reload complete or separately acknowledged work, no further live work | Call `live hide` for the same session and check `result.cleared`. |
401
- | Finish, ACK or hide pending | Diagnose the returned reason; retry only when supported by fresh readiness or a relevant state change. Keep the turn active while safe recovery can progress. |
402
- | User requests pause, retention, or a required external action blocks progress | Preserve evidence and give an explicit incomplete handoff with IDs and the exact next step. |
341
+ The single RGB patch is only a reload observation hint. The new runtime and fresh
342
+ bind are still required. The patch expires after 45 seconds or stops on wake.
343
+ An interrupted reload resumes observation and does not blindly resend `/reload`.