@eyeauras/insight-cli 0.8.2 → 0.8.4

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 (134) hide show
  1. package/.cli-package-build.json +1 -1
  2. package/README.md +53 -7
  3. package/SKILL.md +4 -8
  4. package/dist/src/administration.js +1 -1
  5. package/dist/src/archive.js +1 -1
  6. package/dist/src/artifacts.d.ts +2 -1
  7. package/dist/src/artifacts.js +6 -5
  8. package/dist/src/binary.js +1 -1
  9. package/dist/src/capture.js +3 -3
  10. package/dist/src/cli.js +17 -16
  11. package/dist/src/contexts.js +14 -17
  12. package/dist/src/cross.js +1 -1
  13. package/dist/src/debugger.js +1 -1
  14. package/dist/src/die.js +1 -1
  15. package/dist/src/dnspy.js +1 -1
  16. package/dist/src/dotnet-diagnostics.js +1 -1
  17. package/dist/src/ilspy.js +1 -1
  18. package/dist/src/lifecycle.js +5 -5
  19. package/dist/src/lldb.js +1 -1
  20. package/dist/src/llvm.js +1 -1
  21. package/dist/src/managed-heap.js +1 -1
  22. package/dist/src/managed-metadata.js +1 -1
  23. package/dist/src/mitmproxy.js +1 -1
  24. package/dist/src/model.d.ts +6 -1
  25. package/dist/src/model.js +9 -2
  26. package/dist/src/mutations.js +1 -1
  27. package/dist/src/projects.js +3 -3
  28. package/dist/src/prototype-cli.js +4 -4
  29. package/dist/src/research.js +1 -1
  30. package/dist/src/runtime-manager.d.ts +2 -2
  31. package/dist/src/runtime-manager.js +28 -4
  32. package/dist/src/sdk-files.js +3 -3
  33. package/dist/src/sdk.js +1 -1
  34. package/dist/src/server.d.ts +1 -0
  35. package/dist/src/server.js +17 -7
  36. package/dist/src/sevenzip.js +1 -1
  37. package/dist/src/strace.js +1 -1
  38. package/dist/src/sync-policy.js +4 -4
  39. package/dist/src/tool-runtime/identity.d.ts +7 -0
  40. package/dist/src/tool-runtime/identity.js +35 -0
  41. package/dist/src/tool-runtime/store.js +3 -0
  42. package/dist/src/tool-runtime/supervisor.d.ts +8 -0
  43. package/dist/src/tool-runtime/supervisor.js +58 -10
  44. package/dist/src/tshark.js +1 -1
  45. package/dist/src/ui.js +3 -3
  46. package/dist/src/version-tracking.js +2 -2
  47. package/dist/src/windbg.js +1 -1
  48. package/dist/src/work/backup.js +17 -5
  49. package/dist/src/work/commands.js +51 -14
  50. package/dist/src/work/model.d.ts +43 -1
  51. package/dist/src/work/model.js +128 -0
  52. package/dist/src/work/store.d.ts +34 -3
  53. package/dist/src/work/store.js +78 -21
  54. package/dist/src/work/timing.d.ts +9 -0
  55. package/dist/src/work/timing.js +10 -1
  56. package/package.json +1 -1
  57. package/references/agent-setup.md +2 -11
  58. package/references/debugger.md +1 -1
  59. package/references/managed-runtime.md +1 -2
  60. package/references/native/InsightNativeCheckout.java +24 -8
  61. package/references/recovery.md +2 -34
  62. package/references/research.md +5 -5
  63. package/references/setup.md +0 -4
  64. package/references/work-tracking.md +61 -3
  65. package/skill-bundle/insight-artifacts/SKILL.md +3 -7
  66. package/skill-bundle/insight-artifacts/references/recovery.md +2 -34
  67. package/skill-bundle/insight-binary/SKILL.md +3 -7
  68. package/skill-bundle/insight-capture/SKILL.md +3 -7
  69. package/skill-bundle/insight-cli/SKILL.md +4 -8
  70. package/skill-bundle/insight-cli/references/agent-setup.md +2 -11
  71. package/skill-bundle/insight-cli/references/managed-runtime.md +1 -2
  72. package/skill-bundle/insight-cli/references/recovery.md +2 -34
  73. package/skill-bundle/insight-cli/references/setup.md +0 -4
  74. package/skill-bundle/insight-die/SKILL.md +3 -7
  75. package/skill-bundle/insight-dnspy/SKILL.md +3 -7
  76. package/skill-bundle/insight-dotnet-dump/SKILL.md +3 -7
  77. package/skill-bundle/insight-dotnet-stack/SKILL.md +3 -7
  78. package/skill-bundle/insight-dotnet-trace/SKILL.md +3 -7
  79. package/skill-bundle/insight-frida/SKILL.md +3 -7
  80. package/skill-bundle/insight-ghidra/SKILL.md +13 -36
  81. package/skill-bundle/insight-ghidra/references/debugger.md +1 -1
  82. package/skill-bundle/insight-ghidra/references/managed-runtime.md +1 -2
  83. package/skill-bundle/insight-ghidra/references/recovery.md +2 -34
  84. package/skill-bundle/insight-ghidra/references/research.md +5 -5
  85. package/skill-bundle/insight-ghidra/references/setup.md +0 -4
  86. package/skill-bundle/insight-ilspy/SKILL.md +3 -7
  87. package/skill-bundle/insight-interop/SKILL.md +3 -7
  88. package/skill-bundle/insight-lldb/SKILL.md +3 -7
  89. package/skill-bundle/insight-llvm/SKILL.md +3 -7
  90. package/skill-bundle/insight-managed-heap/SKILL.md +3 -7
  91. package/skill-bundle/insight-managed-metadata/SKILL.md +3 -7
  92. package/skill-bundle/insight-mitmproxy/SKILL.md +3 -7
  93. package/skill-bundle/insight-overview/SKILL.md +3 -7
  94. package/skill-bundle/insight-procmon/SKILL.md +3 -7
  95. package/skill-bundle/insight-re/SKILL.md +4 -8
  96. package/skill-bundle/insight-re/references/recovery.md +2 -34
  97. package/skill-bundle/insight-re/references/work-tracking.md +61 -3
  98. package/skill-bundle/insight-sevenzip/SKILL.md +3 -7
  99. package/skill-bundle/insight-strace/SKILL.md +3 -7
  100. package/skill-bundle/insight-tshark/SKILL.md +3 -7
  101. package/skill-bundle/insight-windbg/SKILL.md +3 -7
  102. package/skill-bundle/manifest.json +1 -1
  103. package/skills/insight-artifacts/SKILL.md +3 -7
  104. package/skills/insight-artifacts/references/recovery.md +2 -34
  105. package/skills/insight-binary/SKILL.md +3 -7
  106. package/skills/insight-capture/SKILL.md +3 -7
  107. package/skills/insight-die/SKILL.md +3 -7
  108. package/skills/insight-dnspy/SKILL.md +3 -7
  109. package/skills/insight-dotnet-dump/SKILL.md +3 -7
  110. package/skills/insight-dotnet-stack/SKILL.md +3 -7
  111. package/skills/insight-dotnet-trace/SKILL.md +3 -7
  112. package/skills/insight-frida/SKILL.md +3 -7
  113. package/skills/insight-ghidra/SKILL.md +13 -36
  114. package/skills/insight-ghidra/references/debugger.md +1 -1
  115. package/skills/insight-ghidra/references/managed-runtime.md +1 -2
  116. package/skills/insight-ghidra/references/recovery.md +2 -34
  117. package/skills/insight-ghidra/references/research.md +5 -5
  118. package/skills/insight-ghidra/references/setup.md +0 -4
  119. package/skills/insight-ilspy/SKILL.md +3 -7
  120. package/skills/insight-interop/SKILL.md +3 -7
  121. package/skills/insight-lldb/SKILL.md +3 -7
  122. package/skills/insight-llvm/SKILL.md +3 -7
  123. package/skills/insight-managed-heap/SKILL.md +3 -7
  124. package/skills/insight-managed-metadata/SKILL.md +3 -7
  125. package/skills/insight-mitmproxy/SKILL.md +3 -7
  126. package/skills/insight-overview/SKILL.md +3 -7
  127. package/skills/insight-procmon/SKILL.md +3 -7
  128. package/skills/insight-re/SKILL.md +4 -8
  129. package/skills/insight-re/references/recovery.md +2 -34
  130. package/skills/insight-re/references/work-tracking.md +61 -3
  131. package/skills/insight-sevenzip/SKILL.md +3 -7
  132. package/skills/insight-strace/SKILL.md +3 -7
  133. package/skills/insight-tshark/SKILL.md +3 -7
  134. package/skills/insight-windbg/SKILL.md +3 -7
@@ -3,14 +3,10 @@ name: insight-lldb
3
3
  description: Observe native runtime arguments, return values, registers, stacks and bounded memory at a selected breakpoint using an owned LLDB launch. Use insight-cli lldb on macOS ARM64 when static findings need a concrete execution check.
4
4
  ---
5
5
 
6
- # Insight LLDB 0.8.2
6
+ # Insight LLDB 0.8.4
7
7
 
8
- If local help/status reports AppData or IPC access denied, retry that **read-only probe**
9
- with the agent host's normal permission escalation, then use that route for later authorized
10
- CLI calls too. An explicit **no command was sent** denial is known undispatched and can be
11
- retried through that route. Keep HOME, profile and owner state; see
12
- [host execution permissions](references/agent-execution.md). A lost mutation reply needs
13
- request/status recovery, never blind retry.
8
+ AppData/IPC access denied: follow [host execution permissions](references/agent-execution.md).
9
+ A lost mutation reply needs request/status recovery, never a blind retry.
14
10
 
15
11
  Follow the project's RE and evidence conventions. This debugger runs a native input; choose
16
12
  an input whose execution and application side effects are authorized. It launches a separate
@@ -3,14 +3,10 @@ name: insight-llvm
3
3
  description: Inspect PE, ELF and Mach-O headers, dependencies, exports and symbols; query PDB debug information or a small instruction window with insight-cli LLVM utilities before opening a full analysis project.
4
4
  ---
5
5
 
6
- # Insight LLVM 0.8.2
6
+ # Insight LLVM 0.8.4
7
7
 
8
- If local help/status reports AppData or IPC access denied, retry that **read-only probe**
9
- with the agent host's normal permission escalation, then use that route for later authorized
10
- CLI calls too. An explicit **no command was sent** denial is known undispatched and can be
11
- retried through that route. Keep HOME, profile and owner state; see
12
- [host execution permissions](references/agent-execution.md). A lost mutation reply needs
13
- request/status recovery, never blind retry.
8
+ AppData/IPC access denied: follow [host execution permissions](references/agent-execution.md).
9
+ A lost mutation reply needs request/status recovery, never a blind retry.
14
10
 
15
11
  Use existing project RE rules and evidence paths. These are static reads; no Ghidra project,
16
12
  program execution or shared merge is needed. Use Ghidra when the question needs recovered
@@ -3,14 +3,10 @@ name: insight-managed-heap
3
3
  description: Query structured .NET heap objects, primitive fields and managed stacks from a retained CoreCLR dump through insight-cli dotnet-dump query. Use for bounded offline dump investigation with an explicit matching DAC, preserving uncertainty and immutable input identity.
4
4
  ---
5
5
 
6
- # Insight Managed Heap 0.8.2
6
+ # Insight Managed Heap 0.8.4
7
7
 
