docs(openspec): propose shell and agent control for WebMux #337
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.42) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.42 · 320 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.345
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #337"
general
weight: 0.35
mzdluo123
Summary
OpenSpec change
add-agent-shell-control: let scripts and CLI agents drive almost every WebMux feature from the shell. This PR contains only the specification (proposal, design, tasks, spec deltas); implementation follows in five topic PRs listed intasks.md§0.What the spec covers
WEBMUX_SOCKETandWEBMUX_BIN(the server's ownos.Executable()), without touchingPATH; CLI--socket,selfalias, exit code 124 for timeouts.api,kill/rm/rename,send(acknowledged submissions,--waitwithout the stale-state race),wait,logs,screen(client-side terminal emulation; the server still does none),events,dir,notify/notify --clear.run --worktree/--new-worktree, auto workspace association,--start-side/--prompt/--init/--label/--json/--wait/--dry-run/--follow, auto-detach without a terminal;chat new= Quick Start;launch-config options.GET /api/sessions/{id}/details,webmux get --field, unforgeableparentIdfor sessions created from inside a session, in-memory labels withlsfilters.repoincl.repo settings, worktree commands with home-page display (pin/unpin/home, same rules as the web), fulllaunch-configCRUD,forward.--help(English, 9 sections, ≥2 examples),help --json, bash/zsh/fish completion and the llms command reference;--helpgoes to stdout with exit 0 (fixesrun/attach/ls/open).{{webmux}}: the reserved variable becomes a short brief (session ID, executable/socket paths, llms.txt address, temp folder rule). The guide is served llms.txt-style at/llms.txt,/llms/<topic>.md,/llms-full.txt, rendered in memory (never written to disk); the temp-folder instructions move into/llms/artifacts.md, and the "临时文件夹" preset is replaced by "WebMux 工具".Confirmed decisions are recorded in
design.md(决策记录).Verification
go test ./internal/docguardpasses. No code changed.User stories
No story changes in this PR (spec only). Implementation PRs will add a new story group for shell/agent control and update US-Q13 plus the quick command, artifacts and init instruction stories (
tasks.md§8.1).---
_Generated by Claude Code_