Iterate

From linzhe001/Harness-Research · View interactive version

Iterate is an AI agent skill from the GitHub repository linzhe001/Harness-Research. Internal Harness instruction source for iterate. Route through visible Harness aliases instead of invoking directly.

How to use this skill

Skill file

Iterate

This vNext run compatibility manual owns experiment semantics in

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

Use this only for WF10 experiment-loop state. It owns iteration_log.json; it

never writes stage transitions into PROJECT_STATE.json or .auto_iterate/**.

Read First

commit checkpoint rules under ../../../.agents/references/

research-supervision-patterns.md,

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

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

./references/iteration-context.md,

./references/iteration-constraints.md

contracts, glossary, and lessons when present

State Rules

action_state and implementation.

iteration_log.json postconditions.

plus .agents/state/current_iteration.json only when needed.

Preflight

Load active iteration plus 5 recent summaries; reference full history 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} and fold the highest

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

exists.

Recommend exactly one next 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.

Commands

next_action, reason, and blocked_by, then stop.

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

effect, screening recommendation, dominant improvement axis, falsifier,

assurance axis, minimum artifact, claim/figure implication, canonical

codex_review, and implementation scope: config_only, run_local_code,

stable_candidate, or delegated_build. Read

docs/context/experiments.md when present and consume one queued item or

explain the priority choice. Use legacy

docs/40_iterations/Experiment_Queue.md only when the project has not

migrated to dynamic-context-v2.

checklist, preserve slice/glossary boundaries, route implementation through

$build, and run a slice or experiment commit checkpoint before

status ready_to_run. For run_local_code or stable_candidate, write

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

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, artifacts, screening result when

relevant, and protocol metrics. Set ready_to_eval, needs_debug, or

needs_more_evidence; never invent metrics.

without inventing metrics; set ready_to_eval only when the bundle is

complete.

explicit ablation command creates sub-iterations; update action_state.

previous, and best metrics; create or verify pre_eval_commit, or record

pre_eval_commit_NOT_CHANGED; record metrics or documented failure, decision,

lessons, assurance axis, claim delta evidence, slice/drift/complexity notes,

reports, and completion state. Write mutable observations to

docs/context/experiments.md, including concrete next experiments, mutable

observations, and stable searchable findings, or report NOT_RUN. Legacy

docs/45_discoveries/Discovery_Ledger.md,

docs/40_iterations/Experiment_Queue.md, and

docs/45_discoveries/Research_Wiki.md may be updated only for

not-yet-migrated projects. Per-Iteration Light Evidence is recorded through

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

implementation.promotion.plan_path, run acceptance commands or report

NOT_RUN, merge only approved candidate code into stable surfaces, and update

project_map.json / Codebase_Map.md when stable structure changes.

Lesson And Gate Rules

lesson-quality-rule.md; raw observations stay in iteration reports or

docs/context/experiments.md; candidates may be promoted into

docs/context/memory.md.

docs, claim delta evidence, or evidence indexes change, report a Gate ledger.

updates, report whether it was run or deferred.

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

would leave the policy, run an explicit approval tool, or perform an

irreversible external submission.

Research Wiki updates for traceability.

Durable Docs Render

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.