Skip to content

Keep home worlds and a paused start fail closed (0.11.3) - #21

Merged
mgilardi merged 5 commits into
mainfrom
safety/posse-failopen
Dec 1, 2026
Merged

mgilardi merged 5 commits into
mainfrom
safety/posse-failopen

Conversation

@mgilardi

@mgilardi mgilardi commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Posse 0.11.3 makes home worlds and a paused start fail closed. The CHANGELOG has the full list. Read its first line before upgrading with home worlds on: a circle with no entry now lifts no limit.

Tested: clean build with 268 unit tests and no failures, rerun by a second session, and the leak check. Bot suites ran on throwaway Paper servers with LuckPerms (26.1.2, 26.2, 26.3) in the building session and weren't rerun. On Paper 26.3 build 272 no leave line is logged, with this version or 0.11.2, so one suite.js check and three presence-messages.js checks fail there.

Not tested: walking or damage while held, stacked riders, an undecidable teleport check, start() with players online, or a real game client.

Disabling Posse still lifts its rules. That's a separate decision and isn't changed here.

🤖 Generated with Claude Code

mgilardi and others added 5 commits November 30, 2026 10:00
…1.3)

A missing home-worlds fallback sent players to the main world, which may
be one they must not be in, and a config that failed at startup left home
worlds unenforced. Now a player who can't be placed is disconnected with
no join or leave line, and a paused start refuses joins without
posse.bypass.

Unit tests pass (166). The new bot checks have not been run on any server.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
A safety review of 0.11.3 found ways a player could still get in or stay
loose. The join check now goes in before anything that can fail, startup
errors no longer disable the plugin, a second check runs at join, and a
cancelled disconnect holds the player while it is retried. Home worlds can
send a player to a named lobby that their group may use, and otherwise
disconnects them. ReachService gains a circles-only check for map dots.

Tested with ./gradlew build (214 unit tests) and node --check on the bot
suites. No server was run: the new and changed bot checks are written and
have not been run on 26.1.2, 26.2 or 26.3.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The owner's lobby rule (D368) wins over the older per-group fallback: a
player outside the worlds their group may be in goes to the lobby when it
is named, loaded and open to their group, and is disconnected otherwise.
Players in no circle follow the same rule with the no-circle list. The
last commit still tried the group's fallback first.

An old fallback line never chooses a destination. The config loads with a
warning and that entry's message is hidden while the line is there. A
no-circle entry with only a fallback keeps that world allowed, so the
upgrade opens and closes nothing.

Tested: ./gradlew clean build (205 unit tests) and node --check on the
bot scripts. Not tested: no server was run, so the updated home-worlds.js
and reach-leaks.js checks have not been run on any version.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The check after a world change ran a tick late with the player still visible and able to chat. Teleports, portals and rides into a forbidden world are now cancelled, the later check makes the player pending at once, and a reload or start applies the rules to people already online. Anything that can't be decided is refused.

229 unit tests pass. No server was run. The calls from reload() and start() have no unit test, and no bot check drives a portal, a ride or the safety net.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Every circle now has its own home-worlds setting, so a circle with no entry
lifts no limit, and a missing no-circle entry means lobby only. A pending or
held player is out of the game until the move lands or they're gone, and a
teleport refusal another plugin takes back is put back. A kick that takes a
moment to go through is no longer reported as cancelled.

268 unit tests pass. Bot suites pass on 26.1.2 and 26.2. On 26.3 build 272 no
leave line is logged, with this version or 0.11.2, so one suite.js and three
presence-messages.js checks fail there. Not tested: walking or damage while
held, stacked riders, start() with players online, or a real game client.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@mgilardi
mgilardi merged commit 82a8621 into main Dec 1, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant