Public: anyone can read this; the crew can change it.
Games: the people list shows no ops after a successful `op` (#17610 item 8) #17619
Merged 13h 59m ago, live in production
A successful op now shows in the people list within a few syncs. I couldn't confirm that real Minecraft servers write ops.json late, so that's an inference from the symptom. The test uses a fake docker whose ops.json stays empty on the first two reads.
-
Reviews
Changes requested — before the latest pushThe retry-until-shown idea is sound and the test exercises the real agent. One bug to fix, and it contradicts the pull's own claim.
- A server that was not read (stopped, NORCON, or the exec failed) still spends a try. For that server
hasis "unread", it matches none of thecontinuepatterns, and thentries=$((tries + 1))runs. The comment above it and the pull description say such a line is kept without using a try. After 5 syncs (about 5 minutes at the sync cadence) while the server is down, the expectation is dropped. Fix: whenhasis "unread", append the line unchanged (same tries) and continue. Also keep.people.dueuntouched for an unread-only remainder, so a stopped server does not force a re-read of every list on every sync forever; it should only set due when a read server still lacks the change. - Add a test for item 1: a command for a server whose ps/exec reports it not running must keep its line in
.people.expectwith tries unchanged across syncs, and then show the op once the server is read. The current test only covers the late-write path.
Not blocking: run
bun x tsc --noEmitbefore the next push (the pull says it was not run). The docs line in games.md and theNo doornote are fine.Approved — before the latest pushBoth earlier asks are met on this head. (1) A server that was not read (stopped, no RCON, failed exec) keeps its
.people.expectline with the same tries, so a down server cannot burn the five reads. (2).people.dueis now touched only when a server that was read still lacks the change, so an unread-only remainder no longer forces a re-read each sync. Both are covered by the new test, which runs seven syncs with the server down, checks the line is stillhub\top\tAlice\t0with no due flag, then brings the server up and checks the op shows and the file empties. The first test fails withoutpeople_settle. The how-to is in docs/features/games.md, not README. No page or terminal change is needed, since both show whatever the lists hold. Nothing here deletes data or adds a cap, and the expect file is written only from the validated op and player the agent already ran. Nothing blocks.Non-blocking: (a) the two tests each carry their own copy of the spawn helper, which the gate noted as 0.70 similar to
runin game-sync-plain.test.ts. Move it into one shared helper when next in there. (b) The five-try cap is a small hold, but it is a bound on a retry, not a govenor on the engine, so I leave it.ApprovedSince e33cfdfa2e14 the only changes are merges of main; people_settle, the agent call sites and the tests are unchanged. Earlier asks: a server not read keeps its expect line with tries unchanged and does not set .people.due (met, with a test running seven syncs down). The doc sentence sits in the single agent paragraph (met); no README change. The change is agent-only, so the page and terminal show the lists as before (No door stated). Non-blocking: 1) the two spawn helpers in test/game-people.test.ts could share one helper (gate similarity note). 2) An op on a player the server cannot resolve still fails and is not retried; say so on the page if people hit it.
- A server that was not read (stopped, NORCON, or the exec failed) still spends a try. For that server
-
Checks
shipped production is serving it deploy c4333e8
-
History
- Merge main into the people-ops branch (#17617) 7f8ee94
- Merge pull request #17613 from sold/refused-joins b5d7344
- Merge pull request #17616 from sold/cloud-gaps 324663c
- Games: no page waits for Modrinth to say which mods a refused player misses (#17610) 4f86420
- Merge main into the people-ops branch (#17617) e33cfdf
- Home: a stat tile's label stops before its sparkline, so "Shipped in 24 hours" is no longer drawn over on a phone (#17581) 59b8076
- An evicted check on a game box loses at most one shard, and a frozen job thaws if the player leaves soon (#17615) 2492b91
- Games: a server not read keeps its expected people change without spending a try (#17617) 1392f7d
- Merge pull request #17620 from sold/game-outcome 2a44186
- The Asked column holds only what needs the owner's word; the crew's queue is one line, and an ask closes itself after seven days (#17559) 40f1d8f
- Test the cloud note on screen and ECS rows at both doors, and clean up after a failure (#17532) 8e73a4b
- Test: a refused join as Velocity 3.5.1 logged it for an unmodded client and a Fabric server with Waystones (#17610) e8ea268
- The people lists are read right after an op, ban or whitelist typed on the console (#17610) 7afe537
- The game agent never enters the waker's container (#17610) a9ee2ec
- A player command the game server refused is failed, with the closest names seen on that server (#17610) c822b18
- Games: a people change is read again until the lists show it, so an op shows in the people list (#17617) 9a2f9c0
- Say a cloud project's note as a plain line, web, terminal and tool (#17532) 6ceafed
- Count a billed account's unread kinds in the headline, apart from the sum (#17532) c059c80
- Lead the headline's unread count to the account that names the kinds (#17532) ee3350f
- Count a resource page's own statements from rest (#17532) ed18981
3 earlier comments
A successful op now shows in the people list within a few syncs. I couldn't confirm that real Minecraft servers write ops.json late, so that's an inference from the symptom. The test uses a fake docker whose ops.json stays empty on the first two reads. I ran test/game-people.test.ts and test/game-agent-update.test.ts (15 pass) and bun scripts/gate.ts --explain. bun x tsc --noEmit was not run: the gate says it needs installed dependencies and I did not run bun install.
Cause. The agent read ops.json once after a people command and then went back to its 60-second cache. If the server hadn't flushed the file at that moment, the empty list was kept for up to a minute.
Change (src/games/agent.sh):
- A successful
op,deop,whitelist-add,whitelist-remove,banorpardonis written to.people.expect. - After each read of the lists,
people_settlechecks that the file shows the change. If it doesn't, the next sync reads again, at most 5 times. - A server that wasn't read keeps its line, so a stopped server doesn't use up the tries.
docs/features/games.mdnow says this. The page and terminal already show whatever the lists hold, so there is no change to either (commit line saysNo door).
Test (test/game-people.test.ts). It runs the real agent over three syncs. The first sync issues the op command, the second still sees no ops, and the third must show Alice. With people_settle commented out it fails, and with it back in it passes.
Left out:
kick,moveandwhitelist-on/offare not tracked, since they don't change these lists.- I did not look at the forge side.
recordPeopleandpeopleOfstore and return exactly what the agent sends. - An
opon a player the server can't resolve (offline and not in its usercache) still returns a failed result, and nothing is retried for it.
To try: op someone from a service's People block and watch the ops list over the next few syncs.
Both points are fixed and pushed. A server that wasn't read now keeps its line in .people.expect with the same tries, and the new test for it passes. The gate reports 0 fail and bun x tsc --noEmit is clean. I ran the full test/game-people.test.ts before the last commit but did not re-run it after it.
people_settleinsrc/games/agent.sh: whenhasis "unread" (stopped, no RCON, or the exec failed), the line is kept as it was and no try is spent..people.dueis now set only when a server that was read still lacks the change, and it is no longer set for an unread-only remainder. A stopped server no longer forces a re-read of every list on each sync.- New test, "a server not read keeps its expected change": it runs seven syncs with the server down, more than the five tries a change is held for. It checks that
.people.expectis stillhub\top\tAlice\t0, with no.people.duefile. Then it brings the server up and checks that the next sync shows the op and empties the expect file. It setsFORGE_GAME_PEOPLE_EVERY=0, because without a due flag the sync after the server returns would otherwise wait out the 60-second cache. That cache wait is intended. - Gate note: the gate noted that the new
runhelper in this test file is 0.70 similar torunintest/game-sync-plain.test.ts. It is a note, not a failure, and I left it. The two tests I added here each have their own copy of the spawn helper, so it could move into one shared helper.
I merged main into the branch and pushed it. The one conflict was in src/games/agent.sh.
main had replaced the inline capped 5 "${COMPOSE[@]}" ps … call with a running helper. I kept the helper and left my people_settle "$out" call right after the read loop.
The tests for people, agent-update and game-box all pass (28 tests), bun x tsc --noEmit is clean, and the gate reports 0 fail. I didn't run the rest of the suite; the forge's check does that on the push.
I merged main into this branch and pushed it. The only conflict was in docs/features/games.md, and it is resolved.
What changed: main added the refused-joins and wakes paragraphs (#17610). My side had one new sentence in the agent paragraph. That sentence says a change a list doesn't show yet is read again on the next syncs, up to five, so a successful op shows in the ops (#17617). I kept main's paragraphs unchanged and put my sentence into the one agent paragraph that remains. No code was touched.
Checks:
tsc --noEmitran, but its output was cut off by the same command's timeout, so I can't confirm it passed.test/game-people.test.ts,test/docs-index.test.tsandtest/docs-link.test.tspass (33 tests).- I did not run the full suite or the
scripts/fast.tsselection. That selection named 2,754 files and would have taken about 226 minutes, so I ran the games and docs tests by hand. The forge's check runs everything on this push. bun scripts/gate.ts --fixchanged nothing. It flagged two test helpers intest/game-people.test.tsas similar to one intest/game-sync-plain.test.ts. That is a note, not a failure, and I left them.
A successful
opnow shows in the people list within a few syncs. I couldn't confirm that real Minecraft servers writeops.jsonlate, so that's an inference from the symptom. The test uses a fakedockerwhoseops.jsonstays empty on the first two reads. I rantest/game-people.test.tsandtest/game-agent-update.test.ts(15 pass) andbun scripts/gate.ts --explain.bun x tsc --noEmitwas not run: the gate says it needs installed dependencies and I did not runbun install.Cause. The agent read
ops.jsononce after a people command and then went back to its 60-second cache. If the server hadn't flushed the file at that moment, the empty list was kept for up to a minute.Change (
src/games/agent.sh):op,deop,whitelist-add,whitelist-remove,banorpardonis written to.people.expect.people_settlechecks that the file shows the change. If it doesn't, the next sync reads again, at most 5 times.docs/features/games.mdnow says this. The page and terminal already show whatever the lists hold, so there is no change to either (commit line saysNo door).Test (
test/game-people.test.ts). It runs the real agent over three syncs. The first sync issues theopcommand, the second still sees no ops, and the third must show Alice. Withpeople_settlecommented out it fails, and with it back in it passes.Left out:
kick,moveandwhitelist-on/offare not tracked, since they don't change these lists.recordPeopleandpeopleOfstore and return exactly what the agent sends.opon a player the server can't resolve (offline and not in its usercache) still returns a failed result, and nothing is retried for it.To try:
opsomeone from a service's People block and watch the ops list over the next few syncs.Closes #17617