Repository navigation
design(id): #3455 shared Cf contract for plain output - #3861
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 47 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: da2c92b993
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| 2. In `plain_field`, treat Cf as a reason to use the existing quoted/escaped | ||
| representation. This preserves the value in printable form rather than | ||
| deleting it. |
There was a problem hiding this comment.
Specify surrogate-pair escaping for supplementary Cf characters
For supplementary-plane Cf characters such as U+110BD and U+E0001, extending plain_field to use its existing escape branch would silently corrupt the represented value. That branch in pkgs/id/src/commands/text.rs uses write!(rendered, "\\u{:04x}", u32::from(c)), so U+110BD becomes \u110bd, which a JSON parser reads as U+110B followed by d, rather than the original character. The shared set includes these characters, but the proposed test criteria cover only BMP examples. Explicitly require surrogate-pair escaping and supplementary-plane JSON round-trip tests rather than prescribing the existing escaped form unchanged.
Useful? React with 👍 / 👎.
Summary
Adds the decision record, current source evidence, options/trade-offs, invariants, acceptance criteria, and independently mergeable phase plan. Docs only; no implementation changes.
Evidence
plain_fieldandgroup::text()do not classify Cf; the issue's bidi and zero-width examples remain raw in those paths. Current world-list structure handling is already covered by id(world): world list plain output renders host-supplied names raw — a newline in a world name forges extra rows, and a tab forges columns #3089 / PR fix(id): render world names through plain_field in world list plain output (#3089) #3718.doc/2026-11-01_design_id3455.mdrecords the shared-set contract, the feature-gated helper placement issue, and the current phase statuses.git diff --cached --checkpassed. No code tests run (documentation-only change).Merge Danger
Door: Two-way — documentation/design record only; implementation remains in follow-up issues.
Blast Radius: Documentation.
Need help on this PR? Tag
@codesmith-botwith what you need.