Skip to content

feat(input): restore strict glyph-set format - #2466

Open
houko wants to merge 2 commits into
mainfrom
fix/input-glyphs-1724
Open

houko wants to merge 2 commits into
mainfrom
fix/input-glyphs-1724

Conversation

@houko

@houko houko commented Nov 29, 2026

Copy link
Copy Markdown
Contributor

Summary

  • restore the strict versioned pkg/input glyph-set YAML format from the superseded feat(input): add strict glyph set format #2173 implementation
  • include deterministic encoding, conformance fixtures and field-level load errors
  • preserve current mapping-context and vector-action documentation while restoring glyph-set guidance in both languages

This is the bounded format slice for #1724. Binding-aware prompt resolution and screen prompt nodes remain follow-up work.

Verification

  • go tool nsgo test ./pkg/input -- -run GlyphSet -count=1
  • go tool nsgo check -target linux_x64 ./pkg/input
  • go run ./tools/changelog check
  • bun run verify-notes
  • git diff --check

The full pkg/input test suite has one pre-existing TestPointerAndTouchSnapshots failure on current main.

@github-actions github-actions Bot added enhancement New feature or request size/M documentation Improvements or additions to documentation pkg/input pkg/internal area/agents and removed size/M labels Nov 29, 2026
@houko
houko force-pushed the fix/input-glyphs-1724 branch from 6981548 to 3f7fe34 Compare November 29, 2026 14:15
…rr errors

TestFormatsPage requires every format version constant to map to a File Formats entry, so input.GlyphSetVersion gets an input#glyphs entry on both pages, a formattest.Run conformance test with a testdata fixture, and a formatVersions mapping. formattest requires *loaderr.Error from the decoder, so ParseGlyphSet and ValidateGlyphSet now return located errors with field paths, visiting devices and tokens in sorted order so the reported error is stable.
@houko
houko force-pushed the fix/input-glyphs-1724 branch from 35f516c to d3b7053 Compare November 29, 2026 16:21

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/agents documentation Improvements or additions to documentation enhancement New feature or request pkg/input pkg/internal size/M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant