Treasury & Bank Transfer Management System — سامانه مدیریت خزانهداری و حوالههای بانکی
phase-1-foundation
ci/public-windows-bridge-probe-20261017
ci/windows-dispatch-bootstrap-20261016
ci/windows-dual-app-lab-20261016
dev/v7-production-failclosed-20261021
feature/reconciliation-guard-20261013
main
phase-1-foundation
phase-1-implementation
phase-2-treasury-core
phase-3-banking-reconciliation
phase-4-operations-enterprise-ux
phase-5-hardening-release
phase-6-production-platform
phase-7-production-infrastructure-bank-golive
phase-7-sql-readonly-ux-20261015
transfer-exe-to-drive-20261006
TreasuryFlow Repository Operating Rules
Product class
TreasuryFlow handles high-risk financial workflows. Correctness, traceability and safe failure take precedence over convenience.
Source of truth
docs/specs/PHASE_1_FOUNDATION_SPEC.mdfor current foundation invariants.docs/ROADMAP.mdfor phase boundaries.- ADRs under
docs/adr/for architectural decisions. - Tests for executable behavior.
Engineering rules
- TypeScript strict mode; avoid
anyat financial/domain boundaries. - Money is integer IRR at the domain/storage boundary; never floating-point money.
- State transitions are explicit domain operations; UI may not write arbitrary status values.
- Authorization is enforced server-side for every sensitive action.
- No bank submission without an idempotency identity.
- No automatic retry after ambiguous bank outcome.
- No secret, credential, token or private banking material in Git, logs, fixtures or screenshots.
- Migrations are versioned and reviewed.
- External integrations sit behind typed adapters and contract tests.
- Iran-specific bank limits/cutoffs/capabilities are configuration with effective dates.
Delivery rules
- Work on a feature/foundation branch; use PR review before merging to
mainonce CI exists. - Use TDD for domain rules and bug fixes.
- Every completed phase updates project state/handoff documentation.
- Do not claim production readiness from mocks or simulated bank responses.
- Live-bank activation, public production release, destructive data actions and sensitive access changes require explicit release authorization.
Required checks before merge
- format/lint
- typecheck
- unit/integration tests
- build
- security-relevant negative tests for changed financial behavior
Documentation language
Code identifiers and technical contracts are English. User-facing product copy is Persian-first. Architectural documents may be English or Persian but must use stable domain terms.