Iterate

From linzhe001/Harness-Research · View interactive version

Iterate is an AI agent skill from the GitHub repository linzhe001/Harness-Research. This vNext `run` compatibility manual owns experiment semantics in

How to use this skill

Skill file

WF10: Structured Experiment Iteration

This vNext run compatibility manual owns experiment semantics in

iteration_log.json; .harness_runtime/ owns orchestration and recovery.

Use this skill only for WF10 experiment-loop state. It owns

iteration_log.json; it never writes PROJECT_STATE.json or .auto_iterate/**.

The auto-iterate controller may invoke phases, but only /iterate writes

iteration records.

Read First

legacy docs/10_contract/Evaluation_Contract.md is a fallback only before

dynamic-context-v2 migration.

documentation-evidence-rule.md, documentation-style.md,

contract-gating-rule.md, run-artifact-contract.md,

lesson-quality-rule.md, commit-checkpoint-rule.md,

research-supervision-patterns.md,

research-supervision/experiment-and-build-canvas.md, and

research-supervision/ai-assisted-research-workflow.md.

State Rules

action_state and implementation.

.claude/current_iteration.json only as temporary sub-skill context.

running/ready_to_run/ready_to_eval unchanged.

update it and Codebase_Map.md when present.

Preflight

Load active iteration plus 5 recent summaries; reference full

iteration_log.json and Gate ledger by path. Resolve latest id, status,

decision, config_diff.planned_command, target script, git_commit,

run_manifest, and metrics/report availability.

Scan auto_paper_output/*/run_request_register.{json,md}. Fold the highest

priority unclosed request into planning unless a higher-priority WF10 blocker

exists or the operator opts out.

Recommend one immediate command unless asked for a playbook. Prefer

action_state.next_action; for legacy v2 logs, map status:

planned|coding -> code, ready_to_run -> run_screening|run_full,

running|ready_to_eval -> eval, needs_debug -> debug,

needs_more_evidence -> compare, candidate_for_promotion|promoting -> promote,

completed/NEXT_ROUND -> plan, terminal -> stop.

If run-local code becomes reusable, recommend /iterate promote or

/change classify before merging into stable src/, scripts, tests, or

project_map.json.

Actions

last_action, next_action, reason, and blocked_by.

allocate ID; check lessons; record hypothesis, files, config_diff, expected

effect, screening recommendation, dominant improvement axis, falsifier,

assurance axis, minimum artifact, claim/figure implication, Codex review

status, and implementation scope: config_only, run_local_code,

stable_candidate, or delegated_build. Read

docs/context/experiments.md when it exists and either consume one queued

item or explain the priority choice. Use legacy

docs/40_iterations/Experiment_Queue.md only before dynamic-context-v2

migration.

/code-debug; run a slice or experiment commit checkpoint before

ready_to_run; for run_local_code or stable_candidate, write

runs/wf10/<iter>/code_manifest.json.

Train/Eval scripts from CLAUDE.md; run config_diff.planned_command

exactly when present; verify run-local config paths; create or verify a

Semantic Execution Commit covering stable code, configs, eval logic, and

run-local code/configs; record run_manifest, pre_train_commit,

training_trace, checkpoints, duration, exit code, and protocol metrics.

Use register for manual/cluster runs. Set ready_to_eval, needs_debug,

or needs_more_evidence; never invent metrics.

set ready_to_eval only when the artifact bundle is complete.

useful; compare against baseline, previous best, and previous iteration;

create or verify pre_eval_commit, or record pre_eval_commit_NOT_CHANGED;

record metrics or documented failure, assurance axis, claim delta evidence,

lessons, decision, and completion.

Include vertical slice boundary notes and complexity and boundary observations

when stable code surfaces change. Record mutable observations, phenomena,

findings, next-experiment hypotheses, concrete next experiments, and stable

searchable findings in docs/context/experiments.md, or report NOT_RUN.

Legacy docs/45_discoveries/Discovery_Ledger.md,

docs/40_iterations/Experiment_Queue.md, and

docs/45_discoveries/Research_Wiki.md are fallback paths only before

dynamic-context-v2 migration. Per-Iteration Light Evidence is recorded

through the Campaign controller (harness campaign evidence), not by hand.

history; skip completed components; update parent ablation_summary.

action_state.

implementation.promotion.plan_path; run acceptance commands or report

NOT_RUN; merge only approved candidate code into stable surfaces; update

project_map.json / Codebase_Map.md when structure changes.

deleting history.

baseline comparison, and one recommended next command.

Hard Constraints

sub-iterations.

iteration incomplete with NOT_RUN.

or explicit pre_eval_commit_NOT_CHANGED. Run-local code/configs under

runs/wf10/<iter>/ are part of this execution boundary even when they are

never promoted into stable code.

that policy. Do not ask for human approval during run/eval loops unless the

action would leave the Automation Policy, run an explicit approval tool, or

perform an irreversible external submission.

docs/context/experiments.md until lesson-quality rules promote them into

docs/context/memory.md.

mark it NOT_RUN.

Durable Docs Render

After stable Markdown outputs are finalized, invoke /docs-site or report

docs_site_render_or_NOT_RUN. Do not render for temporary drafts.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.