docs(agents): sync module guidance files#159
Conversation
|
Warning Rate limit exceeded
Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 47 minutes and 4 seconds. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (3)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
Code Review
This pull request updates the AGENTS.md guidance files across the workspace to align with recent architectural changes and provide better context for AI tools. However, several critical issues were identified: the introduction of hardcoded absolute Windows paths for workspace roots and documentation links breaks portability for other developers and CI environments. Additionally, the feedback highlights inaccuracies in entry point definitions for shipper-cli, inconsistent terminology regarding crate names in internal layers, and contradictory documentation about the existence of AGENTS.md files.
| - Crate: shipper-cargo-failure | ||
| - Path: crates/shipper-cargo-failure | ||
| - Workspace root: repository root for the current checkout; use repo-relative paths from this file | ||
| - Workspace root: h:\Code\Rust\shipper |
There was a problem hiding this comment.
The workspace root is hardcoded to a local Windows path (h:\Code\Rust\shipper). This makes the documentation non-portable and will break for other users or in CI environments. It should remain generic, as it was previously.
| - Workspace root: h:\Code\Rust\shipper | |
| - Workspace root: repository root for the current checkout; use repo-relative paths from this file |
| - Prefer using existing fixtures and helpers rather than introducing inline test data. | ||
|
|
||
| For full workspace guidance, see [../../CLAUDE.md](../../CLAUDE.md). | ||
| For full workspace guidance, see [../../CLAUDE.md](H:\Code\Rust\shipper\CLAUDE.md). |
There was a problem hiding this comment.
| - Workspace root: repository root for the current checkout; use repo-relative paths from this file | ||
| - Primary entry: src/lib.rs (`run()`); `src/main.rs` is the thin binary shim | ||
| - Workspace root: h:\Code\Rust\shipper | ||
| - Primary entry: src/main.rs |
There was a problem hiding this comment.
In shipper-cli, the core logic resides in src/lib.rs (via the run() function), while src/main.rs is just a thin binary shim. For an AI agent, src/lib.rs is the more relevant primary entry point for understanding behavior.
| - Primary entry: src/main.rs | |
| - Primary entry: src/lib.rs (run()); src/main.rs is the thin binary shim |
| # Layer: `ops` (I/O primitives) | ||
|
|
||
| **Position in the architecture:** Layer 1 (bottom). The lowest layer of the `shipper-core` crate. | ||
| **Position in the architecture:** Layer 1 (bottom). The lowest layer of the `shipper` crate. |
There was a problem hiding this comment.
The documentation refers to the shipper crate, but this file is located within shipper-core. According to the project structure, shipper-core is the engine crate where these layers reside. Using the specific crate name is more accurate for agent guidance.
| **Position in the architecture:** Layer 1 (bottom). The lowest layer of the `shipper` crate. | |
| **Position in the architecture:** Layer 1 (bottom). The lowest layer of the shipper-core crate. |
| - Default visibility: `pub(crate)`. Only items truly part of `shipper-core`'s public API get `pub`. | ||
| - Each subfolder has its own local guidance files (`CLAUDE.md` and matching `AGENTS.md`) describing its single responsibility. | ||
| - Default visibility: `pub(crate)`. Only items truly part of `shipper`'s public API get `pub`. | ||
| - Each subfolder has its own `CLAUDE.md` describing its single responsibility. |
There was a problem hiding this comment.
The removal of AGENTS.md from this description is inconsistent with the fact that AGENTS.md files are being maintained and updated in the subfolders (e.g., ops/auth/AGENTS.md) within this same pull request.
| - Each subfolder has its own `CLAUDE.md` describing its single responsibility. | |
| - Each subfolder has its own local guidance files (CLAUDE.md and matching AGENTS.md) describing its single responsibility. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 7f6b474266
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| - Path: crates/shipper-cli | ||
| - Workspace root: repository root for the current checkout; use repo-relative paths from this file | ||
| - Primary entry: src/lib.rs (`run()`); `src/main.rs` is the thin binary shim | ||
| - Workspace root: h:\Code\Rust\shipper |
There was a problem hiding this comment.
Keep AGENTS paths repo-relative and portable
This hard-codes a machine-specific Windows path (h:\Code\Rust\shipper) into guidance that is consumed in Linux/CI and other developer environments, so path-based instructions now point outside the checkout. The same substitution appears across many crate-level AGENTS.md files (including their CLAUDE.md links), which makes navigation and command context unreliable for anyone not on that exact host layout.
Useful? React with 👍 / 👎.
| Re-exported at `shipper::cargo` (preserved backward compatibility with the old | ||
| `shipper-cargo` public surface). |
There was a problem hiding this comment.
Remove nonexistent
shipper::cargo re-export claim
This says callers should use shipper::cargo, but crates/shipper/src/lib.rs only re-exports config, engine, plan, state, store, and types; there is no cargo module on the shipper facade. Following this guidance causes unresolved-import failures and misdirects contributors about the public API surface.
Useful? React with 👍 / 👎.
| - Workspace root: repository root for the current checkout; use repo-relative paths from this file | ||
| - Primary entry: src/lib.rs (`run()`); `src/main.rs` is the thin binary shim | ||
| - Workspace root: h:\Code\Rust\shipper | ||
| - Primary entry: src/main.rs |
There was a problem hiding this comment.
Point shipper-cli primary entry to
src/lib.rs
Marking src/main.rs as the primary entry is inaccurate: that file is just a thin wrapper, while pub fn run() and the real CLI behavior live in src/lib.rs. This misroutes future changes to the shim instead of the actual command implementation and test-covered logic.
Useful? React with 👍 / 👎.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Summary
Notes
Testing