fix: make consumer capabilities discoverable before activation - #567
Merged
Merged
Conversation
Owner
Author
|
/preflight auto |
Owner
Author
|
/preflight auto |
Owner
Author
|
/preflight auto |
daniele21
force-pushed
the
fix/aura-emulator-e2e-release-refresh
branch
from
September 11, 2026 08:24
4e1c392 to
0f0e488
Compare
Owner
Author
|
/preflight auto |
Owner
Author
|
/preflight auto |
Owner
Author
|
/preflight auto |
Owner
Author
|
/preflight auto |
Owner
Author
|
/preflight auto |
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.
Outcome
Refresh the Aura↔Harnex regression repair onto the current
devbaseline and close the capability-discovery, emulator control-state, model-readiness and activation-residency defects exposed by Aura's hardened two-APK journey.Root-cause repairs
BroadcastReceiver.onReceive()viagoAsync()and a background thread;<queries>so Android package visibility does not hide the installed Consumer from startup discovery;PENDINGfrom the exact observed package/signer identity;HarnessPhoneBindingRegistrystill requires an active activation for external runtime execution;isDefault, while re-enabling the canonical schema binding restores it only when no competing current default exists;UNAVAILABLE_MODELrather than collapsing into an unassigned use case;(modelDigest, modelProfileId)rather than every resident profile sharing the digest. Distinct Aura schema/category profiles remain distinct; after the schema activation releases, the category activation may evict the idle schema profile and load its own profile, while an active lease still protects its exact resident profile.Root-cause evidence
The cross-profile failure was reproduced independently in
ActivationProfileSwitchRegressionTest: schema activation/residency followed by release and category activation on the same digest previously caused the category prepare path to hitMODEL_PROTECTED_BY_ACTIVATION. Validate #4417 passed on exact reproducer HEAD8e3f7c4b27b05e07772f9371befc31f3f750612f, proving the conflict before the repair. The regression now asserts the opposite: released schema residency switches successfully to the category profile, while same-profile active leases continue to block unload.Boundary / invariants
PENDING; explicit authorization is required before a Consumer client is created.GgufModelProfileremains the exact load identity; same digest does not imply profile equivalence or permit silent handle reuse.android.permission.DUMPprotected and absent from production variants.Release identity
dev@dc30739d760762e4d965b570f17aec74d4f432379074cf8d7dd5b90f5e49f6b3fc41622512faccbcThe Harnex
devbase remains unchanged at the SHA above.Harnex validation state
8e3f7c4b27b05e07772f9371befc31f3f750612f: Validate #4417 green, proving the old same-digest cross-profile conflict;9a4e717877e4e56626e150c8114b3a7934294e98: remote preflight Validate #4423 green at STRONG, including selected Android validation and native packaging;9074cf8d7dd5b90f5e49f6b3fc41622512faccbc: documentation validation green and remote preflight Validate #4427 green at STRONG, including Android validation, native packaging, repository validation and exact-head reusable evidence publication.AUTOMATED_PREFLIGHT_CONFIRMEDfor Harnex on the exact candidate above.Exact-pinned Aura downstream acceptance
The previously remaining discriminating gate has now passed against this exact Harnex candidate.
Aura PR #24 final automated candidate:
dev@4d816359470a0bff2d2397b567faa117ec1e4c89;b09c7764b7a9df75af720a53f762bf63792fa976;34686690859;FULL_MEDIA, exact Harnex rebuild/publish and Android API 36 preflight: SUCCESS.The exact-pinned Android evidence proves the required lifecycle sequence: Host absent fail-closed → PENDING/authorization boundary → assignment/readiness transitions → schema/category generation/profile switch → cancellation/cleanup and reconnect/restart behavior. The packaged Aura arbitrary-header flow then completes Harnex schema/category assistance, explicit mapping confirmation, Aura deterministic extraction, Review and verified commit.
Material G2 evidence on the final Aura HEAD includes:
OK (1 test);OK (1 test);status: PASS;ledgerBeforeConfirm = 0andledgerRows = 0before verified commit;Food;metadataClean = truewith no Harnex/import provenance persisted;adb_state=deviceandemulator_state=alive;Aura Android evidence artifact
10296365183records Harnex source revision9074cf8d7dd5b90f5e49f6b3fc41622512faccbcand contains non-empty requiredFULL_MEDIA: instrumentation (~46.5s), Harnex two-APK (~61.8s), WebView (~12.4s), plus 1080x2400 screenshots for all three journeys.Earlier Aura runs #129/#133 and the first Android attempt of #137 reached functional G2 PASS before a remote AVD disappeared during post-G2 media collection. Aura retained those failures, hardened resource/health diagnostics, and a same-SHA #137 rerun passed. Final #138 passed Android without that failure. No Harnex product contract or evidence gate was weakened to obtain green status.
The previously stated exact-pinned Aura deterministic blocker is therefore satisfied. Aura W13 physical/model/accessibility/privacy-governance release qualification remains separate
REAL_ENVIRONMENTevidence and does not replace or invalidate this automated cross-repo acceptance.