feat(elf): inspect dynamic dependencies and required symbol versions

Add offline ELF dependency, search-path, symbol-version and import inspection with retained Evidence summaries and pages. Bound GNU-hash work and preserve cancellation, stable identity and caller-selected parameters across CLI/MCP.

Assisted-by: Suika (gensokyo-skills:suika-scatter-gather-planning)
Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
This commit is contained in:
Matt Van Hornandgensokyo-dev authored and GitHub committed 2026-11-17 08:19:52 +00:00
1 parent af062e7a2d
commit e9c72dbd1f
100 files changed
+7137 -89

No files matched your search

+16
View File
@@ -3,6 +3,22 @@ import type { AnalysisError } from "../domain/analysisErrorBase.js";
import { cancelledBy } from "../domain/analysisErrorCore.js";
import { analysisInputErrorFromIssues } from "../domain/inputIssueProjection.js";
import { err, ok, type Result } from "../domain/result.js";
import { isRecord } from "../kernel/isRecord.js";
/** Keep top-level caller selections separate from defaults resolved for execution. */
export const callerAnalysisParameters = (rawInput: unknown) => {
const selected = new Set(
isRecord(rawInput)
? Object.keys(rawInput).filter((name) => rawInput[name] !== undefined)
: [],
);
return <Input extends object>(resolved: Input): Partial<Input> => {
const parameters = { ...resolved };
for (const name of Object.keys(parameters))
if (!selected.has(name)) Reflect.deleteProperty(parameters, name);
return parameters;
};
};
/** Validate an application request, honoring cancellation before admission when supplied. */
export const parseAnalysisInput = <T>(