8
- If local help/status reports AppData or IPC access denied, retry that **read-only probe**
9
- with the agent host's normal permission escalation, then use that route for later authorized
10
- CLI calls too. An explicit **no command was sent** denial is known undispatched and can be
11
- retried through that route. Keep HOME, profile and owner state; see
12
- [host execution permissions](references/agent-execution.md). A lost mutation reply needs
13
- request/status recovery, never blind retry.
8
+ AppData/IPC access denied: follow [host execution permissions](references/agent-execution.md).
9
+ A lost mutation reply needs request/status recovery, never a blind retry.
14
10
 
15
11
  Follow project RE/evidence rules. ClrMD is an internal packaged library, not an application
16
12
  that needs another install. This API reads one immutable dump; it never attaches to a live
@@ -3,14 +3,10 @@ name: insight-managed-metadata
3
3
  description: Query managed assembly metadata, MethodDef tokens, P/Invoke declarations and bounded IL, or compare two C#/.NET assemblies through insight-cli ilspy query/compare. Use for structured static evidence and changed-method research without executing the target.
4
4
  ---
5
5
 
6
- # Insight Managed Metadata 0.8.2
6
+ # Insight Managed Metadata 0.8.4
7
7
 
8
- If local help/status reports AppData or IPC access denied, retry that **read-only probe**
9
- with the agent host's normal permission escalation, then use that route for later authorized
10
- CLI calls too. An explicit **no command was sent** denial is known undispatched and can be
11
- retried through that route. Keep HOME, profile and owner state; see
12
- [host execution permissions](references/agent-execution.md). A lost mutation reply needs
13
- request/status recovery, never blind retry.
8
+ AppData/IPC access denied: follow [host execution permissions](references/agent-execution.md).
9
+ A lost mutation reply needs request/status recovery, never a blind retry.
14
10
 
15
11
  Keep the project's RE and evidence conventions. This capability parses assembly bytes;
16
12
  it never loads target code for execution, resolves ambient assemblies or loads PDBs.
@@ -3,14 +3,10 @@ name: insight-mitmproxy
3
3
  description: Record, inspect and compare HTTP request/response evidence with insight-cli mitmproxy. Use when an owned client can explicitly use a loopback proxy; read native flow archives or HAR without replaying traffic. System interception and global certificate trust are outside this facade.
4
4
  ---
5
5
 
6
- # Insight mitmproxy 0.8.2
6
+ # Insight mitmproxy 0.8.4
7
7
 
8
- If local help/status reports AppData or IPC access denied, retry that **read-only probe**
9
- with the agent host's normal permission escalation, then use that route for later authorized
10
- CLI calls too. An explicit **no command was sent** denial is known undispatched and can be
11
- retried through that route. Keep HOME, profile and owner state; see
12
- [host execution permissions](references/agent-execution.md). A lost mutation reply needs
13
- request/status recovery, never blind retry.
8
+ AppData/IPC access denied: follow [host execution permissions](references/agent-execution.md).
9
+ A lost mutation reply needs request/status recovery, never a blind retry.
14
10
 
15
11
  Keep the project's RE and evidence format. This facade uses a private HTTP proxy on
16
12
  macOS 15+ ARM64. A client must explicitly opt into its endpoint; installing the tool
@@ -3,14 +3,10 @@ name: insight-overview
3
3
  description: Choose bounded tool overviews and focused drilldown through insight-cli without flooding agent context with whole-program code, traces or dumps. Use for tool discovery, scoped evidence paging and keeping native partial coverage separate from complete results.
4
4
  ---
5
5
 
6
- # Insight Overview 0.8.2
6
+ # Insight Overview 0.8.4
7
7
 
8
- If local help/status reports AppData or IPC access denied, retry that **read-only probe**
9
- with the agent host's normal permission escalation, then use that route for later authorized
10
- CLI calls too. An explicit **no command was sent** denial is known undispatched and can be
11
- retried through that route. Keep HOME, profile and owner state; see
12
- [host execution permissions](references/agent-execution.md). A lost mutation reply needs
13
- request/status recovery, never blind retry.
8
+ AppData/IPC access denied: follow [host execution permissions](references/agent-execution.md).
9
+ A lost mutation reply needs request/status recovery, never a blind retry.
14
10
 
15
11
  Follow project tool and evidence conventions. This workflow uses existing APIs; it adds
16
12
  no runtime, analysis database or installation step. `tools list`/`tools show CAPABILITY`
@@ -3,14 +3,10 @@ name: insight-procmon
3
3
  description: Observe actual file and registry access by an authorized running Windows process through insight-cli procmon. Use when static paths or configuration guesses need runtime evidence; inspect retained captures without collecting again.
4
4
  ---
5
5
 
6
- # Insight ProcMon 0.8.2
6
+ # Insight ProcMon 0.8.4
7
7
 
8
- If local help/status reports AppData or IPC access denied, retry that **read-only probe**
9
- with the agent host's normal permission escalation, then use that route for later authorized
10
- CLI calls too. An explicit **no command was sent** denial is known undispatched and can be
11
- retried through that route. Keep HOME, profile and owner state; see
12
- [host execution permissions](references/agent-execution.md). A lost mutation reply needs
13
- request/status recovery, never blind retry.
8
+ AppData/IPC access denied: follow [host execution permissions](references/agent-execution.md).
9
+ A lost mutation reply needs request/status recovery, never a blind retry.
14
10
 
15
11
  Follow the project's RE and evidence conventions. This Windows x64 facade observes an
16
12
  explicit existing PID. It preserves that process's lifetime and scopes collection to
@@ -3,14 +3,10 @@ name: insight-re
3
3
  description: Investigate shipped programs and binary artifacts with insight-cli and other available tools; retain ordinary research files, coordinate independent agents and publish Ghidra annotations. Use for reverse engineering behavior, not ordinary source-repository browsing.
4
4
  ---
5
5
 
