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

Brief: #655 step 2a, a view of an element as a Vec element or a tuple part under ref E?

Score: bugs lane (docs/priorities.md): the checker passes code rustc refuses (E0308) or refuses what ADR-354 D1 allows (NK1103); one area (element views). Steps 1, 3, 4 of #655 are done (2e1ba5d, 2003b4c, deed9ad, f4dfb8c); 2b (null arm) and 5 (lifetimes) are later briefs.

Issue text (#655, item 1, step 2)

Probes (all with struct E { n: i64 }, fn f(given: ref Vec[E]) -> i64, main let g = [E { n: 1 }, E { n: 2 }], println(f"{f(g)}"); architect ran them on 2e1ba5d’s binary)

Locations

Done when

Probes (a)-(c) print 1, (d) unchanged. nikaia test tests/compiler --both-settings passes, plus the it filters element_views, views_kept, stored_views, tethers. Commit A view of an element as a Vec element or a tuple part is lent (Part of #655); no Fixes. Changelog line: yes.

Stop and report if

A choice the ADR does not make (e.g. a view into a Vec that is later returned): Result: blocked, the question under Owner:.

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/b655-element-view-slots.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; 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.