Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
76af0dc
docs(tui): enforce programmability inventory
lawrencecchen Jul 24, 2026
d898471
Merge remote-tracking branch 'origin/main' into task-cmux-tui-spec-co…
lawrencecchen Jul 26, 2026
ab864f0
test(tui): cover trailing enum variants
lawrencecchen Jul 26, 2026
3c1340a
docs(tui): resolve programmability review gaps
lawrencecchen Jul 26, 2026
4075b1b
docs(tui): make current protocol risks explicit
lawrencecchen Jul 26, 2026
ba9b19e
docs(tui): correct short ID example
lawrencecchen Jul 26, 2026
24c53b3
test(tui): cover inventory routing contracts
lawrencecchen Jul 26, 2026
bd4bbc2
docs(tui): enforce authority and stream routes
lawrencecchen Jul 26, 2026
10a0328
test(tui): ignore comment-only wire events
lawrencecchen Jul 26, 2026
60ca64b
fix(tui): exclude comments from event discovery
lawrencecchen Jul 26, 2026
373410b
test(tui): require runtime-owned inventory metadata
lawrencecchen Jul 26, 2026
b02a3c6
fix(tui): derive inventory from runtime metadata
lawrencecchen Jul 26, 2026
eb69ebd
test(tui): cover autoreview contract regressions
lawrencecchen Jul 26, 2026
0632b61
fix(tui): align runtime and protocol contracts
lawrencecchen Jul 26, 2026
4d4df2e
test(tui): require runtime-owned menu metadata
lawrencecchen Jul 26, 2026
e8bb839
fix(tui): derive menu inventory from runtime metadata
lawrencecchen Jul 26, 2026
dd2a0d0
test(tui): cover review contract gaps
lawrencecchen Jul 26, 2026
237f2a8
fix(tui): make action and event contracts truthful
lawrencecchen Jul 26, 2026
ac8dcf9
test(tui): cover external review hardening gaps
lawrencecchen Jul 26, 2026
cc4ead3
fix(tui): harden inventory authority contracts
lawrencecchen Jul 26, 2026
9226485
Merge main into TUI programmability inventory
lawrencecchen Jul 27, 2026
092a5f4
Merge remote-tracking branch 'origin/main' into feat-pr-8856-closeout
lawrencecchen Aug 9, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/workflows/cmux-tui-spec.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: cmux-tui spec inventory

on:
pull_request:
paths:
- "cmux-tui/**"
- ".github/workflows/cmux-tui-spec.yml"
workflow_dispatch:
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved

concurrency:
group: cmux-tui-spec-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: read

jobs:
inventory:
runs-on: ubuntu-latest
timeout-minutes: 2
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false

- name: Check protocol and TUI action inventory
run: python3 cmux-tui/scripts/check-spec-inventory.py
14 changes: 12 additions & 2 deletions cmux-tui/bindings/generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,27 @@ PROMPT_DIR="$SCRIPT_DIR/.generated-prompts"

SPEC_FILES=(
"$MUX_DIR/spec/README.md"
"$MUX_DIR/spec/inventory.json"
"$MUX_DIR/spec/inventory.schema.json"
"$MUX_DIR/spec/programmability.md"
"$MUX_DIR/spec/commands.md"
"$MUX_DIR/spec/events.md"
"$MUX_DIR/spec/render.md"
"$MUX_DIR/spec/transports.md"
"$MUX_DIR/spec/cli.md"
"$MUX_DIR/spec/bindings.md"
"$MUX_DIR/spec/native-frontend.md"
"$MUX_DIR/spec/terminal-host.md"
"$MUX_DIR/spec/machine-provider.md"
"$MUX_DIR/spec/provider-management.md"
"$MUX_DIR/spec/plugins.md"
)

GENERATE_LANGS=(python typescript rust go java)
STUB_LANGS=()

mkdir -p "$PROMPT_DIR"
python3 "$MUX_DIR/scripts/check-spec-inventory.py"

assemble_prompt() {
local lang="$1"
Expand All @@ -41,9 +51,9 @@ assemble_prompt() {
echo "- This is a temporary output directory. The harness swaps it into cmux-tui/bindings/$lang/ only after generation succeeds."
echo "- Regeneration must overwrite stale generated files inside the temporary output directory."
echo "- Follow the style sheet exactly."
echo "- Implement protocol-v9 commands and events marked implemented, plus consumer-side implemented move commands."
echo "- Implement every protocol-v9 command and event in spec/inventory.json, preserving its authority group and cumulative profile rules."
echo "- Preserve command names, params, result shapes, event names, and error behavior from the spec."
echo "- Do not implement proposed commands unless the style sheet explicitly asks for version-gated stubs."
echo "- Do not implement proposed primitives unless the style sheet explicitly asks for version-gated stubs."
echo
echo "## Language style sheet"
cat "$style"
Expand Down
5 changes: 2 additions & 3 deletions cmux-tui/bindings/styles/go.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
# Go Binding Style

Go generation is not run this round.

Future requirements:
Requirements:

- Use `context.Context` on every command method.
- Use exported Go method names and JSON tags matching wire names.
- Provide typed errors that support `errors.Is` and `errors.As`.
- Expose event and attach streams with context-aware receive methods.
- Preserve raw JSON escape hatches for forward compatibility.
- Expose typed methods for every implemented inventory command under its authority group.
5 changes: 2 additions & 3 deletions cmux-tui/bindings/styles/java.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
# Java Binding Style

Java generation is not run this round.

Future requirements:
Requirements:

- Provide a builder for client configuration.
- Use immutable result value objects.
- Use builders for requests with multiple optional parameters.
- Separate command, transport, decode, timeout, and protocol mismatch errors.
- Provide a synchronous stream interface first; callbacks or Flow publishers may be added later.
- Preserve the public raw request method and add typed methods for every implemented inventory command under its authority group.
8 changes: 4 additions & 4 deletions cmux-tui/bindings/styles/python.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ Requirements:
- Method names are snake_case and map 1:1 to implemented command names.
- Preserve server error strings in `CommandError`.
- Distinguish command errors, connection errors, protocol errors, and timeouts.
- Resolve the default socket as `$TMPDIR/cmux-tui-<uid>/<session>.sock`, with explicit socket path override.
- Resolve the default socket with `XDG_RUNTIME_DIR`, then `TMPDIR`, then `/tmp`, matching `spec/transports.md`, with explicit socket and `CMUX_TUI_SOCKET` overrides.
- Use separate sockets for command requests, subscribe streams, and attach streams.
- Provide `CmuxClient.request(cmd, **params) -> dict` as the raw JSON response entry point.
- Implement `subscribe()` as an iterator over event objects.
- Implement `attach_surface(surface)` as an iterator over attach event objects.
- Support protocol v5 attach streams and reject protocol v6 attach streams unless `resized` replay handling is implemented.
- Include consumer-side methods for `move_tab(surface, pane, index)` and `move_workspace(workspace, index)`.
- Do not implement proposed commands such as `wait-for`, `run`, `send-key`, `copy`, `ids`, `notify`, `list-agents`, or `report-agent` as active protocol methods.
- Support protocol-v9 byte, render, and browser attach streams, including `resized` replay handling, while preserving the protocol-v5 byte fallback.
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved
- Include typed methods for every command in `spec/inventory.json` that belongs to the selected profile, including `read_scrollback`, `wait_for`, `run`, `send_key`, `copy`, `ids`, `notify`, `list_agents`, and `report_agent`.
- Keep proposed vNext primitives out of the active protocol client until their protocol version lands.

Public API shape:

Expand Down
Loading