agent: builder model: sonnet max_turns: 120 budget_usd: 20 —

Brief: E11-4b part 2, a_stmt of emit moves to Nikaia (Part of #583, after #854 part 1)

Score: S=2 (about 950 Rust lines), O=1 M (the last statement callback into Rust), C=12 M (E11-4a 1212 lines in one run; part 1 moved 290), self-hosting lane 1 (docs/priorities.md).

Facts

Locations (at bf655248; re-grep)

To build

  1. emit_stmt_a_stmt in tools/emit_stmt.nika with the helpers only it calls; emit_stmt calls it directly; the host’s a_stmt and Rust a_stmt go, with the helpers nothing else calls (dead locals deleted).
  2. A lowering defect met: fix with a tests/compiler/ test, own commit, or file a ready issue and stop.
  3. cargo build --profile fast -p nikaia, target/fast/nikaia lower-std: output unchanged beyond the slice’s files; cargo test --profile fast -p nikaia --test it -- emit:: sysroot, nikaia test tests/compiler --both-settings. Update scripts/self_hosting.py, add E11-4b switched to docs/selfhosting-plan.md. Last commit Fixes #854, #857, Part of #583.

Rules (CLAUDE.md)

Report (at most 15 lines, <brief path>.report.md)

Result, Files, Commit, Fixes, Pushed, Tests, Deviation, Found, Needs, rs2nika kept N of M, Rust lines removed, GB freed, Owner (form: docs/architect.md, Briefs and reports).

This site is open source. Improve this page.