clone

a browser grid puzzle game where you push words around to rewrite the rules of each level

main
miau-is-true / openspec / changes / add-proof-title-diagnostics / specs / level-sharing / spec.md
spec.md 1.1K source

ADDED Requirements

Requirement: Long proof titles produce bounded nonfatal diagnostics

Local CommonJS and data-only shared previews SHALL return one warning when an authored level title is longer than 32 characters. The warning SHALL preserve levelId, levelTitle, sentence: null, and a source detail pointing to the authored title. Its player message SHALL recommend 24 characters or fewer. The warning SHALL not block installation or alter the normalized pack.

Scenario: A long title is surfaced with proof context

  • WHEN a valid pack contains a level with a 33-character title
  • THEN preview succeeds and returns a warning with that level's stable ID, full title, null sentence, and title source path

Scenario: Short titles remain quiet

  • WHEN a valid pack contains a level title of 32 characters or fewer
  • THEN the title diagnostics pass returns no title warning

Scenario: Diagnostics stay outside portable data

  • WHEN a warned pack is installed, exported, or encoded as a shared link
  • THEN its authored title is unchanged and no warning field is serialized