Skip to content

Latest commit

 

History

History
142 lines (118 loc) · 12.2 KB

VALIDATION.md

File metadata and controls

142 lines (118 loc) · 12.2 KB

Validation gates

Run before every release; CI runs the same on both Windows PowerShell 5.1 and PowerShell 7.

Gate Command
Catalog, encyclopedia, delivery, kit helpers python tests/test_catalog.py, test_encyclopedia.py, test_delivery.py (needs committed VERSION), test_kit_tools.py
Ghidra health/MCP probes python tests/test_ghidra_mcp_up.py
AOB masking, PE bounds, overlap and section fixtures python tests/test_aob_gen.py (Capstone test dependency)
PE parser malformed/valid fixtures python tests/test_pe_recon.py
Target triage: formats, engines, routing, --run boundary python tests/test_triage.py
Companion parser fixtures (live checker is scheduled/manual) python tests/test_companions.py
Upstream currency report fixtures python tests/test_upstreams.py
Optional adapters: web API pin/skill, FModel MCP route python tests/test_web_api.py, python tests/test_unreal_mcp.py
Installer regressions (offline) tests/test_installer.ps1
Isolation, entrypoint, .NET, standalone tests/test_isolation.ps1, test_entrypoint.ps1, test_dotnet_prerequisite.ps1, test_standalone.ps1
Maintenance ownership, retention and scheduled previews tests/test_maintain.ps1, tests/test_register_maintenance.ps1
Windows release delivery python tests/test_delivery.py with PSHOST set to powershell.exe or pwsh
Runtime smoke (installed kit) tests/test_tool_smoke.ps1
Companion live contract python scripts/check_companions.py (scheduled/manual)
Critical upstream currency python scripts/check_upstreams.py (read-only report)
Live kit Install-Modkit.ps1 then -Doctor

Comparing a local build with a release

build_release.py pins core.autocrlf=false and core.eol=lf, so a Windows build has the same file contents (and RELEASE.json) as the CI build. Zip bytes can still differ across hosts because Python builds ship different deflate libraries; compare extracted contents or RELEASE.json, not the zip hash. CI compares two builds on the same runner byte for byte.

1.18.1 audit fixes (2026-11-15)

  • Baseline before changes: 12 Python and 9 PowerShell suites green under Windows PowerShell 5.1; Doctor 95 OK in 123 s.
  • Stale pointer: reproducer with an isolated LOCALAPPDATA and a pointer to a deleted kit made a fresh clone's installer stop with "Invalid Reverse THIS! owner pointer" and Maintain -Apply fail. After the fix the same clone: Maintain -Apply exit 0 (records unchanged), -Only pe-recon ok=1, -Doctor exit 0, pointer re-registered with kit.json.pre-1.18.0 kept. New cases in test_standalone.ps1 and test_maintain.ps1 failed before the fix.
  • Triage timeout: launch() on a .cmd shim whose tool sleeps took 19.2 s with a 1 s timeout (60.1 s in the new test with 2 s); after the fix the test passes in about 2 s and no stub process is left.
  • Package updates: the new catalog-driven case in test_standalone.ps1 failed on floss before the fix; capa and pinned tools never query a registry.
  • Downloads: curl flags checked by test_installer.ps1; the same flags fetched a real GitHub release asset (HTTP 200).
  • Gates: 12 Python and 9 PowerShell suites pass under Windows PowerShell 5.1 (test_delivery.py after committing VERSION). PowerShell 7 is covered by CI only (not installed here).
  • Release: v1.18.1 published from 93157ba after all 8 checks on that SHA passed (catalog, installer 5.1 and 7, CodeQL x3, Publish release). Reverse-This-1.18.1.zip 194,330 bytes, SHA-256 5dd7137c27dd72737ed05532c19407637c3042327f233d87289ab00aec76605c; open alerts 0/0/0.
  • Fresh install from the published ZIP into a folder with spaces, ! and parentheses: checksum match, -SelfTest ok, -InstallRoot install of die, upx, triage, floss ok=4 failed=0 (die and upx downloaded with the new curl flags, GitHub digests verified), Doctor exit 0, shared pointer unchanged, re-triage --run notepad.exe from that kit reported its own root, upx --version 5.3.0, floss --version 3.2.0.
  • Live kit: -Only triage,pe-recon,aob-gen,ghidra-mcp-up,floss,unitypy,capstone ok=7 failed=0 (local scripts now 1.18.1; the three PyPI tools resolved to their current latest); Doctor 95 OK, exit 0.

