lycheedev 3.1.1 → 3.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. package/README.md +16 -38
  2. package/THIRD_PARTY_NOTICES +4 -314
  3. package/bin/lycheedev.mjs +1 -1
  4. package/bin/update.mjs +26 -32
  5. package/native/windows-amd64/lycheedev.exe +0 -0
  6. package/package.json +1 -1
  7. package/payload/addon/Bindings.xml +12 -0
  8. package/payload/addon/Bridge/ActivityView.lua +2 -5
  9. package/payload/addon/Bridge/CaptureWriter.lua +9 -115
  10. package/payload/addon/Bridge/FocusBindings.lua +71 -0
  11. package/payload/addon/Bridge/InputProtection.lua +2 -9
  12. package/payload/addon/Bridge/InputState.lua +15 -19
  13. package/payload/addon/Bridge/MemoryProtocol.lua +1 -1
  14. package/payload/addon/Bridge/ProbeExecution.lua +1 -0
  15. package/payload/addon/Bridge/ReceiverBindings.lua +73 -279
  16. package/payload/addon/Bridge/SlotProtocol.lua +30 -12
  17. package/payload/addon/Bridge/SlotRuntime.lua +9 -12
  18. package/payload/addon/Core/ClientGate.lua +2 -0
  19. package/payload/addon/Core/Compat.lua +25 -24
  20. package/payload/addon/Core/Controls.lua +27 -248
  21. package/payload/addon/Core/Execute.lua +22 -19
  22. package/payload/addon/Core/Locale.lua +4 -116
  23. package/payload/addon/Core/Locale_enUS.lua +4 -116
  24. package/payload/addon/Core/Persistence.lua +2 -2
  25. package/payload/addon/Core/Runtime.lua +46 -64
  26. package/payload/addon/Core/Serializer.lua +9 -1
  27. package/payload/addon/Core/Startup.lua +20 -0
  28. package/payload/addon/Core/Stores.lua +63 -95
  29. package/payload/addon/LICENSE +21 -0
  30. package/payload/addon/Lychee Dev.toc +10 -21
  31. package/payload/addon/Modules/AutomationView.lua +47 -383
  32. package/payload/addon/Modules/Diagnostics.lua +0 -4
  33. package/payload/addon/Modules/Events/Catalog.lua +1 -1
  34. package/payload/addon/Modules/Events/CatalogData_Anniversary.lua +1489 -0
  35. package/payload/addon/Modules/Events/CatalogData_Era.lua +1489 -0
  36. package/payload/addon/Modules/FunctionTrace.lua +17 -6
  37. package/payload/addon/Modules/ObjectInspector.lua +27 -25
  38. package/payload/addon/THIRD_PARTY_NOTICES +483 -0
  39. package/payload/addon/UI/Pages/Automation.lua +7 -64
  40. package/payload/addon/UI/Pages/Events.lua +0 -4
  41. package/payload/addon/UI/Pages/ExportRecords.lua +1 -1
  42. package/payload/addon/UI/Pages/Object.lua +5 -4
  43. package/payload/addon/UI/Pages/Run.lua +7 -1
  44. package/payload/addon/UI/TreeView.lua +0 -11
  45. package/payload/addon/UI/Widgets.lua +0 -102
  46. package/payload/addon/UI/Window.lua +0 -6
  47. package/payload/skill/SKILL.md +11 -2
  48. package/payload/skill/references/commands.md +17 -27
  49. package/payload/skill/references/data-hotfix.md +6 -3
  50. package/payload/skill/references/data-investigation.md +5 -2
  51. package/payload/skill/references/data-tables.md +4 -0
  52. package/payload/skill/references/data-targets.md +4 -2
  53. package/payload/skill/references/installation.md +9 -3
  54. package/payload/skill/references/live-investigation.md +14 -6
  55. package/payload/skill/references/live-probes.md +9 -8
  56. package/payload/skill/references/live-recovery.md +75 -42
  57. package/payload/skill/references/live-startup.md +97 -76
  58. package/payload/skill/references/runtime-investigations.md +10 -8
  59. package/payload/skill/references/source-preparation.md +23 -2
  60. package/payload/skill/references/source-research.md +58 -5
  61. package/payload/skill/scripts/lycheedev.mjs +16 -12
  62. package/release.json +136 -176
  63. package/payload/addon/Bridge/Definitions.lua +0 -3
  64. package/payload/addon/Bridge/FaultRunner.lua +0 -44
  65. package/payload/addon/Bridge/Identity.lua +0 -127
  66. package/payload/addon/Bridge/InputProtocol.lua +0 -76
  67. package/payload/addon/Bridge/InputSignal.lua +0 -36
  68. package/payload/addon/Bridge/Investigation.lua +0 -159
  69. package/payload/addon/Bridge/MatrixSymbol.lua +0 -1169
  70. package/payload/addon/Bridge/ProbeQueue.lua +0 -205
  71. package/payload/addon/Bridge/ProbeRunner.lua +0 -349
  72. package/payload/addon/Bridge/ReceiptView.lua +0 -316
  73. package/payload/addon/Bridge/Receiver.lua +0 -326
  74. package/payload/addon/Bridge/Reentry.lua +0 -261
  75. package/payload/addon/Bridge/ReportStore.lua +0 -224
  76. package/payload/addon/Bridge/Session.lua +0 -173
  77. package/payload/addon/Bridge/StartupBeacon.lua +0 -63
