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. |
Contributor
[Low impact] The changes appear safe to merge; no blocking issues were found. SummaryAdds source-based type checking for the managed manifest verifier and its cleanup helper.
Reviews (2) · Last reviewed commit: "build(scripts): type-check the managed a..." · Reviewed by Greptile |
22 tasks
morluto
added a commit
that referenced
this pull request
Nov 16, 2026
…src (#11579) * build(scripts): type-check the Evidence verification scripts against src Six JavaScript callers kept passing `undefined` as an Evidence subject after `createEvidence` stopped accepting it (#11536); `npm run typecheck` saw only the TypeScript callers. The scripts import built modules by relative `../dist/` paths, which a checker resolves to the built JavaScript (or nothing, before a build) rather than the source types. A package-private `#dist/*` import alias resolves to `./dist/*` at run time, and `tsconfig.scripts.json` maps it to `./src/*` and checks the listed scripts with `checkJs` under the main compiler options. `typecheck`, and so `check:fast`, runs it; turbo's typecheck inputs include the scripts and the new config. First slice: `verify-package-evidence.mjs` (its evidence-bundle import becomes static), `verify/javascript/output.mjs` and `verify/javascript/digests.mjs`, with the JSDoc types the check required. Refs #11545 * build(scripts): type-check the MCP verifier results and Ghidra snapshot lifecycle helpers (#11590) * build(scripts): type-check the managed app manifest verifier (#11592) * build(scripts): type-check the managed oracles and completion report (#11605) oracles.mjs and completion-report.mjs join tsconfig.scripts.json (72 errors). ensureIlspy is an assertion function, the ILSpy import returns the imported Evidence and reads its normalized result through managedReconstructionImportResultSchema, the manifest-rejection controls are named records walked by a checked field lookup, and the completion report names its input.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Third #11545 slice, and the first managed-conformance sub-slice.
typechecknow checksscripts/verify/managed/manifest-parser.mjs,scripts/verify/managed/manifest.mjsandscripts/lib/verifier-artifact-scope.mjsagainstsrc; that fixed 84 errors. Stacked on #11579, which now carries #11590. Refs #11545.Problem and expected behavior
The managed conformance closure (
scripts/verify/managed/*and the verifier libraries it loads) has 326 errors with the main compiler options, up from the ~180 measured earlier because the closure now pulls in morescripts/libmodules. This sub-slice takes the dependency-closed manifest part. Besides implicit-anyparameters, it had two real gaps:normalized_result.graph/.summaryfromJsonValueEvidence.Change and scope
manifest-parser.mjs:ensureis an assertion function. The validators takeunknownand return the type they checked, soManagedAppManifestis inferred from the parser and exported as a typedef. The object check uses the sharedisRecordowner. Integer checks also requiretypeof value === "number";Number.isIntegeralready refused non-numbers, so the accepted values do not change. Messages are unchanged.manifest.mjs: typed parameters through thesrctypes (BinaryTarget,ArtifactResourceScope, the inspector results). The graph projection reads its result throughmanagedApplicationGraphResultSchema, the managed graph owner's schema, whichJavaScriptApplicationEvidenceGraphalready uses for the same Evidence.verifier-artifact-scope.mjs:withVerifierArtifactScopeis generic over the operation's result.tsconfig.scripts.json: lists the three files.Not included:
oracles.mjsandcompletion-report.mjs(~72 errors), thenconformance.mjs,support.mjs, thescripts/lib/verifier-*modules andscripts/fixtures/managed/*(~170). Those are the next sub-slices.Contract and boundary impact
Evidence and regression coverage
node scripts/run-typescript.mjs --noEmit -p tsconfig.scripts.jsonreported 84 errors in these files with only the imports aliased; it reports 0 now.tests/boundary/process/managedManifestAdmission.test.tsandtests/boundary/process/verifierArtifactScope.test.tscover the parser and scope through the#distalias.Validation performed
All on macOS (arm64), Node 24.22.1:
npm run check:fast(typecheck includingtsconfig.scripts.json, lint, architecture guards): passed.npx oxfmt --checkon the 4 changed files: clean.npm run test:focused -- tests/boundary/process/managedManifestAdmission.test.ts tests/boundary/process/verifierArtifactScope.test.ts: 9 passed.scripts/verify/managed/conformance.mjsagainst built fixtures).Compatibility, safety, and release
Author readiness
Human owner:
Before merge
type(scope): outcome.