Skip to content

ADFA-5147 — a damaged system reads as damaged, not as "no system" - #407

Merged
luisguzman-adfa merged 3 commits into
mainfrom
fix/ADFA-5147-damaged-system-reads-as-no-system
Aug 15, 2026
Merged

luisguzman-adfa merged 3 commits into
mainfrom
fix/ADFA-5147-damaged-system-reads-as-no-system

Conversation

@luisguzman-adfa

Copy link
Copy Markdown
Collaborator

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 cloned
system was intact.

What changed

isSystemInstalled() folds "no rootfs" and "marker set" into one false, so Home's
!installed branch answered both with H_NO_LIBRARY. It now asks
InterruptedInstallDetector — the same verdict the launch recovery dialog uses — so
Home 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_DAMAGED header state: clay dot, "needs repair", and a Recover action to the
recovery 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.svg and operation-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.

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
luisguzman-adfa merged commit b5d6d1c into main Aug 15, 2026
3 checks passed
@luisguzman-adfa
luisguzman-adfa deleted the fix/ADFA-5147-damaged-system-reads-as-no-system branch August 15, 2026 00:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant