Commit bb2dee3
committed
Document HashMap iteration-order invariant, improve SizeCache panic message
Review follow-up:
- map_compute_size_stmt uses .values() when key size is constant, while
map_write_to_stmt always uses for (k, v). The cache-slot order between
these must match. For HashMap (both std and hashbrown) it does — both
walk the table in slot order — but this is not obvious from a cold read.
Added a comment at the optimization site.
- next_size() previously panicked with a generic index-out-of-bounds
message. Now reports cursor position vs slot count, with #[track_caller]
so the panic location points at the caller. Helps manual Message
implementers diagnose traversal-order mismatches.
- Dropped model: opus from the rust-code-reviewer agent definition.
That model was emitting text-based pseudo-tool-call syntax the harness
does not parse (tool_uses: 0 on every run), so all findings were
confabulated from nonexistent file content. Inherits the main loop
model now.1 parent b1ff00b commit bb2dee3
File tree
3 files changed
+15
-2
lines changed- .claude/agents
- buffa-codegen/src
- buffa/src
3 files changed
+15
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2483 | 2483 | | |
2484 | 2484 | | |
2485 | 2485 | | |
| 2486 | + | |
| 2487 | + | |
| 2488 | + | |
| 2489 | + | |
| 2490 | + | |
| 2491 | + | |
2486 | 2492 | | |
2487 | 2493 | | |
2488 | 2494 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| 95 | + | |
95 | 96 | | |
96 | | - | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
97 | 105 | | |
98 | 106 | | |
99 | 107 | | |
| |||
0 commit comments