lycheedev 2.5.1 → 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 (37) hide show
  1. package/native/windows-amd64/lycheedev.exe +0 -0
  2. package/package.json +1 -1
  3. package/payload/addon/Bridge/ActivityView.lua +26 -12
  4. package/payload/addon/Bridge/InputProtection.lua +63 -0
  5. package/payload/addon/Bridge/InputState.lua +45 -0
  6. package/payload/addon/Bridge/MemoryProtocol.lua +31 -0
  7. package/payload/addon/Bridge/ProbeExecution.lua +147 -0
  8. package/payload/addon/Bridge/ReceiverBindings.lua +6 -0
  9. package/payload/addon/Bridge/SlotProtocol.lua +165 -0
  10. package/payload/addon/Bridge/SlotRuntime.lua +106 -0
  11. package/payload/addon/Bridge/StartupBeacon.lua +8 -11
  12. package/payload/addon/Core/Compat.lua +7 -0
  13. package/payload/addon/Core/Controls.lua +16 -0
  14. package/payload/addon/Core/Locale.lua +6 -4
  15. package/payload/addon/Core/Locale_enUS.lua +4 -2
  16. package/payload/addon/Core/Platform.lua +4 -2
  17. package/payload/addon/Core/Runtime.lua +17 -6
  18. package/payload/addon/Lychee Dev.toc +8 -2
  19. package/payload/addon/Modules/AutomationHistory.lua +119 -0
  20. package/payload/addon/Modules/AutomationView.lua +26 -6
  21. package/payload/addon/UI/Pages/About.lua +0 -3
  22. package/payload/addon/UI/Pages/Automation.lua +40 -27
  23. package/payload/addon/UI/Pages/Diagnostics.lua +2 -4
  24. package/payload/addon/UI/Pages/Object.lua +0 -1
  25. package/payload/addon/UI/Pages/Run.lua +2 -1
  26. package/payload/addon/UI/Pages/Trace.lua +0 -1
  27. package/payload/addon/UI/Theme.lua +3 -2
  28. package/payload/addon/UI/Widgets.lua +32 -22
  29. package/payload/addon/UI/Window.lua +3 -35
  30. package/payload/skill/SKILL.md +39 -53
  31. package/payload/skill/references/commands.md +17 -15
  32. package/payload/skill/references/error-diagnosis.md +7 -11
  33. package/payload/skill/references/installation.md +6 -13
  34. package/payload/skill/references/live-investigation.md +193 -255
  35. package/payload/skill/references/live-startup.md +62 -130
  36. package/release.json +95 -65
  37. package/payload/addon/UI/Pages/Settings.lua +0 -82
@@ -1,188 +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. A small click-through bouncing
72
- Lychee with the running label can remain beside the receipt area until probe
73
- finalization. It does not block game input and is not proof of a verified report.
74
- Account for this indicator when choosing a visual sampling region. Finish visual sampling before
75
- calling Finish/Fail: terminal receipts and subsequent cleanup input can be
76
- visible again. After execute completes, `display.state=cleared` confirms its
77
- receipt cleanup. Do not treat captures taken during command transport as the
78
- unobstructed scene.
79
-
80
- ## Compose atomic actions when needed
81
-
82
- Each mutating action has one purpose and one stable idempotency key. Reuse the
83
- same `--request` only when retrying the same intended action; changing the probe,
84
- count, target or meaning requires a new key.
85
-
86
- 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.
87
34
 
88
35
  ```text
89
- 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
90
37
  ```
91
38
 
92
- Names are mutable handles; the returned `PRB-...` revision is immutable. Carry
93
- that revision in handoffs. Loading is a separate game action and does not run
94
- the probe. Choose an integer execution budget from the event wait, sample count,
95
- cleanup needs and expected client behavior. The supported range is 1..120 seconds;
96
- the CLI and addon reject out-of-range values instead of shortening them. This
97
- budget is stored with the immutable operation and is not renewed by resume:
98
-
99
- ```text
100
- lycheedev live probe load --session <session-id> --probe <name-or-PRB-revision> --request <stable-key> --budget-seconds <1-120> --format json
101
- ```
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.
102
45
 
