Keep phase climbing at the agreed October limits (phase guard) #28

Open
qbasty wants to merge 32 commits from agent/phase-op-guard into master
Owner

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.toIsValid is cleared but the previous destination's onGround value remains. The data_reset branch 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 server

The previous head (a4832238) returned early when from.isOnGround(0.03) was true. A lab run on a real server with the key ON showed ON = OFF on every row and no phaseguard_hold tag 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 sets onGround to 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_micro and never reaches the guarded branch (lab: 8/8 lostground_micro on 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, not lostground_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 (oct up040/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 #27 233e00300 + this PR aa06ce68, jar 6a6ceeab, both keys ON): S1w oct 8/8 -> 0/8, EVsbR 5/5 -> 0/5 (both modes), t1241 walk Ccell 5/5 -> 0/5, bot S1 oct 7/8 -> 0/8, each held on jump 1 with phaseguard_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, default false. 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:

  • New TestPhaseGuardRealGround (7 tests): a real PlayerLocation over a block cache with the lab geometry, read the way MovingListener reads 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.
  • Full Maven reactor: 860 run, 0 errors, 9 skipped, 1 failure: TestElytraSwapEnvelope.wiringAddsNoStoredCredentialMotionSchedulerOrCallback. That test diffs the git history and fails the same way on unmodified master 7370f5a4 in a git checkout; it is skipped in a source export.
  • Rebased onto PR #13 head c9e91f03a: applied cleanly; 880 run, 0 failures, 0 errors, 9 skipped.
  • Merged with the t1241 branch head 233e00300: applied cleanly; 867 run, 9 skipped, 1 failure (the same history-diff test as above).
  • Merge with current master 577c5c4a: clean (merge-tree).

🤖 Generated with Claude Code

### 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.toIsValid` is cleared but the previous destination's `onGround` value remains. The `data_reset` branch 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 server The previous head (`a4832238`) returned early when `from.isOnGround(0.03)` was true. A lab run on a real server with the key ON showed ON = OFF on every row and no `phaseguard_hold` tag 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 sets `onGround` to 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_micro` and never reaches the guarded branch (lab: 8/8 `lostground_micro` on 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`, not `lostground_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 (`oct` up040/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 #27 `233e00300` + this PR `aa06ce68`, jar `6a6ceeab`, both keys ON): S1w `oct` 8/8 -> 0/8, EVsbR 5/5 -> 0/5 (both modes), t1241 walk Ccell 5/5 -> 0/5, bot S1 `oct` 7/8 -> 0/8, each held on jump 1 with `phaseguard_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 https://git.6b6t.org/6b6t/NoCheatPlus/pulls/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`, default `false`. 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`: - New `TestPhaseGuardRealGround` (7 tests): a real `PlayerLocation` over a block cache with the lab geometry, read the way `MovingListener` reads 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. - Full Maven reactor: 860 run, 0 errors, 9 skipped, 1 failure: `TestElytraSwapEnvelope.wiringAddsNoStoredCredentialMotionSchedulerOrCallback`. That test diffs the git history and fails the same way on unmodified master `7370f5a4` in a git checkout; it is skipped in a source export. - Rebased onto PR #13 head `c9e91f03a`: applied cleanly; 880 run, 0 failures, 0 errors, 9 skipped. - Merged with the t1241 branch head `233e00300`: applied cleanly; 867 run, 9 skipped, 1 failure (the same history-diff test as above). - Merge with current master `577c5c4a`: clean (merge-tree). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
coderabbitai[bot] commented 2026-11-23 09:42:35 +00:00 (Migrated from github.com)

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 16659f1c-b193-4315-aa44-a3cd27d6b73a
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

<!-- coderabbit-ai-generated:v1 --> <!-- This is an auto-generated comment: summarize by coderabbit.ai --> <!-- This is an auto-generated comment: skip review by coderabbit.ai --> > [!IMPORTANT] > - [ ] <!-- {"checkboxId":"e9bb8d72-00e8-4f67-9cb2-caf3b22574fe"} --> Trigger review > > This repository does not receive automatic reviews because it has fewer than 10 stars. > > <details> > <summary><strong><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/cog-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/cog.svg" width="16" height="16" align="absmiddle" alt=""></picture> Run configuration</strong></summary> > <dl> > <dd> > <br> > > - **Source mode**: Auto > - **Repository**: Unavailable > - **Branch**: Unavailable > - **File**: No configuration file from this repository applied > - **Commit**: Unavailable > - **Layers**: defaults > - **Review profile**: CHILL > - **Plan**: Advanced > - **Run ID**: `16659f1c-b193-4315-aa44-a3cd27d6b73a` > > </dd> > </dl> > </details> <!-- end of auto-generated comment: skip review by coderabbit.ai --> <!-- autopilot:start --> - [ ] <!-- {"checkboxId":"2708ad07-9f24-4260-9c11-7dc76a49f2e3"} --> <strong title="Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts">Autofix</strong> · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts <!-- autopilot:end --> <!-- tips_start --> Thanks for using [CodeRabbit](https://coderabbit.ai?utm_source=oss&utm_medium=github&utm_campaign=6b6t/NoCheatPlus&utm_content=28)! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. <details> <summary><strong>Share</strong></summary> <dl> <dd> <br> - [X](https://twitter.com/intent/tweet?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A&url=https%3A//coderabbit.ai) - [Mastodon](https://mastodon.social/share?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A%20https%3A%2F%2Fcoderabbit.ai) - [Reddit](https://www.reddit.com/submit?title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&text=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code.%20Check%20it%20out%3A%20https%3A//coderabbit.ai) - [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fcoderabbit.ai&mini=true&title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&summary=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code) </dd> </dl> </details> <!-- tips_end -->
approval-bot left a comment

Automatic approval. Required checks still have to pass before merging.

Automatic approval. Required checks still have to pass before merging.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'agent/phase-op-guard:agent/phase-op-guard'
git switch 'agent/phase-op-guard'
Sign in to join this conversation.
No description provided.