Skip to content

design(id): #3455 shared Cf contract for plain output - #3861

Merged
dezren39 merged 1 commit into
mainfrom
design/id-3455
Nov 1, 2026
Merged

dezren39 merged 1 commit into
mainfrom
design/id-3455

Conversation

@dezren39

@dezren39 dezren39 commented Nov 1, 2026 •

Copy link
Copy Markdown
Member

Summary

existing petname Cf ranges
  → unconditional shared predicate (proposed)
      ├─ plain_field: trigger + existing escaped field form
      └─ group::text: trigger + explicit Cf escaping in quoted output
world list: raw-name comparison → existing plain_field path (Phase 3a landed)

Adds the decision record, current source evidence, options/trade-offs, invariants, acceptance criteria, and independently mergeable phase plan. Docs only; no implementation changes.

Evidence

Merge Danger

Door: Two-way — documentation/design record only; implementation remains in follow-up issues.

Blast Radius: Documentation.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

@dezren39
dezren39 requested a review from a team as a code owner November 1, 2026 17:09
@coderabbitai

coderabbitai Bot commented Nov 1, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You'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.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 698f54cc-ecc3-4b5e-8cc1-c81e61073e3d
Commits

Reviewing files that changed from the base of the PR and between 3c3c585 and da2c92b.

Files selected for processing: 1
  • doc/2026-11-01_design_id3455.md
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-01T17:11:30.102166Z da2c92b PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@dezren39
dezren39 merged commit f1ddfb3 into main Nov 1, 2026
1 check passed
@dezren39
dezren39 deleted the design/id-3455 branch November 1, 2026 17:10

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment on lines +140 to +142
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.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

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