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.
Files changed (52) 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/InputSignal.lua +36 -0
  6. package/payload/addon/Bridge/InputState.lua +93 -0
  7. package/payload/addon/Bridge/MemoryProtocol.lua +31 -0
  8. package/payload/addon/Bridge/ProbeExecution.lua +147 -0
  9. package/payload/addon/Bridge/ReceiverBindings.lua +6 -0
  10. package/payload/addon/Bridge/SlotProtocol.lua +172 -0
  11. package/payload/addon/Bridge/SlotRuntime.lua +125 -0
  12. package/payload/addon/Bridge/StartupBeacon.lua +8 -11
  13. package/payload/addon/Core/Compat.lua +16 -0
  14. package/payload/addon/Core/Controls.lua +16 -0
  15. package/payload/addon/Core/Locale.lua +6 -4
  16. package/payload/addon/Core/Locale_enUS.lua +4 -2
  17. package/payload/addon/Core/Platform.lua +4 -2
  18. package/payload/addon/Core/Runtime.lua +17 -6
  19. package/payload/addon/Lychee Dev.toc +9 -2
  20. package/payload/addon/Modules/AutomationHistory.lua +119 -0
  21. package/payload/addon/Modules/AutomationView.lua +26 -6
  22. package/payload/addon/UI/Pages/About.lua +0 -3
  23. package/payload/addon/UI/Pages/Automation.lua +40 -27
  24. package/payload/addon/UI/Pages/Diagnostics.lua +2 -4
  25. package/payload/addon/UI/Pages/Object.lua +0 -1
  26. package/payload/addon/UI/Pages/Run.lua +2 -1
  27. package/payload/addon/UI/Pages/Trace.lua +0 -1
  28. package/payload/addon/UI/Theme.lua +3 -2
  29. package/payload/addon/UI/Widgets.lua +32 -22
  30. package/payload/addon/UI/Window.lua +3 -35
  31. package/payload/skill/SKILL.md +89 -162
  32. package/payload/skill/agents/openai.yaml +2 -2
  33. package/payload/skill/references/asset-export.md +1 -1
  34. package/payload/skill/references/commands.md +37 -35
  35. package/payload/skill/references/data-hotfix.md +112 -0
  36. package/payload/skill/references/data-investigation.md +74 -320
  37. package/payload/skill/references/data-recovery.md +55 -0
  38. package/payload/skill/references/data-tables.md +170 -0
  39. package/payload/skill/references/data-targets.md +93 -0
  40. package/payload/skill/references/error-diagnosis.md +8 -12
  41. package/payload/skill/references/installation.md +20 -13
  42. package/payload/skill/references/live-investigation.md +84 -367
  43. package/payload/skill/references/live-probes.md +160 -0
  44. package/payload/skill/references/live-recovery.md +190 -0
  45. package/payload/skill/references/live-startup.md +63 -133
  46. package/payload/skill/references/runtime-investigations.md +17 -3
  47. package/payload/skill/references/source-preparation.md +58 -0
  48. package/payload/skill/references/source-relations.md +51 -0
  49. package/payload/skill/references/source-research.md +66 -162
  50. package/payload/skill/references/source-value-flow.md +48 -0
  51. package/release.json +155 -75
  52. package/payload/addon/UI/Pages/Settings.lua +0 -82
