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.
- package/bin/lycheedev.mjs +39 -3
- package/bin/update.mjs +168 -0
- package/native/windows-amd64/lycheedev.exe +0 -0
- package/package.json +1 -1
- package/payload/addon/Bridge/ActivityView.lua +26 -12
- package/payload/addon/Bridge/InputProtection.lua +63 -0
- package/payload/addon/Bridge/InputState.lua +45 -0
- package/payload/addon/Bridge/MemoryProtocol.lua +31 -0
- package/payload/addon/Bridge/ProbeExecution.lua +147 -0
- package/payload/addon/Bridge/ReceiverBindings.lua +6 -0
- package/payload/addon/Bridge/SlotProtocol.lua +165 -0
- package/payload/addon/Bridge/SlotRuntime.lua +106 -0
- package/payload/addon/Bridge/StartupBeacon.lua +8 -11
- package/payload/addon/Core/Compat.lua +7 -0
- package/payload/addon/Core/Controls.lua +16 -0
- package/payload/addon/Core/Locale.lua +6 -4
- package/payload/addon/Core/Locale_enUS.lua +4 -2
- package/payload/addon/Core/Platform.lua +4 -2
- package/payload/addon/Core/Runtime.lua +17 -6
- package/payload/addon/Lychee Dev.toc +8 -2
- package/payload/addon/Modules/AutomationHistory.lua +119 -0
- package/payload/addon/Modules/AutomationView.lua +26 -6
- package/payload/addon/UI/Pages/About.lua +0 -3
- package/payload/addon/UI/Pages/Automation.lua +40 -27
- package/payload/addon/UI/Pages/Diagnostics.lua +2 -4
- package/payload/addon/UI/Pages/Object.lua +0 -1
- package/payload/addon/UI/Pages/Run.lua +2 -1
- package/payload/addon/UI/Pages/Trace.lua +0 -1
- package/payload/addon/UI/Theme.lua +3 -2
- package/payload/addon/UI/Widgets.lua +32 -22
- package/payload/addon/UI/Window.lua +3 -35
- package/payload/skill/SKILL.md +40 -60
- package/payload/skill/agents/openai.yaml +1 -1
- package/payload/skill/references/commands.md +22 -15
- package/payload/skill/references/error-diagnosis.md +7 -11
- package/payload/skill/references/installation.md +64 -13
- package/payload/skill/references/live-investigation.md +193 -252
- package/payload/skill/references/live-startup.md +62 -132
- package/release.json +97 -67
- package/payload/addon/UI/Pages/Settings.lua +0 -82
|
@@ -1,185 +1,152 @@
|
|
|
1
1
|
# Live investigation
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
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
|
|
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
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
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
|
|
88
|
+
lycheedev live disconnect <CON-id> --project <project-directory> --wait-seconds 120 --format json
|
|
161
89
|
```
|
|
162
90
|
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
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
|
|
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
|
-
|
|
180
|
-
|
|
181
|
-
|
|
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
|
|
207
|
-
|
|
208
|
-
|
|
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
|
|
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 <
|
|
310
|
-
lycheedev live resume <
|
|
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
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
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
|
|
338
|
+
lycheedev live reload --project <project-directory> --session <CON-id> --request <reload-key> --wait-seconds 120 --format json
|
|
358
339
|
```
|
|
359
340
|
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
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`.
|