The scenario: remove from family needs a precise meaning
A household list, its relationship graph and access to clinic records describe different things. An action labelled remove can be ambiguous unless the interface states which of those things the person intends to change. It should not quietly turn a list-management action into a broader access decision or a promise to erase medical records.
The selected Movo-X Android workflow carries an explicit revokeLinks Boolean with its person-removal request. Eight selected JVM cases and one portable Swift case passed for local rules, request shape and selected relationship handling. This chapter follows those boundaries. The authoritative removal transaction and actual clinic access changes were not executed.
Decide which removal action the client offers
The selected Android predicate offers deletion for a person who is not managed by another account, is not the account holder and is active or marked deceased. Existing cases cover an ordinary owned person, the self person, a managed person, a claimed status and a selected deceased fixture. The predicate decides whether to offer a client action.
The inspected Swift model has corresponding deletion and relation-editability predicates, but those particular model predicates were not executed here. A visible button is not server permission. Current ownership, person status and session authority must still be enforced by the responsible service, especially when the displayed household becomes stale before the user confirms.
Carry clinic-access intent as an explicit Boolean
The selected Android rule offers the clinic-access choice when the loaded person model has clinic records. The inspected dialog presents the available removal choices and calls a client method with the chosen Boolean. A JVM fake-server case checks a DELETE request, person path, request ID and revokeLinks true body. The portable Swift case independently checks the same true field and a decoded response.
Those cases do not execute the false branch against an authoritative backend. They also do not prove the completeness of the loaded clinic-record list. The inspected server route requires an explicit Boolean and rejects unexpected fields before forwarding the person_remove action. That route validation was source-reviewed, rather than executed in this batch.
Read a removal receipt without inventing erasure guarantees
The selected client response carries ok and linksRevoked fields. The test fixtures return synthetic counts and check decoding; they do not revoke actual links. A returned count is useful only with the current backend’s defined transaction and response semantics. The native type alone cannot establish which records were changed or retained.
Avoid translating a person-removal request into a claim that all clinic documents, audit history, backups or separately shared copies were erased. Those are independent retention and access surfaces. Acceptance should identify the account’s household entry, graph edges, clinic links and durable medical records individually, then verify the intended outcome for each under the current service contract.
Keep relation direction consistent with its human preview
The selected relation request includes another person, a relationship label and a direction. For direction of, the other person is described as the relation of this person; is reverses that interpretation. An existing JVM case checks both request direction and the two names used in the preview sentence.
This is a small but important contract: a sentence such as one person being the mother of another should not reverse during serialization. It is still a user-supplied relationship representation, not proof of biological, legal or care authority. The UI preview, API direction and graph representation need to agree without being treated as an authorization grant.
Limit candidate lists without relying on them for authorization
The selected candidate helper excludes the current person, managed people and unsupported inactive states, while retaining the selected eligible active/deceased entries. Its existing case checks the resulting candidate IDs. A separate rule case covers when the client permits relation editing, including the self person and a deceased person.
Filtering makes the interaction clearer but cannot establish that a later request remains permitted. The selected server route separately checks UUID/relationship/direction shapes and forwards the operation under its surrounding context. Those validation branches were inspected only. Cross-account ownership, changed status and graph invariants require authoritative service tests rather than trust in a filtered dropdown.
Distinguish relation conflict from a successful graph change
One existing JVM case classifies a selected conflict response separately from a generic invalid-request response. Another decodes a fake relation-list response and verifies the GET path and a graph-node name. The inspected dialog keeps conflict state distinct from other errors, applies returned relationship/graph data after accepted calls and uses request identities for mutations.
That source connection is not an executed transaction or a complete graph-integrity test. It does not establish cycle handling, duplicate relationship policy, concurrent edits or stale-node removal. The authoritative service needs explicit invariants, and native recovery should use the returned graph rather than assuming the locally proposed edge was committed.
Separate local refresh from current server acceptance
The inspected removal dialog retires its request identity after a successful client call and refreshes clinic scope when access revocation was requested. Relation actions similarly use returned state and trigger an external change callback. These are recovery and reconciliation intentions in source; the UI callbacks and refresh paths were not instrumented here.
A network response can be lost after a committed write, so retry acceptance also needs current request-replay semantics. Test both requested access choices, changed person status, a refused session and repeated requests in an isolated authoritative environment. A fake response and a stable request header are useful inputs to that work, not evidence that durable replay is already correct.
A household-action handover for product and engineering
Retain the nine scoped cases and add device-level confirmation wording, both revokeLinks choices, stale household refresh and current database acceptance. Verify graph direction and ownership independently from clinic access. Specify any retained record surfaces explicitly before promising removal or erasure outcomes to users.
For a CEO or CTO, the useful model is precise: household membership, relationship meaning and access permissions have separate lifecycles. The selected native tests make several client decisions and request contracts reviewable. A complete acceptance package still requires authoritative mutations, concurrency/retry checks and an installed interface that communicates the actual consequences clearly.
Compare the reviewed boundaries
Household actions should name the boundary they change
On smaller screens, scroll across to compare every column. Keyboard users can focus the table and use the arrow keys.
| Boundary | Selected evidence | Separate acceptance |
|---|---|---|
| Removal offer | Synthetic person-status predicates | Current ownership and server permission |
| Clinic-access choice | Explicit true request and fake receipt | Both choices and durable link effects |
| Relationship direction | Request direction and name ordering | Authoritative graph invariants |
| Reconciliation | Fake list decoding and source callbacks | Lost responses, retries and native refresh |
Illustrative control flow
Pseudocode summarizing the decision boundary. It is not copied production code or a deployment instruction.
choice = explicitly_confirm_household_and_access_intent()
receipt = request_person_removal(person_id, revoke_links=choice)
reconcile_from_authoritative_result(receipt)
# Relationship edges have their own direction, permission and conflict contract.
# A client removal receipt does not establish clinical-record erasure.About this engineering series
Written by Omer Muneer Qazi from a review of Movo-X implementation and dated engineering records. This article explains source behaviour and historical observations; current production, clinical outcomes and store availability require their own verification. Examples are synthetic and proposed test cases are identified as such.
Explore the Movo-X engineering series → · Related implementation experience →
Discuss a similar engineering problem
Send the workflow, current platform and the decision your team needs to make. I can help define an implementation or review scope with concrete acceptance evidence.
Discuss your project on WhatsApp ↗