lycheedev 3.2.7 → 3.2.10

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 (34) hide show
  1. package/THIRD_PARTY_NOTICES +4631 -253
  2. package/bin/lycheedev.mjs +1 -1
  3. package/bin/update.mjs +5 -1
  4. package/native/windows-amd64/lycheedev.exe +0 -0
  5. package/package.json +1 -1
  6. package/payload/addon/Core/Execute.lua +19 -4
  7. package/payload/addon/Core/Runtime.lua +6 -1
  8. package/payload/addon/Core/Serializer.lua +5 -1
  9. package/payload/addon/Lychee Dev.toc +1 -1
  10. package/payload/addon/THIRD_PARTY_NOTICES +4631 -253
  11. package/payload/skill/SKILL.md +38 -93
  12. package/payload/skill/agents/openai.yaml +2 -2
  13. package/payload/skill/references/data-investigation.md +52 -88
  14. package/payload/skill/references/live-probes.md +65 -167
  15. package/payload/skill/references/publish.md +30 -0
  16. package/payload/skill/references/runtime-investigations.md +41 -120
  17. package/payload/skill/references/source-research.md +49 -156
  18. package/release.json +33 -108
  19. package/payload/skill/references/addon-validation.md +0 -108
  20. package/payload/skill/references/asset-export.md +0 -192
  21. package/payload/skill/references/commands.md +0 -222
  22. package/payload/skill/references/data-hotfix.md +0 -128
  23. package/payload/skill/references/data-query-recipes.md +0 -92
  24. package/payload/skill/references/data-recovery.md +0 -73
  25. package/payload/skill/references/data-tables.md +0 -207
  26. package/payload/skill/references/data-targets.md +0 -99
  27. package/payload/skill/references/error-diagnosis.md +0 -69
  28. package/payload/skill/references/installation.md +0 -133
  29. package/payload/skill/references/live-investigation.md +0 -127
  30. package/payload/skill/references/live-recovery.md +0 -275
  31. package/payload/skill/references/live-startup.md +0 -124
  32. package/payload/skill/references/source-preparation.md +0 -82
  33. package/payload/skill/references/source-relations.md +0 -65
  34. package/payload/skill/references/source-value-flow.md +0 -67
@@ -1,69 +0,0 @@
1
- # Error diagnosis
2
-
3
- Separate source facts, static data, live evidence and operation state before
4
- acting. When a native CON or pending request already exists, read `live status`
5
- for that CON in its original project and follow its continuation before creating
6
- another request. A failed probe can have a verified report and completed cleanup;
7
- a host timeout can leave successful Lua still running. Neither is a reason to
8
- recreate the error or change request keys.
9
-
10
- For an authorized snapshot of errors already retained by the addon provider:
11
-
12
- ```text
13
- lycheedev live bugs --project <project-directory> --session <CON-id> --request <stable-key> --count <1-100> --wait-seconds 120 --format json
14
- ```
15
-
16
- This reads !BugGrabber provider storage newest-first through a bounded native
17
- observation. It does not claim to capture every addon error. Provider unavailable,
18
- partial fields, zero rows and incomplete coverage remain distinct. Native bugs
19
- completes verified result persistence and release; inspect `report.ok` and the
20
- snapshot's own status, then require `complete: true` and `cleanup: complete`.
21
- Do not add legacy ACK/finish/hide commands. Use [recovery](live-recovery.md) on interruption, retaining the same CON.
22
- Use a question-specific probe only when the retained error snapshot cannot
23
- distinguish the hypotheses. Follow [live-investigation.md](live-investigation.md)
24
- and keep sampling, output and async lifetime bounded.
25
-
26
- Retain the provider's session, message, stack, occurrence counts and available
27
- timing fields without inferring unavailable fields. Repeated provider rows may
28
- aggregate occurrences; row count is not necessarily error count. Ordering is
29
- reverse provider storage, not a newly sorted chronology. Retain `scope`,
30
- `requestedCount`, `returnedCount`, `availableCount`, session and missing-field
31
- markers. A count limit covers that retained slice, not every error since login.
32
- Bind snapshot collection to the verified process/character/build and loaded
33
- addon revision. Provider storage may include earlier sessions; do not attribute
34
- every retained error to that current actor or revision. A stack path or currently
35
- installed file alone does not establish the code that ran at the error's time.
36
-
37
- Choose the next step from the evidence:
38
-
39
- | Finding | Next useful action |
40
- | --- | --- |
41
- | Verified error with stack and reproduction conditions | Inspect the pinned source at that path and its callers; form a causal explanation before adding a probe. |
42
- | Provider unavailable or partial snapshot | Preserve that coverage limit; use another authorized observation only if it answers the actual question. |
43
- | Verified probe with `report.ok: false` | Read its error/assertion and logs; distinguish invalid preconditions from evidence against the hypothesis. |
44
- | Submitted/uncertain input with no verified report | Continue the original CON/request via recovery; no conclusion about whether the effect ran. |
45
- | Verified report with cleanup pending | Use the report, preserve pending closure and recover that same CON. |
46
-
47
- A source stack identifies where an exception surfaced, not necessarily where the
48
- bad value originated. Trace the value's acquisition, transformations and consumers
49
- at the fixed source revision. State which observation would distinguish an API
50
- change, a scene prerequisite failure or an addon-owned value-flow error. Test only
51
- the remaining material distinction; do not repeatedly trigger a known forbidden
52
- operation to gather more copies of its error.
53
-
54
- For secret-value or secure-taint errors, connect the relevant fixed source path
55
- to [live hypothesis testing](live-probes.md#test-source-hypotheses).
56
- Use runtime observations to distinguish the remaining source hypotheses, then
57
- return to those locations to explain the result; an error snapshot alone need
58
- not end an authorized deep investigation.
59
-
60
- To package known verified evidence:
61
-
62
- ```text
63
- lycheedev evidence bundle --ids <CAP-a,CAP-b> --output <new-file.zip> --format json
64
- ```
65
-
66
- Explain the observed error and fixed identity first, then the causal hypothesis,
67
- the evidence that would distinguish alternatives, and any unverified coverage.
68
- Never convert a timeout, missing provider, parse failure or empty candidate page
69
- into “no error”.
@@ -1,133 +0,0 @@
1
- # Installation tasks
2
-
3
- Read this for a requested installation/update/removal, or managed addon deployment
4
- needed to complete an already authorized live task. That live authorization covers
5
- the selected client's necessary deployment and activation; it does not imply a
6
- global npm CLI update, updates to other clients or changing the selected release.
7
- First inspect the installed CLI's top-level and relevant
8
- subcommand `--help`; use only the commands and flags it exposes. If `describe`
9
- is available, use it to confirm the supported capability. Do not substitute a
10
- legacy installer or claim a planned release command exists.
11
-
12
- ## Update the installed toolkit
13
-
14
- For an authorized npm update to the `latest` channel, with `update` in the
15
- installed command contract:
16
-
17
- ```text
18
- lycheedev update --plan --format json
19
- lycheedev update --format json
20
- ```
21
-
22
- The plan checks the current release and discovers remembered targets, existing
23
- standard Agent skill directories and installed addons in configured local targets
24
- or running clients without
25
- game input. It does not check the registry for a newer version. To include an
26
- offline/custom client or scope an isolated update, supply explicit targets;
27
- when any target selector is present, automatic discovery is disabled:
28
-
29
- ```text
30
- lycheedev update --path <parent/lycheedev> --installation <client-directory> --home <workspace> --format json
31
- ```
32
-
33
- Repeat `--path` or `--installation` for multiple targets. Custom targets are
34
- remembered after preflight for subsequent unscoped updates. An absent explicit
35
- target can be installed when its parent already exists; an existing unmanaged
36
- or edited target is a conflict, never permission to delete it.
37
-
38
- For a saved explicit selection, `--file <targets.json>` accepts a JSON array of
39
- objects with `component` (`skill` or `addon`) and absolute `path`. It cannot be
40
- combined with the path selectors. An empty array intentionally updates only the
41
- npm CLI and bundled tools; it never discovers or deploys other targets.
42
-
43
- The npm launcher fetches `lycheedev@latest` into isolation and pins the exact
44
- resolved package. This command has no version/channel selector: do not use it to
45
- refresh a selected `next`, exact-version or development candidate. Keep that
46
- selection and use its matching installed release root for payload deployment;
47
- if CLI replacement is requested, use the explicitly chosen package/version through
48
- the supported distribution route. Do not move registry tags to make an updater
49
- select a candidate. Keep the owner's existing registry-channel policy separate
50
- from installation; an update task is not a release-promotion request.
51
-
52
- The launcher verifies the pinned package,
53
- checks all targets, replaces the CLI (including its bundled LuaLS), then applies
54
- that release's addon and Skill through native delivery. No running native process
55
- holds the old executable during npm replacement. Successful replacement removes
56
- old managed files; interrupted transactions retain recovery data. Retry with the
57
- same arguments to use the pinned package and original targets. Do not remove a
58
- transaction or choose another release to bypass a pending conflict. Failure can
59
- leave the CLI updated while some target files still need recovery; inspect the
60
- returned target states and `context.updateRecovery`, not only the CLI version.
61
-
62
- For an already installed native release, or intentional offline payload sync:
63
-
64
- ```text
65
- lycheedev update --release <distribution-root> --path <parent/lycheedev> --installation <client-directory> --format json
66
- ```
67
-
68
- This verifies and applies that CLI version's payload; it does not self-replace
69
- the native executable or fetch npm. Older CLIs without `update` need a supported
70
- CLI upgrade only when an upgrade is in scope; select the requested release before
71
- using its command. Do not call an
72
- unimplemented update command merely because the Skill documents it.
73
-
74
- `result.complete` confirms files and receipts. `activation: reload_required`
75
- does not mean the game loaded them; `new_agent_context_required` does not mean
76
- an existing Agent re-read the Skill. Continue runtime activation only when the
77
- task includes it, using the verified selected client below.
78
-
79
- ## Install, remove and activate
80
-
81
- Installation selection accepts a game root or an explicit client directory. Reuse
82
- the returned verified client path for subsequent writes. A unique valid match needs
83
- no question; resolve multiple candidates before deployment. Conflicting metadata
84
- must be reported, never overwritten by a folder name or user-supplied product.
85
- Use `context.installationSelection` to inspect candidates/issues. Do not copy the
86
- target resolver's product flag onto addon/update commands that do not expose it.
87
-
88
- Before a write, inspect the target's ownership, product/build identity, and
89
- file integrity. An unmanaged, modified, ambiguous, or conflicting target is a
90
- reportable stop condition; do not overwrite it, delete it, forge ownership, or
91
- fall back to manual copying. Keep any recovery directory outside the live
92
- installation and use only the CLI's documented recovery mechanism.
93
-
94
- An installation result proves filesystem work only. It does not prove that the
95
- running client loaded the release, that the addon is enabled, or that live
96
- input is available. Installation/update/removal must not be used to import old
97
- task definitions, queue state, bindings, or SavedVariables into a new run.
98
-
99
- The complete CLI release carries its own pinned LuaLS runtime for source
100
- semantics. Verify the release inventory through the normal installer and
101
- `doctor`; do not ask the user to install a global language server. Addon file
102
- installation uses the lightweight TOC/XML/Lua checker and does not require Git
103
- or LuaLS on the target machine.
104
-
105
- Before updating a managed installation, finish current operations and disconnect
106
- your own compatible native CON connections. The installer refuses unresolved
107
- ownership; do not clear a foreign project's claim. Deploy through the managed
108
- installer, then activate the selected process using the startup workflow. Native
109
- 3.2 development uses Lycheedev mailbox protocol v1 and 500 LoadOnDemand slot addons; all managed
110
- files and receipts must match the selected CLI release. An installed CLI or Skill
111
- does not update an already running client, and a disk-only result is not live
112
- readiness.
113
-
114
- An inert older managed installation can be replaced using its installation
115
- receipt. This is filesystem migration, not protocol compatibility: the 3.1 driver
116
- rejects old wire, native identities and channel-v1 journals, including 64-slot
117
- connections. Preserve those records and unresolved reservations for diagnosis in
118
- the owning task. Do not ask the new driver to resume
119
- them, rewrite their schema or delete their claims to permit installation. With multiple
120
- instances, activate and verify each authorized PID after the shared installation
121
- is updated. If the runtime reports `restart_required` because newly installed
122
- slot folders are unavailable, retain that blocker and restart only within scope.
123
- If the authorized task includes using the running client, follow
124
- [live-startup.md](live-startup.md) after deployment. Activation precedes a
125
- bridge session when the addon is not running; do not require that session as
126
- the prerequisite for its own first activation. Installation alone does not
127
- authorize a game restart or a switch of character.
128
-
129
- The saved update inventory remembers discovery locations. Default `update`
130
- selects locations still installed and original targets with an interrupted
131
- replacement journal; removing a managed target does not request its later
132
- reinstallation. Explicit `--path`, `--installation`, and a retained npm
133
- transaction continue to select their exact targets, including absent ones.
@@ -1,127 +0,0 @@
1
- # Live investigation
2
-
3
- Use this for evidence about the running client. Source describes possible
4
- behavior; static data and Hotfix captures describe fixed records. A live
5
- observation establishes what happened on its selected client and conditions.
6
-
7
- Start with retained state: status/results for an existing CON, [recovery](live-recovery.md)
8
- for unfinished work, or select/connect below for a new task. Reuse a matching
9
- idle CON. For activation, missing readiness or installation problems, use the
10
- [doctor/startup workflow](live-startup.md); diagnosis itself sends no input.
11
- Use [retained errors](error-diagnosis.md) or [performance measurement](runtime-investigations.md)
12
- when they answer the question; write a [probe](live-probes.md) only for missing evidence.
13
-
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,
17
- typed path, publication, owner/fence, challenge and exact result. Old native
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.
27
-
28
- ## Select and connect
29
-
30
- `live instances --passive` inventories targets without input or actor binding.
31
- Reuse a supplied installation/PID or a uniquely matching target under the user's
32
- scope. Match the verified executable path and process creation identity, not
33
- just `Wow.exe`, a folder name or a shared build hash. If multiple targets remain
34
- and the task does not choose them, present known product/build, actor/realm and
35
- PID; unknown identity stays unknown. “Test both” or an established arbitrary-
36
- character scope already resolves that choice within its stated limits.
37
-
38
- ```text
39
- lycheedev live connect --project <project-directory> --installation <client> --pid <pid> --character <name> --realm <realm> --wait-seconds 120 --format json
40
- ```
41
-
42
- Actor filters are useful when the task names a character. If it permits the
43
- current character, use the supported selection without inventing a name and
44
- retain the returned actor. Save `result.session`, project, journal, runtime,
45
- installation and process/actor identity. A data `--snapshot` constrains data
46
- context independently; it neither selects nor authenticates a running process.
47
-
48
- One process has one durable connection owner and one active CLI driver. Each
49
- same-build instance keeps its own CON/request and target; shared addon files
50
- do not make them interchangeable. A fresh bind establishes runtime ownership;
51
- execution remains within the authorized task. A foreign
52
- project's claim, missing publication or stale sample is not an expired timeout.
53
-
54
- ## Complete an investigation
55
-
56
- ```text
57
- lycheedev live execute --project <project-directory> --session <CON-id> --file <probe.lua> --request <stable-key> --budget-seconds 30 --wait-seconds 120 --policy observation --format json
58
- ```
59
-
60
- Use `--probe <immutable-PRB-revision>` instead of a file for registered source.
61
- Keep the exact code, request and budget for continuation. `--budget-seconds`
62
- bounds addon execution (1..120); `--wait-seconds` bounds this host call
63
- (1..600, default 120). The [durable recovery deadline](live-recovery.md#durable-evidence-and-older-journals)
64
- survives between calls. Host timeout does not cancel Lua or renew either budget.
65
-
66
- Select `observation` only when repeating the entire probe after confirmed
67
- runtime loss is safe. The default `opaque` preserves uncertainty for effects
68
- that cannot safely repeat. CLI-managed observation recovery keeps the logical
69
- operation and records another attempt/ticket; it does not prove the old attempt
70
- did nothing. A new request key is for a genuinely new completed-task experiment,
71
- not for escaping a pending one.
72
-
73
- Read the result on three independent axes:
74
-
75
- | Fact | Meaning |
76
- | --- | --- |
77
- | `reportState: verified` | Exact result bytes were verified and retained |
78
- | `report.ok`, error, assertions and result coverage | Whether the probe's business check succeeded and what it observed |
79
- | `complete: true` with `cleanup: complete` | This command finished its lifecycle |
80
-
81
- A verified Lua error/timeout is useful evidence, even when its business result
82
- failed. Pending cleanup still needs [recovery](live-recovery.md), not another
83
- execution. Completed native work needs no ACK/finish/hide command. Repeating
84
- the exact completed request reads retained bytes without rerunning Lua, even
85
- after later operations or game exit; edited parameters/code are not that retry.
86
-
87
- The CLI may reload at a quiescent capacity boundary. Scene-dependent probes
88
- must reconstruct prerequisites or record that they cannot. Ordinary observation
89
- does not need an input shield, and UI activity labels prove neither execution
90
- nor result retrieval.
91
-
92
- ```text
93
- lycheedev live disconnect <CON-id> --project <project-directory> --wait-seconds 120 --format json
94
- ```
95
-
96
- Disconnect when the authorized investigation ends unless continued use is needed.
97
- It verifies unbind or [process/runtime retirement](live-recovery.md#ownership-and-runtime-retirement)
98
- before releasing ownership. Completed-close retry is read-only or repairs its
99
- interrupted host retirement. `closed: true` can coexist with unavailable report/
100
- `execution_unknown`; connection cleanup does not establish a business outcome.
101
- Keep the project's whole `.lycheedev/live` evidence directory together.
102
-
103
- ## Design a discriminating probe
104
-
105
- Read [probe design](live-probes.md#design-a-discriminating-probe) for a new Lua
106
- experiment or an unresolved source hypothesis.
107
-
108
- ## Write bounded probes
109
-
110
- Use the [bounded API and cleanup rules](live-probes.md#write-bounded-probes).
111
- A host timeout cannot preempt synchronous Lua.
112
-
113
- ## Test source hypotheses
114
-
115
- Carry fixed locations and conditions into [live hypothesis testing](live-probes.md#test-source-hypotheses),
116
- then feed observations back into that path. An unrelated successful probe does
117
- not validate the suspected source or failing conditions.
118
-
119
- ## Input and recovery
120
-
121
- For input blockers, contention or uncertain input, use [input recovery](live-recovery.md#input-and-recovery).
122
- Keep one original CON/request driven serially.
123
-
124
- ## Recover without replay
125
-
126
- Read [recovery](live-recovery.md#recover-without-replay) before resuming or reloading.
127
- Pending alone does not call for reload or an unchanged retry loop.
@@ -1,275 +0,0 @@
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; 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
17
- lease, reconciles original nonces and continues within both the caller's wait
18
- limit and the original durable deadline. Exit 6 retains usable results and
19
- unfinished cleanup. Choose from the returned `continuation`, including its
20
- goal, blocker condition and remaining budget:
21
-
22
- | Kind | Next action |
23
- | --- | --- |
24
- | `continue` | Continue the original CON serially within its budget when no unresolved hard error prevents progress; reconcile the receipt or focus condition |
25
- | `wait_active_driver` | Wait for the existing host call; do not start a competing resume |
26
- | `wait_external` | Resolve or wait for the named dependency to change, then resume |
27
- | `needs_decision` | Inspect the concrete outcome/blocker and choose an action covered by the task's scope |
28
- | `budget_exhausted` | Retain results and consider permitted cleanup/recovery; do not renew business time |
29
- | `completed` | Read this command's terminal outcome; check whether the overall investigation is done |
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
-
45
- `needs_decision` is not an automatic permission prompt. Necessary recovery can
46
- already be authorized; an unresolved opaque effect may instead require an
47
- independent observation or a truthful handoff. Do not infer recovery from an
48
- internal stage alone. Keep each instance's project, CON and request separate.
49
- Do not replace a request, edit its files, clear ownership or repeat raw input to
50
- force progress. A cached hit never bypasses identity/checksum/fresh-confirmation
51
- validation. A missing or partial Mailbox observation is not proof that input
52
- was never executed or that no result exists.
53
-
54
- After user reload, a descriptor alone is only a candidate. Continuing business
55
- requires a fresh bind; closing the old CON instead uses [verified retirement](#ownership-and-runtime-retirement).
56
- Resume may attempt input-free cleanup when closing, after budget exhaustion or
57
- from saved `runtimeEnd`, without renewing business time.
58
- Repeatable observations can resume in a new attempt, bounded to three attempts.
59
- For opaque execution after a possible commit, `execution_unknown` remains unknown;
60
- inspect external postconditions using an authorized independent observation
61
- instead of repeating the effect. A fresh runtime may prove old runtime resources
62
- are gone without proving that the old script never changed persistent state.
63
-
64
- A partial final journal write can be repaired under the owning driver lease only
65
- when the entire preceding chain validates; the original bytes are retained.
66
- Corrupt complete events, missing journals, foreign ownership, incompatible files
67
- or an unavailable client require diagnosis. Never recreate an empty ledger to
68
- turn uncertainty into a new operation. Report the exact blocker and retained IDs
69
- if no safe progress remains; do not label that handoff complete.
70
-
71
- For an intentional idle reload, use a stable request key:
72
-
73
- ```text
74
- lycheedev live reload --project <project-directory> --session <CON-id> --request <reload-key> --wait-seconds 120 --format json
75
- ```
76
-
77
- The same explicit reload can recover a bound connection whose pending exchange
78
- cannot obtain a receipt (for example, `confirm_ready` after submitted input).
79
- It preserves the old exchange and candidate report, uses normal input readiness,
80
- and, while the connection remains open, requires a fresh runtime binding to
81
- complete reload and continue business. Observation work may then become eligible
82
- for a later resume under its existing policy.
83
-
84
- If disconnect is already pending, explicit reload has a narrower purpose: verify
85
- that the old runtime has ended, sending the authorized reload only if needed,
86
- then close the old CON without binding the replacement or restarting unfinished work.
87
- It uses its own 600-second control budget even when the original close budget is
88
- exhausted; neither that budget nor the business budget is renewed. Keep the same
89
- CON/project and reload request key for continuation. A submitted or uncertain
90
- reload input is never replayed, and an active reload/recovery cannot be replaced
91
- by a new request. Completion here means the CON is closed, not connected to the
92
- replacement runtime; it does not prove this CLI sent or caused a reload.
93
- Saved `runtimeEnd` evidence needs only input-free retirement.
94
- The original input record remains the authority for what was sent.
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
-
101
- Use this explicit recovery only when needed within the authorized task, after
102
- inspecting the concrete blocker; pending, contention or budget exhaustion alone
103
- does not call for reload. Without replacement proof, retain pending cleanup and
104
- wait for the reported condition to change. The separate input-free retirement
105
- path may close the old CON without any reload input. An unconfirmed opaque report
106
- remains unavailable/execution_unknown; successful reload or close does not verify
107
- it. New work on a changed actor requires a fresh CON within the task's target
108
- scope. An existing arbitrary-character scope can cover it after safe retirement;
109
- the old operation is never transferred.
110
-
111
- `journal.resource_busy: active window driver` means another host CLI still holds
112
- the execution lease. A game UI frame does not own that lease. Wait for the active
113
- call to finish before recovery; pressing Escape cannot release a host lease.
114
-
115
- Disconnect does not commit prepared business merely to finish it. If the exact
116
- prepared exchange needs explicit reload, preserve its blocker and use the
117
- existing reload command only within the authorized scope. Closing is not proof
118
- that an already submitted opaque operation was cancelled or never ran.
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
-
129
- ## Ownership and runtime retirement
130
-
131
- A PID has one durable owner across projects and one active host driver. CLI exit
132
- or elapsed time does not release the claim. Resolve foreign ownership with the
133
- owning task; a crash releases the OS driver lock, not durable reservations.
134
-
135
- Use the old CON's `live disconnect` in its owning project. The CLI can verify
136
- PID plus creation-time process exit, or verify another runtime actually wrote a
137
- new input sample in the same fixed process. Access errors, missing windows,
138
- descriptors or cached samples prove neither case. Replacement requires fresh,
139
- increasing input samples from the new runtime in that same process. The CLI
140
- revalidates the build-bound root and named Mailbox path within its budget;
141
- it does not relocate samples by scanning the heap. Game time is not compared
142
- with the host clock to establish replacement.
143
-
144
- For runtime replacement, the CLI saves `runtimeEnd` before retiring only the
145
- old CON's exact reservations.
146
- An expired current INPUT sample is reread within the bounded observation period
147
- until a fresh publication is available; this does not renew the business budget.
148
- Missing or malformed slot metadata is retained without reconstructing consumed
149
- receipts. Use `doctor --fix` to archive and rebuild a damaged pool after the
150
- original connection is closed.
151
- Saved proof can finish interrupted retirement even after character selection.
152
- Without a new sample or saved proof, character selection stays pending. This path
153
- sends no input, binds no replacement, and does not change the old actor or replay
154
- its probe. Retain unresolved `execution_unknown` results even if `closed=true`.
155
- A new investigation on another actor needs a new CON for the authorized target;
156
- never automatically transfer the old request or probe.
157
-
158
- ## Input and recovery
159
-
160
- The CLI journals input under Lycheedev mailbox protocol v1. Current Mailbox
161
- records carry input readiness, identity, routing and results. Native input does
162
- not use colors, capture, QR or a startup beacon. Missing or stale input records
163
- never authorize keys or a blind reload fallback.
164
-
165
- Ordinary EditBoxes forward only the two formal Lychee Dev actions while the
166
- bridge is enabled. Focus and draft text stay intact. Current INPUT publishes
167
- `escapeLimit=0`; no Esc is needed. Password, secure text, protected or forbidden
168
- editors return `input_focus_unavailable`; retain the CON and wait for the user to
169
- leave that field. Combat, loading and stale evidence never authorize keys.
170
- Keyboard activity pauses new automatic chords. Every key must be released and
171
- no keyboard event may occur for 500ms before the CLI rechecks fresh INPUT and
172
- sends. Holding W also pauses input. The passive listener keeps only the last
173
- event time, passes keys through normally, and closes with the native backend.
174
- An active chord finishes and releases its keys before waiting; cancellation
175
- still releases only keys pressed by that attempt. Submitted or uncertain input
176
- continues waiting for its original receipt and is never replayed. Keyboard waits
177
- retain the original request and deadline. A user key can still overlap a chord
178
- that has already started; only the addon receipt confirms execution.
179
-
180
- The enabled INPUT sampler remains active when an AFK interface hides UIParent.
181
- Loading, world state and focus checks still apply. Fresh telemetry does not
182
- prove that a third-party keyboard frame forwards the binding.
183
-
184
- In-game edit focus differs from Windows foreground focus. Input targets the
185
- verified HWND through PostMessage without activating or stealing the foreground.
186
- The CLI verifies process/window identity and rejects minimized targets. Agents
187
- do not send keys, clear focus, decode colors or locate memory addresses manually.
188
-
189
- For `input_binding_unavailable`, run `doctor` on the same CON and resolve
190
- the selected target’s effective binding before further input. Do not change user bindings or protocol keys, or repeat wake to
191
- test the conflict. A ready input observation does not prove the shortcut reaches
192
- the receiver. If input was already submitted or uncertain, retain the original
193
- CON and slot reservation and follow official CLI recovery; fixing the binding
194
- does not authorize replay of unknown input. Never delete the slot to unblock
195
- another instance; use [verified retirement](#ownership-and-runtime-retirement)
196
- when the original process or runtime has ended.
197
-
198
- The in-game keybinding settings contain execute and reload under Lychee Dev.
199
- Defaults are Ctrl+Alt+F12 and Ctrl+Alt+F11, with F10/F9 as conflict fallbacks.
200
- Existing assignments are preserved. `/dev receiver reset` fills missing actions
201
- using free defaults; it does not overwrite player keys or repair a pending CON.
202
- The CLI reads actual effective bindings from Mailbox; never substitute a chord.
203
- Reload uses its own game binding and calls the UI reload API directly. Legacy
204
- input-v3/hybrid-v2 grants no new keys; install the current addon, reload manually
205
- and resume the retained activation.
206
- The previous name of the two-key protocol is different: its fresh INPUT with
207
- zero Esc may authorize only the upgrade reload. Let the CLI complete that step;
208
- the new runtime publishes the full current name before business resumes.
209
-
210
- Input evidence is distinct from execution: `not_sent` proves zero messages were
211
- queued; `submitted` proves only queue submission; `uncertain` (or an intent with
212
- no outcome) does not permit replay. These facts drive CLI recovery. Do not
213
- reinterpret them into manual retry instructions. Use the same CON/project and
214
- `live resume`; inspect `waiting` when present. Recheck after a changed condition
215
- within the authorized task; do not repeat indefinitely against an absent process,
216
- foreign ownership or an unresolved opaque execution outcome.
217
-
218
- Optional input-attempt diagnostics are not execution receipts. Missing counters
219
- do not prove that a key was never delivered; unchanged counters do not authorize
220
- replay. Diagnose unsupported roots/layouts or read gaps from retained evidence;
221
- do not fix them by copying an RVA, scanning memory or looping reloads.
222
-
223
- `waiting: shared_publication` is shared-file contention inside one installation,
224
- not proof of a lost connection. Native 3.2 development requires the Mailbox wire,
225
- identity and 500-slot pool; it rejects older native connection identities.
226
- Retain incompatible evidence for diagnosis; current drivers cannot execute old-wire journals. The current 500-slot allocator can skip another
227
- owner's reservations for a new exchange only before publication or input. The
228
- runtime skips empty/foreign slots and stops at the first envelope for itself;
229
- it does not skip its own pending work. Once published, submitted or uncertain,
230
- the original slot and nonce remain fixed. Agents neither choose slots nor move
231
- payloads; they continue the original CON/project/request serially.
232
-
233
- A short publication lease can clear when its active call ends. If all forward
234
- slots are occupied, continuation reports `blocker.kind: slot_pool_full` with
235
- `condition: forward_slot_available`. Wait for actual availability to change,
236
- usually through the owning connection's recovery; do not busy-loop resume,
237
- delete reservations or change request keys. Capacity reload belongs to the CLI
238
- and does not erase another instance's claim or prove unknown input never ran.
239
- A combat or focus wait retains its reservation, not the short publication lock.
240
-
241
- `complete` applies to the current command: a connected runtime does not complete
242
- a pending disconnect, and a previous report does not complete reload. UI activity
243
- is not execution or result proof.
244
-
245
- The whole `.lycheedev/live` directory is the recovery unit. Keep connection logs,
246
- linked history segments, content-addressed `connections/artifacts`, target metadata
247
- and result files together. New journals reference exact code/result bytes by digest;
248
- compatible inline snapshots remain readable. Missing or corrupt referenced content is
249
- a recovery error, never a reason to generate another request key.
250
-
251
- ## Durable evidence and older journals
252
-
253
- Durable deadlines are 600 seconds per business request or explicit reload,
254
- 120 seconds for initial bind or first close, and 600 seconds for activation
255
- carried into its bind. Waiting for the first manual reload starts no connection
256
- budget until the new runtime is observed. Other time between calls counts. Resume, repeated close and
257
- changing request keys do not extend a goal. Close retains its own allowance
258
- after business exhaustion; existing evidence remains readable. Detected clock
259
- rollback stops automatic work; an unseen offline clock change cannot be detected.
260
-
261
- Current native writes use channel-v2 and activation-v3 with the current Mailbox
262
- identity. Older native wire/identity journals are rejected before driving or
263
- budget migration; preserve them for read-only diagnosis.
264
- An older artifact serialization within a compatible connection is a different
265
- case and does not establish old-wire compatibility. A CLI wait timeout or
266
- interruption ends the host call, not the game-side probe or its cleanup.
267
- A cancelled host wait uses exit 7; it does not confirm Lua cancellation.
268
-
269
- Cleanup callback failures retain the verified report and trigger a journaled
270
- reload; a fresh binding then records `cleanupMethod: runtime_destroyed`. The
271
- original `resourcesReleased: false` is preserved. It is distinct from a normal
272
- release acknowledgement. Journal segments rotate only at idle boundaries and
273
- remain linked under the connection's `.jsonl.history` directory; preserve these
274
- alongside the active log. A missing segment must not be worked around by issuing
275
- a new request key.