Keep phase climbing at the agreed October limits (phase guard) #28
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
6b6t/NoCheatPlus!28
Loading…
Reference in a new issue
No description provided.
Delete branch "agent/phase-op-guard"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What was too strong
Live back-to-back centre jumps climbed the 2-block stack 7/8. With a floor walk before entry, the real October client climbed 8/8; October's A3 centre-jump result was 0/8.
Cause
After a teleport,
lastMove.toIsValidis cleared but the previous destination'sonGroundvalue remains. Thedata_resetbranch then grants a full jump from inside the blocked stack.Change
Add a guard for upward moves when the entire feet footprint is in full solid ground blocks and the head layer is blocked. With the key ON the stale ground credit is not granted there, which is the path live already takes when NCP's data is fresh.
Update (head
aa06ce68): the guard never fired on a real serverThe previous head (
a4832238) returned early whenfrom.isOnGround(0.03)was true. A lab run on a real server with the key ON showed ON = OFF on every row and nophaseguard_holdtag at all. Cause: inside a block that stands on a full block, the location's on-ground shortcut first says true and caches the margin; the powder-snow re-check then setsonGroundto false, but the cache stays.isOnGround(0.03)answered from that cache (true) while the 0.03 box below the feet touches no ground, so the guard exited at every embedded position. The unit tests mocked that probe, which hid it.Fix: the early exit is removed (back to the planned design).
The S2 corner climb after key moves is unchanged: that jump is
lostground_microand never reaches the guarded branch (lab: 8/8lostground_microon every column).S2t note: a corner jump as the very first move after a teleport or set-back (S2t / S2sb) takes the same stale-credit path as the centre jump (lab, live: 7/8 via
data_reset, notlostground_micro). It is now held with the key ON. October has no number for this exact case (October measured the corner climb only after key moves), so it is listed for the owner's yes with the release.Raw upward packet (C6b, bot): with the key ON, a raw upward packet from inside a 2-high block no longer gets the first rise accepted after an on-ground move (
octup040/up042/up020: 0/3 each vs live 2/3, 3/3, 2/3). On live that rise ended inside the block in every try anyway. Same stale-ground path as S1. No walk-out is lost (C6h05 and the sprint walk-out stay 3/3).Open 2-block stack, centre jumps (C3o2, no October number): on the live #13 base, GT13 (this PR + PR #27, both keys ON) gives 0/5 on top vs live 5/5. October never ran centre-only jumps in the open, so this has no October value; it needs the owner's yes with the release. The corner climb stays 5/5. In the 2-deep hole (C3a) the same change is live 5/5 -> 0/5 = back to October's 0/8.
Lab on the live #13 base (release evidence)
Real client (HeadlessMC Fabric + Meteor) and bot, Mac lab, live NCP
55528c2d(#13) vs GT13 (577c5c4a+ PR #27233e00300+ this PRaa06ce68, jar6a6ceeab, both keys ON): S1woct8/8 -> 0/8, EVsbR 5/5 -> 0/5 (both modes), t1241 walk Ccell 5/5 -> 0/5, bot S1oct7/8 -> 0/8, each held on jump 1 withphaseguard_hold. S2 corner climb 8/8 = 8/8 with 0 holds. Every allowed row (walk in, stay, mine, 1-thick exit, 3-thick stop, 5 pearl rows, crystals, Nether roof < 128) equal to live, Fisher p = 1.0, 0 holds. 0 NCP/AEF exceptions.Ships only together with PR #27
#27 alone re-opens the centre climb with the real client; only the combination closes it. Both go out as one jar with both keys ON, after the owner's yes.
Config
checks.moving.survivalfly.phaseguard.active, defaultfalse. An absent or disabled key preserves live behavior (the key is checked first; the guard is not called when it is off).Tests
Head
aa06ce68:TestPhaseGuardRealGround(7 tests): a realPlayerLocationover a block cache with the lab geometry, read the wayMovingListenerreads a move's from (no mocked ground probe). S1 centre, S2t corner, S4c and C9 are held; standing on the stack top and a straddle with an air foot column are not.TestPhaseGuardSequence(35 run, 4 skipped): the phase-guard tests now take every ground answer from a real location instead of a mock. With the old early exit put back, 12 of these tests fail, so the harness can no longer hide this.TestElytraSwapEnvelope.wiringAddsNoStoredCredentialMotionSchedulerOrCallback. That test diffs the git history and fails the same way on unmodified master7370f5a4in a git checkout; it is skipped in a source export.c9e91f03a: applied cleanly; 880 run, 0 failures, 0 errors, 9 skipped.233e00300: applied cleanly; 867 run, 9 skipped, 1 failure (the same history-diff test as above).577c5c4a: clean (merge-tree).🤖 Generated with Claude Code
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Share
Automatic approval. Required checks still have to pass before merging.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.