Skip to content

Add guardrails for example-only documentation data#704

Merged
ChristianPavilonis merged 3 commits into
mainfrom
claude-md-gaurdrails
May 26, 2026
Merged

Add guardrails for example-only documentation data#704
ChristianPavilonis merged 3 commits into
mainfrom
claude-md-gaurdrails

Conversation

@ChristianPavilonis
Copy link
Copy Markdown
Collaborator

Summary

  • Add CLAUDE.md guardrails requiring comments, tests, docs, examples, and similar materials to use only example or fictional information.
  • Expand the existing commit restrictions to cover potentially sensitive real-world information in non-runtime artifacts and configuration files.

Changes

File Change
CLAUDE.md Adds example-only guidance for comments, tests, docs, and examples.
CLAUDE.md Expands the “What NOT to Do” guidance to prohibit committing potentially sensitive real-world information.

Closes

Closes #703

Test plan

  • cargo test --workspace
  • cargo clippy --workspace --all-targets --all-features -- -D warnings
  • cargo fmt --all -- --check
  • JS tests: cd crates/js/lib && npx vitest run
  • JS format: cd crates/js/lib && npm run format
  • Docs format: cd docs && npm run format
  • WASM build: cargo build --package trusted-server-adapter-fastly --release --target wasm32-wasip1
  • Manual testing via fastly compute serve
  • Other: Docs-only change; reviewed CLAUDE.md diff.

Checklist

  • Changes follow CLAUDE.md conventions
  • No unwrap() in production code — use expect("should ...")
  • Uses tracing macros (not println!)
  • New code has tests
  • No secrets or credentials committed

Comment thread CLAUDE.md Outdated
Copy link
Copy Markdown
Collaborator

@aram356 aram356 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Looks good

@ChristianPavilonis ChristianPavilonis merged commit 9e4c8e4 into main May 26, 2026
13 checks passed
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.

Add CLAUDE.md guardrails for example-only documentation data

2 participants