# Retro: elf-archer-01

Run of `.pi/pipeline/workflow.yaml` (version 1) — first full character.
Format: `stage | agent | attempts | gate results | wall time | failure reason | artifact path`

## Metrics

## Notes (feeds workflow-engineer)
- Clips for this run override spec defaultClips: idle, walk, attack (user decision).
- Blender 4.3.2 installed via apt at run start (was missing) — prerequisite, not a stage failure.
- ComfyUI was down at run start; user started it ~30 min in — concept stage delayed but not skipped.

| stage | agent | attempts | gate results | wall time | failure reason | artifact path |
|---|---|---|---|---|---|---|
| concept | sculptor | 1 | artifacts-exist PASS | ~20 min (10:27–10:47Z) | 1 self-corrected re-prompt (false back view) | assets/concept/elf-archer/*.png |

- Concept note: z-image drafts → flux3 finals, seed 77031 reused; commit e703372 by mm-agent-sculptor. No gate failures.
| sculpt | sculptor | 1 | triangle-budget PASS (1600/3500 tris, 45.7%) | ~35 min (11:04–11:40Z) | none | assets/elf-archer/elf-archer.blend |

- Sculpt note: reproducible build script committed (build_elf_archer.py); Longbow separate object for hand attachment; no UVs yet (texturer stage future); visual QA via rendered self-checks worked well.
- Env fix (orchestrator, mid-rig-stage): Debian Blender lacked numpy — glTF exporter addon failed to import. Installed python3-numpy (2.2.4); exporter verified importable. NOTE for workflow-engineer: prereq check for numpy+blender should be a pipeline gate or documented prerequisite.
| rig | rigger | 2 | validate-rig-zero-errors PASS (0 errors, 22 joints, max 3 influences, 1696 tris) | attempt 1 wedged ~40min (no turn progress, stopped); attempt 2 ~25 min | attempt 1: single mega-turn hang on thinking:high; attempt 2 used incremental scripts per orchestrator steer | assets/elf-archer/elf-archer.blend |

- Rig note: attempt 2's incremental-script approach (inspect → landmarks → rig script → verify) worked well. numpy missing in Debian Blender python blocked the glTF exporter — orchestrator installed python3-numpy; rigger independently worked around via /tmp/np_target (redundant but harmless). Prereq check needed (see env note above).
| animate | animator | 1 | validate-rig-zero-errors PASS + 3 clips present (Attack 1.83s/Idle 4.03s/Walk 1.23s, loop-clean verified) | ~35 min (11:33–12:08Z) | self-corrected: NLA API misuse, STASH track naming, Idle loop endpoints, Attack FK solve via grid-search | assets/elf-archer/elf-archer.blend |

- Animate note: per-action scripts + verification passes (HANDS position prints) caught pose errors early; STASH duplicate attack export was caught by the child's own GLB JSON inspection before commit. Excellent self-QA; no orchestrator retries needed.
| export | exporter | 1 | bevy-import-exit-0 PASS + validate_rig PASS (0 errors, 3 clips, 1696 tris) | ~10 min | 1st attempt failed on pipeline script bug (BLENDER_EEVEE removed in Blender 4.3); exporter fixed pipeline/blender_export.py itself and re-exported | assets/elf-archer/elf-archer.glb |

- Export note: exporter correctly distinguished pipeline-script bug from art-asset issue and patched only the script. 8x "baking animation" infos are benign.
| review | reviewer | 1 | reviewer-pass (RESULT: PASS, all gates independently re-run) | ~12 min | none (2 non-blocking notes) | verdict on Forgejo issue #3 |

## Reviewer non-blocking findings (workflow-engineer input)
1. Skin has no explicit `skeleton` root node — Bevy falls back fine; optional robustness fix in future export script.
2. No AGENTS.md in repo — reviewer had no written artstyle rules to check beyond workflow.yaml (ties into M3 artstyle skills).
3. `elf-archer.blend1` untracked → gitignore *.blend1 (applied by orchestrator with this commit).
4. defaultClips in spec vs run clip list: compliant (clip list is stage input), but consider documenting that distinction in the spec.

## Run summary
- 6 stages, 1 run-level retry total (rig attempt 1 wedged → stopped → attempt 2 OK).
- Final artifact: assets/elf-archer/elf-archer.glb (1696 tris, 22 joints, 3 clips, bevy-import exit 0).
- All commits attributed to stage-agent identities via pipeline/fj-git.
- Iteration dogfood: texturer stage proposal due (see iteration loop).

## Iteration loop outcome
- workflow-engineer opened PR #6 (workflow/texturer-stage → master): optional texturer stage + numpy prereq comment. Evidence-backed, minimal diff. AWAITING USER MERGE — do not self-merge.
- LESSON: workflow-engineer had no Forgejo identity (added to design after the user batch) — orchestrator created mm-agent-workflow-engineer mid-run (admin), wrote creds, added collaborator. LESSON for future: whenever a new agent role is added to .pi/agents/, provision its Forgejo user + token at the same time.
