Business · Product · Technology · AI

Preserve uncertainty while preparing identity fields for review

A Movo-X native case tracing labelled card fields, selected date suggestions, cross-side conflicts, advisory grades, suffix presentation and the constructed review-submission boundary.

Work directly with Omer Muneer Qazi · Reviewed 29 November 2026

The scenario: extracted fields should retain their uncertainty

A document-reading flow can identify a likely name, number and date without knowing that every value is correct. It should preserve missing fields, disagreements between sides and the distinction between a readable pattern and verified identity. Preparing those values for review is a separate job from granting record access.

Ten existing Android JVM cases and eight portable Swift cases passed against selected Movo-X card extraction and submission rules. Inputs are synthetic text, models and small image-signature fixtures. The actual camera/OCR, review interface and authoritative decision process were not exercised. The value of these cases is making uncertainty visible at the local construction boundary.

Use labels to keep dates attached to their meaning

The selected CNIC cases distinguish date of birth, issue date and expiry date by labels. An issue date does not become a substitute birth date. Unlabelled dates in a selected text fixture remain unassigned for the corresponding fields, and selected impossible/future birth-date examples are refused. A Swift case also checks that a missing label value does not steal the following field.

These fixtures establish decisions for their particular layouts. They do not prove recognition of every language, document edition or printed arrangement. Retain absent values when the evidence is insufficient, then let the review stage resolve them. A complete acceptance corpus should include adjacent labels, broken line ordering and dates with ambiguous formatting.

Keep number-derived suggestions distinct from verified personal facts

The selected MyKad cases exercise the application’s date/sex suggestions and pattern flags using synthetic numbers and printed text. Android cases also lower the selected grade when printed sex conflicts with a numeric hint. A Swift fixture leaves a selected future date absent. These describe the application’s heuristic rules for the supplied text.

They are not a validation of every nationally issued number, a registry check or proof of a person’s age or sex. Country-specific rules and real-world variations require authoritative review before broader claims. The chapter uses those parser outputs as candidates for review, rather than treating a number pattern as a substitute for verified identity information.

Keep a disagreement instead of silently replacing the earlier value

The Android cross-side case supplies two different synthetic card numbers and checks the conflict set and low grade. The Swift case explicitly checks that the first selected value remains while the document-number conflict is retained. This makes the disagreement inspectable rather than choosing whichever side happened to arrive later.

The merge helpers also normalize selected values before comparison. These cases concern numeric card examples; they do not establish every alphanumeric-ID or whitespace/transliteration combination. Extend acceptance around equal-looking values, repeated edits and different document types before claiming universal conflict detection. A conflict flag is useful evidence for review, not a conclusion about which source is correct.

Define advisory grades and suffix presentation separately

A selected Swift case grades document-number patterns, and the constructed-submission case forces a conflicted number to low even when its prior grade was high. The Android suffix case checks selected number endings and refusal of a too-short input. These are different purposes: one guides review, while the other provides a shorter reference value.

A suffix is not a unique identity, proof of control or an end-to-end redaction guarantee. The parser still holds full candidate fields in its model. Likewise, high/medium/low are selected policy labels rather than measured probabilities. Trace display, cache, diagnostics and authoritative payload projection independently before claiming broader privacy or verification behaviour.

Treat document order as a convenience rather than a restriction

The native document-order cases prioritize a selected card type for a clinic country and retain the other supported choices. That helps an interface offer a likely starting point while preserving alternatives. The tests check the ordering contract, not the person’s nationality or which document they are required to possess.

Accept actual country changes, unknown country context and different supported documents in the installed flow. Country-derived presentation defaults should remain separate from authority to submit or link a record. A selected default in a list does not authenticate the document or establish any legal identity requirement.

Construct the expected image-side and field payload

The portable Swift submission cases check one data-page image for a passport, two ordered image entries for a card, a selected JPEG-signature refusal, omitted blank fields and confidence labels. They inspect a facility-specific consent object and selected country/side fields in the encoded body. Small synthetic byte fixtures are used.

That is request construction, not actual image decoding or evidence that someone consented. The constructor includes a granted value; the UI must still collect the intended user action before calling it. The inspected Android review source tracks review/consent state and resets it after selected changes, but those controls were not mounted or clicked in this batch.

Keep submission shape separate from authoritative review

The inspected server route validates its selected document/side and consent shape and reserves authorization before expensive image work. That connection is source-only here; the native cases do not execute the API, object store or clinic reviewer. A client body containing a field or grade does not establish how each value is retained or displayed downstream.

Verify the current server projection, image processing, repeated-request behaviour and actual reviewer view with controlled data. Keep submitted, rejected and reviewed meanings distinct from government identity verification and clinical-record permission. The selected constructors and parsers do not grant access, approve a person or establish a completed review.

A candidate-field engineering handover

Retain the eighteen scoped cases and add actual OCR/layout evaluation, alphanumeric conflict cases, user edits and review-state restoration. Accept the installed image/review controls, authoritative payload projection and responsible reviewer workflow separately. Keep raw candidate values out of ordinary logs while verifying actual storage and retention through their own evidence.

For a CTO, the useful contract is clear: parsing prepares candidates; labels preserve meaning; conflicts preserve disagreement; review and consent are explicit interaction stages; authoritative services decide submission and access outcomes. The selected tests support the local preparation boundary without turning a pattern match or encoded consent field into verified identity.

Compare the reviewed boundaries

Candidate preparation and identity authority require separate evidence

On smaller screens, scroll across to compare every column. Keyboard users can focus the table and use the arrow keys.

BoundarySelected evidenceSeparate acceptance
Field meaningLabelled/missing/impossible-date fixturesActual OCR layouts and authoritative country rules
DisagreementSelected numeric-card conflict/grade casesAlphanumeric formats and installed review interaction
Submission shapeSynthetic side/blank/grade/consent-object casesActual consent, image decode and server projection
Review outcomeNo actual reviewer or clinical link in this batchCurrent responsible decision and record authority

Illustrative control flow

Pseudocode summarizing the decision boundary. It is not copied production code or a deployment instruction.

candidates = extract_labelled_fields_and_selected_suggestions(text)
merged = preserve_selected_values_and_mark_cross_side_conflicts(candidates)
await_explicit_field_review_and_applicable_consent()
submission = construct_expected_sides_and_present_fields(merged)
# Pattern grades and encoded fields do not decide identity or clinical-record access.

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 ↗
WhatsApp Omer about this project ↗