agent: builder model: sonnet max_turns: 120 budget_usd: 20 —
emit/seeds.rs moves to tools/emit_seeds.nika (writer half first)Score: S=2 (951 Rust lines, the writer about 330), O=0.5 M, C=10 M (E11-4b part 2, b857), self-hosting lane 1 (docs/priorities.md; bugs lane has #665 before it).
crates/nikaia/src/emit/seeds.rs (951 lines, 0 calls into tools::) writes a map position’s hidden seed parameters (__S0, ADR-010 D9) into the text of a written type, and reads which pub items hold maps. It has two halves:
Place (60-150: declare, declare_fn, position, declare_type, finish, enter, leave, within), Seeds::declared, applied, write, run, mention (709-913), free within_hit, closing, renamed (914-951). Needs contracts::maps::Shape (plain data: groups, within, start, of_params, …), which becomes a Nikaia struct in the new file, converted in the adapter.read_with, read_barriers, hands, self_handers, count_types, key, count, …; 153-708): walks Parsed/ast items.Callers: emit/host.rs 311-444 (place.borrow_mut()..., Seeds::declared), emit/mod.rs 802, 1071, 1077, 1246, 1603, contracts/maps.rs:35; Nikaia side tools/emit_function.nika 269/814 through host seeds_begin/seeds_end (tools/emit_host.nika:105).
crates/nikaia-std/src/tools/emit_seeds.nika (prefix emit_seeds_): EmitSeedsPlace, EmitSeedsShape, the seed tables the writer reads (calls, shapes, …) as a Nikaia struct the Rust Seeds holds as one field; seeds.rs keeps the reader and calls nikaia_std::tools::emit_seeds::*. Output of lower-std unchanged outside the slice’s files.last, is_map, bare, count, distinct, key); a walk that cannot move yet stays Rust.tests/compiler/ test, own commit); cargo test --profile fast -p nikaia --test it -- seeds maps sysroot, nikaia test --both-settings --project tests/compiler. Row in scripts/self_hosting.py.Generated by Claude Code
docs/builder-facts.md and CLAUDE.md Moving Rust into Nikaia. Pattern: tools/libraries.nika + libraries.rs; a new .nika needs one lower-std run with the old binary before cargo build.crates/rs2nika/convert, --profile emit --prefix emit_seeds_); report rs2nika: kept N of M.Fixes #867 only if both halves moved, else Part of #867 and say what is left under Tests:. Add seeds writer switched to docs/selfhosting-plan.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/b867-seeds-writer.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. 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