clawdie-ai/doc/CODING-RULES.md
Operator & Codex 8777f0f583 Remove Qodo repo surfaces and embeddings
---
Build: pass | Tests: pass — 2376 passed (712 files)
2026-05-11 00:58:54 +02:00

1.2 KiB

Coding Rules (Local Source of Truth)

This repo uses a local ruleset. The human-readable policy lives here, and the machine-readable policy lives in .agent/rules.yaml.

Goals

  • Keep rules visible in git history.
  • Avoid external dependencies for enforcement.
  • Support future automation without blocking humans today.

Rule Levels

  • error: must comply
  • warning: should comply
  • recommendation: consider when relevant

Scope

Rules apply to code and docs in this repo unless a rule explicitly limits scope.

Core Rules

  1. No hardcoded secrets (error)

    • Never commit API keys, tokens, or passwords.
    • Use environment variables and documented config files.
  2. Deterministic tooling (warning)

    • Prefer explicit versions and repeatable steps.
    • Avoid hidden side effects in scripts.
  3. Readable operations (warning)

    • Operational docs must be actionable and concise.
    • Avoid ambiguous instructions.
  4. Minimal coupling (recommendation)

    • Prefer small, composable modules over hidden global state.

Enforcement

Automation should read .agent/rules.yaml. This document is the rationale and human-facing source of truth.