@@ -0,0 +1,160 @@
1
+ # Live probe design and implementation
2
+
3
+ Read this when writing a probe or testing a source hypothesis. Use the
4
+ [live workflow](live-investigation.md) for target selection, delivery and closure.
5
+
6
+ ## Register reusable source
7
+
8
+ ```text
9
+ lycheedev live probe put --name <name> --file <probe.lua> --format json
10
+ ```
11
+
12
+ Names are mutable selectors; retain the returned immutable PRB revision. Use it
13
+ with native execute. Old queue-oriented atomic commands belong to legacy records
14
+ and are not the transport for CON connections.
15
+
16
+ ## Design a discriminating probe
17
+
18
+ For a simple state query, choose the needed fields and verify the APIs it uses;
19
+ do not invent competing hypotheses or research unrelated code. For diagnosis,
20
+ state the plausible explanations and the observation that separates them.
21
+ Reuse matching source pins; establish how the relevant client source commit and
22
+ target addon revision correspond to the verified runtime. Inspect the relevant
23
+ API definition, call sites, event order,
24
+ preconditions and secret/protected boundaries in
25
+ [source-research.md](source-research.md). A current branch or newest tag is not
26
+ evidence for the running build. When exact source is unavailable, identify the
27
+ gap and, within the live authorization, use a minimal capability observation
28
+ before relying on the uncertain interface.
29
+
30
+ Choose the smallest experiment that separates the hypotheses. The supported
31
+ Lua probe can inspect state, collect event timing, exercise a target addon's own
32
+ controller or callback where authorized, check object lifetime, sample bounded
33
+ performance data, or verify a business invariant. Source and task determine the
34
+ actions, fields, sample limit and assertions; the bridge does not impose a UI
35
+ template. For an interactive behavior, distinguish calling a handler from real
36
+ mouse or keyboard dispatch. A programmatic callback cannot prove hit testing,
37
+ cursor routing or protected hardware input.
38
+
39
+ Specify what must be true before each action, what output proves or refutes each
40
+ hypothesis, and what remains untested. Rebuild scene state after load when needed.
41
+ Finish observation and probe-owned cleanup before reporting. Results, logs and
42
+ assertions use a bounded memory report; the CLI verifies and durably saves its
43
+ exact bytes before releasing runtime storage. An expected assertion failure should use a clear
44
+ failure state instead of wrapping an exception as success. A verified report
45
+ proves retrieval and integrity, not that its assertions passed.
46
+
47
+ If evidence calls for a different experiment, finish or recover the old
48
+ operation first, then create a new revision and request key. An uncertain
49
+ accepted input or missing receipt is not grounds to rerun the same Lua. Keep
50
+ deadline, user cancellation, unresolved execution, probe error, assertion
51
+ failure and pending display cleanup distinct in the finding.
52
+
53
+ ## Write bounded probes
54
+
55
+ Use Lua 5.1 and inspect only what answers the question. Bound collection sizes,
56
+ tree depth, samples and output. Synchronous Lua cannot be preempted by the host;
57
+ never rely on a host timeout as the probe's only bound.
58
+
59
+ For event- or callback-based work, the chunk receives one API as `...`:
60
+
61
+ ```lua
62
+ local probe = ...
63
+ assert(probe:Async(30)) -- integer seconds, 1..120
64
+ local frame = CreateFrame("Frame")
65
+ assert(probe:OnCleanup(function() frame:UnregisterAllEvents() end))
66
+ frame:RegisterEvent("PLAYER_REGEN_ENABLED")
67
+ frame:SetScript("OnEvent", assert(probe:Callback(function()
68
+ probe:Finish({ observed = true })
69
+ end)))
70
+ ```
71
+
72
+ Use `probe:Fail("stable_reason")` for an expected failed result,
73
+ `probe:Log(...)` for bounded diagnostic lines, and `probe:IsCancelled()` before
74
+ expensive callback work. Async probes have a mandatory bounded timer, at most
75
+ 16 cleanup callbacks, 100 log entries and 32 KiB of logs. Completion is
76
+ single-use. Wrap every asynchronous entry with `probe:Callback` so late callbacks
77
+ cannot enter user code after termination and exceptions become failed reports.
78
+ Register resource cleanup before activating each timer/frame. Cleanup runs on
79
+ completion, failure or timeout; cleanup failures remain pending
80
+ and prevent a false successful acknowledgement. Do
81
+ not create permanent hooks or mutate Blizzard-owned APIs.
82
+ Choose the load budget to cover the probe's own async deadline and cleanup; a
83
+ longer host wait cannot extend the declared execution budget.
84
+
85
+ ### Scene prerequisites and optional input protection
86
+
87
+ For scene-dependent probes, declare a small, side-effect-free predicate with
88
+ `probe:Guard(check, events, reason)`. It must return the non-secret boolean `true`.
89
+ The runtime checks it immediately, on the listed events, before each wrapped
90
+ callback, and before successful completion. A false, unavailable, secret or
91
+ throwing predicate fails the probe with the supplied reason. At most eight
92
+ guards and eight distinct events are supported; no polling is added. Choose
93
+ events that actually cover the target or UI changes relevant to the experiment.
94
+ Preserve that failed report, then reconstruct the scene or propose a revised
95
+ experiment according to the operation's observation/opaque policy. A scene
96
+ failure is not permission to automatically replay an effect.
97
+
98
+ Do not acquire input protection for ordinary data reads, listeners or waiting.
99
+ Only an explicitly exclusive UI experiment should call
100
+ `assert(probe:ProtectInput(seconds))`. It permits one protection phase per probe,
101
+ with an Agent-chosen duration no longer than the remaining probe budget; there
102
+ is no separate five-second cap. Use
103
+ `probe:ReleaseInput()` immediately after the exclusive actions; the remainder
104
+ of an async probe runs normally. Completion and errors release before user
105
+ cleanup. The hard deadline, combat, leaving the world or Ctrl+Alt+[ release the
106
+ shield and fail the active probe rather than silently continuing unprotected.
107
+ Use `probe:IsInputProtected()` to observe this probe's lease. Late callbacks and
108
+ old lease timers cannot resume a finished probe or release a newer lease.
109
+
110
+ This is an in-game input shield, not an OS-wide lock, protection from disconnects,
111
+ or a source of secure hardware-action authority. Keep checking scene prerequisites
112
+ even while protected. Use bounded Lua: a blocked synchronous Lua callback cannot
113
+ be preempted by a Lua timer. Slot loading protects only its short dispatch burst
114
+ (two-second safety deadline) and releases before business entry. Fixed reload
115
+ retains the host's serialized, bounded input transaction; it must work even when
116
+ the addon is not loaded, so an in-game takeover indicator is not guaranteed for
117
+ that fallback. Never hold a game shield while scanning memory or awaiting reload.
118
+
119
+ Combat lockdown and secret values are trust boundaries. Check them before
120
+ comparison, formatting or branching. Record unavailable and truncated values
121
+ explicitly instead of substituting defaults.
122
+
123
+ ## Test source hypotheses
124
+
125
+ Use this when authorized runtime work can distinguish an unresolved source
126
+ hypothesis. Carry the exact source locations, value flow and uncertainty from
127
+ [source value-flow analysis](source-value-flow.md); bind observations to the
128
+ verified client, build and loaded addon revision. Installed files alone do not
129
+ prove the loaded revision. Consult existing reports and [retained errors](error-diagnosis.md)
130
+ before another probe. The bridge cannot recover arbitrary locals or a complete
131
+ historical taint chain.
132
+
133
+ Use only supported, safe observations for the verified client. For secret
134
+ values, report the secrecy marker or an explicit unavailable state, not the raw
135
+ value. Do not compare, format, serialize or coerce the value to extract it, or
136
+ re-execute a known forbidden operation just to reproduce its error. Do not add
137
+ hooks to protected/Blizzard objects or replace their functions to observe flow.
138
+ If an internal boundary cannot be observed safely, retain the gap and identify
139
+ the additional diagnostic capability or reproduction context needed.
140
+
141
+ Give each check a bounded observation window, sample/output budget and cleanup.
142
+ Prefer event-driven observation when the question depends on an event. Complete
143
+ the loaded operation, interpret and archive its verified report, then finish
144
+ that exact operation before starting the next check. Within the existing task
145
+ authorization, continue these steps without separate confirmation for each one.
146
+
147
+ Feed the observation back into the suspected source path: identify which
148
+ explanation it supports, contradicts or leaves open. Run another check only if
149
+ it can resolve a remaining material distinction; do not repeat an unchanged
150
+ probe after a timeout or absent event. A normal observation outside the failing
151
+ conditions does not establish that the failing path is safe. If a repair and
152
+ deployment are in scope, repeat the relevant bounded check against the verified
153
+ updated runtime and retain both results.
154
+
155
+ Deliver the supported path, runtime conditions and capture IDs together with
156
+ any unresolved links. Distinguish a verified probe result from a demonstrated
157
+ root cause and from a verified repair. Stop when the question is answered or
158
+ the next step requires unavailable evidence, capability or user action; finish
159
+ or recover every outstanding operation under the lifecycle above. An unresolved
160
+ cause and completed display cleanup are separate outcomes.
@@ -0,0 +1,190 @@
1
+ # Native live recovery
2
+
3
+ Read this for pending input, interrupted work, contention, reload or unfinished
4
+ cleanup. Preserve the original project, CON and request. The CLI owns protocol
5
+ reconciliation; choose the next action from its continuation, not its internal stage.
6
+
7
+ ## Recover without replay
8
+
9
+ ```text
10
+ lycheedev live status <CON-id> --project <project-directory> --format json
11
+ lycheedev live resume <CON-id> --project <project-directory> --wait-seconds 120 --format json
12
+ ```
13
+
14
+ Status reads persisted evidence. Resume acquires the same connection's driver
15
+ lease, reconciles original nonces and continues within both the caller's wait
16
+ limit and the original durable deadline. Exit 6 retains usable results and
17
+ unfinished cleanup. Follow continuation: continue the same request serially,
18
+ wait for its existing call, resolve the reported external condition, or report
19
+ the exhausted budget/required decision. Do not infer a recovery action from an
20
+ internal stage alone. Keep each instance's project, CON and request separate.
21
+ Do not replace a request, edit its files, clear ownership or repeat raw input to
22
+ force progress. A cached hit never bypasses identity/checksum/fresh-confirmation
23
+ validation. Incomplete scan coverage is not proof that no result exists.
24
+
25
+ After user reload, a descriptor alone is only a candidate. Continuing business
26
+ requires a fresh bind; closing the old CON instead uses [verified retirement](#ownership-and-runtime-retirement).
27
+ Resume may attempt input-free cleanup when closing, after budget exhaustion or
28
+ from saved `runtimeEnd`, without renewing business time.
29
+ Repeatable observations can resume in a new attempt, bounded to three attempts.
30
+ For opaque execution after a possible commit, `execution_unknown` remains unknown;
31
+ inspect external postconditions using an authorized independent observation
32
+ instead of repeating the effect. A fresh runtime may prove old runtime resources
33
+ are gone without proving that the old script never changed persistent state.
34
+
35
+ A partial final journal write can be repaired under the owning driver lease only
36
+ when the entire preceding chain validates; the original bytes are retained.
37
+ Corrupt complete events, missing journals, foreign ownership, incompatible files
38
+ or an unavailable client require diagnosis. Never recreate an empty ledger to
39
+ turn uncertainty into a new operation. Report the exact blocker and retained IDs
40
+ if no safe progress remains; do not label that handoff complete.
41
+
42
+ For an intentional idle reload, use a stable request key:
43
+
44
+ ```text
45
+ lycheedev live reload --project <project-directory> --session <CON-id> --request <reload-key> --wait-seconds 120 --format json
46
+ ```
47
+
48
+ The same explicit reload can recover a bound connection whose pending exchange
49
+ cannot obtain a receipt (for example, `confirm_ready` after submitted input).
50
+ It preserves the old exchange and candidate report, uses normal input readiness,
51
+ and, while the connection remains open, requires a fresh runtime binding to
52
+ complete reload and continue business. Observation work may then become eligible
53
+ for a later resume under its existing policy.
54
+
55
+ If disconnect is already pending, explicit reload has a narrower purpose: verify
56
+ that the old runtime has ended, sending the authorized reload only if needed,
57
+ then close the old CON without binding the replacement or restarting unfinished work.
58
+ It uses its own 600-second control budget even when the original close budget is
59
+ exhausted; neither that budget nor the business budget is renewed. Keep the same
60
+ CON/project and reload request key for continuation. A submitted or uncertain
61
+ reload input is never replayed, and an active reload/recovery cannot be replaced
62
+ by a new request. Completion here means the CON is closed, not connected to the
63
+ replacement runtime; it does not prove this CLI sent or caused a reload.
64
+ Saved `runtimeEnd` evidence needs only input-free retirement.
65
+ The original input record remains the authority for what was sent.
66
+
67
+ Use this explicit recovery only when needed within the authorized task, after
68
+ inspecting the concrete blocker; pending, contention or budget exhaustion alone
69
+ does not call for reload. Without replacement proof, retain pending cleanup and
70
+ wait for the reported condition to change. The separate input-free retirement
71
+ path may close the old CON without any reload input. An unconfirmed opaque report
72
+ remains unavailable/execution_unknown; successful reload or close does not verify
73
+ it. New work on a changed actor requires its own authorized target and new CON.
74
+
75
+ `journal.resource_busy: active window driver` means another host CLI still holds
76
+ the execution lease. A game UI frame does not own that lease. Wait for the active
77
+ call to finish before recovery; pressing Escape cannot release a host lease.
78
+
79
+ Disconnect does not commit prepared business merely to finish it. If the exact
80
+ prepared exchange needs explicit reload, preserve its blocker and use the
81
+ existing reload command only within the authorized scope. Closing is not proof
82
+ that an already submitted opaque operation was cancelled or never ran.
83
+
84
+ ## Ownership and runtime retirement
85
+
86
+ A PID has one durable owner across projects and one active host driver. CLI exit
87
+ or elapsed time does not release the claim. Resolve foreign ownership with the
88
+ owning task; a crash releases the OS driver lock, not durable reservations.
89
+
90
+ Use the old CON's `live disconnect` in its owning project. The CLI can verify
91
+ PID plus creation-time process exit, or verify another runtime actually wrote a
92
+ new input sample in the same fixed process. Access errors, missing windows,
93
+ descriptors, cached addresses and old heap samples prove neither case. Runtime
94
+ replacement proof does not compare game time with the host clock. The CLI may
95
+ relocate distant sample addresses once within its existing observation budget;
96
+ this is not an Agent-directed scan or permission to extend the deadline.
97
+
98
+ For runtime replacement, the CLI saves `runtimeEnd` before retiring only the
99
+ old CON's exact reservations.
100
+ Saved proof can finish interrupted retirement even after character selection.
101
+ Without a new sample or saved proof, character selection stays pending. This path
102
+ sends no input, binds no replacement, and does not change the old actor or replay
103
+ its probe. Retain unresolved `execution_unknown` results even if `closed=true`.
104
+ A new investigation on another actor needs a new CON for the authorized target;
105
+ never automatically transfer the old request or probe.
106
+
107
+ ## Input and recovery
108
+
109
+ The CLI journals input and selects the observation adapter from the verified
110
+ runtime capability. Hybrid optical readiness keeps identity, routing and reports
111
+ memory-backed; older input-v1 runtimes use memory observations. Missing signals
112
+ do not permit blind fallback. Agents do not decode colors or manage capture.
113
+
114
+ With an ordinary focused editor, the coordinator may send one Esc and observe
115
+ again; Esc can close/cancel that UI. Combat, unknown observations, missing signals
116
+ and stale evidence do not permit Esc. Held system keys wait for release. A fresh
117
+ capture frame or changing heartbeat alone proves neither runtime identity nor
118
+ freshness of the Lua state. Do not infer readiness from a screenshot or extend
119
+ input time limits to bypass a pending result. No manual foreground-input or
120
+ color-decoding workflow is required; native invocation keys and slots belong to
121
+ the CLI.
122
+
123
+ For `receiver_binding_conflict`, `receiver_binding_ineffective`, or no effective
124
+ machine shortcut, resolve the selected target's binding conflict before further
125
+ wake attempts. Do not change user bindings or protocol keys, or repeat wake to
126
+ test the conflict. A ready input observation does not prove the shortcut reaches
127
+ the receiver. If input was already submitted or uncertain, retain the original
128
+ CON and slot reservation and follow official CLI recovery; fixing the binding
129
+ does not authorize replay of unknown input. Never delete the slot to unblock
130
+ another instance; use [verified retirement](#ownership-and-runtime-retirement)
131
+ when the original process or runtime has ended.
132
+
133
+ Input evidence is distinct from execution: `not_sent` proves zero messages were
134
+ queued; `submitted` proves only queue submission; `uncertain` (or an intent with
135
+ no outcome) does not permit replay. These facts drive CLI recovery. Do not
136
+ reinterpret them into manual retry instructions. Use the same CON/project and
137
+ `live resume`; inspect `waiting` when present. Recheck after a changed condition
138
+ within the authorized task; do not repeat indefinitely against an absent process,
139
+ foreign ownership or an unresolved opaque execution outcome.
140
+
141
+ `waiting: shared_publication` is shared-file contention inside one installation,
142
+ not proof of a lost connection. Legacy 64-slot CONs retain original-slot resume/cleanup; do not apply v2
143
+ allocation to them. The 200-slot v2 allocator can skip another
144
+ owner's reservations for a new exchange only before publication or input. The
145
+ runtime skips empty/foreign slots and stops at the first envelope for itself;
146
+ it does not skip its own pending work. Once published, submitted or uncertain,
147
+ the original slot and nonce remain fixed. Agents neither choose slots nor move
148
+ payloads; they continue the original CON/project/request serially.
149
+
150
+ A short publication lease can clear when its active call ends. If all forward
151
+ slots are occupied, continuation reports `blocker.kind: slot_pool_full` with
152
+ `condition: forward_slot_available`. Wait for actual availability to change,
153
+ usually through the owning connection's recovery; do not busy-loop resume,
154
+ delete reservations or change request keys. Capacity reload belongs to the CLI
155
+ and does not erase another instance's claim or prove unknown input never ran.
156
+ A combat or focus wait retains its reservation, not the short publication lock.
157
+
158
+ `complete` applies to the current command: a connected runtime does not complete
159
+ a pending disconnect, and a previous report does not complete reload. UI activity
160
+ and reload hints are not execution or result proof.
161
+
162
+ The whole `.lycheedev/live` directory is the recovery unit. Keep connection logs,
163
+ linked history segments, content-addressed `connections/artifacts`, target metadata
164
+ and result files together. New journals reference exact code/result bytes by digest;
165
+ older inline snapshots remain readable. Missing or corrupt referenced content is
166
+ a recovery error, never a reason to generate another request key.
167
+
168
+ ## Durable evidence and older journals
169
+
170
+ Durable deadlines are 600 seconds per business request or explicit reload,
171
+ 120 seconds for initial bind or first close, and 600 seconds for activation
172
+ carried into its bind. Time between calls counts. Resume, repeated close and
173
+ changing request keys do not extend a goal. Close retains its own allowance
174
+ after business exhaustion; existing evidence remains readable. Detected clock
175
+ rollback stops automatic work; an unseen offline clock change cannot be detected.
176
+
177
+ Older channel-v1 journals receive one marked legacy budget window on their first
178
+ drive, persisted before input; reading status does not migrate them. That window
179
+ starts at migration because prior elapsed time is unavailable. A CLI wait timeout
180
+ or interruption ends the host call, not the game-side probe or its cleanup.
181
+ New writes use channel-v2 (activation-v2 for activation); older CLIs cannot drive
182
+ those journals. A cancelled host wait uses exit 7; it does not confirm Lua cancellation.
183
+
184
+ Cleanup callback failures retain the verified report and trigger a journaled
185
+ reload; a fresh binding then records `cleanupMethod: runtime_destroyed`. The
186
+ original `resourcesReleased: false` is preserved. It is distinct from a normal
187
+ release acknowledgement. Journal segments rotate only at idle boundaries and
188
+ remain linked under the connection's `.jsonl.history` directory; preserve these
189
+ alongside the active log. A missing segment must not be worked around by issuing
190
+ a new request key.
@@ -1,137 +1,67 @@
1
- # First contact and startup recovery
2
-
3
- Read this when no usable session exists or the addon was just installed or
4
- updated. Use the installed CLI's help/describe contract for the exact recovery
5
- command surface.
6
-
7
- ## Interpret the actual failure
8
-
9
- Read `context.candidates` as well as the top-level error. In the current CLI,
10
- `live.candidate_missing` means no eligible match, which can include a window
11
- whose identity could not be read.
12
-
13
- | Observation | Next useful step |
14
- | --- | --- |
15
- | Empty candidate list | Check current process and installation constraints. A path spelling mismatch is not proof that the game is offline. Reuse the installation spelling returned by discovery with older CLIs. |
16
- | Several eligible matches | Present product/build, character and realm; resolve the remaining ambiguity before mutation. |
17
- | `busy` | Preserve the owner's operation ID. Recover your own operation; do not steal another agent's window or reload it through desktop tools. For explicit user-authorized abandonment of an eligible probe, follow [live-investigation.md](live-investigation.md). Source/data work can continue. |
18
- | `identity_unreadable` | Inspect disk status and runtime evidence below. A timeout does not identify the cause. `capture: frame` does not prove the game is logged in or the addon loaded. |
19
- | `no_actor`, restricted identity, or not-ready input | Act on the returned reason. Login/character selection needs task authorization; combat or text focus must actually clear before retrying. |
20
- | A pending bootstrap attempt with `BTP-...` | Inspect `live status <id>`, then `live resume <id>` on that ID. Status is read-only; resume may retry only when durable progress proves commit was not sent. At the commit fence or with uncertain input it only observes. Retain the selected window and installation. |
21
-
22
- Inspect disk state with:
23
-
24
- ```text
25
- lycheedev addon status --installation <client-directory> --format json
26
- ```
27
-
28
- `managed` proves receipt/file integrity, not a loaded runtime. `absent` needs an
29
- installation within the task's scope; consult [installation.md](installation.md).
30
- Modified/unmanaged files require the documented delivery/recovery path, not an
31
- overlay copy. An update may also leave a running older release: compare actual
32
- runtime evidence rather than treating the on-disk release as already loaded.
33
-
34
- First contact, identify, connect and reset can send input before a session
35
- exists. The CLI records those attempts before input and returns a durable
36
- `BTP-...` ID when acceptance is unresolved. Recover that ID before starting
37
- another attempt; queued keystrokes or a visible QR alone do not establish
38
- acceptance. An unknown result does not release another operation's ownership.
39
- If recovery cannot resolve it and the user explicitly decides to stop, `live
40
- abandon <BTP-id>` preserves the unknown result and releases host ownership
41
- without game input. It does not prove that identify, connect or reset had no
42
- effect. Do not use abandonment as an automatic retry step.
43
-
44
- ## Existing custom receiver bindings
45
-
46
- The normal profile is `ALT-CTRL-]` wake, `ALT-CTRL-SHIFT-]` submit and
47
- `ALT-CTRL-[` close. Settings is read-only. Do not direct the user to edit bindings
48
- there or change them during ordinary connection recovery. Older saved overrides
49
- and the advanced local command can still exist; only handle them when supplied
50
- by the user or verified configuration. Conflicting or ineffective bindings are
51
- rejected without changing the player's account bindings.
52
-
53
- First contact cannot read a custom wake chord before waking the addon. If the
54
- user or verified configuration supplies it, pass the exact chord with
55
- `--wake-binding` to `live instances`, `live connect`, `live reset`, or `live
56
- bind` (with their other required target arguments). `live bind` is for an addon
57
- already connected through its local `/dev connect`: it sends an identity
58
- trigger, checks the effective profile in the fresh receipt, and saves the
59
- connection. It is a game input action even though it does not run business Lua.
60
- The CLI checks the effective three-chord profile in a fresh ready receipt and
61
- saves it with the session.
62
- Do not guess alternate chords after a timeout or infer that a stored value
63
- became effective without a ready receipt. A later configuration change requires
64
- fresh connection evidence before the CLI sends another command.
65
-
66
- ## Activate a runtime without a bridge session
67
-
68
- If identity cannot be read, do not call session-bound `live reload` with an
69
- invented or stale session or alternate connect/reload in a loop. First inspect
70
- the exact selected process, clean managed installation and available runtime
71
- evidence. Distinguish disabled, missing, load error and an older running release
72
- when observable; leave the cause unknown otherwise.
73
-
74
- Chat showing `Lychee Dev: identity_busy` (visible in a screenshot) is the
75
- signature of a stuck in-game queue, not a missing addon. Before any UI
76
- maintenance, try the dedicated recovery once on the unowned window:
1
+ # Native live startup and installation
2
+
3
+ Use this reference for first installation, an upgraded addon, or contact without
4
+ a usable CON connection. Disk installation and runtime activation are separate.
5
+ The CLI owns the main addon and 200 LoadOnDemand slots (slot-v2); never overlay-copy files,
6
+ edit slot payloads or import old queues/SavedVariables.
7
+
8
+ Use the shared installation candidates to select a verified client directory;
9
+ directory names alone do not establish product identity. A game root may contain
10
+ several clients, and a client may have several processes: retain the selected path,
11
+ PID and later character binding. Resolve only remaining ambiguity, not a fresh
12
+ choice on every retry. Local selection errors never authorize another installation.
13
+
14
+ 1. Select the authorized installation and PID. Inspect `addon status`; the main
15
+ addon must be a clean managed installation matching the CLI, and all 200 slot
16
+ files must pass inspection. Use [installation](installation.md) for deployment.
17
+ 2. Use `live connect` with the invoking project's `--project` and exact target.
18
+ It discovers memory identity and binds with a new nonce. If the runtime is
19
+ absent, it records an activation and performs one fixed reload automatically.
20
+ 3. Preserve any returned CON ID, including activation-pending results. Use status
21
+ and resume in the same project; do not start another connection or resend keys.
22
+
23
+ A legacy 64-slot installation needs managed migration before new work. Existing 64-slot CONs may resume and clean up their original exchanges in
24
+ the original slots; new connections require the 200-slot runtime. Retained old
25
+ records also remain usable as read-only evidence and retirement proof. New connect can activate an old loaded runtime through a journaled
26
+ reload after migration. Verify activation separately for every authorized PID,
27
+ including same-build instances sharing one installation: 200 files on disk do
28
+ not prove any running client loaded them. If the client cannot discover the full
29
+ inventory, `restart_required` requires a scoped client restart; do not loop reloads.
30
+
31
+ After an intentional installation/update with no usable connection, explicit
32
+ activation is also available:
77
33
 
78
34
  ```text
79
- lycheedev live reset --pid <pid> --installation <client> --snapshot <pin> --format json
35
+ lycheedev live reload fallback --project <project-directory> --installation <client> --pid <pid> --request <activation-key> --wait-seconds 120 --format json
80
36
  ```
81
37
 
82
- It sends one fixed nonce-correlated trigger that tombstones the current
83
- character's unacknowledged queue entries and reconnects through the normal
84
- bootstrap. Disk-owned windows are refused. A pending result means no matching
85
- receipt was observed; the trigger may already have executed or displayed a
86
- receipt. Keep that outcome unknown and do not repeat it without new evidence.
87
-
88
- For installation activation or a bridge that cannot be reached, use the selected
89
- target's fixed CLI fallback when that action is authorized:
90
-
91
- ```text
92
- lycheedev live reload fallback --installation <client-directory> --pid <pid> --request <stable-key> --format json
93
- ```
94
-
95
- Pass `--session <prior-session>` when a valid prior session helps correlate the
96
- same window and actor. If the selected addon has a known custom wake chord,
97
- pass that exact `--wake-binding <chord>` to the sessionless fallback too; it
98
- must not guess alternate chords after reload. This command alone may send
99
- `Esc` three times, `Enter`,
100
- `/reload`, then `Enter`. The CLI records an `OP-...` attempt and each input step
101
- before sending, checks the exact process/window and clean managed addon, and
102
- verifies the new runtime afterward. Delivery of keys, a black frame or changed
103
- file time alone does not prove activation. Resume the returned operation ID to
104
- observe an unresolved attempt; it must not resend keys whose outcome is unknown.
105
- Do not use fallback to bypass another operation owner or repeat it with a new
106
- request key merely because a receipt is missing.
107
- If observation cannot resolve a fixed reload and the user explicitly decides
108
- to stop, `live abandon <OP-id>` preserves its input progress and unknown
109
- runtime result while releasing host ownership without game input. It does not
110
- establish that reload failed or undo any keys already delivered.
111
-
112
- If the addon is disabled in the game UI, reload alone cannot enable it. When
113
- the authorized task includes enabling it and a supported desktop tool is
114
- available, verify the selected process and ownership, make the observed UI
115
- change, then use the CLI for runtime and identity verification. A screenshot can
116
- guide UI maintenance; real-game acceptance uses WGC evidence. Do not infer from
117
- a successful UI click that the new addon version loaded.
118
-
119
- After an observed activation or other relevant state change, run one constrained
120
- `live connect` using the existing fixed snapshot. Only its fresh identity and
121
- ready evidence establish the session. A second failure without new evidence ends
122
- this attempt: retain the result and diagnose it rather than repeat input.
123
-
124
- If a required enable action cannot be performed, report that specific gap and
125
- retain the selected target and any attempt ID. Do not ask the user to type
126
- `/dev connect` as a routine bridge step.
127
-
128
- ## Return to atomic live commands
129
-
130
- Once connected, use [live-investigation.md](live-investigation.md): standalone
131
- reload requires the returned session and a stable request key; an interrupted
132
- operation resumes by its original ID. A successful connection is not a probe,
133
- reload, upgrade or full regression pass. Continue the authorized task through
134
- report retrieval, acknowledgement and final receipt dismissal in the same turn.
135
- Only when genuinely blocked, hand off the selected installation, snapshot,
136
- session/operation IDs, actual disk/runtime observations and the next action;
137
- do not hand off an unverified cause as fact.
38
+ The CLI selects the verified runtime's input observation path. Capable runtimes
39
+ use normal readiness checks; missing signals or stale evidence stay pending.
40
+ Only supported first-install/older-runtime conditions permit the fixed activation
41
+ fallback. Agents do not send that key sequence manually. Input intent and outcome
42
+ are journaled; repeating the request resumes activation without replaying uncertain
43
+ input. A startup beacon is only a temporary hint, never identity or bind proof.
44
+
45
+ If the game is at character selection, loading, in combat, explicitly disabled,
46
+ or otherwise cannot accept the narrow input, preserve pending evidence and
47
+ inspect that condition. An absent descriptor does not prove a build mismatch or
48
+ that a reload executed. Client versions that cannot discover newly installed
49
+ addon folders through reload may require a client restart; do not loop reloads
50
+ or claim that disk files prove those folders are loaded. Keep the selected actor
51
+ and installation fixed. A restart or character switch follows the user's scope.
52
+
53
+ ## Ownership and recovery
54
+
55
+ Retain the original CON and project on failed activation or interrupted cleanup.
56
+ A foreign owner's claim is not an expired timeout. Use [ownership and runtime
57
+ retirement](live-recovery.md#ownership-and-runtime-retirement) for process exit,
58
+ character changes or a replaced runtime; never delete claims or slot files.
59
+
60
+ Do not use legacy bind/reset/QR commands for a native CON connection. The fixed
61
+ keys are part of the protocol; changing them in the UI or through an external
62
+ macro would desynchronize the CLI. Slot allocation, publication, consumption,
63
+ capacity reload and shared-installation coordination belong to the CLI.
64
+
65
+ When activation completes, continue the authorized investigation immediately via
66
+ [live-investigation](live-investigation.md). Connection-only tasks do not need a
67
+ fabricated probe; close their quiescent CON with `live disconnect` when done.
@@ -44,6 +44,18 @@ with sample count and timer resolution. Offline replay timings cannot establish
44
44
  game startup latency. If the hang occurs during input before execution, examine
45
45
  the input path rather than attributing it to the probe's business logic.
46
46
 
47
+ For native transport measurements, separate optical waiting, memory discovery,
48
+ point reads, input dispatch, probe execution, result retrieval and diagnostic
49
+ flush. A small capture ROI reduces copied/decoded pixels; it does not mean WGC's
50
+ whole-window capture cost is equally small. Keep cache setting, window state,
51
+ foreground/background FPS, loaded capability and candidate binary fixed when
52
+ comparing runs. Preserve scan coverage and counts where the CLI records them;
53
+ report transport completion, `report.ok` and cleanup separately. A failed probe
54
+ assertion is not successful performance validation merely because transport
55
+ retrieved it. Results from the old memory-only path do not validate the hybrid
56
+ path or a different candidate. Same-build instances are separate measurements,
57
+ not interchangeable targets.
58
+
47
59
  ## Preserve live ownership and bound the experiment
48
60
 
49
61
  Prefer a private replay instance for registry/index experiments. Check that it
@@ -61,7 +73,7 @@ Use existing counters or bounded traversal before scanning all globals/frames.
61
73
  For each scenario record its preconditions, live/replay/dependency status,
62
74
  duration/work/output bounds, correctness invariant and cleanup checks. Use the
63
75
  current probe API (`probe:Async`, `probe:OnCleanup`, `probe:Finish` or
64
- `probe:Fail`) described in the live reference for callback-based work. Bound each
76
+ `probe:Fail`) described in [bounded probes](live-probes.md#write-bounded-probes) for callback-based work. Bound each
65
77
  batch as well as the whole run, invalidate late callbacks and stop owned work
66
78
  before publishing. A deadline cannot preempt a long synchronous native call.
67
79
  Keep measurement separate from report construction and invariant checks.
@@ -78,8 +90,10 @@ size; do not substitute an enormous manual paste when CLI delivery is available.
78
90
  Read the verified report and retain its operation/capture IDs. Distinguish live,
79
91
  replay, missing dependency, failed, timeout and not-tested scenarios. Keep failed
80
92
  rounds and raw deltas, not only the fastest result. Describe attribution limits,
81
- observer cost and any incomplete restoration. Complete the normal ACK and
82
- receipt cleanup even when the probe produced a verified diagnostic error.
93
+ observer cost and any incomplete restoration. Let native execute/resume finish
94
+ its verified report and runtime release even when the probe produced a diagnostic
95
+ error; native CON work has no extra ACK or finish step. Follow [recovery](live-recovery.md)
96
+ when cleanup remains pending, preserving the usable report.
83
97
 
84
98
  A memory-reduction proposal must also account for retained roots, companion
85
99
  packages, restoration latency and business equivalence; moving cost elsewhere