Public: anyone can read this; the crew can change it.

The people adapter and the identity prover move behind the Minecraft kind, with nothing a person sees changed #18538

opened this

Its check is red, 25m ago

check failed: 1 of 23446 tests — "the general layer reaches the Minecraft kind only through src/kinds/index.ts"

The Minecraft people adapter and identity prover now sit behind the Minecraft kind, and the rest of the code reaches them only through it. Pages and the terminal show the same as before. The forge's full check hasn't run yet.

Notes · 33 files · +270 −135

opened this

The Minecraft people adapter and identity prover now sit behind the Minecraft kind, and the rest of the code reaches them only through it. Pages and the terminal show the same as before. The forge's full check hasn't run yet. Locally, tsc is clean and the games, TUI, kind, identity, MCP-size, dup-imports and no-require() tests pass.

What changed

  • Moved files: src/games/people.ts and src/games/player_events.ts are now src/kinds/minecraft/people.ts and player_events.ts. The whitelist, ops and undo table, queueing, player events, refusals and findings all moved.
  • Kind interface: PeopleAdapter and IdentityProver are real interfaces in src/kinds/kind.ts, no longer stubs. Only metrics is still a stub.
  • Callers: peopleAdapter() in src/kinds/index.ts is how callers reach the people adapter. It looks the adapter up on each call, because the games modules load while the kind loads. Reading it once at load hit an initialization error. About 17 call sites now use it, and PeopleOp is now plain string in the page.
  • Identity prover: the Minecraft name lookups now live in src/kinds/minecraft/identity.ts. src/core/proven_identities.ts has one prover table keyed by kind, read through a static import with no require(). listOf returns the same rows and ordering as before.
  • Extra module: provenEmailAt moved to src/core/proven_email.ts. Without that, the new import cycle left verify.ts reading it before it was initialized. Four core files and proven_identities.ts import it from there now.
  • Tests: test/kinds-people-identity.test.ts is new. It checks that the kind's people parts are the moved functions, that the identity list answers through the kind, and that nothing outside src/kinds imports the moved files.
  • Existing test edits: test/kinds.test.ts no longer expects the people and identity parts to be stubs. Seven other tests only had their import paths changed to src/kinds/minecraft/.

Left out

  • No renames of game_* tables, the games MCP tool or connection.kind, as the issue says.
  • The metrics probe is not moved.
  • The comments in src/games/agent.sh still name games/people.ts. I left them so that file stays byte-identical.
  • I did not run the full suite or the first-view budget tests. scripts/fast.ts named about 4,100 files. The forge's check runs them.

How to try it: open /games on the preview, then a box's people tab (whitelist, op, ban, move, undo). Then open /profile and look at the identities list. They should read as before.

No door: this is a pure move behind the kind interface.

Closes #18531

Show 1 earlier items

7 earlier comments · 1 event
commented

<!-- look-pages 192aebfafa63 --> Look pages for 192aebf, from the gate:

  • look pages (none): this pull changes src/web/pages/games.ts, src/web/pages/games_topology.ts but the forge could not trace the route of /, /admin/telemetry, /explore and 28 more (an inline or wrapped handler), so it could not infer a page; the reviewer decides. A "Looks: <path>" line naming the nearest page, or a "No look: <why>" line (10+ characters), says it
commented

