@eyeauras/insight-cli 0.7.0 → 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.cli-package-build.json +1 -1
- package/SKILL.md +1 -1
- package/dist/src/activity-audit.d.ts +7 -0
- package/dist/src/activity-audit.js +14 -4
- package/dist/src/analysis-storage.d.ts +5 -1
- package/dist/src/analysis-storage.js +9 -2
- package/dist/src/audit-retention.d.ts +8 -2
- package/dist/src/audit-retention.js +68 -7
- package/dist/src/cli.js +21 -5
- package/dist/src/context-diagnostics.d.ts +1 -1
- package/dist/src/context-diagnostics.js +10 -2
- package/dist/src/contexts.d.ts +118 -10
- package/dist/src/contexts.js +851 -199
- package/dist/src/debugger.js +2 -1
- package/dist/src/diagnostic-error.js +1 -1
- package/dist/src/inline-script.js +3 -4
- package/dist/src/lifecycle.d.ts +11 -0
- package/dist/src/lifecycle.js +34 -6
- package/dist/src/native-inputs.d.ts +6 -0
- package/dist/src/native-inputs.js +30 -6
- package/dist/src/native-queries.js +1 -6
- package/dist/src/native-service.d.ts +40 -0
- package/dist/src/native-service.js +406 -0
- package/dist/src/research.d.ts +29 -1
- package/dist/src/research.js +106 -27
- package/dist/src/server.d.ts +38 -1
- package/dist/src/server.js +160 -12
- package/dist/src/storage-gc.js +1 -1
- package/dist/src/sync-policy.js +2 -1
- package/dist/src/timed-backend.js +8 -0
- package/dist/src/timing-report.d.ts +32 -0
- package/dist/src/timing-report.js +74 -0
- package/dist/src/tool-runtime/identity.js +86 -1
- package/dist/src/tool-runtime/supervisor.js +6 -5
- package/dist/src/transport.d.ts +35 -0
- package/dist/src/transport.js +77 -7
- package/dist/src/unresolved-guidance.d.ts +46 -0
- package/dist/src/unresolved-guidance.js +55 -0
- package/dist/src/windbg.d.ts +1 -1
- package/dist/src/work/backup.d.ts +66 -0
- package/dist/src/work/backup.js +434 -0
- package/dist/src/work/commands.d.ts +5 -0
- package/dist/src/work/commands.js +277 -0
- package/dist/src/work/dashboard.d.ts +12 -0
- package/dist/src/work/dashboard.js +103 -0
- package/dist/src/work/model.d.ts +131 -0
- package/dist/src/work/model.js +124 -0
- package/dist/src/work/store.d.ts +368 -0
- package/dist/src/work/store.js +1050 -0
- package/dist/src/work/timing.d.ts +26 -0
- package/dist/src/work/timing.js +80 -0
- package/dist/src/worker-lease.d.ts +17 -0
- package/dist/src/worker-lease.js +50 -0
- package/dist/src/workspace.d.ts +5 -9
- package/dist/src/workspace.js +20 -41
- package/package.json +1 -1
- package/references/native/InsightHeadlessMain.java +9 -2
- package/references/native/InsightNativeCheckout.java +113 -43
- package/references/native/InsightNativeFingerprint.java +28 -1
- package/references/native/InsightNativeRead.java +32 -9
- package/references/native/InsightNativeService.java +43 -0
- package/references/native/InsightNativeView.java +17 -6
- package/references/native/InsightOwnedScripts.java +170 -0
- package/references/native/InsightWorkerLease.java +132 -0
- package/references/recovery.md +68 -3
- package/references/research.md +38 -4
- package/references/setup.md +5 -1
- package/references/work-tracking.md +203 -0
- package/runtime/toolbox.json +1 -0
- package/skill-bundle/insight-artifacts/SKILL.md +1 -1
- package/skill-bundle/insight-artifacts/references/recovery.md +68 -3
- package/skill-bundle/insight-binary/SKILL.md +1 -1
- package/skill-bundle/insight-capture/SKILL.md +1 -1
- package/skill-bundle/insight-cli/SKILL.md +1 -1
- package/skill-bundle/insight-cli/references/recovery.md +68 -3
- package/skill-bundle/insight-cli/references/setup.md +5 -1
- package/skill-bundle/insight-die/SKILL.md +1 -1
- package/skill-bundle/insight-dnspy/SKILL.md +1 -1
- package/skill-bundle/insight-dotnet-dump/SKILL.md +1 -1
- package/skill-bundle/insight-dotnet-stack/SKILL.md +1 -1
- package/skill-bundle/insight-dotnet-trace/SKILL.md +1 -1
- package/skill-bundle/insight-frida/SKILL.md +1 -1
- package/skill-bundle/insight-ghidra/SKILL.md +1 -1
- package/skill-bundle/insight-ghidra/references/recovery.md +68 -3
- package/skill-bundle/insight-ghidra/references/research.md +38 -4
- package/skill-bundle/insight-ghidra/references/setup.md +5 -1
- package/skill-bundle/insight-ilspy/SKILL.md +1 -1
- package/skill-bundle/insight-interop/SKILL.md +1 -1
- package/skill-bundle/insight-lldb/SKILL.md +1 -1
- package/skill-bundle/insight-llvm/SKILL.md +1 -1
- package/skill-bundle/insight-managed-heap/SKILL.md +1 -1
- package/skill-bundle/insight-managed-metadata/SKILL.md +1 -1
- package/skill-bundle/insight-mitmproxy/SKILL.md +1 -1
- package/skill-bundle/insight-overview/SKILL.md +1 -1
- package/skill-bundle/insight-procmon/SKILL.md +1 -1
- package/skill-bundle/insight-re/SKILL.md +5 -1
- package/skill-bundle/insight-re/references/recovery.md +68 -3
- package/skill-bundle/insight-re/references/work-tracking.md +203 -0
- package/skill-bundle/insight-sevenzip/SKILL.md +1 -1
- package/skill-bundle/insight-strace/SKILL.md +1 -1
- package/skill-bundle/insight-tshark/SKILL.md +1 -1
- package/skill-bundle/insight-windbg/SKILL.md +1 -1
- package/skill-bundle/manifest.json +1 -1
- package/skills/insight-artifacts/SKILL.md +1 -1
- package/skills/insight-artifacts/references/recovery.md +68 -3
- package/skills/insight-binary/SKILL.md +1 -1
- package/skills/insight-capture/SKILL.md +1 -1
- package/skills/insight-die/SKILL.md +1 -1
- package/skills/insight-dnspy/SKILL.md +1 -1
- package/skills/insight-dotnet-dump/SKILL.md +1 -1
- package/skills/insight-dotnet-stack/SKILL.md +1 -1
- package/skills/insight-dotnet-trace/SKILL.md +1 -1
- package/skills/insight-frida/SKILL.md +1 -1
- package/skills/insight-ghidra/SKILL.md +1 -1
- package/skills/insight-ghidra/references/recovery.md +68 -3
- package/skills/insight-ghidra/references/research.md +38 -4
- package/skills/insight-ghidra/references/setup.md +5 -1
- package/skills/insight-ilspy/SKILL.md +1 -1
- package/skills/insight-interop/SKILL.md +1 -1
- package/skills/insight-lldb/SKILL.md +1 -1
- package/skills/insight-llvm/SKILL.md +1 -1
- package/skills/insight-managed-heap/SKILL.md +1 -1
- package/skills/insight-managed-metadata/SKILL.md +1 -1
- package/skills/insight-mitmproxy/SKILL.md +1 -1
- package/skills/insight-overview/SKILL.md +1 -1
- package/skills/insight-procmon/SKILL.md +1 -1
- package/skills/insight-re/SKILL.md +5 -1
- package/skills/insight-re/references/recovery.md +68 -3
- package/skills/insight-re/references/work-tracking.md +203 -0
- package/skills/insight-sevenzip/SKILL.md +1 -1
- package/skills/insight-strace/SKILL.md +1 -1
- package/skills/insight-tshark/SKILL.md +1 -1
- package/skills/insight-windbg/SKILL.md +1 -1
|
@@ -15,10 +15,19 @@ recovery. Preserve its project and receipts rather than repeating a mutation wit
|
|
|
15
15
|
|
|
16
16
|
If native `changes discard` loses its response, retry its original request ID or continue
|
|
17
17
|
the same session/target. Recovery requires a completed native discard journal and matching
|
|
18
|
-
new checkout identity/base
|
|
18
|
+
new checkout identity/base, which Ghidra reports unmodified.
|
|
19
19
|
It does not repeat discard. An incomplete journal or mismatched checkout stays unknown;
|
|
20
20
|
preserve the project and any `.keep` file.
|
|
21
21
|
|
|
22
|
+
A Ghidra session that ends abruptly can leave unsaved changes as Ghidra recovery data in the
|
|
23
|
+
working copy. Opening the program would delete them, so `ghidra open` and every native
|
|
24
|
+
operation refuse with `blocked` and name the two ways out. Neither needs Ghidra itself:
|
|
25
|
+
`ghidra changes recover-unsaved --session <id> --target <id>` has Ghidra restore those changes
|
|
26
|
+
and save them into the working copy; `ghidra changes discard-unsaved --session <id> --target <id>`
|
|
27
|
+
(Destructive) has Ghidra delete them. Saved work stays in both cases, nothing is published, and
|
|
28
|
+
repeating either command is safe: with nothing left it reports `absent`. Then run the refused
|
|
29
|
+
command again.
|
|
30
|
+
|
|
22
31
|
First-import recovery uses the same scoped `ghidra open` or the original request ID/input.
|
|
23
32
|
Import/analysis writes a private snapshot and completion receipt before any initial publication.
|
|
24
33
|
If its worker is still running, continuation reports busy; wait and continue the same scope.
|
|
@@ -75,6 +84,62 @@ edits stay private. A revision change or live checkout blocks adoption. Only an
|
|
|
75
84
|
absent path permits a separately journaled preparation under the current verified runtime,
|
|
76
85
|
using the original lock and conditional creation. An unknown publication still freezes recovery.
|
|
77
86
|
|
|
87
|
+
## Merge or refresh that was never sent
|
|
88
|
+
|
|
89
|
+
A cancellation (or an unusable native service) can stop a merge or refresh before its native
|
|
90
|
+
Update or check-in ever left the CLI. That is provable, so it is not an unknown outcome: the request
|
|
91
|
+
ends as failed with `reason: not_sent`, a prepared publication intent is withdrawn (stored as a
|
|
92
|
+
refused publication), the lane stays open and local work remains pending. The original
|
|
93
|
+
`--request-id` then keeps reporting that terminal refusal (`coordinator.conflict`) with its `phase`,
|
|
94
|
+
`cause` and memory diagnosis (a suggested next command is given only in the first response); run the
|
|
95
|
+
merge or refresh again with a new request ID. The same applies when the worker pool was busy, blocked or
|
|
96
|
+
full, the worker could not be parked or stopped, or its server could not be reached before the step
|
|
97
|
+
was dispatched. Any other failure while the context was reopened or saved (a lost, failed or
|
|
98
|
+
unusable reply, an unacknowledged save) keeps its own unresolved outcome. A cancellation after a native step was sent keeps the
|
|
99
|
+
unknown-outcome rules below.
|
|
100
|
+
|
|
101
|
+
A native helper can also end before its step reached the server, most often because the machine
|
|
102
|
+
ran out of memory (many concurrent sessions or JVMs). The helper writes its operation journal
|
|
103
|
+
before its Update or check-in call (it may already have read from the server), so a helper that ended without an answer (exit, timeout, cancellation or
|
|
104
|
+
memory exhaustion) is reported as not sent (with `memory: exhausted`, `reason: out_of_memory`, the
|
|
105
|
+
concrete JVM cause such as a too-small paging file in `memoryCause` and the message, and the
|
|
106
|
+
original error as `cause`) when that journal is absent from the journal directory the coordinator
|
|
107
|
+
created and identified before dispatch (a moved or replaced checkout or directory proves nothing)
|
|
108
|
+
and no helper or publisher service that could still write it
|
|
109
|
+
remains: each has proved its exit, or is a publisher service the current owner still tracks as
|
|
110
|
+
serving. A helper that answered keeps its own outcome (refusal, migration, binding or unknown), and
|
|
111
|
+
a helper whose termination could not be proved keeps the outcome unknown. These proofs assume the
|
|
112
|
+
profile's single owner process; process records of any other owner must show their exit.
|
|
113
|
+
|
|
114
|
+
Only the live command, which itself observed its helper end, reports a step as not sent. An outcome
|
|
115
|
+
already recorded as unknown (for example after the owner process itself stopped) is never settled
|
|
116
|
+
from an absent journal: on Windows a machine crash can lose a written journal's directory entry,
|
|
117
|
+
and an Update that ran can leave the checkout unchanged (no incoming change, or a conflict). It
|
|
118
|
+
stays unknown until its own journal, or for a check-in the request marker in the server history,
|
|
119
|
+
establish the result; `insight-cli ghidra open --target <target> --session <session>` reconciles it.
|
|
120
|
+
|
|
121
|
+
Every refusal of a research or lifecycle command caused by an unresolved outcome
|
|
122
|
+
(`coordinator.blocked`) names the reconciling
|
|
123
|
+
command in its message and in `next.reconcile`, lists the owning context's unresolved requests
|
|
124
|
+
(ID, caller request ID, operation, state) and, when another session's publication holds the lane,
|
|
125
|
+
that publication. If a proof is missing, the lane stays frozen as described below; once the cause
|
|
126
|
+
(for example low memory or a busy server) is gone, run the reconciling open again. Never repeat the
|
|
127
|
+
unknown operation itself. While it stays frozen the saved project and its journals are retained.
|
|
128
|
+
A context-local outcome leaves the target free: research continues in a new session
|
|
129
|
+
(`next.continueElsewhere`, `insight-cli ghidra open --target <target> --session new`). An
|
|
130
|
+
unresolved publication or shared model holds the whole target (`targetHeld: true`, no
|
|
131
|
+
`continueElsewhere`): a new session of it waits as well, other targets are unaffected. When the
|
|
132
|
+
reconciling open cannot prove an outcome yet, it says so and when to run it again; replay an
|
|
133
|
+
original request ID to see how a reconciled request ended (`sessions status` lists only requests
|
|
134
|
+
that are still unresolved, so keep that ID). An open that failed while setting up (before any
|
|
135
|
+
reconciliation) is a plain failure; its replay reports that failure without running setup again.
|
|
136
|
+
A request settled as not sent is terminal: run the operation again with a new request ID. A merge or refresh
|
|
137
|
+
recorded as unknown keeps its error code and adds the same guidance to its message and result.
|
|
138
|
+
Commands in guidance name the profile (`--profile <name>`); machine-readable follow-ups (`next`)
|
|
139
|
+
always address the context that owns the outcome, never the refused one. `ghidra abandon` applies
|
|
140
|
+
only to legacy detached program attempts; for a native outcome it refuses with the same
|
|
141
|
+
reconciliation command.
|
|
142
|
+
|
|
78
143
|
## Interrupted save or close
|
|
79
144
|
|
|
80
145
|
After restoring profile storage, inspect the selected session and target with
|
|
@@ -117,8 +182,8 @@ their exception strings or an unchanged program snapshot. File/Python scripts re
|
|
|
117
182
|
existing conservative recovery semantics.
|
|
118
183
|
|
|
119
184
|
An unknown or partial effect retains its request intent, receipts and native project. Open the
|
|
120
|
-
same tuple to reconcile supported outcomes. A committed merge is
|
|
121
|
-
|
|
185
|
+
same tuple to reconcile supported outcomes. A committed merge is recognised by its unique request
|
|
186
|
+
marker at the expected version in the repository history, read with read-only authority; it is never
|
|
122
187
|
checked in again merely because its response was lost. Until verification succeeds, publication
|
|
123
188
|
for this shared target is blocked across sessions. Saved private work remains retained.
|
|
124
189
|
|
|
@@ -11,6 +11,8 @@ repeating the same request ID retrieves those outcomes without another pass.
|
|
|
11
11
|
For native contexts it retains Ghidra's `.keep` when work is dirty, releases the old checkout
|
|
12
12
|
and checks out the current server version in the same project. It does not publish. Close a
|
|
13
13
|
live debugger first. Legacy detached contexts require explicit migration and are retained.
|
|
14
|
+
`ghidra changes recover-unsaved` and `ghidra changes discard-unsaved` settle unsaved changes
|
|
15
|
+
that an interrupted Ghidra session left in the working copy; see [recovery](recovery.md).
|
|
14
16
|
|
|
15
17
|
Open input with `insight-cli ghidra open ./client.exe --session new --json`. Store the returned
|
|
16
18
|
`session` and `target` as the explicit scope for every later research call. Names are display
|
|
@@ -47,8 +49,15 @@ original working copy/base. Status reports the native conflict description. The
|
|
|
47
49
|
Types, signatures, structures and other analysis edits use Ghidra's stock resolvers and native
|
|
48
50
|
checkout change sets. Divergence alone is not a category conflict. `ghidra merge` performs native
|
|
49
51
|
Update, then journaled check-in. Independent read-only history/exact-version buffer verification
|
|
50
|
-
precedes
|
|
51
|
-
|
|
52
|
+
precedes any further step. By default the context then stays open: check-in keeps the checkout, and
|
|
53
|
+
the context continues in it at the published version, so an agent can merge repeatedly during one
|
|
54
|
+
long session without reopening. Backups that Update left and its journals prove disposable are
|
|
55
|
+
removed. `ghidra merge --close` (or a kept checkout that cannot be proved unchanged) releases and
|
|
56
|
+
drops the project instead; continued work then receives a fresh checkout. During Update/check-in the
|
|
57
|
+
warm worker only closes its project and reopens it afterwards at the new base, so the next command
|
|
58
|
+
needs no new JVM (a worker that ran agent scripts, or whose project cannot be proved released or
|
|
59
|
+
reopened, restarts as before); worker/owner restart before publication reopens the same project without packed-snapshot
|
|
60
|
+
import.
|
|
52
61
|
|
|
53
62
|
Ordinary saves retain the native DB and lightweight saved-view receipts. Full packed exports are
|
|
54
63
|
for initial import and explicit consumers such as export, cross-program comparison and VT.
|
|
@@ -208,10 +217,35 @@ and cache refresh; executable bytes without an entry use bounded decode, undefin
|
|
|
208
217
|
byte search and explicit continuation. The diagnostic does
|
|
209
218
|
not run analyzers, define data, repair boundaries, save a snapshot or certify semantic completeness.
|
|
210
219
|
|
|
220
|
+
`diagnostics timings [--command "ghidra open"] [--limit N]` summarizes the most recent retained
|
|
221
|
+
attempts of the selected context per phase: `facade.queue` (context and target-lane waits),
|
|
222
|
+
`native.call`/`native.helper` (each helper JVM), `worker.launch`/`worker.stop`, `tool.launch` minus
|
|
223
|
+
`tool.locked` (wait for the profile-wide launch lock) and `tool.identity`. Nested phases overlap
|
|
224
|
+
their parents; `unattributedMs` is root time not covered by a direct child. It neither starts nor
|
|
225
|
+
probes Ghidra.
|
|
226
|
+
|
|
227
|
+
Checkout, Update/check-in, release and exact-version reads run in warm native services of the
|
|
228
|
+
CLI owner instead of one JVM per operation; the first native call after an owner start pays one
|
|
229
|
+
service start. `ghidra diagnostics timings` shows them as `native.service`/`native.service.start`.
|
|
230
|
+
Each CLI invocation also starts a client and connects to the owner (seconds); an agent issuing many
|
|
231
|
+
commands should keep one `--json-rpc` session and send `cli.execute` requests through it
|
|
232
|
+
([persistent research calls](persistent.md)).
|
|
233
|
+
Closing a context whose worker already stopped does not relaunch it.
|
|
234
|
+
|
|
235
|
+
An opened headless context worker stays warm across commands and outlives the CLI owner process.
|
|
236
|
+
Each command holds the worker while it runs, so a held worker never stops. Without a command it
|
|
237
|
+
stops by itself after `contextIdleMinutes` (profile setting, default 15, range 1–1440), counted from
|
|
238
|
+
the end of the last command that used it. Acknowledged work is already saved, so the next command
|
|
239
|
+
reopens the context transparently. When `maxContexts` is reached, opening another context stops
|
|
240
|
+
the worker idle for longest instead of failing; a worker built for a previous runtime is stopped
|
|
241
|
+
when its context or a new owner meets it. Lifecycle records these as `idle_timeout`,
|
|
242
|
+
`capacity_evicted` and `runtime_changed`. Use `ghidra close` to stop a worker immediately. GUI
|
|
243
|
+
workers and workers started by older builds do not cool down and still stop with their owner.
|
|
244
|
+
|
|
211
245
|
`diagnostics lifecycle` reads retained start/restore/stop events and the current process receipt
|
|
212
246
|
without starting or probing Ghidra. At most the latest 128 observations are retained. A stopped
|
|
213
|
-
receipt can identify `explicit_close`, `view_replaced`, `mode_changed`, `startup_failed
|
|
214
|
-
`owner_dispose`; historical receipts without reasons remain `unknown`. Owner disposal does not
|
|
247
|
+
receipt can identify `explicit_close`, `view_replaced`, `mode_changed`, `startup_failed`,
|
|
248
|
+
`owner_dispose`, `idle_timeout`, `capacity_evicted` or `runtime_changed`; historical receipts without reasons remain `unknown`. Owner disposal does not
|
|
215
249
|
establish whether Factory exited due to idle, explicit stop, a signal or another cause. A current
|
|
216
250
|
receipt without a matching stop receipt reports `unobserved`, not a claim that the PID is live.
|
|
217
251
|
|
|
@@ -76,6 +76,10 @@ retained work. This revision conservatively protects retained profile research s
|
|
|
76
76
|
Runtime identity covers installed Ghidra code, language/compiler data, native modules and Python
|
|
77
77
|
inputs together with JDK tools, modules and configuration. Generated Python caches are isolated.
|
|
78
78
|
Changing those runtime inputs requires stopping the old owner before continuing with the new build.
|
|
79
|
+
Headless context workers outlive their owner: a worker of the previous runtime is stopped with the
|
|
80
|
+
reason `runtime_changed` when its context is next used, and an unused one stops by itself after
|
|
81
|
+
`contextIdleMinutes` (default 15, range 1–1440). `maxContexts` (default 4, range 1–16) bounds the
|
|
82
|
+
workers kept at once; at that limit the longest-idle one is stopped first.
|
|
79
83
|
|
|
80
84
|
Native acceptance separates macOS GUI/LLDB workflows from selected headless Windows/Linux
|
|
81
85
|
SDK, Version Tracking and FID/BSim workflows. Native Windows/Linux debugger/GUI acceptance
|
|
@@ -98,7 +102,7 @@ defaults to 120 (1–3600 seconds). Configure them with `ghidra budgets set
|
|
|
98
102
|
This uses Factory ProfileStore without invalidating research or stopping native contexts.
|
|
99
103
|
Active requests retain their original budget. Generic `profile set` remains guarded for
|
|
100
104
|
profiles containing research; initial profile creation also accepts these fields. Both are execution policy, independent
|
|
101
|
-
of immutable target/load identity. Native save, Update/check-in, exact-version verification and explicit packed export use the save budget;
|
|
105
|
+
of immutable target/load identity. Native save, opening a saved program, Update/check-in, exact-version verification and explicit packed export use the save budget;
|
|
102
106
|
discovery and ordinary HTTP queries keep their 30-second budget. Each native request has
|
|
103
107
|
its own budget, not a total command deadline. Cancellation remains independent.
|
|
104
108
|
|
|
@@ -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.
|
|
6
|
+
# Insight ILSpy 0.8.1
|
|
7
7
|
|
|
8
8
|
If local help/status reports AppData or IPC access denied, retry that **read-only probe**
|
|
9
9
|
with the agent host's normal permission escalation, then use that route for later authorized
|
|
@@ -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.
|
|
6
|
+
# Insight Interop 0.8.1
|
|
7
7
|
|
|
8
8
|
If local help/status reports AppData or IPC access denied, retry that **read-only probe**
|
|
9
9
|
with the agent host's normal permission escalation, then use that route for later authorized
|
|
@@ -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.
|
|
6
|
+
# Insight LLDB 0.8.1
|
|
7
7
|
|
|
8
8
|
If local help/status reports AppData or IPC access denied, retry that **read-only probe**
|
|
9
9
|
with the agent host's normal permission escalation, then use that route for later authorized
|
|
@@ -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.
|
|
6
|
+
# Insight LLVM 0.8.1
|
|
7
7
|
|
|
8
8
|
If local help/status reports AppData or IPC access denied, retry that **read-only probe**
|
|
9
9
|
with the agent host's normal permission escalation, then use that route for later authorized
|
|
@@ -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.
|
|
6
|
+
# Insight Managed Heap 0.8.1
|
|
7
7
|
|
|
8
8
|
If local help/status reports AppData or IPC access denied, retry that **read-only probe**
|
|
9
9
|
with the agent host's normal permission escalation, then use that route for later authorized
|
|
@@ -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.
|
|
6
|
+
# Insight Managed Metadata 0.8.1
|
|
7
7
|
|
|
8
8
|
If local help/status reports AppData or IPC access denied, retry that **read-only probe**
|
|
9
9
|
with the agent host's normal permission escalation, then use that route for later authorized
|
|
@@ -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.
|
|
6
|
+
# Insight mitmproxy 0.8.1
|
|
7
7
|
|
|
8
8
|
If local help/status reports AppData or IPC access denied, retry that **read-only probe**
|
|
9
9
|
with the agent host's normal permission escalation, then use that route for later authorized
|
|
@@ -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.
|
|
6
|
+
# Insight Overview 0.8.1
|
|
7
7
|
|
|
8
8
|
If local help/status reports AppData or IPC access denied, retry that **read-only probe**
|
|
9
9
|
with the agent host's normal permission escalation, then use that route for later authorized
|
|
@@ -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.
|
|
6
|
+
# Insight ProcMon 0.8.1
|
|
7
7
|
|
|
8
8
|
If local help/status reports AppData or IPC access denied, retry that **read-only probe**
|
|
9
9
|
with the agent host's normal permission escalation, then use that route for later authorized
|
|
@@ -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.
|
|
6
|
+
# Insight RE 0.8.1
|
|
7
7
|
|
|
8
8
|
If local help/status reports AppData or IPC access denied, retry that **read-only probe**
|
|
9
9
|
with the agent host's normal permission escalation, then use that route for later authorized
|
|
@@ -41,6 +41,10 @@ When no convention exists, one research folder with short notes and relative lin
|
|
|
41
41
|
simple default. For parallel work assign separate files or slices within the chosen layout
|
|
42
42
|
and one owner for each shared index or summary.
|
|
43
43
|
|
|
44
|
+
If the owner asks for a shared reconstruction ledger, use the opt-in `work` command group.
|
|
45
|
+
Read [work tracking](references/work-tracking.md) for fenced assignments, provenance and
|
|
46
|
+
strict proof limits. Pass a saved handoff to each agent; native sessions remain independent.
|
|
47
|
+
|
|
44
48
|
## Choose useful tools
|
|
45
49
|
|
|
46
50
|
Respect project tool choices; otherwise start with the simplest tool that can answer the
|
|
@@ -15,10 +15,19 @@ recovery. Preserve its project and receipts rather than repeating a mutation wit
|
|
|
15
15
|
|
|
16
16
|
If native `changes discard` loses its response, retry its original request ID or continue
|
|
17
17
|
the same session/target. Recovery requires a completed native discard journal and matching
|
|
18
|
-
new checkout identity/base
|
|
18
|
+
new checkout identity/base, which Ghidra reports unmodified.
|
|
19
19
|
It does not repeat discard. An incomplete journal or mismatched checkout stays unknown;
|
|
20
20
|
preserve the project and any `.keep` file.
|
|
21
21
|
|
|
22
|
+
A Ghidra session that ends abruptly can leave unsaved changes as Ghidra recovery data in the
|
|
23
|
+
working copy. Opening the program would delete them, so `ghidra open` and every native
|
|
24
|
+
operation refuse with `blocked` and name the two ways out. Neither needs Ghidra itself:
|
|
25
|
+
`ghidra changes recover-unsaved --session <id> --target <id>` has Ghidra restore those changes
|
|
26
|
+
and save them into the working copy; `ghidra changes discard-unsaved --session <id> --target <id>`
|
|
27
|
+
(Destructive) has Ghidra delete them. Saved work stays in both cases, nothing is published, and
|
|
28
|
+
repeating either command is safe: with nothing left it reports `absent`. Then run the refused
|
|
29
|
+
command again.
|
|
30
|
+
|
|
22
31
|
First-import recovery uses the same scoped `ghidra open` or the original request ID/input.
|
|
23
32
|
Import/analysis writes a private snapshot and completion receipt before any initial publication.
|
|
24
33
|
If its worker is still running, continuation reports busy; wait and continue the same scope.
|
|
@@ -75,6 +84,62 @@ edits stay private. A revision change or live checkout blocks adoption. Only an
|
|
|
75
84
|
absent path permits a separately journaled preparation under the current verified runtime,
|
|
76
85
|
using the original lock and conditional creation. An unknown publication still freezes recovery.
|
|
77
86
|
|
|
87
|
+
## Merge or refresh that was never sent
|
|
88
|
+
|
|
89
|
+
A cancellation (or an unusable native service) can stop a merge or refresh before its native
|
|
90
|
+
Update or check-in ever left the CLI. That is provable, so it is not an unknown outcome: the request
|
|
91
|
+
ends as failed with `reason: not_sent`, a prepared publication intent is withdrawn (stored as a
|
|
92
|
+
refused publication), the lane stays open and local work remains pending. The original
|
|
93
|
+
`--request-id` then keeps reporting that terminal refusal (`coordinator.conflict`) with its `phase`,
|
|
94
|
+
`cause` and memory diagnosis (a suggested next command is given only in the first response); run the
|
|
95
|
+
merge or refresh again with a new request ID. The same applies when the worker pool was busy, blocked or
|
|
96
|
+
full, the worker could not be parked or stopped, or its server could not be reached before the step
|
|
97
|
+
was dispatched. Any other failure while the context was reopened or saved (a lost, failed or
|
|
98
|
+
unusable reply, an unacknowledged save) keeps its own unresolved outcome. A cancellation after a native step was sent keeps the
|
|
99
|
+
unknown-outcome rules below.
|
|
100
|
+
|
|
101
|
+
A native helper can also end before its step reached the server, most often because the machine
|
|
102
|
+
ran out of memory (many concurrent sessions or JVMs). The helper writes its operation journal
|
|
103
|
+
before its Update or check-in call (it may already have read from the server), so a helper that ended without an answer (exit, timeout, cancellation or
|
|
104
|
+
memory exhaustion) is reported as not sent (with `memory: exhausted`, `reason: out_of_memory`, the
|
|
105
|
+
concrete JVM cause such as a too-small paging file in `memoryCause` and the message, and the
|
|
106
|
+
original error as `cause`) when that journal is absent from the journal directory the coordinator
|
|
107
|
+
created and identified before dispatch (a moved or replaced checkout or directory proves nothing)
|
|
108
|
+
and no helper or publisher service that could still write it
|
|
109
|
+
remains: each has proved its exit, or is a publisher service the current owner still tracks as
|
|
110
|
+
serving. A helper that answered keeps its own outcome (refusal, migration, binding or unknown), and
|
|
111
|
+
a helper whose termination could not be proved keeps the outcome unknown. These proofs assume the
|
|
112
|
+
profile's single owner process; process records of any other owner must show their exit.
|
|
113
|
+
|
|
114
|
+
Only the live command, which itself observed its helper end, reports a step as not sent. An outcome
|
|
115
|
+
already recorded as unknown (for example after the owner process itself stopped) is never settled
|
|
116
|
+
from an absent journal: on Windows a machine crash can lose a written journal's directory entry,
|
|
117
|
+
and an Update that ran can leave the checkout unchanged (no incoming change, or a conflict). It
|
|
118
|
+
stays unknown until its own journal, or for a check-in the request marker in the server history,
|
|
119
|
+
establish the result; `insight-cli ghidra open --target <target> --session <session>` reconciles it.
|
|
120
|
+
|
|
121
|
+
Every refusal of a research or lifecycle command caused by an unresolved outcome
|
|
122
|
+
(`coordinator.blocked`) names the reconciling
|
|
123
|
+
command in its message and in `next.reconcile`, lists the owning context's unresolved requests
|
|
124
|
+
(ID, caller request ID, operation, state) and, when another session's publication holds the lane,
|
|
125
|
+
that publication. If a proof is missing, the lane stays frozen as described below; once the cause
|
|
126
|
+
(for example low memory or a busy server) is gone, run the reconciling open again. Never repeat the
|
|
127
|
+
unknown operation itself. While it stays frozen the saved project and its journals are retained.
|
|
128
|
+
A context-local outcome leaves the target free: research continues in a new session
|
|
129
|
+
(`next.continueElsewhere`, `insight-cli ghidra open --target <target> --session new`). An
|
|
130
|
+
unresolved publication or shared model holds the whole target (`targetHeld: true`, no
|
|
131
|
+
`continueElsewhere`): a new session of it waits as well, other targets are unaffected. When the
|
|
132
|
+
reconciling open cannot prove an outcome yet, it says so and when to run it again; replay an
|
|
133
|
+
original request ID to see how a reconciled request ended (`sessions status` lists only requests
|
|
134
|
+
that are still unresolved, so keep that ID). An open that failed while setting up (before any
|
|
135
|
+
reconciliation) is a plain failure; its replay reports that failure without running setup again.
|
|
136
|
+
A request settled as not sent is terminal: run the operation again with a new request ID. A merge or refresh
|
|
137
|
+
recorded as unknown keeps its error code and adds the same guidance to its message and result.
|
|
138
|
+
Commands in guidance name the profile (`--profile <name>`); machine-readable follow-ups (`next`)
|
|
139
|
+
always address the context that owns the outcome, never the refused one. `ghidra abandon` applies
|
|
140
|
+
only to legacy detached program attempts; for a native outcome it refuses with the same
|
|
141
|
+
reconciliation command.
|
|
142
|
+
|
|
78
143
|
## Interrupted save or close
|
|
79
144
|
|
|
80
145
|
After restoring profile storage, inspect the selected session and target with
|
|
@@ -117,8 +182,8 @@ their exception strings or an unchanged program snapshot. File/Python scripts re
|
|
|
117
182
|
existing conservative recovery semantics.
|
|
118
183
|
|
|
119
184
|
An unknown or partial effect retains its request intent, receipts and native project. Open the
|
|
120
|
-
same tuple to reconcile supported outcomes. A committed merge is
|
|
121
|
-
|
|
185
|
+
same tuple to reconcile supported outcomes. A committed merge is recognised by its unique request
|
|
186
|
+
marker at the expected version in the repository history, read with read-only authority; it is never
|
|
122
187
|
checked in again merely because its response was lost. Until verification succeeds, publication
|
|
123
188
|
for this shared target is blocked across sessions. Saved private work remains retained.
|
|
124
189
|
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
# Shared RE work ledger
|
|
2
|
+
|
|
3
|
+
Opt in when the project owner asks agents to share reconstruction state. Preserve existing
|
|
4
|
+
evidence. All clients use the same explicit profile and its Factory IPC owner. `work` launches
|
|
5
|
+
neither agents nor native tools. Its profile-owned SQLite is local, never shared over SMB.
|
|
6
|
+
|
|
7
|
+
```text
|
|
8
|
+
insight-cli -p RE work context --json
|
|
9
|
+
insight-cli -p RE targets add CLIENT.exe --json
|
|
10
|
+
insight-cli -p RE work create --project client --target TARGET --name Client --request-id create-client --json
|
|
11
|
+
insight-cli -p RE work context --project client --json
|
|
12
|
+
insight-cli -p RE work import --project client --file functions.json --request-id import-page-1 --json
|
|
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
|
|
15
|
+
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 dashboard --project client --json
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Worker happy path: `next` → `handoff` → `heartbeat`… → `submit`/`review`. `next` plans and claims
|
|
21
|
+
atomically at the current state and returns `lease`, one opaque token for task, worker, fence and
|
|
22
|
+
epoch. It is a convenience handle, not a secret or authentication. The explicit
|
|
23
|
+
`--task/--worker/--fence` form and `plan --expect-revision` + `claim` remain for orchestrators.
|
|
24
|
+
On `work.taskCancelled` stop that task and run its `result.retry` (`next --functions …`) or plain
|
|
25
|
+
`next`; on other `stale*` errors read a
|
|
26
|
+
fresh `brief`/`handoff`. Every retry with changed input needs a new request ID.
|
|
27
|
+
|
|
28
|
+
Read generated leaf help. Task and package mutations require Factory Update and a unique request ID (local
|
|
29
|
+
dashboard/export/backup outputs instead require a new destination). After a
|
|
30
|
+
lost response reuse the same ID with identical captured inputs: the saved receipt is replayed,
|
|
31
|
+
and changed intent fails. `result` is the saved mutation. Dashboard refresh is deferred by default;
|
|
32
|
+
use `--refresh-dashboard` on a mutation to render the current revision. A rendering failure does not undo saved workflow state.
|
|
33
|
+
|
|
34
|
+
Plan at a freshly observed revision, then pass `handoff` to an independent agent. Queued and
|
|
35
|
+
leased tasks reserve function IDs, explicit resource keys and the targets of the function's own
|
|
36
|
+
non-rejected writer edges (`writes`, `initializes`, `owns`, `frees`). Calls and reads never lock.
|
|
37
|
+
No ownership closure is inferred from a call graph. Expired leases can be reclaimed with a higher fence; stale writes fail.
|
|
38
|
+
Release keeps the reservation; cancel at the current revision frees it for replanning.
|
|
39
|
+
Worker labels are cooperative attribution, not authentication. Ghidra workers still use
|
|
40
|
+
different private sessions and the existing merge/refresh/recovery protocol.
|
|
41
|
+
|
|
42
|
+
JSON inputs are captured before parsing (8 MiB). Source limit: 16 MiB; review note: 2 MiB.
|
|
43
|
+
Command paths resolve against the invoking client's working directory, including over IPC.
|
|
44
|
+
Manifest paths are relative to that manifest. `work evidence --sha256 HASH --size BYTES`
|
|
45
|
+
verifies and locates saved bytes. Originals can change without rewriting saved evidence.
|
|
46
|
+
|
|
47
|
+
Inventory: `{schema:1,kind:"function-definitions",binarySha256:FULL_SHA,reportedTotal:N,
|
|
48
|
+
functions:[{rva:"0x1000",name:"label",risk:"unknown",resources:["global:FULL_SHA:1234"]}]}`.
|
|
49
|
+
At most 5000 definitions per input. `reportedTotal` is an upstream claim, not completeness.
|
|
50
|
+
Unwind regions and source declarations are distinct. Extra provenance/body fields are retained.
|
|
51
|
+
Changed definitions under existing IDs fail. Function IDs use the full SHA plus entry RVA.
|
|
52
|
+
Revise them explicitly with `work revise-definition --project ID --function FN --expect-version V
|
|
53
|
+
--file revision.json --request-id NEW-ID`. Input: `{schema:1,kind:"function-definition-revision",
|
|
54
|
+
binarySha256:FULL_SHA,reason:"evidence/reason",definition:{rva:"0x1000",name:"label",resources:[]}}`.
|
|
55
|
+
The entry anchor must stay unchanged. Revision cancels/fences affected assignments and retains
|
|
56
|
+
old packages as invalidated history. `work history --project ID --function FN` pages versions.
|
|
57
|
+
Migration seeds only the current retained version. A new reconstruction submission clears invalidation;
|
|
58
|
+
old finite comparisons/reviews cannot validate a changed definition. A new non-rejected edge invalidates
|
|
59
|
+
retained packages (functions with source) at its function endpoints and cancels assignments that froze
|
|
60
|
+
those packages. New nodes, rejected edges and identical imports invalidate nothing; in-flight work on
|
|
61
|
+
functions without a package keeps its lease unless a new exclusive edge expands its reserved scope. Automatic planning skips a function whose exclusive
|
|
62
|
+
resource frontier exceeds 10,000 keys and pages beyond busy frontiers.
|
|
63
|
+
`--functions ID,ID` selects an exact slice. `--after-rva` advances a bounded planning frontier.
|
|
64
|
+
Functions and graph keyset pages include revisions; restart multi-page reads if it changes.
|
|
65
|
+
|
|
66
|
+
Graph: `{schema:1,kind:"dependency-graph",binarySha256:FULL_SHA,nodes:[],edges:[]}`.
|
|
67
|
+
Node fields: `id,kind,label,confidence,evidence`. Kinds: `global,type,vtable,dispatch-site,
|
|
68
|
+
packet,asset-package,subsystem,source-declaration`. IDs start with `KIND:FULL_SHA:`.
|
|
69
|
+
Edge fields: `id,source,target,kind,confidence,evidence`; endpoints must exist or arrive in
|
|
70
|
+
the same import. Confidence: `observed,reported,hypothesis,rejected`. Keep unresolved dispatch
|
|
71
|
+
and candidate edges explicit. Extra fields retain callsite, opcode/framing, ownership and
|
|
72
|
+
initialization details. Records are immutable by ID; corrections use new evidence IDs and
|
|
73
|
+
explicit supersession fields. `work import-graph` admits at most 5000 nodes/10000 edges.
|
|
74
|
+
|
|
75
|
+
Submission: `{functions:[{id:FUNCTION_ID,source:"method.cpp",contract:"passport.json"}]}`.
|
|
76
|
+
Cover exactly the leased slice. Passport text fields: `signature,abi,inputs,outputs,
|
|
77
|
+
memoryEffects,errors,threading,nondeterminism,recheck`. String arrays: `unknowns,dependencies,
|
|
78
|
+
observations,inferences,rejectedIdeas`. Additional language/tool/branch/allocator/init details
|
|
79
|
+
and raw-evidence hashes are retained. Unknowns keep a function partial even after corpus matches
|
|
80
|
+
and approval. A partial package is not re-offered by `next --kind reconstruct`; it goes to review.
|
|
81
|
+
Only rejected, invalidated or source-less packages return to the reconstruct lane, after new functions.
|
|
82
|
+
No declared unknowns means author-reported reconstructed, never proved 1:1.
|
|
83
|
+
Prefix every unknown with its cause: `[tool]` when better native tooling could resolve it
|
|
84
|
+
(missing analysis, unrecovered callees/parameters, decompiler artifacts) or `[intrinsic]` when it
|
|
85
|
+
needs new evidence (indirect targets, ownership, runtime values). This is a convention, not schema.
|
|
86
|
+
|
|
87
|
+
`work handoff --lease LEASE --materialize NEW-DIR` writes every assigned function's retained
|
|
88
|
+
source/contract and a manifest skeleton (`submission.json` or `review-manifest.json`) with paths
|
|
89
|
+
relative to it; a review skeleton leaves `approved: null` to be decided. Rows of `functions`/`brief`
|
|
90
|
+
carry `reviewState` (`none`, `approved`, `rejected`, `stale`); with unknowns an approved package
|
|
91
|
+
stays `partial`. Passport errors name the field path, e.g. `functions[0].contract.inputs`.
|
|
92
|
+
`noWork` lists `awaitingReconstructionIds` and `reservedBy` (task, status, worker, leaseUntil). A released
|
|
93
|
+
lease keeps its reservation: the task returns to `queued` and its scope stays locked until
|
|
94
|
+
`work claim --task ID` or `work cancel`.
|
|
95
|
+
For rework, `--materialize` also writes `<rva>/previous-review.md` (the retained review note) and
|
|
96
|
+
`<rva>/rework-reason.json` (review decision and reviewer; comparison cases, mismatches and up to five
|
|
97
|
+
mismatching inputs). Read them before changing the source.
|
|
98
|
+
|
|
99
|
+
`work reopen-review --project ID --function FN --source-sha256 SHA --expect-version V
|
|
100
|
+
--reason "new evidence" --request-id NEW-ID` withdraws a current approval without changing the
|
|
101
|
+
source, passport or definition. The exact source, package version and optional `--epoch` guard
|
|
102
|
+
stale intent; any queued/leased reservation blocks reopening. Prior decisions and artifacts stay
|
|
103
|
+
in immutable history and handoff. The current review becomes `stale`, the function becomes
|
|
104
|
+
`partial`, and `next --kind review` can assign it again to a worker other than its author.
|
|
105
|
+
Finite corpus matches cannot close that requirement. A new independent decision or a new
|
|
106
|
+
reconstruction submission clears the marker; rejection and existing unknowns remain blockers.
|
|
107
|
+
Rejected, invalidated and already reopened packages cannot be reopened through this command.
|
|
108
|
+
It uses the ordinary durable request-ID protocol; retry lost replies with identical inputs.
|
|
109
|
+
Explicit reconstruction planning is still available when the passport itself needs correction.
|
|
110
|
+
|
|
111
|
+
Review is a separate `--kind review` assignment and worker. Manifest:
|
|
112
|
+
`{functions:[{id:FUNCTION_ID,sourceSha256:SOURCE_SHA,approved:true,note:"review.md"}]}`.
|
|
113
|
+
The author cannot review their own reconstruction. Approval records that worker's decision.
|
|
114
|
+
|
|
115
|
+
`work compare --layout layout.json` takes original/reconstruction JSON files with `schema:1,binarySha256,function`
|
|
116
|
+
and nonempty `cases:[{input:"canonical input bytes/ID",outcome:{encoding:"hex-bytes-v1",
|
|
117
|
+
bytes:"lowercase even hex",layoutSha256:FULL_SHA}}]`. Reconstruction also binds `sourceSha256`.
|
|
118
|
+
The layout file is captured too; each outcome hash must name those retained bytes. It needs
|
|
119
|
+
`schema:1,kind:"observation-layout",description:"..."` and the exact serialization rules.
|
|
120
|
+
Retention and hash binding do not attest that the schema captures all required effects.
|
|
121
|
+
The layout hash identifies that return/write/error/ordering schema. Do not
|
|
122
|
+
round floating values or pointers through JSON numbers. Input sets match; duplicates fail.
|
|
123
|
+
Comparison is exact over supplied outcomes; **native execution is not attested**. A trusted
|
|
124
|
+
native-vs-reconstruction runner remains a separate future verifier. Compare after submitting
|
|
125
|
+
reconstruction and before reserving review: comparisons reject queued/leased/reclaimed function
|
|
126
|
+
reservations so they cannot invalidate another worker's assigned version or fence.
|
|
127
|
+
An independent rejection remains attached to unchanged source across mismatch/match sequences.
|
|
128
|
+
Address it in a new reconstruction submission; corpus equality cannot resolve review findings.
|
|
129
|
+
|
|
130
|
+
`work certify` fails closed. No supported replayable exhaustive/formal verifier exists.
|
|
131
|
+
All strict accepted counts are zero. Tags, approvals, passed flags and finite matches cannot
|
|
132
|
+
unlock them. Unknown boundaries and unproven capture coverage remain blockers.
|
|
133
|
+
|
|
134
|
+
Generate the HTML on demand with `work dashboard`, or refresh it on selected mutations with
|
|
135
|
+
`--refresh-dashboard`. The open file reloads every 8s; it reflects the last render.
|
|
136
|
+
`--output NEW.html` writes a static snapshot without overwriting files. Revision/time and
|
|
137
|
+
limits are visible: 200 functions,100 tasks,50 events; graph draws at most12 edges/16 nodes.
|
|
138
|
+
No global game-completion percentage is inferred. Keyset commands expose rows beyond the view.
|
|
139
|
+
Preserve the workspace and artifacts together; HTML is not a backup or another writable ledger.
|
|
140
|
+
`work request --request-id ID` retrieves the saved intent/receipt after a lost acknowledgment.
|
|
141
|
+
`work events --project ID --after SEQ` pages the durable event journal. Events link their
|
|
142
|
+
originating administration requests, retaining prior source/passport inputs after later work.
|
|
143
|
+
`work export --project ID --output NEW.jsonl` streams the full project at one consistent
|
|
144
|
+
revision, including functions, dependency records, assignments, events and originating requests.
|
|
145
|
+
Its final record and returned SHA identify the complete export; artifact payloads remain external.
|
|
146
|
+
This is a checkpoint projection, not automatic restore or a whole-profile backup.
|
|
147
|
+
|
|
148
|
+
M0 separates event `revision` from the latest planning barrier `planningRevision`. `next` does not
|
|
149
|
+
need an observed revision. The existing
|
|
150
|
+
`--expect-revision` accepts an observation between that barrier and the current revision.
|
|
151
|
+
Heartbeat/claim/release do not change the barrier; structural changes and competing plans do.
|
|
152
|
+
Storage schema 2 does not mean the proposed multi-artifact knowledge-model V2 is implemented.
|
|
153
|
+
|
|
154
|
+
```text
|
|
155
|
+
insight-cli -p RE work backup --output NEW-DIRECTORY --json
|
|
156
|
+
insight-cli -p RE work verify-backup --directory DIRECTORY --json
|
|
157
|
+
insight-cli -p FRESH work restore --directory DIRECTORY --request-id NEW-RESTORE-ID --json
|
|
158
|
+
insight-cli -p FRESH work brief --project client --json
|
|
159
|
+
insight-cli -p FRESH work next --project client --worker agent-a --request-id NEW-NEXT-ID --json
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
Backup includes all work metadata/history, administration intents/receipts, target bytes and
|
|
163
|
+
referenced payloads. It excludes native sessions, configuration, credentials and tool installs.
|
|
164
|
+
It refuses an existing destination or one inside the source workspace. The manifest is published
|
|
165
|
+
last; preserve failed partial output and use a new destination. Verification reads without changing
|
|
166
|
+
the external backup. Limits: state 2 GiB, record 16 MiB, manifest 32 MiB, 100,000 artifacts, 4 GiB
|
|
167
|
+
per artifact. Snapshot collection holds both local database write locks; payload copying does not.
|
|
168
|
+
|
|
169
|
+
Restore requires empty work storage. Its metadata transaction follows validation and immutable
|
|
170
|
+
payload/target staging; failed staging may leave unreferenced immutable materials. It never replaces
|
|
171
|
+
current work or resumes old locks. Outstanding tasks become cancelled/fenced in a fresh destination
|
|
172
|
+
epoch, so old workers receive `work.taskCancelled`. `--epoch` is optional everywhere; an explicit
|
|
173
|
+
mismatching epoch fails with `work.staleEpoch`. Use new request IDs.
|
|
174
|
+
The restore receipt exposes the total and at most 100 project summaries, with explicit completeness.
|
|
175
|
+
`claim` and `next` embed the epoch in the returned lease token. Historical requests remain inspectable through
|
|
176
|
+
`work request`, but cannot replay as mutations. A restore retry uses its exact backup and saved
|
|
177
|
+
local receipt after a lost ACK. No native context is restored and strict accepted counts stay zero.
|
|
178
|
+
If a caller label has outcomes from several incarnations, `work request` marks it ambiguous and
|
|
179
|
+
returns `histories`; every outcome is retained and none authorizes a new mutation.
|
|
180
|
+
|
|
181
|
+
## Context, migration and timing
|
|
182
|
+
|
|
183
|
+
Start with `work context` to read the CLI version, profile and Work schema. Add
|
|
184
|
+
`--project ID` to see the bound target, binary SHA, epoch and revision. Register missing
|
|
185
|
+
definitions with `import` before assigning them. An older work database requires an Update
|
|
186
|
+
command such as `work migrate`. On an existing schema-2 profile the first writable open
|
|
187
|
+
reconciles under-reserved assignments and creates timing indexes once. Read-only access never migrates it. Standalone
|
|
188
|
+
`verify-backup` reads the supplied backup without opening the active ledger.
|
|
189
|
+
|
|
190
|
+
`work timing --project ID` reports the latest ten reconstruction tasks. Use
|
|
191
|
+
`--tasks ID1,ID2` for a reproducible cohort of up to 100. Queue counts cover the full
|
|
192
|
+
project. Rows pair each function's submitted version with its independent review.
|
|
193
|
+
Intervals are wall-clock milliseconds from recorded server events. Author and reviewer
|
|
194
|
+
durations use the final claim of each completed task; time to decision starts at the
|
|
195
|
+
author's first claim. A missing event yields null. The batch span is complete when
|
|
196
|
+
every selected row has a decision. For selected rework attempts, byFunction reports
|
|
197
|
+
the first verdict and first approval observed in that cohort. Approval is bounded by the
|
|
198
|
+
contract. Both pages and timing read stored metadata; neither rehashes the input binary.
|
|
199
|
+
|
|
200
|
+
On large inventories the automatic planner examines at most twenty 5,000-row pages
|
|
201
|
+
per lane. An empty result can describe that bounded window while later RVAs remain
|
|
202
|
+
eligible. Use `work plan --after-rva 0x... --expect-revision ...` to continue.
|
|
203
|
+
Timing uses the Work owner's wall clock; clock adjustments can affect intervals.
|
|
@@ -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.
|
|
6
|
+
# Insight 7-Zip 0.8.1
|
|
7
7
|
|
|
8
8
|
If local help/status reports AppData or IPC access denied, retry that **read-only probe**
|
|
9
9
|
with the agent host's normal permission escalation, then use that route for later authorized
|
|
@@ -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.
|
|
6
|
+
# Insight strace 0.8.1
|
|
7
7
|
|
|
8
8
|
If local help/status reports AppData or IPC access denied, retry that **read-only probe**
|
|
9
9
|
with the agent host's normal permission escalation, then use that route for later authorized
|