Skip to content

docs(rules): point agent runbooks at the real workspace layout - #1871

Merged
lavkushry merged 1 commit into
mainfrom
docs/rules-layout-conformance
Jul 14, 2026
Merged

docs(rules): point agent runbooks at the real workspace layout#1871
lavkushry merged 1 commit into
mainfrom
docs/rules-layout-conformance

Conversation

@lavkushry

Copy link
Copy Markdown
Owner

Summary

Architecture-conformance scan follow-up to #1870 (this commit was pushed to that branch minutes after its squash-merge, so it re-lands here — same race as #1861/#1869).

Eleven .claude/rules/ runbook/persona files still directed agents at a workspace layout that does not exist: a gateway/ crate directory (gateway/Cargo.toml, gateway/src/policy.rs, gateway/src/config.rs, gateway/policies.cedar, gateway/migrations/), and helm/aegisagent. Every command an agent copy-pasted from them failed.

Now aligned with reality:

  • cargo commands use the workspace-level invocations from CLAUDE.md (--workspace -- --test-threads=1, fmt --all, clippy --workspace --all-targets, -p gateway for run/release builds)
  • Cedar: root policies.cedar; policy engine tests at lib/policy/src/cedar.rs
  • bind-security grep targets src/; startup inspection points at src/src/main.rs
  • Helm lint targets helm/aegis-gateway
  • frontmatter globs updated (src/src/**/*.rs, lib/storage/**/*, lib/storage/migrations/**/*); duplicate glob deduped

Test plan

  • node scripts/validate-docs.mjs — 0 errors/warnings
  • grep -rn "gateway/" .claude/rules/ — no stale references remain (only helm/aegis-gateway, -p gateway, llm-gateway, mcp-gateway legitimates)
  • Docs-only change; no code affected

Conformance scan: eight rules/persona files still referenced a
gateway/ crate directory, gateway/policies.cedar, gateway/src/policy.rs
and helm/aegisagent — none exist. Commands now use the workspace-level
cargo invocations from CLAUDE.md, the root policies.cedar, the policy
engine's real home (lib/policy/src/cedar.rs), src/src/ for bind-audit
greps, and helm/aegis-gateway; frontmatter globs updated to match.
Copilot AI review requested due to automatic review settings July 14, 2026 05:13

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@coderabbitai

coderabbitai Bot commented Jul 14, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@lavkushry, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 5 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: f6a4de19-1261-4e7d-958b-d53231396249

📥 Commits

Reviewing files that changed from the base of the PR and between 5c7df63 and e08110e.

📒 Files selected for processing (11)
  • .claude/rules/auditor.md
  • .claude/rules/axum_patterns.md
  • .claude/rules/cedar_policy_authoring.md
  • .claude/rules/database_migration.md
  • .claude/rules/developer.md
  • .claude/rules/project_flow_ops.md
  • .claude/rules/sdk_testing.md
  • .claude/rules/security_scan.md
  • .claude/rules/skill_comply.md
  • .claude/rules/sqlite_usage.md
  • .claude/rules/tdd_workflow.md
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs/rules-layout-conformance

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@lavkushry
lavkushry merged commit ed41a7e into main Jul 14, 2026
32 of 33 checks passed

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request updates various Claude rule configuration files to reflect a repository restructuring, shifting paths from the old gateway/ directory to the new src/ and lib/ directories, and updating Cargo commands to run at the workspace level. The review feedback points out several redundant or duplicate glob patterns introduced in the rule files (such as developer.md, database_migration.md, sqlite_usage.md, axum_patterns.md, security_scan.md, and auditor.md) where broader wildcard patterns already encompass the more specific paths.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment on lines +3 to 4
- "src/**/*"
- "src/**/*"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

There is a duplicate glob entry for "src/**/*" on lines 3 and 4. This can be simplified by removing the duplicate.

Suggested change
- "src/**/*"
- "src/**/*"
- "src/**/*"

Comment on lines +3 to +5
- "lib/storage/**/*"
- "lib/storage/**/*.rs"
- "gateway/migrations/**/*"
- "lib/storage/migrations/**/*"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

The glob "lib/storage/**/*" recursively matches all files and directories under lib/storage/. Therefore, the more specific globs "lib/storage/**/*.rs" and "lib/storage/migrations/**/*" are redundant and can be removed.

Suggested change
- "lib/storage/**/*"
- "lib/storage/**/*.rs"
- "gateway/migrations/**/*"
- "lib/storage/migrations/**/*"
- "lib/storage/**/*"

Comment on lines +3 to +5
- "lib/storage/**/*"
- "lib/storage/**/*.rs"
- "gateway/migrations/**/*"
- "lib/storage/migrations/**/*"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

The glob "lib/storage/**/*" recursively matches all files and directories under lib/storage/. Therefore, the more specific globs "lib/storage/**/*.rs" and "lib/storage/migrations/**/*" are redundant and can be removed.

Suggested change
- "lib/storage/**/*"
- "lib/storage/**/*.rs"
- "gateway/migrations/**/*"
- "lib/storage/migrations/**/*"
- "lib/storage/**/*"

Comment on lines +3 to 4
- "src/src/**/*.rs"
- "src/**/*.rs"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

The glob "src/**/*.rs" recursively matches all .rs files under src/, which includes all files matched by "src/src/**/*.rs". Therefore, "src/src/**/*.rs" is redundant and can be removed.

Suggested change
- "src/src/**/*.rs"
- "src/**/*.rs"
- "src/**/*.rs"

Comment on lines +3 to 4
- "src/src/**/*.rs"
- "src/**/*.rs"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

The glob "src/**/*.rs" recursively matches all .rs files under src/, which includes all files matched by "src/src/**/*.rs". Therefore, "src/src/**/*.rs" is redundant and can be removed.

Suggested change
- "src/src/**/*.rs"
- "src/**/*.rs"
- "src/**/*.rs"

Comment thread .claude/rules/auditor.md
Comment on lines +3 to 6
- "lib/policy/src/cedar.rs"
- "policies.cedar"
- "SECURITY.md"
- "lib/policy/**/*"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

The glob "lib/policy/**/*" recursively matches all files under lib/policy/, which includes "lib/policy/src/cedar.rs". Therefore, "lib/policy/src/cedar.rs" is redundant and can be removed.

Suggested change
- "lib/policy/src/cedar.rs"
- "policies.cedar"
- "SECURITY.md"
- "lib/policy/**/*"
- "policies.cedar"
- "SECURITY.md"
- "lib/policy/**/*"

@lavkushry
lavkushry deleted the docs/rules-layout-conformance branch July 14, 2026 05:14
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.

2 participants