Repository navigation
Write the case as a LAVA project - #43
Merged
Merged
Conversation
`gleapp report --format lava` writes reports/lava/, a project the LAVA viewer opens: a manifest, one SQLite table per artifact, and the media beside them. Seven artifacts, from media files through to the case audit log. Media is written to both media/ and _HTML/media/. LAVA's viewer joins a media item's recorded location onto media/, which yields a path no report has, and falls through to _HTML/; its open-externally handler resolves only against _HTML/ and has no fallback. With _HTML/ absent every picture renders as a broken icon, so both copies are required. Media is copied by default and hardlinked only with --link, since a hardlinked report shares an inode with the original file. --lava-thumbs writes GLEAPP's thumbnail rather than the file, for a report meant to travel. Capture time is written as text, not as a datetime: it carries no timezone, so declaring it an instant would let a consumer render it against a zone nobody recorded. Column types are limited to the four LAVA renders. No path from the machine the case was made on is written, and the existing export-paths guard now covers this writer. Case identity, sources and counts go to DeviceInfo.html and Screen_Output.html, which LAVA shows as tabs and copies into any subset an examiner cuts from tagged rows. Every count in the run log is an artifact's own row count, so the summary cannot disagree with the tables it describes. Co-Authored-By: Claude Opus 5 <[email protected]>
An audit of every sentence in the descriptions and notes against the code found six that the code does not support. Category is not always the examiner's own record: process() applies a 'known' list's own category, and Non-pertinent for a 'known-good' hit, to any file still uncategorised, so a row can be categorised with nobody having looked at it. Both artifacts that report Category now say so. MD5 is not always computed from the bytes: a Project VIC import supplies one and processing trusts it rather than re-hashing. Storage-view folding is an archive-ingest step, so a folder source is registered as it was found and one photograph ingested from two folders is a stack of two. Exact stacking keys on SHA-256, or MD5 where no SHA-256 was computed. Visual grouping needs pHash and dHash both within a distance, and excludes near-featureless images outright, so absence from every group is a property of the method. Filesystem times do not have one provenance. A folder row carries the times of the copy the case read; an archive row carries the times the archive recorded for that member; a carved row has none and its date columns are empty. The ingest already records which applies, per source, so source_record now returns it and the Device Info page prints it rather than the notes generalising. Faces and Skin Ratio come from an optional pass, so a zero on a case processed without screening records that nothing looked. Co-Authored-By: Claude Opus 5 <[email protected]>
Media Locations gains a Map column holding an image drawn from the offline basemap the examiner imported, marked at the file's own coordinates. Nothing is fetched, and the same machinery the HTML report already uses draws it. A map is drawn only where the basemap holds tiles for the point. staticmap.covers asks the archive for the tile render() would draw rather than testing the bounds it declares, because an MBTiles with no bounds in its metadata is taken to cover the whole world. An out-of-coverage point renders as the background colour with a mark on it, which reads as a location with nothing around it: measured on a regional basemap, such a render was 98.3% one colour against 13.0% for a point inside coverage. The run log counts every geolocated file that got no map and says which of no basemap, outside the basemap, over the cap or failed to draw applied, and names the basemap with its SHA-256. A row with coordinates and no map therefore never has to be read as a location that is unknown. A drawn map is not evidence, so it is checked in under its own id rather than the file's, and its source path says it was drawn by GLEAPP from a named basemap rather than naming a path inside the evidence. --no-maps now applies to this report as well as the HTML one. Co-Authored-By: Claude Opus 5 <[email protected]>
A locator that shows only shapes says where something is relative to nothing. The names are in the vector tiles already, so the MVT reader now decodes each feature's attributes and the renderer draws them. mvt.decode exposes a feature's tags. The key and value tables can follow the features that index them, so they are resolved once the layer is read rather than as each feature is parsed. staticmap.render gains labels=True, drawing street, water and place names after every tile is painted so a neighbouring tile's fills cannot cover one, and under the marker, which has to stay readable. A feature is drawn only when the tileset's own min_zoom says it is visible at this zoom, so the basemap decides what appears rather than a rule invented here. One label per name, skipped where it would overlap one already placed or be clipped at the edge. A road is labelled at the point half way along it by length: a two-point line has no middle vertex, so taking one puts the label at an end, which on a real map is the tile boundary. The font is Pillow's own scalable default, so no asset or licence is added and every platform has one. A build without it draws no labels rather than failing. Location Overview is a new artifact: one row holding every geolocated file the report could map, framed on a single image, with the count left off, the basemap and its SHA-256, and the bounds of the mapped points. Numeric columns are now declared, so LAVA's ORDER BY sorts them as numbers rather than lexicographically, where 10 came before 2. The declaration shapes the database only and is kept out of object_columns: LAVA renders four types and no report the LEAPPs write carries any other name. Labels cost about 82ms per map against 30ms, which the per-report cap bounds. Co-Authored-By: Claude Opus 5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a LAVA report, so a GLEAPP case can be opened in the viewer the rest of the LEAPPs use.
gleapp report --format lavawritesreports/lava/: a manifest, one table per artifact, and the media beside them. Seven artifacts: media files, categorized media, media locations, exact duplicate stacks, visually similar groups, known hash set hits, and the case audit log.media/and_HTML/media/, because LAVA resolves a media item through_HTML/and shows a broken icon without it.--linkhardlinks instead, which shares an inode with the original file.--lava-thumbswrites the thumbnail rather than the file, for a report meant to travel.--no-mapsskips the maps.Capture time stays text, since it carries no timezone. Column types are limited to the four LAVA renders. No path from the examiner's machine is written, and the existing export-paths guard now covers this writer.