Skip to content

Preserve malformed path provenance safely - #1646

Open
chubes4 wants to merge 1 commit into
fix/1641-form-provenance-terrafrom
fix/1645-utf8-form-provenance
Open

Preserve malformed path provenance safely#1646
chubes4 wants to merge 1 commit into
fix/1641-form-provenance-terrafrom
fix/1645-utf8-form-provenance

Conversation

@chubes4

@chubes4 chubes4 commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

Summary

  • reject raw invalid UTF-8 artifact paths at the canonical safe-path boundary
  • retain malformed percent-encoded bytes as canonical ASCII provenance before runtime declaration hashing
  • reject encoded separators even when malformed byte escapes are retained

Verification

  • retained private artifact: full staged preparation, compilation, and composition completed for 114 pages
  • PHP artifact, site-plan, and path contracts
  • PHP transformer parity: 305 fixtures
  • package proof
  • package typecheck/build/test: 104 files and 499 tests

Depends on #1644.

Fixes #1645

AI Assistance

OpenAI gpt-5.6-terra via OpenCode implemented, tested, and self-reviewed this change under Astra orchestration.

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