6
- # Insight RE 0.8.2
7
-
8
- If local help/status reports AppData or IPC access denied, retry that **read-only probe**
9
- with the agent host's normal permission escalation, then use that route for later authorized
10
- CLI calls too. An explicit **no command was sent** denial is known undispatched and can be
11
- retried through that route. Keep HOME, profile and owner state; see
12
- [host execution permissions](references/agent-execution.md). A lost mutation reply needs
13
- request/status recovery, never blind retry.
6
+ # Insight RE 0.8.4
7
+
8
+ AppData/IPC access denied: follow [host execution permissions](references/agent-execution.md).
9
+ A lost mutation reply needs request/status recovery, never a blind retry.
14
10
 
15
11
  Answer the user's research question with inspectable materials. Agents choose the
16
12
  investigation; insight-cli supplies applications such as `ghidra` and `artifacts`.
@@ -27,7 +27,7 @@ preserve the project and any `.keep` file.
27
27
 
28
28
  A Ghidra session that ends abruptly can leave unsaved changes as Ghidra recovery data in the
29
29
  working copy. Opening the program would delete them, so `ghidra open` and every native
30
- operation refuse with `blocked` and name the two ways out. Neither needs Ghidra itself:
30
+ operation refuse with `blocked` and name the two ways out; run either with the context closed:
31
31
  `ghidra changes recover-unsaved --session <id> --target <id>` has Ghidra restore those changes
32
32
  and save them into the working copy; `ghidra changes discard-unsaved --session <id> --target <id>`
33
33
  (Destructive) has Ghidra delete them. Saved work stays in both cases, nothing is published, and
@@ -201,51 +201,19 @@ without replay. Unproved native work stays blocked and retained. An unproved pro
201
201
  storage and credential store. Do not delete another session's project, stop a process by guessed
202
202
  PID/port, or blindly repeat a script/external action to turn uncertainty into success.
203
203
 
204
- The older prototype's `workers`, `findings`, `integrate` and batch `recover` commands are not the
205
- public facade API. Its coordinator journals remain separate and are never silently migrated.
206
-
207
204
  A lost UI navigation response can be verified from the live authenticated cursor without another
208
205
  goto. If its original owned GUI process has exited, continuation reports the uncertain UI action
209
206
  as disconnected and retains saved program work. It does not recreate the old cursor or re-enable
210
207
  a previous prompt policy. Other unproved live UI effects remain retained until their outcome is
211
208
  established or the original process is known to have ended.
212
209
 
213
- ## Native unknown attempts and legacy abandonment
210
+ ## Native unknown attempts
214
211
 
215
212
  For native contexts the snapshot-based `ghidra abandon` rollback is unsupported: replacing the
216
213
  DB from a detached snapshot would lose native ancestry and could discard acknowledged private
217
214
  work. Preserve the original project/journal and reconcile provable effects. Do not use discard,
218
215
  GC, another request ID or a new server checkout as evidence that an unknown script did nothing.
219
216
 
220
- The historical snapshot-based abandonment contract below applies only to its retained legacy
221
- fixtures, not to native contexts admitted by the primary CLI.
222
-
223
- ### Historical detached abandonment
224
-
225
- A post-mutation save timeout does not repeat the script or issue another save in the
226
- error handler. Status exposes the original request identity and retained phase/budget.
227
- Arbitrary script effects are never inferred from metadata or from an unverified DB.
228
- After inspecting the retained attempt, explicitly stop only its verified owned worker
229
- (`tools processes`, then `tools processes kill <process>` if required). Resume the
230
- last acknowledged private snapshot with:
231
-
232
- ```sh
233
- insight-cli permissions grant Destructive
234
- insight-cli ghidra abandon --session <session> --target <target> \
235
- --request-id <original-request> --acknowledge-unknown-effects --json
236
- insight-cli ghidra open --session <session> --target <target> --json
237
- ```
238
-
239
- Abandon requires exactly one unresolved private program operation, an unchanged verified
240
- previous snapshot/generation, a stopped original worker and no active publication or live
241
- debugger. It retains the native project, candidate artifacts, original intent/execution and
242
- previous diagnostic result. Its terminal request is `failed` / `state: abandoned` with
243
- `outcome: unknown`; no effect is marked applied. Repeating abandonment retrieves the same
244
- result. Earlier saved private edits remain pending. The original changing request ID cannot
245
- execute again. Abandoning never undoes external effects or establishes what an arbitrary
246
- script did; the acknowledgement explicitly accepts that uncertainty. Publication recovery,
247
- initial import, UI and debugger attempts use their own protocols and cannot use this command.
248
-
249
217
  ## Explicit legacy migration
250
218
 
251
219
  Legacy models require `ghidra migrate --target <target> --dry-run`, then the same
@@ -11,9 +11,15 @@ insight-cli -p RE work create --project client --target TARGET --name Client --r
11
11
  insight-cli -p RE work context --project client --json
12
12
  insight-cli -p RE work import --project client --file functions.json --request-id import-page-1 --json
13
13
  insight-cli -p RE work next --project client --worker agent-a --count 10 --request-id agent-a-next-1 --json
14
- insight-cli -p RE work handoff --lease LEASE --json
14
+ insight-cli -p RE work handoff --lease LEASE --materialize task-a --json
15
+ # write each <rva>/<rva>.cpp and <rva>/<rva>.contract.json named in task-a/submission.json
15
16
  insight-cli -p RE work heartbeat --lease LEASE --request-id agent-a-renew-1 --json
16
- insight-cli -p RE work submit --lease LEASE --file submission.json --request-id agent-a-submit-1 --json
17
+ insight-cli -p RE work submit --lease LEASE --file task-a/submission.json --request-id agent-a-submit-1 --json
18
+ insight-cli -p RE work next --project client --worker agent-b --kind review --request-id agent-b-next-1 --json
19
+ insight-cli -p RE work handoff --lease LEASE --materialize review-b --json
20
+ # decide "approved" and write the note for every entry of review-b/review-manifest.json
21
+ insight-cli -p RE work review --lease LEASE --file review-b/review-manifest.json --request-id agent-b-review-1 --json
22
+ insight-cli -p RE work brief --project client --json
17
23
  insight-cli -p RE work dashboard --project client --json
