.qwen/skills/agent-reproduce-align/references/alignment-workflow.md
The alignment phase starts after Qwen Code has a candidate implementation. Use it to create a tight loop: run the selected reference agent and Qwen Code, compare traces, patch the target, and rerun only the failing scenario.
Expected raw capture layout:
.repro-runs/<scenario>/
reference/
http.jsonl
command.stdout
command.stderr
command.exit
state-before/state-manifest.json
state-after/state-manifest.json
state-diff/state-diff.md
qwen/
http.jsonl
command.stdout
command.stderr
command.exit
Use capture scripts from $agent-reproduce-feature for raw capture, or use
run_pair_capture.sh for simple non-interactive shell scenarios. Set
REPRO_REFERENCE_AGENT=codex or REPRO_REFERENCE_AGENT=claude-code with the
paired runner to capture reference-agent state automatically.
normalize_trace.py reads mitm JSONL output and emits stable JSON:
It intentionally drops:
High priority:
Medium priority:
Low priority:
Stop when the target behavior is compatible and remaining differences are either irrelevant or explicitly documented.