docs: correct per-endpoint queue cost math for MAX_ENDPOINTS 32 -> 64#4
Merged
Merged
Conversation
What: HD-01 from the backlog re-harvest. The per-endpoint message-queue memory
cost was documented off the dead MAX_ENDPOINTS=32 count; it has been 64 since
A-v.d.3. Corrects the stale figure in three comment/doc spots (no code change):
- src/ipc/mod.rs:346 (EndpointQueue SCAFFOLDING doc): "32 endpoints ... ~= 140
KiB" -> "64 endpoints ... ~= 280 KiB".
- src/ipc/mod.rs:973 (sharded-lock comment): "all 32 endpoints" -> "all 64
endpoints" (sibling caught during the edit; same stale count, same file).
- docs/ASSUMPTIONS.md:88 ("Per-endpoint message queue" row): "32 x 16 x 280 B
~= 140 KB" -> "64 x 16 x 280 B ~= 280 KiB", and the stale source ref
:242 -> :344 (the SCAFFOLDING bound's line; :242 now points at Message::payload).
- docs/ASSUMPTIONS.md:5 frontmatter last_synced_to_code -> 2026-06-08.
Arithmetic: 64 x 16 x 280 = 286,720 B = 280.0 KiB exactly. The const value (16
messages/queue) is unchanged; only the documented total cost moves.
Why: section 8 doc-sync hygiene. Comment/doc math must track the live
MAX_ENDPOINTS. No behavior change, no bound introduced, no gate tripped.
Out of scope (follow-up, ADR-edit gate): docs/adr/005-ipc-primitives-control-and-bulk.md
repeats the same stale figure at lines 43, 49, 265. Fixing the ADR body needs the
ADR-edit Stop-and-Ask gate (diff + sign-off + Divergence appendix) - not bundled here.
Verification: make check-stable clean (x86_64 + aarch64); make check-assumptions
clean (307 baseline, 0 new); stale-math grep returns zero across both target files.
Staged files:
docs/ASSUMPTIONS.md
src/ipc/mod.rs
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
HD-01 from the working-tree-aware re-harvest. Corrects the per-endpoint message-queue cost math (documented off the dead MAX_ENDPOINTS=32; now 64) in src/ipc/mod.rs (2 comments) + docs/ASSUMPTIONS.md (row + stale :242->:344 ref + frontmatter date). Comment/doc-only, no code. 64x16x280=280.0 KiB. Touches src/ (owned) -> needs your code-owner review. Out of scope: docs/adr/005 repeats the figure 3x (ADR-edit gate, separate follow-up).
🤖 Generated with Claude Code