Skip to content

[BUI-005] Restore rusty-bubbletea Windows terminal portability #5

Description

@coderbants

mutate-work-id:BUI-005-RUSTY-BUBBLETEA-WINDOWS

Bonobo exact-head Windows validation proves rusty-bubbletea still compiles Unix termios and raw-file-descriptor code on Windows. Isolate the Unix terminal implementation and provide a safe Windows terminal path so the supported Windows dependency graph compiles without weakening unsafe-code policy.

Acceptance criteria

  • AC-BUI-005-RBT-WIN-A: Unix termios state and raw-file-descriptor operations are compile-time isolated from Windows while preserving the existing Unix terminal behavior.
  • AC-BUI-005-RBT-WIN-B: Windows exposes safe enable, disable, initialize, restore, and window-size terminal paths without handwritten unsafe code and with focused native Windows regression proof.
  • AC-BUI-005-RBT-WIN-C: Public and maintainer documentation accurately describe the platform split and the exact supported Windows behavior.

Acceptance evidence contract

Criterion Profile Exact target paths
AC-BUI-005-RBT-WIN-A code Cargo.toml, src/tty.rs, src/program.rs, tests/interactive.rs, tests/windows_tty.rs
AC-BUI-005-RBT-WIN-B platform Cargo.toml, src/tty.rs, src/program.rs, tests/interactive.rs, tests/windows_tty.rs
AC-BUI-005-RBT-WIN-C documentation src/tty.rs, src/tty_unix.rs, src/tty_windows.rs, UPSTREAM_MAPPING.md
🤖 Mutate Machine Contract
{
  "schemaVersion": 2,
  "id": "BUI-005-RUSTY-BUBBLETEA-WINDOWS",
  "title": "[BUI-005] Restore rusty-bubbletea Windows terminal portability",
  "summary": "Bonobo exact-head Windows validation proves rusty-bubbletea still compiles Unix termios and raw-file-descriptor code on Windows. Isolate the Unix terminal implementation and provide a safe Windows terminal path so the supported Windows dependency graph compiles without weakening unsafe-code policy.",
  "status": "review",
  "priority": "P0",
  "role": "mid",
  "repository": "rusty-bubbletea",
  "requiredAccessTags": [
    "access:public"
  ],
  "seamContracts": [],
  "dependencies": [],
  "acceptanceCriteria": [
    "AC-BUI-005-RBT-WIN-A: Unix termios state and raw-file-descriptor operations are compile-time isolated from Windows while preserving the existing Unix terminal behavior.",
    "AC-BUI-005-RBT-WIN-B: Windows exposes safe enable, disable, initialize, restore, and window-size terminal paths without handwritten unsafe code and with focused native Windows regression proof.",
    "AC-BUI-005-RBT-WIN-C: Public and maintainer documentation accurately describe the platform split and the exact supported Windows behavior."
  ],
  "acceptanceEvidence": [
    {
      "criterionId": "AC-BUI-005-RBT-WIN-A",
      "profile": "code",
      "targetPaths": [
        "Cargo.toml",
        "src/tty.rs",
        "src/program.rs",
        "tests/interactive.rs",
        "tests/windows_tty.rs"
      ]
    },
    {
      "criterionId": "AC-BUI-005-RBT-WIN-B",
      "profile": "platform",
      "targetPaths": [
        "Cargo.toml",
        "src/tty.rs",
        "src/program.rs",
        "tests/interactive.rs",
        "tests/windows_tty.rs"
      ]
    },
    {
      "criterionId": "AC-BUI-005-RBT-WIN-C",
      "profile": "documentation",
      "targetPaths": [
        "src/tty.rs",
        "src/tty_unix.rs",
        "src/tty_windows.rs",
        "UPSTREAM_MAPPING.md"
      ]
    }
  ]
}

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions