Skip to content

Eight doc-audit findings, fixed everywhere the claim appears - #779

Merged
nockawa merged 1 commit into
mainfrom
doc/audit-batch-2026-08
Aug 11, 2026
Merged

nockawa merged 1 commit into
mainfrom
doc/audit-batch-2026-08

Conversation

@nockawa

@nockawa nockawa commented Aug 11, 2026

Copy link
Copy Markdown
Collaborator

Fixes #649
Fixes #650
Fixes #651
Fixes #652
Fixes #653
Fixes #654
Fixes #743
Fixes #744

The eight open [doc-audit] findings, cleared in one pass. Doc-only apart from one XML comment.

Why these were still open

[doc-drift] (the nightly doc-accuracy run) files findings and fixes them, which is why PR #701 closed its own eight issues the same day. [doc-audit] (the weekly sweep) files and stops. So the drift backlog drains itself and the audit backlog accumulates — these had been sitting since 2026-08-03.

Every one was re-verified against main before editing: still wrong in the doc and still contradicted by source. #701 addressed none of them — it named a disjoint batch (#776, #777, #741, #742, #728, #698, #699, #700) and touched only the HighKey invariant and VerifyIntegrity wording in the files it shares with #744.

What changed

Issue Fix
#649 Cheatsheet default column GroupCommit (typical) → Deferred — both factories default to Deferred; the rest of that file already said so, line 51 was the lone contradiction
#650 TotalMemoryBudgetBytes / Validate() removed — they were purged in #148 and validation is automatic at DI resolution
#651 "2 MB cache out of the box" → 256 MiB. The rationale was inverted too ("intentionally small … so development exercises the cache machinery"), so the sentence is rewritten, not renumbered
#652 Thread-ID headroom split: AccessControl 65 535, AccessControlSmall / ResourceAccessControl 32 767 (signed backing), with the "design to the tightest" note
#653 FenceBlock = 5 added to the record-kinds table, plus what it carries and how it applies; LOG-07 ordering paragraph now accounts for fence batches
#654 RootCapacity/OverflowCapacity → PerPageCapacity = 200 + the v4 directory-only root; DurabilityOverride corrected from "declared but unwired" to "never committed"
#743 MaxDirectoryEntries = 20 → MaxDirectoryEntriesFor(stride), 84 at stride 256 and 116 at 356
#744 IndexString64Chunk is 356 B, not 256 or 64 — corrected in four places, incl. the btree-diagnostics sample, which happens to show Player.Name (a String64 index) and so was the one case where 256 was most wrong

Two of these were filed narrower than the defect

#650 cited 06-operating.md. The same removed surface was also documented in 13-resources.md, resource-budgets-options.md, options-validation-stubs.md, and both feature-set indexes. #654 cited two overview files; the never-committed DurabilityOverride also had an entire feature-set page written around it (durability-override-escalation.md) plus three more mentions.

Fixing only the cited lines would have closed both issues while leaving the reader every other route to the same falsehood, so each symbol is corrected at every site. That is the scope difference behind the file count.

Binding to symbols, not numbers

Where a doc quoted a constant that no longer exists, it now names what replaced it rather than a fresh hardcoded figure — MaxDirectoryEntriesFor(stride) with the two strides it yields, PerPageCapacity with the v4 change that collapsed two page layouts into one. A number binds to a build; a symbol binds to the code. #743 exists precisely because 20 was correct once, for a 64-byte stride, and nothing tied it to the formula when the stride moved.

Deliberately not done

13-resources.md's option table and options-validation-stubs.md describe whole surfaces #148 purged — PageCachePages, ShadowBufferPages, WalMaxSegments, the Validate(_ => true) stubs — not just #650's two symbols. Today's ResourceOptions has five knobs. Rewriting those two pages is a bigger job than these issues, so each carries a stale-banner naming exactly what is wrong, and gets its own follow-up rather than being silently half-corrected here.

Source change

RecordFormat.cs described RecordKind as "the four WAL v2 record kinds" while declaring five. That is almost certainly where 11-durability.md's four-row table came from, so leaving it would have re-seeded #653 on the next sweep. One word.

Verification

check-doc-links ✅ (335 files, 1867 links, 0 broken) · check-rule-scopes ✅ (192 scope lines) · dotnet build src/Typhon.Engine ✅ 0 warnings.

A grep sweep over tracked markdown confirms no live occurrence of any of the eight false claims remains; the only hits left are the historical mentions this PR writes deliberately ("removed in #148", "never committed").

⚠️ One trap worth recording for the next person: grep -rn DurabilityOverride doc/ returns hits from doc/.api-bin/, doc/api/ref/ and doc/_site/, including a published-looking Typhon.Engine.DurabilityOverride.yml, for a type with zero hits in src/. All three are gitignored local build output and can be weeks stale. Verify symbol existence against src/, never against doc/.

…ed everywhere the claim appears

The weekly doc-audit sweep files findings and stops there, unlike the nightly doc-drift run which fixes its own, so this batch had been accumulating since 2026-08-03. All eight were re-verified against main before editing: every one was still wrong on both sides, and PR #701 — the nightly run that merged the same day — had addressed none of them, its eight Fixes lines naming a disjoint doc-drift batch.

Two of them turned out to be filed narrower than the defect. #650 cited ResourceOptions.TotalMemoryBudgetBytes and Validate() in 06-operating.md; the same removed surface was documented in 13-resources.md, resource-budgets-options.md, options-validation-stubs.md and two feature-set indexes. #654 cited DurabilityOverride in two overview files; the enum that was never committed also had a whole feature-set page written around it, plus mentions in three more. Fixing only the cited line would have closed the issue while leaving the reader every other way to find the same falsehood, so each symbol is corrected at every site it appears.

Where a doc quoted a constant that no longer exists, it now names the thing that replaced it rather than a new hardcoded number: MaxDirectoryEntries = 20 becomes MaxDirectoryEntriesFor(stride) with the two strides it yields, and RootCapacity/OverflowCapacity becomes PerPageCapacity with the v4 directory-only root that collapsed the two layouts into one. That is what stops the same drift recurring — a number binds to a build, a symbol binds to the code.

Two pages carry a stale-banner rather than a rewrite: 13-resources.md's option table and options-validation-stubs.md both describe surfaces #148 purged, which is a bigger job than these issues and gets its own.

Also corrected in source: RecordFormat.cs called RecordKind "the four WAL v2 record kinds" while declaring five. That comment is almost certainly where 11-durability.md's four-row table came from, so leaving it would have re-seeded #653.
@nockawa
nockawa merged commit e9cfdbf into main Aug 11, 2026
14 of 16 checks passed
@nockawa
nockawa deleted the doc/audit-batch-2026-08 branch August 11, 2026 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment