Skip to content

Read Chinese connect-screen counts, and stop typing WHO at a listed game that states one - #183

Merged
HarryCordewener merged 1 commit into
mainfrom
claude/encoding-name-type-021126
Sep 17, 2026
Merged

HarryCordewener merged 1 commit into
mainfrom
claude/encoding-name-type-021126

Conversation

@HarryCordewener

@HarryCordewener HarryCordewener commented Sep 17, 2026 •

Copy link
Copy Markdown
Member

fs.twkang.net:5555 (狂想空間 / Fantasy Space) states its player count three lines above its
login prompt and we could not read it, so we typed WHO at that prompt instead — and the game
read the word as a character name. Every crawl, for ever. It is not one game: the whole Taiwanese
and mainland MudOS/ES2 family behaves this way.

Reading the count

ChineseCount is grown from a sweep of all 904 stored connect screens on 2026-09-17, against
every decoding a staff CHARSET override could produce. Thirty-three carry Chinese player
vocabulary, twenty-one state a count, twenty resolve, one is refused for stating two different
figures, and nothing in the other 883 matches. ChineseCountTests carries all twenty-one as
fixtures.

The shape is one sentence carrying three figures:

目前共有 0 位巫師、83 位玩家在線上,以及 1 位使用者嘗試連線中。
        0 wizards      83 players online    1 user still at the login screen

So the reader works clause by clause and binds a number to 玩家 rather than disqualifying a
line the way BannerCount.CountsOnlyStaff does in English — there is no line to disqualify when all
three figures share one. 巫師/巫师, 管理者, 使用者/用戶 and 角色 (characters ever created) need no
exclusion list, because they are never matched.

A clause naming 上限 (a cap), 最高/紀錄 (a record), 人次 (cumulative logins), 今日/本週, or 您所在
(the address you are at — 您所在的地址已有 0 位玩家在线上 is a per-IP line on two games) states
something other than the population now and offers no candidate at all.

fs.twkang.net:5555 names no player noun anywhere — 線上 2 — so the bare connectivity form is
read too, exactly as lusternia.com:5000's Currently On-Line: 12 is in English. Spaces and a
colon are the only separators it admits, because mud.revivalworld.org:4000's
共計 4 人正在線上,1 人正在登入 would otherwise read as one.

The plausibility ceiling and the two-disagreeing-figures refusal are BannerCount's own and apply
unchanged. Counts in Chinese numerals stay unread, as the 2026-08-20 survey left them.

Six games with no count at all now have one — 210.59.236.38:7788 (67), fss.twcos.com:5000
(18), us.muds.net:4000 (32), 210.59.236.38:7000 (9), es.clovers.tw:8000 (93),
202.103.21.247:8888 (34) — plus fs.twkang.net:5555 (2). Fourteen more gain a measured screen
count beside their declared MSSP one, and two disagree loudly (jy.mud.com.tw:6666 declares 44
and states 83). Keeping both is the point.

A Big5 or GBK screen still reads as none of this until an operator sets CHARSET — WireEncoding
will not guess between two legacy encodings (rule 5). That is the correct order of operations, not a
gap.

Stopping the WHO

PublishedCountAsync's screen rung required a protocol signal in the session, because for a server
that negotiates nothing a parseable WHO is its only §7.8 evidence of being a game, and talking
ourselves out of asking would cost it its listing.

That risk has an end, and it is narrower than the rule assumed. MuLikeness has exactly one
consumer
— CatalogueBinder.CorroborateAsync — and that one returns early unless the game is
{ SubmittedAt: not null, CorroboratedAt: null }. Once a game is listed, nothing reads those
signals again, so a WHO typed to produce one is a command at a stranger's login prompt for
nothing.

So ProbeTarget.AwaitingCorroboration, fed from CrawlTarget.AwaitingCorroboration, joined out of
game.submitted_at IS NOT NULL AND game.corroborated_at IS NULL in the due-targets query the same
way the CHARSET override already is. It defaults to true everywhere, so mui-probe, every
existing test and any future caller that cannot answer keeps the probe asking; only the crawl loop,
which has the catalogue, ever sets it. A target with no game bound yet reads as true — an address
that has proved nothing is asked everything.

Measured, not reasoned

Four games probed live before anything was written: fs.twkang.net:5555, 210.59.236.38:7788,
es.clovers.tw:8000, us.muds.net:4000. All four negotiated (none observed), mssp NotOffered,
who Unknown — asked, unreadable. At fs the full chain is WHO → 好吧﹐那麼請重新輸入您的英文
名字﹕
→ INFO → the same → VERSION → 使用 version 這個名字將會創造一個新的人物﹐您確定嗎
(y/n)﹖
— one y from creating characters on somebody's game.

Verified against the live servers after the change, not only the fixtures:

$ mui-probe fs.twkang.net 5555 big5 --listed
who           NotAsked — never asked
banner count  2 (stated in the connect screen)

$ mui-probe doom.twmuds.com 4000 big5
banner count  27 (stated in the connect screen)     # was: falling back to the MSSP figure

AListedGamesScreenCountBuysSilenceEvenWithNoNegotiationAtAll was confirmed to fail against the old
gate before the gate was changed.

Also in here

  • mui-probe printed the count that bought a skipped WHO as (stated in the connect screen),
    which reads an MSSP figure back as somebody's banner. It now says which of the two it has, and
    takes --listed so a suppressed WHO can be reproduced by hand.
  • CLAUDE.md's §7.8 sentence and docs/codebase-survey-2026-07-30.md updated with the sweep and
    the reasoning.

Not in here

INFO and VERSION are still typed at the same login prompt, because MsspSelfDescription gates
them on MSSP and these games publish none. There is nothing they would publish either, so
"not asking must imply publishing" has nothing to hold on to and the fix is a different shape —
#182.

Tests

All six suites, Postgres exercised rather than skipped:

MUI.Catalog.Tests    643   MUI.Crawl.Tests      592   MUI.Crawler.Tests    345
MUI.Discovery.Tests  336   MUI.I3.Tests          13   MUI.Web.Tests      1250

0 failed, 0 warnings, clean Release build.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • New Features

    • Chinese-language connection screens can now provide live player counts when the count is clearly associated with players or online users.
    • Supports traditional and simplified Chinese formats, separators, and ANSI-colored text while ignoring historical, cumulative, staff, and unrelated figures.
  • Bug Fixes

    • Improved handling of player counts for listed games, including cases without Telnet negotiation or MSSP data.
    • Unlisted submissions still require protocol-level corroboration before screen counts are accepted.
    • Engine identification checks continue to run during every crawl.

…ame that states one

A family of Taiwanese and mainland MudOS/ES2 games negotiates nothing, publishes
no MSSP, and reads every line we send at its login prompt as a character name —
so a pre-login WHO comes back `Unknown — asked, unreadable`, every crawl, for
ever. Each of them states its player count plainly on the connect screen, in
Chinese, where nothing here could read it.

ChineseCount reads it. Grown from a sweep of all 904 stored connect screens on
2026-09-17: 33 carry Chinese player vocabulary, 21 state a count, 20 resolve, one
is refused for stating two different figures, and nothing in the other 883
matches. Six games with no count at all now have one.

The shape is one sentence carrying three figures —
`目前共有 0 位巫師、83 位玩家在線上,以及 1 位使用者嘗試連線中。` — so the reader
works clause by clause and binds a number to 玩家 rather than disqualifying a
line the way the English reader does; there is no line to disqualify. Staff,
users still connecting and characters-ever-created need no exclusion list because
they are never matched. A clause naming a cap, a record, a cumulative visit count
or the address *you* are at states something other than the population now and
offers no candidate. fs.twkang.net:5555 names no player noun at all — `線上 2` —
so the bare connectivity form is read too, exactly as lusternia's "Currently
On-Line: 12" is in English.

ProbeTarget.AwaitingCorroboration then lets that count buy the same silence an
MSSP report buys. The gate it opens guarded a submission's listing, and that risk
ends: MuLikeness has exactly one consumer, CatalogueBinder.CorroborateAsync, and
that one returns early unless the game is { SubmittedAt: not null,
CorroboratedAt: null }. Afterwards a WHO typed to produce a §7.8 signal produces
one nothing reads. It defaults to true everywhere, so a caller that cannot answer
keeps asking; only the crawl loop, which has the catalogue, ever sets it.

Verified against the live servers, not only the fixtures: fs.twkang.net:5555 now
reads `who NotAsked`, `banner count 2 (stated in the connect screen)`, and
doom.twmuds.com:4000 reads 27 off its own screen rather than falling back to its
MSSP figure.

INFO and VERSION are still typed at the same prompt and are not fixed here —
#182.

Also: mui-probe printed the count that bought a skipped WHO as "stated in the
connect screen", which reads an MSSP figure back as somebody's banner. It now
says which of the two it has, and takes --listed so the suppressed WHO can be
reproduced by hand.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Sep 17, 2026 •

Copy link
Copy Markdown

Review Change StackReview Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Essentials

Run ID: 98ce08f1-5def-4933-918b-3329f9ad70c3

📥 Commits

