Skip to content

n6 BOM diagnostic + parity test fixtures#5

Merged
dancinlife merged 1 commit into
mainfrom
n6-fixtures-bom
May 28, 2026
Merged

n6 BOM diagnostic + parity test fixtures#5
dancinlife merged 1 commit into
mainfrom
n6-fixtures-bom

Conversation

@dancinlife
Copy link
Copy Markdown
Contributor

Summary

  • validate_n6 now emits byte-canonical: UTF-8 with no BOM via byte_at (ef bb bf) — closes the PoC fidelity gap. Verified: LSP didOpen of a BOM doc → publishDiagnostics carries the BOM diag.
  • Adds lsp/test_fixtures/ (9 cases) as a .py-parity regression reference.

Test plan

  • HEXA_MAC_BUILD_OK=1 hexa build lsp/n6_lsp.hexa compiles clean
  • LSP smoke: initialize + didOpen(BOM doc) → server emits the BOM diagnostic
  • python3 lsp/n6_lsp.py --check <fixture> runs on all 9 fixtures

🤖 Generated with Claude Code

Close the PoC fidelity gap: validate_n6 now emits "byte-canonical: UTF-8 with
no BOM" via byte_at (ef bb bf), avoiding the encoding-fragile U+FEFF source
literal. Verified end-to-end (LSP didOpen of a BOM doc → publishDiagnostics
carries the BOM diag). Adds lsp/test_fixtures/ (9 cases: BOM/CRLF/indent-header/
unknown-type/malformed/continuation-indent/unrecognised/comments/valid) as a
.py-parity regression reference (run: python3 lsp/n6_lsp.py --check <fixture>).

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@dancinlife dancinlife merged commit 2de7025 into main May 28, 2026
1 check passed
@dancinlife dancinlife deleted the n6-fixtures-bom branch May 28, 2026 11:32
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