Repository navigation
Conversation
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
57a9a0d to
b43e211
Compare
…pport conformance.mjs, support.mjs and config.mjs join tsconfig.scripts.json (34 errors), completing the managed conformance closure. Result checks narrow with assert.ok, Evidence results are read through their owners' schemas, the native function subject is an EvidenceSubjectTarget, the comparison check no longer dereferences a right-only method's null left side, and the fixture callback returns the report instead of assigning outer variables.
99a8fdc to
b5bc855
Compare
[Low impact] The PR appears safe to merge; no actionable issues were found. SummaryAdds the managed conformance entry point and support files to JavaScript type checking.
No actionable correctness or security issues were found. This was a source review; no checks were executed. Current supersession status could not be checked because GitHub access was unavailable. The supplied stack lists no higher dependent PR. Reviews (1) · Last reviewed commit: "build(scripts): type-check the managed c..." · Reviewed by Greptile |
…es (#11611) * build(scripts): type-check the managed PE and function dossier fixtures pe.mjs and function-dossier.mjs join tsconfig.scripts.json (68 errors). Named option types come from pe.d.mts; heap names are paired with their rows instead of read back by index; optional metadata tables are added to the row map directly; a placed body's RVA is computed by bodyRva, which refuses an unplaced body. Fixture bytes are unchanged. * build(scripts): type-check the managed conformance entry point and support (#11612) conformance.mjs, support.mjs and config.mjs join tsconfig.scripts.json (34 errors), completing the managed conformance closure. Result checks narrow with assert.ok, Evidence results are read through their owners' schemas, the native function subject is an EvidenceSubjectTarget, the comparison check no longer dereferences a right-only method's null left side, and the fixture callback returns the report instead of assigning outer variables.
…and source loader (#11609) * build(scripts): type-check the shared verifier run, fixture, cleanup and source loader The five scripts/lib modules join tsconfig.scripts.json (69 errors). Named types come from their existing declaration files. The source loader probes the runtime's TypeScript transform once and refuses a Node.js without transform mode (Node.js 26 removed it) with the pinned-runtime message instead of failing on the first owned source file. * build(scripts): type-check the managed PE and function dossier fixtures (#11611) * build(scripts): type-check the managed PE and function dossier fixtures pe.mjs and function-dossier.mjs join tsconfig.scripts.json (68 errors). Named option types come from pe.d.mts; heap names are paired with their rows instead of read back by index; optional metadata tables are added to the row map directly; a placed body's RVA is computed by bodyRva, which refuses an unplaced body. Fixture bytes are unchanged. * build(scripts): type-check the managed conformance entry point and support (#11612) conformance.mjs, support.mjs and config.mjs join tsconfig.scripts.json (34 errors), completing the managed conformance closure. Result checks narrow with assert.ok, Evidence results are read through their owners' schemas, the native function subject is an EvidenceSubjectTarget, the comparison check no longer dereferences a right-only method's null left side, and the fixture callback returns the report instead of assigning outer variables.
Summary
Seventh #11545 slice:
typechecknow checksscripts/verify/managed/conformance.mjs,support.mjsandconfig.mjsagainstsrc, which fixed 34 errors. The whole managed conformance closure (npm run verify:managed) is now type-checked. Stacked on #11611. Refs #11545.Problem and expected behavior
The conformance entry point read Evidence results as untyped JSON. The checker found these gaps:
assert.equal(result.ok, true)does not narrow aResult, so every following.valueread was unchecked.normalized_result(JsonValue) as if they had fixed shapes.left.tokenfor every compared method. A method that exists only on the right hasleft: null, so that check would throw aTypeErrorinstead of evaluating whenever such a method sorts first. Today the matching method short-circuits.somefirst.letvariables inside the fixture callback, and nothing proved they were set before use.Change and scope
conformance.mjs:assert.ok(result.ok), which narrows. The asserted condition is the same.managedNativeVerificationResultSchema,managedApplicationGraphResultSchema,managedReconstructionImportResultSchemaandmanagedMemberComparisonResultSchema.compareManagedPathsreturns the parsed comparison.EvidenceSubjectTarget.left?.token.{ completionReportInput, finalReport }. The printed report has the same keys in the same order, withcompletionReportlast.git diff -wshows 82 insertions and 43 deletions across the three files.support.mjs: parameter types, with the fixture options typed throughpe.d.mts.tsconfig.scripts.json: lists the three files.Not included: the
verify-real-ghidra-*/verify-real-hopper*consumers ofmcp-verifier-results.mjs(next slices).Contract and boundary impact
srcchanges.Evidence and regression coverage
node scripts/run-typescript.mjs --noEmit -p tsconfig.scripts.jsonreported 34 errors with the three files listed. It reports 0 after this change.verified: 11both times, the same coverage list, 11 passing claims, and the same six refused manifest mismatches.Validation performed
macOS (arm64), Node 24.22.1:
npm run build:cachedthennode scripts/verify/managed/conformance.mjs: exit 0, with the report matching as described above.npm run check:fast: passed (typecheck includingtsconfig.scripts.json, lint, architecture guards).npx oxfmt --checkon the changed files: clean. Pre-commit and pre-push hooks passed.REA_ILSPY_CMD_PATHandREA_MANAGED_APP_MANIFEST_PATH.Compatibility, safety, and release
Author readiness
Human owner:
Before merge
type(scope): outcome.