refactor: consolidate boundary semantics and prune redundant tests
Share parser modes and collision-free composite keys, enforce architecture guards, and consolidate redundant unit assertions into filesystem, CLI, MCP, and producer-backed workflows. Preserve concurrent upstream boundary fixes and exclude legacy Objective-C class-name bookkeeping labels. Validation: source/composition suites (3358 passing), focused canonical digest and MCP checks, typecheck/lint, Knip, formatting, architecture guards, and real Foundation archive and Apple legacy simulator CLI/MCP verification. No real Hopper, Ghidra, or IDA verification claim.
This commit is contained in:
@@ -16,3 +16,11 @@ export const compareUnicodeCodePoints = (
|
||||
if (leftIndex === left.length && rightIndex === right.length) return 0;
|
||||
return leftIndex === left.length ? -1 : 1;
|
||||
};
|
||||
|
||||
/**
|
||||
* Collision-free composite key for deduplication/sorting. `\0`-joins
|
||||
* collide when any component contains NUL (valid in JS property names);
|
||||
* a JSON tuple escapes every component. Single owner for composite keys.
|
||||
*/
|
||||
export const compositeKey = (parts: readonly unknown[]): string =>
|
||||
JSON.stringify(parts);
|
||||
|
||||
Reference in New Issue
Block a user