Skip to content

docs(claude): wire railguard rules into global CLAUDE.md - #45

Merged
ulises-c merged 2 commits into
mainfrom
docs/railguard-rules
Jun 16, 2026
Merged

docs(claude): wire railguard rules into global CLAUDE.md#45
ulises-c merged 2 commits into
mainfrom
docs/railguard-rules

Conversation

@ulises-c

Copy link
Copy Markdown
Owner

Summary

rules/common/railguard.md existed but was never @-imported by CLAUDE.md, so the working-under-Railguard guidance never reached the agent. This wires it in and expands it.

  • CLAUDE.md — add @rules/common/railguard.md to the imports (above the auto-managed <!-- railguard:start/end --> block, so re-running install won't clobber it).
  • rules/common/railguard.md — expand from path-fence-only to the full picture: how to read allow/ask/block responses, the rules enforced here (no force-push, no sudo, no bulk git add, reset --hard/clean -f gating, path fence allowed/denied roots), the "never retry a blocked command" evasion rule, and cwd-drift behavior.
  • README.md — add railguard.md to the rules tree.

The global ~/.claude/CLAUDE.md symlinks to this file, so this is the live global config.

🤖 Generated with Claude Code

ulises-c and others added 2 commits June 15, 2026 11:35
rules/common/railguard.md existed but was never @-imported, so the
working-under-railguard guidance never reached the agent. Import it from
CLAUDE.md (above the auto-managed guardrails block) and expand it to
enumerate the rules Railguard enforces here — no force-push, no sudo, no
bulk git add, reset --hard/clean -f gating, the path fence and its
allowed/denied roots, the "never retry a blocked command" evasion rule,
and cwd-drift behavior. Add railguard.md to the README rules tree.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Railguard now anchors the path fence to the session project root
captured at SessionStart, so per-call cwd no longer re-anchors it.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@ulises-c
ulises-c merged commit 93c72c8 into main Jun 16, 2026
4 checks passed
@ulises-c
ulises-c deleted the docs/railguard-rules branch June 16, 2026 06:48
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