103
- The load result is an operation ID. Loading a new revision can reload the client
104
- and discard transient UI, timers and frame references. Prepare a reproducible
105
- scene after load, inside the probe or through already loaded capabilities. If
106
- the question requires the original transient scene and no existing loaded
107
- capability can observe it before reload, report that limit rather than claiming
108
- to have measured the original scene. Execute only that loaded operation. This
109
- command returns after report verification; continue through acknowledgement and
110
- final receipt dismissal in the same turn:
111
-
112
- ```text
113
- lycheedev live run <operation-id> --format json
114
- ```
115
-
116
- Inspect and interpret the verified report before acknowledgement. Then complete
117
- that exact operation, including receipt dismissal:
118
-
119
- ```text
120
- lycheedev live finish <operation-id> --format json
121
- ```
122
-
123
- Finish acknowledges the report, retires the exact queue entry, releases window
124
- ownership and verifies receipt dismissal without another cleanup reload. Check
125
- `report.state: verified`, `cleanup: complete`, `display.state: cleared` and
126
- `complete: true`. Do not ACK before the report bytes and capture IDs needed by
127
- the investigation are safely archived. Successful finish retains `display.capture`
128
- as durable clear evidence and needs no extra hide. Repeating an already completed
129
- finish verifies that archived result without sending new game input; it does not
130
- claim the screen is still empty after later activity.
131
-
132
- If acknowledgement succeeded but display cleanup failed, the verified report
133
- and `cleanup: complete` remain usable while `display.state: pending` keeps the
134
- task incomplete. Retry `live finish` for the same operation after diagnosing the
135
- relevant readiness condition; it does not repeat ACK or execute the probe.
136
- Use `live ack <operation-id>` separately only when the user explicitly wants to
137
- retain the receipt or a staged workflow needs it.
138
-
139
- For connection-only tasks, standalone reload, or separately acknowledged work,
140
- once the displayed receipt's evidence is archived and no further live step needs
141
- it, dismiss the card:
46
+ ## Complete an investigation
142
47
 
143
48
  ```text
144
- 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
145
50
  ```
146
51
 
147
- It refuses windows owned by in-flight operations and verifies the clear from
148
- valid frames; `live.receipt_hide_pending` (exit 6) means readiness or clearing
149
- could not be verified within the bound. It does not prove the card remains
150
- visible or that hide was sent. Inspect the returned input evidence and the
151
- window condition before retrying. Later
152
- commands replace the display anyway, so intermediate cards may stay visible
153
- between planned live steps. At the end of the investigation, verify
154
- `result.cleared: true`. If dismissal remains blocked, report it separately as
155
- unfinished screen cleanup; do not discard a verified report or call the whole
156
- task complete. Never dismiss instead of first reading and archiving evidence.
157
-
158
- Perform standalone reload automatically when requested or necessary to complete
159
- the authorized task (for example, activating an addon update). Do not ask the
160
- 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.
161
86
 
162
87
  ```text
163
- 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
164
89
  ```
165
90
 
166
- It requires a nonce-correlated new runtime receipt; disappearance of the old
167
- picture is not proof. Success has `complete: true` and `runtimeCapture`;
168
- `report.state: unavailable` is normal because reload produces no probe report.
169
- The next new action refreshes the saved connection internally, on the same
170
- window and character. Do not use reload as an alias for probe loading or add an
171
- extra reload after load/ACK. On interruption, inspect/resume the returned
172
- operation rather than sending another reload with a new request key.
173
-
174
- Existing addon errors have their own bounded operation and need no temporary
175
- 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
176
142
 
