fix(evaluator): emit evaluation_context in publish-to-intake#742
Merged
Conversation
The intake ingest `experiment_context` field was deprecated in favor of
`evaluation_context` as part of the Experiment -> Evaluation rename. Migrate the
evaluator's publish-to-intake mapping to the canonical shape:
- mapping.py: ExperimentContextParam -> EvaluationContextParam;
run_task_to_experiment_context -> run_task_to_evaluation_context, emitting
{"evaluation_id", "test_case_id"} under the "evaluation_context" ATIF body key.
- tests updated to match (unit + integration trace read).
The public `publish_to_intake(experiment_id=...)` parameter is intentionally left
unchanged for the evaluator team to rename separately. `experiment_context` still
works as a deprecated alias, so this is a forward migration, not a break-fix.
Signed-off-by: shanaiabuggy <[email protected]>
Contributor
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughThe intake mapping replaces ChangesEvaluation context migration
Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Contributor
|
Signed-off-by: shanaiabuggy <[email protected]>
Signed-off-by: shanaiabuggy <[email protected]>
arpitsardhana
approved these changes
Jul 17, 2026
SandyChapman
approved these changes
Jul 17, 2026
SandyChapman
left a comment
Contributor
There was a problem hiding this comment.
Thanks for this @shanaiabuggy ! I'll follow up with the experiment_id -> evaluation_id swap once this lands.
soluwalana
pushed a commit
that referenced
this pull request
Jul 17, 2026
* fix(evaluator): emit evaluation_context in publish-to-intake
The intake ingest `experiment_context` field was deprecated in favor of
`evaluation_context` as part of the Experiment -> Evaluation rename. Migrate the
evaluator's publish-to-intake mapping to the canonical shape:
- mapping.py: ExperimentContextParam -> EvaluationContextParam;
run_task_to_experiment_context -> run_task_to_evaluation_context, emitting
{"evaluation_id", "test_case_id"} under the "evaluation_context" ATIF body key.
- tests updated to match (unit + integration trace read).
The public `publish_to_intake(experiment_id=...)` parameter is intentionally left
unchanged for the evaluator team to rename separately. `experiment_context` still
works as a deprecated alias, so this is a forward migration, not a break-fix.
Signed-off-by: shanaiabuggy <[email protected]>
* lint
Signed-off-by: shanaiabuggy <[email protected]>
---------
Signed-off-by: shanaiabuggy <[email protected]>
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.
Summary
The evaluator's publish-to-intake path (added in #456) still emits the deprecated
experiment_contexton ATIF ingest. As part of the Experiment → Evaluation rename, intake deprecatedexperiment_contextin favor ofevaluation_context. This migrates the boundary mapping to the canonical shape.Per
mapping.py's own design note ("a later rename is a one-file change"), the wire migration lives entirely in that module:ExperimentContextParam→EvaluationContextParamrun_task_to_experiment_context→run_task_to_evaluation_context, now emitting{"evaluation_id": …, "test_case_id": …}under the"evaluation_context"ATIF body keytest_mapping.py/test_publish.py+ the integration trace read)Left for the evaluator team
The public
publish_to_intake(experiment_id=…)parameter andPublishReport.experiment_idfield are intentionally unchanged — renaming that external surface toevaluation_idis your call. The value already flows through toevaluation_context.evaluation_id, so functionally this is complete.Not urgent / non-breaking
experiment_contextstill works as a deprecated alias in intake (evaluation_contexttakes precedence when both are sent), so publish isn't broken today — this is a forward migration before the alias is removed. No SDK version bump needed: the plugin uses the in-repo workspace SDK, which already exposesEvaluationContextParam.Validation
EvaluationContextParam(TypedDict:evaluation_id,test_case_id).mapping.pycompiles; no staleexperiment_context/ExperimentContextParamreferences remain in the changed files.🤖 Generated with Claude Code
Summary by CodeRabbit