Repository navigation
Bound the ALEX rebuild notes to the ALEX commits that behave that way - #2084
Conversation
ALEX commit 8f27e7a stopped writing default rows for empty providers, and ed3d41eb fixed trimming, empty values and most "Row:" splits. The notes on the SMS, MMS, call log and calendar artifacts now say which ALEX commits do what, and record the run on the new known data from ALEX at ed3d41eb. Part of #2076. Co-Authored-By: Claude Opus 5.5 <[email protected]>
| " A mmssms.db that ALEX (Android Logical Extractor) rebuilt from content provider queries, recognised by user_version 0 and sms._id declared TEXT, is read with the same queries as a device copy, except that rows with _id 0 are left out of sms and their number is written to the log. ALEX from v0.6 to commit 9ef34bf0 (prosch88/ALEX, 2026-11-21) writes such a row, filled with its default values, when the provider returned no rows; commit 8f27e7a (2026-11-25) stopped that. ALEX from v0.6 to 8f27e7a also writes one when a text value held 'Row: <number>': that value is cut there and the columns after it go to the _id 0 row. From v0.6 to 8f27e7a its parsing of the query output can also trim text and store an empty value as NULL. From v0.6 to ed3d41eb it stores the text NULL as NULL, and can cut a text value at ', <column name>=' and move the rest into that column. From v0.6 to ed3d41eb ALEX declares every column TEXT; on the three known data backups every stored value is text or NULL. The rebuilt database is a new file written by ALEX, so it carries no free pages or write-ahead log from the device database. A time stored as the text 0 is shown blank, as a stored 0 is. On the known data emu_a15_alex_prfs_empty_20261125 and emu_a15_alex_prfs_sms_20261125 (ALEX backups of an Android 15 emulator, ALEAPP #2076) this left out one sms row each time: a default row on the empty emulator, and on the second backup the _id 0 row made from a message body that held 'Row: <number>'. It reported 0 rows and 6 rows for the 6 synthetic messages, where the version before this change reported 1 and 7. ALEX had cut or trimmed 3 of the 6 bodies and stored 1 empty body as NULL." | ||
| " On emu_a15_alex_prfs_fixed_20261125 (ALEX at ed3d41eb, the same emulator and messages) ALEX wrote no _id 0 row and stored the 6 synthetic message bodies as inserted, nothing was left out, and this artifact reported 6 rows, the 6 synthetic messages with their bodies as inserted. ALEX's source at ed3d41eb can still write an _id 0 row when a text value holds a line break followed by 'Row: <number> <column name>='; that case was not on the emulator.", |
There was a problem hiding this comment.
The new ALEX version ranges and source-based limits name commits but do not link to the source lines that establish them. The repository requires citations to defining lines with commit-pinned links. Without them, examiners must search ALEX themselves before relying on these claims.
Add those links before merging, including in the repeated notes in calllog.py and googleCalendar.py and elsewhere in this file.
Context Used: .claude/rules/leapp-claims.md (source)
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
There was a problem hiding this comment.
Fair point. The commits are named and the behaviour was checked against them, so nothing in the notes is wrong, but the line links are missing. Tracked in #2086 so this PR doesn't need another round.
…le keys, list the sibling as a source; bound ALEX notes to its commits - MMS and MMS Addresses read the sibling file (mms_addr.txt or mms.txt) through the run cache and keep its status. When it is not a full list of rows (a provider error, rows then an error, rows not split, an empty, unrecognised or unreadable file), recovered matches are kept and an unmatched row says the relation is unknown, with the reason, instead of "no address rows" or "no". - An _id or msg_id that is empty or the text NULL is never indexed or matched; the row says so in Parse Note. - The sibling actually read is added to the source list; Source File and Source Line stay those of the primary row. - ALEX notes are bounded to its commits, as abrignoni#2084 does: up to 8f27e7a it writes no file when the output holds one of its four error strings anywhere; from ed3d41eb it writes the file whenever the output holds a row. ed3d41eb's PRFS zip layout (extra/content_provider/) is not read. - New synthetic cases alex_join_incomplete, alex_mms_incomplete and alex_row_edges, and unit tests for the joins and sources. Review of abrignoni#2082. Co-Authored-By: Claude Opus 5.5 <[email protected]>
ALEX fixed most of prosch88/ALEX#34, so the notes from #2077 now say which ALEX commits write the _id 0 rows and change values. Notes and sample_data only, no code change. Part of #2076.
🤖 Generated with Claude Code
The notes-only change needs commit-pinned source citations before merging to satisfy the repository's explicit requirement.
Findings
Summary
This PR updates ALEX rebuild notes and adds
emu_a15_alex_prfs_fixed_20261125to sevensample_datablocks. Parser behavior is unchanged.Reviews (1) · Last reviewed commit: "Bound the ALEX rebuild notes to the ALEX..." · Reviewed by Greptile