Module Development Checklist & Scope Plan
Per-module build checklists and scope plan for the development agents to plan, track and verify each module to "done" before the build kicks off.
How to Use This Document
Each module has a checklist of build items grouped by concern (data, logic, API, config, events, security, tests, observability, docs). Development agents tick items (☐ → ☑) and set status as work progresses. A module is Done only when every item is complete and its exit criteria are met. Items trace to the SRS requirements, DB schema, API spec and test suite.
Global Definition of Done
- Code reviewed & merged; trunk green; feature behind flag if incomplete.
- Unit + integration + contract tests pass; coverage ≥ 80%; mapped test-suite IDs executed.
- DB changes shipped as versioned migrations; no manual DDL.
- API matches OpenAPI contract; validation & error model conform.
- Security: scopes/RBAC enforced, inputs validated, secrets externalised, audit emitted.
- Idempotency on value mutations; events emitted via outbox.
- Observability: structured logs, metrics, traces, health endpoint.
- LLD & API examples updated; runbook entry added.
- Acceptance criteria demonstrated; maker-checker verified for config-affecting items.
Development Kick-off Readiness
| Done? | Readiness item | Owner |
|---|---|---|
| ☐ | Repos created per service (see app structure); branch & CI templates in place. | Cheggout Eng |
| ☐ | Environments provisioned (DEV/SIT) via IaC; base images & secrets store ready. | Cheggout/the Bank IT |
| ☐ | Interface contracts agreed: CBS/switch feeds, channel APIs, notification gateways. | the Bank IT |
| ☐ | OpenAPI contract baselined; codegen wired. | Cheggout Eng |
| ☐ | DB schema migrations (CR-DBS-013) applied to DEV; seed/reference data loaded. | Cheggout Eng |
| ☐ | Synthetic test data & transaction generator available. | QA |
| ☐ | Security design authority review booked; SAST/secret-scan in pipeline. | the Bank Sec |
| ☐ | Backlog imported; stories mapped to FRs & test IDs; module owners assigned. | Cheggout PM |
Scope Planning Overview
Module map with dependencies, requirement & build references, target phase and status. Build in dependency order; cross-cutting items run throughout.
Per-Module Build Checklists
One checklist per module. Tick each item and update status; meet the exit criteria to mark the module Done.
Capability Coverage Checklist
Cross-module capabilities that must be explicitly built and demonstrated. Each maps to schema (CR-DBS-013) and SRS requirements.
| Done? | Capability | What to build | Module |
|---|---|---|---|
| ☐ | Accrual-engine types | Base, accelerated (MCC/merchant/channel), tier-multiplier & campaign-bonus earn; versioned rules; caps/exclusions/rounding. | M1 |
| ☐ | Campaign-engine types | All 11 campaign types (spend_threshold, milestone_ladder, first_txn, category, dormant_reactivation, festival, welcome, anniversary, birthday, surprise_delight, referral); segments; simulation & budget auto-pause. | M2 |
| ☐ | Signature-verified redemption | Signed request (request_signature/signature_alg/signing_key_id/nonce/signed_at) verified pre-debit; single-use nonce anti-replay; signed partner fulfilment (signature_verified). | M4 |
| ☐ | MIS / reporting | report_definition + report_run; liability, reconciliation, settlement, campaign-performance, redemption, fulfilment, expiry/reversal, budget & audit reports; scheduled/on-demand; hashed artefacts. | M8 |
| ☐ | Logs / audit (SIEM) | Immutable partitioned audit_log; api_access_log & integration_log feeds with trace/correlation ids and payload hashes; partition maintenance & archival. | M8 |
| ☐ | Admin features | RBAC + SSO; consoles for every config entity; maker-checker with SoD; budget & config-param versioning. | M7 |
| ☐ | Integration readiness — communication | SMS/Email/Push/WhatsApp/In-App gateway adapters; consent & quiet-hours; delivery webhooks; calls logged in integration_log. | M6 |
| ☐ | Integration readiness — rewards | Catalogue/voucher/gateway partner adapters; signed fulfilment requests; retry/backoff & compensation; partner responses verified & logged. | M4, M12 |
Cross-Cutting Checklist (applies to all modules)
| Done? | Item | Reference |
|---|---|---|
| ☐ | SSO/OAuth2 + RBAC scopes enforced on every endpoint & admin action. | CR-SEC-009 |
| ☐ | Maker-checker on all financially material config changes; self-approval blocked. | CR-CFG-008 |
| ☐ | Idempotency keys on all value-mutating operations. | HLD ADR-03 |
| ☐ | Signature verification & single-use nonce enforced before value-mutating redemptions; partner responses verified. | CR-SEC-009 · CR-DBS-013 |
| ☐ | Transactional outbox + event bus wired; events documented. | ARCH §Events |
| ☐ | Immutable audit log emitted for config & financial events. | CR-SEC-009 |
| ☐ | Tokenised identifiers; PII masked in logs/exports; data residency honoured. | CR-SEC-009 |
| ☐ | Observability: logs/metrics/traces, health, SLO dashboards & alerts. | ARCH §Observability |
| ☐ | Performance targets validated (throughput, P95 latency) under prod-like load. | NFR-01..03 |
| ☐ | CI/CD gates: SAST, image scan, contract & migration validation, smoke tests. | CR-APP-007 |
| ☐ | DR: backups, replica, failover runbook tested (RPO ≤15m / RTO ≤2h). | ARCH §HA/DR |