Skip to main content

Engineering Execution Rules

Status: LOCKED
Charter Source: CLARITY_ENTERPRISE_ENGINEERING_CHARTER.md

1. Decimal Enforcement Policy

  • All math must use Decimal (Python) or NUMERIC (BigQuery).
  • No floats in computation.
  • No floats in storage.
Explicit carve-out:
Decimal → float conversion allowed only for JSON serialization in API responses. Internal computation must remain Decimal-only.

2. Ledger-First Invariant

  • No Stage1 or Stage3 mutation.
  • All new runs create new run_id.
  • No destructive updates.
  • Corrections = new run.

3. No Tenant Hardcoding

  • No default tenant_id logic.
  • No CBS-specific shortcuts.
  • All behavior template/config driven.

4. Additional Rules

  • No label joins in payout logic.
  • No dashboard queries against ingestion tables.
  • Immutable run model.
  • Mandatory red-flag scan before each phase.
  • Mainline-only discipline.
  • No PHI in logs.
  • Canonical hashing only.
  • Minimal deterministic diffs.
  • No implicit config inference.
  • No mutation during RUNNING state.