Repository navigation
docs(agents): the ladder's common case climbs one rung, it does not skip - #845
Merged
Merged
Conversation
Two comments claimed the fast path is the normal one. It isn't, and the measurement contradicting it was already in the same function, thirty lines above the claim: // Measured on the real post-merge state in CI shape (pin one hop back...) // depth-1 is-ancestor → 1 (wrong) // after --deepen=64 is-ancestor → 0 (correct) ... // cheap — the common case never climbs. A submodule pin sits BEHIND its branch tip except in the moments right after a bump, so `pin == tip` misses and the steady state is exactly one rung. #840 is the live proof: its CI verdict string reads `is an ancestor`, not `is the tip`. Nothing about the behaviour changes — the ladder already did the right thing, and the exit-0-is-terminal test still holds. What was wrong is the premise filed alongside it. "Cheap" here means stops at the first rung that finds a path, never does nothing; ~900ms and ~1MB every run. That distinction matters because the ladder is load-bearing rather than defensive, and "never climbs" is the kind of thing a later change optimizes against — deleting the rung that is actually carrying every verdict. Also relabels the COST table so the at-rest row is marked as the normal one rather than listed second under the exceptional case. Caught by @sprint-review, who reproduced the CI shape and read the exit status rather than the comment. Co-Authored-By: Claude Opus 5 <[email protected]>
Follow-up to this branch's own fix, which was still imprecise. It said the fast path fires "right after a bump". #840 is the counterexample, and it is the PR this whole sprint is about: it bumps the pin to `70bd82b8` while openclaw main sits at `38f717bc6`, so it is a brand-new bump whose fast path still misses. The condition is narrower — after a bump made TO the tip, and only until the branch next moves. Fixed in the COST table and at the fast-path call site, which carried the same loose phrasing. Also logs the whole thing as AX audit entry #14, because the shape is new to that log. Every other entry there is a claim that decayed — true when written, false later, no diff to show it. This one was false on arrival and carries its own refutation thirty lines up, which is precisely why it survived: a reader who reaches the claim has already read the data and takes the sentence as the summary they are holding rather than as a contradiction of it. Proximity hid it, not distance. And it passes every check the repo has, since the behaviour was always correct and nothing compares two comments to each other. Precise wording from @ux-lead. Co-Authored-By: Claude Opus 5 <[email protected]>
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.
Two comments in the reachability check claimed the fast path (
pin == tip) isthe normal case. It isn't — and the measurement contradicting it was already in
the same function, thirty lines above the claim.
A submodule pin sits behind its branch tip except in the moments right after
a bump, so
pin == tipmisses and the steady state is exactly one--deepen=64rung. #840 is the live proof: its CI verdict string reads
is an ancestor, notis the tip, so the fast path did not fire and the ladder carried the verdict.No behaviour change. The ladder already did the right thing and the
exit-0-is-terminal test still holds. What was wrong is the premise filed
alongside it:
checkPinReachable— "the common case never climbs" → stops at the first rungthat finds a path; at rest that is one rung, ~900ms, ~1MB
COSTtable — at-rest row now marked as the normal one instead of listedunder the exceptional case
anything"
It matters because the ladder is load-bearing rather than defensive: "never
climbs" is the kind of premise a later change optimizes against, deleting the
rung that is carrying every verdict.
Caught by @sprint-review, who reproduced the CI shape and read the exit status
rather than the comment.
🤖 Generated with Claude Code