1.18.0 currency sweep (2026-11-15)

  • All 95 catalog tools compared with their upstream release, PyPI, npm or NuGet latest and asset patterns: every tool is current except reverse-api-engineer (0.15.0 pinned, 0.16.0 published the same day). GhidraMCP 2.0 source still serves /health (8080) and streamable-HTTP /mcp (8081).
  • reverse-api-engineer 0.16.0: dependency diff reviewed (collector extra removed, codex extra added); upstream skill at tag v0.16.0 (commit e3aae74) differs only in references/setup.md and was copied unmodified. Installed through the kit: --version 0.16.0, list --json and agent --dry-run --headless exit 0.
  • fmodel-mcp 1.2.0: CI-built release, digest verified by the installer. Through sandbox/bin/fmodel-mcp.cmd: --help; initialize at 2025-11-25 (2026-07-28 is refused with the supported list), tools/list 34 tools, fmodel_capabilities returns version 1.2.0 / CUE4Parse 1.2.2. No real game archive opened.
  • Gates: 12 Python suites and 8 PowerShell suites pass under Windows PowerShell 5.1; check_companions.py and check_upstreams.py pass live; Doctor 95 OK.

1.17.2 upgrade-path proof (2026-11-14)

  • A real 1.16.1 release ZIP install with a private sandbox/work file: its own updater failed (empty $PSScriptRoot default under Windows PowerShell 5.1; with -Destination it then rejected skills/). Nothing was changed by either failure.
  • Fixed in 1.17.2 (body default plus verified-release handoff; regression tests fail without the fix). The published 1.17.2 updater run with -Destination upgraded that kit to 1.17.2: RELEASE.json 1.17.2, skills/ present, source backup retained, private file intact, SelfTest ok. The upgraded kit's own updater with no arguments then reported current or newer.
  • v1.17.2 published from 6ba5ae5 after green exact-SHA CI; release asset re-downloaded and compared by the release workflow; alerts 0/0/0.

1.17.1 fresh-install proof (2026-11-14)

  • Downloaded the published v1.17.0 ZIP; SHA256SUMS.txt matched. Extracted into a new folder named with spaces, ! and parentheses; install.cmd -SelfTest and -Plan (95 lines) passed.
  • -InstallRoot install of one tool per method (die, ilspycmd, pyinstxtractor-ng, capstone, aob-gen, triage, r2api, asar): ok=8 failed=0, GitHub digests verified, shared owner pointer unchanged; every shim ran (diec, ilspycmd 11.2.0.10050, asar v4.3.2, pyinstxtractor-ng, aob-gen, re-triage).
  • Defects found and fixed in 1.17.1: re-triage in the isolated kit reported the owner kit; plain -Doctor failed a healthy -Only kit. After the fix the isolated kit reports its own root and workspace, and plain Doctor exits 0 with an optional-tools line.
  • An agent shell with NoDefaultCurrentDirectoryInExePath=1 cannot run a bare install.cmd through cmd /c; .\install.cmd or a double-click works. Environment, not a kit defect.

1.16.1 currency pass (2026-11-13)

  • REA 6.9.0: isolated -InstallRoot install, then with Ghidra 12.1.4 and 12.2 (JDK 25): rea doctor --provider ghidra healthy, rea analyze of a copied notepad.exe returned 853 procedures, rea mcp doctor 255/255 tools and 6/6 prompts with a binary_session round trip.
  • Detect It Easy 4.0.0: die_win64_4.0.0.zip and die_win64_qt6_4.0.0.zip matched their GitHub digests; both gave the same PE/.NET detections as 3.21; the Qt6 build is now the catalog asset and installed with digest verification.
  • Live kit: Install-Modkit.ps1 ok=92 failed=0, -Doctor exit 0, -SelfTest ok.
  • Gates: 10 Python suites (AOB with capstone 5.0.9 in a venv) and 8 PowerShell suites pass under Windows PowerShell 5.1; check_companions.py and check_upstreams.py pass live.

