fix: address review nits from batch integration follow-ups (#818)

- browser: reject empty Referrer-Policy tokens structurally while
  still skipping them per W3 fallback semantics.
- browser: document that WebMCP keys cannot collapse since unknown
  frames are excluded before keying.
- ghidra: split NativeAOT non-recovery diagnostics into
  reason-missing vs payload-present variants with exact assertions.
- reference: lock secret-patterned exclusion before failure
  projection so failure messages cannot carry secret paths.
- doctor: lock direct-launcher Codex timeout ordering both ways.
- native: note plutil -n macOS 12+ requirement; add fat-output
  control guarding the thin pre-scan.
- reconstruction: multi-unknown limitation coverage via shared helper.

Tracks #817 for the remaining smol-toml advisory.
This commit is contained in:
morluto
2026-10-07 10:49:23 +08:00
committed by GitHub
parent 3af3811ab0
commit 5a0e0ba3b8
9 changed files with 180 additions and 71 deletions
@@ -434,7 +434,7 @@ describe("Ghidra extension recovery coverage", () => {
[extension],
[{ ...report, result: { ...report.result, method_tables: 1 } }],
),
).not.toBeNull();
).toBe("NativeAOT non-recovery status carries recovered metadata.");
for (const reason of [null, "", " "] as const)
expect(
validateGhidraExtensionResults(
@@ -447,7 +447,7 @@ describe("Ghidra extension recovery coverage", () => {
},
],
),
).not.toBeNull();
).toBe("NativeAOT non-recovery status omits its required reason.");
},
);
});
@@ -57,16 +57,17 @@ type NativeAotReport = z.infer<typeof report>;
const validateNonRecoveryMetadata = (
value: NativeAotReport,
recovered: boolean,
): string | null =>
!recovered &&
(value.reason === null ||
value.reason.trim().length === 0 ||
value.method_tables !== 0 ||
): string | null => {
if (recovered) return null;
if (value.reason === null || value.reason.trim().length === 0)
return "NativeAOT non-recovery status omits its required reason.";
return value.method_tables !== 0 ||
value.types !== undefined ||
value.derived_memory !== undefined ||
value.coverage !== undefined)
? "NativeAOT non-recovery status contradicts its reason or recovered metadata."
value.coverage !== undefined
? "NativeAOT non-recovery status carries recovered metadata."
: null;
};
/** Validate the pinned producer representation before its result enters Evidence. */
export const validateNativeAotReport = (