Repository navigation
fix(score): stamp behavior protocol from recorded measures - #2651
Merged
KartikP merged 5 commits intoNov 10, 2026
Merged
Conversation
Open record_measures() around the benchmark run and pass the record to infer_score_protocol and stamp_score_metadata, so the protocol and the optional attrs['measure'] come from the returned responses (core ad7288a), not from the subject's private state.
Requires brainscore_core with score_metadata.record_measures: core ad7288a or later (fix/score-protocol-from-response). Older cores now raise an ImportError that names the required revision. The test emits a real behavior StreamEvent instead of calling note_measure.
Measures are now noted where a session accepts a response (core fix/score-protocol-from-response), so the test responds into a BufferedSession instead of only building the event.
Unified dd90a7b pins core fdeb451, which adds record_measures. The pinned unified f03ca78/5dc12f6 installed an older core, so the installed vision, language and unified tests failed with ImportError.
KartikP
added a commit
to KartikP/brainscore-unified
that referenced
this pull request
Nov 10, 2026
Vision 901b3bc and language 3720353 are the squash merges of brain-score/vision#2651 and brain-score/language#443.
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.
score()read the behavior protocol from the subject's private state, so a subject that is not a BrainScoreModel but answers by generation was stamped behavior:readout (Contract Rule 2.2).Changes:
score()opens core'srecord_measures()around the benchmark run and passes the record toinfer_score_protocolandstamp_score_metadata. The protocol and the optionalattrs['measure']come from the responses the subject returned.record_measuresraises an ImportError that names the required revision.requirements-v2.txtpins core to fdeb451 (fix(metadata): read behavior protocol from the response core#222, which addsrecord_measures; it also contains list system information at the beginning of submission build #221).Evidence: new tests in tests/test_preflight.py send a real behavior StreamEvent into a BufferedSession and check the stamp. Core #222 passed its full CI, including the vision, language and unified offline suites.