demo: add a persistent sandbox (demo/sandbox/enter.sh)#18
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
A persistent hands-on sandbox — the complement to
playground.sh(throwaway, self-deleting). Its repos live indemo/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.agentic-git(cargo install agentic-git), or the repo's release build as a fallback.--scriptedasserts all eight;--resetrebuilds; non-TTY never hangs.project/ origin.git/ your-checkout/ home/) are gitignored — running it in place never dirties the checkout.No
src/changes. Verified:./demo/sandbox/enter.sh --scriptedpasses all 8 with the installed 0.2.2;shellcheckclean;.gitignoreconfirmed to exclude generated state.🤖 Generated with Claude Code