18
24
  ```
19
25
 
@@ -145,7 +151,7 @@ revision, including functions, dependency records, assignments, events and origi
145
151
  Its final record and returned SHA identify the complete export; artifact payloads remain external.
146
152
  This is a checkpoint projection, not automatic restore or a whole-profile backup.
147
153
 
148
- M0 separates event `revision` from the latest planning barrier `planningRevision`. `next` does not
154
+ The ledger separates event `revision` from the latest planning barrier `planningRevision`. `next` does not
149
155
  need an observed revision. The existing
150
156
  `--expect-revision` accepts an observation between that barrier and the current revision.
151
157
  Heartbeat/claim/release do not change the barrier; structural changes and competing plans do.
@@ -178,6 +184,58 @@ local receipt after a lost ACK. No native context is restored and strict accepte
178
184
  If a caller label has outcomes from several incarnations, `work request` marks it ambiguous and
179
185
  returns `histories`; every outcome is retained and none authorizes a new mutation.
180
186
 
187
+ ## Discovery
188
+
189
+ A `discover` task asks one worker to map the call graph around explicit roots of the project's
190
+ module. Work stores the assignment and the report; the worker walks the graph itself, through Ghidra
191
+ xrefs or a pinned graph inventory. Work starts no agent and no native traversal.
192
+
193
+ ```text
194
+ insight-cli -p RE work next --project client --worker agent-c --kind discover --functions fn:SHA:00401000,fn:SHA:00402000 --strategy breadth --direction callees --max-depth 2 --max-functions 50 --request-id agent-c-next-1 --json
195
+ insight-cli -p RE work handoff --lease LEASE --materialize discover-c --json
196
+ # fill discover-c/discovery-report.json: model, visited, edges, frontier, summary
197
+ insight-cli -p RE work submit --lease LEASE --file discover-c/discovery-report.json --request-id agent-c-submit-1 --json
198
+ ```
199
+
200
+ `--strategy` is `breadth` (BFS, default) or `depth` (DFS); `--direction` is `callees` (default),
201
+ `callers` or `both`; `--max-depth` counts the roots as 0 (default 2, at most 16); `--max-functions`
202
+ counts every visited function including the roots (default 50, at most 500), so it is at least the
203
+ number of roots. Up to 50 roots fit `--count`. A discovery reserves nothing: reconstruction and review of the same functions continue,
204
+ and their new versions do not make it stale; new writer evidence does not cancel it, a revised root
205
+ definition does. A cancelled discovery's `result.retry` repeats its traversal options. Leases, fences, heartbeat, release and cancel work as
206
+ for other tasks. Another scope, strategy or depth is a new task.
207
+
208
+ The report (`discovery-report.json`, at most 2 MiB) names its task, module and the model it reads:
209
+
210
+ ```json
211
+ {"schema":1,"kind":"discovery-report","task":"w_…","binarySha256":"<module sha256>",
212
+ "model":{"source":"ghidra","revision":"R387"},
213
+ "visited":[{"function":"fn:<sha>:00401000","name":"root","depth":0,"xrefs":{"source":"ghidra references-from","complete":true}},
214
+ {"function":"fn:<sha>:00403000","depth":1,"xrefs":{"source":"ghidra references-from","complete":false}}],
215
+ "edges":[{"source":"fn:<sha>:00401000","target":"fn:<sha>:00403000","kind":"direct","evidence":"CALL at 0x401020"}],
216
+ "frontier":[{"reason":"unresolved-indirect","from":"fn:<sha>:00403000","evidence":"CALL [RAX+0x18] at 0x403044"}],
217
+ "summary":"Two levels of callees from the network dispatcher.",
218
+ "recommended":["fn:<sha>:00403000"]}
219
+ ```
220
+
221
+ - `visited`: each function once, by full module hash and RVA. The assigned roots, and only they, sit at
222
+ depth 0; depths stay within `--max-depth` and the list within `--max-functions`.
223
+ - `xrefs` on every visited function states where its references came from and whether that
224
+ observation was complete. An empty or incomplete xref list does not prove that a function calls
225
+ nothing.
226
+ - `edges`: `direct` or `indirect`, with evidence; each touches a visited function, none repeats. Every
227
+ non-root visit at depth N is reached by an edge from depth N-1 in the assigned direction: caller →
228
+ callee for `callees`, callee → caller for `callers`, either for `both`.
229
+ - `frontier`: why the walk stopped there: `depth-limit` or `function-limit` (with the next
230
+ `function`), `unresolved-indirect`, or `external` (a call into another module, named in
231
+ `function` as text). `from` is a visited function.
232
+ - `recommended`: up to 50 functions worth taking next.
233
+
234
+ Submit retains the report as an artifact of the task and completes it; `handoff --task ID`,
235
+ `work events` and `work export` show it, and `work evidence` verifies its payload. Function stages
236
+ and packages do not change: register newly found functions with `work import`. `work timing`
237
+ lists the latest ten discoveries separately.
238
+
181
239
  ## Context, migration and timing
182
240
 
183
241
  Start with `work context` to read the CLI version, profile and Work schema. Add
@@ -3,14 +3,10 @@ name: insight-sevenzip
3
3
  description: Inventory, integrity-check and recover files from archives and supported containers with insight-cli 7-Zip, then hand recovered binaries or configuration to the appropriate research tool.
4
4
  ---
5
5
 
6
- # Insight 7-Zip 0.8.2
6
+ # Insight 7-Zip 0.8.4
7
7
 
8
- If local help/status reports AppData or IPC access denied, retry that **read-only probe**
9
- with the agent host's normal permission escalation, then use that route for later authorized
10
- CLI calls too. An explicit **no command was sent** denial is known undispatched and can be
11
- retried through that route. Keep HOME, profile and owner state; see
12
- [host execution permissions](references/agent-execution.md). A lost mutation reply needs
13
- request/status recovery, never blind retry.
8
+ AppData/IPC access denied: follow [host execution permissions](references/agent-execution.md).
9
+ A lost mutation reply needs request/status recovery, never a blind retry.
14
10
 
15
11
  Use the project's existing evidence layout. Container recovery produces ordinary files;
16
12
  it does not publish analysis or require a Ghidra session.
@@ -3,14 +3,10 @@ name: insight-strace
3
3
  description: Observe actual file reads, writes, process creation and network syscalls in an authorized owned native Linux launch using insight-cli strace. Use when static inference needs concrete operating-system interaction evidence.
4
4
  ---
5
5
 
6
- # Insight strace 0.8.2
6
+ # Insight strace 0.8.4
7
7
 
8
- If local help/status reports AppData or IPC access denied, retry that **read-only probe**
9
- with the agent host's normal permission escalation, then use that route for later authorized
10
- CLI calls too. An explicit **no command was sent** denial is known undispatched and can be
11
- retried through that route. Keep HOME, profile and owner state; see
12
- [host execution permissions](references/agent-execution.md). A lost mutation reply needs
13
- request/status recovery, never blind retry.
8
+ AppData/IPC access denied: follow [host execution permissions](references/agent-execution.md).
9
+ A lost mutation reply needs request/status recovery, never a blind retry.
14
10
 
15
11
  Respect the project's RE and evidence format. This tool runs the supplied application;
16
12
  its side effects must be authorized. It traces an owned native copy and its descendants.
@@ -3,14 +3,10 @@ name: insight-tshark
3
3
  description: Inspect an offline PCAP or PCAPNG with insight-cli tshark to identify protocols, HTTP/DNS/TLS fields, packet evidence and reconstructed TCP/UDP streams. Use for captured traffic questions; live acquisition and TLS decryption are separate tasks.
4
4
  ---
5
5
 
6
- # Insight TShark 0.8.2
6
+ # Insight TShark 0.8.4
7
7
 
8
- If local help/status reports AppData or IPC access denied, retry that **read-only probe**
9
- with the agent host's normal permission escalation, then use that route for later authorized
10
- CLI calls too. An explicit **no command was sent** denial is known undispatched and can be
11
- retried through that route. Keep HOME, profile and owner state; see
12
- [host execution permissions](references/agent-execution.md). A lost mutation reply needs
13
- request/status recovery, never blind retry.
8
+ AppData/IPC access denied: follow [host execution permissions](references/agent-execution.md).
9
+ A lost mutation reply needs request/status recovery, never a blind retry.
14
10
 
15
11
  Keep the project's evidence format. This tool reads an immutable capture; it does not
16
12
  start packet capture, install BPF helpers, change network settings or contact DNS servers.
@@ -3,14 +3,10 @@ name: insight-windbg
3
3
  description: Investigate Windows native user-mode minidumps using bounded stacks, threads, registers, modules, memory and disassembly through insight-cli windbg. Use on Windows x64 when a captured runtime state needs native debugger evidence.
4
4
  ---
5
5
 
6
- # Insight WinDbg 0.8.2
6
+ # Insight WinDbg 0.8.4
7
7
 
8
- If local help/status reports AppData or IPC access denied, retry that **read-only probe**
9
- with the agent host's normal permission escalation, then use that route for later authorized
10
- CLI calls too. An explicit **no command was sent** denial is known undispatched and can be
11
- retried through that route. Keep HOME, profile and owner state; see
12
- [host execution permissions](references/agent-execution.md). A lost mutation reply needs
13
- request/status recovery, never blind retry.
8
+ AppData/IPC access denied: follow [host execution permissions](references/agent-execution.md).
9
+ A lost mutation reply needs request/status recovery, never a blind retry.
14
10
 
15
11
  Keep the project's RE and evidence conventions. This facade reads a captured Windows
16
12
  user-mode minidump; it does not run or attach the original application. Dump contents
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "schema": 1,
3
3
  "package": "@eyeauras/insight-cli",
4
- "version": "0.8.2",
4
+ "version": "0.8.4",
5
5
  "skills": [
6
6
  "insight-cli",
7
7
  "insight-re",
@@ -3,14 +3,10 @@ name: insight-artifacts
3
3
  description: Retain a completed reverse-engineering evidence file or directory as an ordinary checkpoint using insight-cli artifacts save. Use after Ghidra or any external tool; preserve existing project formats and source of truth.
4
4
  ---
5
5
 
6
- # Insight Artifacts 0.8.2
6
+ # Insight Artifacts 0.8.4
7
7
 
8
- If local help/status reports AppData or IPC access denied, retry that **read-only probe**
9
- with the agent host's normal permission escalation, then use that route for later authorized
10
- CLI calls too. An explicit **no command was sent** denial is known undispatched and can be
11
- retried through that route. Keep HOME, profile and owner state; see
12
- [host execution permissions](references/agent-execution.md). A lost mutation reply needs
13
- request/status recovery, never blind retry.
8
+ AppData/IPC access denied: follow [host execution permissions](references/agent-execution.md).
9
+ A lost mutation reply needs request/status recovery, never a blind retry.
14
10
 
15
11
  Keep evidence as ordinary files in the project's existing layout. This supporting application
16
12
  copies a completed file or stable directory; it has no native runtime to download or install.
@@ -27,7 +27,7 @@ preserve the project and any `.keep` file.
27
27
 
28
28
  A Ghidra session that ends abruptly can leave unsaved changes as Ghidra recovery data in the
29
29
  working copy. Opening the program would delete them, so `ghidra open` and every native
30
- operation refuse with `blocked` and name the two ways out. Neither needs Ghidra itself:
30
+ operation refuse with `blocked` and name the two ways out; run either with the context closed:
31
31
  `ghidra changes recover-unsaved --session <id> --target <id>` has Ghidra restore those changes
32
32
  and save them into the working copy; `ghidra changes discard-unsaved --session <id> --target <id>`
33
33
  (Destructive) has Ghidra delete them. Saved work stays in both cases, nothing is published, and
@@ -201,51 +201,19 @@ without replay. Unproved native work stays blocked and retained. An unproved pro
201
201
  storage and credential store. Do not delete another session's project, stop a process by guessed
202
202
  PID/port, or blindly repeat a script/external action to turn uncertainty into success.
203
203
 
204
- The older prototype's `workers`, `findings`, `integrate` and batch `recover` commands are not the
205
- public facade API. Its coordinator journals remain separate and are never silently migrated.
206
-
207
204
  A lost UI navigation response can be verified from the live authenticated cursor without another
208
205
  goto. If its original owned GUI process has exited, continuation reports the uncertain UI action
209
206
  as disconnected and retains saved program work. It does not recreate the old cursor or re-enable
210
207
  a previous prompt policy. Other unproved live UI effects remain retained until their outcome is
211
208
  established or the original process is known to have ended.
212
209
 
213
- ## Native unknown attempts and legacy abandonment
210
+ ## Native unknown attempts
214
211
 
215
212
  For native contexts the snapshot-based `ghidra abandon` rollback is unsupported: replacing the
216
213
  DB from a detached snapshot would lose native ancestry and could discard acknowledged private
217
214
  work. Preserve the original project/journal and reconcile provable effects. Do not use discard,
218
215
  GC, another request ID or a new server checkout as evidence that an unknown script did nothing.
219
216
 
220
- The historical snapshot-based abandonment contract below applies only to its retained legacy
221
- fixtures, not to native contexts admitted by the primary CLI.
222
-
223
- ### Historical detached abandonment
224
-
225
- A post-mutation save timeout does not repeat the script or issue another save in the
226
- error handler. Status exposes the original request identity and retained phase/budget.
227
- Arbitrary script effects are never inferred from metadata or from an unverified DB.
228
- After inspecting the retained attempt, explicitly stop only its verified owned worker
229
- (`tools processes`, then `tools processes kill <process>` if required). Resume the
230
- last acknowledged private snapshot with:
231
-
232
- ```sh
233
- insight-cli permissions grant Destructive
234
- insight-cli ghidra abandon --session <session> --target <target> \
235
- --request-id <original-request> --acknowledge-unknown-effects --json
236
- insight-cli ghidra open --session <session> --target <target> --json
237
- ```
238
-
239
- Abandon requires exactly one unresolved private program operation, an unchanged verified
240
- previous snapshot/generation, a stopped original worker and no active publication or live
241
- debugger. It retains the native project, candidate artifacts, original intent/execution and
242
- previous diagnostic result. Its terminal request is `failed` / `state: abandoned` with
243
- `outcome: unknown`; no effect is marked applied. Repeating abandonment retrieves the same
244
- result. Earlier saved private edits remain pending. The original changing request ID cannot
245
- execute again. Abandoning never undoes external effects or establishes what an arbitrary
246
- script did; the acknowledgement explicitly accepts that uncertainty. Publication recovery,
247
- initial import, UI and debugger attempts use their own protocols and cannot use this command.
248
-
249
217
  ## Explicit legacy migration
250
218
 
251
219
  Legacy models require `ghidra migrate --target <target> --dry-run`, then the same
@@ -3,14 +3,10 @@ name: insight-binary
3
3
  description: Query structured PE, ELF and thin Mach-O headers, sections, imports and exports, or make an explicitly guarded new PE subsystem copy through insight-cli binary. Use for scoped binary structure, linkage and copy-only header edits without target execution.
4
4
  ---
5
5
 
6
- # Insight Binary 0.8.2
6
+ # Insight Binary 0.8.4
7
7
 
8
- If local help/status reports AppData or IPC access denied, retry that **read-only probe**
9
- with the agent host's normal permission escalation, then use that route for later authorized
10
- CLI calls too. An explicit **no command was sent** denial is known undispatched and can be
11
- retried through that route. Keep HOME, profile and owner state; see
12
- [host execution permissions](references/agent-execution.md). A lost mutation reply needs
13
- request/status recovery, never blind retry.
8
+ AppData/IPC access denied: follow [host execution permissions](references/agent-execution.md).
9
+ A lost mutation reply needs request/status recovery, never a blind retry.
14
10
 
15
11
  Keep project RE/evidence conventions. LIEF is an internal packaged library. The native
16
12
  helper is included with insight-cli; no separate download/install, SDK or compiler is
@@ -3,14 +3,10 @@ name: insight-capture
3
3
  description: Capture one explicitly authorized native program run, exact stdout/stderr and declared file snapshots through insight-cli capture, then inspect or compare retained reports without replay. Use for controlled input/output research, preserving original files and interrupted or unknown outcomes.
4
4
  ---
5
5
 
6
- # Insight Capture 0.8.2
6
+ # Insight Capture 0.8.4
7
7
 
8
- If local help/status reports AppData or IPC access denied, retry that **read-only probe**
9
- with the agent host's normal permission escalation, then use that route for later authorized
10
- CLI calls too. An explicit **no command was sent** denial is known undispatched and can be
11
- retried through that route. Keep HOME, profile and owner state; see
12
- [host execution permissions](references/agent-execution.md). A lost mutation reply needs
13
- request/status recovery, never blind retry.
8
+ AppData/IPC access denied: follow [host execution permissions](references/agent-execution.md).
9
+ A lost mutation reply needs request/status recovery, never a blind retry.
14
10
 
15
11
  Follow project RE and evidence conventions. Use this only for an authorized runtime
16
12
  observation. The current native host/input profile is macOS14+ ARM64 thin Mach-O
@@ -3,14 +3,10 @@ name: insight-die
3
3
  description: Classify unknown executable or container inputs by format, architecture and compiler/runtime/packer signatures with Detect It Easy before choosing managed or native analysis. Use insight-cli die for static triage and preserve scan uncertainty.
4
4
  ---
5
5
 
6
- # Insight Detect It Easy 0.8.2
6
+ # Insight Detect It Easy 0.8.4
7
7
 
8
- If local help/status reports AppData or IPC access denied, retry that **read-only probe**
9
- with the agent host's normal permission escalation, then use that route for later authorized
10
- CLI calls too. An explicit **no command was sent** denial is known undispatched and can be
11
- retried through that route. Keep HOME, profile and owner state; see
12
- [host execution permissions](references/agent-execution.md). A lost mutation reply needs
13
- request/status recovery, never blind retry.
8
+ AppData/IPC access denied: follow [host execution permissions](references/agent-execution.md).
9
+ A lost mutation reply needs request/status recovery, never a blind retry.
14
10
 
15
11
  Follow the project's RE instructions and evidence format. DiE provides quick static triage;
16
12
  it does not execute, unpack or decompile the input. Use the classification to choose a focused
@@ -3,14 +3,10 @@ name: insight-dnspy
3
3
  description: Debug a managed Windows EXE at an IL breakpoint and read primitive arguments, or change one expected IL Int32 constant in a new assembly copy through insight-cli dnspy. Use when C# decompilation needs observed execution or a controlled binary edit.
4
4
  ---
5
5
 
6
- # Insight dnSpyEx 0.8.2
6
+ # Insight dnSpyEx 0.8.4
7
7
 
8
- If local help/status reports AppData or IPC access denied, retry that **read-only probe**
9
- with the agent host's normal permission escalation, then use that route for later authorized
10
- CLI calls too. An explicit **no command was sent** denial is known undispatched and can be
11
- retried through that route. Keep HOME, profile and owner state; see
12
- [host execution permissions](references/agent-execution.md). A lost mutation reply needs
13
- request/status recovery, never blind retry.
8
+ AppData/IPC access denied: follow [host execution permissions](references/agent-execution.md).
9
+ A lost mutation reply needs request/status recovery, never a blind retry.
14
10
 
15
11
  Keep the project's RE and evidence format. Debugging executes the supplied application
16
12
  in a new owned process; its ordinary file/network side effects still apply. Use only
@@ -3,14 +3,10 @@ name: insight-dotnet-dump
3
3
  description: Capture a managed heap dump or inspect compatible .NET dumps with SOS to recover waiting stacks, objects, fields and retention evidence.
4
4
  ---
5
5
 
6
- # Insight .NET Dump 0.8.2
6
+ # Insight .NET Dump 0.8.4
7
7
 
8
- If local help/status reports AppData or IPC access denied, retry that **read-only probe**
9
- with the agent host's normal permission escalation, then use that route for later authorized
10
- CLI calls too. An explicit **no command was sent** denial is known undispatched and can be
11
- retried through that route. Keep HOME, profile and owner state; see
12
- [host execution permissions](references/agent-execution.md). A lost mutation reply needs
13
- request/status recovery, never blind retry.
8
+ AppData/IPC access denied: follow [host execution permissions](references/agent-execution.md).
9
+ A lost mutation reply needs request/status recovery, never a blind retry.
14
10
 
15
11
  Start with `insight-cli dotnet-dump collect --pid PID --output research/worker.dmp`.
16
12
  The default Heap dump includes managed objects; Mini may lack required heap data. Collection
@@ -3,14 +3,10 @@ name: insight-dotnet-stack
3
3
  description: Inspect live managed thread stacks to identify active or waiting work in an explicitly selected .NET process without taking a dump.
4
4
  ---
5
5
 
6
- # Insight .NET Stack 0.8.2
6
+ # Insight .NET Stack 0.8.4
7
7
 
8
- If local help/status reports AppData or IPC access denied, retry that **read-only probe**
9
- with the agent host's normal permission escalation, then use that route for later authorized
10
- CLI calls too. An explicit **no command was sent** denial is known undispatched and can be
11
- retried through that route. Keep HOME, profile and owner state; see
12
- [host execution permissions](references/agent-execution.md). A lost mutation reply needs
13
- request/status recovery, never blind retry.
8
+ AppData/IPC access denied: follow [host execution permissions](references/agent-execution.md).
9
+ A lost mutation reply needs request/status recovery, never a blind retry.
14
10
 
15
11
  Use `insight-cli dotnet-stack report --pid PID` for a lightweight live stack snapshot.
16
12
  Inspect the managed callers around native wait/sleep frames: a wait identifies where a
@@ -3,14 +3,10 @@ name: insight-dotnet-trace
3
3
  description: Collect and inspect bounded .NET EventPipe traces to identify sampled thread work, waits or runtime activity; distinguish wall-clock samples from CPU consumption.
4
4
  ---
5
5
 
6
- # Insight .NET Trace 0.8.2
6
+ # Insight .NET Trace 0.8.4
7
7
 
8
- If local help/status reports AppData or IPC access denied, retry that **read-only probe**
9
- with the agent host's normal permission escalation, then use that route for later authorized
10
- CLI calls too. An explicit **no command was sent** denial is known undispatched and can be
11
- retried through that route. Keep HOME, profile and owner state; see
12
- [host execution permissions](references/agent-execution.md). A lost mutation reply needs
13
- request/status recovery, never blind retry.
8
+ AppData/IPC access denied: follow [host execution permissions](references/agent-execution.md).
9
+ A lost mutation reply needs request/status recovery, never a blind retry.
14
10
 
15
11
  Use `insight-cli dotnet-trace collect --pid PID --duration-seconds 5 --output research/worker.nettrace`.
16
12
  The default `dotnet-sampled-thread-time` profile measures sampled thread wall-clock time.