Repository navigation
Processing history: a case run log with per-stage outcomes - #54
Merged
Merged
Conversation
A case already records an audit trail in the `audit` table, but nothing surfaced it. Add a "Processing history" view, reached from the "? Help" header button (now a menu: Manual / Processing history). It lists every run against the case newest first — ingest, process, screening, hash-set match, carve and examiner edits. A process run also lists each post-processing stage (media processing, known-hash match, exact stacking, visual stacking, near-duplicate clustering) with a success/failure mark: `RunStats.stages` records each stage's outcome and `process()` wraps them so one stage raising no longer aborts the run or discards the record that the earlier ones succeeded. The "Show" filter narrows to runs, examiner edits, or only runs with a failed stage. - db.iter_audit(limit) reads the audit table newest first - GET /api/audit - no schema change (read helper on an existing table) Co-Authored-By: Claude Sonnet 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.
What
Adds a Processing history view to the review gallery. Every case already
keeps an audit trail in the
audittable (and the LAVA export dumps it), butnothing in the UI showed it.
It is reached from the header ? Help button, which is now a small menu:
The view
Every run recorded against the case, newest first — ingest, process, screening,
hash-set match, carve, and examiner edits (categorize, snapshot, category
changes, …).
A process run additionally lists each post-processing stage with a ✓/✗:
RunStatsgains astagesdict, andprocess()now wraps each of these stagesso one of them raising is recorded and the run continues, instead of
aborting the whole call and losing the record that the earlier stages
succeeded. Hover a failed pill for the exception.
The Show filter narrows the list to runs, examiner edits, or only runs with
a failed stage.
Changes
db.iter_audit(limit)— reads theaudittable newest firstGET /api/auditRunStats.stages+run_stage()wrapper inpipeline.process()#helpMenu) in place of a plain button#histDlgdialog + rendering inapp.jsNo schema change —
iter_auditis a read helper on the existing table.Testing
pytest -q— 257 passed, 3 skippedtools/lint_changed.py— no new warningstools/check_line_endings.sh— cleanentry opens the right dialog; forced a
cluster_nearfailure and confirmedthe run completed with
cluster_near ✗and the other four stages✓.🤖 Generated with Claude Code