[harbor] Load dataset reference outputs from task-owned files
Author: ehuttCreated Sep 25, 2026Updated Sep 28, 2026
Labelsenhancementc/evalsc/experimentsc/datasets
Goal
Let a Harbor task provide the reference output that the Phoenix plugin stores on its dataset example. A task should be able to point the plugin at a checked-in file, such as JSON under the task's tests/ directory.
Work
- Define an opt-in plugin or task configuration field for the reference-output path.
- Resolve the path relative to the task root with clear sandbox and traversal rules.
- Define the supported JSON schema for text and structured references.
- Load and validate reference outputs before trials begin.
- Store the value on the matching Phoenix dataset example.
- Treat reference-content changes as dataset-version changes.
- Report missing, malformed, or mismatched files with actionable errors.
- Document examples for single-step, multi-step, local-dataset, and direct-task jobs.
Acceptance criteria
- A task can keep its reference beside its verifier assets under
tests/. - The plugin records the reference on the correct Phoenix dataset example.
- Invalid configuration fails during setup rather than after agent execution.
- Dataset versioning reflects changes to the reference file.
- Tests cover textual and structured references, missing files, invalid JSON, and path traversal.
Source: Arize-ai/phoenix