agent: builder model: opus max_turns: 120 budget_usd: 30 —
Needs into Nikaia (#125)Score: self-hosting lane (docs/priorities.md, S 2): ~470 Rust lines replaced, no prerequisite; C ~10 M (C7-r1 moved ~386 lines in one Opus run). The row and its risks are in docs/selfhosting-plan.md, C-7 rest and E12 (read it first; its line ranges are at 62a07a1, the ones below are re-grepped at 464ff6d).
crates/nikaia/src/emit/mod.rs: the item loop of with_contracts (:1227; grammars, structs, methods, by_name, uses_std, fails), structs_beside, declared_errors (:1946) and its chain, tethered_types (:1950), read_view_slots (:1963), described_maps (:806), package_borrowing (:2039) -> tools/emit_tables.nika (tables over Ledger and items).emit/mod.rs Needs (:825) with of/join/preamble, foreign_traits (:978; comptime_run.rs and modules.rs keep emit::Needs as a re-export), abort_table (:461) -> new tools/emit_needs.nika.emit/mod.rs split_lifetimes (:1758; host side emit/host.rs:390) and check/attributes.rs inline_written (:26) -> Nikaia.EmitHost::split_lifetimes, inline_written; abort_table takes SourceMap::rows as a list. None added.split_lifetimes returns early with ? from an Option function, splits on a char set (split(['|', ',']): two splits in Nikaia) and runs a union-find over a mut Vec[i64] with a nested fn; Needs::join takes mut self. A gap that blocks is a compiler fix (CLAUDE.md Fix, do not work around), its own commit with a test; if it cannot be fixed in this run, Result: partial with the probe under Found:..nika needs one lower-std with the old binary first, and a row in scripts/self_hosting.py (docs/builder-facts.md).Part of #125)with_contracts loop, structs_beside, declared_errors, tethered_types, read_view_slots, described_maps, package_borrowing) into emit_tables.nika.Needs, foreign_traits, abort_table into emit_needs.nika.split_lifetimes and inline_written into Nikaia; the two host methods go.All three built; lower-std clean (byte-identical lowered output of the rest), generated diff committed; nikaia test tests/compiler --both-settings; it filters lifetime, abort, needs, foreign, views_kept, attributes, sysroot, and the guard set of .claude/agents/builder.md. Report the Rust lines removed (python3 scripts/self_hosting.py) under Tests:. Changelog: none unless a message text changes.
A design choice the table leaves open (a host method that has to be added), or an error in another agent’s file.
Read docs/builder-facts.md.
docs/builder-facts.md first. develop in the main checkout; git status at start: other agents’ uncommitted files are not yours, never touch or stage them.git add <files> only; commit after each step; git push origin develop fast-forward, no rebase (rejected: report Pushed: rejected, go on committing).cargo fmt, cargo clippy --all-targets -- -D warnings, scripts/pre-push-check.sh, and the gate of .claude/agents/builder.md (#852).CHANGELOG.md, badges; no new NK code. New tests in Nikaia only; never the full suite. No foreground sleep, no polling; scripts in files.NIKAIA_CACHE_LIMIT=2G; at most two clones with target/ in the machine; delete your own clone’s target/ and target/release/nikaia-scratch at the end; report GB freed./home/user/Nikaia/docs/briefs/e12-1.md.report.md)Fields of docs/architect.md, Briefs and reports: Result: done|noop|partial|blocked (the bare word first; Owner: is a question for the owner or none, never a role), Files, Commit, Fixes, Pushed, Tests, Gate (green|red), Deviation, Found, Needs, Changelog, Owner, Disk freed. none where nothing, and then the bare word: Deviation: none (a note) cuts the batch (batch.nika compares exactly); a note goes into the commit message. Found: is only for a defect outside your change (it cuts the batch); how you solved your own step goes into the commit message. Deviation: is only a step of the brief built otherwise than written or not built (a choice the brief left to you, such as keep what X needs and say so, is no deviation: it goes into the commit message); how you verified (e.g. a test not run against the unfixed compiler) goes under Tests:. A noop says why under Tests: (what was probed), not under Deviation:. Final answer, one line: done <sha>, report <path> (or BLOCKED: ... / PUSH REJECTED ...).
Attribution: Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com Claude-Session: https://claude.ai/code/session_01GFeMqxRbtUMiGVyDMxsvEq