The scenario: several objects look like messages but have different audiences
An episode screen can show a conversation with an assistant alongside a family member’s private note. A reviewer can later receive selected content from that episode. If every text-like object is flattened into one transcript, those distinct audiences and sharing choices become difficult to preserve.
The inspected Movo-X implementation keeps family notes and AI turns as different objects. This case traces selected SQL projections, native decoding and the route’s provider input. Three existing portable tests and one supplemental synthetic adapter case establish limited runtime behaviour; the SQL was inspected without executing it against a live database.
Store a family note as its own domain object
The reviewed episode-note operation writes to a note-specific table with episode, person, author and client-request references. It is not an insertion into the AI-message table. The operation returns a note collection through a note-specific JSON projection.
That separation gives a family annotation its own identity and lifecycle rather than pretending the assistant said or received it. The source also applies selected access and input checks, but this review does not establish live database permissions, encryption key handling or every possible note-retention path. Those require authoritative execution and operational evidence.
Return notes beside conversation messages rather than inside them
The inspected episode-conversation projection returns messages and notes as separate fields. The AI-message projection used for internal turns reads the AI-message table and selected ready attachments. The family-note collection is assembled through its separate helper.
This source trace explains the intended boundary in that pinned pipeline. It does not prove that every future projection or export preserves it. A new aggregate endpoint should explicitly decide which text belongs to which field instead of assuming that two collections can be combined merely because both have text, an author and a timestamp.
Preserve the distinction in the native model
The Swift conversation decoder has a dedicated note collection alongside messages. The selected fixture includes a note and a malformed note entry, then checks that the valid note remains available while the AI-message list stays empty. Another fixture checks the older response shape without a notes field.
A third fixture checks the episode summary’s note count and its older-shape default. These are decoding and representation checks, not a real screen test. They do not prove that every view uses the right visual label or that a note can never be manually copied into another text field by a person.
Check the actual provider adapter with a synthetic note marker
The AI message route supplies reserved turns and optional structured context to its provider adapter. The supplemental fixture gives the fake reservation response a separate note collection containing a unique synthetic marker, then captures the mock provider request.
The request contains the selected turn text and does not contain the note marker. This checks that selected route-to-adapter path without contacting an external provider. It does not execute the SQL that created the reservation response, and it does not imply that a person’s explicit AI-message text or separately consented context can never contain similar information.
Separate exclusion from AI history from selected human sharing
The later second-opinion source includes notes in a reviewer projection only when the share’s include selection contains the notes category. That is a different audience decision from building AI conversation history. The inspected projection also represents conversation content and other episode categories separately.
Consequently the accurate claim is not that notes are never shared anywhere. They are a separate content type with selected paths for display and review. This source observation is not a complete reviewer-permission, share-creation or revocation assessment, and no real share or reviewer session was created during the research.
Keep counts, authorship and completeness honest
A note count is not an AI-message count, and keeping a note separate does not turn its content into a clinician-verified record. The supplied native fixtures exercise selected malformed-entry isolation, so a successfully decoded list can also be partial.
The interface should preserve content labels and explain any completeness contract on which an action depends. A timeline, export or reviewer view needs its own evidence for ordering, inclusion and access. The selected tests do not certify that every representation of an episode contains the same complete set of text or that every downstream consumer applies the same policy.
A useful message-like-data acceptance package
Keep separate fixtures for note storage/projection, native collections, provider input and selected reviewer output. Use a synthetic marker to detect accidental boundary crossing, and trace the authoritative source of each collection rather than only asserting that a field exists in a client model.
For a CTO, the benefit is a data flow whose audiences can be described precisely. The pinned source and four scoped cases establish selected separation without making a blanket privacy guarantee. Installed database definitions, actual sharing permissions, lifecycle handling and visual labels remain independent acceptance work. Reviewer acceptance should check both explicit note inclusion and explicit exclusion under the same authorized share context.
Compare the reviewed boundaries
Text objects with different destinations
On smaller screens, scroll across to compare every column. Keyboard users can focus the table and use the arrow keys.
| Object or projection | Inspected role | Separate acceptance |
|---|---|---|
| Family note | Distinct episode annotation collection | Actual write/read permission and lifecycle |
| AI turns | Selected message history sent through adapter | Authoritative reservation and provider handling |
| Native note collection | Separate decoding and summary count | Installed screen labels and completeness |
| Reviewer notes | Included by selected share category in source | Real share permissions and revocation |
Illustrative control flow
Pseudocode summarizing the decision boundary. It is not copied production code or a deployment instruction.
episode_view = {messages: ai_message_projection(), notes: family_note_projection()}
provider_body = build_from_reserved_turns_and_eligible_context()
reviewer_view.notes = selected_share_includes_notes ? family_note_projection() : []
# Separate collections keep audience decisions explicit; they do not certify every downstream path.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 ↗