Skip to content

Break the report down by every label dimension - #294

Merged
mt0rm0 merged 2 commits into
284-number-and-label-casesfrom
289-report-by-labels
Oct 16, 2026
Merged

mt0rm0 merged 2 commits into
284-number-and-label-casesfrom
289-report-by-labels

Conversation

@mt0rm0

@mt0rm0 mt0rm0 commented Oct 16, 2026

Copy link
Copy Markdown
Contributor

Closes #289

A round's results, or every round's, can now be broken down by the cases' labels.

  • report.breakdown(session, dimensionen, run=None) groups the cases asked in a round, or in all rounds, by one or more of Kategorie, Testart, Frageform and Herkunft. Per combination of values it counts the cases, how many had at least one automatic finding and which checks found what, and the 4.3b agreement between Stufe 1 and the human (einig, zu streng, zu großzügig, nicht bewertet, Abweichungsquote).
  • Counted per case, like the trend, so repeats do not multiply findings. A case without the label is grouped as "(ohne)".
  • By the labels as they are now. Labels are corrected after the fact, and a correction should re-sort past rounds rather than keep the mistake in the report.
  • The per-round agreement now builds on a per-case classification, which the breakdown shares. Its numbers are unchanged.
  • GET /api/eval/aufschluesselung?dimension=testart&dimension=kategorie[&run_id=…]: an unknown dimension is a 422.
  • Frontend: an "Aufschlüsselung" section in Ergebnisse. Pick one label, optionally a second to combine, and this round or every round. A row shows cases, auffällig with a percentage, the disagreement rate ("nicht bewertet" rather than 0 % when nothing was assessed), and the checks that fired.

🤖 Generated with Claude Code

report.breakdown groups the cases of one round, or of every round, by one or
more labels: per combination the number of cases, how many had at least one
automatic finding and which, and the 4.3b agreement between Stufe 1 and the
human. Counted per case like the trend, by the labels as they are now so a
correction re-sorts past rounds. GET /aufschluesselung serves it, and the
results view has an Aufschlüsselung section with a dimension picker.
@mt0rm0

mt0rm0 commented Oct 16, 2026

Copy link
Copy Markdown
Contributor Author

Other infos

  • Evaluation: 446 passed (8 new breakdown tests in test_report.py, 2 endpoint tests). mypy src clean. Frontend: 178 passed (5 new in BreakdownPane.test.tsx).
  • Built on the feature branch before Show and edit number, tag and labels in Administration #288 was merged, so this frontend has no label editing yet. The two touch different files except types/index.ts and evalApi.ts, where both only add; I'll resolve any conflict when merging.

@coderabbitai

coderabbitai Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: ed5f0893-74cb-4dd6-845b-18431bd971db

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

… 289-report-by-labels

# Conflicts:
#	frontend/src/lib/evalApi.ts
@mt0rm0
mt0rm0 merged commit c6ac5de into 284-number-and-label-cases Oct 16, 2026
5 checks passed
@mt0rm0
mt0rm0 deleted the 289-report-by-labels branch October 16, 2026 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant