Formerly RusticRE. The GitHub repository has been renamed; links to the old name redirect.
Twenty-one reverse-engineering tools for programs you own. One CLI, hydralysis, one small MCP server and a Python API over the same operations. Hydra Engine and an optional runtime engine run behind it; REA and GhidraMCP are not dependencies. Hydra Engine is a fork of Ghidra (12.3 DEV, Apache-2.0, with a headless session daemon), so Hydralysis is built on Ghidra's analysis and decompiler, not independent of them. It uses no stock Ghidra and needs none (see Third-party sources).
Register an analysed project in place, or give Hydralysis an executable and explicitly prepare its analysis once. Every later question goes to one shared engine that keeps the program open: a warm decompile takes about a millisecond for a tiny function and tens of milliseconds for a large one (size-dependent; see Measured, not promised), and several CLI calls, MCP sessions and scripts share it (tested with up to 4 clients). Corrections you make (types, names, prototypes) are cited overlays in a working copy; the analysed project itself is never written, and nothing yet commits those corrections back to it (see Correct the analysis).
Version 0.5.0.dev0 renames the project and also makes behaviour changes that are not source compatible: expect_revision is now required on every type_edit and revert, two stock-Ghidra settings are no longer honoured, decompiled C is produced with the program's own decompiler options (it changes for about one function in six), and some answers gain fields (see the last rows of the table). The twenty tools of that release keep their names (0.8.0 adds a twenty-first, trace). The old names from the rename still work, and each one that is actually used is announced once on stderr and listed under deprecated by backend inspect.
| Was | Now | Still honoured |
|---|---|---|
Python package rusticre, project rusticre |
hydralysis |
no: update imports (from hydralysis.client import Client) |
Command rusticre |
hydralysis |
yes, the rusticre command is installed beside it |
RUSTICRE_* environment variables |
HYDRALYSIS_* (ROOT, CONFIG, EVIDENCE, EXE, HYDRA_DIR, HARNESS, FORBIDDEN_DRIVES) |
yes; a HYDRALYSIS_* value wins |
rusticre.local.json |
hydralysis.local.json |
yes, if the new file is absent |
Data root %LOCALAPPDATA%\RusticRE (and the macOS and Linux equivalents) |
Hydralysis |
yes: an existing RusticRE root is used where it is when no Hydralysis root exists. Nothing is moved or copied, so there is one root and one daemon. |
MCP server name rusticre, tool names mcp__rusticre__* in Claude Code |
server hydralysis, tool names mcp__hydralysis__* |
no: re-register the server under the new name, and update any allow-lists or prompts that name the old tool prefix |
type_edit and revert without expect_revision on the shared view (it was only required on named views) |
expect_revision is required on every view; omitting it fails with expect_revision_required, which reports current_revision/view_revision to retry with |
no (breaking): read view_revision from status or the last answer and pass it as expect_revision. A stale revision is rebased when no later edit touched the same subject, otherwise it is rejected with a conflict |
Status, edit and revert answers; backend inspect |
gain view_revision and latest_editor (status also overlays.latest_editor); backend inspect gains ignored and, when non-empty, deprecated |
additive: existing fields are unchanged, but strict result parsers must accept the new keys |
decompile, dossier, pcode, trace and every other query that decompiles ran on the decompiler's built-in default options (the script opened DecompInterface without setOptions) |
They run on the program's own decompiler options (DecompileOptions.grabFromProgram, set once, before the program is opened), as a headless decompile does. The visible differences: constants and strings in read-only memory are shown as values (* 1.5 - 0.25 instead of * DAT_004161c4 - DAT_004161c0) instead of DAT_/_DAT_ names, array locals are shown whole, and more functions get a __thiscall or __fastcall signature. Measured on KotOR 1 (8,616 functions): 1,363 answers changed (15.8%), 0 stopped decompiling, 318 more __thiscall and 132 more __fastcall signatures; the new answers are identical on all 8,616 to a decompile run with the program's own options (see the golden harness) |
deliberate and not switchable: an agent that cached or diffed C text from 0.4.x will see it change for those functions. Overlay and type answers are unaffected |
ghidra_dir in the config file and the GHIDRA_INSTALL_DIR environment variable, used to find an engine |
Hydra Engine only (hydra_dir, HYDRALYSIS_HYDRA_DIR, or the installed engine); a stock Ghidra is never probed or used |
no: both settings are ignored and listed under ignored by backend inspect; point hydra_dir at a Hydra Engine install instead |
Target registry, working-copy state.json and overlay job records were written in place and read back as-is |
Written atomically (temp file, flush, replace) and sealed with a SHA-256 over their content; a zero-length, torn or mis-sealed file is read from its .bak instead, and when no good copy exists the read fails with store_corrupt rather than starting empty. Append-only logs carry a CRC per line: a torn last line is ignored, corruption in the middle is refused as lineage_corrupt |
yes, automatically: files written by 0.4.x load unchanged and become the .bak of the first sealed write. Do not hand-edit sealed files: an edit breaks the seal and the previous .bak is read instead |
| A request to the engine whose reply was lost to a dropped connection was sent once more, whatever it was | Only idempotent requests (reads, opens, status, hello, ghidra_query read actions) are sent again on a new connection. After a lost reply to anything that changes state (overlay apply, save, fork, edit, rename, comment, import) the call fails with closed and details.ambiguous, because the change may or may not have been applied: check with status before repeating it. Engine errors also carry retry_after_ms, next, queue and holder_info when the engine supplies them |
no (behaviour change): do not blindly retry an ambiguous failure |
| One MCP worker pool served every tool | Tools that talk to the engine (ghidra_run, ghidra_query, backend, prepare, job, runtime) have their own pool of 4, so blocked engine calls no longer delay fingerprint, disasm and the other PE-only tools. A busy answer names the lane and carries retryAfterMs |
yes, automatically |
| The tool list had no version | Catalog epoch 2 (address arguments say again that ambiguous unprefixed addresses are refused): backend gains action=doctor (it answers not_available until that feature ships) and action=backups (shipped in 0.5.0: options.op is list, verify or remove), and backend, ghidra_run and job gain a free-form options object (ghidra_run options are validated, never silently ignored). backend status, backend help and backend inspect, and the MCP initialize result (_meta["hydralysis/catalog"]), report catalog {epoch, hash} |
additive. MCP clients cache the tool list, so restart the harness once to see the new schema |
- The
savedkey ofghidra_query action=statusand the settingoverlay_save_debounce_sare removed, and the background saver process is gone: a working copy is no longer saved after edits pause, and unsaved changes are replayed from the store. - The per-target
.sync.lockis replaced by a per-view lock; a wait that runs out after 30 s answers a structuredbusywithretryAfterMs. generationKeepandviewIdleDeleteSinconfig.example.jsonare reserved: the retention spec names them, but no code reads them yet. Generations and views are never removed automatically;backend action=backups options.op=removeremoves one only withconfirm:true, and it refuses generation 0, the head, every generation the revert chain can reach and the base of a live view.- Views of one master share one base (built once per master revision, generation and engine release), and each sync uses a connection of its own, so several views built at once in one process no longer fail with
no_project. - A working copy's folder is checked (header magic of its newest database version) before it is opened, and a damaged one is moved aside and rebuilt from the store.
- The engine daemon this client launches gets
maxLongandmaxQuickfrom the newexpected_agentssetting (default 16); a daemon that is already running keeps the limits it started with. ghidra_query action=type_edit options.kind=commitwrites the pending records of a view into a new generation of the analysed project: a copy in the Hydralysis root, verified before it is published, with a re-hashed backup of the generation it started from, and the original project is not written.commit_revertreturns to the generation before. A commit asks forconfirm_one_way_upgradebecause this client cannot tell whether the new generation can still be opened by older engines. These are client features on the hydra.2 and hydra.3 engines, not engine guarantees; the claims about them are the ones the tests intests/test_commit.py,tests/test_backups.pyandtests/test_lineage.pyexercise.backend action=backupslists, verifies and (as a dry run unlessconfirm:true) removes backups and generations; a block clone protects against a bad commit, not against loss of the volume, and the listing counts the independent copies.
The engine daemon's instance id and the client attribution prefix stay rusticre for this release (hydra.INSTANCE), so a daemon a RusticRE install left running is reused instead of a second one being started. The Hydra program option and save comments written into existing projects are unchanged too.
Install this package in a virtual environment on your development drive:
uv venv .venv
.venv/Scripts/python.exe -m pip install -e .
.venv/Scripts/hydralysis.exe tools
Select a data directory with no dot-prefixed path components using HYDRALYSIS_ROOT, or set root in hydralysis.local.json in the per-user Hydralysis folder (or the file HYDRALYSIS_CONFIG names). The working directory is never searched for a configuration, so every harness launch gets the same root; python -m hydralysis.environment init writes that file, describe and doctor report the root, configuration, engine release and file system without starting a JVM, and the same one-line banner is on stderr when the MCP server starts. The default is per user: %LOCALAPPDATA%\Hydralysis on Windows, ~/Library/Application Support/Hydralysis on macOS, $XDG_DATA_HOME/hydralysis (when dot-free) or ~/hydralysis on Linux. Any drive is accepted; a machine that keeps data off some drives says so with forbidden_drives in the config or HYDRALYSIS_FORBIDDEN_DRIVES=C:,D:.
hydralysis backend inspect
hydralysis backend install
hydralysis job <setup-id>
backend install is a background job that installs the pinned Hydra release (12.3-hydra.6: the engine and its client) privately under the root, verifying each archive's full SHA-256 before extraction, and finds or installs a full JDK. It needs no administrator rights and changes no machine settings. Existing installs are used when hydra_dir, hydra_client and java_home name them.
An analysed project is adopted where it is, with no copy and no import:
hydralysis prepare --adopt F:/re/MyGame --exe F:/games/MyGame/MyGame.exe --target mygame
hydralysis prepare --adopt F:/re/MyGame/MyGame.gpr --sha256 <full build hash> --program MyGame.exe --target mygame
The path may be the .gpr, its folder or a parent. The program's stored executable hash and analysed flag must match the build before it is registered. A project saved by an older Ghidra opens with its upgrade done in memory only; the files on disk are not touched, and other tools can keep reading them.
A fresh executable is analysed once, as a job:
hydralysis prepare --exe F:/binaries/sample.exe --target sample --plan
hydralysis prepare --exe F:/binaries/sample.exe --target sample
hydralysis job <prepare-id>
hydralysis job <prepare-id> --action cancel
--plan performs no import, download or job creation. prepare reports stages, logs, failure, timeout and cancellation; identical builds reuse one result. Known wrapper sections such as .bind and UPX block preparation with needs_unwrapped_artifact. Hydralysis does not launch or unpack the program for you. Entropy alone is a warning, not a packing verdict.
hydralysis inspect --exe F:/binaries/sample.exe rva:0x1000
hydralysis ghidra-query --target sample rva:0x1000
hydralysis ghidra-query --target sample va:0x140001000 --action dossier
hydralysis ghidra-query --target sample --action functions --contains Render --limit 20
hydralysis ghidra-query --target sample --action functions --cursor <next_cursor>
hydralysis ghidra-query --target sample --action trace 0x140001000 --options-file trace.json
hydralysis backend help
PE tools accept rva: or va: prefixes; ambiguous bare addresses are refused. Saved-analysis queries accept the same prefixes and interpret bare addresses as VAs. Their replies include the analysed image base and full executable hash. Cheap byte-based callers/xrefs (no engine) remain candidates; engine queries use the decoded listing and references.
Query actions:
- Reading: decompilation, function ranges, paged functions/xrefs/types, type layouts, recovered variables, dossiers, basic blocks, high p-code, decoded-listing scans.
- Address maps: import cited, build-specific name/hash-to-RVA maps and resolve them through the same address tools. See address maps.
- Value flow:
tracefollows a p-code value backward or forward. It goes through memory: stack slots, stores to a field, out-parameters. It also goes into callers and callees, cheapest path first.briefreturns only the constants, stops and memory edges it reached. Every step cites its instruction and operation. - Virtual calls:
vtablesnames the tables and slot that hold a function.vcallslists the call sites of a slot offset and can verify each receiver on p-code. - Field writes:
writeslists the direct stores to a field offset and says what it does not cover. - Missed code:
orphanspages through decoded instructions that no function contains, with what refers to each run's start. Cite one in afunction_createcorrection. - Two builds:
diffproposes function matches and hook-table candidates as a job. Review correspondence independently before using the destination bytes in a hook table; see cross-build transfer.
Traces report unknown aliasing, indirect calls and runtime reachability; they do not prove source types or feasible paths.
Function/xref/type pages and scans disclose truncation and continuation. Default decompiler output is capped at 32,000 characters. Each query runs contained: its changes are rolled back and never saved, but while it runs, other clients can see them. RusticQuery's read actions do not modify the program. Queries have a 30-second default deadline, capped at 300. The engine stops after hydra_idle_s idle seconds (default two hours) and keeps programs warm for hydra_keep_warm_s.
type_edit records cited structures, prototypes, local types, function names, data labels, comments, data definitions and exact-byte-checked function definitions. Batches take up to 200 edits, including a JSON file, and roll back as a unit. import_types loads a whole type corpus (JSONL, see type corpus) as one job and one revertible step. expect_revision is mandatory on every edit and revert (see Concurrency policy below).
Edits are bound to the build's hash and applied to a working copy forked from the analysed project. Every agent edits in a view of its own. The view of a call is (lineage, agent id): the agent id is options.as when the call carries it, otherwise the process default <MCP client name>@<boot id>, where the boot id is 16 random hex digits generated when the server process starts (set HYDRALYSIS_AGENT_ID to keep one id across restarts). An agent without a view reads the sealed master, and its first edit creates its view (view_revision 0); options.scope:"master" reads the master even when the agent has a view, and options.view:"shared" names the collaboration view that anyone can use explicitly. Callers that present the same agent id share one view, including every sub-agent of one MCP server process that passes no as: they see each other's unpublished edits, and expect_revision with the subject-aware rebase keeps one from overwriting the other. That is conflict control, not isolation; a harness that starts editing sub-agents must pass a distinct options.as for each. Isolation holds between distinct agent ids and between distinct processes, and is shown by the tests, not promised beyond them. A restarted server has a new default id; the orphaned view of the old one is listed as adoptable in its first reply and re-attached with options.as. A one-shot hydralysis command is a new agent: every invocation is a new process with a new default id cli@<boot id>, so an edit made by one command is not read by the next one (it reads the master and lists the earlier view as adoptable). Scripts and people who edit through the CLI or hydralysis call must set HYDRALYSIS_AGENT_ID or pass options.as on every call to keep one view across invocations. ghidra_query action=status options.show=views lists the views, and an idle view is closed (its records stay in the store and a later call replays them, answering once with view_rebuilt). Every edit needs the revision reported by status (view_revision). Views isolate annotations, not access. The working copy is a cache and nothing saves it: an edit is written to the store before it is acknowledged, and a change the engine lost with a restart is replayed from the store at the next query. The store is flushed and sealed; no power-loss test has been run, and corrections are not committed back to the analysed project. revert removes overlays in one step by rebuilding the working copy.
Durability. Corrections persist in the overlay store under the data root (bound to the build's hash, written atomically, kept across restarts) and are replayed into the working copy. They are not committed into the analysed project, and there is no portable export/import bundle for them yet; both are planned work, not something to rely on today.
Concurrency policy. Writers are serialized, and no corruption was seen in the tests listed under Development; that is a test result, not a guarantee. Hydralysis takes a per-view lock (waiting at most 30 s, then answering a structured busy) and the engine holds the program's exclusive lock while one edit applies, so simultaneous edits are applied one at a time. Serialization alone would let the last writer win, so detection is mandatory:
- Shared view:
expect_revisionis mandatory on everytype_editandrevert. Leaving it out is an error that names the current revision, so the agent can retry.view_revisionis in everystatus, edit and revert answer. - Stale revisions are subject-aware. The overlay store keeps a journal of what each revision touched (an address, a struct path, function structure; a type import touches everything). If no edit after your revision touched your edit's subject, it is rebased onto the current revision and the answer says
rebased: truewithsubjects_changed_since. Otherwise it is a conflict withcurrent_revision,latest_editor(who and when),subjects_changed_sinceandoverlapping. Subjects are addresses and type paths; a dependency between them (anapplyof a struct someone else redefined) is not tracked. A store written before the journal existed, or a journal older than its 1024 newest entries, cannot prove independence and conflicts. - An edit that races a publish is the client's to rebase. When another view publishes a generation, a view that holds records on the older one is stale. Before an edit Hydralysis rebases such a view once by itself, and only when that rebase is clean (no record conflicts with the head); otherwise, or when a publish lands between that rebase and the edit, the edit is refused with
stale_view(stale: "master_generation_changed"), naming the generations and the views that moved the head (editors). Nothing was recorded. This is the contract: the client rebases, withghidra_query action=type_edit options.kind=rebaseand theexpect_revisiongiven in the refusal'snext(resolving anyconflictsit lists withtake_mineorkeep), and then sends its edit again with the revision the rebase answers. Hydralysis never retries an agent's edit on its own. - A stale view keeps reading its own base generation. Reads of a view behind the head are never refused with
stale_viewand never answered from the head: the view's working copy (rebuilt when it is lost, evicted or out of step) is always built from the generation the view is based on plus its own records, and a view without pending records reads that generation. Only a rebase moves a view to a newer generation. If the base generation's folder is gone (removed withbackups remove, or no longer the sealed folder its log line names), the read is refused withbase_unavailable, whosenextis the rebase call. - Named views: per-agent isolation.
options.viewgives an agent its own annotations and revision. Views are not merged back into the shared view: per-agent views by default is deferred until publish/merge exists, so today agents that must share results use the shared view with the policy above. - Cost is attributable. A work-copy build reports
last_sync.phases_ms(master_open,fork,copy(the engine's clone or copy time, part offork),base_upgrade,open,replay,total; whole milliseconds, field names stable), so a slow named-view first edit can be traced to a phase. The shared base is keyed by master revision and engine release (hydraVersionandghidraVersionfromhello); the engine does not report a database format number, so the release stands in for it, and a base built by an unrecorded release is rebuilt once.
Limits today.
- Native commands stay in the quick lane while imports and analyses run in the long lane. Questions asked through Hydralysis are scripts and share the long lane; a full long lane delays them (measured up to about 8 s). Readers of the program being analysed wait for its lock.
- Each program and project has its own lock. They share the daemon's lane slots and import gate, so enough long work anywhere can delay a save or fork elsewhere.
- A disconnected client's requests are cancelled and its uncommitted changes rolled back when its running request ends. A request blocked on a lock, or a script that ignores cancel, keeps its place until the lock frees or the script ends.
- An import waits in the import queue; at the front it still needs a long slot and fails
busyafterwait(10 s default). cancelstops requests waiting for a slot and cooperative scripts. On hydra.2/3 a request waiting for a program lock stays until itswaitruns out; on hydra.4canceland atimeoutalso end a request-bound lock wait, but not the overlay lifecycle waits (open, rebuild, drop, promote of an overlay), which are untimed.
Queries run as engine requests that share the engine's long-job slots with imports and exports, so heavy parallel use is something to measure, not assume. The protocol and backend help describe the options.
ghidra-query --target sample --action export --options-file export.json writes a durable JSONL artifact. Use job <export-id> for status/cancel and {"resume":"<export-id>"} to continue the same selection. Resume refuses changed builds, source analysis, implementation or overlays. See export options and limits.
There is no GUI. Hydra Engine is headless only; projects it writes cannot be opened by Ghidra 12.2 or 12.1.4. Other processes can read a project directory the engine is not using; record corrections through type_edit.
Numbers here come from the owner's KotOR baseline and depend on the function and the machine; treat them as examples, not guarantees. The baseline corpus is KotOR 1: function_counts total 8,966, internal 8,616, thunks 60. A warm decompile measured 0.7-2.1 ms for a 1-byte function and 35-45 ms for a 6.7 KB function: native decompile about 1 to 45 ms by function size; through Hydralysis about 25 ms on a small program and about 60 ms on KotOR (single runs). The tool counts in the tool mapping are sourced there, with what is still unverified marked.
System requirements. What the engine and the semantic trace need, with the reference machine (Intel Core i7-13700KF) and the recorded runs behind each row, is in the engine README: System requirements. It lists the minimum, reference, recommended and optional-capability requirements (capture needs an elevated process for the kernel ETW consumer, Frida for in-process hooks), the support matrix, and how a smaller machine is refused or answered with an explicit partial result rather than different evidence.
hydralysis prologue --exe F:/binaries/sample.exe rva:0x1000 --expect "48895C2408"
hydralysis prologue --exe F:/binaries/sample.exe --checks-file hooks.json
hydralysis backend install --component runtime
hydralysis backend help --component runtime
hydralysis runtime attach --options-file attach.json
A prologue table opens one PE and reports all rows; any mismatch fails the CLI/MCP result. A row may list accepted alternatives. Compact, spaced, comma-separated and escaped hexadecimal forms and ?? wildcards are accepted. Legacy offset/prologue/names rows require explicit --offset-kind rva|va unless already prefixed.
The optional pinned Frida backend supports verified attach/spawn (with working directory and environment), modules/threads and bounded reads. A read can be decoded with a layout or one of the target's analysed types. It also supports observations and cooperative breakpoints with registers, arguments, return values and backtraces.
Probes:
capturecopies and decodes arguments and the memory they point to. On 32-bit targetsconvention(thiscall,fastcall) maps the arguments, and a capture can name a register instead (ecx, orxmm0..xmm15for x64 float arguments).samplesummarizes a per-frame call per time window instead of sending one event per call.patchescompares live code with the file and decodes a detour another tool installed.accept_patchprobes past it.
Hooks require the module's full hash and matching exact live bytes before installation. Wildcards and unrestricted injected scripts cannot bypass that gate. The client that spawned or attached owns the session; others may look but not drive it, and one executable has one driving session. runtime_lock_check names a project's own lock command, which is asked before a spawn or attach. Continue, unload and detach release instrumentation; abandoned breakpoint pauses have a watchdog. This backend does not supply CPU instruction stepping. runtime write (compare-and-swap with undo) and runtime watch (hardware data watchpoints with a verified disarm) are fixture-only by default; an owner can authorize one named build with a declared, bounded address range in the runtime_authorized_targets setting, and a watch then also needs that build's conformance stamp (tools/watch_conformance.py --bind-build). A build with no entry is refused with a coded reason; its supported path is the static writes action plus a live store probe. See docs/runtime-memory-policy.md.
| MCP tools | Purpose |
|---|---|
fingerprint, imports |
Identity, packing triage and tables (imports with their IAT slots); fingerprint `detail=sections |
inspect, disasm, function, bytes, strings, xrefs, callers, callees |
Cheap PE evidence |
sigscan, prologue |
Locate candidates and verify bytes/tables |
evidence_add, evidence_list |
Claims with mandatory sources, attributed to their client, grouped by subsystem, superseded rather than deleted |
backend, prepare, job |
Setup, adoption, explicit analysis once, progress and recovery |
ghidra_query, ghidra_run |
Saved analysis, overlays, diffs, exports and deliberate scripts |
runtime |
Controlled local runtime sessions |
The CLI retains sections, exports, ghidra-scripts and ghidra-jobs aliases. They are not advertised as additional MCP tools. The catalog has regression budgets for tool count, total JSON bytes and individual schemas: 21 tools in about 9 KB of schema (9,049 bytes as the catalog test counts them; the limit is 9,216). tests/test_claims.py checks these numbers against the catalog. Client setup explains registration, the terminal path and the Python API (hydralysis.client, hydralysis call <tool> --args). No client configuration or other MCP registration is changed automatically.
ghidra-run is an escape hatch for deliberate trusted local scripts. The script is staged into Hydralysis's script folder and runs contained on the warm engine: its changes are rolled back and never saved, but while it runs, other clients can see them. Scripts that use the headless API run unchanged; extensions that need an interactive window do not apply. Engine containment does not stop a script from writing other files. Use the query actions for routine work.
Verification on fixtures records what each capability is checked against and the results; the golden harness is the decompiler-diff gate run at every engine release.
Hydralysis covers native PE inspection and saved analysis. It is not a replacement for every upstream Android/browser/firmware feature. Runtime stepping, watchpoints on builds the owner has not authorized (see docs/runtime-memory-policy.md), graphics debugging, automatic unpacking and universal type recovery remain outside the implemented contract. Games that need protocol or engine work still require their own implementations; those do not become game-specific server tools. No finite test corpus establishes that a remaster or multiplayer framework can be completed automatically.
Limits of this client with the pinned engine (PROTOCOL-3.md 6.2). The engine's module README lists every limit of 6.2 (Limits of 12.3-hydra.5 and protocol 3, L1 to L19 and R6.1 to R6.11). The ones this client owns or sees first:
- History is capped. A store with 4096 pending records, or 20 MiB of them, takes no further edit until some are committed (a subset commit works) or exported as a bundle; pending records are not compacted and nothing is dropped automatically.
- An append log has no rotation yet.
CURRENT.logandbackups.logare read in full by the lineage open,verifyand the doctor (linear in their size, one line per commit or backup). - A stalled call on hydra.2/3 is abandoned, not ended. The deadline sends
cancel, then abandons the worker thread and its connection; the engine keeps the request, its slot and any lock until it ends by itself. At most 8 abandoned user connections per process are tolerated (the supervisor probe has its own budget of 3). hydra.4 releases a dead client aftercleanupGraceS + abandonWaitS. - A leave can stall the other readers of a program. Hydralysis avoids its own leaves while its own reads run (the leave gate), but it cannot avoid another process's leave or a
close_program. On hydra.2/3 the stall reaches every reader of that program; on hydra.4 a plain reader's leave takes no exclusive lock, while an owner's or writer's leave of an open program still queues it, bounded. The stall is a visiblebusy, not a hang. - The
lane:"quick"hint is trust-based. RusticQuery polls for cancellation and is hash-pinned; a user script that claimsquickis not policed, and one that never polls keeps its quick slot past its timeout. - Bulk edits have no per-subject
before(import_types,import_archive); drift is detected by the input hash. A struct and a prototype that uses it are different subjects, and a subset commit (only) can ship an edit without the pending struct it uses: subset commits have no semantic dependency tracking. Revision.ofis metadata for large files (size and modification time above 1 MiB): it shows that the saved state is the same, not that the bytes are intact; integrity is the manifest hash.- A backup verifies the bytes it reads back through the OS cache after a flush, not the media. Re-hash with
backend --action backups(verify) and keep an independent copy. - The upgrade gate and the backup check are guards against accidents, not a security boundary: a local process with the engine's rights can forge a manifest.
privatescript isolation reads the stored file, not unsaved edits; insharedisolationattemptedChangesis program-wide. An ETA is a rough estimate (nullwithout history, or when a long job dominates the lane).- Platform. Windows x64 and JDK 25 only; no Linux or macOS claim is made. Copy-on-write is ReFS only (a full copy on NTFS), and nothing about ReFS is tested: NTFS is the release file system. A clone is not protection against the loss of the volume. There is no power-cut test: durability rests on flags, process kills and torn-file tests.
- Numbers. The measurements behind the design are single runs or a handful on one machine under foreign load, on KotOR only; they do not transfer to a much larger program, and every timing constant is unmeasured on the target until the release gate records it.
Tool counts: Hydralysis registers 21 tools (counted from tool_table()). The two figures it is compared with, 30 GhidraMCP tools and 207 for the reverse-engineer-anything skill, are third-party figures that were not reproduced; see the tool mapping and the dated table. One MCP process sizes its lanes from the CPUs the OS grants it (its affinity, not the machine's count): the engine lane accepts 2 calls per CPU, at least 8 and at most 24 outstanding calls, each on its own thread; ghidra_run and prepare have their own long lane of 8, so they never hold up queries; together the two engine lanes stay within the engine's 32 parallel requests per connection. The offline lane runs 4 to 16 workers. The next concurrent call on a full lane from one client gets Server busy with retryAfterMs=2000, by design: retry it, or wait for a result. On hydra.2/3 at most 4 engine calls run at once (the pool's connections); the rest wait for a connection within their deadline. A notifications/cancelled stops a call that is waiting on the engine in this process (ghidra_run, ghidra_query, job and backend engine calls): cancel is sent, and after a 5 s grace the call returns and frees its slot. prepare (its import runs in a subprocess), offline tools and runtime requests run to their end and hold their slot until then. Either way, as MCP says, the cancelled request gets no reply.
python tools/run_tests.py --root D:/hydralysis-data/test-work
git diff --check
tools/run_tests.py is the quick way to run the unit suite: it splits the tests into tasks, runs them on all cores and prints one result (about half a minute on 24 threads with the root on an NVMe disk; the same suite takes about 25 minutes serially with the root on a hard disk, because the durable-write tests fsync). A test that fails under that load is run again alone; it fails the run only if it fails alone too (--strict fails on both). python -m unittest discover -s tests still works and is what CI runs. --record rewrites tests/timings.json, which only orders the tasks. Put the root on a fast local disk.
Unit tests run without launching the engine or games; they work under HYDRALYSIS_TEST_ROOT (default test-work/). CI runs them on Windows. tests/test_engine_integration.py runs the real engine when HYDRALYSIS_INTEGRATION_ENGINE and HYDRALYSIS_INTEGRATION_CLIENT name a Hydra install and its ghidra_session.py (HYDRALYSIS_INTEGRATION_JAVA a JDK). It uses its own data root and daemon. Verification on fixtures builds small x64 and x86 programs with known answers and checks each capability against them (tests/fixtures/verify_fixtures.py). There is no configured formatter or lint command. Only pefile and capstone are mandatory Python dependencies; engines are discovered or explicitly installed separately.