Skip to content

Preserve UTF-8 boundaries in diagnostic metadata - #1650

Merged
chubes4 merged 1 commit into
trunkfrom
fix/1648-utf8-diagnostic-boundary
Sep 10, 2026
Merged

Preserve UTF-8 boundaries in diagnostic metadata#1650
chubes4 merged 1 commit into
trunkfrom
fix/1648-utf8-diagnostic-boundary

Conversation

@chubes4

@chubes4 chubes4 commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

Summary

  • retain the existing 500-byte metadata diagnostic bound without splitting valid UTF-8 characters
  • cover the failure through shared, page, and compiled-receipt JSON checkpoints before composition

Verification

  • php tests/contract/staged-artifact-compilation.php
  • composer test reaches an existing unrelated empty-plaintext-drops failure after the new staged contract passes

Fixes #1648.

AI assistance: OpenCode using openai/gpt-5.6-terra diagnosed the byte-boundary failure, implemented the focused repair, and ran the staged regression.

@chubes4
chubes4 merged commit afcd552 into trunk Sep 10, 2026
10 checks passed
@chubes4
chubes4 deleted the fix/1648-utf8-diagnostic-boundary branch September 10, 2026 22:08
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.

Preserve UTF-8 boundaries in bounded metadata diagnostics

1 participant