Repository navigation
docs(agents): add .agents/skills with an axis-e2e skill - #124
Merged
Merged
Conversation
Agents testing AXIS on a real host kept rediscovering the same traps: MXC refusing helpers in a group-writable directory, an lxc-exec built at the wrong MXC revision, a shared target directory silently reusing one build, Ctrl-C sent as a signal instead of typed, and timeout(1) failing inside the sandbox. The code and docs do not say any of this. Add .agents/skills/, linked from .claude/skills for Claude Code, with an axis-e2e skill that records these findings and links to the existing docs for the rest. Its scripts record the host (preflight.sh), build revisions side by side with their pinned lxc-exec (build.sh), and run a terminal program in a PTY, type Ctrl-C and report whether it came up, exited and left processes behind (run-tui.sh). AGENTS.md gets a Skills section with the rules for keeping skills short and current, and DEVELOPMENT.md points to the skill.
ltsabadz
reviewed
Nov 20, 2026
ltsabadz
left a comment
Collaborator
There was a problem hiding this comment.
Thanks, this is really useful! One small fix inline.
preflight.sh --require mxc checked only four of the seven tools MXC runs for private networking, so a host missing ip6tables, iptables-restore or ip6tables-restore passed preflight and then failed the run. Check the same list as MXC_PRIVATE_NETWORK_TOOLS, and list all seven in the DEVELOPMENT.md MXC test prerequisites. Co-authored-by: Cursor <[email protected]>
ltsabadz
approved these changes
Nov 20, 2026
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.
Motivation
lxc-execbuilt at the wrong MXC revision, a shared target directory silently reusing one build, Ctrl-C sent as a signal instead of typed,timeout(1)failing inside the sandbox. Each cost a test round in recent reviews (fix(sandbox): allow file watching under Linux MXC #100, fix(sandbox): separate agent configuration from host settings #102)..agents/skills/, with rules that keep them short and current, and start with one for end-to-end runs.Technical Details
.agents/skills/axis-e2e/SKILL.md: what a run on a real host needs that the code and docs do not show, and links todocs/security-test-tiers.md,docs/linux-setup.mdanddocs/runtime-performance-benchmarks.mdfor the rest. Each statement was checked againstmain(for example the helper path rules invalidate_safe_executable_path, the 108-byte PTY socket limit, MXCblockdenying non-AF_UNIXsockets,timer_createnot on the allowlist). Two are observations from runs and are worded as such..agents/skills/axis-e2e/scripts/:preflight.sh: records the host (kernel, user namespaces, tools,ptrace_scope) and fails when a--required capability is missing.build.sh WORK NAME=REF[@BASE]...: builds each revision in its own worktree andCARGO_TARGET_DIR, with thelxc-execitsci.ymlpins (read from the file, not hard-coded), checks that the bin directories pass AXIS's helper path rules, and refuses identicalaxisbinaries from different commits.--cleanremoves the worktrees and the directory.run-tui.sh: runs a terminal program underaxis runin a PTY with a fresh home, types Ctrl-C (0x03), and writesresult.txt: came up (an--expectstring), exit code, time to exit, leftover processes and PTY sockets. A leftover is a process that names the run or the program and did not exist before the run; only those are stopped.--axis noneruns the program without AXIS;--stracelists denied syscalls without the Bubblewrap/MXC setup noise..claude/skillsis a symlink to.agents/skillsfor Claude Code;.gitignorenow ignores.claude/*except that link.AGENTS.mdgets a Skills section (what a skill may contain, update it in the PR that changes what it describes, no internal details in this public repository), a Layout row, and a pointer from Tests;DEVELOPMENT.mdpoints to the skill after Local Checks and lists all seven MXC private-network tools in the MXC test prerequisites (it named onlyiptablesandslirp4netns).--socketadvice applies whileaxis runcontacts axisd first; fix(cli): run sandboxes without contacting axisd #108 should drop it when it lands.Security impact: none. Documentation and developer helper scripts outside the crates, policies and workflows; nothing AXIS builds, ships or runs reads
.agents/or.claude/. The scripts do not use sudo.Test Plan
shellcheck0.11.0 at-S styleon the three scripts;bash -n.run-tui.sh --axis noneon Linux (WSL2) against stand-in programs: one that comes up and exits on a typed Ctrl-C, one that never comes up and ignores it, one that leaves a detached process behind; plus an unrelated process of the same user that must survive.runtime.provider: mxc,network.mode: allow:preflight.sh --require mxc,strace,tty;build.sh WORK before=890b7f9 after=9d442a5(mainbefore and after fix(sandbox): allow file watching under Linux MXC #100);run-tui.sh --axis noneto pick--expect "Ask anything";run-tui.shalternating before and after, twice each, Ctrl-C at 25 s, stop at 50 s; one morebeforerun with--strace;build.sh --clean.SKILL.mdresolve; theSKILL.mdfrontmatter follows Cursor's skill format (namematches the folder, description under 1024 characters).Test Result
shellcheckclean. The stand-in cases report as intended: up and exit 0 after 0.2 s; not up and stopped by the timeout; the detached process listed and stopped; the unrelated process untouched.preflight.shpassed andbuild.shbuilt both revisions with different binaries. While doing so it caught its own bug, a bin directory created beforeumask 022(mode 775 under the host'sumask 002), now fixed.--stracert_sigsuspend3,epoll_pwait22,pidfd_open1,inotify_init11proxymode (the test host lacks unprivileged network namespace support for it), and a root caller.