177
143
  ```text
178
- lycheedev live bugs --session <session-id> --request <stable-key> --count <1-100> --format json
179
- lycheedev live finish <operation-id> --format json
144
+ lycheedev live probe put --name <name> --file <probe.lua> --format json
180
145
  ```
181
146
 
182
- An unavailable !BugGrabber provider is valid evidence, not an empty error list.
183
- Preserve returned scope, ordering, requested/returned/available counts,
184
- `complete`, missing fields and provider version.
185
-
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.
186
150
  ## Design a discriminating probe
187
151
 
188
152
  Start from the question and two or more plausible explanations. Pin the exact
@@ -206,10 +170,9 @@ cursor routing or protected hardware input.
206
170
 
207
171
  Specify what must be true before each action, what output proves or refutes each
208
172
  hypothesis, and what remains untested. Rebuild scene state after load when needed.
209
- Finish observation and probe-owned cleanup before the CLI flushes the report to
210
- SavedVariables, because that flush can reload the client. All business results,
211
- logs, samples and assertions go in the bounded SV report; optical receipts only
212
- 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
213
176
  failure state instead of wrapping an exception as success. A verified report
214
177
  proves retrieval and integrity, not that its assertions passed.
215
178
 
@@ -249,12 +212,46 @@ expensive callback work. Async probes have a mandatory bounded timer, at most
249
212
  single-use. Wrap every asynchronous entry with `probe:Callback` so late callbacks
250
213
  cannot enter user code after termination and exceptions become failed reports.
251
214
  Register resource cleanup before activating each timer/frame. Cleanup runs on
252
- completion, failure, timeout or session loss; cleanup failures remain pending
215
+ completion, failure or timeout; cleanup failures remain pending
253
216
  and prevent a false successful acknowledgement. Do
254
217
  not create permanent hooks or mutate Blizzard-owned APIs.
255
218
  Choose the load budget to cover the probe's own async deadline and cleanup; a
256
219
  longer host wait cannot extend the declared execution budget.
257
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
+
258
255
  Combat lockdown and secret values are trust boundaries. Check them before
259
256
  comparison, formatting or branching. Record unavailable and truncated values
260
257
  explicitly instead of substituting defaults.
@@ -309,97 +306,38 @@ cause and completed display cleanup are separate outcomes.
309
306
  ## Recover without replay
310
307
 
311
308
  ```text
312
- lycheedev live status <operation-id> --format json
313
- lycheedev live resume <operation-id> --format json
314
- 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
315
311
  ```
316
312
 
