Skip to content

Run HED on Claude Haiku 4.5 - #592

Merged
neuromechanist merged 6 commits into
developfrom
feature/issue-591-hed-default-haiku
Oct 7, 2026
Merged

neuromechanist merged 6 commits into
developfrom
feature/issue-591-hed-default-haiku

Conversation

@neuromechanist

@neuromechanist neuromechanist commented Oct 7, 2026 •

Copy link
Copy Markdown
Member

Closes #591.

HED's annotation questions are a tag, validate and correct loop, and GPT-6 Luna answered 1 of 3 of them on dev.
This sets HED's default_model to claude-haiku-4-5.

Why

Dev, 2026-10-07 04:45 to 04:58 UTC, one tester sending HED annotation questions to each model in turn (details and the table are in #591):

  • GPT-6 Luna: 1 of 3 answered; the other two failed on the model call after a tool result (a dropped stream after 47 s, a stall until the 120 s read timeout after 216 s and 8 tool calls).
  • GPT-OSS 120B: 1 of 2 answered; the other hit GraphRecursionError after 11 tool calls.
  • Claude Haiku 4.5: 3 of 3 answered, in 12 to 24 s, including runs of 3 and 5 validate_hed_string calls.

The same finding came from a manual test, in #514: with the HED assistant's second sample question and a follow-up about a memory task, Luna, GPT-OSS and Qwen all failed and only the Anthropic models finished.

What changes

  • src/assistants/hed/config.yaml: default_model: claude-haiku-4-5; reasoning_effort stays high, which is a 4,096-token thinking budget on Haiku (ADR 0015).
  • NWB, EEGLAB and BIDS stay on Luna, whose questions are document lookups; a reader can still pick Luna for HED from the model menu.
  • Four tests took HED to be a Luna community (one had gone vacuous: no fallback happened); they now pick a community whose default is a Bedrock model from the registry, or name HED's new slug.
  • Notes: the changelog, ADRs 0014 and 0015, .env.example, deploy/Dockerfile and two comments that listed HED among the Luna communities.

Cost

About nine times Luna's price per token ($1 / $5 per million tokens against $0.11 / $0.55): an estimated $0.05 to $0.11 for each of the three dev requests above, before caching.
HED's budget ($5 a day, $50 a month, 80% alert) only alerts and is unchanged, so it will alert at about a ninth of the traffic.

Not in this pull request

A message that suggests which model to try when a request fails or runs out of steps, and a way to extend the step or time budget, as asked in #514; and retrying a single model call that returns nothing after a tool result.

Testing

The whole suite except test_chat_resume_endpoint.py (19 of its 21 tests fail with 401 identically on a clean develop here) passes after the test changes; before them, three failed on the new default.
A Sonnet review (code, tests, claims) found the vacuous fourth test, the stale operator text in .env.example and deploy/Dockerfile, ADR 0015's list, weaker selectors and over-strong wording of the evidence; all are fixed in this pull request.

HED's annotation questions are a tag, validate and correct loop. On dev, 2 of 3 Luna
requests failed (a dropped stream and a stall past the read timeout, each on the model
call after a tool result), GPT-OSS hit the recursion limit, and Haiku answered all 3 in
12 to 24 s. Luna stays the default of NWB, EEGLAB and BIDS. The three tests that took HED
to be a Luna community now pick one from the registry, or name HED's new slug.

Tested: the full suite except the 19 known chat-resume 401s passes.
@neuromechanist neuromechanist added the bug Something isn't working label Oct 7, 2026
@github-actions

github-actions Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Preview Deployment

Name Link
Preview URL https://feature-issue-591-hed-defaul-demo.osc.earth
Branch feature/issue-591-hed-default-haiku
Commit c5c456d

This preview will be updated automatically when you push new commits.

…el (issue #591)

test_the_fallback_model_is_the_offered_one still used HED, whose default is now Haiku, so
no fallback happened and it would have stayed green without one. The selectors in the three
registry-driven tests now normalize the default, and the notes test asserts the default has
a note to follow.

Tested: the three test files, 209 pass.
…e Dockerfile (issue #591)

An operator reading them would think a missing Bedrock key degrades HED, which runs Haiku
either way. Also adds HED to ADR 0015's list of communities whose default is Haiku.
…(issue #591)

Luna answered 1 of 3 and GPT-OSS 1 of 2 on dev, which is not that Luna cannot finish the
loop; Haiku's price is nine times Luna's per token, not per request; the estimates are
before caching; HED's alert-only budget is unchanged. Comments and docs only.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant