Repository navigation
feat(android): name the reader check on a JNI library's integrity failure - #11191
Merged
Merged
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
[Medium impact] The PR appears safe to merge; no blocking issues were found. SummaryAdds optional
Reviews (2) · Last reviewed commit: "Merge branch 'main' into feat/jni-failur..." · Reviewed by Greptile |
This was referenced Nov 15, 2026
morluto
added a commit
that referenced
this pull request
Nov 16, 2026
…ilure (#11624) * feat(android)!: require integrity_check on a JNI library integrity failure A JNI library failure is now a tagged union: kind integrity carries a required integrity_check, and no other kind carries one. The producer builds it from the reader failure, whose integrity constructor requires the check since #11505. Also drop the stale "evidence produced before this field" clause from the electron_semantics comment; earlier Evidence revisions are refused. BREAKING CHANGE: Android JNI Evidence whose library failure has kind "integrity" must name integrity_check. Records written before #11191 that lack it no longer parse; recreate them. Refs #10510 * test(android): check the JNI failure union in its JSON Schema and the unnamed-check refusal Exclude integrity from the other failure kinds with excludedValues, so the JSON Schema conversion declares the exclusion that a bare refine dropped. The test checks the converted schema against the same valid and malformed records, and drives an integrity read failure with an explicitly undefined check: the read is refused, the reader is closed and every checkpoint parses.
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
Refs #10508 (Phase 6.1). A selected JNI library that fails a reader integrity check now records which check in its failure, instead of only the message.
Problem and expected behavior
readAndroidJniLibrariesturned anArtifactReaderFailureinto{kind, message}, droppingintegrityCheck(noted in the feat(artifacts): name the integrity check for stable, selected and provider artifact sources #11129 review). The Evidence schema was strict and had no field for it.failure.integrity_checknames the check when the reader named one.Change and scope
integrity_checkon the JNI library failure schema, an enum ofARTIFACT_INTEGRITY_CHECKS, which now also defines theArtifactIntegrityChecktype.Follow the contribution scope.
Unresolved scope, authority, side effects, or required verification block
integration. Link the required maintainer scope decision for new providers or
capabilities involving target execution, injection, mutation, or protection
recovery; ordinary fixes within existing boundaries may state "not applicable".
Draft PRs may leave the scope decision pending and the readiness and merge checklists
unchecked. Maintainers can help resolve open questions.
Contract and boundary impact
ArtifactReaderFailure.integrityCheck(set by the ZIP reader andreadAndroidJniLibraries) is the owner;readAndroidJniLibrariesnow copies it into the per-library failure record.ARTIFACT_INTEGRITY_CHECKS(domain/artifactOperationError.ts) becomes the one list the type and the Evidence schema derive from; oneandroidJniLibraryFailureSchemareplaces two identical inline failure schemasinspect_android_jni_bindingslibraryfailuregains optionalintegrity_check; the compact advertised profile digest is unchangeddocs/public/product-catalog.json), package, or installation impact (CI generates and validates ignored catalogs andskills/; edit authored instructions in.agents/skills/reverse-engineer-anything/and never commit build outputs): noneExpected effects (check known effects; use documentation-only on its own).
Unchecked items do not establish absence; leave uncertainties visible.
Evidence and regression coverage
tests/boundary/android/androidJniLibraries.test.ts: "names the reader check when a selected library fails an integrity check" (the reader refuses altered entry metadata asentry-metadata; the checkpoint schema retains the check)failure: {"kind": "integrity", "message": "...", "integrity_check": "entry-metadata"}readAndroidJniLibrariesis not separately exercised (the reader's own entry check fires first for an altered entry)For boundary fixes, identify the applicable boundary regressions
and lifecycle regressions
covered by the evidence above, and explain relevant gaps.
For evidence-bearing changes:
Validation performed
npm run test:focused -- tests/boundary/android/androidJniLibraries.test.ts tests/boundary/mcp/androidPackageSummaryMcp.test.ts tests/boundary/cli/androidPackageViewCli.test.ts: 26 passed (base: 25; +1 new test). Wall / CPU (user+sys): 6.5 / 11.0 s (one run).npm run verify:advertised-schemas -- --update-summary: no change forinspect_android_jni_bindings(the only diffs were 26 staleinput compactdigests from fix(contracts): refuse empty address and procedure selectors in the contracts #10753 on main, fixed separately in chore(mcp): record the selector schemas from #10753 in the advertised summary #11190 and not included here).npm run typecheck,npm run check:fast: passed.command— resultCompatibility, safety, and release
Author readiness
Human owner:
Before merge
type(scope): outcome.