Repository navigation
fix(minvmd): a relay's end names the rows it marked by their own numbers - #3918
Conversation
A relay's withdrawal report named a row by its address and box id. A box keeps its id across a stop and a resume, so a relay that ended after its box was resumed under another relay named the reinstated row: its end emptied that row's DNS tables and took the other relay's carrier from it, and the row was withdrawn at the grace's end while in use. The report now carries the row's number as well, and the tables are emptied and the carrier taken only when the row at the address is the one the relay marked. A relay that marks a reinstated row files it as a row of its own. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
… count The Verus job read the toolchain from verus --version and installed whatever it read. An empty read now stops the job there, with what Verus printed. The comments that gave the network kernel's default set as 104 harnesses name the file that lists it instead: it has 105. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…ests Four of the gate's tests read a report's entries as pairs. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
Approved: no findings at Nothing to do. Clobber: none seen. |
There was a problem hiding this comment.
Read at 74f8c82. generation is unique per record, since every BoxRecord takes it from the process-wide counter and no construction copies an older one. detach and empty_carried_tables match and change under one read of the row lock. a_late_report_leaves_a_reinstated_row_another_relay_carries fails on the old box-id-only match.
Notes, none blocking:
- The doc comment on
RelayCarryincrates/minvmd/src/box_registry.rsstill says it holds "the sources with the box ids it reports at its end". The field doc below it has the three-field form, so the struct comment is stale. - An old relay that is still open and sends no frame after a resume no longer counts toward the reinstated row. The description names this and defers it. No test pins it yet.
- In
a_relays_end_empties_the_tables_of_the_rows_it_carried, the second report'sdbentry carries the other box's id and generation, so it never matches thedbrow. A one-line comment would say that is the point. - The Verus guard and the Kani comment edits are a separate concern from the fix. They sit in their own commit, which is fine.
What
Two changes after the last review round on #3869, which arrived as it merged.
BoxRecord::generation), and the tables are emptied and the carrier taken only when the row at the address is the one the relay marked.verus --versionnames no toolchain, where it went on to install nothing. Three comments gave the network kernel's default Kani set as 104 harnesses; it has 105, and the comments now name the file that lists it.Why (1) is safe to take alone
detachmatched the box id only). The table half came with feat(minvmd): decide the host gate's frames with a verified kernel (netcore) #3869 (empty_carried_tables).Tests
a_late_report_leaves_a_reinstated_row_another_relay_carries: a row is withdrawn under an open relay and resumed, another relay carries the new row, and the old relay's end neither detaches it nor lets the grace withdraw it; its own relay's end detaches it.a_relays_end_empties_the_tables_of_the_rows_it_carriedalso files a report with the row's box id under another number, and the tables stay.Not in this change
From the same review round, each answered on its thread in #3869:
carrymarks every source on a row change, not only the frame's own. With the report keyed by the row's number the count stays balanced. Marking per source would let a box that is resumed and stays silent lose its row at the resume bound while its relay is live, so that is a design question and not a fix to slip in here.Pins::admitrefusesFullwithout reclaiming other names' expired addresses. Not reachable with the table as minvmd sizes it (names times the per-name quota); reachable only for a box that declares more names than the table was sized for, which is already logged. The fix changes a theorem's statement, so it goes with the kernel's next proof round.Outcome's three status fields are public. No caller changes them. Making them private changes the kernel's locked view, so it goes with the same round.crates/netcore-lock.🤖 Generated with Claude Code
Summary by CodeRabbit