lycheedev 2.5.1 → 3.0.1
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/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/InputSignal.lua +36 -0
- package/payload/addon/Bridge/InputState.lua +93 -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 +172 -0
- package/payload/addon/Bridge/SlotRuntime.lua +125 -0
- package/payload/addon/Bridge/StartupBeacon.lua +8 -11
- package/payload/addon/Core/Compat.lua +16 -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 +9 -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 +89 -162
- package/payload/skill/agents/openai.yaml +2 -2
- package/payload/skill/references/asset-export.md +1 -1
- package/payload/skill/references/commands.md +37 -35
- package/payload/skill/references/data-hotfix.md +112 -0
- package/payload/skill/references/data-investigation.md +74 -320
- package/payload/skill/references/data-recovery.md +55 -0
- package/payload/skill/references/data-tables.md +170 -0
- package/payload/skill/references/data-targets.md +93 -0
- package/payload/skill/references/error-diagnosis.md +8 -12
- package/payload/skill/references/installation.md +20 -13
- package/payload/skill/references/live-investigation.md +84 -367
- package/payload/skill/references/live-probes.md +160 -0
- package/payload/skill/references/live-recovery.md +190 -0
- package/payload/skill/references/live-startup.md +63 -133
- package/payload/skill/references/runtime-investigations.md +17 -3
- package/payload/skill/references/source-preparation.md +58 -0
- package/payload/skill/references/source-relations.md +51 -0
- package/payload/skill/references/source-research.md +66 -162
- package/payload/skill/references/source-value-flow.md +48 -0
- package/release.json +155 -75
- package/payload/addon/UI/Pages/Settings.lua +0 -82
|
@@ -1,405 +1,122 @@
|
|
|
1
1
|
# Live investigation
|
|
2
2
|
|
|
3
|
-
Use
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
Use live work to resolve a question about the running client that existing source,
|
|
4
|
+
data or retained reports cannot answer. Keep those evidence types distinct: source
|
|
5
|
+
explains possible behavior, data supplies versioned records, and a live observation
|
|
6
|
+
establishes what happened on the selected client. Carry exact source/data pins into
|
|
7
|
+
the experiment; a data build selection does not select a game process.
|
|
8
|
+
|
|
9
|
+
1. Existing CON: read status and retained results first. Resume unfinished work
|
|
10
|
+
through [recovery](live-recovery.md). If it is idle and still matches the
|
|
11
|
+
authorized target, reuse it for the next distinct task.
|
|
12
|
+
2. New live task without a CON: select and connect below. Read [startup](live-startup.md)
|
|
13
|
+
only for installation, activation or contact without a usable runtime.
|
|
14
|
+
3. Need new evidence: use [probe design](live-probes.md), [retained errors](error-diagnosis.md)
|
|
15
|
+
or [performance measurement](runtime-investigations.md) according to the question.
|
|
16
|
+
4. Inspect the verified report, finish cleanup, and disconnect when done.
|
|
17
|
+
|
|
18
|
+
The CLI owns native input, memory/optical observation, slot coordination and
|
|
19
|
+
recovery. Agents do not send keys, decode colors or manipulate slot/claim files.
|
|
20
|
+
Keep the invoking project's `.lycheedev/live` evidence directory together.
|
|
6
21
|
|
|
7
22
|
## Select and connect
|
|
8
23
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
installation.
|
|
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:
|
|
24
|
+
Use `live instances --passive` for window inventory without input. Connect directly
|
|
25
|
+
when installation/PID are known; never choose a different character to bypass a
|
|
26
|
+
busy or unavailable target. The selected process creation identity and actor remain
|
|
27
|
+
fixed throughout recovery. One process has one logical connection and one active
|
|
28
|
+
CLI driver. Same-build instances still have separate PID/CON/request identities;
|
|
29
|
+
shared installation files do not make them interchangeable. A foreign project's durable claim is not an expired timeout.
|
|
20
30
|
|
|
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:
|
|
31
|
+
If several candidates match and the task does not choose one, show their known
|
|
32
|
+
product/build, character/realm and PID (unknown identity stays unknown), then ask
|
|
33
|
+
which to connect. Do not pick the first process. When the user explicitly asks
|
|
34
|
+
to test both instances, retain both fixed targets and proceed within that scope;
|
|
35
|
+
there is no remaining selection question.
|
|
45
36
|
|
|
46
37
|
```text
|
|
47
|
-
lycheedev live
|
|
38
|
+
lycheedev live connect --project <project-directory> --installation <client> --pid <pid> --character <name> --realm <realm> --wait-seconds 120 --format json
|
|
48
39
|
```
|
|
49
40
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
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:
|
|
87
|
-
|
|
88
|
-
```text
|
|
89
|
-
lycheedev live probe put --name <name> --file <probe.lua> --format json
|
|
90
|
-
```
|
|
41
|
+
Retain `result.session` (CON), identity, project and journal path. An optional
|
|
42
|
+
`--snapshot` constrains the exact data build; source/data pinning is independent of
|
|
43
|
+
connection storage. A fresh bind, not a cached address or an actor descriptor,
|
|
44
|
+
authorizes work. `--no-cache` disables disposable address hints; invalid hints
|
|
45
|
+
already fall back to a fresh scan. Read [startup](live-startup.md) when activation
|
|
46
|
+
is pending or an installation was just updated.
|
|
91
47
|
|
|
92
|
-
|
|
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
|
-
```
|
|
102
|
-
|
|
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:
|
|
48
|
+
## Complete an investigation
|
|
118
49
|
|
|
119
50
|
```text
|
|
120
|
-
lycheedev live
|
|
51
|
+
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
|
|
121
52
|
```
|
|
122
53
|
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
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.
|
|
54
|
+
Use `--probe <immutable-PRB-revision>` instead of a file for registered source.
|
|
55
|
+
`--budget-seconds` bounds the addon probe (1..120); `--wait-seconds` bounds this
|
|
56
|
+
CLI invocation (1..600, default 120), including scans and recovery. A longer host
|
|
57
|
+
wait does not extend probe execution. The CLI performs prepare/commit, strict
|
|
58
|
+
result verification, durable storage and runtime release.
|
|
131
59
|
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
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.
|
|
60
|
+
Recovery has persistent deadlines; resume does not reset them. A CLI timeout
|
|
61
|
+
ends the host call, not the Lua probe. Read [budget and evidence rules](live-recovery.md#durable-evidence-and-older-journals)
|
|
62
|
+
when recovery is interrupted or exhausted.
|
|
138
63
|
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
64
|
+
Choose `observation` only when repeating the whole probe after a confirmed new
|
|
65
|
+
runtime is safe. Use the default `opaque` for state-changing or uncertain code.
|
|
66
|
+
A retry keeps the logical operation/request and records a new attempt/ticket;
|
|
67
|
+
it is not evidence that the interrupted attempt did nothing.
|
|
142
68
|
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
69
|
+
Completion requires `complete: true`, `reportState: verified` and `cleanup: complete`.
|
|
70
|
+
Inspect `report.ok`, `report.error`, truncation and assertions separately. A Lua
|
|
71
|
+
failure or probe timeout is a verified business outcome and still needs release.
|
|
72
|
+
A native complete result needs no ACK/finish/hide command. Original result bytes
|
|
73
|
+
remain in the project even after the game exits. Repeat the same request to read
|
|
74
|
+
it without executing again, including after later operations on that connection.
|
|
146
75
|
|
|
147
|
-
|
|
148
|
-
|
|
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.
|
|
76
|
+
A verified report with pending cleanup is usable evidence plus a recovery
|
|
77
|
+
obligation. Keep it and follow [recovery](live-recovery.md), without rerunning Lua.
|
|
157
78
|
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
79
|
+
The CLI may reload at a quiescent capacity boundary, so probes must reconstruct
|
|
80
|
+
scene prerequisites or declare them unreproducible. Ordinary probes do not lock
|
|
81
|
+
input; activity labels do not prove acceptance or result retrieval.
|
|
161
82
|
|
|
162
83
|
```text
|
|
163
|
-
lycheedev live
|
|
84
|
+
lycheedev live disconnect <CON-id> --project <project-directory> --wait-seconds 120 --format json
|
|
164
85
|
```
|
|
165
86
|
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
probe:
|
|
176
|
-
|
|
177
|
-
```text
|
|
178
|
-
lycheedev live bugs --session <session-id> --request <stable-key> --count <1-100> --format json
|
|
179
|
-
lycheedev live finish <operation-id> --format json
|
|
180
|
-
```
|
|
181
|
-
|
|
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.
|
|
87
|
+
Disconnect at the end of the authorized investigation unless continued use is
|
|
88
|
+
needed. It verifies unbind before releasing host ownership, or uses verified
|
|
89
|
+
process-exit/runtime-replacement evidence for input-free retirement; see
|
|
90
|
+
[ownership and recovery](live-startup.md#ownership-and-recovery).
|
|
91
|
+
A repeated completed
|
|
92
|
+
close repairs any interrupted host retirement without new game input.
|
|
93
|
+
For interrupted opaque work, `closed: true` does not imply a known business
|
|
94
|
+
outcome: preserve `operationState: execution_unknown`, `complete: false` and the
|
|
95
|
+
missing report. Do not turn successful connection cleanup into task success.
|
|
185
96
|
|
|
186
97
|
## Design a discriminating probe
|
|
187
98
|
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
also pin the target addon's revision and record whether it is known to match the
|
|
191
|
-
loaded runtime. Inspect the relevant API definition, call sites, event order,
|
|
192
|
-
preconditions and secret/protected boundaries in
|
|
193
|
-
[source-research.md](source-research.md). A current branch or newest tag is not
|
|
194
|
-
evidence for the running build. When exact source is unavailable, identify the
|
|
195
|
-
gap and, within the live authorization, use a minimal capability observation
|
|
196
|
-
before relying on the uncertain interface.
|
|
197
|
-
|
|
198
|
-
Choose the smallest experiment that separates the hypotheses. The supported
|
|
199
|
-
Lua probe can inspect state, collect event timing, exercise a target addon's own
|
|
200
|
-
controller or callback where authorized, check object lifetime, sample bounded
|
|
201
|
-
performance data, or verify a business invariant. Source and task determine the
|
|
202
|
-
actions, fields, sample limit and assertions; the bridge does not impose a UI
|
|
203
|
-
template. For an interactive behavior, distinguish calling a handler from real
|
|
204
|
-
mouse or keyboard dispatch. A programmatic callback cannot prove hit testing,
|
|
205
|
-
cursor routing or protected hardware input.
|
|
206
|
-
|
|
207
|
-
Specify what must be true before each action, what output proves or refutes each
|
|
208
|
-
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
|
|
213
|
-
failure state instead of wrapping an exception as success. A verified report
|
|
214
|
-
proves retrieval and integrity, not that its assertions passed.
|
|
215
|
-
|
|
216
|
-
If evidence calls for a different experiment, finish or recover the old
|
|
217
|
-
operation first, then create a new revision and request key. An uncertain
|
|
218
|
-
accepted input or missing receipt is not grounds to rerun the same Lua. Keep
|
|
219
|
-
deadline, user cancellation, unresolved execution, probe error, assertion
|
|
220
|
-
failure and pending display cleanup distinct in the finding.
|
|
99
|
+
Use [probe design](live-probes.md#design-a-discriminating-probe) before creating
|
|
100
|
+
new Lua: pin the relevant source and define the observation that separates hypotheses.
|
|
221
101
|
|
|
222
102
|
## Write bounded probes
|
|
223
103
|
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
still applies.
|
|
227
|
-
|
|
228
|
-
Use Lua 5.1 and inspect only what answers the question. Bound collection sizes,
|
|
229
|
-
tree depth, samples and output. Synchronous Lua cannot be preempted by the host;
|
|
230
|
-
never rely on a host timeout as the probe's only bound.
|
|
231
|
-
|
|
232
|
-
For event- or callback-based work, the chunk receives one API as `...`:
|
|
233
|
-
|
|
234
|
-
```lua
|
|
235
|
-
local probe = ...
|
|
236
|
-
assert(probe:Async(30)) -- integer seconds, 1..120
|
|
237
|
-
local frame = CreateFrame("Frame")
|
|
238
|
-
assert(probe:OnCleanup(function() frame:UnregisterAllEvents() end))
|
|
239
|
-
frame:RegisterEvent("PLAYER_REGEN_ENABLED")
|
|
240
|
-
frame:SetScript("OnEvent", assert(probe:Callback(function()
|
|
241
|
-
probe:Finish({ observed = true })
|
|
242
|
-
end)))
|
|
243
|
-
```
|
|
244
|
-
|
|
245
|
-
Use `probe:Fail("stable_reason")` for an expected failed result,
|
|
246
|
-
`probe:Log(...)` for bounded diagnostic lines, and `probe:IsCancelled()` before
|
|
247
|
-
expensive callback work. Async probes have a mandatory bounded timer, at most
|
|
248
|
-
16 cleanup callbacks, 100 log entries and 32 KiB of logs. Completion is
|
|
249
|
-
single-use. Wrap every asynchronous entry with `probe:Callback` so late callbacks
|
|
250
|
-
cannot enter user code after termination and exceptions become failed reports.
|
|
251
|
-
Register resource cleanup before activating each timer/frame. Cleanup runs on
|
|
252
|
-
completion, failure, timeout or session loss; cleanup failures remain pending
|
|
253
|
-
and prevent a false successful acknowledgement. Do
|
|
254
|
-
not create permanent hooks or mutate Blizzard-owned APIs.
|
|
255
|
-
Choose the load budget to cover the probe's own async deadline and cleanup; a
|
|
256
|
-
longer host wait cannot extend the declared execution budget.
|
|
257
|
-
|
|
258
|
-
Combat lockdown and secret values are trust boundaries. Check them before
|
|
259
|
-
comparison, formatting or branching. Record unavailable and truncated values
|
|
260
|
-
explicitly instead of substituting defaults.
|
|
104
|
+
Use the [bounded API and cleanup rules](live-probes.md#write-bounded-probes).
|
|
105
|
+
A host timeout cannot preempt synchronous Lua; ordinary observation needs no input shield.
|
|
261
106
|
|
|
262
107
|
## Test source hypotheses
|
|
263
108
|
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
[source-research.md](source-research.md#secret-values-and-secure-taint). Bind the
|
|
268
|
-
observations to the verified session, client build and observed addon version;
|
|
269
|
-
record whether the researched revision is known to match the loaded addon.
|
|
270
|
-
An installed file or repository commit alone does not prove that match.
|
|
271
|
-
|
|
272
|
-
Start with existing verified reports and, when useful, the bounded error snapshot
|
|
273
|
-
described in [error-diagnosis.md](error-diagnosis.md). State the competing
|
|
274
|
-
explanations and the observation that could distinguish them before writing a
|
|
275
|
-
probe. For example, check whether the relevant value is marked secret at an
|
|
276
|
-
observable boundary, or whether the prerequisite event/state occurred. A probe
|
|
277
|
-
must answer that specific question; the live bridge does not automatically
|
|
278
|
-
recover arbitrary locals or a complete historical taint chain.
|
|
279
|
-
|
|
280
|
-
Use only supported, safe observations for the verified client. For secret
|
|
281
|
-
values, report the secrecy marker or an explicit unavailable state, not the raw
|
|
282
|
-
value. Do not compare, format, serialize or coerce the value to extract it, or
|
|
283
|
-
re-execute a known forbidden operation just to reproduce its error. Do not add
|
|
284
|
-
hooks to protected/Blizzard objects or replace their functions to observe flow.
|
|
285
|
-
If an internal boundary cannot be observed safely, retain the gap and identify
|
|
286
|
-
the additional diagnostic capability or reproduction context needed.
|
|
287
|
-
|
|
288
|
-
Give each check a bounded observation window, sample/output budget and cleanup.
|
|
289
|
-
Prefer event-driven observation when the question depends on an event. Complete
|
|
290
|
-
the loaded operation, interpret and archive its verified report, then finish
|
|
291
|
-
that exact operation before starting the next check. Within the existing task
|
|
292
|
-
authorization, continue these steps without separate confirmation for each one.
|
|
109
|
+
Carry the unresolved source path into [live hypothesis testing](live-probes.md#test-source-hypotheses),
|
|
110
|
+
then return the observed result to that path. Do not infer source correctness from
|
|
111
|
+
an unrelated successful probe.
|
|
293
112
|
|
|
294
|
-
|
|
295
|
-
explanation it supports, contradicts or leaves open. Run another check only if
|
|
296
|
-
it can resolve a remaining material distinction; do not repeat an unchanged
|
|
297
|
-
probe after a timeout or absent event. A normal observation outside the failing
|
|
298
|
-
conditions does not establish that the failing path is safe. If a repair and
|
|
299
|
-
deployment are in scope, repeat the relevant bounded check against the verified
|
|
300
|
-
updated runtime and retain both results.
|
|
113
|
+
## Input and recovery
|
|
301
114
|
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
the next step requires unavailable evidence, capability or user action; finish
|
|
306
|
-
or recover every outstanding operation under the lifecycle above. An unresolved
|
|
307
|
-
cause and completed display cleanup are separate outcomes.
|
|
115
|
+
For input blockers, same-installation contention or uncertain input, read
|
|
116
|
+
[input recovery](live-recovery.md#input-and-recovery). One original CON/request
|
|
117
|
+
continues serially; unknown input is never replay permission.
|
|
308
118
|
|
|
309
119
|
## Recover without replay
|
|
310
120
|
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
lycheedev live resume <operation-id> --format json
|
|
314
|
-
lycheedev live cancel <operation-id> --format json
|
|
315
|
-
```
|
|
316
|
-
|
|
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:
|
|
358
|
-
|
|
359
|
-
```text
|
|
360
|
-
lycheedev live abandon <operation-id> --format json
|
|
361
|
-
```
|
|
362
|
-
|
|
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. |
|
|
121
|
+
Read [recovery](live-recovery.md#recover-without-replay) before resuming or reloading.
|
|
122
|
+
Pending alone does not call for reload; unchanged blockers do not justify a retry loop.
|