@eyeauras/insight-cli 0.8.3 → 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 (109) hide show
  1. package/.cli-package-build.json +1 -1
  2. package/SKILL.md +1 -1
  3. package/dist/src/administration.js +1 -1
  4. package/dist/src/archive.js +1 -1
  5. package/dist/src/artifacts.d.ts +2 -1
  6. package/dist/src/artifacts.js +6 -5
  7. package/dist/src/binary.js +1 -1
  8. package/dist/src/capture.js +3 -3
  9. package/dist/src/cli.js +17 -16
  10. package/dist/src/contexts.js +14 -17
  11. package/dist/src/cross.js +1 -1
  12. package/dist/src/debugger.js +1 -1
  13. package/dist/src/die.js +1 -1
  14. package/dist/src/dnspy.js +1 -1
  15. package/dist/src/dotnet-diagnostics.js +1 -1
  16. package/dist/src/ilspy.js +1 -1
  17. package/dist/src/lifecycle.js +5 -5
  18. package/dist/src/lldb.js +1 -1
  19. package/dist/src/llvm.js +1 -1
  20. package/dist/src/managed-heap.js +1 -1
  21. package/dist/src/managed-metadata.js +1 -1
  22. package/dist/src/mitmproxy.js +1 -1
  23. package/dist/src/model.d.ts +6 -1
  24. package/dist/src/model.js +9 -2
  25. package/dist/src/mutations.js +1 -1
  26. package/dist/src/projects.js +3 -3
  27. package/dist/src/prototype-cli.js +4 -4
  28. package/dist/src/research.js +1 -1
  29. package/dist/src/runtime-manager.d.ts +2 -2
  30. package/dist/src/runtime-manager.js +28 -4
  31. package/dist/src/sdk-files.js +3 -3
  32. package/dist/src/sdk.js +1 -1
  33. package/dist/src/server.d.ts +1 -0
  34. package/dist/src/server.js +17 -7
  35. package/dist/src/sevenzip.js +1 -1
  36. package/dist/src/strace.js +1 -1
  37. package/dist/src/sync-policy.js +4 -4
  38. package/dist/src/tool-runtime/identity.d.ts +7 -0
  39. package/dist/src/tool-runtime/identity.js +35 -0
  40. package/dist/src/tool-runtime/store.js +3 -0
  41. package/dist/src/tool-runtime/supervisor.d.ts +8 -0
  42. package/dist/src/tool-runtime/supervisor.js +58 -10
  43. package/dist/src/tshark.js +1 -1
  44. package/dist/src/ui.js +3 -3
  45. package/dist/src/version-tracking.js +2 -2
  46. package/dist/src/windbg.js +1 -1
  47. package/dist/src/work/backup.js +14 -2
  48. package/dist/src/work/commands.js +50 -13
  49. package/dist/src/work/model.d.ts +43 -1
  50. package/dist/src/work/model.js +128 -0
  51. package/dist/src/work/store.d.ts +34 -3
  52. package/dist/src/work/store.js +75 -18
  53. package/dist/src/work/timing.d.ts +9 -0
  54. package/dist/src/work/timing.js +10 -1
  55. package/package.json +1 -1
  56. package/references/native/InsightNativeCheckout.java +24 -8
  57. package/references/work-tracking.md +52 -0
  58. package/skill-bundle/insight-artifacts/SKILL.md +1 -1
  59. package/skill-bundle/insight-binary/SKILL.md +1 -1
  60. package/skill-bundle/insight-capture/SKILL.md +1 -1
  61. package/skill-bundle/insight-cli/SKILL.md +1 -1
  62. package/skill-bundle/insight-die/SKILL.md +1 -1
  63. package/skill-bundle/insight-dnspy/SKILL.md +1 -1
  64. package/skill-bundle/insight-dotnet-dump/SKILL.md +1 -1
  65. package/skill-bundle/insight-dotnet-stack/SKILL.md +1 -1
  66. package/skill-bundle/insight-dotnet-trace/SKILL.md +1 -1
  67. package/skill-bundle/insight-frida/SKILL.md +1 -1
  68. package/skill-bundle/insight-ghidra/SKILL.md +1 -1
  69. package/skill-bundle/insight-ilspy/SKILL.md +1 -1
  70. package/skill-bundle/insight-interop/SKILL.md +1 -1
  71. package/skill-bundle/insight-lldb/SKILL.md +1 -1
  72. package/skill-bundle/insight-llvm/SKILL.md +1 -1
  73. package/skill-bundle/insight-managed-heap/SKILL.md +1 -1
  74. package/skill-bundle/insight-managed-metadata/SKILL.md +1 -1
  75. package/skill-bundle/insight-mitmproxy/SKILL.md +1 -1
  76. package/skill-bundle/insight-overview/SKILL.md +1 -1
  77. package/skill-bundle/insight-procmon/SKILL.md +1 -1
  78. package/skill-bundle/insight-re/SKILL.md +1 -1
  79. package/skill-bundle/insight-re/references/work-tracking.md +52 -0
  80. package/skill-bundle/insight-sevenzip/SKILL.md +1 -1
  81. package/skill-bundle/insight-strace/SKILL.md +1 -1
  82. package/skill-bundle/insight-tshark/SKILL.md +1 -1
  83. package/skill-bundle/insight-windbg/SKILL.md +1 -1
  84. package/skill-bundle/manifest.json +1 -1
  85. package/skills/insight-artifacts/SKILL.md +1 -1
  86. package/skills/insight-binary/SKILL.md +1 -1
  87. package/skills/insight-capture/SKILL.md +1 -1
  88. package/skills/insight-die/SKILL.md +1 -1
  89. package/skills/insight-dnspy/SKILL.md +1 -1
  90. package/skills/insight-dotnet-dump/SKILL.md +1 -1
  91. package/skills/insight-dotnet-stack/SKILL.md +1 -1
  92. package/skills/insight-dotnet-trace/SKILL.md +1 -1
  93. package/skills/insight-frida/SKILL.md +1 -1
  94. package/skills/insight-ghidra/SKILL.md +1 -1
  95. package/skills/insight-ilspy/SKILL.md +1 -1
  96. package/skills/insight-interop/SKILL.md +1 -1
  97. package/skills/insight-lldb/SKILL.md +1 -1
  98. package/skills/insight-llvm/SKILL.md +1 -1
  99. package/skills/insight-managed-heap/SKILL.md +1 -1
  100. package/skills/insight-managed-metadata/SKILL.md +1 -1
  101. package/skills/insight-mitmproxy/SKILL.md +1 -1
  102. package/skills/insight-overview/SKILL.md +1 -1
  103. package/skills/insight-procmon/SKILL.md +1 -1
  104. package/skills/insight-re/SKILL.md +1 -1
  105. package/skills/insight-re/references/work-tracking.md +52 -0
  106. package/skills/insight-sevenzip/SKILL.md +1 -1
  107. package/skills/insight-strace/SKILL.md +1 -1
  108. package/skills/insight-tshark/SKILL.md +1 -1
  109. package/skills/insight-windbg/SKILL.md +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eyeauras/insight-cli",
3
- "version": "0.8.3",
3
+ "version": "0.8.4",
4
4
  "type": "module",
5
5
  "description": "Agent-facing durable sessions and isolated Ghidra research contexts",
6
6
  "main": "./dist/src/index.js",
@@ -46,6 +46,9 @@ public final class InsightNativeCheckout {
46
46
  Files.move(temporary,path,StandardCopyOption.ATOMIC_MOVE,StandardCopyOption.REPLACE_EXISTING);
47
47
  if(!System.getProperty("os.name").startsWith("Windows"))try(var channel=FileChannel.open(path.getParent(),StandardOpenOption.READ)){channel.force(true);}
48
48
  }
49
+ /** Set before the first operation-journal write of the current request; after it, no refusal is "not sent". */
50
+ private static boolean intentStarted;
51
+ static void intent(Path journal,Object value)throws Exception {intentStarted=true;write(journal,value);}
49
52
  static void source(Program p,JsonObject owner){
50
53
  require(p.getExecutableSHA256().equals(text(owner,"sourceSha")),"Native source identity changed");
51
54
  if(!p.getOptions("Insight").getString("Publication Engine","").equals("native-checkout-v1"))throw new InsightNativeMigration.Required();
@@ -262,6 +265,9 @@ public final class InsightNativeCheckout {
262
265
  /** One native checkout operation. Per-request state is reset, so a long-lived service handles requests independently. */
263
266
  static Map<String,Object> handle(Path requestFile){
264
267
  Project project=null;GhidraServerManager server=null;
268
+ // The journal of an Update or check-in is written right before Ghidra is called. A refusal before this call began
269
+ // writing it, while the journal was positively absent when the request started, called nothing: "not sent".
270
+ boolean preCall=false;intentStarted=false;
265
271
  Map<String,Object> out=new LinkedHashMap<>();
266
272
  permitMerge=true;HeadlessProgramMergeManager.invocations=0;HeadlessProgramMergeManager.phases.clear();
267
273
  try {
@@ -272,6 +278,8 @@ public final class InsightNativeCheckout {
272
278
  require(owner.equals(q.getAsJsonObject("owner")),"Native owner receipt changed");
273
279
  require(text(owner,"protocol").equals("native-checkout-v1")&&text(owner,"path").equals("/"+text(owner,"target")+".bin"),"Malformed native binding");
274
280
  String operation=text(q,"operation"),path=text(owner,"path"),name=path.substring(1);
281
+ if(!abandoning&&(operation.equals("update")||operation.equals("checkin"))&&q.has("request")&&text(q,"request").matches("q_[a-f0-9-]{36}"))
282
+ preCall=Files.notExists(root.resolve("operations").resolve(text(q,"request")+"-"+operation+".json"),LinkOption.NOFOLLOW_LINKS);
275
283
  server=new GhidraServerManager();server.connect();require(server.isConnected(),"Native repository disconnected");
276
284
  RepositoryAdapter repository=server.server().getRepository(text(owner,"repository"));repository.connect();
277
285
  require(repository.getUser().hasWritePermission()&&repository.getUser().getName().equals(System.getenv("GHIDRA_SERVER_USER")),"Publisher authority required");
@@ -289,7 +297,11 @@ public final class InsightNativeCheckout {
289
297
  else project=manager.openProject(locator,false,false);
290
298
  require(locator.getProjectDir().toPath().toRealPath().getParent().equals(root),"Native project moved outside owned storage");
291
299
  var bound=project.getProjectData().getRepository();
292
- require(bound!=null&&bound.isConnected()&&bound.getName().equals(repository.getName())&&bound.getServerInfo().equals(repository.getServerInfo()),"Saved native repository binding changed");
300
+ // The binding is compared first: a reconnect synchronizes the project with whatever repository it names.
301
+ require(bound!=null&&bound.getName().equals(repository.getName())&&bound.getServerInfo().equals(repository.getServerInfo()),"Saved native repository binding changed");
302
+ // A saved project's connection can be inactive under load; it reconnects once to its own, verified repository.
303
+ if(!bound.isConnected())try{bound.connect();}catch(Exception reconnect){reconnect.printStackTrace(System.err);}
304
+ require(bound.isConnected(),"Saved native repository is not connected");
293
305
  DomainFile file=project.getProjectData().getFile(path);require(file!=null,"Native file missing");
294
306
  if(operation.equals("create")&&!file.isCheckedOut()){
295
307
  String projectPath=ghidra.framework.store.ItemCheckoutStatus.getProjectPath(locator.toString(),false);
@@ -345,7 +357,7 @@ public final class InsightNativeCheckout {
345
357
  intent.put("backupAbsent",keepAbsent);intent.put("backupBeforeFileId",priorKeepId);intent.put("backupExpected",backupExpected);
346
358
  if(operation.equals("discard")){
347
359
  var backupsBefore=backupInventory(project,name);intent.put("backupFilesBefore",backupsBefore);
348
- write(journal,intent);
360
+ intent(journal,intent);
349
361
  file.undoCheckout(backupExpected);
350
362
  out.put("state","discarded");out.put("retainedKeepFile","");
351
363
  if(backupExpected){
@@ -360,7 +372,7 @@ public final class InsightNativeCheckout {
360
372
  }
361
373
  file=project.getProjectData().getFile(path);require(file.checkout(false,MONITOR),"Native checkout after discard was refused");
362
374
  }else if(operation.equals("update")){
363
- write(journal,intent);
375
+ intent(journal,intent);
364
376
  // Only dirty incoming Update can replace .keep. A refusal is a completed pre-call outcome,
365
377
  // carried by the existing conflict/recovery path; incomplete/legacy intents remain unknown.
366
378
  if(backupExpected&&!keepAbsent&&!replaceableBackup(project,operations,q,owner,base,intent)){
@@ -369,7 +381,7 @@ public final class InsightNativeCheckout {
369
381
  var refusal=new LinkedHashMap<String,Object>(Map.of("schema",1,"operation","update","invoked",false,"reason","protected_existing_backup"));
370
382
  refusal.put("fileId",priorKeepId);out.put("preCallRefusal",refusal);
371
383
  }else{
372
- if(intent.containsKey("backupReplacementProof"))write(journal,intent);
384
+ if(intent.containsKey("backupReplacementProof"))intent(journal,intent);
373
385
  try{if(head>base)file.merge(false,MONITOR);
374
386
  require(file.getCheckoutStatus().getCheckoutId()==checkout&&file.getCheckoutStatus().getCheckoutVersion()>=head,"Native Update did not establish the requested ancestry");
375
387
  out.put("state","updated");}
@@ -382,11 +394,11 @@ public final class InsightNativeCheckout {
382
394
  if(head!=base||head!=q.get("expectedVersion").getAsInt()){
383
395
  // A known pre-call head race is not an unknown check-in: none was issued.
384
396
  out.put("state","conflict");out.put("conflict","Shared head changed before native check-in");
385
- intent.put("result",out);write(journal,intent);
397
+ intent.put("result",out);intent(journal,intent);
386
398
  }else if(!file.modifiedSinceCheckout()){
387
- intent.put("marker","insight native "+request);write(journal,intent);out.put("state","empty");
399
+ intent.put("marker","insight native "+request);intent(journal,intent);out.put("state","empty");
388
400
  }else{
389
- intent.put("marker","insight native "+request);write(journal,intent);
401
+ intent.put("marker","insight native "+request);intent(journal,intent);
390
402
  permitMerge=false;
391
403
  try{file.checkin(new DefaultCheckinHandler("insight native "+request,true,false),MONITOR);out.put("state","checked_in");}
392
404
  catch(HeadChanged changed){
@@ -405,7 +417,7 @@ public final class InsightNativeCheckout {
405
417
  }
406
418
  catch(Exception unproved){/* An unreadable backup remains private; it cannot invalidate native completion. */}
407
419
  }
408
- intent.put("result",out);write(journal,intent);
420
+ intent.put("result",out);intent(journal,intent);
409
421
  }
410
422
  }else if(operation.equals("release")){
411
423
  Path releaseFile=root.resolve("released.json");
@@ -466,6 +478,10 @@ public final class InsightNativeCheckout {
466
478
  try{if(project!=null)project.close();}catch(Throwable cleanup){poisoned=true;}
467
479
  try{if(server!=null)server.disconnect();}catch(Throwable cleanup){poisoned=true;}
468
480
  if(java.awt.Window.getWindows().length>0)poisoned=true;
481
+ // A migration requirement keeps its own diagnosis.
482
+ if(preCall&&!intentStarted&&!(failure instanceof Error)&&!(failure instanceof InsightNativeMigration.Required)){
483
+ var refused=new LinkedHashMap<String,Object>(unknown(failure));refused.put("code","not-sent");return refused;
484
+ }
469
485
  return unknown(failure);}
470
486
  }
471
487
  }
@@ -184,6 +184,58 @@ local receipt after a lost ACK. No native context is restored and strict accepte
184
184
  If a caller label has outcomes from several incarnations, `work request` marks it ambiguous and
185
185
  returns `histories`; every outcome is retained and none authorizes a new mutation.
186
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
+
187
239
  ## Context, migration and timing
188
240
 
189
241
  Start with `work context` to read the CLI version, profile and Work schema. Add
@@ -3,7 +3,7 @@ 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.3
6
+ # Insight Artifacts 0.8.4
7
7
 
8
8
  AppData/IPC access denied: follow [host execution permissions](references/agent-execution.md).
9
9
  A lost mutation reply needs request/status recovery, never a blind retry.
@@ -3,7 +3,7 @@ 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.3
6
+ # Insight Binary 0.8.4
7
7
 
8
8
  AppData/IPC access denied: follow [host execution permissions](references/agent-execution.md).
9
9
  A lost mutation reply needs request/status recovery, never a blind retry.
@@ -3,7 +3,7 @@ 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.3
6
+ # Insight Capture 0.8.4
7
7
 
8
8
  AppData/IPC access denied: follow [host execution permissions](references/agent-execution.md).
9
9
  A lost mutation reply needs request/status recovery, never a blind retry.
@@ -3,7 +3,7 @@ name: insight-cli
3
3
  description: Choose and prepare reverse-engineering capabilities from the insight-cli toolbox for binary, managed-code and runtime investigations. Use to discover the appropriate tool or its packaged skill before installing native runtimes.
4
4
  ---
5
5
 
6
- # insight-cli 0.8.3
6
+ # insight-cli 0.8.4
7
7
 
8
8
  AppData/IPC access denied: follow [host execution permissions](references/agent-execution.md).
9
9
  A lost mutation reply needs request/status recovery, never a blind retry.
@@ -3,7 +3,7 @@ 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.3
6
+ # Insight Detect It Easy 0.8.4
7
7
 
8
8
  AppData/IPC access denied: follow [host execution permissions](references/agent-execution.md).
9
9
  A lost mutation reply needs request/status recovery, never a blind retry.
@@ -3,7 +3,7 @@ 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.3
6
+ # Insight dnSpyEx 0.8.4
7
7
 
8
8
  AppData/IPC access denied: follow [host execution permissions](references/agent-execution.md).
9
9
  A lost mutation reply needs request/status recovery, never a blind retry.
@@ -3,7 +3,7 @@ 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.3
6
+ # Insight .NET Dump 0.8.4
7
7
 
8
8
  AppData/IPC access denied: follow [host execution permissions](references/agent-execution.md).
9
9
  A lost mutation reply needs request/status recovery, never a blind retry.
@@ -3,7 +3,7 @@ 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.3
6
+ # Insight .NET Stack 0.8.4
7
7
 
8
8
  AppData/IPC access denied: follow [host execution permissions](references/agent-execution.md).
9
9
  A lost mutation reply needs request/status recovery, never a blind retry.
@@ -3,7 +3,7 @@ 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.3
6
+ # Insight .NET Trace 0.8.4
7
7
 
8
8
  AppData/IPC access denied: follow [host execution permissions](references/agent-execution.md).
9
9
  A lost mutation reply needs request/status recovery, never a blind retry.
@@ -3,7 +3,7 @@ name: insight-frida
3
3
  description: Observe native call arguments/results or inspect runtime modules and exports in an explicitly selected authorized process with bounded Frida scripts. Use insight-cli frida to corroborate static findings with actual execution on macOS ARM64.
4
4
  ---
5
5
 
6
- # Insight Frida 0.8.3
6
+ # Insight Frida 0.8.4
7
7
 
8
8
  AppData/IPC access denied: follow [host execution permissions](references/agent-execution.md).
9
9
  A lost mutation reply needs request/status recovery, never a blind retry.
@@ -3,7 +3,7 @@ name: insight-ghidra
3
3
  description: Inspect or edit native binaries with Ghidra through insight-cli; use isolated contexts, multi-agent merge/refresh, server, GUI or debugger workflows. Choose this for static native behavior and references, not C# recovery from managed IL.
4
4
  ---
5
5
 
6
- # Insight Ghidra 0.8.3
6
+ # Insight Ghidra 0.8.4
7
7
 
8
8
  AppData/IPC access denied: follow [host execution permissions](references/agent-execution.md).
9
9
  A lost mutation reply needs request/status recovery, never a blind retry.
@@ -3,7 +3,7 @@ name: insight-ilspy
3
3
  description: Recover C#, inspect IL/types/metadata, extract resources or export projects from managed .NET assemblies through insight-cli ILSpy. Choose native analysis for NativeAOT or ordinary PE machine code.
4
4
  ---
5
5
 
6
- # Insight ILSpy 0.8.3
6
+ # Insight ILSpy 0.8.4
7
7
 
8
8
  AppData/IPC access denied: follow [host execution permissions](references/agent-execution.md).
9
9
  A lost mutation reply needs request/status recovery, never a blind retry.
@@ -3,7 +3,7 @@ name: insight-interop
3
3
  description: Trace a .NET P/Invoke declaration to an explicitly supplied native library export and Ghidra function through insight-cli ilspy query, binary query and scoped ghidra APIs. Use for managed/native linkage evidence while keeping static correspondence separate from observed loading or execution.
4
4
  ---
5
5
 
6
- # Insight Interop 0.8.3
6
+ # Insight Interop 0.8.4
7
7
 
8
8
  AppData/IPC access denied: follow [host execution permissions](references/agent-execution.md).
9
9
  A lost mutation reply needs request/status recovery, never a blind retry.
@@ -3,7 +3,7 @@ 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.3
6
+ # Insight LLDB 0.8.4
7
7
 
8
8
  AppData/IPC access denied: follow [host execution permissions](references/agent-execution.md).
9
9
  A lost mutation reply needs request/status recovery, never a blind retry.
@@ -3,7 +3,7 @@ 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.3
6
+ # Insight LLVM 0.8.4
7
7
 
8
8
  AppData/IPC access denied: follow [host execution permissions](references/agent-execution.md).
9
9
  A lost mutation reply needs request/status recovery, never a blind retry.
@@ -3,7 +3,7 @@ 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.3
6
+ # Insight Managed Heap 0.8.4
7
7
 
8
8
  AppData/IPC access denied: follow [host execution permissions](references/agent-execution.md).
9
9
  A lost mutation reply needs request/status recovery, never a blind retry.
@@ -3,7 +3,7 @@ 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.3
6
+ # Insight Managed Metadata 0.8.4
7
7
 
8
8
  AppData/IPC access denied: follow [host execution permissions](references/agent-execution.md).
9
9
  A lost mutation reply needs request/status recovery, never a blind retry.
@@ -3,7 +3,7 @@ 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.3
6
+ # Insight mitmproxy 0.8.4
7
7
 
8
8
  AppData/IPC access denied: follow [host execution permissions](references/agent-execution.md).
9
9
  A lost mutation reply needs request/status recovery, never a blind retry.
@@ -3,7 +3,7 @@ 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.3
6
+ # Insight Overview 0.8.4
7
7
 
8
8
  AppData/IPC access denied: follow [host execution permissions](references/agent-execution.md).
9
9
  A lost mutation reply needs request/status recovery, never a blind retry.
@@ -3,7 +3,7 @@ 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.3
6
+ # Insight ProcMon 0.8.4
7
7
 
8
8
  AppData/IPC access denied: follow [host execution permissions](references/agent-execution.md).
9
9
  A lost mutation reply needs request/status recovery, never a blind retry.
@@ -3,7 +3,7 @@ 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.3
6
+ # Insight RE 0.8.4
7
7
 
8
8
  AppData/IPC access denied: follow [host execution permissions](references/agent-execution.md).
9
9
  A lost mutation reply needs request/status recovery, never a blind retry.
@@ -184,6 +184,58 @@ local receipt after a lost ACK. No native context is restored and strict accepte
184
184
  If a caller label has outcomes from several incarnations, `work request` marks it ambiguous and
185
185
  returns `histories`; every outcome is retained and none authorizes a new mutation.
186
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
+
187
239
  ## Context, migration and timing
188
240
 
189
241
  Start with `work context` to read the CLI version, profile and Work schema. Add
@@ -3,7 +3,7 @@ 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.3
6
+ # Insight 7-Zip 0.8.4
7
7
 
8
8
  AppData/IPC access denied: follow [host execution permissions](references/agent-execution.md).
9
9
  A lost mutation reply needs request/status recovery, never a blind retry.
@@ -3,7 +3,7 @@ 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.3
6
+ # Insight strace 0.8.4
7
7
 
8
8
  AppData/IPC access denied: follow [host execution permissions](references/agent-execution.md).
9
9
  A lost mutation reply needs request/status recovery, never a blind retry.
@@ -3,7 +3,7 @@ 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.3
6
+ # Insight TShark 0.8.4
7
7
 
8
8
  AppData/IPC access denied: follow [host execution permissions](references/agent-execution.md).
9
9
  A lost mutation reply needs request/status recovery, never a blind retry.
@@ -3,7 +3,7 @@ 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.3
6
+ # Insight WinDbg 0.8.4
7
7
 
8
8
  AppData/IPC access denied: follow [host execution permissions](references/agent-execution.md).
9
9
  A lost mutation reply needs request/status recovery, never a blind retry.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "schema": 1,
3
3
  "package": "@eyeauras/insight-cli",
4
- "version": "0.8.3",
4
+ "version": "0.8.4",
5
5
  "skills": [
6
6
  "insight-cli",
7
7
  "insight-re",
@@ -3,7 +3,7 @@ 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.3
6
+ # Insight Artifacts 0.8.4
7
7
 
8
8
  AppData/IPC access denied: follow [host execution permissions](references/agent-execution.md).
9
9
  A lost mutation reply needs request/status recovery, never a blind retry.
@@ -3,7 +3,7 @@ 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.3
6
+ # Insight Binary 0.8.4
7
7
 
8
8
  AppData/IPC access denied: follow [host execution permissions](references/agent-execution.md).
9
9
  A lost mutation reply needs request/status recovery, never a blind retry.
@@ -3,7 +3,7 @@ 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.3
6
+ # Insight Capture 0.8.4
7
7
 
8
8
  AppData/IPC access denied: follow [host execution permissions](references/agent-execution.md).
9
9
  A lost mutation reply needs request/status recovery, never a blind retry.
@@ -3,7 +3,7 @@ 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.3
6
+ # Insight Detect It Easy 0.8.4
7
7
 
8
8
  AppData/IPC access denied: follow [host execution permissions](references/agent-execution.md).
9
9
  A lost mutation reply needs request/status recovery, never a blind retry.
@@ -3,7 +3,7 @@ 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.3
6
+ # Insight dnSpyEx 0.8.4
7
7
 
8
8
  AppData/IPC access denied: follow [host execution permissions](references/agent-execution.md).
9
9
  A lost mutation reply needs request/status recovery, never a blind retry.
@@ -3,7 +3,7 @@ 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.3
6
+ # Insight .NET Dump 0.8.4
7
7
 
8
8
  AppData/IPC access denied: follow [host execution permissions](references/agent-execution.md).
9
9
  A lost mutation reply needs request/status recovery, never a blind retry.
@@ -3,7 +3,7 @@ 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.3
6
+ # Insight .NET Stack 0.8.4
7
7
 
8
8
  AppData/IPC access denied: follow [host execution permissions](references/agent-execution.md).
9
9
  A lost mutation reply needs request/status recovery, never a blind retry.
@@ -3,7 +3,7 @@ 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.3
6
+ # Insight .NET Trace 0.8.4
7
7
 
8
8
  AppData/IPC access denied: follow [host execution permissions](references/agent-execution.md).
9
9
  A lost mutation reply needs request/status recovery, never a blind retry.
@@ -3,7 +3,7 @@ name: insight-frida
3
3
  description: Observe native call arguments/results or inspect runtime modules and exports in an explicitly selected authorized process with bounded Frida scripts. Use insight-cli frida to corroborate static findings with actual execution on macOS ARM64.
4
4
  ---
5
5
 
6
- # Insight Frida 0.8.3
6
+ # Insight Frida 0.8.4
7
7
 
8
8
  AppData/IPC access denied: follow [host execution permissions](references/agent-execution.md).
9
9
  A lost mutation reply needs request/status recovery, never a blind retry.
@@ -3,7 +3,7 @@ name: insight-ghidra
3
3
  description: Inspect or edit native binaries with Ghidra through insight-cli; use isolated contexts, multi-agent merge/refresh, server, GUI or debugger workflows. Choose this for static native behavior and references, not C# recovery from managed IL.
4
4
  ---
5
5
 
6
- # Insight Ghidra 0.8.3
6
+ # Insight Ghidra 0.8.4
7
7
 
8
8
  AppData/IPC access denied: follow [host execution permissions](references/agent-execution.md).
9
9
  A lost mutation reply needs request/status recovery, never a blind retry.
@@ -3,7 +3,7 @@ name: insight-ilspy
3
3
  description: Recover C#, inspect IL/types/metadata, extract resources or export projects from managed .NET assemblies through insight-cli ILSpy. Choose native analysis for NativeAOT or ordinary PE machine code.
4
4
  ---
5
5
 
6
- # Insight ILSpy 0.8.3
6
+ # Insight ILSpy 0.8.4
7
7
 
8
8
  AppData/IPC access denied: follow [host execution permissions](references/agent-execution.md).
9
9
  A lost mutation reply needs request/status recovery, never a blind retry.