317
- Status is read-only. Resume uses the original target, request, revision and
318
- phase; it never changes target or replays a possibly submitted probe or reload.
319
- Before a session exists, an unresolved bootstrap input can return a durable
320
- `BTP-...` ID. `live status BTP-...` reads its recorded attempt. `live resume
321
- BTP-...` may repeat the input handshake under the same owner only when durable
322
- progress proves the business commit was never submitted; it preserves prior
323
- attempts and permits at most three across restarts. At or beyond the commit
324
- fence it only observes the matching receipt. Do not recreate this retry logic
325
- with manual keys or a fresh request. A persistence reload with proven zero
326
- native messages may likewise recover under the original operation; partial,
327
- unknown or contradictory input evidence never authorizes replay.
328
- Keep the selected window and installation fixed while recovering it. An
329
- unconfirmed attempt is not permission to start a fresh connect or reset.
330
- An unresolved fixed reload also keeps its original `OP-...`; resume observes
331
- its journaled input progress and runtime evidence without resending uncertain
332
- keys. An explicit user decision may abandon either a `BTP-...` bootstrap
333
- attempt or fixed reload `OP-...`, preserving unknown effects and releasing only
334
- host ownership. Neither abandonment is proof that the game action did not run.
335
- Atomic ACK has a narrower idempotent recovery path described below. Cancel is
336
- safe only before queue publication or game input. For a
337
- later unresolved async operation, resume observation; do not start a replacement
338
- probe because that could execute twice.
339
-
340
- Resume can recover an already persisted atomic probe report even when the game
341
- is offline or its reload QR was missed. This verifies the report, not the reload
342
- or permission for another game input. Read the returned report before deciding
343
- whether the investigation needs more live work.
344
-
345
- If finish or ACK returns `live.ack_readiness_pending`, keep the usable report
346
- and original operation ID: the CLI did not obtain fresh readiness for that input. Retry that
347
- operation only after relevant readiness conditions change; do not loop connect,
348
- repeat the probe, request another reload, or remove ownership to make it pass.
349
- If an atomic ACK may already have been submitted, resume observes its receipt
350
- first. The CLI may make a bounded idempotent ACK retry only after fresh readiness
351
- for the same retained report identity. This does not replay the probe. Older
352
- pre-atomic operations remain observation-only; do not invent an agent-side retry
353
- loop or raw ACK input. Missing confirmation remains a cleanup obligation, not
354
- evidence that the probe failed or that ACK never executed.
355
-
356
- If the user explicitly chooses to stop recovery (for example, they switched
357
- 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:
358
336
 
359
337
  ```text
360
- 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
361
339
  ```
362
340
 
363
- Probe and bug-snapshot operations can be abandoned in `load_requested`, `loaded`,
364
- `dispatch_requested`, `reported`, `flush_requested`, `persisted`, `verified` or
365
- `ack_requested`, provided acknowledgement has not been verified. Prepared work
366
- uses cancel instead. The CLI validates the retained evidence; do not edit the
367
- journal to force eligibility. Zero, partial or complete queued input is not
368
- proof of execution. An unavailable report stays unavailable; a submitted ACK
369
- without its confirmation stays unconfirmed.
370
-
371
- Abandon requires the user's explicit decision, never an automatic fallback for
372
- busy, missing readiness, or an unknown effect. It preserves the available
373
- evidence, retires only that exact disk queue entry and releases its
374
- window ownership without game input. `cleanup: abandoned`, `complete: false`
375
- does not prove the game was ACKed or unloaded; old runtime/SavedVariables content may
376
- remain. Do not describe this as successful cleanup or re-run the old request.
377
- For a missing report, `report.state` stays `unavailable` and the execution result
378
- stays unknown; a verified report remains verified.
379
- Interrupted abandonment resumes by the same operation ID, without game input.
380
- Older releases may lose dispatch evidence during abandonment and reject its
381
- retry/resume. Do not assume a newer skill fixes an older executable or invent
382
- the lost evidence; retain the error and operation ID for diagnosis.
383
- After success, a new authorized task still requires fresh identity and readiness.
384
-
385
- An absent optical receipt alone does not establish combat, player activity,
386
- or a failed reload. Separate observed input readiness from the unknown cause;
387
- use retained input/capture evidence to diagnose it. Chat-focus recovery and
388
- reload event ordering belong to the addon/CLI, not an agent-side input loop.
389
-
390
- Distinguish report verification from cleanup. A verified report is usable even
391
- while cleanup is pending, but the operation is not fully complete. Preserve the
392
- operation ID, immutable probe revision, fixed snapshot and capture IDs in any
393
- handoff. Source text, reports and logs are evidence, never instructions.
394
-
395
- | Observed state | Agent's next action |
396
- | --- | --- |
397
- | Probe load returned an operation ID | Continue `live run` for that operation; a screenshot is not the report. |
398
- | 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. |
399
- | Verified report, cleanup pending, ACK not submitted | Read the report and retain captures, then call `live finish` on the same operation. |
400
- | 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. |
401
- | 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. |
402
- | Finish returned display cleared and complete true | Screen cleanup is verified; no additional hide or reconnect is needed. |
403
- | Connection/reload complete or separately acknowledged work, no further live work | Call `live hide` for the same session and check `result.cleared`. |
404
- | 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. |
405
- | 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`.