Repository navigation
Description
Current execution status — 2026-11-16
Published as blocked draft #4610 at 3c1cb569742bc4e158ff0cd6703ab26f40a07193. Exact validation and rebase review passed at this head. Real API 35 boot-owner evidence remains attributed to 57217458. Full HTTP cold-boot/native cancellation remains unproven. GitHub reports 13 successful checks and 5 draft/native skips; Coverage and Integration are green. Sentinel approves with no open findings. No human approval is inferred; draft native skips are not passes. #4512 remains open with historical causes unproven and its recorded readiness block unchanged.
Latest detailed Current state.
Parent: #4368
Audit entries: CMD2-2, ANDR-13
Source-check baseline: 3924da9474eded3d40c4abbaccc79fecae894366. Source inspection is not runtime reproduction.
Required behavior
Android boot retry/stop/timeout decisions consume structured producer evidence. Transient offline/not-ready observations may be retried inside the existing aggregate budget; terminal unauthorized or other proven terminal outcomes stay terminal. Cancellation remains immediate. Changing diagnostic message/stdout spelling alone must not change control flow.
Prevention design and owner
Stamp typed observations at the existing adb/boot producer and carry them into lifecycle polling and normalization. Remove the self-message equality and text-driven retry decisions; keep human diagnostics separate. Do not invent a generic classifier, widen timeouts, add fallback, or rewrite unrelated Apple boot orchestration. Inspect current adb typed ownership before adding fields.
Owning source: packages/platform-android/src/emulator-lifecycle.ts, packages/provision-kit/src/boot-diagnostics.ts.
Completion evidence
Use the real boot lifecycle seam with a transient structured observation then Booted, a terminal observation, cancellation, and final timeout. Add identical-message/different-reason and changed-message/same-reason pairs. Base or a production mutant must fail the retry distinction. Collect owned Android boot evidence at a named API level; it does not clear #4378 API36 Back/diff evidence.
Record base/head or mutation detection, independent review, full repository formatting and exact-head affected validation. Keep failures, skipped CI/manual lanes and device evidence attributed to their tested SHAs. Preserve #4050 full-unit fallback; no blanket test deletion, gate relaxation, new compatibility fallback, merge, release or tags.
Dependencies and coordination
#4396 stopped-AVD boot support is already merged; preserve its admission/selection behavior. Host-wide timeout provenance (CMD-2), Apple screenshot retry, and Apple boot consolidation remain separate owners.
Activity
apex-sentinel-staging commentedon Nov 11, 2026
Apex Sentinel · Issue review
Suggested label:
featureThe issue requests a change in Android boot polling to use structured typed observations instead of error-text-based retry/control-flow decisions, with explicit owners, required behavior, and completion evidence. It is a specific engineering enhancement/refactor rather than a defect report or support question.
thymikee commentedon Nov 13, 2026
Validation evidence: candidate
c7bb1990e541174c147e25b9f907d2d9c1625adastill has failed exact affected validation. The original unit assertion also failed on unchanged base80075b6412dfa94fd765a36407270e21adce8981. Diagnosis is tracked in #4512.One pinned
check:unitrun per SHA used four workers and ran strictly sequentially. Base reported 19,749 passed, two failed and three skipped. Its helper-exit failure exactly matched the original candidate gate:snapshot-helper-exit-result.test.ts:873:10, exit statusundefined !== 1. Base also had a 5,000 ms package-content guard timeout. Candidate reported 19,756 passed, one failed and three skipped; the original assertion passed, whilesnapshot-producer-emitters.test.ts:186:1timed out after 5,000 ms. Both checkouts remained clean.This shows that the candidate patch is not necessary for the original assertion to fail. It does not establish the cause, host contention or a successful candidate validation. One base observation does not establish repeatability. No tests, timeouts, worker policy or #4050 fallback were weakened; the original exact receipt stays failed.
Next: a bounded owned-emulator verification at the actual candidate, with its API level and runtime binding recorded. Source review has no P1/P2 findings. Native proof, validation diagnosis and CI remain separate obligations. Nothing is published or merge-ready.
thymikee commentedon Nov 13, 2026
Current state: Local candidate
c7bb1990e541174c147e25b9f907d2d9c1625adaremains unpublished. Source review found no P1/P2 findings. Exact affected validation remains failed; #4512 owns the recorded unit-validation diagnosis. The matching assertion also failed on unchanged base, but the controlled candidate run failed a different guard timeout. Cause remains unproven.The completed native attempt established Android 15 / API 35, a private candidate daemon and the matching
android-helperversion0.21.38-dev. Settings was observed and screenshots were captured. It did not reach the changedwaitForAndroidBootpath: T3 performed the first boot, candidate discovery timed out during a later attempt, and subsequent opens observed an already-booted device. These observations do not prove the required boot-polling behavior or retries.The worker reports its sessions and private daemons stopped, credentials removed and assigned AVD off. The T3 shutdown error and subsequent shutdown evidence remain in the record. Other devices and daemons were not targeted.
Next: define a bounded way to exercise the actual boot seam, or publish an explicitly blocked draft with this native gap and #4512 visible. Do not repeat observation runs, manufacture offline faults, weaken tests or reinterpret the failed gate as passed. The historical API36 Back/diff cause remains unproven. No merge or release authorized.
thymikee commentedon Nov 14, 2026
Decision: typed Android boot retry verdict and deterministic readiness proof:
Adopt the November14 #4426 review correction at the existing boot-poll owner. Retry a successful not-ready boot observation, and a producer's explicit retriable=true verdict when it is not a proven host refusal. Keep the accepted device_offline exception: offline remains retryable with retriable=true whether or not adbHostRefusal is set. A curated retriable=false verdict stays terminal. Thus connection_dropped and server-version restart observations retain the producer's retry semantics, while a proven device_not_found host refusal remains terminal. Do not parse messages in the boot consumer or expand the adb classifier in this change.
Unclassified failures, including current error: closed, remain terminal: there is no authoritative retriable verdict. This narrows the old blanket nonzero-getprop retry behavior and must be disclosed in the PR rather than disguised as compatibility. Unknown errors do not justify a new text fallback. An unauthorized family remains terminal and maps to ADB_TRANSPORT_UNAVAILABLE even when its wording lacks the host-refusal prefix. This preserves the terminal category through typed evidence.
Load Android mechanics before installing the test clock. Drive readiness retry timers virtually, including closest negatives, so an incorrect retry fails by its bounded call-count/reason assertion instead of a wall-clock test timeout. Strengthen the existing cancellation test to require request_canceled. Keep the proof's stated local-readiness-port boundary: it proves neither HTTP/admission nor readiness-route deadline/cancellation propagation. No new production test seam is authorized.
The optional allowFailure-option pin is not added at root runCmd: runAndroidHostAdb deliberately forces allowFailure=true at that host boundary and classifies the returned failure itself. Such a pin would not prove the boot consumer's option. Retain behavioral producer/consumer cases instead.
#4442 retains the sole execution slot. These Android source/test fixes are authored and formatted without tests, build, typecheck or gate. New focused, mutation/base, current-head review and exact validation remain required after the slot transfers. Preserve the failed historical gate, unreached native seam and #4512 cause-unproven state.
thymikee commentedon Nov 14, 2026
Current state: The November14 read-only review atffd9f98b found two P2s in #4426: typed transient adb failures were terminal, and the root readiness proof waited through real retry delays. The coordinator adopted the finite correction in #4426 (comment) and committed0e98de50e462c1c6975637e23998eabe8aaa1966, clean and unpublished.
The boot consumer now honors retriable producer verdicts without error-text matching, keeps device-not-found host refusals terminal and retains the offline exception. Unauthorized classification is preserved for unprefixed typed observations. The proof loads mechanics before a virtual clock, adds protocol/transport/terminal controls, and strengthens cancellation to require request_canceled. Unclassified error: closed remains terminal and must be disclosed as a compatibility limit.
Pinned full format and diff-check passed. Tests, typecheck, mutation/regression discrimination and the new exact gate are NOT RUN. They queue behind #4442, which retains the sole execution slot. The proof covers the real local-readiness port, not HTTP/admission or readiness-route cancellation/deadline propagation. Historical failed gate, unreached native seam and #4512 cause-unproven state remain. No new worker, device, push or publication was started for these small fixes.
thymikee commentedon Nov 14, 2026
Current state: The exact affected gate passed at 0e98de50e462c1c6975637e23998eabe8aaa1966 with exactCommit=true and checkoutChanged=false. Eight checks passed, including 19,783 unit tests (10 skipped) and 376 related tests. Coverage and Android replay were skipped; provider integration was deduplicated. Focused controls passed 21/21, the old-production experiment failed 11 tests, and six mutants failed at assertions. M4b survived: removing the post-getprop abort check was not detected. These results retain their original SHA attribution; the historical c7bb failure and #4512 remain unchanged.
The independent correction review found no P1/P2, but identified a P3: a typed host-kit command timeout without adbFailure lost ANDROID_BOOT_TIMEOUT. The coordinator fixed that consumer using isCommandTimeoutError and added changed-wording/typed-positive and timeout-wording/untyped-negative cases. The cancellation test now covers getprop returning both 0 and 1, to detect the surviving guard mutant. Local head a804bea4b7aee0f5c4b850186ee0ceec38cda323 is committed and clean; full format and 24 focused tests passed. New mutation detection, independent recheck and exact-head validation remain pending.
One Claude worker now owns sequential proof and exact validation of the PR4544 CI-fixture correction, then this Android correction. A separate reviewer reads the small deltas only. No concurrent local gates, device runs, polling or publication. Native boot remains unproven; the proof covers the local readiness port, not HTTP/admission or route cancellation/deadline propagation. Unclassified error: closed remains terminal by Decision.
thymikee commentedon Nov 14, 2026
Current state: The new a804bea4 gate FAILED at typecheck despite 24 focused tests passing. TS2339 at emulator-lifecycle.ts:106 came from calling an AppError type guard on an already typed AppError before reading details in the other OR operand. The false branch narrowed that operand to never. Format and lint passed; later local checks did not run. The failed receipt is retained, not replaced by the earlier 0e pass.
The coordinator corrected the condition order at 8c939217cf2f5d6bdea22003b3b82ddabef40881. The two pure timeout alternatives and all diagnostic/terminal precedence remain the same. Full pinned format, whole-repository typecheck and the 24 focused tests now pass. A new exact gate and bounded source recheck are next; this head is unpublished.
The a804 experiment caught both the former surviving post-getprop abort mutant and removal of the shared typed-timeout check, each with 1 failed / 23 passed and restored 24-pass controls. Tests are unchanged in the type repair, and mutation evidence keeps its original SHA attribution. Native boot remains unproven; #4512 and the historical c7bb failed receipt retain their recorded unknown causes. The root readiness test does not prove HTTP/admission or route cancellation/deadline propagation.
thymikee commentedon Nov 16, 2026
Decision: request-readiness cancellation owner for #4426:
The resumed Android candidate is rebased cleanly on current main at unpublished f9ac96179485ecfdb075813bd7b6659917ea58fc. Its local exact gate passed with exactCommit=true, checkoutChanged=false and full #4050 unit selection. Base detection fails13/passes11; four mutants are detected and the separately disclosed isCommandTimeoutError-only mutant survives because this producer seam co-stamps adbFailure=timeout. Historical #4512 causes remain unproven. No native or CI authority is inferred.
Source inspection confirms the remaining request-path gap: EnsureLocalDeviceReady takes DeviceInfo only; ensureDeviceReady and ensureBoundDeviceReady do not carry PlatformRequestScope.signal to the root Android waitForAndroidBoot call. Under the user's explicit request-route cancellation/deadline completion scope, transfer this bounded shared-port fix to Terra. Use the existing request-signal/deadline owner and root platform composition. Forward the effective request signal through readiness; preserve typed caller/expiry evidence, existing finite boot budget and readiness-cache validity. Do not add another timeout/cache/framework or change unrelated platform policy. Extend real request-route tests and prove a dropped forwarding edge is detected. A helper-only test does not close the route gap.
The completed Apex worker has released the sole execution slot; Terra alone receives it. Other Apex assignments remain source-only and retain their16:37UTC cutoff. The unfinished native Android proof still needs a safely assigned T3 device. Foreign booted devices and unproven stopped AVDs remain excluded. No new timer, merge, release, tags, publication or cleanup.
thymikee commentedon Nov 16, 2026
Current state: active #4610 completion worker assigned; core readiness-scope placement adopted
The user explicitly requested a worker to make #4610 good. One Claude completion owner now owns the clean canonical Android checkout and stopped owned API35AVD, with source, request-route/cutoff regressions, isolated discrimination, committed exact validation and final-head live daemon-route success/cancellation proof in its assignment. This is active completion authorization, not scheduled-backstop work. Root independently reviews and publishes; the worker does not push or watch.
Decision6946057975 adopts Astra's bounded core factory placement for ordinary request-bearing callers, retaining explicit lower/resource/recovery scopes and the replay parent-abort relay. Decision6929136812's synchronous cutoff remains binding before cache-hit return and after readiness wait. Existing finite retry/boot budgets, typed causes, provider boundaries and deadline owners stay unchanged; only unnecessary readiness pass-through fixture plumbing is removed.
The published head remains3c1cb569742bc4e158ff0cd6703ab26f40a07193, blocked draft with its existing watch. Prior local/CI passes retain3c1cattribution; the API35directboot-owner proof remains at5721 and does not close the human request6926111114 for final-head HTTP/native cancellation. Prior native preparation used zero boot attempts and ran neither required live proof. The worker must revalidate the prepared scripts/client versions and supply actual telemetry/child cleanup.
The host had a foreign live validation owner at assignment. Source proceeds; validation queues through the repository's standard lock without removing or signaling the foreign owner, adding wrappers, or claiming a contention cause. The worker owns this thread's sole execution slot; other scopes remain queued. The timer must not duplicate it.
#4512's recorded readiness policy and historical helper/guard/WebOS/API36 causes remain unproven; all failed/inconclusive and mutation-limit receipts are retained. A new pass does not diagnose them or waive the block. No merge/release/tag, foreign resource action or cleanup wave is authorized.
thymikee commentedon Nov 16, 2026
Decision: synchronous readiness cutoff before dispatch:
The maintainer explicitly chose synchronous cutoff enforcement for #4610: readiness must refuse dispatch as soon as the effective execution or recovery cutoff passes, even if its abort timer callback has not run. This resolves the cutoff question in human review6926111114.
Enforce the cutoff before readiness returns a cache hit and after the local readiness wait, so an expired admitted step cannot dispatch in the delayed-timer window. Preserve earlier caller cancellation and typed expiry evidence. Keep recording recovery on its own scope and cutoff. Existing finite boot budgets, command timeout policies and single-command client-envelope semantics remain unchanged. This does not introduce a new general cache policy or weaken the no-publication guarantee after caller cancellation.
This adopts the behavior, not a particular implementation. It does not require the owner Set, parent-chain machinery, or an explicit requestScope argument. The maintainer requested a Codex Astra double-check of scope construction from req in daemon core versus explicit argument threading. That design choice remains open until the assessment; no source, fixture or deadline-owner topology changes are adopted here. Do not replace synchronous enforcement with AbortSignal/timer-delivery-only behavior or remove its detecting regressions as superseded.
The native route proof remains unrun: setup at3c1c passed, then a live foreign validation owner blocked device work before any boot attempt. Prepared scripts and the stopped owned API35AVD are retained. #4610 stays a blocked draft under#4512. Historical causes remain unproven. No merge, release, tag or cleanup is authorized by this Decision.
thymikee commentedon Nov 17, 2026
Decision: adopt bounded core readiness-scope construction and resume #4610 completion:
The user explicitly instructed the coordinator to send a worker to make #4610 good and to act on follow-ups instead of repeating status updates. Adopt Astra's completed, source-grounded recommendation: move the existing createPlatformRequestScope factory from daemon server to core and construct ordinary readiness scopes at the request-bearing call sites. Retain explicit scopes at request-free admission/binding seams, resource ownership and recording recovery. Remove only readiness-only pass-through fixture/argument plumbing; preserve semantic regression assertions. Do not add optional compatibility fallbacks, new scope caches or timers.
Decision6929136812's synchronous execution/recovery cutoff remains binding before cache-hit return and after readiness wait, with typed evidence and earlier caller cancellation. Preserve live deadline lookup and existing deadline owners. Retain the replay cancellation relay: the parent link alone has no abort-event subscription. Recording recovery keeps its own scope/cutoff. Existing boot retry policy6876280645, finite budgets, provider boundaries and timeout semantics stay unchanged.
Assign one Claude completion owner to the clean canonical Android checkout and the stopped owned API35AVD(local/audit4368_nov16_api35_7c87b90e). The worker completes source, detecting request-path/mutation proof, exact-head validation and real daemon-route boot/cancellation evidence; root independently reviews and publishes the correction. This active user authorization is separate from the scheduled backstop. Initial host-lock contention is not a reason to abandon source completion: preserve the foreign owner and queue validation through the existing repository lock. No blind retries, lock removal, new lock wrapper or foreign resource action.
#4512's readiness policy and historical cause-unproven receipts remain until the recorded requirements are satisfied or a separate finite Decision changes them. Do not infer waiver, Linux/device evidence, merge or release from this assignment. The hourly backstop remains one timer and must not duplicate the worker. No merge, release, tag, other implementation scope or cleanup wave is authorized.