Skip to content

[thesis] 18 evaluation cases, every combination in the tables, blind labelling for the second labeller - #208

Merged
Sam-Razavi merged 1 commit into
mainfrom
thesis/eighteen-cases
Nov 24, 2026
Merged

Sam-Razavi merged 1 commit into
mainfrom
thesis/eighteen-cases

Conversation

@Sam-Razavi

@Sam-Razavi Sam-Razavi commented Nov 24, 2026 •

Copy link
Copy Markdown
Owner

The case count is decided: 18. This records the decision and gets the runner ready for it and for the second labeller. The model, prompts, rules and protocol are unchanged since thesis-prototype-v2.

Decision

  • DESIGN.md decision Q8: 18 cases, one for each combination of scenario type (3) × language (2) × reference decision (3).
  • cases/README.md lists the 18 combinations to tick off.

Tables

  • The per-cell table in summary.md now lists all 18 combinations, empty ones included, and says how many have a case. Before, a combination with no case was simply missing from the table.

Second labeller

  • python -m thesis.eval.labelling sheet writes:
    • an HTML sheet with only each CV and ad, as "Case 1" to "Case 18" in a shuffled order, so neither the folder names nor the order give anything away;
    • an answer form (CSV and Excel);
    • a key file, kept apart, that says which number is which case.
  • python -m thesis.eval.labelling compare reads the filled-in form (comma or semicolon CSV, or Excel). It prints both labels side by side and the second_label: line for each case.yaml.
  • case.yaml takes second_label, plus first_label and resolution when the labels differed. The runner refuses a disagreement that has no resolution.
  • summary.md opens with the agreement: same label, one step apart, opposite, Cohen's kappa, the label matrix, and every settled disagreement.
  • The Excel writer moved to thesis/eval/xlsx.py, so the labelling tool does not load the backend.

Checks

  • test_thesis_eval.py: 37 passed on a real Postgres, including the proof that the runner scores like production. The fit advisor tests and ruff pass.
  • Tried on the practice cases:
    • the sheet showed no folder names, labels or rationales;
    • the key matched the sheet;
    • nothing on the page is wider than a phone screen;
    • compare read a filled-in form;
    • the rebuilt summary shows the 18-row table.
  • git diff thesis-prototype-v2 -- backend/app/services/fit_advisor thesis/protocol.yaml thesis/eval/rule_based_adapter.py is empty.

This branch is based on main and opened separately from dev, because dev holds extension PR #207, which is still waiting on the browser test.

…labelling for the second labeller

- DESIGN.md: decision Q8, 18 cases, one per combination of scenario type, language
  and reference decision. The second labeller step now names the sheet and the
  agreement measures. cases/README.md lists the 18 combinations and the labelling steps.
- Summary: the per-cell table lists all 18 combinations, empty ones included, and
  says how many have a case.
- case.yaml takes second_label, and first_label / resolution when the labels
  differed; the loader refuses a difference without a resolution. The summary opens
  with the agreement between the labellers: same label, one step apart, opposite,
  Cohen's kappa, the matrix and every settled disagreement.
- thesis/eval/labelling.py: "sheet" writes an HTML sheet with only each CV and ad,
  numbered in a shuffled order, an answer form (CSV and Excel) and a key kept apart;
  "compare" reads the filled-in form (comma or semicolon CSV, or Excel) and prints
  both labels side by side with the lines to add to each case.yaml.
- The Excel writer moved to thesis/eval/xlsx.py so the labelling tool does not load
  the backend.

Prompts, rules, protocol and model are unchanged since thesis-prototype-v2.
@vercel

vercel Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
applyluma Ready Ready Preview Nov 24, 2026 6:11pm UTC

@Sam-Razavi
Sam-Razavi merged commit a076da8 into main Nov 24, 2026
6 checks passed

This branch was successfully deployed

1 active deployment
Preview — 43f263ea Deployed Nov 24, 2026 by vercel[bot]
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