Skip to content

id: Phase 13 F13.5 kitty keyboard protocol on the raw input path #787

Description

@dezren39

What and why

Negotiate the kitty keyboard protocol (CSI > u) where supported so Escape vs Alt is unambiguous and key events go beyond the legacy byte stream; extend Key.parse and the browser encoder to match.

Source

Current status

Not started. Key.parse decodes legacy sequences only (pkgs/id/examples/roc-world/Key.roc); no negotiation in pkgs/id/src/world_ssh.rs.

Acceptance criteria

  • A kitty-protocol terminal and the web encoder produce the same key event for the same keystroke (parity test)
  • Escape vs Alt is unambiguous on a kitty-protocol terminal
  • The raw input path carries the richer key events without changing the durable Input event

Size

M

Prerequisites

Activity

  1. developing-today commented on Oct 24, 2026

    @developing-today
    Contributor
  2. added
    kind/featureNew feature or capability request
    priority/lowNice to have; do when convenient
    effort/lLarge: multi-day or open-ended; expect staged check-ins
    app/idPackage/app: id (pkgs/ or apps/ in this repo)
    meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added
    source/humanFiled directly by a human
    on Oct 26, 2026
  3. dezren39 commented on Oct 26, 2026

    @dezren39
    MemberAuthor

    Intake review

    Fleet monitor intake pass (protocol §5).

    Related: Phase 13 sibling set — #785 (F13.3), #786 (F13.4), #787 (F13.5), #788 (F13.6), #789 (F13.7), #790 (F13.8); this issue is F13.5 kitty keyboard protocol on the raw input path. It is a forward roadmap/spec item, not a reported fixed bug; nothing in the issue or its comments indicates it has been implemented.

    Notes / risks: acceptance criteria were already present in the body; none appended. Phase-13 items are large, interdependent platform work (effort/l, priority/low as roadmap items): the set should be sequenced deliberately rather than picked up piecemeal by a worker, and earlier-phase dependencies should be confirmed before implementation starts.

    Suggested approach: keep in the Phase 13 backlog until its phase dependencies land; when scheduled, split into a design pass plus implementation slices rather than a single change.

    Labels normalized by the monitor.

  4. added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    and removed on Oct 28, 2026
  5. 295 remaining items

  6. dezren39 commented on Nov 14, 2026

    @dezren39
    MemberAuthor

    Reopened by the 90-day closed-item review (2026-11-14, batch 87).

    This issue was closed as completed at 2026-11-08T20:35:40Z, two seconds after PR #7734 merged — but PR #7734 delivered Slice C only, and its own body states: 'Refs #787 — Slice C only. This PR does not close #787: Slices D/E/F remain, and acceptance criteria 1–3 of the issue stay open until they land.' The closure appears to be a GitHub auto-close triggered by the literal string 'close #787' inside that negated sentence (no closing keyword exists in the PR body or its commits; the recorded closing actor is the merger, 2s after the merge).

    The item's own record contradicts the closure: PR #7348's closing note (2026-11-08T20:35:59Z, task 13060) states 'Issue #787 stays open for Slices D/E/F', and task 13060's done note records only 'Slice C delivered'. No successor or decision record covers Slices D/E/F.

    Live remainder: Slices D/E/F of the kitty keyboard protocol work and acceptance criteria 1–3 as recorded on PR #7734. Reopening as live work.

  7. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · triaged — task 18042 (queue repo-health-code-pilot, lane code-a)

  8. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    lane: repo-worker-code (openchamber-scheduled-lane code-j)
    state: blocked — packet_defect
    Fresh state 2026-11-17: #787 OPEN, size M, body says "Not started". Prerequisite #564 is CLOSED, so it does not block. The queue packet is titled "Slice D: cross-language parity oracle", which presumes earlier slices that the issue does not record. Packet and issue disagree on scope, so the worker did not build a slice. Owner to re-scope the packet to the issue's acceptance criteria or record which slices exist.

  9. removed their assignment
    on Nov 20, 2026
  10. added
    nextOrg Project gate: queued next — orchestrator adds to the board
    on Nov 21, 2026
  11. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · picked up — Lane FC (Muse sandbox lane, archer)

  12. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · progress — Lane FC (archer)
    Slice D PR open: #12926 — cross-language parity oracle: corpus browser fields (24 cases), Roc harness generating expects into a copy of Key.roc (123/123 under the actual compiled parse_events), vitest twin (25/25), wired into scripts/roc-test.sh. Merging on the verified evidence; #787 stays open for Slices E/F (gated on #786).

  13. added a commit that references this issue on Nov 23, 2026
  14. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · done — Lane FC (archer), Slice D landed

    PR #12926 MERGED — merge commit 808d00f22301608946cb717a4797c1a47a6756d2, head 2db3d067cbc, exactly five files:

    • doc/kitty-disambiguate-v1-fixtures.json — 24 of the 40 corpus cases now carry a browser field (browser key event for the same keystroke + the exact bytes the Slice C rich encoder must emit; the encoder's canonical form where the fixture's terminal input is an alternate form, e.g. F1 tilde vs letter, Shift+A text vs CSI-u).
    • pkgs/id/scripts/key-parity-generate.py + pkgs/id/scripts/key-parity-test.sh — the parity oracle: generated expects in a scratch copy of examples/roc-world/Key.roc, run under the pinned roc test, decoding terminal bytes AND browser bytes through the actual compiled Key.parse_events (no second decoder). Comparison zeroes the per-event source (byte-form provenance); parity = key + modifiers + kind, plus EventUnknown payloads. Missing roc/python3/corpus/Key.roc fails loudly; a shrunk corpus (<40 terminal / <20 browser) is refused. Wired into scripts/roc-test.sh after the Key module.
    • pkgs/id/web/src/world-keyboard.parity.test.ts — web twin pinning richTerminalBytesForKey to the corpus bytes + corpus-completeness guards (screen-parity twin pattern).

    Verification (laptop, nix develop, worktree off origin/main):

    • Generated Roc run: 123/123 (59 original Key expects + 64 generated: 40 terminal + 24 browser).
    • Negative controls: mutated corpus expectation → Roc run fails (2 failed); 10-case corpus → generator refuses (exit 1).
    • scripts/roc-test.sh in sequence: RocJson 29 ✓, Screen 15 ✓, Key 59 ✓, key-parity 123 ✓, roc-cap-demo ✓ (final pre-existing roc-import-policy cargo section still compiling under load at merge time; this diff touches none of its inputs).
    • vitest: parity 25/25 + world-keyboard 22/22; tsc --noEmit clean; biome clean; shellcheck + shfmt clean.

    Remainder on #787 (issue stays OPEN): Slice E (opt-in SSH lifecycle) and Slice F (browser opt-in) — both gated on F13.4 detection (#786, still open) plus this Slice D oracle, which now exists. Next action when #786 lands: claim Slice E per design §6 row E.

  15. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · reopening — Lane FC (archer)

    This issue was closed seconds after PR #12926 merged — the same auto-close accident recorded on 2026-11-14 for Slice C: the PR body contained the negated sentence "This PR does not close #787", and the literal string appears to have triggered closure anyway. PR #12926 delivered Slice D only (parity oracle, merge 808d00f22301); its body, the commit message, and the done record above (comment 7092214396) all state Slices E/F remain and acceptance criteria 1–3 stay open until they land.

    Live remainder unchanged: Slice E (opt-in SSH lifecycle) and Slice F (browser opt-in), gated on F13.4 detection (#786). Reopening as live work.

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

    app/idPackage/app: id (pkgs/ or apps/ in this repo)effort/lLarge: multi-day or open-ended; expect staged check-insenhancementNew feature or requestkind/featureNew feature or capability requestmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedmode/onlineFully doable remotely: design, config, code, cloudnextOrg Project gate: queued next — orchestrator adds to the boardpriority/lowNice to have; do when convenientqueue/queuedHas a queued queue tasksource/humanFiled directly by a humanstatus/triagedTriaged and routed (see agent note)task/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions