| name | save-experiment-results |
| description | Save and publish experiment run results with branch-safe retention. Use when Codex needs to preserve experiments/<topic>/result/<run_name>, create or verify experiment result manifests, write experiment reader reports, publish to experiment-results/<topic>, prevent overwrites, or keep failed/partial experiment runs as durable evidence. |
Save Experiment Results
Tool Commands
Use the command packet before applying this skill's workflow:
python3 tools/agent_tools/skill_tool_commands.py show --skill save-experiment-results --format text
Execute the required and task-matching conditional commands that the packet prints.
- Read
agents/skills/save-experiment-results.md.
- Start from an existing
experiments/<topic>/result/<run_name>/. If it is
missing, return to $experiment-lifecycle; do not invent a saved result from
chat notes or report prose.
- Write a retention plan before touching a result branch: topic, run name,
result directory, source branch, source commit, source dirty state, result
branch, remote publish decision, overwrite policy, and report path.
- Preserve raw machine-readable run artifacts before deriving Markdown,
tables, or HTML. Missing standard artifacts become explicit limitations.
- Save failed, skipped, blocked, and partial runs with status, exit code,
blocker, partial artifact list, and next action. They are not disposable.
- Do not overwrite a detailed result directory. Use a new run name,
append-only manifest entry, or a recorded cleanup task with owner and reason.
- Keep source changes and result retention on separate branch lanes. Code,
config, protocol, skill, tool, workflow, or report-generator changes stay on
source branches/PRs; formal result artifacts go to
experiment-results/<topic> via publish_result_branch.py.
- Treat dirty-source runs as retainable but not formal success evidence. Record
affected paths and
experiment_formal_status=not_formal_dirty_source; rerun
from a committed source branch or merged commit before marking the result
formal.
- Before creating or updating the result branch, record
branch_creation_reason=<reason> and result_branch=<branch> in the run
bundle, manifest, report, or PR body.
- Add
--push only when the retention plan calls for remote storage.
- If a reader-facing report is requested, also use
$report-writing; this
skill owns raw retention and branch-safe publication, not scientific
interpretation quality.
- Close out with
experiment_result_save=complete, result paths, source commit,
dirty-state evidence, formal status, result branch, raw manifest, report
path, and overwrite policy.