@@ -6,16 +6,24 @@ observation establishes what happened on its selected client and conditions.
6
6
 
7
7
  Start with retained state: status/results for an existing CON, [recovery](live-recovery.md)
8
8
  for unfinished work, or select/connect below for a new task. Reuse a matching
9
- idle CON. Read [startup](live-startup.md) when activation or installation is needed.
9
+ idle CON. For activation, missing readiness or installation problems, use the
10
+ [doctor/startup workflow](live-startup.md); diagnosis itself sends no input.
10
11
  Use [retained errors](error-diagnosis.md) or [performance measurement](runtime-investigations.md)
11
12
  when they answer the question; write a [probe](live-probes.md) only for missing evidence.
12
13
 
13
- Native 3.1 uses a build-bound Lua root and the named public Mailbox, with a
14
- matching clean 200-slot installation. The CLI validates the current process,
14
+ Lycheedev mailbox protocol v1 uses runtime instruction matching and RIP-relative
15
+ displacement decoding to locate the Lua root and named public Mailbox, with a
16
+ matching clean 500-slot installation. The CLI validates the current process,
15
17
  typed path, publication, owner/fence, challenge and exact result. Old native
16
- wire/identity is rejected. Unsupported code/layout, ambiguity or read gaps
17
- fail closed; they do not invoke a heap scanner or reuse another build's RVA.
18
- `--no-cache` follows this same path. Raw address research is a separate task.
18
+ wire/identity is rejected. Forever scans readable module code, retains short-read
19
+ bytes, decodes RIP targets and deduplicates roots before Lua/Mailbox validation.
20
+ Root evidence records coverage gaps: a successful lookup with `scanComplete=false`
21
+ does not establish uniqueness across unreadable code. Unsupported code/layout
22
+ or unresolved root ambiguity stops discovery; it never invokes a heap scanner
23
+ or reuses another build's RVA.
24
+ `--no-cache` remains accepted for compatibility; both forms use this same
25
+ current guarded lookup. Historical CLI versions require their own contract and
26
+ implementation evidence. Raw address research is a separate task.
19
27
 
20
28
  ## Select and connect
21
29
 
@@ -10,8 +10,7 @@ lycheedev live probe put --name <name> --file <probe.lua> --format json
10
10
  ```
11
11
 
12
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.
13
+ with native execute. The CLI owns slot publication, confirmation and cleanup.
15
14
 
16
15
  ```text
17
16
  lycheedev live execute --project <project-directory> --session <CON-id> --probe <PRB-revision> --request <stable-key> --budget-seconds 35 --policy observation --wait-seconds 120 --format json
@@ -124,8 +123,9 @@ with an Agent-chosen duration no longer than the remaining probe budget; there
124
123
  is no separate five-second cap. Use
125
124
  `probe:ReleaseInput()` immediately after the exclusive actions; the remainder
126
125
  of an async probe runs normally. Completion and errors release before user
