Skip to content

Commit cc7a267

Browse files
docs: Align verification guidance to prefer nix flake check
Replace broad direct Cargo verification guidance with repository-level `nix flake check` across AGENTS.md, durable context files, and bash-policy examples. Preserves `cargo fmt` for explicit autofix formatting flows. Co-authored-by: SCE <sce@crocoder.dev>
1 parent 50648e0 commit cc7a267

18 files changed

Lines changed: 127 additions & 49 deletions

.sce/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"--check"
2828
]
2929
},
30-
"message": "This repository prefers `nix flake check` over direct `cargo fmt --check`. Run `nix flake check` instead."
30+
"message": "This repository prefers `nix flake check` over direct `cargo fmt --check`. Run `nix flake check` for verification; keep `cargo fmt` for autofix-only formatting."
3131
}
3232
]
3333
}

AGENTS.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,13 @@ Run these through Nix from repo root unless noted otherwise.
5050
- Run CLI: `nix develop -c sh -c 'cd cli && cargo run -- --help'`
5151
- Build packaged CLI output: `nix build .#default`
5252
- Run packaged CLI app: `nix run .#sce -- --help`
53-
- Run all CLI tests: `nix develop -c sh -c 'cd cli && cargo test'`
54-
- Run a single test by exact name: `nix develop -c sh -c 'cd cli && cargo test parser_routes_mcp -- --exact'`
55-
- Run tests in one module/file pattern: `nix develop -c sh -c 'cd cli && cargo test setup'`
53+
- Preferred repo-level verification: `nix flake check`
54+
- Run a single Rust test by exact name when explicitly needed: `nix develop -c sh -c 'cd cli && cargo test parser_routes_mcp -- --exact'`
55+
- Run Rust tests in one module/file pattern when explicitly needed: `nix develop -c sh -c 'cd cli && cargo test setup'`
5656
- Run ignored? none were found; do not assume ignored-test flows exist.
57-
- Format check: `nix develop -c sh -c 'cd cli && cargo fmt --check'`
57+
- Rust format verification is covered by `nix flake check`
5858
- Auto-format: `nix develop -c sh -c 'cd cli && cargo fmt'`
59-
- Lint: `nix develop -c sh -c 'cd cli && cargo clippy --all-targets --all-features'`
59+
- Rust lint verification is covered by `nix flake check`
6060

6161
### Bun config/plugin commands
6262

context/cli/placeholder-foundation.md

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

context/glossary.md

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

context/patterns.md

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

context/plans/nix-flake-check-verification-guidance.md

Lines changed: 99 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

context/sce/agent-trace-commit-msg-coauthor-policy.md

Lines changed: 1 addition & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

context/sce/agent-trace-core-schema-migrations.md

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

context/sce/agent-trace-hosted-event-intake-orchestration.md

Lines changed: 1 addition & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

context/sce/agent-trace-payload-builder-validation.md

Lines changed: 1 addition & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)