Skip to content

demo: add a persistent sandbox (demo/sandbox/enter.sh)#18

Merged
suzuke merged 1 commit into
mainfrom
demo/sandbox
Jul 6, 2026
Merged

demo: add a persistent sandbox (demo/sandbox/enter.sh)#18
suzuke merged 1 commit into
mainfrom
demo/sandbox

Conversation

@suzuke

@suzuke suzuke commented Jul 6, 2026

Copy link
Copy Markdown
Owner

What

A persistent hands-on sandbox — the complement to playground.sh (throwaway, self-deleting). Its repos live in demo/sandbox/ and survive between runs, so you can poke, break, and re-enter. This is the setup the operator actually used to verify recovery by hand.

Same eight scenes as the playground (isolation · cross-branch/worktree/push-guard denies incl. trust-root secret leak · provenance trailer · one-command recovery · containment · audited bypass), each try/expect/verify.

  • Uses your installed agentic-git (cargo install agentic-git), or the repo's release build as a fallback.
  • --scripted asserts all eight; --reset rebuilds; non-TTY never hangs.
  • Generated repos (project/ origin.git/ your-checkout/ home/) are gitignored — running it in place never dirties the checkout.

No src/ changes. Verified: ./demo/sandbox/enter.sh --scripted passes all 8 with the installed 0.2.2; shellcheck clean; .gitignore confirmed to exclude generated state.

🤖 Generated with Claude Code

A persistent, hands-on complement to playground.sh: instead of a throwaway that
self-deletes, the sandbox repos live in demo/sandbox/ and survive between runs,
so you can poke, break, and re-enter. Uses your installed `agentic-git` (or the
repo's release build as a fallback).

Same eight scenes as the playground, each try/expect/verify — isolation, the
deny matrix (cross-branch / worktree / push-guard incl. a trust-root secret
leak), the provenance trailer, one-command recovery, containment (your real
checkout stays safe), and an audited bypass. `--scripted` asserts all eight;
`--reset` rebuilds; `--reset`/non-TTY never hangs.

The generated repos (project/ origin.git/ your-checkout/ home/) are gitignored,
so running it in place never dirties the checkout. Verified: `--scripted` passes
all 8 with the installed 0.2.2; shellcheck clean.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@suzuke suzuke merged commit d15f60f into main Jul 6, 2026
4 checks passed
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