I merged main into the branch and pushed it. The forge's check hasn't run on the push yet. Locally, tsc is clean and about 1,300 tests pass. They cover the kinds, MCP size, duplicate imports, no-top-level-await, identities, chat, links and all the game-* tests, plus tui-games.

  • Identity prover: main had already moved it (#18536, account_link and kinds/minecraft/prover.ts). I dropped my version (identity.ts, core/proven_email.ts) and kept main's, including its src/core/proven_identities.ts. provenEmailAt is back in proven_identities.ts.
  • People adapter: the people adapter and the peopleAdapter() callers are unchanged. In src/kinds/kind.ts and src/kinds/minecraft/index.ts the people side is mine and the identity side is main's. metrics is the only stub left.
  • Tests: test/kinds.test.ts and test/kinds-people-identity.test.ts now check the people adapter and main's prover, and that metrics alone is still a stub.
  • New cycle on merge: door_leave → kinds → player_events read HEAD from games/metrics.ts while that file was still loading. The four proxy-log patterns in player_events.ts are now built on first use.
  • Look pages: the gate couldn't infer a page for the /games changes, so the last commit carries Looks: /games.
commented

<!-- look-pages dbed389a52e4 --> Look pages for dbed389, from the gate:

  • look pages (none): "Looks: /games" is not a page of app.looks in forge.json; this pull changes src/web/pages/games.ts, src/web/pages/games_topology.ts but the forge could not trace the route of /, /admin/telemetry, /explore and 28 more (an inline or wrapped handler), so it could not infer a page; the reviewer decides. A "Looks: <path>" line naming the nearest page, or a "No look: <why>" line (10+ characters), says it
commented

The gate's look-pages complaint is answered. The latest commit carries a No look: line, and the gate no longer reports the look-pages rule.

I changed no code. src/web/pages/games.ts and games_topology.ts only change where the people adapter and the identity prover are imported from, so no page a person sees changes. I used No look: because the forge could not trace which looked page those two files serve. /games is not in app.looks either, so a Looks: /games line would not have been accepted.

I ran the other tests the check named, and they pass:

  • test/dup-imports.test.ts (duplicate imports)
  • test/account-purge.test.ts (user-column cascade)
  • test/kinds-people-identity.test.ts, test/kinds.test.ts, test/game-topology.test.ts and test/tui-games.test.ts

I did not run the first-view budget tests (capacity-first-view.test.ts, explore-first-view.test.ts). The change adds no markup, so I did not expect them to be affected.

The both-doors rule is not flagged by the gate. The terminal side shows the same data, because it calls the same adapter.

commented

main is merged into the branch and pushed, and the branch no longer conflicts. tsc is clean. The kinds, game-topology, tui-games and dup-imports tests pass. I did not run the full suite.

  • Conflict: the only one was src/kinds/minecraft/index.ts. This pull makes people a real adapter, and main added console.forge: { hear, say }. I kept both, so the kind has the full people adapter and the console's forge hooks.
  • Duplicate import: the merge left src/games/chat.ts importing ../kinds/index.ts twice, which failed the duplicate-import test. I folded them into one import, { defaultKind, peopleAdapter }. The first merge push went out with that test red. The follow-up commit fixes it.
commented

I merged main into the branch and pushed it, so it should merge cleanly again. tsc and the gate are clean, and 94 tests across the kinds, game-topology, tui-games, dup-imports and account-purge files pass. I did not run the full suite.

The only conflict was in the import block of src/web/pages/games.ts. This pull imports peopleAdapter and GameFinding, and main added containerPower. I kept all three.

the crew's run was interrupted: restart, resumes on the next pass — cancelled
commented

Nothing pushed. No check of the head is recorded as failed, so the forge is re-running it. I found no defect in the pull and made no changes.

commented

The people adapter and the identity prover now sit behind the Minecraft kind with nothing a person sees changed. This push merges current main into the branch and rewraps the long comments in src/kinds/minecraft/plain.ts.

I couldn't reproduce the reported failure, "plan carries the template only when it is not blank". test/spawn-template-api.test.ts passes here, all 5 tests, and still passed after the merge. The earlier failures may have come from a stale base or a flaky run, but I haven't confirmed that.

Of the four rules the check named:

  • Duplicate imports: test/dup-imports.test.ts passes. The gate's own duplicate scan stopped after 8 s, so it only compared part of the tree.
  • First-view budgets: test/page-budget.test.ts passes, and the medians it printed stay well under budget.
  • Both doors: this change adds or alters no page, action, API route or MCP tool, so it needs no commit line saying No door. I did not run test/both-doors.test.ts.
  • Gate: bun scripts/gate.ts --fix rewrapped one file, which is the commit above. It noted 16 other files with comment lines over 100 columns. I left them for the nightly rewrap.

tsc --noEmit is clean. Besides the budget and duplicate-import tests, I ran the Minecraft and people-identity tests (test/kinds-people-identity.test.ts, test/people-page.test.ts, test/minecraft-command.test.ts); 36 tests across 6 files pass. scripts/fast.ts named 2,839 test files, which was too many to run, so the forge's full check on this push is the first full run.

To try it, open /people and a Minecraft kind page. They should look as they did before.

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs