Skip to content
Edit this page

008: AI Usage Policy

  • Type:
  • Status: Accepted
  • Date: 2026-12-02
  • Author(s) / Deciders: João V. Farias
  • Question: Under what conditions may generative AI tools and coding agents contribute to this repository?

Context

Generative AI tools and coding agents help draft tests, documentation, and structured boilerplate. Without human review, automated patches can ship unverified claims, bloated prose, or subtle behavioral regressions. Clear disclosure and review rules maintain consistent repository quality.

Requirements and restrictions

Three contributor rules govern all AI-assisted submissions:

  • Every commit or pull request MUST have a human contributor who reads, tests, and accepts responsibility for every submitted line.
  • AI assistance and model identity MUST be disclosed in commit trailers or pull request descriptions.
  • Generated code and Markdown edits MUST pass the same formatting, linting, testing, and writing style checks as human-authored work.

Alternatives

Prohibiting AI tools entirely sacrifices speed during structured prototyping and large test-suite expansion. Permitting undisclosed or unreviewed AI edits shifts verification work onto maintainers and increases defect risk.

Decision

Permit generative AI assistance when contributions satisfy five requirements:

  • Disclose AI usage in pull request descriptions or Assisted-by: commit trailers.
  • Name the assistant tool and model or provider when known.
  • Run coding agents under active human review rather than submitting uninspected changes.
  • Verify outputs directly instead of acting as a meat-proxy.
  • Pass every local CI check (cargo fmt --all -- --check, cargo clippy --all-targets -- -D warnings, cargo test --all-targets, and zensical build --clean) before pushing.

Consequences

Positives

Maintainers know every contributor has inspected and tested their patch regardless of how it was drafted. Agents follow explicit architectural and prose rules already documented in the repository.

Negatives

Contributors spend explicit review time pruning AI filler and verifying generated code before merging.