Skip to content
Open
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
5df5571
feat(ghidra): admit verified recordless MIPS I o32 executables
Bobtoshi Oct 13, 2026
d8630ea
test(ghidra): verify MIPS branch decoding and retain diagnostics
Bobtoshi Oct 13, 2026
5ec1a57
fix(mips)!: reject uninspected GNU ABI attributes
Bobtoshi Oct 13, 2026
102f813
test(mips): isolate native boundary controls from ambient settings
Bobtoshi Oct 13, 2026
05e2366
test(mips): verify cleanup and pin readelf locale
Bobtoshi Oct 13, 2026
0a8f70f
Merge latest upstream and verify MIPS declaration coverage
Bobtoshi Oct 14, 2026
e389016
chore: preserve untouched upstream tests after merge
Bobtoshi Oct 14, 2026
2d2f2f8
test(ghidra): refresh MIPS controls and verify orphan cleanup
Bobtoshi Nov 6, 2026
11edd85
fix(verification): sweep the captured Ghidra provider run identities
Bobtoshi Nov 6, 2026
3569da2
chore: merge upstream into MIPS verifier branch
Bobtoshi Nov 8, 2026
7ab92a4
test(ghidra): verify imported MIPS languages and merge upstream
Bobtoshi Nov 10, 2026
6886262
test(ghidra): remove an empty processor context suite
Bobtoshi Nov 10, 2026
a830a4a
fix(ghidra): track verifier runs before lazy analysis
Bobtoshi Nov 11, 2026
624b879
fix(ghidra): verify MIPS evidence and preserve cleanup failures
Bobtoshi Nov 11, 2026
779a635
test(ghidra): verify committed MIPS dossier attribution
Bobtoshi Nov 13, 2026
19a9f98
fix(ghidra): bound MIPS readelf verification
Bobtoshi Nov 13, 2026
0a5b082
test(ghidra): bind MIPS dossiers to their ELF fixtures
Bobtoshi Nov 13, 2026
2d1ee37
test(ghidra): retain MIPS readelf verification evidence
Bobtoshi Nov 13, 2026
7494b2b
test(ghidra): retain MIPS source paths and refusal diagnostics
Bobtoshi Nov 13, 2026
99b9126
fix(ghidra): own MIPS verifier CLI refusal commands
Bobtoshi Nov 13, 2026
7d92575
fix(ghidra): recover verified MIPS verifier provider survivors
Bobtoshi Nov 13, 2026
dbd04ab
test(ghidra): verify recordless MIPS caveats and cold cleanup
Bobtoshi Nov 13, 2026
ffcd4d6
fix(ghidra): own the MIPS verifier MCP transport
Bobtoshi Nov 13, 2026
3596755
fix(ghidra): keep MIPS MCP ownership separate from CLI commands
Bobtoshi Nov 13, 2026
1051072
Qualify MIPS32 boundaries and retain failed verifier ownership
Bobtoshi Nov 13, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
test(mips): verify cleanup and pin readelf locale
  • Loading branch information
Bobtoshi committed Oct 13, 2026
commit 05e23666d856b739790498d37ddb578b007632a2
28 changes: 25 additions & 3 deletions scripts/verify-real-ghidra-mips-boundaries.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {
requireMcpOperationResult,
requireMcpToolError,
} from "./lib/mcp-verifier-results.mjs";
import { createVerifierRun, completeVerifierRun } from "./lib/verifier-run.mjs";
import { functionDossierSchema } from "../dist/domain/hopperValues.js";

// Static source-owned controls. Never execute an ELF or acquire a toolchain.
Expand All @@ -22,6 +23,7 @@ if (!process.env.GHIDRA_INSTALL_DIR || !process.env.JAVA_HOME)
"Supply GHIDRA_INSTALL_DIR and JAVA_HOME for the MIPS32 positive control.",
);
const execute = promisify(execFile);
const run = createVerifierRun();
const root = await mkdtemp(join(tmpdir(), "rea-mips-boundaries-"));
const digest = (bytes) => createHash("sha256").update(bytes).digest("hex");
const cli = fileURLToPath(new URL("./rea.mjs", import.meta.url));
Expand All @@ -32,6 +34,7 @@ const env = {
TMPDIR: root,
REA_ANALYSIS_PROVIDER: "ghidra",
REA_LOG_LEVEL: "silent",
REA_PROCESS_RUN_ID: run.run_id,
GHIDRA_INSTALL_DIR: process.env.GHIDRA_INSTALL_DIR,
JAVA_HOME: process.env.JAVA_HOME,
HOPPER_LAUNCHER_PATH: "/rea-unconfigured-deep-provider/hopper",
Expand All @@ -40,6 +43,7 @@ for (const setting of ["GHIDRA_HEADLESS_MAXMEM", "GHIDRA_MAXMEM"]) {
if (process.env[setting] !== undefined) env[setting] = process.env[setting];
}
const reports = [];
let primaryFailure;
try {
for (const byteOrder of ["little", "big"]) {
const original = await buildMips1Fixture(root, byteOrder);
Expand Down Expand Up @@ -76,6 +80,7 @@ try {
const { stdout: attributes } = await execute(
process.env.REA_READELF ?? "readelf",
Comment thread
Bobtoshi marked this conversation as resolved.
Resolved
["-A", gnuPath],
{ env: { PATH: env.PATH, LC_ALL: "C" } },
Comment thread
Bobtoshi marked this conversation as resolved.
Resolved
);
assert.match(attributes, /Tag_GNU_MIPS_ABI_FP.*Soft float/iu);
const transport = new StdioClientTransport({
Expand Down Expand Up @@ -163,7 +168,24 @@ try {
}
}
}
console.log(JSON.stringify({ status: "passed", reports }, null, 2));
} finally {
await rm(root, { recursive: true, force: true });
} catch (cause) {
primaryFailure = cause;
}
const completed = await completeVerifierRun(run);
if (
completed.process_lineage.status !== "verified" ||
Comment thread
Bobtoshi marked this conversation as resolved.
Resolved
completed.process_lineage.descendants.length !== 0
Comment thread
Bobtoshi marked this conversation as resolved.
Resolved
)
throw new Error(
`Cleanup unverified; retained diagnostic workspace: ${root}`,
{ cause: primaryFailure },
);
if (primaryFailure !== undefined)
throw new Error(
`MIPS boundary verification failed; retained workspace: ${root}`,
{ cause: primaryFailure },
);
await rm(root, { recursive: true, force: true });
console.log(
JSON.stringify({ ...completed, status: "passed", reports }, null, 2),
);