Skip to content

feat: add Destination Caller ID column to SMS artifact - #1983

Merged
abrignoni merged 5 commits into
abrignoni:mainfrom
vikrosj:feat/sms-destination-caller-id
Sep 7, 2026
Merged

abrignoni merged 5 commits into
abrignoni:mainfrom
vikrosj:feat/sms-destination-caller-id

Conversation

@vikrosj

@vikrosj vikrosj commented Aug 17, 2026 •

Copy link
Copy Markdown
Contributor

message.destination_caller_id records the local phone number the device used for a given message transaction (e.g. useful on dual-SIM or multi-identity devices). Account/Account Login fields is still kept. Uses destination_caller_id to label sent messages in the threaded conversation view, replacing the existing message.account value.

For reference to destination_caller_id see thebinaryhick

message.destination_caller_id records the local phone number or Apple
ID email the device used for a given message transaction, which is
more precise than the existing Account/Account Login fields (e.g.
useful on dual-SIM or multi-identity devices). Also use it to label
sent messages in the threaded conversation view, replacing the
prefixed message.account value.

Co-Authored-By: Claude Opus 5 <[email protected]>
@abrignoni

Copy link
Copy Markdown
Owner

Thanks for the contribution!

The changed artifact modules cite public research images in their sample_data, so a maintainer can generate the test fixtures from those images. Nothing is needed from you, though you are welcome to add the fixtures yourself with admin/test/scripts/make_test_data.py.

  • sms.py: cites abe_ios16, ctf2020_ios12, dexter_ios18, felix23_ios16, felix_ios17, hickman_ios13, hickman_ios14, iphone11_ios17, iphone12_ios18, iphone14plus_ios18, magnet_ios16, otto_ios17; a maintainer can generate the fixture.

@abrignoni abrignoni added the fixture-needed Cites a public image; a maintainer can generate the fixture label Aug 25, 2026
@abrignoni

Copy link
Copy Markdown
Owner

Thanks for adding this, the destination caller ID is a good column to surface.

Two things before this can merge.

The DataFrame column list in the chat-view block got reordered when the new column went in, but the data_list tuples kept their original order, so 20 of the 22 positions now carry the wrong label. Running the module against the committed sms test case (josh_ios15_ffs) crashes with KeyError: 'image.000000.jpg' in chat_rendering.py, because the tuple's attachment filename lands under content-type. The report table itself is fine, data_headers and the tuple still agree. The fix is one list: keep the original column order and insert 'Destination Caller ID' at position 15, right after 'Account Login', which is where record[22] sits in the tuple.

Second, the new column changes the recorded output shape, so the sms baseline needs re-recording in the same PR once the fix is in: run python admin/test/scripts/test_module.py sms -a all -c all, commit the new snapshot in admin/test/results/sms/ and delete the superseded one.

The test case data is already in the repo, so the crash reproduces with the command above.

@vikrosj

vikrosj commented Sep 7, 2026

Copy link
Copy Markdown
Contributor Author

Thanks for your reply! I haven´t had a chance to look into this yet, but I will start today, and hopefully fix the issues:)

vikrosj and others added 2 commits September 7, 2026 10:32
The DataFrame column list feeding the threaded chat view still reflected
a pre-column-reorder layout, so 20 of 22 positions carried the wrong
label and the attachment content-type landed under the wrong key,
crashing chat_rendering.py with KeyError on any SMS attachment. Rebuild
the column list to match the current data_list tuple order, inserting
'Destination Caller ID' at position 15 where record[22] sits.

Re-recorded the sms baseline (josh_ios15_ffs) since the new column
changes the output shape.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
@vikrosj

vikrosj commented Sep 7, 2026

Copy link
Copy Markdown
Contributor Author

The DataFrame is now the correct length and order, and Claude ran the test again so the test result is updated also. This included some changes from a previous PR as well, which reordered the data_headers and data_list as well. Hopefully things look good now! Glad to hear that you also found Destination Caller ID a good column to surface! :)

Rebuilds the Destination Caller ID column on top of main, so Sender, Chat
Name and Chat Participants stay in the query and the row tuple indices line
up again. Headers, row tuple and the chat-view DataFrame are all 25 columns.

The conversation view takes its sent-message label from Destination Caller
ID, which holds the bare local number where Account carries the
service-prefixed form. senderColumn stays on Sender.

Baseline regenerated from the committed josh_ios15_ffs case: 48 rows,
Destination Caller ID on 44 of them and on all 15 sent rows.

Co-Authored-By: Claude Opus 5 <[email protected]>
@abrignoni

Copy link
Copy Markdown
Owner

Thanks Viktoria, the destination caller ID is a good column to have.

I pushed a commit to the branch that rebuilds it on top of main, so Sender, Chat Name and Chat Participants stay in the query and the row indices line up. Baseline regenerated from the josh_ios15_ffs case: 48 rows, with Destination Caller ID on 44 of them and on all 15 sent rows.

The conversation view now takes its sent message label from it, since it holds the bare number where Account carries the P: prefix.

Adds a notes entry for the new column: destination_caller_id as stored, the
number of the account used to send or receive the message, cited to Josh
Hickman's dual SIM write-up. Records what was measured across the tested
images: filled on all 737 sent rows and 1,257 of 1,281 received rows, more
than one identity on 7 of the 18 that hold messages, values that are not
always phone numbers, and one line stored in more than one spelling.

The blank Sender sentence named group participant and title changes as the
example. Measured across the tested images, a shared location start or stop
is the commoner cause, so the sentence now says that and cites the group
action mapping it comes from.

Co-Authored-By: Claude Opus 5 <[email protected]>
@abrignoni
abrignoni merged commit 3e5bd13 into abrignoni:main Sep 7, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fixture-needed Cites a public image; a maintainer can generate the fixture

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants