Skip to content

Refuse world titles the Yard refuses, and keep older worlds openable - #23

Merged
oddessentials merged 1 commit into
mainfrom
fix/world-title-control-characters
Nov 12, 2026
Merged

oddessentials merged 1 commit into
mainfrom
fix/world-title-control-characters

Conversation

@oddessentials

Copy link
Copy Markdown
Owner
  • Builders checks titles by the Yard's own rule (WorldDoc.valid_title): trimmed as the manager trims, not empty, at most 128 UTF-16 units (an emoji counts as two) and free of control characters. Before, Builders saved and exported titles the Yard then refused on import: control characters inside, only Unicode spaces, or more than 128 UTF-16 units.
  • New titles are checked in the editor title box, the new-world box and the rename dialog (a bad title keeps the previous one, as an empty title does), in MCP create_world (refused, no world made), on every save, before every export (including the command line) and in --check.
  • Free names ("… 2", "… copy") stay within the Yard's limit for titles of emoji.
  • A world saved with a title the rule now refuses still opens with its title unchanged. It asks for another title before its next save or export, and the last good save and any existing export file are kept.

Verified locally with Godot 4.7.2: all five suites pass (run 1649, hardening 130, clearance_hardening 66, package_hardening 168, site_commands 9 of 9), and 34 of 34 titles get the same answer from Builders and from the manager's real import code.

🤖 Generated with Claude Code

Builders now checks titles by the Yard's own rule: trimmed as the manager
trims, not empty, at most 128 UTF-16 units and free of control characters.
New titles are checked in the editor, the start screen, rename, MCP
create_world, every save, every export and the package check. A world saved
with a title the rule now refuses still opens unchanged; it asks for another
title before its next save or export, and the last good save and any
existing export are kept.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@oddessentials
oddessentials merged commit bff7e98 into main Nov 12, 2026
5 checks passed
@oddessentials
oddessentials deleted the fix/world-title-control-characters branch November 12, 2026 23:51
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