feat(dashboard): Lauf-Filter — einzelnen Pipeline-Run isolieren (closes #211)#212
Open
TillQuandel wants to merge 1 commit into
Open
feat(dashboard): Lauf-Filter — einzelnen Pipeline-Run isolieren (closes #211)#212TillQuandel wants to merge 1 commit into
TillQuandel wants to merge 1 commit into
Conversation
#211) Der Versions-Filter poolt alle Runs einer Version; "was hat mein letzter Durchlauf produziert?" war nicht beantwortbar. Neu: fuenftes Filter-Dropdown "Lauf" (run_id), oberster Eintrag = letzter Durchlauf. Server: build_data(run=...) filtert quality_rows, token_runs, all_log_runs (Log-Altbestaende ohne run_id fallen ehrlich raus) und die Versions-Dropdown-Basis (gleiche Konvention wie PDF-/Sprachfilter); agent_stats-allowed_run_ids + calibration-Bedingung um run erweitert; _exclude_foss beruecksichtigt run (expliziter Filter -> foss sichtbar). _run_options: letzte 15 Runs aus pipeline_runs, Zeit-Label aus der run_id (lokale Startzeit, Trace-Namensschema) statt DB-timestamp (UTC vom Lauf-Ende), Fallback fuer fremde run_id-Formate. Client: Dropdown nach _rebuildFilterSelect-Muster (Auswahl ueberlebt Options-Rebuild, verschwundene Option -> ehrlicher Reset), Badge, Clear, resetAllFilters, loadAndRender-Param, Optionen escaped. TDD: 6 Tests (Optionen-Sortierung/Label/Cap, Kaskaden-Isolation, AND-Komposition mit PDF, Ohne-run-unveraendert). Suite 5699 gruen, ruff sauber. Playwright: Dropdown zeigt die 3 Messlaeufe vom 12.07. (juengster oben), Auswahl isoliert auf 1 Run/1 Note ueber alle Panels, Clear stellt 52 Notes wieder her; keine JS-Fehler.
TillQuandel
pushed a commit
that referenced
this pull request
Jul 12, 2026
…/Extractor/Faithfulness-Skip-Events + Dashboard-Event-Robustheit (#197 Nachbesserung) Extern verifizierte Funde (Mistral-Resample + Fable). Der Gate-Funnel ist oben dicht: jeder Note-Verlust traegt jetzt ein stage_outcome-Event. Funnel-Luecken (orchestrator.py, TDD): - entity_resolution Cluster-Merge (consumed-Set): dedup/dropped/ entity_resolution_merge, Survivor als detail (strukturell wie sibling-Dedup). - _collect_stage6_results BaseException-Zweig: droppte ohne Event UND ohne Crash-Report — jetzt beides (Crash-Report ohne per-Note-Payload + Event). - run_extractors_per_concept: empty-ctext (Konzept nicht im Volltext), None (leere Extraktion) und Exception (call_failed) → extractor/dropped-Events. - _apply_faithfulness_gate: Gate aktiv + create, aber leerer page_index (PDF ohne [S. N]-Marker) → faithfulness/skipped/no_page_index. Dashboard-/DB-Event-Robustheit (minimale Hunks): - eval_dashboard._read_token_runs: Event-Records (kein model) vom call-Zaehler ausschliessen — verhindert aufgeblaehte calls + 0-Token-Phantomzeile. - eval_dashboard_server model-Backfill: Scan-Fenster 5 -> 50 Zeilen (Events am Trace-Anfang tragen kein model). - db.init_db: PRAGMA busy_timeout=5000 (kein WAL-Umbau) + _add_column-Helper, der nur 'duplicate column name' verschluckt und andere OperationalError (z.B. 'database is locked') re-raised. Tests: 8 neu (5 orchestrator TDD in test_stage_outcome_events.py, 3 in neuem test_stage_outcome_robustness.py). Suite 5705 -> 5713 passed, 0 failed. ruff format/check clean. Konflikt: #216 fasst run_extractors_per_concept Exception-Zweig an (failures) — beim Merge beide Zeilen behalten. #222/#212 konfliktfrei zu Punkt 5/6.
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.
Feature (#211, Nutzerwunsch 2026-07-12)
Der Versions-Filter poolt alle Runs einer Version — „nur den letzten Durchlauf anzeigen" ging nicht. Neu: fünftes Filter-Dropdown „Lauf" mit den letzten 15 Runs (lokale Startzeit aus der run_id + PDF + Version); der oberste Eintrag ist der letzte Durchlauf. Geklärte Semantik: letzter Run global, Dropdown statt Toggle (Rückfrage beantwortet).
Umsetzung
build_data(run=<run_id>)filtert die komplette Kaskade (quality_rows, token_runs, all_log_runs; Log-Altbestände ohne run_id fallen ehrlich raus);agent_stats/calibration-Bedingungen umrunerweitert;_exclude_fossberücksichtigtrun(expliziter Filter → foss einsehbar, gleiche Logik wie Modell/Version)._run_optionsliefert die Dropdown-Basis; das Zeit-Label kommt aus der run_id (lokale Startzeit, Trace-Namensschema) statt aus dem DB-Timestamp (UTC vom Lauf-Ende — hätte „22:36" für einen 00:22-Lauf gezeigt)._rebuildFilterSelect-Muster (Auswahl überlebt den 15-s-Options-Rebuild; verschwindet die Option aus den Top 15, ehrlicher Reset auf „Alle"), Badge + Clear + Reset + Leer-Banner, Options-Labels escaped.Verifikation
test_dashboard_run_filter.py) — Optionen-Sortierung/Zeit-Label/Cap/fehlende run_ids, Kaskaden-Isolation auf einen Run, AND-Komposition mit PDF-Filter, Verhalten ohnerununverändert_clearFilterstellt 52 Notes wieder her; keine JS-Fehler