Skip to content

The minified native harness calls a removed Result success accessor #756

Open

Description

@lumenpearson

Problem

The newly admitted stage5b local nativeCheck packaging command completed successfully in174.33s and produced a fresh release/test APK pair. Its one declared retained-DEX linkage scan found a real missing target method: the expanded harness calls kotlin.Result.isSuccess-impl(Object):boolean for the capabilities preflight assertion, but the optimized main APK does not define that declaration. The existing native-only Result bridge retains box/unbox only. No device installation or execution has occurred, so this is measured structural RED, not a native crash.

The same diagnostic reports create(Object,Continuation) missing from two named suspend-helper subclasses. Those are a separately disclosed potential tool overconstraint: classify actual inheritance/call sites before changing application roots. They are not evidence that more app keep rules are needed.

Correction and boundary

After actual normal completion, preserved exact artifacts/source/request and independently qualified resource release, add only the measured public static boolean success accessor to the native-only Result bridge and its exact BuildPropertyReachTest inventory. Verify the unshrunk pinned ABI and the new packaged DEX. Keep ordinary release/codec/trust policy unchanged; no production test hook, baseline growth or suppression. Do not rewrite valid coroutine helpers or broaden keeps to satisfy a private diagnostic assumption.

Acceptance

  • Actual retained test DEX reference, target absence and pinned unshrunk Result ABI are documented before correction.
  • After qualified release, the native-only method root and exact inventory guard are corrected; standard unfiltered Android tests, both ordinary assembles and Detekt pass under a new exact admission.
  • A separately admitted new local nativeCheck packaging and correctly scoped static linkage measurement pass; prior failed pair/diagnostic remain immutable.
  • Whole5b server/full-count/documentation/review/dev/master and source-matched production-signed/device/production acceptance complete with Move the remaining Android remotes to v2 transports (stage 5b) #746.

Keep this issue open for delivery. Local dirty-tree APK packaging or a static scan cannot establish signed-device behaviour.

Measured correction and ordinary validation

The pinned Kotlin2.4.21 unshrunk Result.class confirms public static final isSuccess-impl(Object):boolean (access flags25); its class hash is924779ed33ee74c54a5f5a2757c28c910d628403c71a174613d798868e750250. The actual retained test APK reference and main target absence are separately retained. Only after actual independent resource release, that one native-only method root and the exact inventory guard were extended; all134 other source inputs remained byte-identical.

A newly admitted standard unfiltered Android command then succeeded in84.36s:733 app cases and app Detekt freshly passed, including the strict inventory guard.1433 unaffected cases/four clean Detekt reports were source-identical, hash-verified reuse. Both ordinary assemblies pass; release R8 was restored FROM-CACHE, not newly compiled, and its rematerialized APK matches the prior ordinary hash. The raw ordinary configuration/mapping explicitly exclude all native-only registration markers, unlike the retained native configuration. All2166 completed cases pass with no errors/skips.

Actual first test DEX hierarchy also confirms the two named helpers extend ContinuationImpl, declare invokeSuspend and have no own create references. A new private diagnostic version keeps all target-member/base-callback checks, checks both callbacks on actual SuspendLambda and invokeSuspend on named ContinuationImpl, and fails unknown families. Original diagnostic and failed pair remain immutable; no application root was broadened for these two tool warnings. The separately admitted second local native packaging then completed successfully in 164.01s. Main/test R8 and both packaging tasks executed; test Kotlin compilation was source-identical UP-TO-DATE. The new retained main APK SHA256 is 967afa9c64f872ed22b16fa9e101e1994f316a69ca53549e40fca9fd36dd22d7; test APK SHA256 is f5cca42617fa7d495689b05e34c50167e2f23cdcec9e8938d368690372120c9f. The declared revised scan passed once on this new pair: no measured missing class, field, method, base callback or required override, and no unknown callback family. It measured seven SuspendLambda and two named ContinuationImpl helpers. A separate file-only audit confirmed both referenced parent constructors directly exist in the target DEX; inherited constructors were not accepted. The original failed pair and diagnostic are unchanged. Coordinator independently qualified and actually released this resource cohort before further work.

Full server gates subsequently passed: Ruff clean, mypy242 files, bare pytest3893 passed/17 skipped/15 warnings;3910 unique completed cases. Those exact skipped identities/reasons match the retained SQLite baseline. Completed Android count publication is now2166, and both report-count comparisons pass. A separately admitted affected-document guard run subsequently passed all168 cases, with the full server JUnit unchanged; resource release was independently qualified. One whole-branch review, dev/master CI and merge, source-pinned production-signed/device and production acceptance remain pending. A local dirty-tree pair/static scan does not establish any of those gates.

Working delivery is PR #757, milestone11, source a86f0cef8afd6602b5471186ef69e676cd26c114. One fresh whole-branch review and exact-head CI are active. Signed-device and overall #746 acceptance remain pending; this issue stays open.

Activity

  1. changed the title [-]Keep the Result success accessor used by the expanded minified native harness[/-] [+]The minified native harness calls a removed Result success accessor[/+] on Nov 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    • Status
      Now

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions