Repository navigation
#642 Split the PK-fallback paragraph, and stop the doc reviewer revising its own prose - #644
Merged
Merged
Conversation
…ing its own prose 09-querying.md line 150 packed seven independently verifiable claims into one paragraph, which is why two nights in a row found something wrong in it. The 2026-08-01 run fixed the stale half and inherited a cluster-storage sentence it had not checked, then bridged into it with "In either case" — widening a claim that was only ever true for non-cluster archetypes. #642 filed the result. Both errors were real and different; this was not one fix being reverted by the next. Split it into a non-cluster paragraph and a cluster one, with the cluster dispatch as a table so each entry point is checkable on its own instead of buried in prose. Verified against the code: ExecuteTargeted sends cluster archetypes to ScanPerArchetypeBTree whenever UsesSecondaryIndex is false, pure-cluster ordered scans go to ExecuteOrderedClustered, mixed ones to ExecuteOrderedViaSortFallback, and Count with any cluster archetype in the mask returns ExecuteTargeted().Count without ever reaching PipelineExecutor.Count. The "returns 0" short-circuit is non-cluster only. Two guards so it does not happen again. The prompt now requires verifying every claim in a paragraph it edits and forbids writing a linking phrase into prose not verified that run, since a connector widens the scope of whatever it points at. And open-pr blames the pre-image lines of each hunk and refuses to commit when they were written by a [doc-drift] commit less than 30 days old: touching the same page two nights running is expected, rewriting the same lines means the reviewer is arguing with itself and neither run can tell, because each only sees the current text. Recent rather than ever, so prose the bot wrote months ago can still be revised when the code moves. Guard verified on four cases plus the live one: human-written line silent, recent bot line fires, bot line older than 30 days silent, pure insertion silent, and this commit's own doc edit correctly flagged against 30baae7. Fixes #642 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019edYt6pHPKFqVcsDpJ7v9x
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.
Fixes #642.
It was not a reversal — but the shape was worrying for a good reason
The clause #642 objects to sits on the
-side of #636's diff: it predates last night and was carried through verbatim. #633 was about a different clause in the same paragraph. So one paragraph held two independent errors; night 1 fixed one and inherited the other, then bridged into it with "In either case ..." — widening a claim that was only ever true for non-cluster archetypes. That connector is the actual defect: it signed the reviewer's name to prose it had never read.The prose
09-querying.md:150packed seven independently verifiable claims into a single paragraph —SelectFullScanStream, both-1cases, theExecuteCoreshort-circuit,Count=0, PK B+Tree removal, and cluster ordered scans. A reviewer told to "fix only what it is confident about" will nibble one clause per night forever. Split into a non-cluster paragraph and a cluster one, with the cluster dispatch as a table so each entry point stands alone.Verified against the code before writing, so this is not a third round:
ExecuteTargeted→ScanPerArchetypeBTreeEcsQuery.cs:1209-1216ExecuteOrderedClusteredEcsQuery.cs:830-834ExecuteOrderedViaSortFallbackEcsQuery.cs:837Count()w/ any cluster archetypeExecuteTargeted().CountEcsQuery.cs:2176-2181PipelineExecutor.Count'sreturn 0(PipelineExecutor.cs:51-58) is reachable only from the non-cluster path.Two guards
Prompt. Verify every claim in a paragraph you edit, not just the sentence you came for. And never write a linking phrase — "in either case", "likewise", "the same applies" — into prose not verified that run, because a connector widens the scope of whatever it points at.
Mechanical.
open-prnow blames the pre-image line ranges of each hunk and refuses to commit when they were written by a[doc-drift]commit less than 30 days old. Touching the same page two nights running is expected —--3wayexists for it. Rewriting the same lines means the reviewer is arguing with itself, and neither run can tell, because each only ever sees the current text. Recent rather than ever, so prose the bot wrote months ago can still be revised when the code moves.Findings stay filed as issues when it trips, matching how the step already handles a conflicting merge: stop rather than resolve.
Verification
[doc-drift]commit wrote[doc-drift]commit wrote30baae7(1d)Link lint clean (329 files, 1872 links, 0 findings). Workflow YAML parses.