Normative exhibits

Anti-patterns

ShippedCanon

Real code that shipped or nearly shipped. Each exhibit is the failing shape, why it fails review, and the replacement. Numbers continue as scars land.

  1. Exhibit 1 Hand-rolled dynamic JSON where the protocol is closed

  2. Exhibit 2 Ad-hoc child-process plumbing around Process

  3. Exhibit 3 Awaiting exit before draining child pipes

  4. Exhibit 4 Per-byte AsyncBytes iteration for bulk pipe reads

  5. Exhibit 5 Hand-rolled encode(to:) to keep one key null

  6. Exhibit 6 Enum labels built by rawValue concatenation

  7. Exhibit 7 A .task-gated “settled” state that renders void

  8. Exhibit 8 Lazy containers for fixed, small collections

  9. Exhibit 9 @_nonSendable(_assumed) types crossing isolation

  10. Exhibit 10 A tolerant record lane re-shipping committed files as fresh

  11. Exhibit 11 The Go-shaped actor — porting another language’s structure

  12. Exhibit 13 JSONEncoder on macOS 26 randomizes key order per-process

    Rides PR #75 — canonical writer + ≥5 suite runs before trusting format-sensitive green.

  13. Exhibit 14 xcodegen regen wipes hand-edited entitlements

    Author generated files in project.yml. sim-green ≠ device-green for entitlement-class bugs.