Skip to content

Magic Compose has one Swedish eval case #993

Closed

Description

@richshaw

What happens

  • evals/magic-compose/dev-evals.json has 45 cases, and one is Swedish: ev_042_swedish_description_drafts_in_swedish, a Swedish description from an organizer with no language set.
  • None covers:
    • an organizer whose language is Swedish;
    • Swedish dates and times ("lördag 12 december kl. 11–14", "lördagar från 25 april till 30 maj");
    • Swedish column names;
    • the questions flow in Swedish;
    • an English description that only mentions Swedish words, which should stay English.
  • Magic Compose's output varies from run to run and model to model, so this is the one part of translation that needs a real eval rather than a review.

Fix, in outline

Add about five cases, using the checks the harness already has (language_must_be and the field and slot checks):

  1. A Swedish organizer's knytkalas: one Saturday, 11:00–14:00, a few dishes. Expect Swedish, a date field, 24-hour times and capacities.
  2. Volunteer shifts: "tre pass på 2 timmar varje dag, två volontärer per pass". Expect one slot per shift, with capacity 2.
  3. A fika list over a range of Saturdays. Expect one slot per date.
  4. A Swedish description too vague to draft ("Fikalista till klassen"). Expect questions, with whatOptions in Swedish.
  5. An English description naming Swedish things ("Midsommar picnic, bring sill and potatoes"). Expect English.

Watch for

  • Follow the README's rules for a case's behavior and rationale, and its language markers (scripts/lib/eval-harness.ts). Add a marker word if Swedish lacks one a case needs.
  • prompt.test.ts and eval-harness.test.ts read the file, so a malformed case fails pnpm test.
  • Don't invent dates the prompt doesn't give (the MCP server instructions say the same).

Order

After #927, because the prompt's language rule these cases test lands there.

Done when

  • The cases are in dev-evals.json and pass the harness's own tests.
  • One run on the default model is in the PR, with each new case's result.
  • pnpm lint && pnpm typecheck && pnpm knip && pnpm test pass.

Part of #994, keeping translation quality up in everyday work. Checked against dev-evals.json on the localization stack merged locally at 33c8c0d.


Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions