feat(ios): drafts keep the relation the server supplied, and Ember's its mark (42003c1) #1382
All Vouch review confidence checks passed
Residual risk 0.20 = Change Risk (0.37) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 239 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.328
Real PR Conversation Timeline
1 comments
"Review active on #1382"
general
weight: 0.35
scottopell
What
The first of four PRs for task 42003(c) (REQ-IOS-026,
ios_draft.alliumNewerServerRelationIsStored). It is the data the read-only blocks will need. There is no UI change.list,product_history;lookupcomes in c2).- Lists: every list the app applies records the relations it supplies, whether from a refresh (
ConversationListStore.refresh) or a reconciliation (applyExternal), on every non-empty draft, open or only stored.- Product History: each History the app loads does the same for its segments' rows.
- What counts: only server-supplied identities, as
Conversation.serverIdentityandrowsPlaced(by:)define them. A row id standing in for one is never recorded. A newer relation replaces the stored one, and a list that omits a row leaves its relation as it was.Follow-ups, each stacked on this one: c2 the lookup by row id, c3 the blocks above the composer and in History, c4 other rows' queue entries.
Tests
DraftStoreTests(Catalyst):- a relation is kept with its source, replaced by a newer one, and kept when a list omits the row;
- a stored draft that is not open gets its relation too;
- the Coordinator mark is kept, and an older file reads as unmarked.
ReconciliationIdentityTests.testAListGivesADraftItsRelation: a reconciled list gives a stored draft its relation. It fails without the list hooks.AppModel.🤖 Generated with Claude Code