Skip to content

Text encoding: one policy for every command, and a suite that runs under an ASCII locale #151

Closed

Description

@k-sok

Why

The release waits until no bug is open, and bugs of one class keep arriving one at a time: a non-ASCII repository path, remote name or config byte, or a message that is not UTF-8, under an ASCII locale. Seven so far: #115, #130 (fixed), #134, #144, #145, #146, #150. Each fix covers the one command a sweep happened to try, so the next sweep finds the same failure in another command, and the bug count does not converge. The user meets these as tracebacks or as a check that silently does not match.

Reproduction

Any of the issues above; the common shape, from an empty directory:

mkdir /tmp/ü && cd /tmp/ü && git init -q && LC_ALL=C prepush-ci <command>

Expected

The tool handles text the same way in every command, so no command can fall out of line:

  • one policy in one module for text crossing a boundary (paths and git output, files the tool reads and writes, the terminal), used by every command; today git.py decodes with the filesystem encoding and surrogateescape, other modules use utf-8 strict or errors="replace", and cli.py reconfigures only stdout;
  • the suite proves the class, not instances: the integration specs also run with LC_ALL=C in a repository whose path has a non-ASCII character (a fixture or a CI variant), so a command that breaks under it fails the suite before a sweep finds it.

Once this lands, the open issues of the class above close with it or are re-checked against it.

Activity

  1. added this to the 0.1.0 milestone on Oct 13, 2026
  2. added theissue type on Oct 13, 2026
  3. added
    turn:spec
    on Oct 13, 2026
  4. cogc-factory commented on Oct 13, 2026

    @cogc-factory
    Contributor

    Triaged: Bug, in milestone 0.1.0, turn:spec. It adds a requirement every command must meet, so it gets an OpenSpec change (a new capability for the text policy, plus scenarios run under LC_ALL=C in a non-ASCII path), not a bare fix.

    Folding the open class members:

    The spec is written next, ahead of #139 and the other open work. The cap of three open spec PRs is full (#133, #141, #143); I start as soon as one leaves spec review.

    — bruce-lee

  5. cogc-factory commented on Oct 13, 2026

    @cogc-factory
    Contributor

    Factory ledger

    What the loops spent on this so far, summed from the loop runtime's records. Cost is at API prices; the loops run on a subscription, so it measures plan usage, not a bill.

    Loop Model Wakes Time Output tokens Cost at API prices
    bruce-lee sonnet-5-5 2 1 min 4k $0.13
    terminator sonnet-5-5 3 1 min 5k $0.07
    Total 5 2 min 10k $0.20

    Updated automatically.

  6. removed
    turn:spec
    on Oct 13, 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

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions