- commit
- eebb18d8af98e494f4cc12c20ab0723ca597a3ba
- parent
- ca124465cb74476d4000f8db48c63632d0e842fe
- author
- Dami <dami.etoile@gmail.com>
| A | openspec/ | 2 | ++ |
| A | openspec/ | 22 | ++++++++++++++++++++++ |
| A | openspec/ | 26 | ++++++++++++++++++++++++++ |
| A | openspec/ | 18 | ++++++++++++++++++ |
@@ -0,0 +1,22 @@
1+## Why2+3+Proof titles are shown in Gift and Workshop cards with bounded space. Long4+authored titles are valid data, but they make the proof identity harder to5+scan and can crowd adjacent copy.6+7+## What Changes8+9+- Add a nonblocking diagnostics warning when an authored proof title exceeds10+ 32 characters.11+- Recommend titles of 24 characters or fewer while retaining the authored12+ title unchanged.13+- Include the stable proof ID, display title, sentence field, and source path14+ in the warning envelope used by local and shared previews.15+- Keep warnings transient so CommonJS exports and data-only share payloads do16+ not gain diagnostic fields.17+18+## Impact19+20+The existing W11 diagnostics pass and its Gift/Workshop preview consumers are21+affected. Validation, catalog registration, and authored pack data remain22+unchanged.@@ -0,0 +1,26 @@
1+## ADDED Requirements2+3+### Requirement: Long proof titles produce bounded nonfatal diagnostics4+5+When an authored level title is longer than 32 characters, local CommonJS and6+data-only shared previews SHALL return one warning for that proof. The warning7+SHALL preserve `levelId`, `levelTitle`, `sentence: null`, and a source detail8+pointing to the authored title. Its player message SHALL recommend 249+characters or fewer. The warning SHALL not block installation or alter the10+normalized pack.11+12+#### Scenario: A long title is surfaced with proof context13+14+- **WHEN** a valid pack contains a level with a 33-character title15+- **THEN** preview succeeds and returns a warning with that level's stable ID,16+ full title, null sentence, and title source path17+18+#### Scenario: Short titles remain quiet19+20+- **WHEN** a valid pack contains a level title of 32 characters or fewer21+- **THEN** the title diagnostics pass returns no title warning22+23+#### Scenario: Diagnostics stay outside portable data24+25+- **WHEN** a warned pack is installed, exported, or encoded as a shared link26+- **THEN** its authored title is unchanged and no warning field is serialized@@ -0,0 +1,18 @@
1+## 1. Contract2+3+- [x] 1.1 Define the 32-character warning threshold and 24-character4+ recommendation in the level-sharing delta.5+- [ ] 1.2 Confirm Gift and Workshop display the existing warning envelope6+ without copying diagnostics into pack data.7+8+## 2. Diagnostics9+10+- [ ] 2.1 Add bounded long-title warnings to `collectModWarnings` with proof11+ ID, title, null sentence, and authored source detail.12+- [ ] 2.2 Cover short, boundary, long, and normalized local/shared preview13+ cases.14+15+## 3. Verification16+17+- [ ] 3.1 Run focused diagnostics and pack-service tests.18+- [ ] 3.2 Run the full Node suite and production build.