Reviewing files that changed from the base of the PR and between ca283bb and a89d5a9.

📒 Files selected for processing (13)
  • CLAUDE.md
  • docs/codebase-survey-2026-07-30.md
  • src/MUI.Crawl/Banner/BannerCount.cs
  • src/MUI.Crawl/Banner/ChineseCount.cs
  • src/MUI.Crawl/Telnet/Probing.cs
  • src/MUI.Crawl/Telnet/TelnetProbe.cs
  • src/MUI.Crawler/Crawl/CrawlCycle.cs
  • src/MUI.Crawler/Persistence/NpgsqlCrawlTargetRepository.cs
  • src/MUI.Discovery/Scheduling/CrawlTarget.cs
  • src/MUI.Probe/Program.cs
  • tests/MUI.Crawl.Tests/Banner/ChineseCountTests.cs
  • tests/MUI.Crawl.Tests/Telnet/ProbeSessionTests.cs
  • tests/MUI.Crawler.Tests/AwaitingCorroborationPostgresTests.cs

Included review availability: 0 reviews are currently available. Your included PR review attempts over the past 7 days set your current allowance at 2 reviews per hour.


Walkthrough

The crawl now parses supported Chinese connect-screen player counts and tracks corroboration state from storage to probing. Listed targets can use banner counts without protocol negotiation, while targets awaiting corroboration still require a parseable WHO response.

Changes

Chinese count extraction and validation

Layer / File(s) Summary
Chinese connect-screen count extraction
src/MUI.Crawl/Banner/ChineseCount.cs, src/MUI.Crawl/Banner/BannerCount.cs, tests/MUI.Crawl.Tests/Banner/ChineseCountTests.cs, docs/codebase-survey-2026-07-30.md
Chinese player counts are parsed from player-bound and bare online-status text. Capacity, historical, cumulative, unrelated, unsupported, oversized, negative, and conflicting figures are rejected. Tests cover these cases and ANSI-colored values. The survey records the supported screen forms and observed results.

Corroboration state

Layer / File(s) Summary
Persisted corroboration state
src/MUI.Discovery/Scheduling/CrawlTarget.cs, src/MUI.Crawler/Persistence/NpgsqlCrawlTargetRepository.cs, tests/MUI.Crawler.Tests/AwaitingCorroborationPostgresTests.cs
CrawlTarget stores AwaitingCorroboration. The repository derives the state from submission and corroboration timestamps and maps unassigned targets to the default state. PostgreSQL tests cover submitted, corroborated, self-discovered, and unassigned targets.

Probe decision flow

Layer / File(s) Summary
Corroboration-aware probe flow
src/MUI.Crawl/Telnet/Probing.cs, src/MUI.Crawler/Crawl/CrawlCycle.cs, src/MUI.Crawl/Telnet/TelnetProbe.cs, src/MUI.Probe/Program.cs, tests/MUI.Crawl.Tests/Telnet/ProbeSessionTests.cs, CLAUDE.md
The crawl forwards corroboration state to the probe. Protocol-less targets still require WHO while awaiting corroboration. Established listings can retain a connect-screen count without WHO or negotiation. The probe CLI adds --listed, and tests cover both paths. INFO and VERSION remain subject to engine identification.

Priority: ➖ Normal

Estimated code review effort: 3 (Moderate) | ~25 minutes

Change: Feature

Sequence Diagram(s)

sequenceDiagram
  participant CrawlTargetRepository
  participant CrawlCycle
  participant TelnetProbe
  participant BannerCount
  CrawlTargetRepository->>CrawlCycle: provide AwaitingCorroboration
  CrawlCycle->>TelnetProbe: forward probe state
  TelnetProbe->>TelnetProbe: decide whether WHO is required
  TelnetProbe->>BannerCount: parse connect-screen banner
  BannerCount-->>TelnetProbe: return BannerPlayerCount
Loading

Merge Risk: ⚪ Minimal · up to a89d5

No actionable merge risk remains; the new banner-count and corroboration behavior has targeted test coverage.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 78.57% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 28 functions across 11 files. (2 skipped:… Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly summarizes both primary changes: parsing Chinese connect-screen counts and skipping WHO for listed games that already state a count.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

Docstring coverage is 78.57% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 28 functions across 11 files. (2 skipped: 2 unsupported.)

  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Commit to this branch
  • Create a new PR

Comment @coderabbitai help to get the list of available commands.

@HarryCordewener
HarryCordewener merged commit 463dcd8 into main Sep 17, 2026
3 checks passed
@HarryCordewener
HarryCordewener deleted the claude/encoding-name-type-021126 branch September 17, 2026 16:29
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