agent: builder model: sonnet max_turns: 70 budget_usd: 12 effort: medium —

Brief: T1, test blocks in tools/*.nika (#1147)

Score: self-hosting lane. Opens the move of about 900 lines of the compiler’s #[cfg(test)] Rust (contracts/send.rs:197-652, contracts/ty.rs:146-365, manifest.rs:272-512) into Nikaia; the decision and the To build list are in #1147.

Shape: feature

Facts: Where things live, Traps already met, Moving Rust into Nikaia, Commands

Facts

To build

  1. Test blocks lower: lower-std turns each test "..." { } of a tools file into a #[cfg(test)] test of its lowered .rs. Probe and first test: one block in threads.nika asserting what contracts/send.rs’s first test asserts. lower-std and its fixpoint, cargo build, cargo test -p nikaia-std threads shows the test passing, and failing when you flip its assert (then flip it back). Commit lower-std: test blocks of a tools file lower into its #[cfg(test)] tests (#1147), Part of #1147.
  2. Move contracts/send.rs’s #[cfg(test)] mod tests into test blocks beside the code they test (threads.nika / check_send.nika), one block per Rust test, same asserts; delete the Rust tests. cargo test -p nikaia-std and cargo test -p nikaia --lib contracts green; the self-hosting share (scripts/self_hosting.py) in Body:. Commit send: its unit tests move into Nikaia test blocks (#1147), Part of #1147.

Rules

Report (at most 15 lines, to exactly /home/user/Nikaia/docs/briefs/t1-tools-test-blocks.md.report.md)

Fields of docs/supervisor.md, Briefs and reports: Result, Files, Commit, Body (optional), Fixes, Pushed, Tests, Gate, Deviation, Found, Needs, Changelog, Owner (a question for the owner), Disk freed, and last Attribution: with your commit trailer lines below it.

This site is open source. Improve this page.