127
- cleanup. The hard deadline, combat, leaving the world or Ctrl+Alt+[ release the
128
- shield and fail the active probe rather than silently continuing unprotected.
126
+ cleanup. The hard deadline, combat, leaving the world or runtime cancellation release
127
+ the shield and fail the active probe rather than silently continuing unprotected.
128
+ There is no separate input-protection cancel binding.
129
129
  Use `probe:IsInputProtected()` to observe this probe's lease. Late callbacks and
130
130
  old lease timers cannot resume a finished probe or release a newer lease.
131
131
 
@@ -133,10 +133,11 @@ This is an in-game input shield, not an OS-wide lock, protection from disconnect
133
133
  or a source of secure hardware-action authority. Keep checking scene prerequisites
134
134
  even while protected. Use bounded Lua: a blocked synchronous Lua callback cannot
135
135
  be preempted by a Lua timer. Slot loading protects only its short dispatch burst
136
- (two-second safety deadline) and releases before business entry. Fixed reload
137
- retains the host's serialized, bounded input transaction; it must work even when
138
- the addon is not loaded, so an in-game takeover indicator is not guaranteed for
139
- that fallback. Never hold a game shield while scanning memory or awaiting reload.
136
+ (two-second safety deadline) and releases before business entry. Reload retains the host's serialized, bounded input transaction and requires
137
+ compatible fresh INPUT with the actual reload binding. If no compatible runtime
138
+ is loaded, follow [live startup](live-startup.md) and ask for one manual reload;
139
+ do not send an unverified key. Never hold a game shield while scanning memory
140
+ or awaiting reload.
140
141
 
141
142
  Combat lockdown and secret values are trust boundaries. Check them before
142
143
  comparison, formatting or branching. Record unavailable and truncated values
@@ -11,7 +11,9 @@ lycheedev live status <CON-id> --project <project-directory> --format json
11
11
  lycheedev live resume <CON-id> --project <project-directory> --wait-seconds 120 --format json
12
12
  ```
13
13
 
14
- Status reads persisted evidence. Resume acquires the same connection's driver
14
+ Status reads persisted evidence; retained identity/input is not a fresh sample
15
+ and cannot establish that a user reload or character change did not happen.
16
+ Resume acquires the same connection's driver
15
17
  lease, reconciles original nonces and continues within both the caller's wait
16
18
  limit and the original durable deadline. Exit 6 retains usable results and
17
19
  unfinished cleanup. Choose from the returned `continuation`, including its
@@ -19,13 +21,27 @@ goal, blocker condition and remaining budget:
19
21
 
20
22
  | Kind | Next action |
21
23
  | --- | --- |
22
- | `continue` | Continue the original CON serially within its budget; reconcile the receipt or focus condition |
24
+ | `continue` | Continue the original CON serially within its budget when no unresolved hard error prevents progress; reconcile the receipt or focus condition |
23
25
  | `wait_active_driver` | Wait for the existing host call; do not start a competing resume |
24
26
  | `wait_external` | Resolve or wait for the named dependency to change, then resume |
25
27
  | `needs_decision` | Inspect the concrete outcome/blocker and choose an action covered by the task's scope |
26
28
  | `budget_exhausted` | Retain results and consider permitted cleanup/recovery; do not renew business time |
27
29
  | `completed` | Read this command's terminal outcome; check whether the overall investigation is done |
28
30
 
31
+ Continuation describes the retained goal, not permission to ignore a returned
32
+ error. `continue` together with `retryable=false` calls for diagnosing that
33
+ concrete read/compatibility failure, then retrying only after relevant evidence
34
+ or a prerequisite changes. Keep the original CON; do not busy-loop resume or
35
+ request repeated reloads. A read failure alone proves neither runtime retirement
36
+ nor that a submitted input was unexecuted.
37
+
38
+ For a verified report whose attempted release has no exact receipt, the CLI
39
+ observes the original receipt for five seconds, then journals one automatic
40
+ cleanup reload within the original operation deadline. Resume the same CON;
41
+ do not issue a new probe or resend release. Reload still requires fresh INPUT,
42
+ and cleanup completes only after verified runtime retirement. The report and
43
+ original attempt remain unchanged.
44
+
29
45
  `needs_decision` is not an automatic permission prompt. Necessary recovery can
30
46
  already be authorized; an unresolved opaque effect may instead require an
31
47
  independent observation or a truthful handoff. Do not infer recovery from an
@@ -77,6 +93,11 @@ replacement runtime; it does not prove this CLI sent or caused a reload.
77
93
  Saved `runtimeEnd` evidence needs only input-free retirement.
78
94
  The original input record remains the authority for what was sent.
79
95
 
96
+ This closing recovery also covers an initial bind whose input was attempted but
97
+ never acknowledged: disconnect first preserves closing intent, then the same
98
+ explicit reload can retire it. It does not bind the replacement or resend the
99
+ old bind. An ordinary unbound connection does not gain reload permission.
100
+
80
101
  Use this explicit recovery only when needed within the authorized task, after
81
102
  inspecting the concrete blocker; pending, contention or budget exhaustion alone
82
103
  does not call for reload. Without replacement proof, retain pending cleanup and
@@ -96,6 +117,15 @@ prepared exchange needs explicit reload, preserve its blocker and use the
96
117
  existing reload command only within the authorized scope. Closing is not proof
97
118
  that an already submitted opaque operation was cancelled or never ran.
98
119
 
120
+ An activation may be prepared or waiting for manual reload before a connection journal
121
+ exists. `live disconnect` can cancel it without game input only when its saved
122
+ state proves no input intent or a `not_sent` outcome with zero queued messages
123
+ and no input progress. It preserves the activation record as
124
+ `activation_cancelled` and releases only its exact window owner. Status, resume
125
+ and repeated disconnect retain this terminal state; `closed=true` does not
126
+ claim a successful activation or business result (`complete=false`). Submitted,
127
+ uncertain or runtime-selected activations do not use this cancellation path.
128
+
99
129
  ## Ownership and runtime retirement
100
130
 
101
131
  A PID has one durable owner across projects and one active host driver. CLI exit
@@ -122,24 +152,31 @@ never automatically transfer the old request or probe.
122
152
 
123
153
  ## Input and recovery
124
154
 
125
- The CLI journals input and selects the observation adapter from the verified
126
- current runtime capability. Hybrid optical readiness keeps identity, routing
127
- and reports Mailbox-backed. Unsupported native wire/input versions are rejected;
128
- they are not a memory-only fallback. Missing signals do not permit blind input.
129
- Agents do not decode colors, manage capture or locate memory addresses.
130
-
131
- With an ordinary focused editor, the coordinator may send one Esc and observe
132
- again; Esc can close/cancel that UI. Combat, unknown observations, missing signals
133
- and stale evidence do not permit Esc. Held system keys wait for release. A fresh
134
- capture frame or changing heartbeat alone proves neither runtime identity nor
135
- freshness of the Lua state. Do not infer readiness from a screenshot or extend
136
- input time limits to bypass a pending result. No manual foreground-input or
137
- color-decoding workflow is required; native invocation keys and slots belong to
138
- the CLI.
139
-
140
- For `receiver_binding_conflict`, `receiver_binding_ineffective`, or no effective
141
- machine shortcut, resolve the selected target's binding conflict before further
142
- wake attempts. Do not change user bindings or protocol keys, or repeat wake to
155
+ The CLI journals input under Lycheedev mailbox protocol v1. Current Mailbox
156
+ records carry input readiness, identity, routing and results. Native input does
157
+ not use colors, capture, QR or a startup beacon. Missing or stale input records
158
+ never authorize keys or a blind reload fallback.
159
+
160
+ Ordinary EditBoxes forward only the two formal Lychee Dev actions while the
161
+ bridge is enabled. Focus and draft text stay intact. Current INPUT publishes
162
+ `escapeLimit=0`; no Esc is needed. Password, secure text, protected or forbidden
163
+ editors return `input_focus_unavailable`; retain the CON and wait for the user to
164
+ leave that field. Combat, loading and stale evidence never authorize keys.
165
+ Held Ctrl, Alt, Shift, either Win key or a key in the selected chord delays input
166
+ until release. The CLI never forces the user's physical keys up. A user can
167
+ still interrupt a chord after that check; only the addon receipt confirms execution.
168
+
169
+ The enabled INPUT sampler remains active when an AFK interface hides UIParent.
170
+ Loading, world state and focus checks still apply. Fresh telemetry does not
171
+ prove that a third-party keyboard frame forwards the binding.
172
+
173
+ In-game edit focus differs from Windows foreground focus. Input targets the
174
+ verified HWND through PostMessage without activating or stealing the foreground.
175
+ The CLI verifies process/window identity and rejects minimized targets. Agents
176
+ do not send keys, clear focus, decode colors or locate memory addresses manually.
177
+
178
+ For `input_binding_unavailable`, run `live doctor` on the same CON and resolve
179
+ the selected target’s effective binding before further input. Do not change user bindings or protocol keys, or repeat wake to
143
180
  test the conflict. A ready input observation does not prove the shortcut reaches
144
181
  the receiver. If input was already submitted or uncertain, retain the original
145
182
  CON and slot reservation and follow official CLI recovery; fixing the binding
@@ -147,21 +184,17 @@ does not authorize replay of unknown input. Never delete the slot to unblock
147
184
  another instance; use [verified retirement](#ownership-and-runtime-retirement)
148
185
  when the original process or runtime has ended.
149
186
 
150
- After the owner resolves the actual key conflict, the native addon supports
151
- manual `/dev receiver reset` to reselect its fixed primary/backup profiles. It refuses combat,
152
- active receiver input and remaining conflicts; it does not change account keys
153
- or saved custom profiles. This command repairs bindings only, not the CON or
154
- pending exchange. If the CLI cannot send input, ask the owner for this specific
155
- repair instead of sending raw keys. A reload retires the old runtime; close its
156
- original CON through verified retirement before a new investigation.
157
-
158
- Native INPUT v3 publishes the actually effective F12 or F11 profile, paired with
159
- hybrid v2. Primary conflicts produce a warning and try the backup without
160
- changing the player's bindings. The CLI verifies this profile before sending;
161
- agents must not choose a chord from the warning, mix profiles or substitute a
162
- key themselves. If both profiles conflict, resolve that specific conflict with
163
- the owner; ready colors alone do not authorize input. A fixed-F12 older runtime
164
- is not compatible with this profile contract.
187
+ The in-game keybinding settings contain execute and reload under Lychee Dev.
188
+ Defaults are Ctrl+Alt+F12 and Ctrl+Alt+F11, with F10/F9 as conflict fallbacks.
189
+ Existing assignments are preserved. `/dev receiver reset` fills missing actions
190
+ using free defaults; it does not overwrite player keys or repair a pending CON.
191
+ The CLI reads actual effective bindings from Mailbox; never substitute a chord.
192
+ Reload uses its own game binding and calls the UI reload API directly. Legacy
193
+ input-v3/hybrid-v2 grants no new keys; install the current addon, reload manually
194
+ and resume the retained activation.
195
+ The previous name of the two-key protocol is different: its fresh INPUT with
196
+ zero Esc may authorize only the upgrade reload. Let the CLI complete that step;
197
+ the new runtime publishes the full current name before business resumes.
165
198
 
166
199
  Input evidence is distinct from execution: `not_sent` proves zero messages were
167
200
  queued; `submitted` proves only queue submission; `uncertain` (or an intent with
@@ -177,10 +210,9 @@ replay. Diagnose unsupported roots/layouts or read gaps from retained evidence;
177
210
  do not fix them by copying an RVA, scanning memory or looping reloads.
178
211
 
179
212
  `waiting: shared_publication` is shared-file contention inside one installation,
180
- not proof of a lost connection. Native 3.1.0 requires the new Mailbox wire,
181
- identity and 200-slot pool; it rejects older native connection identities.
182
- Retain incompatible evidence for its matching older CLI rather than applying
183
- the new driver to it. The current 200-slot allocator can skip another
213
+ not proof of a lost connection. Native 3.2 development requires the Mailbox wire,
214
+ identity and 500-slot pool; it rejects older native connection identities.
215
+ Retain incompatible evidence for diagnosis; current drivers cannot execute old-wire journals. The current 500-slot allocator can skip another
184
216
  owner's reservations for a new exchange only before publication or input. The
185
217
  runtime skips empty/foreign slots and stops at the first envelope for itself;
186
218
  it does not skip its own pending work. Once published, submitted or uncertain,
@@ -197,7 +229,7 @@ A combat or focus wait retains its reservation, not the short publication lock.
197
229
 
198
230
  `complete` applies to the current command: a connected runtime does not complete
199
231
  a pending disconnect, and a previous report does not complete reload. UI activity
200
- and reload hints are not execution or result proof.
232
+ is not execution or result proof.
201
233
 
202
234
  The whole `.lycheedev/live` directory is the recovery unit. Keep connection logs,
203
235
  linked history segments, content-addressed `connections/artifacts`, target metadata
@@ -209,14 +241,15 @@ a recovery error, never a reason to generate another request key.
209
241
 
210
242
  Durable deadlines are 600 seconds per business request or explicit reload,
211
243
  120 seconds for initial bind or first close, and 600 seconds for activation
212
- carried into its bind. Time between calls counts. Resume, repeated close and
244
+ carried into its bind. Waiting for the first manual reload starts no connection
245
+ budget until the new runtime is observed. Other time between calls counts. Resume, repeated close and
213
246
  changing request keys do not extend a goal. Close retains its own allowance
214
247
  after business exhaustion; existing evidence remains readable. Detected clock
215
248
  rollback stops automatic work; an unseen offline clock change cannot be detected.
216
249
 
217
250
  Current native writes use channel-v2 and activation-v3 with the current Mailbox
218
251
  identity. Older native wire/identity journals are rejected before driving or
219
- budget migration; preserve them for diagnosis with their matching release.
252
+ budget migration; preserve them for read-only diagnosis.
220
253
  An older artifact serialization within a compatible connection is a different
221
254
  case and does not establish old-wire compatibility. A CLI wait timeout or
222
255
  interruption ends the host call, not the game-side probe or its cleanup.
@@ -1,80 +1,101 @@
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
- Native 3.1.0 uses the public Mailbox with wire06, slot-v3, identity-v2 and
6
- input-v3 with hybrid-v2 readiness and the effective F12/F11 binding profile.
7
- The CLI owns the main addon and 200 LoadOnDemand slots; never overlay-copy files,
8
- edit slot payloads or import old queues/SavedVariables.
9
-
10
- Use the shared installation candidates to select a verified client directory;
11
- directory names alone do not establish product identity. A game root may contain
12
- several clients, and a client may have several processes: retain the selected path,
13
- PID, process creation identity and later character binding. Resolve only remaining ambiguity, not a fresh
14
- choice on every retry. Local selection errors never authorize another installation.
15
-
16
- 1. Select the authorized installation and PID. Inspect `addon status`; the main
17
- addon must be a clean managed installation matching the CLI, and all 200 slot
18
- files must pass inspection. Use [installation](installation.md) for deployment.
19
- 2. Use `live connect` with the invoking project's `--project` and exact target.
20
- It resolves the verified Mailbox identity and binds with a new nonce. If the runtime is
21
- absent under a supported activation condition, it records an activation and
22
- performs one fixed reload automatically. An explicitly unsupported loaded
23
- input capability is a blocker, not permission to send fallback keys.
24
- 3. Preserve any returned CON ID, including activation-pending results. Use status
25
- and resume in the same project; do not start another connection or resend keys.
26
-
27
- A clean inactive older managed slot installation can be replaced before new
28
- work. Incompatible pending reservations or older connection identities are
29
- rejected, with their evidence preserved; the new driver does not resume old
30
- wire exchanges or use old records as current-runtime proof. Journaled activation
31
- can reload a compatible loaded runtime after a clean managed installation.
32
- For an unsupported loaded protocol, finish the clean installation first and
33
- ask the owner to reload that selected client manually; then verify the new
34
- runtime without replaying pending input. Verify activation separately for every authorized PID,
35
- including same-build instances sharing one installation: 200 files on disk do
36
- not prove any running client loaded them. If the client cannot discover the full
37
- inventory, `restart_required` requires a scoped client restart; do not loop reloads.
38
-
39
- After an intentional installation/update with no usable connection, explicit
40
- activation is also available:
1
+ # Live doctor and startup
2
+
3
+ Use this for first contact, a newly installed or upgraded addon, or a startup
4
+ failure. Disk installation and a loaded runtime are separate facts. Native live
5
+ uses Lycheedev mailbox protocol v1: a named Mailbox, 500 slots and two formal game bindings.
6
+
7
+ ## Diagnose the selected target
8
+
9
+ Use the installed CLI's known `describe`/help capabilities before selecting a
10
+ doctor command; reuse that information when already available. If `live doctor`
11
+ is absent, do not substitute top-level `doctor` unless its actual help includes
12
+ the required live target checks. A newer Skill or the same displayed version
13
+ number does not establish the same commit, wire protocol or slot inventory.
14
+ Keep an older CON with its matching CLI for supported diagnosis/recovery;
15
+ [current drivers cannot execute old-wire journals](live-recovery.md#durable-evidence-and-older-journals).
16
+ Do not replace its journal or install a new driver merely to make these examples fit.
17
+
18
+ Retain the authorized installation and PID, or the original project and CON.
19
+ Use `live instances --passive` only when a target is missing. Folder names,
20
+ shared builds and the Windows foreground window do not identify a connection.
21
+
22
+ ```text
23
+ lycheedev live doctor --project <project-directory> --installation <client> --pid <pid> --format json
24
+ lycheedev live doctor --project <project-directory> --session <CON-id> --format json
25
+ ```
26
+
27
+ Doctor checks the managed files, 500-slot inventory, PID ownership, runtime
28
+ locator, independent bootstrap diagnostic, current runtime and fresh INPUT.
29
+ It sends no keys and creates no connection. Read each check’s state, detail and
30
+ nextStep. A bootstrap snapshot explains startup; only fresh INPUT authorizes
31
+ machine input. Top-level `doctor` with the same target selectors includes these
32
+ same checks alongside workspace/data/source checks.
33
+
34
+ ## Complete the authorized repair
35
+
36
+ Within an authorized live task, activation and recovery need no repeated approval.
37
+ Use `--fix` when diagnosis requires installation, activation or connection recovery:
41
38
 
42
39
  ```text
43
- lycheedev live reload fallback --project <project-directory> --installation <client> --pid <pid> --request <activation-key> --wait-seconds 120 --format json
40
+ lycheedev live doctor --fix --project <project-directory> --installation <client> --pid <pid> --format json
44
41
  ```
45
42
 
46
- The CLI selects the verified runtime's input observation path. Capable runtimes
47
- use normal readiness checks; missing signals or stale evidence stay pending.
48
- Only supported first-install/activation conditions permit the fixed activation
49
- fallback. Unsupported input capabilities never use a blind key fallback.
50
- Agents do not send that key sequence manually. Input intent and outcome
51
- are journaled; repeating the request resumes activation without replaying uncertain
52
- input. A startup beacon is only a temporary hint, never identity or bind proof.
53
-
54
- If the game is at character selection, loading, in combat, explicitly disabled,
55
- or otherwise cannot accept the narrow input, preserve pending evidence and
56
- inspect that condition. An absent descriptor does not prove a build mismatch or
57
- that a reload executed. Client versions that cannot discover newly installed
58
- addon folders through reload may require a client restart; do not loop reloads
59
- or claim that disk files prove those folders are loaded. Keep pending activation
60
- bound to its selected process; a restart ends that process rather than transferring
61
- its unknown input. Retire the old CON using process/runtime proof, then bind the
62
- replacement under the user's scope. An already authorized current-character task
63
- does not require another character choice; a specifically named actor stays fixed.
64
-
65
- ## Ownership and recovery
66
-
67
- Retain the original CON and project on failed activation or interrupted cleanup.
68
- A foreign owner's claim is not an expired timeout. Use [ownership and runtime
69
- retirement](live-recovery.md#ownership-and-runtime-retirement) for process exit,
70
- character changes or a replaced runtime; never delete claims or slot files.
71
-
72
- Do not use legacy bind/reset/QR commands for a native CON connection. The fixed
73
- profiles are part of the protocol: the addon selects F12 or F11 and the CLI
74
- verifies the effective published profile before sending keys. Do not choose
75
- arbitrary chords or infer ownership from a similar addon name. Slot allocation, publication, consumption,
76
- capacity reload and shared-installation coordination belong to the CLI.
77
-
78
- When activation completes, continue the authorized investigation immediately via
79
- [live-investigation](live-investigation.md). Connection-only tasks do not need a
80
- fabricated probe; close their quiescent CON with `live disconnect` when done.
43
+ The packaged CLI uses its own distribution. Development or separately staged
44
+ releases can supply `--release <release-root>`; `--output <archive-directory>`
45
+ selects the upgrade archive. The CLI installs absent files or upgrades a clean
46
+ managed installation through the existing installer. Modified/unmanaged files
47
+ need [installation](installation.md) diagnosis, not an overlay copy.
48
+
49
+ | Result | Continue |
50
+ | --- | --- |
51
+ | Ready runtime, clean installation | Connect and keep the returned CON |
52
+ | Two formal bindings loaded under the previous protocol name | Let fix/resume send the verified reload key once, then bind the current protocol; do not ask for manual reload merely because the name changed |
53
+ | Existing connection in this project | Resume its original request; pending input is not replaced |
54
+ | Foreign project owns the PID | Continue from the owning project; do not delete its claim |
55
+ | manual_reload_required | Ask the user to reload once in the selected game window, then resume the returned CON |
56
+ | Bootstrap failed | Read its startup reason and addon errors; the manual reload binding remains available |
57
+ | restart_required / incomplete loaded inventory | Restart that selected client within scope; repeated reloads do not discover missing folders |
58
+ | Combat, restricted editor, stale INPUT | Preserve the CON and wait for the reported condition to change |
59
+
60
+ When updating a selected PID that already has a connection, fix closes the original CON through the repair path before replacing files.
61
+ This path accepts clean prior managed files for cleanup and never starts pending business. Unresolved input or another
62
+ instance’s claim can block the shared-directory update; retain the original IDs.
63
+ Each process sharing the installation must load and verify the new runtime
64
+ independently. One PID’s successful reload never activates another PID.
65
+
66
+ ## First installation and reload
67
+
68
+ A loaded runtime with fresh two-key INPUT can reload automatically during a
69
+ protocol-name upgrade. The CLI reads its effective reload binding, journals
70
+ one key delivery and observes the new runtime. Its old business wire is not
71
+ reused. A pending activation is reassessed by resume when this capability is available.
72
+
73
+ If the addon is not running, it cannot register a key or report where text would
74
+ land. The CLI records `activation_waiting_manual_reload` and sends nothing.
75
+ The user enters `/reload` once in that exact game window; then:
76
+
77
+ ```text
78
+ lycheedev live resume <CON-id> --project <project-directory> --wait-seconds 120 --format json
79
+ ```
80
+
81
+ Manual waiting does not spend the later connection budget. Once the CLI observes
82
+ the new runtime, normal bounded binding begins. If the client must restart to
83
+ find new slot folders, retire the old process's connection and bind the new PID;
84
+ do not transfer unknown input to it. Preserve the selected actor when specified.
85
+
86
+ The compatibility command `live reload fallback` follows the same activation
87
+ rules. It no longer sends Esc, Enter or chat text. Older input-v3/hybrid-v2
88
+ runtimes require manual activation; their records do not authorize new keys.
89
+
90
+ ## Keyboard behavior
91
+
92
+ The keybinding page shows Execute and Reload under Lychee Dev. Defaults are
93
+ Ctrl+Alt+F12 and Ctrl+Alt+F11; free conflict fallbacks are F10 and F9. Existing
94
+ player assignments are preserved, and the CLI reads actual effective keys from
95
+ Mailbox. `/dev receiver reset` fills missing actions using free defaults.
96
+
97
+ Ordinary EditBoxes selectively forward these two actions while keeping draft,
98
+ cursor and focus. Password/secure/protected editors stay blocked. Native input
99
+ uses zero Esc; reload directly invokes the UI API. A submitted or unknown key
100
+ is observed through the original CON rather than retried. See
101
+ [live recovery](live-recovery.md) for retained input and runtime retirement.
@@ -45,7 +45,7 @@ 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
47
  For current native Mailbox transport measurements, separate process/module
48
- initialization, guarded Lua-root resolution, named-field reads, optical readiness
48
+ initialization, guarded Lua-root resolution, named-field reads, Mailbox readiness
49
49
  and waiting, input dispatch, probe execution, result retrieval and diagnostic
50
50
  flush. The host follows the selected module's root to current Lua globals and
51
51
  `LycheeDevInternal.Mailbox`; it does not search private heap regions for records.
@@ -56,18 +56,20 @@ coverage as heap coverage, or a successful named-field lookup as whole-client
56
56
  memory coverage. A missing field, changed layout or unreadable guard fails closed
57
57
  without a scanner fallback. Do not bypass that failure with guessed RVAs.
58
58
 
59
- A small capture ROI reduces copied/decoded pixels; it does not mean WGC's
60
- whole-window capture cost is equally small. Keep cache setting, window state,
61
- foreground/background FPS, loaded capability and candidate binary fixed when
59
+ Native transport reads the Mailbox directly and does not capture screenshots.
60
+ Keep window state, foreground/background FPS, loaded capability and candidate
61
+ binary fixed when
62
62
  comparing runs. Preserve module coverage, read counts/bytes and named-lookup
63
- completion where recorded. `--no-cache` still resolves the current Lua table path;
64
- no retained heap address or hint participates in the current reader. Keep initial
63
+ completion where recorded. `--no-cache` is an accepted compatibility flag: with
64
+ or without it, the current reader uses the same guarded Lua table lookup. No
65
+ retained heap address or hint participates, so the flag is not a current
66
+ measurement variable. Diagnose historical versions against their own command
67
+ contract and implementation rather than assuming this behavior. Keep initial
65
68
  root resolution separate from subsequent receipt/body lookups, and keep a
66
69
  completed historical request's input-free read-back separate from fresh execution;
67
70
  report transport completion, `report.ok` and cleanup separately. A failed probe
68
71
  assertion is not successful performance validation merely because transport
69
- retrieved it. Results from the old memory-only path do not validate the hybrid
70
- path or a different candidate. Same-build instances are separate measurements,
72
+ retrieved it. Results from the old hybrid path do not validate Lycheedev mailbox protocol v1 or a different candidate. Same-build instances are separate measurements,
71
73
  not interchangeable targets.
72
74
 
73
75
  Compare only evidence sealed for the matching candidate and target. Fast named
@@ -9,6 +9,23 @@ not list tags; missing version text there does not mean the release is absent.
9
9
  Read the repository's own track map: do not apply a game product to every addon
10
10
  repository. A source track is not proof of installation compatibility.
11
11
 
12
+ For `wow-ui-source`, the seven delivery products map to these Git branches:
13
+
14
+ | Product | Branch |
15
+ | --- | --- |
16
+ | `retail` | `live` |
17
+ | `classic` | `classic` |
18
+ | `classic-era` | `classic_era` |
19
+ | `titan` | `classic_titan` |
20
+ | `forever-asia-beta`, `forever-cn-beta` | `forever` |
21
+ | `anniversary` | `classic_anniversary` |
22
+
23
+ The beta folder `_classic_beta_` does not imply the old Git branch `classic_beta`.
24
+ The legacy family-wide `forever` source pin can accompany either beta's Data
25
+ pin; regional source pins retain their exact delivery identity. Data build
26
+ configurations and client runtime verification remain separate even when the
27
+ UI source commit is shared.
28
+
12
29
  Initialize a new Toolkit home with `lycheedev init` before syncing; an empty
13
30
  directory alone is not a workspace. Reuse an initialized `--home` when available.
14
31
  Use that same home for preparation and subsequent pin reads; a pin ID does not
@@ -24,8 +41,12 @@ lycheedev source sync --source <catalog-key> --product <repository-track> --ref
24
41
  commit or full `refs/heads/...` / `refs/tags/...` ref. Omission observes the selected
25
42
  track's current branch; use that only when the request allows current source.
26
43
  For a named release without an exact ref, establish its tag/commit from repository
27
- evidence. Ask only if that mapping remains unavailable or ambiguous. Never guess
28
- a tag, silently use latest, or replace an unavailable exact revision with a branch.
44
+ evidence already retained or available through the Toolkit. If the installed CLI
45
+ lacks the needed tag/ref discovery capability, use verified external repository
46
+ metadata under the [source routing rules](source-research.md#route-source-evidence),
47
+ then return the resolved ref to `source sync`. Ask only if the mapping remains
48
+ unavailable or ambiguous. Never guess a tag, silently use latest, or replace an
49
+ unavailable exact revision with a branch.
29
50
 
30
51
  Carry the returned fixed pin and exact commit between calls. Preserve requested
31
52
  version/tag, repository identity and parser revision; a tag is a traceable label,