{"slug":"e2e-side-effect-safety","title":"e2e-side-effect-safety","summary":"Mandatory safety gate before designing or running nontrivial execution tests, integration tests, browser/GUI/audio/PTY/filesystem/configuration E2E, or deployed hardware tests on a personal or shared computer. Prevent disturbing the user or other agents; require verified private ","platform":"Claude","tags":[],"authorName":"LLM Mart","authorSlug":"llm-mart","score":0,"source":"github","price":null,"verified":false,"createdAt":"2026-12-03T18:25:08.15364Z","repo":{"url":"https://github.com/archibate/agent-skills","stars":19,"forks":2,"license":null,"updatedAt":"2026-12-01T03:54:49Z"},"bodyHtml":"<hr>\n<h2>name: e2e-side-effect-safety\ndescription: &gt;-\nMandatory safety gate before designing or running nontrivial execution tests,\nintegration tests, browser/GUI/audio/PTY/filesystem/configuration E2E, or\ndeployed hardware tests on a personal or shared computer. Prevent disturbing\nthe user or other agents; require verified private resources, silent checks\nfirst, and explicit approval for unavoidable external effects or user-dependent\nverification. Pure unit tests without real-world I/O effects are exempt.</h2>\n<h1>E2E side-effect safety</h1>\n<p>The computer is a shared, occupied space, not an empty test sandbox. Assume the\nuser may have left the agent running while working, listening to music, playing\nvideo games, or sleeping. Other agents may be doing healthy work concurrently.\nA passing test does not justify disturbing any of them.</p>\n<p>This gate is mandatory before nontrivial execution testing, including test\nsetup, probes, retries, and cleanup. A test called “unit,” “headless,” “local,” or\n“background” is not exempt if it can have real-world I/O effects. Only trivial\nunit tests without those effects are exempt.</p>\n<h2>Gate before execution</h2>\n<ol>\n<li>Trace the test's effects through its actual consumers: output, input,\nsockets, sessions, processes, services, devices, and resource load. Include\ndefaults and fallback behavior, not just the intended route.</li>\n<li>Identify what this agent owns. Use a private scratch directory and fresh,\ntest-specific resource names. Verify isolation before activating effects;\nsharing a Unix user, executable name, or project does not establish ownership.</li>\n<li>Decide whether the test can run without interrupting the user or another\nagent. If ownership, routing, or isolation is uncertain, fail closed: inspect\nor redesign the test rather than trying the risky route to discover its effect.</li>\n<li>Bound duration, concurrency, and CPU/GPU/memory/I/O load. Private names do not\nprevent a heavy test from disturbing games, work, or other agents. Start small\nand avoid unnecessary parallel runs or repeated spinning.</li>\n<li>Run the verified non-disturbing checks first. Record what they establish and\nwhat still requires a disturbing or user-dependent closing test.</li>\n</ol>\n<p>Task authorization, “run E2E,” and a successful earlier isolated test do not grant\npermission to disturb the user's session or act on physical devices. A requested\ninstallation or deployment is separately authorized work, scoped to the requested\napplication and changes; it does not authorize arbitrary test-only mutations of\nglobal configuration or shared infrastructure. Recheck the gate when the execution\nroute or possible effects change.</p>\n<h2>Isolation for the relevant channel</h2>\n<ul>\n<li><strong>Filesystem/configuration:</strong> run tests in an agent-owned isolated scratchpad\nor workspace with private fixtures, outputs, and curated test configs. Use the\nCLI's explicit config-path override (such as <code>-c</code>, where supported), or scoped\n<code>HOME</code>/<code>XDG_*</code> environment overrides. Verify the actual read/write paths and\nfallback behavior, including child processes; changing the working directory\nalone does not isolate global config. Keep test-only installs, deployments,\nand service instances private. Do not modify global/system configs or toggle\nshared services solely for E2E: “install this app when done” does not authorize\nswitching Apache on/off or rewriting shared Nginx config for verification.\nIf a test depends on those mutations, redesign it or report the verification\ngap; do not use backup-and-restore as a substitute for isolation.</li>\n<li><strong>Audio:</strong> silence or redirect only the test's output. Verify the effective\nbrowser/process mute or private output route before playback; headless alone\ndoes not mean silent. Measure the internal signal upstream of a silent output,\nor use offline rendering. Leave the user's music, games, audio devices, and\nsystem volume untouched.</li>\n<li><strong>PTY/tmux:</strong> create a private socket inside this agent's scratch directory and\npass that socket explicitly on every invocation, including cleanup. Verify its\npath. Do not use or reset the user's default tmux server or another agent's\nsessions.</li>\n<li><strong>GUI:</strong> run in an agent-private desktop, such as an isolated Xvfb display.\nSet an explicit private <code>DISPLAY</code> and verify routing on both the application\nand screenshot/input tools, including <code>xdotool</code>; prevent fallback to the user's\nWayland session. Keep clicks, keystrokes, focus, and screenshots out\nof the user's main desktop. If private-desktop routing cannot be established,\ndo not launch or interact there without approval.</li>\n<li><strong>Embedded/physical systems:</strong> perform simulator, mocked-device, and isolated\nchecks first. Deploying or exercising firmware on hardware such as an ESP32\nthat can move a robot arm or operate an AC remote requires explicit approval.\nAsking the user to watch or confirm physical behavior also requires approval;\nit is not a free verification step.</li>\n<li><strong>Concurrent agents:</strong> use test-owned instances, ports, sockets, profiles, and\nprocess groups. Do not free a resource by killing an unrelated current owner. Never use\nbroad process-name kills, reset shared services, or “clean up” unknown healthy\nwork. Inspect conflicts and choose a private resource instead.</li>\n</ul>\n<p>The list above is demonstrative, not a full enumeration. Think if your E2E test\nis disruptive and how to isolate.</p>\n<h2>When disturbance is essential</h2>\n<p>Finish the safe checks and prepare the shortest bounded closing test before\nasking. Explain, in one request:</p>\n<ul>\n<li>What the best-effort non-disturbing tests already verified and the remaining\nuncertainty.</li>\n<li>The exact effect, affected resources, and what the user would need to pause or\nobserve, including whether other agents would be affected.</li>\n<li>The expected disturbance window, stop condition, and owned-resource cleanup.</li>\n</ul>\n<p>Then pause and wait for the user to return and explicitly approve that scoped\nwindow. Silence, background execution, or an unanswered request is not consent.\nDo not substitute a more disruptive test while waiting. Once approved, run only\nthat scope, minimize the interruption, and stop promptly. A longer window or a\nchanged effect requires renewed approval. If approval is unavailable, report the\nremaining verification gap without claiming the unperformed test passed.</p>\n<h2>Cleanup and recovery</h2>\n<p>Clean up only resources whose ownership this agent established. Keep the user's\nsession and other agents' healthy work intact on success, failure, cancellation,\nand retries; do not restore guessed global state over concurrent changes.</p>\n<p>If unexpected disturbance occurs, stop the owned test immediately. Inspect what\nhappened, acknowledge the effect, explain a non-disturbing recovery plan, and\nwait for approval before further state-changing work. Do not stop or mute the\nuser's activity to hide the test's effect.</p>\n<p>Report the verified isolation and checks performed, plus any physical or\nuser-session behavior deliberately left untested. This is an instruction-level\ngate: do not claim it is an OS-enforced sandbox or that other already-running\nagents have automatically adopted it.</p>\n","files":[{"path":"SKILL.md","sizeBytes":7163,"isText":true}],"reviewScore":null,"reviewSummary":null,"trust":{"provenance":"trusted-source-unreviewed","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow.","bodySource":null},"bodyLocked":false,"purchaseUrl":null,"sourceUrl":null,"report":{"provenance":"trusted-source-unreviewed","screen":{"ran":true,"outcome":"clean","suspicious":0,"notes":0,"hiddenCharacters":false},"virusScan":{"engine":"clamav","status":"clean","scannedAt":"2026-12-03T18:25:46.175131Z","sha256":"4E0C8AFDB5F79B88240946CE5A74903CBC8D6F1E0EECC752D1400A83D1B206A6","sizeBytes":3269},"review":null,"source":{"repositoryUrl":"https://github.com/archibate/agent-skills","path":"skills/e2e-side-effect-safety","license":null,"commit":"0a4e08da8a245516055bbfb2203dd7714eb647f5","subtreeSha":"97B1798130DD7DA51854B17CF8400C68C618E6FD2AF48225F2178C9A5C95BC1E","lastSyncedAt":"2026-12-03T18:25:06.081922Z"},"reviewedAt":"2026-12-03T18:27:35.192797Z","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow."},"install":[{"target":"skills-cli","command":"npx skills add https://github.com/archibate/agent-skills/tree/master/skills/e2e-side-effect-safety"},{"target":"claude-code","command":"claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install archibate-agent-skills@llmmart"},{"target":"git","command":"git clone https://github.com/archibate/agent-skills.git"}]}