# AGENTS.md — `http-constant`
Concise engineering and iteration guidelines for `http-constant` (`constant/`).
Global workspace rules live in [`../.agents/skills/hyperlane/SKILL.md`](../.agents/skills/hyperlane/SKILL.md) and `~/.agents/skills/rust-standards/SKILL.md`.
## Scope & Module Boundaries
- **Role**: Canonical HTTP header names, methods, status phrases, versions, MIME types, and protocol symbols shared across the workspace.
- **Dependencies**: Zero external or workspace dependencies (`std` only). Do NOT add runtime logic, dynamic allocations, or third-party crates.
- **Layout**: Public `body`, `common`, `content_type_value`, `file_extension`, `header_key`, `header_value`, `http2`, `http_status`, `http_version`, `method`, `path`, `protocol`, `query`, `session`; tests in `tests/`.
## Core Iteration Invariants
- Keep all values as exact RFC-compliant `&str`, byte-slice, or `const` primitives with zero runtime initialization cost.
- Place any new wire literal reused across crates here instead of duplicating string literals in `type/`, `core/`, `request/`, or plugins.
- Preserve existing `pub` constant names and exact wire bytes; treat removals or value mutations as breaking changes requiring workspace-wide coordination.
- Order `pub` items strictly before `pub(crate)` and private items in every `const.rs`.
## Code & Documentation Standards
- Follow `rust-standards`: pure 9-keyword filenames (`mod.rs`, `const.rs`, `enum.rs`, `struct.rs`, `trait.rs`, `impl.rs`, `fn.rs`, `type.rs`, `static.rs`), 3-section `mod.rs` (zero comments), centralized imports in `src/lib.rs` and `tests/mod.rs`, zero `#[allow]`, strict `Cargo.toml` dependency order, and comment-free tests in `tests/`.
- Keep all code, comments, docs, and commits pure English. Update `constant/README.md` alongside any public module or API change.
## Local Verification
```sh
cargo run -p hyperlane-cli -- fmt --check
cargo clippy -p http-constant --all-features --all-targets -- -D warnings
cargo test -p http-constant --all-features
python3 ~/.agents/skills/rust-standards/scripts/staged_file_gate.py .
python3 ~/.agents/skills/rust-standards/scripts/verify_dep_order.py .
```