Skip to content

Agentic-engineering scaffold: lints, fmt, supply-chain, CI & agent docs - #3

Merged
hellno merged 1 commit into
mainfrom
hellno/rust-agentic-helpers
Jun 7, 2026
Merged

Agentic-engineering scaffold: lints, fmt, supply-chain, CI & agent docs#3
hellno merged 1 commit into
mainfrom
hellno/rust-agentic-helpers

Conversation

@hellno

@hellno hellno commented Jun 7, 2026

Copy link
Copy Markdown
Owner

Adds an agentic-engineering guardrail layer adapted from deckard PR#8 for the single-crate 0BSD Deck starter, so coding agents (and humans) get the same rules CI enforces at write time and can self-correct without a CI round-trip. Moves the lint policy into the manifest ([lints.rust]/[lints.clippy]todo/dbg!/unused_must_use/unsafe_code denied) and adds clippy.toml, a stable-keys rustfmt.toml, and a fully-seeded deny.toml supply-chain gate (advisories/bans/licenses/sources all green locally). Hardens CI with --locked everywhere, cargo fmt --check, clippy on the default feature config (CI only linted --features tray before), cargo test (the 6 command_palette tests never ran in CI), a non-blocking cargo-deny job, and concurrency-cancel. Adds CLAUDE.md + AGENTS.md (with a Definition of Done), the docs/AGENTIC-ENGINEERING.md rationale, and OODA-loop closers — just ci/just fix, .vscode/.zed clippy-on-save (editor == CI), .editorconfig, and --message-format guidance — while deliberately omitting deckard's wallet-specific core hardening. Verified green (fmt, clippy on both configs, 6/6 tests, cargo deny check); note that deny.toml documents GPL-3.0 Zed crates (zlog/ztracing) linked transitively via gpui, scoped behind a narrow license exception for review.

…gent docs

Adapt deckard PR#8's general-purpose Rust guardrails to the single-crate 0BSD
Deck starter and extend them to close a coding agent's OODA loop:

- Manifest lint policy ([lints.rust]/[lints.clippy]: deny todo/dbg!/unused_must_use/
  unsafe_code) so rust-analyzer + cargo check show the exact rules CI enforces.
- clippy.toml, rustfmt.toml (deterministic, stable-keys-only), and a fully-seeded
  deny.toml supply-chain gate (advisories/bans/licenses/sources all green).
- CI hardening: --locked everywhere, fmt --check, clippy on the default config too,
  cargo test (CI never ran the 6 command_palette tests), non-blocking cargo-deny job,
  concurrency-cancel.
- CLAUDE.md + AGENTS.md with a Definition of Done, and docs/AGENTIC-ENGINEERING.md
  rationale; wallet-specific deckard hardening deliberately omitted.
- OODA closers: `just ci`/`just fix`, .vscode/.zed clippy-on-save (editor==CI),
  .editorconfig, and --message-format guidance.

Verified: fmt clean, clippy green on both feature configs, 6/6 tests, cargo deny green.
@hellno
hellno merged commit 280e1f7 into main Jun 7, 2026
3 checks passed
@hellno
hellno deleted the hellno/rust-agentic-helpers branch June 11, 2026 11:08
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.

1 participant