REA + Ghidra + MCP integration (2026-11-06)

  • Installed official Ghidra_12.1.4_build asset ghidra_12.1.4_PUBLIC_20260921.zip side-by-side at sandbox/tools/ghidra-12.1.4; SHA-256 ddac49f903da9d5bac833e5cc79395098b9c33cfd3279be5f31bd00387d2d4db. Its application.properties declares application.java.min=21, no maximum, so the existing JDK 25 was accepted. No JDK 21 was installed.
  • GHIDRA_INSTALL_DIR and JAVA_HOME were scoped to that pair for REA. rea doctor --provider ghidra --json returned healthy: true, Ghidra 12.1.4, and all Ghidra checks true. environment_healthy is false only because optional IDA, JADX and Kuna providers are not configured.
  • Read-only rea analyze of a copied notepad.exe (SHA-256 468ffe129c395abf6b21a09efdf261910a95fb98aa982ead73caa7b2b684577e) returned binary_overview: 853 procedures, 638 strings, 10 segments, image base 0x140000000.
  • A real stdio MCP client completed initialize, tools/list (229 tools, 6 prompts), open_binary, binary_overview and list_procedures against the same read-only fixture. rea mcp doctor also reported 229/229 tools and request-flow: ok.
  • rea setup --client hermes --yes registered the server in the active Hermes profile with a backup; rea doctor reports the Hermes registration aligned and the REA skill installed. A running Hermes session needs a restart before the new MCP server appears as native tools.

Web API reconstruction (2026-11-08)

  • Selected the published reverse-api-engineer v0.14.0 (MIT) rather than main cd221e9ef5fe30d4fb66ad0d5198f179191aca57; the stable wheel does not ship the unreleased skills/ changes, so no mixed revision is installed.
  • Added catalog entry reverse-api-engineer (pip-venv, pinned 0.14.0) and installed it with Install-Modkit.ps1 -Only reverse-api-engineer: ok=1 failed=0. It uses the shared Python in a private venv.
  • sandbox/bin/reverse-api-engineer.cmd --version → 0.14.0; list --json → []; agent --dry-run → status: ok, provider auto, SDK claude, Node v26.13.0. No browser or model run was started.
  • Live capture and client generation are unverified: no model authentication was supplied and no target site was authorized for capture.
  • Routing is in AGENTS.md and docs/web-api.md; generated output belongs under ignored sandbox/work/web-api, because upstream real_time_sync writes clients into the current directory.

Latest local results (2026-11-08, 1.15.1 release, Windows PowerShell 5.1)

61 Python checks passed, including the web-API contract, delivery and upstream fixtures. tests/test_installer.ps1 passed with the isolated-Ghidra preference and caller-override checks. Repeated Install-Modkit.ps1 -Only rea produced the same shim hash; Install-Modkit.ps1 -Doctor exited 0. The installed kit is 1.15.1 with 93 tools. Default rea doctor --provider ghidra is healthy against Ghidra 12.1.4, and the shim does not leak GHIDRA_INSTALL_DIR or JAVA_HOME to the caller. The published Reverse-This-1.15.1.zip was re-downloaded and verified: 166,210 bytes, SHA-256 7016fd630c371b206fe0c58508724da8562c3805f4f5f7db151d3cc684f15851, 59 entries and 93 catalog tools. Live reverse-api-engineer capture remains unverified because no model/provider authentication was supplied.

Earlier local results (2026-11-08, 1.15.0 release)

63 Python checks passed: catalog/encyclopedia/delivery scripts, 15 Ghidra MCP fixtures, 12 AOB fixtures, 6 PE parser fixtures, 5 kit-tool checks, 4 companion fixtures, 13 upstream-report fixtures and 3 web-API contract checks. The published Reverse-This-1.15.0.zip was re-downloaded and its SHA-256 verified against SHA256SUMS.txt; the extracted product reports packaged checks ok: 1.15.0, 93 tools. The local kit is 1.15.0 and Doctor exits 0.

Web API reconstruction 0.15.0 (2026-11-13)

  • Isolated venv (uv, Python 3.14): reverse-api-engineer==0.15.0 installed; --version 0.15.0, list --json []. With an empty home, agent --dry-run failed only on chrome-mcp:auto-connect (the new default provider); with --headless, and with "agent_provider": "auto", it returned status: ok.
  • Kit: Install-Modkit.ps1 -Only reverse-api-engineer ok=1 failed=0; the shim reports 0.15.0 and the headless dry run returns status: ok, 0 errors.
  • Upstream skill fetched from commit 276e37667de5e290487c97c351c09ea53b11b468 (tag v0.15.0) with its MIT licence; no live capture or model call was run.