Skip to content

docs: embedded shell spike (Phase 5 of #267) - #280

Merged
mrnasil merged 1 commit into
mainfrom
docs/embedded-shell-spike
Oct 16, 2026
Merged

mrnasil merged 1 commit into
mainfrom
docs/embedded-shell-spike

Conversation

@mrnasil

@mrnasil mrnasil commented Oct 16, 2026

Copy link
Copy Markdown
Member

Phase 5 of #267 is a spike, not code. docs/proposals/embedded-shell-spike.md (Status: Design) covers the candidate crates (shell parser/engine and coreutils libraries: license, maintenance, Windows support, API shape, size), what Windows really does today, what the risk classifier would gain from a parsed AST, how an embedded shell interacts with the sandbox, a decision table (keep external / embed as Windows fallback / embed everywhere) with effort and risk, and a phased recommendation with the first three concrete tasks.

Two findings worth acting on regardless of the decision:

  • The guide and README should say plainly that Unix-style commands on Windows need Git for Windows and that cmd.exe is a degraded mode.
  • command-risk drops the body of a command substitution: echo $(rm -rf ~) is classified Safe. An AST front-end (or, short of that, assessing substitution bodies) makes it Catastrophic. Follow-up PR.

Docs only; docs/README.md gains a proposals/ row.

🤖 Generated with Claude Code

Candidates (brush, uutils, alternatives), Windows reality, what the risk
classifier gains from a real AST, sandbox interaction, decision table and
a phased recommendation: document the Git for Windows requirement now,
then an embedded shell behind a Windows-only feature, re-executed as a
child so bwrap, timeouts and job control stay as they are.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant