Repository navigation
M12.1–M12.6: kernel and user space — eject, layers, upgrades, kernel protection - #124
Merged
Merged
Conversation
…protection A project ejects the plugin's opinions (16 roles, skills, a kernel reference) into docs/agents/userspace/ (in git) on its first session or init, and changes them freely. home (~/.aloop/projects/<name>-<hash>) > repo > plugin per file; every apply logs the copy used (userspace.applied, gate-owned). Customized roles render as .claude/agents/<role>.md and through aloop install for Codex/OpenCode/dsh. Upgrades are three-way: untouched files follow, an edit is kept with <rel>.plugin-new; diff, merge, accept, reset. The kernel is never overridden: reference/ copies change nothing, a role name the kernel has no gates for is never loaded, gate-dispatch steers aloop:<role> to the customized copy, no dispatched agent or live-sprint supervisor writes user space, a worker diff touching it is blocked (diffscope) and task-worktree merge refuses such a branch. Test: scripts/test/userspace.test.py (48 checks; fails on master at the first check). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FeZyj8vyFzFFNgfzxTSoBd
adeelahmad
marked this pull request as ready for review
November 20, 2026 01:51
adeelahmad
pushed a commit
that referenced
this pull request
Nov 20, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FeZyj8wdhHQDM35jZMC9kX
adeelahmad
pushed a commit
that referenced
this pull request
Nov 20, 2026
…e door hook keeps M9.31's deadline, roles and question tools and takes M11.15's typed consent and test-scoped two-way drops, recorded after the alarm is disarmed Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FeZyj7etMNXP3NuHLWrd4u
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.
Requested by Adeel · project thread
What
aloop is now split like an OS (ROADMAP M12, §4.15):
docs/agents/userspace/(tracked in git) on the first session or onaloop init --apply, and the project can change them freely.aloop userspaceeject,status,which,upgrade,diff,merge,accept,reset,path [--home],apply,auto(run at SessionStart).~/.aloop/projects/<name>-<hash>/), then repo, then plugin. Every apply logsuserspace.appliedwith each file's layer and sha256. Onlyapplycan write that event:events emitrefuses it..claude/agents/<role>.md.aloop install codex|opencode|dshrenders the winning copies..base/:<rel>.plugin-new.mergeusesgit merge-file. On a conflict it writes<rel>.mergeand leaves your copy alone.User space can't weaken the kernel
reference/(the gates,hooks.json, the pipeline) changes nothing.gate-dispatchrefusesaloop:<role>when that role is customized, so a customization isn't silently skipped.~/.aloop. The supervisor can't either while a sprint is live.targets diffscope. Before this change it was hidden as run data.task-worktree mergerefuses any branch that touches user space..gitignoreis nowdocs/agents/*plus!docs/agents/userspace/. A project's olddocs/agents/line under the managed header is rewritten in place.Evidence
scripts/test/userspace.test.py: 48/48 pass. On master it fails at the first check, because no manifest is written.make test-hosts,make shellcheck,pycheck,readme.test.py,check-tracking.py(120 requirements).Calls (two-way, recorded)
~/.aloop/rather than~/.claude/projects/, because the latter is Claude-only and holds transcripts.Next (stacked PR)
M12.7 kernel extensions (
~/.aloop/kernel/, hash-pinned, add-only) and M12.8 profiles and domain packs.Generated by Claude Code