Engineering Governance & Code of Conduct

Target: Craft Engine Framework & Ecosystem Projects (e.g., Softpax) Status: Active & Mandatory


1. Core Philosophy & Engineering Principles

Every contributor (human or AI agent) must adhere to these foundational principles:

  1. Explicit Over Implicit (Zen of Python / PEP 20): Magic behaviors, hidden global states, and undocumented monkey-patching are strictly forbidden. Code must be readable, explicit, and self-documenting.
  2. Single Responsibility Principle (SRP): Every class, module, and function must have exactly one reason to change.
  3. Convention Over Configuration (Craft Engine Standard): Strictly adhere to Craft Engine's three-tier hierarchy: Core EngineBusiness ModulesCapability Plugins.
  4. Zero Technical Debt Acceptance: Temporary hacks, commented-out dead code, and Portunglês ("salada de frutas") are treated as critical build failures.

2. Code Quality Standards & Hard Thresholds

Any contribution violating these thresholds will be automatically rejected:

File & Function Limits

Structural Rules


3. Linguistic Governance & Financial Standards

English-Only Source Code

Brazilian Financial & Business Terminology

Standardize all Brazilian financial terms into official domain English:


4. Database-Driven Localization (i18n) Governance

  1. Zero Hardcoded Strings: No customer-facing error messages, UI labels, or notification texts may be hardcoded in Python files, templates, or flat static files (JSON/YAML/PO).
  2. Database Storage & Hierarchy:
    • en (English): System source and canonical translation key namespace.
    • pt-BR (Brazilian Portuguese): Default runtime locale for end users and tenants.
    • es (Spanish): Active alternative locale.
    • Fallback Rule: Tenant Overridept-BRen (Master Source).

5. Technology Stack Boundaries


6. Definition of Done (DoD) & Pull Request Checklist

A task, refactoring, or feature is only complete when all items pass: