agent: builder model: opus max_turns: 110 budget_usd: 22 —

Brief: E12-4a, the build switches and the target list into Nikaia (Part #125)

Score: self-hosting lane (docs/priorities.md; #125, docs/selfhosting-plan.md C-7 rest and E12, row E12-4, the last E12 row; 79.1 % after E12-3b). E12-4 is split by the architect (2026-10-27): 4a (this) moves what needs no Default from the lowering; 4b moves Target and Build and needs a lowered impl Default from field defaults (ADR-331 D5) first.

Facts

To build

  1. New crates/nikaia-std/src/tools/emit_build.nika: UserParallelism, ReentrancyCheck with parse, is_concurrent, is_on; parallelism takes has_threads: bool instead of a Target (the Rust caller passes target.has_threads()). Remove them from emit/mod.rs, re-export; Build’s hand impl Default. lower-std: only the new file, lowered.rs’s export line, and nothing else changes.
  2. RUST_TARGETS moves into emit_build.nika (the doc comment with the rustc --print target-list regeneration note goes with it); emit/rust_targets.rs is deleted. Report the lowered file’s size and lower-std’s work count (files re-lowered) under Tests:.
  3. Tests: the existing it tests that name user-parallelism/reentrancy-check/an unknown target (find them with nikaia run scripts/where.nika -- NAME) pass unchanged, byte for byte in their messages; no new test needed unless a message moved (then a .stderr test in tests/compiler/tests/). Update docs/selfhosting-plan.md row E12-4 (4a done, 4b left) and run python3 scripts/self_hosting.py (report the %).

Done when

it tests filtered on parallelism reentrancy target; nikaia --lib emit::; nikaia test tests/compiler --both-settings; the guard set of .claude/agents/builder.md; clippy clean. Commit lines emit: the build switches into Nikaia (E12-4a) and emit: the Rust target list into Nikaia (E12-4a), Part: #125. Changelog: none (a move).

Stop and report if

The ~300-string list lowers to something rustc or clippy refuses and the fix is in the lowering (a compiler defect: fix it as its own commit with a test if small, else blocked with the probe); an open design choice; an error in another agent’s file.

Read docs/builder-facts.md.

Rules (CLAUDE.md; this block is pasted into every brief, also a fix-forward)

Report (at most 15 lines, to exactly /home/user/Nikaia/docs/briefs/e12-4a.md.report.md)

Fields of docs/architect.md, Briefs and reports: Result: done|noop|partial|blocked (the bare word alone on that line: Result: done, never a summary after it, which cuts the batch, b869a 2026-10-27; Owner: is a question for the owner or none, never a role), Files, Commit, Body (optional, one paragraph for the commit message), Fixes, Pushed, Tests, Gate (green|red), Deviation, Found, Needs, Changelog, Owner, Disk freed, and for a move Rs2nika: (the kept N of M lines of rs2nika --score, then the three costliest hand edits; none for a task that moves no Rust). 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; nor is building two steps in one commit when every step is built, e12-3a 2026-10-27: say so in Body:); 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

This site is open source. Improve this page.