Repository navigation
ADFA-5147 — a damaged system reads as damaged, not as "no system" - #407
Merged
luisguzman-adfa merged 3 commits intoAug 15, 2026
Merged
Conversation
A system left on the phone but unbootable — a killed install or clone — showed on Home as "no library", and the header offered to install over it. That is the misdiagnosis that sent a night at rsync while the cloned system was intact. isSystemInstalled() folds "no rootfs" and "marker set" into one false, so the !installed branch answered both with H_NO_LIBRARY. It now asks the one owner of that distinction — InterruptedInstallDetector, the same verdict the launch recovery dialog uses — so Home and the dialog cannot disagree. A live install, module queue or deep op still reads as work, not damage. New H_DAMAGED header state: clay dot, "needs repair", and a Recover action to the recovery screen, not Install. The state is derived on every render from disk and memory, so there is nothing to persist or clear. Two strings, 33 locales. The launch predicate is untouched: this makes the destination honest instead, so the diagnosis no longer depends on which branch was taken to reach Home.
Finding 2 pointed at ADFA-5106, which was a duplicate of 4897, so it had no real owner. Now ADFA-5146, with the note that the expiry needs only an in-memory timestamp, not the durable record. Finding 4 is now ADFA-5147, with the ledger and NEXT cards it never had.
…ified Finding 4 moves to CLOSED (green): Home now asks InterruptedInstallDetector and shows "needs repair" + Recover, verified on device. The roadmap card goes to DONE. Scope was the diagnosis; the surfaces a systemless user can still wander are findings 5/7, now owned by ADFA-5150 and ADFA-5151. Also records, as a CARRIED bullet, the clone-receive that reopens onto the fork instead of the progress screen (CloneFragment re-binds SEND but not RECEIVE) — no ticket yet.
luisguzman-adfa
deleted the
fix/ADFA-5147-damaged-system-reads-as-no-system
branch
August 15, 2026 00:03
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.
A system left on the phone but unbootable — a killed install or clone — showed on
Home as "no library", and the header offered to install over it. It is finding 4 of
state-spine.svg, and the misdiagnosis that sent a night at rsync while the clonedsystem was intact.
What changed
isSystemInstalled()folds "no rootfs" and "marker set" into onefalse, so Home's!installedbranch answered both withH_NO_LIBRARY. It now asksInterruptedInstallDetector— the same verdict the launch recovery dialog uses — soHome and the dialog cannot disagree about what a marker means. A live install, module
queue or deep op still reads as work, not damage.
New
H_DAMAGEDheader state: clay dot, "needs repair", and a Recover action to therecovery screen rather than Install. It is derived on every render from disk and memory,
so there is nothing to persist or clear. Two new strings across 33 locales.
The launch predicate is untouched — the destination is made honest instead, so the
diagnosis no longer depends on which branch reached Home.
Also updates
state-spine.svgandoperation-model-roadmap.svg: finding 2 → ADFA-5146(it pointed at 5106, a duplicate of 4897), finding 4 → ADFA-5147.
Verification
Detector truth table checked for the six paths: empty phone → no library; cold launch
with a stale marker on a system that won't boot → damaged; live install / module queue /
deep op → not damage. On-device: the three doors (held lock, running queue, cold with
marker) and the empty-phone case.
Known follow-up
The 5-signal gather that feeds the detector now lives in two callers (Home and the launch
predicate). The rule is owned; the assembly is not. A data-side wrapper would fix it but
touches the recovery predicate — deferred, not done here.