Skip to content

P5 O7: byte-exact copies of non-UTF-8 text across machines (a raw-bytes read behind rl2.bytes) #446

Open

Description

@SSFSKIM

Parent: docs/doperpowers/plans/2026-10-27-p5-org.md, child O7 (M5a's residue, PR #441; P5 Decision Logs 199 and 202).

What. A read encoding on RL2 that carries a file's raw bytes behind rl2.bytes, so a byte-exact copy of a text file that is not valid UTF-8 can cross machines.

Why. M5a's reads carry text as text. A text file that isn't valid UTF-8 (a Latin-1 log, a file with a stray byte) is decoded on the way, so Open externally and Save As on another machine produce a copy that differs from the original in those bytes. This is known limit 4 of P5 Decision Log 199. Binary artifacts already travel in json-bytes' tagged form and are unaffected.

Acceptance.

  • Save As and Open externally of a non-UTF-8 text artifact on another machine produce a file whose bytes equal the original's (checked by hash in a lane-b case).
  • A peer that does not list the new capability keeps today's behaviour, and the device says the copy may differ.
  • The encoding follows OX1: additive, behind a capability, so neither side needs a lockstep upgrade.

Edges. Blocked by nothing; touches src/endpoint/artifacts.ts, the RL2 message schema and main's remote artifact reads (O7's files). Not urgent: no report of a user hitting it.

Activity

  1. added
    enhancement
    status:deferred
    priority:P3
    on Nov 2, 2026
  2. added a commit that references this issue on Nov 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementpriority:P3status:deferred

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions