lycheedev 3.0.2 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/THIRD_PARTY_NOTICES +27 -0
- package/native/windows-amd64/lycheedev.exe +0 -0
- package/package.json +1 -1
- package/payload/addon/Bridge/InputProtection.lua +18 -5
- package/payload/addon/Bridge/InputState.lua +25 -11
- package/payload/addon/Bridge/MemoryProtocol.lua +2 -2
- package/payload/addon/Bridge/ReceiverBindings.lua +85 -16
- package/payload/addon/Bridge/SlotProtocol.lua +48 -4
- package/payload/addon/Bridge/SlotRuntime.lua +63 -10
- package/payload/addon/Core/Controls.lua +6 -1
- package/payload/addon/Core/Locale.lua +7 -0
- package/payload/addon/Core/Locale_enUS.lua +7 -0
- package/payload/addon/Core/Runtime.lua +1 -1
- package/payload/addon/Lychee Dev.toc +1 -1
- package/payload/skill/SKILL.md +73 -75
- package/payload/skill/agents/openai.yaml +2 -2
- package/payload/skill/references/addon-validation.md +33 -9
- package/payload/skill/references/asset-export.md +37 -4
- package/payload/skill/references/commands.md +7 -3
- package/payload/skill/references/data-hotfix.md +13 -0
- package/payload/skill/references/data-investigation.md +9 -0
- package/payload/skill/references/data-query-recipes.md +19 -0
- package/payload/skill/references/data-recovery.md +9 -0
- package/payload/skill/references/data-tables.md +21 -1
- package/payload/skill/references/data-targets.md +4 -0
- package/payload/skill/references/error-diagnosis.md +33 -2
- package/payload/skill/references/installation.md +34 -15
- package/payload/skill/references/live-investigation.md +79 -82
- package/payload/skill/references/live-probes.md +34 -9
- package/payload/skill/references/live-recovery.md +62 -21
- package/payload/skill/references/live-startup.md +27 -14
- package/payload/skill/references/runtime-investigations.md +23 -4
- package/payload/skill/references/source-preparation.md +4 -1
- package/payload/skill/references/source-relations.md +14 -0
- package/payload/skill/references/source-research.md +30 -0
- package/payload/skill/references/source-value-flow.md +19 -0
- package/release.json +71 -71
|
@@ -14,13 +14,26 @@ lycheedev live resume <CON-id> --project <project-directory> --wait-seconds 120
|
|
|
14
14
|
Status reads persisted evidence. Resume acquires the same connection's driver
|
|
15
15
|
lease, reconciles original nonces and continues within both the caller's wait
|
|
16
16
|
limit and the original durable deadline. Exit 6 retains usable results and
|
|
17
|
-
unfinished cleanup.
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
unfinished cleanup. Choose from the returned `continuation`, including its
|
|
18
|
+
goal, blocker condition and remaining budget:
|
|
19
|
+
|
|
20
|
+
| Kind | Next action |
|
|
21
|
+
| --- | --- |
|
|
22
|
+
| `continue` | Continue the original CON serially within its budget; reconcile the receipt or focus condition |
|
|
23
|
+
| `wait_active_driver` | Wait for the existing host call; do not start a competing resume |
|
|
24
|
+
| `wait_external` | Resolve or wait for the named dependency to change, then resume |
|
|
25
|
+
| `needs_decision` | Inspect the concrete outcome/blocker and choose an action covered by the task's scope |
|
|
26
|
+
| `budget_exhausted` | Retain results and consider permitted cleanup/recovery; do not renew business time |
|
|
27
|
+
| `completed` | Read this command's terminal outcome; check whether the overall investigation is done |
|
|
28
|
+
|
|
29
|
+
`needs_decision` is not an automatic permission prompt. Necessary recovery can
|
|
30
|
+
already be authorized; an unresolved opaque effect may instead require an
|
|
31
|
+
independent observation or a truthful handoff. Do not infer recovery from an
|
|
20
32
|
internal stage alone. Keep each instance's project, CON and request separate.
|
|
21
33
|
Do not replace a request, edit its files, clear ownership or repeat raw input to
|
|
22
34
|
force progress. A cached hit never bypasses identity/checksum/fresh-confirmation
|
|
23
|
-
validation.
|
|
35
|
+
validation. A missing or partial Mailbox observation is not proof that input
|
|
36
|
+
was never executed or that no result exists.
|
|
24
37
|
|
|
25
38
|
After user reload, a descriptor alone is only a candidate. Continuing business
|
|
26
39
|
requires a fresh bind; closing the old CON instead uses [verified retirement](#ownership-and-runtime-retirement).
|
|
@@ -70,7 +83,9 @@ does not call for reload. Without replacement proof, retain pending cleanup and
|
|
|
70
83
|
wait for the reported condition to change. The separate input-free retirement
|
|
71
84
|
path may close the old CON without any reload input. An unconfirmed opaque report
|
|
72
85
|
remains unavailable/execution_unknown; successful reload or close does not verify
|
|
73
|
-
it. New work on a changed actor requires
|
|
86
|
+
it. New work on a changed actor requires a fresh CON within the task's target
|
|
87
|
+
scope. An existing arbitrary-character scope can cover it after safe retirement;
|
|
88
|
+
the old operation is never transferred.
|
|
74
89
|
|
|
75
90
|
`journal.resource_busy: active window driver` means another host CLI still holds
|
|
76
91
|
the execution lease. A game UI frame does not own that lease. Wait for the active
|
|
@@ -90,10 +105,11 @@ owning task; a crash releases the OS driver lock, not durable reservations.
|
|
|
90
105
|
Use the old CON's `live disconnect` in its owning project. The CLI can verify
|
|
91
106
|
PID plus creation-time process exit, or verify another runtime actually wrote a
|
|
92
107
|
new input sample in the same fixed process. Access errors, missing windows,
|
|
93
|
-
descriptors
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
108
|
+
descriptors or cached samples prove neither case. Replacement requires fresh,
|
|
109
|
+
increasing input samples from the new runtime in that same process. The CLI
|
|
110
|
+
revalidates the build-bound root and named Mailbox path within its budget;
|
|
111
|
+
it does not relocate samples by scanning the heap. Game time is not compared
|
|
112
|
+
with the host clock to establish replacement.
|
|
97
113
|
|
|
98
114
|
For runtime replacement, the CLI saves `runtimeEnd` before retiring only the
|
|
99
115
|
old CON's exact reservations.
|
|
@@ -107,9 +123,10 @@ never automatically transfer the old request or probe.
|
|
|
107
123
|
## Input and recovery
|
|
108
124
|
|
|
109
125
|
The CLI journals input and selects the observation adapter from the verified
|
|
110
|
-
runtime capability. Hybrid optical readiness keeps identity, routing
|
|
111
|
-
|
|
112
|
-
|
|
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.
|
|
113
130
|
|
|
114
131
|
With an ordinary focused editor, the coordinator may send one Esc and observe
|
|
115
132
|
again; Esc can close/cancel that UI. Combat, unknown observations, missing signals
|
|
@@ -130,6 +147,22 @@ does not authorize replay of unknown input. Never delete the slot to unblock
|
|
|
130
147
|
another instance; use [verified retirement](#ownership-and-runtime-retirement)
|
|
131
148
|
when the original process or runtime has ended.
|
|
132
149
|
|
|
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.
|
|
165
|
+
|
|
133
166
|
Input evidence is distinct from execution: `not_sent` proves zero messages were
|
|
134
167
|
queued; `submitted` proves only queue submission; `uncertain` (or an intent with
|
|
135
168
|
no outcome) does not permit replay. These facts drive CLI recovery. Do not
|
|
@@ -138,9 +171,16 @@ reinterpret them into manual retry instructions. Use the same CON/project and
|
|
|
138
171
|
within the authorized task; do not repeat indefinitely against an absent process,
|
|
139
172
|
foreign ownership or an unresolved opaque execution outcome.
|
|
140
173
|
|
|
174
|
+
Optional input-attempt diagnostics are not execution receipts. Missing counters
|
|
175
|
+
do not prove that a key was never delivered; unchanged counters do not authorize
|
|
176
|
+
replay. Diagnose unsupported roots/layouts or read gaps from retained evidence;
|
|
177
|
+
do not fix them by copying an RVA, scanning memory or looping reloads.
|
|
178
|
+
|
|
141
179
|
`waiting: shared_publication` is shared-file contention inside one installation,
|
|
142
|
-
not proof of a lost connection.
|
|
143
|
-
|
|
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
|
|
144
184
|
owner's reservations for a new exchange only before publication or input. The
|
|
145
185
|
runtime skips empty/foreign slots and stops at the first envelope for itself;
|
|
146
186
|
it does not skip its own pending work. Once published, submitted or uncertain,
|
|
@@ -162,7 +202,7 @@ and reload hints are not execution or result proof.
|
|
|
162
202
|
The whole `.lycheedev/live` directory is the recovery unit. Keep connection logs,
|
|
163
203
|
linked history segments, content-addressed `connections/artifacts`, target metadata
|
|
164
204
|
and result files together. New journals reference exact code/result bytes by digest;
|
|
165
|
-
|
|
205
|
+
compatible inline snapshots remain readable. Missing or corrupt referenced content is
|
|
166
206
|
a recovery error, never a reason to generate another request key.
|
|
167
207
|
|
|
168
208
|
## Durable evidence and older journals
|
|
@@ -174,12 +214,13 @@ changing request keys do not extend a goal. Close retains its own allowance
|
|
|
174
214
|
after business exhaustion; existing evidence remains readable. Detected clock
|
|
175
215
|
rollback stops automatic work; an unseen offline clock change cannot be detected.
|
|
176
216
|
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
217
|
+
Current native writes use channel-v2 and activation-v3 with the current Mailbox
|
|
218
|
+
identity. Older native wire/identity journals are rejected before driving or
|
|
219
|
+
budget migration; preserve them for diagnosis with their matching release.
|
|
220
|
+
An older artifact serialization within a compatible connection is a different
|
|
221
|
+
case and does not establish old-wire compatibility. A CLI wait timeout or
|
|
222
|
+
interruption ends the host call, not the game-side probe or its cleanup.
|
|
223
|
+
A cancelled host wait uses exit 7; it does not confirm Lua cancellation.
|
|
183
224
|
|
|
184
225
|
Cleanup callback failures retain the verified report and trigger a journaled
|
|
185
226
|
reload; a fresh binding then records `cleanupMethod: runtime_destroyed`. The
|
|
@@ -2,28 +2,36 @@
|
|
|
2
2
|
|
|
3
3
|
Use this reference for first installation, an upgraded addon, or contact without
|
|
4
4
|
a usable CON connection. Disk installation and runtime activation are separate.
|
|
5
|
-
|
|
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,
|
|
6
8
|
edit slot payloads or import old queues/SavedVariables.
|
|
7
9
|
|
|
8
10
|
Use the shared installation candidates to select a verified client directory;
|
|
9
11
|
directory names alone do not establish product identity. A game root may contain
|
|
10
12
|
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
|
|
13
|
+
PID, process creation identity and later character binding. Resolve only remaining ambiguity, not a fresh
|
|
12
14
|
choice on every retry. Local selection errors never authorize another installation.
|
|
13
15
|
|
|
14
16
|
1. Select the authorized installation and PID. Inspect `addon status`; the main
|
|
15
17
|
addon must be a clean managed installation matching the CLI, and all 200 slot
|
|
16
18
|
files must pass inspection. Use [installation](installation.md) for deployment.
|
|
17
19
|
2. Use `live connect` with the invoking project's `--project` and exact target.
|
|
18
|
-
It
|
|
19
|
-
absent, it records an activation and
|
|
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.
|
|
20
24
|
3. Preserve any returned CON ID, including activation-pending results. Use status
|
|
21
25
|
and resume in the same project; do not start another connection or resend keys.
|
|
22
26
|
|
|
23
|
-
A
|
|
24
|
-
|
|
25
|
-
|
|
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,
|
|
27
35
|
including same-build instances sharing one installation: 200 files on disk do
|
|
28
36
|
not prove any running client loaded them. If the client cannot discover the full
|
|
29
37
|
inventory, `restart_required` requires a scoped client restart; do not loop reloads.
|
|
@@ -37,8 +45,9 @@ lycheedev live reload fallback --project <project-directory> --installation <cli
|
|
|
37
45
|
|
|
38
46
|
The CLI selects the verified runtime's input observation path. Capable runtimes
|
|
39
47
|
use normal readiness checks; missing signals or stale evidence stay pending.
|
|
40
|
-
Only supported first-install/
|
|
41
|
-
fallback.
|
|
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
|
|
42
51
|
are journaled; repeating the request resumes activation without replaying uncertain
|
|
43
52
|
input. A startup beacon is only a temporary hint, never identity or bind proof.
|
|
44
53
|
|
|
@@ -47,8 +56,11 @@ or otherwise cannot accept the narrow input, preserve pending evidence and
|
|
|
47
56
|
inspect that condition. An absent descriptor does not prove a build mismatch or
|
|
48
57
|
that a reload executed. Client versions that cannot discover newly installed
|
|
49
58
|
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
|
|
51
|
-
|
|
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.
|
|
52
64
|
|
|
53
65
|
## Ownership and recovery
|
|
54
66
|
|
|
@@ -58,8 +70,9 @@ retirement](live-recovery.md#ownership-and-runtime-retirement) for process exit,
|
|
|
58
70
|
character changes or a replaced runtime; never delete claims or slot files.
|
|
59
71
|
|
|
60
72
|
Do not use legacy bind/reset/QR commands for a native CON connection. The fixed
|
|
61
|
-
|
|
62
|
-
|
|
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,
|
|
63
76
|
capacity reload and shared-installation coordination belong to the CLI.
|
|
64
77
|
|
|
65
78
|
When activation completes, continue the authorized investigation immediately via
|
|
@@ -44,18 +44,37 @@ 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
|
|
48
|
-
|
|
49
|
-
|
|
47
|
+
For current native Mailbox transport measurements, separate process/module
|
|
48
|
+
initialization, guarded Lua-root resolution, named-field reads, optical readiness
|
|
49
|
+
and waiting, input dispatch, probe execution, result retrieval and diagnostic
|
|
50
|
+
flush. The host follows the selected module's root to current Lua globals and
|
|
51
|
+
`LycheeDevInternal.Mailbox`; it does not search private heap regions for records.
|
|
52
|
+
Known executable hashes verify their runtime code anchor; other hashes require
|
|
53
|
+
complete bounded runtime-text matching of the supported recipes. Root resolution
|
|
54
|
+
may therefore differ substantially between builds. Do not describe module-text
|
|
55
|
+
coverage as heap coverage, or a successful named-field lookup as whole-client
|
|
56
|
+
memory coverage. A missing field, changed layout or unreadable guard fails closed
|
|
57
|
+
without a scanner fallback. Do not bypass that failure with guessed RVAs.
|
|
58
|
+
|
|
59
|
+
A small capture ROI reduces copied/decoded pixels; it does not mean WGC's
|
|
50
60
|
whole-window capture cost is equally small. Keep cache setting, window state,
|
|
51
61
|
foreground/background FPS, loaded capability and candidate binary fixed when
|
|
52
|
-
comparing runs. Preserve
|
|
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
|
|
65
|
+
root resolution separate from subsequent receipt/body lookups, and keep a
|
|
66
|
+
completed historical request's input-free read-back separate from fresh execution;
|
|
53
67
|
report transport completion, `report.ok` and cleanup separately. A failed probe
|
|
54
68
|
assertion is not successful performance validation merely because transport
|
|
55
69
|
retrieved it. Results from the old memory-only path do not validate the hybrid
|
|
56
70
|
path or a different candidate. Same-build instances are separate measurements,
|
|
57
71
|
not interchangeable targets.
|
|
58
72
|
|
|
73
|
+
Compare only evidence sealed for the matching candidate and target. Fast named
|
|
74
|
+
reads do not imply low end-to-end latency when readiness or receipts dominate.
|
|
75
|
+
Receipt absence after submitted input neither proves non-delivery nor authorizes
|
|
76
|
+
replay; use [recovery](live-recovery.md) rather than adding another timing attempt.
|
|
77
|
+
|
|
59
78
|
## Preserve live ownership and bound the experiment
|
|
60
79
|
|
|
61
80
|
Prefer a private replay instance for registry/index experiments. Check that it
|
|
@@ -11,6 +11,9 @@ repository. A source track is not proof of installation compatibility.
|
|
|
11
11
|
|
|
12
12
|
Initialize a new Toolkit home with `lycheedev init` before syncing; an empty
|
|
13
13
|
directory alone is not a workspace. Reuse an initialized `--home` when available.
|
|
14
|
+
Use that same home for preparation and subsequent pin reads; a pin ID does not
|
|
15
|
+
select a different workspace. Pass `--home <workspace>` when working outside its
|
|
16
|
+
normal discovery context.
|
|
14
17
|
|
|
15
18
|
```text
|
|
16
19
|
lycheedev source list --format json
|
|
@@ -44,7 +47,7 @@ when the operation needs them; raw file inspection reads fixed Git content direc
|
|
|
44
47
|
| Integrity failure | Preserve evidence and diagnose changed/corrupt bytes; do not bypass verification or delete caches blindly |
|
|
45
48
|
| Syntax diagnostics / partial map | Inspect readable original files and retain the gaps; unparsed does not mean absent |
|
|
46
49
|
| Missing LuaLS or client environment | Continue original-source research with partial semantic coverage; see [source-relations.md](source-relations.md) |
|
|
47
|
-
| Invalid cursor |
|
|
50
|
+
| Invalid cursor | Restore the originating command and scope to continue, or start without a cursor for the changed scope; do not merge those page sets |
|
|
48
51
|
| Resource budget | Narrow to the part needed by the question; retain omitted scope, not a claim of complete investigation |
|
|
49
52
|
|
|
50
53
|
Allow at most one unchanged retry for a transient failure within the task budget.
|
|
@@ -29,12 +29,21 @@ Forever. `--static-only` deliberately limits evidence to structural analysis.
|
|
|
29
29
|
Missing runtime/environment can leave usable source evidence with semantic
|
|
30
30
|
coverage partial. Neither static inference nor LuaLS types prove runtime behavior.
|
|
31
31
|
|
|
32
|
+
Inspect `environmentManifest` and coverage to confirm which client definitions
|
|
33
|
+
were actually used. When the research source itself is `wow-ui-source`, that
|
|
34
|
+
pin supplies its own environment; `--environment` supplies the separate client
|
|
35
|
+
pin for third-party source, rather than retargeting a Blizzard source pin.
|
|
36
|
+
|
|
32
37
|
## Continue only the required scope
|
|
33
38
|
|
|
34
39
|
Query results contain a bounded relation preview. Use refs, not repeated query
|
|
35
40
|
pages, to investigate its edges. Each command owns its own `nextCursor`; retain
|
|
36
41
|
snapshot, symbol/query, environment, analysis options and budgets on continuation.
|
|
37
42
|
An ending page does not erase missing earlier pages or unresolved dynamic edges.
|
|
43
|
+
To change direction, depth, flow mode or excerpt budgets, start without the old
|
|
44
|
+
cursor. Add `--session-reuse` only for repeated semantic work as described in
|
|
45
|
+
[source-research.md](source-research.md#optional-luals-session-reuse); it does not
|
|
46
|
+
make a cursor portable or strengthen a relation's evidence state.
|
|
38
47
|
|
|
39
48
|
For context, `--max-lines`, `--max-bytes`, `--limit` and `--depth` bound different
|
|
40
49
|
parts of the result; inspect its truncation and continuation metadata. Follow a
|
|
@@ -49,3 +58,8 @@ unresolved when source cannot determine it.
|
|
|
49
58
|
For a concrete value/operation question, use
|
|
50
59
|
[source-value-flow.md](source-value-flow.md); ordinary relation traversal alone
|
|
51
60
|
does not establish a secret-value propagation path.
|
|
61
|
+
|
|
62
|
+
For a relation crossing repositories, use its target repository, commit and
|
|
63
|
+
original location to obtain the matching fixed source before following it.
|
|
64
|
+
An environment declaration or same-named symbol is not evidence that an addon
|
|
65
|
+
dependency was loaded. Leave missing dependency and runtime binding edges open.
|
|
@@ -52,6 +52,8 @@ dynamic edge cannot establish absence. A query's relation list is only a preview
|
|
|
52
52
|
use `source refs` if callers matter. Continue `nextCursor` only while another page
|
|
53
53
|
can change the answer, preserving the command's snapshot, query and budgets.
|
|
54
54
|
Query, refs and context cursors are not interchangeable.
|
|
55
|
+
Changing the term, symbol, environment or budgets begins a new investigation
|
|
56
|
+
without the previous cursor; keep its captures separate from the earlier pages.
|
|
55
57
|
|
|
56
58
|
`source inspect --path` archives the whole file but returns a bounded excerpt.
|
|
57
59
|
Report its path, first/last/total lines, exact commit, full-file hash and capture;
|
|
@@ -67,6 +69,9 @@ For preparation failures, use the bounded recovery in
|
|
|
67
69
|
[source-preparation.md](source-preparation.md#recover-without-changing-the-revision).
|
|
68
70
|
Finish with the source-supported answer and unresolved conditions. Static source
|
|
69
71
|
does not prove that a client loaded it or behaved that way in combat or another build.
|
|
72
|
+
Identify what is established, what could change the answer, and the smallest
|
|
73
|
+
next check for that uncertainty. Keep the pin, original locations and captures
|
|
74
|
+
with the conclusion so a later data/live step can reuse the evidence.
|
|
70
75
|
|
|
71
76
|
## Secret values and secure taint
|
|
72
77
|
|
|
@@ -74,3 +79,28 @@ Read [source-value-flow.md](source-value-flow.md) for versioned rules, value ide
|
|
|
74
79
|
guards and unknown edges. If live investigation is already authorized, carry the
|
|
75
80
|
remaining hypothesis into [live investigation](live-investigation.md#test-source-hypotheses).
|
|
76
81
|
Source-only work does not authorize game input.
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
## Optional LuaLS session reuse
|
|
85
|
+
|
|
86
|
+
`source refs` and `source context` keep one-shot semantic execution as the
|
|
87
|
+
default behavior. Add `--session-reuse` only when several semantic cache misses
|
|
88
|
+
will investigate the same fixed source/environment. Complete result-cache hits,
|
|
89
|
+
static-only queries and ordinary source searches do not start a broker.
|
|
90
|
+
|
|
91
|
+
The optional broker retains one verified worktree lease and one guarded LuaLS
|
|
92
|
+
worker for that home. Identity changes rebuild the worker; an active cancelled
|
|
93
|
+
or timed-out query retires it. Requests keep the original deadline while queued,
|
|
94
|
+
initializing and querying. A busy or incompatible owner fails closed; do not
|
|
95
|
+
kill a PID or override its lease to recover.
|
|
96
|
+
|
|
97
|
+
Use `lycheedev source session status --home <workspace>` to inspect without
|
|
98
|
+
starting it, and `lycheedev source session close --home <workspace>` to release
|
|
99
|
+
it before explicit source reclamation. Add the same `--release <release-root>`
|
|
100
|
+
when the investigation uses a separately verified release. The broker also exits
|
|
101
|
+
after 60 seconds idle, ten minutes lifetime, or 256 semantic RPC batches.
|
|
102
|
+
`--static-only` cannot be combined with `--session-reuse` or `--release`.
|
|
103
|
+
|
|
104
|
+
Reuse remains opt-in. These bounds do not claim measured full-source RSS or
|
|
105
|
+
latency; retain the result's coverage and partial reasons. Session failure does
|
|
106
|
+
not establish absence of references or calls.
|
|
@@ -22,6 +22,20 @@ only for a concrete value/operation question. Interpret returned steps,
|
|
|
22
22
|
conditions, rule identity and unknown boundaries; do not claim a proven
|
|
23
23
|
propagation path when the result has only static candidates or incomplete coverage.
|
|
24
24
|
|
|
25
|
+
Select the Lua declaration containing the reported path, not merely the generated
|
|
26
|
+
API declaration. For third-party code, a bounded entry is:
|
|
27
|
+
|
|
28
|
+
```text
|
|
29
|
+
lycheedev source context --snapshot <addon-pin> --symbol-id <lua-symbol-id> --environment <client-pin> --flow --depth 1 --limit 50 --max-lines 120 --format json
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
`flow.coverage.state=bounded_complete` applies only to the selected closure and
|
|
33
|
+
modeled operations. Read `flow.boundaries` and the outer coverage reasons as well
|
|
34
|
+
as findings. Event payload metadata is retained, but handler registration and
|
|
35
|
+
payload routing are outside the current flow scope; inspect that missing link
|
|
36
|
+
directly or carry it into a bounded live hypothesis. A larger depth cannot resolve
|
|
37
|
+
an unsupported edge.
|
|
38
|
+
|
|
25
39
|
Trace the relevant value through assignments, table fields and function arguments
|
|
26
40
|
or returns, preserving each step's original location. Confirm symbol identity and
|
|
27
41
|
loading context before crossing files. A guard applies only to the checked value
|
|
@@ -40,6 +54,11 @@ Continue with existing error evidence and a bounded check that distinguishes the
|
|
|
40
54
|
remaining explanations; do not stop at an unresolved static path when live can
|
|
41
55
|
answer the next question. Feed observed conditions back into the source analysis.
|
|
42
56
|
|
|
57
|
+
Keep proposed checks within the same trust boundary: observing a value does not
|
|
58
|
+
authorize writing protected frames or Blizzard tables, replacing secure handlers,
|
|
59
|
+
or extracting a secret through coercion. Combat state and permitted argument
|
|
60
|
+
conditions belong to the hypothesis, not assumptions used to make it pass.
|
|
61
|
+
|
|
43
62
|
Finish with the supported path and restriction, a minimal correction when
|
|
44
63
|
justified, and any conditions still requiring verification. Distinguish observed
|
|
45
64
|
runtime evidence, source deductions and unresolved hypotheses. Do not treat no
|