Issue #2570: mut out: T from n written where there is no body, and Part I’s sentences on what a mut parameter receives (ADR-views-v4 D32)

Open and answer this issue on GitHub.

blocked, yaml · opened 2026-11-21 · updated 2026-11-22 · 3 comments

Part of #2425 After #2425

What it is

ADR-views-v4 D32: a function may put a view of another lent parameter into a mut parameter; the source is inferred from the body, and from is written only where there is no body: a trait’s method, a function type, a foreign or Rust function (D14’s places), as fn(n: Node, mut out: Vec[Event] from n). #2425 builds the inferred rule; this part builds the written form and the specification’s sentences. It is not built: the run of 2026-11-21 on #2425 reported it as not built.

To build

  1. The written form mut p: T from a | b in D14’s places, checked against an implementation’s body where there is one, and refused where a body stores a view the from does not name.
    • Tests in tests/compiler/tests/: a trait method whose implementation stores a view into its mut parameter without from (refused); the same with from (accepted).
  2. Part I 6.5 and 6.6: a sentence each on what a mut parameter receives, citing D32.

Done when

A trait method written mut out: Vec[E] from n accepts an implementation that stores a view of n into out, the same method without from is refused, and Part I 6.5 and 6.6 each say what a mut parameter receives, citing D32; the report gives a Found: line per finding.

Split from #2425 by Claude Code

Comments

keywan-ghadami, 2026-11-22

Brief queued: issue-2570


agent: builder model: opus max_turns: 200 budget_usd: 30 effort: medium —

Issue #2570

Your work order is issue #2570, inlined below with its comments. There is no brief written around it: plan your own steps from its To build list, build them in order, commit after each finished step, and end when its Done when holds (or at the limits of builder.md, reporting what is left). The facts in your prompt are Core of docs/builder-facts.md; more on a topic: nikaia run scripts/syntax.nika -- KEYWORD, a probe: nikaia run scripts/probe.nika -- SNIPPET.

Measure the issue against docs/issues.md while you work: what it lacked, what was wrong in it. That answer goes into the report’s Issue: field. A finding, a changed plan or a finished item also goes into the issue as a comment (gh api repos/Nikaia-Foundation/Nikaia/issues/2570/comments -F body=@file, ending with the Claude Code footer), rule I13.

Rules (CLAUDE.md; shared checkout)

Report (at most 15 lines, to exactly /home/user/Nikaia/docs/briefs/yaml/issue-2570.md.report.md)

Fields: Result, Files, Commit, Body (optional), Fixes, Pushed, Tests, Gate, Deviation, Found, Needs, Changelog, Issue, Owner (a question for the owner), Comment (#N <text>, what to say on another issue; the driver posts it, one line each), Friction, Disk freed, and last Attribution: with your commit trailer lines below it.


Generated by Claude Code

keywan-ghadami, 2026-11-22

Run: issue-2570, Result: blocked

Tokens: input 8, cache read 94495, cache write 16282, output 1106 Cost: 0.20 USD, time 0 min 18 s, turns 4

Report

Result: blocked Pushed: none Tests: none Gate: green Deviation: none Found: #2570 is After #2425 (the inferred rule of ADR-views-v4 D32 a mut parameter receives), and #2425 is still open: no Fixes #2425 in git log -400 of HEAD or origin/develop, only Part of #2425 commits (4cd47895 “A mut parameter may receive views of another lent text parameter, inferred”, a54a3365) Needs: #2425 Changelog: none Issue: complete Friction: none Disk freed: none Attribution: Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com Claude-Session: https://claude.ai/code/session_01UVxJDwSpspVvrTQMgwWNUS

Debrief

  1. What cost the most: almost nothing. Three tool calls: I read the brief, searched the git log for a Fixes #2425 commit, fetched origin/develop and searched again, then wrote the report. The only open question was how to read the state of A mut parameter may receive views of another lent parameter, inferred (#2425): the prompt does not include that issue, so I fell back on the git log -400 --grep='Fixes #N' rule.
  2. What I looked up: nothing from the ADRs or the language. The one missing fact was #2425’s state, which the driver could have put in the prompt next to #2570, since #2570 names it as After #2425.
  3. Checks run: git log -400 --grep='Fixes #2425' on HEAD and on origin/develop, plus git log --grep='#2425' to see the Part of #2425 commits. None were wasted. I ran no probe: the dependency was open, so the run stopped before probing, as the rules say.
  4. Change that would save the most: the driver should list the state of every issue named after After/Needs/Blocked by in the prompt, or not queue an issue whose After #N is still open. As it is, this run was spent only to find the block.
  5. What the issue lacked:
    • rules-gap: #2570 depends on an open #2425 but was queued as ready. No rule in docs/issues.md stops a ready label on an issue whose After #N is still open.
    • Otherwise the issue is complete for its purpose: it has a To build list, a Done when and the places D14 names.
  6. Traps:
    • Fact: Core An issue that says After #N gets no state for #N in the prompt; it counts as closed only if git log -400 --grep='Fixes #N' finds the fix on HEAD or origin/develop. Part of #N commits do not close it.
  7. Fact: none

Generated by Claude Code

keywan-ghadami, 2026-11-22

Driver: not queued, this issue waits for #2425, #2758, which is still open (#1819). Set ready again when it is closed.


Generated by Claude Code

Back to Open Issues