Repository navigation
fix: HED prompt asks for one validated annotation per event - #600
Merged
neuromechanist merged 3 commits intoOct 8, 2026
Conversation
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Cap at four kinds of events, one annotation for a repeated event, count the 400-word limit in prose only, and show one string per event in the internal example. Validated with osa validate and the HED tests; not yet measured.
Flash and Button are suggested by hed-suggest but are not in the schema; the example now builds its strings from tags that validate (checked with the hedtools.org validator) and says some suggestions are not HED tags.
neuromechanist
merged commit Oct 8, 2026
dabb63d
into
OpenScience-Collective:develop
10 checks passed
11 tasks
neuromechanist
pushed a commit
that referenced
this pull request
Oct 10, 2026
Retitles [Unreleased] to [0.8.18], as for earlier releases. Adds the entries that were missing for #599 (hed-suggest in the image), #600 (HED prompt), #601 (widget host styles) and #605 (live tests by hand), and one for the DEFAULT_MODEL check at startup. Names the three classes that are accepted (the other five are refused), and fixes a reference that pointed the wrong way. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_019MtQNfPzMpGxEJFUciXbTN
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #596 (its first point; the reasoning effort and step limit points are not in this change).
Summary
HED's prompt says "show ONE clear example, not multiple variations" and caps a reply at 200 to 300 words. GPT-6 Luna follows both literally: asked to annotate a task with a stimulus, a delay and a response, it validates all three and shows only the stimulus annotation. Sonnet and Haiku show three, which is the more useful answer and against the rule.
This changes those two lines:
Tests
Three conversations per row on the second message of the conversation in #596, local
developthrough OpenRouter (openai/gpt-6-luna):osa validate src/assistants/hed/config.yamlpasses.pytest tests/test_assistants/test_community_yaml_generic.py -k hed: 20 passed.pytest tests/test_agents/test_hed.py -m "not network": 16 passed.develop, or on Sonnet. Both already show several annotations under the current prompt, so I expect little change, but I have not run them with this one.validate_hed_stringcalls in the two runs with this prompt (6, 9 and 6 without it). HED on GPT-6 Luna: the prompt asks for one example, medium effort is faster, and the 25-step limit ends the runs that fail #596 has the details.Review follow-up
c26da01tightens the two lines after review:events.tsvare not annotation examples.Additional tests:
osa validate src/assistants/hed/config.yaml; HED YAML tests (19 passed, 1 skipped);test_hed.py -m "not network"(16 passed).4f1fa5ereplacesFlashandButtonin the prompt's tool-use example, which HED 8.4.0 does not define. hed-suggest does return both (checked against the pinned build), so the example now says some suggestions are not HED tags and builds its strings from tags that validate on hedtools.org.Not covered: