Skip to content

Follow-ups from the review of #276: numeric household ids on resume, the gemini test allowance, CI's cost map #279

Open

Description

@MaxGhenis

Follow-ups from the independent review of #276 (repeated runs sample fresh) that #276 leaves. Each is outside #276's change or waits on another pull request.

1. A numeric-looking household id is asked again on resume. _read_existing_output reads a prediction CSV with pd.read_csv and its type inference, so a household whose id is serialized as "1" comes back as the integer 1. The batch loader (_load_existing_rows) keeps the old rows and returns completed keys built from those values, but run_no_tools_eval checks (model_name, scenario.id) with the string id, so it asks again and the output then holds the household twice. run_repeated_no_tools_eval's per-repeat line counts the two as separate request groups. (The single-output loader converts its keys with str() and is not affected.) Reproduce: a custom manifest with household id "1", one model, SNAP; run eval-no-tools into a file, then rerun into the same file. Fix: read the id columns as strings in _read_existing_output, or build the batch loader's completed keys with str() as the single-output loader does. This predates #276 (review round 2 of #276, P2).

2. Drop the gemini/ tool allowance in test_a_rerun_replays_each_repeats_own_responses once #275 merges. The test accepts a card that does not replay only if it is a gemini/ tool card and the harness passed LiteLLM no cache key. After #275 every request carries a key, so the allowance never applies, but while it stays, losing the key pin in both plain and repeated gemini/ calls would pass that module (#275's own tests still require Gemini replay). Remove the or (...) clause after #275 lands (review round 2 of #276, P2).

3. Set LITELLM_LOCAL_MODEL_COST_MAP=True for the test job in CI. LiteLLM loads its model-cost map when it is first imported, during collection, before any test fixture blocks sockets. Local runs set the variable; the Linux CI workflow does not, so a collection can fetch the map over the network (review rounds 1 and 2 of #276, P2).

🤖 Generated with Claude Code

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions