You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG]: Schema-valid ATIF structured answers disappear from judge evidence #202
On main f32c884 (0.5.0), host and standalone-verifier answer extraction accepts only string messages. Harbor 0.24 accepts ATIF messages as arrays of content parts. A valid text-part answer becomes empty judge evidence, or an earlier string message is selected as the final response instead.
Proposed fix
Reuse the existing atif_content_text conversion for agent text, final responses, summaries and final-response references in both implementations. It joins text parts and uses [image]/[audio] markers without exposing media paths. Prepared schema-valid fixtures cover multiple text parts, the last nonempty answer, plain-string/empty controls, media markers and exact host/verifier bundle parity.
Reproduction steps
With the Tier 3 dependencies installed, this runs offline:
fromharbor.models.trajectories.trajectoryimportTrajectoryfromskillevaluator.tier3.eval_core.atif_helpersimportget_final_response, build_metric_evidence_bundlestrajectory=Trajectory.model_validate({
"schema_version": "ATIF-v1.7",
"agent": {"name": "test-agent", "version": "test"},
"steps": [{
"step_id": 1, "source": "agent",
"message": [{"type": "text", "text": "The answer is 4."}],
}],
}).to_json_dict()
print(repr(get_final_response(trajectory)))
print(build_metric_evidence_bundles(trajectory, "What is 2+2?", ground_truth="4")["accuracy"]["prompt_evidence"])
# Actual: empty final response and empty accuracy evidence.# Expected: the generated answer is included.
Final-response references and conversation summaries also omit the content. The standalone Harbor verifier duplicates the string-only extraction.
Activity