Skip to content

Hydralysis 0.8.0

Latest

Choose a tag to compare

@github-actions github-actions released this 02 Nov 21:57

Released 2026-11-02. This release (0.8.0) pins Hydra Engine 12.3-hydra.6 (protocol 3), released 2026-11-02; the pin statements, version strings
and archive hashes were written by tools/bump_hydra.py from the published release zips.

Test runs for 0.8.0: unit plus engine-gated suite 2,020 of 2,020 against a locally assembled 12.3-hydra.6 install (the final2 install, not
the final2b install the engine's last gates ran on, and not the published zip): 0 failed alone, 2 failed only under load and passed alone
(test_trace_e2e.M1 failure-mode tests); two earlier runs of the same suite on the same install had 1 failed alone and 0 failed alone with
2 load-only failures, and the unit run hyd-unit.log had 3 failed alone (test_durable.WriteGate, test_trace_extras.Watchdog,
test_views.Processes); fixes followed (store-load cache, phantom budget gap, decompile job write gate, test readiness) and the suite was not
re-run on the final commit. bump_hydra.py was not run because the release zips do not exist yet. Details in .github/local-test-record.json
and the engine's docs/release-notes-12.3-hydra.6.md.

Not met or not run: the bare-loop trace overhead with every hit kept; aggregate counters (not built); hosted CI; reproduction of the
issue-6 overflow on the reporter's real binary; the soak on the final engine install. See docs/trace-overhead.md.

Semantic trace (for 0.8.0, which pins engine 12.3-hydra.6; the version is bumped at release with tools/bump_hydra.py).

  • New tool trace (the 21st; catalog epoch 3, schema budget 8,192 -> 9,216 bytes): start, stop, status, query, diff, explain, mark,
    export, check, import and resymbolize. Routed to the engine lane; export, import and resymbolize ride the long lane. Replies are
    bounded and carry counts, event ids, the revision and the coverage gaps. Offline: segment verify and JSONL import in Python,
    rebuild and export through the engine install's hydra-trace.exe.
  • Evidence: source kind from_trace (session, event ids, revision); bundles gain traces/<session>.json.
    Trace limitation codes join the evidence catalog (underscored: producer_lost, optional_hook_refused, ...).
  • hydralysis.trace_canon: Python twin of the TRACE-1 canonical JSON, record hash and segment framing, pinned to vectors.
  • Vendored TRACE-1 schemas (trace_schema/) with a validator and a test that they equal the engine's.
  • hydralysis.profiles: TOML profile loader, validator, build-bound hook verification, query modules; docs/trace-profiles.md.
  • trace_hashes (FNV, CRC32, Murmur3, profile codecs, dictionary, interpretation revisions), trace_bindings (script/native
    tables), trace_corpus_diff (corpus diff and invalidation report), trace_reports (write survival, hook bypass).
  • Runtime memory policy (GitHub issue #7): write and watch stay fixture-only by default (existing behaviour and tests unchanged). New owner-authorized mode: the local setting runtime_authorized_targets lists an exact build SHA-256 with its actions, a maximum size and bounded address ranges (module+RVA or absolute); the compare-and-swap write, undo log, executable-range refusal and disarm readback are unchanged, and a watch also needs the build's own conformance stamp (tools/watch_conformance.py --bind-build <exe> writes watch-stamps/authorized/<sha256>.json). No authorization is a coded refusal ([not_authorized], [outside_authorized_range], [conformance_stamp_missing], ...); the fallback for an unverified build is documented as the static writes action plus a live probe. See docs/runtime-memory-policy.md; config.example.json lists both settings.
  • ghidra-query / ghidra_query: decompile option max_result_mb (CLI --max-result-mb, MCP argument or options) bounds the engine's whole reply, unlike max_characters, which only clips the C text; --max-characters is now a CLI flag too, and --help states the difference.
  • Partial decompile results: the engine fields fragments ([{start,end,class: code|data|unknown}]), truncated, bytes_emitted and reason are carried through unchanged and summarised (decompile); a decompile the engine stopped on purpose is a partial result, not a failure (query.accepted, export rows). New hydralysis.decompile_result turns them into evidence coverage, and two limitation codes join the evidence catalog: decompile_truncated (bounds coverage) and non_code_fragments. Tested against fake engine replies only; the engine side is on the engine's trace/issues-eng.
  • Decompile end to end through Hydralysis (hydra-engine issues 6 and 7, engine PROTOCOL-3 8.21). When the RusticQuery script cannot answer ("No pcode could be generated", a timeout, a buffer overflow) ghidra_query decompile retries with the engine's own decompile command, labelled fallback (via, reason, engine_s, timeout_s, job), so partial C and fragments reach the caller. That retry can take minutes, so it runs as a decompile job (decompile-<id>, hydralysis.decompile_job): the call returns the job at once, job with the id reports progress and then the result, and the CLI follows it itself (progress on stderr, --wait SECONDS, default 3600, 0 = print the job and return). Ranges now match the engine: max_result_mb 1..1024 (omitted = the engine's adaptive budget), new max_result_kb 1..1048576 (wins over MB; CLI --max-result-kb) and offset (characters; CLI --offset) for paging. Replies carry partial, cut, budget, offset and next_offset (summarised in decompile). Evidence: decompile_truncated is a cut by a cap the caller named, new decompile_budget_limited a cut by the engine's auto budget, new decompile_paged a page with next_offset. MCP catalog unchanged (options carry the new fields). Real target (Cyberpunk2077.exe 2.5): see docs/decompile-e2e.md.
  • Docs: the README links to the engine README's "System requirements" (spec 14.13): minimum, reference, recommended and optional-capability requirements with the recorded i7-13700KF runs, the support matrix and the resource-constrained behaviour (refused or explicitly partial, never different evidence). The 16-agent and multi-project measurements behind the trace daemon-impact gate are in the engine's docs/release-notes-12.3-hydra.6.md (four of the 16 agents there are Hydralysis agents).