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

Neutral public names, step 1 of 2 (expand): the new name beside the old for the game_* tables, the games MCP tool, connection.kind and the game and design: minecraft plan options #18513

opened this

Merged 1h 56m ago, live in production

Each neutral name now sits beside its old one, and nothing old is removed or renamed. I ran the tests for what I touched (the new migration, schema and pins, the MCP size ceilings, identities, the Minecraft design, the games tool) and tsc, and all pass. The forge's check runs the rest on this push.

Notes

opened this

Each neutral name now sits beside its old one, and nothing old is removed or renamed. I ran the tests for what I touched (the new migration, schema and pins, the MCP size ceilings, identities, the Minecraft design, the games tool) and tsc, and all pass. The forge's check runs the rest on this push.

What changed

  • Tables. A new migration (20261206175001-neutral-machine-names) adds a view over every game_* table. game_box is also machine, game_service is also container, and the rest are machine_<rest>, for example machine_command. Each view has INSTEAD OF insert, update and delete triggers, so a write through either name reaches the same row. The game_* tables are untouched, so the previous release runs on the same file.
  • games MCP tool. machine works as box, container as service, and the action machines as list. The old names win when both are sent. This is not a new tool (src/games/neutral_args.ts, a few bytes of schema). mcp-size is green and no ceiling moved.
  • infra plan wants. kind: "machine" is game: true, and kind: "minecraft" is design: "minecraft".
  • connection.kind. POST /api/v1/connections and /lookup accept {kind: "player", ident}, and kind: "email" with ident too. An unknown kind gets a 422. A stored connection still answers kind: "minecraft".
  • Docs. docs/MCP.md has a "Neutral names beside the game ones" section.

Proof tests (test/neutral-machine-names.test.ts)

  • A database migrated only up to before this change restores, boots, applies exactly this one migration, and reads its old rows through machine and container.
  • The changed database still takes writes under the game_* names.
  • Writes through the neutral names land in the game_* rows, including a composite-key update that changes one row.
  • A drift test fails, naming the column, if a game_* table gains a column the triggers don't copy.

The other tests cover the MCP machine/container/machines path, kind on plan wants, and the player connection kind.

What I chose not to do

  • No project view. No game_* table holds a project; mods live in git locks. I read "named for machine, project, container" as machine and container only, so say if you meant one for game_jar.
  • src/actions/plan.ts and src/games/store.ts unchanged. The plan options live in the infra tool and the old names still serve every caller, so the code moves to the new names in step 2.
  • player is my choice. The issue didn't name the neutral connection value, so I picked it.
  • No terminal or docs/features change. The commit says No door: because these are names for agents and API callers.

How to try it

  • On the preview, call games with {action: "machines"}.
  • POST /api/v1/connections with {kind: "player", ident: "some_name"}.
  • SELECT * FROM machine in a database copy.

Closes #18501

commented

Each neutral name now sits beside its old one, and nothing old is removed or renamed. I ran the tests for what I touched (the new migration, schema and pins, the MCP size ceilings, identities, the Minecraft design, the games tool) and tsc, and all pass. The forge's check runs the rest on this push.

What changed

  • Tables. A new migration (20261206175001-neutral-machine-names) adds a view over every game_* table. game_box is also machine, game_service is also container, and the rest are machine_<rest>, for example machine_command. Each view has INSTEAD OF insert, update and delete triggers, so a write through either name reaches the same row. The game_* tables are untouched, so the previous release runs on the same file.
  • games MCP tool. machine works as box, container as service, and the action machines as list. The old names win when both are sent. This is not a new tool (src/games/neutral_args.ts, a few bytes of schema). mcp-size is green and no ceiling moved.
  • infra plan wants. kind: "machine" is game: true, and kind: "minecraft" is design: "minecraft".
  • connection.kind. POST /api/v1/connections and /lookup accept {kind: "player", ident}, and kind: "email" with ident too. An unknown kind gets a 422. A stored connection still answers kind: "minecraft".
  • Docs. docs/MCP.md has a "Neutral names beside the game ones" section.

Proof tests (test/neutral-machine-names.test.ts)

  • A database migrated only up to before this change restores, boots, applies exactly this one migration, and reads its old rows through machine and container.
  • The changed database still takes writes under the game_* names.
  • Writes through the neutral names land in the game_* rows, including a composite-key update that changes one row.
  • A drift test fails, naming the column, if a game_* table gains a column the triggers don't copy.

The other tests cover the MCP machine/container/machines path, kind on plan wants, and the player connection kind.

What I chose not to do

  • No project view. No game_* table holds a project; mods live in git locks. I read "named for machine, project, container" as machine and container only, so say if you meant one for game_jar.
  • src/actions/plan.ts and src/games/store.ts unchanged. The plan options live in the infra tool and the old names still serve every caller, so the code moves to the new names in step 2.
  • player is my choice. The issue didn't name the neutral connection value, so I picked it.
  • No terminal or docs/features change. The commit says No door: because these are names for agents and API callers.

How to try it

  • On the preview, call games with {action: "machines"}.
  • POST /api/v1/connections with {kind: "player", ident: "some_name"}.
  • SELECT * FROM machine in a database copy.
commented

This pull adds the neutral public names beside the old ones (step 1 of 2: expand). This push fixes the one failing check test, "every tool the guide calls is registered".

Cause: the new paragraph in docs/MCP.md named the old database tables in backticks as game_box, game_service and game_command, plus machine_command. That test reads any backticked word containing an underscore as a tool name. These are tables, not tools, so it failed.

Fix: I reworded the paragraph to say "the old box table" and "the old service table" instead of naming them. It no longer lists machine_command. No code changed.

test/mcp-guide.test.ts now passes all 4 tests locally. I did not run the full suite or bun x tsc --noEmit this time, since only the doc changed. The forge's check runs the full suite on the push.

Sign in to join this conversation.

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

Keyboard shortcuts

Docs