c_agri_trade/project_sdlc/00_process_control/decision_log.md

15 KiB
Raw Permalink Blame History

Decision Log

Field Value
Project Agriculture Trading Backoffice (ATB)
Process UP-AI v1.5
Last Updated 2026-10-11

Decisions

Project decisions made during requirements elicitation and bootstrap are recorded below. The active archetype and technology selections remain in tech-profile.yaml.

ID Date Stage Decision Rationale Alternatives Considered Impact Made By
DEC-001 2026-10-11 Stage 0B Adopt the accepted agricultural trading business direction and all 11 mockup areas as the v1 PRD draft scope; use the backup PRD for business requirements only and derive implementation technology from tech-profile.yaml. Stakeholder accepted the proposed business requirements and clarified that the backup comes from a different technology stack. Narrower mockup scope; adopting the backup PRD’s Frappe/MariaDB architecture. Creates a 52-feature business draft for review; numeric operating thresholds remain provisional, and the active FastAPI/React/PostgreSQL profile remains authoritative. Stakeholder
DEC-002 2026-10-11 Stage 0B Use administrator-provisioned tenant onboarding in v1, allow users to hold memberships in multiple tenants, and require explicit active-tenant selection with server-side membership/role verification on each request. Prevents unreviewed tenant creation and makes tenant context explicit while supporting staff or principals who work across firms. Public signup; single-tenant-only identity. Updates BRD-FR-042–BRD-FR-044; public tenant self-registration is out of v1 scope. Stakeholder
DEC-003 2026-10-11 Stage 0B Deny standing support access to tenant business data; require tenant-admin approval for ordinary case-specific access; allow a designated platform security administrator to use a maximum one-hour break-glass grant for urgent incidents, with reason, immediate alert, and tenant-admin notice within one business day. Enables necessary support while constraining and exposing privileged access. Persistent support access; no emergency path. Updates BRD-FR-046 and the support-access workflow and audit requirements. Stakeholder
DEC-004 2026-10-11 Stage 0B Target compliance with India’s Digital Personal Data Protection Act, 2023 and DPDP Rules applicable at production launch; revalidate the phased commencement and current official requirements before release. Stakeholder identified Indian DPDP compliance as a v1 product requirement. No DPDP target; treat statute as already fully commenced regardless of official phase-in. Updates BRD-NFR-009 and BRD-NFR-014; detailed SaaS roles and compliance workflows were subsequently accepted in DEC-005; remaining legal mapping and schedules stay open under AMB-006. Stakeholder
DEC-005 2026-10-11 Stage 0B Treat each tenant as Data Fiduciary for its tenant trading data and the ATB operator as Data Processor for that data, while the operator is Data Fiduciary for its own account, security, and service-operations data; include processing transparency/consent where applicable, Data Principal requests and grievances, breach coordination, retention/erasure/legal holds, and processor/subprocessor governance. Fits a multi-tenant SaaS service where firms determine trading-data purposes while the vendor operates the service; builds product support for DPDP obligations across both roles. Treat platform vendor as sole Data Fiduciary for every data category; exclude privacy operations from product scope. Adds BRD-FR-047–BRD-FR-051; specific lawful-basis mappings, retention values, statutory applicability, and legal validation remain subject to AMB-006. Stakeholder
DEC-006 2026-10-11 Stage 0B Set production availability to at least 99.9% monthly measured 24/7, RTO ≤4 hours, RPO ≤15 minutes, encrypted daily backups with point-in-time recovery retained 35 days, and quarterly restore exercises. Provides a measurable initial service continuity target with recoverability evidence. Targets to be decided later; tighter availability/recovery objectives. Updates BRD-NFR-011; hosting and architecture must demonstrate the targets before production. Stakeholder
DEC-007 2026-10-11 Stage 0B Use an initial production capacity-planning envelope of 50 tenant firms, up to 25 named users per tenant, and 250 concurrent active users service-wide; validate tenant reports with at least 50,000 ledger rows. Gives initial sizing and performance-test targets for architecture validation without imposing customer seat caps. Smaller pilot-only capacity; larger initial envelope. Updates BRD-NFR-004 and BRD-NFR-012; daily transaction volume, peak-hour write rate, and numeric per-tenant limits remain open under AMB-008. Stakeholder
DEC-008 2026-10-11 Stage 0B Use a provisional capacity-planning load of 200 core business documents per tenant per operating day with a 5× peak-hour burst across the approved 50-tenant/user envelope; treat this as a load-test scenario, not a customer usage cap. Provides an initial stress profile that can be validated and refined with pilot telemetry. No initial transaction profile; a contractual usage quota. Updates BRD-NFR-012; numeric per-tenant resource limits remain open under AMB-008. Stakeholder
DEC-009 2026-10-11 Stage 0B Do not impose fixed business-document quotas; observe tenant-level resource use, provide configurable early warnings near tested fair-share budgets, protect core transactions, and use backpressure/temporary throttling on expensive reports or bulk exports under contention. Set numeric fair-share budgets and alert thresholds from load-test evidence. Avoids arbitrary tenant business caps while protecting shared-service quality. Fixed document quota; no per-tenant controls; indiscriminate throttling of core transactions. Updates BRD-NFR-012; numerical budgets/thresholds remain an architecture/load-test item under AMB-008. Stakeholder
DEC-010 2026-10-11 Stage 0B Treat the §6.2 reference operating thresholds as configurable seed defaults, scoped by tenant and where applicable by commodity/contract; restrict changes through tenant roles and audit effective-dated changes. Keep numeric values provisional until trading-domain validation. Provides usable configuration starting points while avoiding unsupported universal rules. Hard-code reference thresholds globally; treat them as verified policy without domain review. Adds BRD-FR-052; numeric validation remains open under AMB-003. Stakeholder
DEC-011 2026-10-11 Stage 0B Treat lot traceability, prevention of QC-hold dispatch, and credit-block enforcement as hard invariants; measure current manual effort, gate-in-to-stock-posting time, and stock-reconciliation variance during a representative 30-day pilot and set improvement targets from observed baselines. Avoids inventing savings targets while retaining measurable operational outcomes and non-negotiable controls. Set unsupported percentage improvements before baseline evidence. Updates PRD §1.3; actual baseline/target values remain open under AMB-001. Stakeholder
DEC-012 2026-10-11 Stage 0B Use OWASP ASVS v5.0.0 Level 2 as the application-security verification target; map applicable requirements to evidence and document non-applicable requirements/exceptions with rationale and an accountable owner. The product handles sensitive business and personal data and significant B2B transactions; Level 2 is an appropriate baseline. No selected standard; Level 1 or Level 3 target. Updates BRD-NFR-009; verify against the regulatory/threat context before production. Stakeholder
DEC-013 2026-10-11 Stage 0B Scope v1 to India-first tenants; assess other jurisdictions before onboarding there. DPDP privacy controls cover every natural person whose data the tenant or platform processes, including contacts without app accounts. No intentional under-18 personal-data use case is planned for v1; any such use requires legal/privacy assessment and approved controls before baseline. Sets a clear initial legal operating boundary while covering business-contact data and avoiding an unevaluated child-data use case. International tenant onboarding without jurisdiction review; restrict rights support to account holders. Updates BRD-NFR-009, BRD-FR-047–BRD-FR-048, and §7.2; remaining legal mapping and retention questions stay under AMB-006. Stakeholder
DEC-014 2026-10-11 Stage 0B Require the responsible Data Fiduciary to approve retention schedules by personal-data category and purpose after legal/accounting review; preserve statutory minimums and legal holds, then support erasure when purposes and retention obligations end. Tenant firms own trading-data schedules; the ATB operator owns schedules for its own processing. Avoids one ungrounded global duration and aligns retention responsibility with the accepted SaaS role split. Fixed global retention duration; unrestricted retention; automatic erasure without checking legal obligations. Updates BRD-FR-050 and BRD-NFR-014; exact durations remain open under AMB-006 pending qualified review. Stakeholder
DEC-015 2026-10-11 Stage 0B Require each tenant Data Fiduciary to approve purpose, lawful basis, and notice for its trading-data processing; require the ATB operator to separately determine and document these for its own account, security, and service processing. Record consent and withdrawal evidence only where consent is selected as the applicable basis. Aligns privacy decisions with the accepted tenant/platform role split and avoids treating consent as a universal basis. Platform vendor decides all tenant purposes/bases; use consent as a default for every processing purpose. Updates BRD-FR-047; taxonomy, retention durations, and other legal obligations remain open under AMB-006. Stakeholder
DEC-016 2026-10-11 Stage 0B Classify information using internal sensitivity labels Public, Internal, Confidential, and Restricted, with personal-data and processing-purpose tags applied independently. Treat these as product handling labels, not statutory DPDP categories. Separates handling sensitivity from whether information is personal data or why it is processed. One exclusive classification axis conflating personal data, purpose, and sensitivity. Updates BRD-NFR-014; exact retention periods and additional legal obligations remain open under AMB-006. Stakeholder
DEC-017 2026-10-11 Stage 0B Require tenant legal/accounting reviewers to approve trading-data purposes and retention schedules; require the ATB operator’s qualified privacy/legal reviewer to approve platform processing, retention, and processor/subprocessor obligations. Record evidence; leave durations unfilled until approved. Assigns privacy/legal decisions to the party responsible for each processing context and avoids inventing legal retention periods. One global schedule; agent-selected periods without qualified review. Adds a review-evidence gate to AMB-006, BRD-FR-050, BRD-FR-051, and BRD-NFR-014; exact durations and other duties remain open. Stakeholder
DEC-018 2026-10-11 Stage 0B Require each tenant’s Partner/Managing Director or delegated authorized business owner to review and confirm or edit applicable reference thresholds before affected workflows go live. Keep only the affected risk-sensitive workflow disabled when a threshold is missing or unreviewed; record effective-dated policy versions and audit changes. Converts reference values into safe tenant-specific setup candidates without asserting universal domain correctness or blocking unrelated operations. Silently activate workflows on candidate values; block all tenant operations for any missing threshold. Updates BRD-FR-042 and BRD-FR-052; resolves the application approach for AMB-003. Stakeholder
DEC-019 2026-10-11 Stage 0B For a representative tenant, measure manual effort per transaction, gate-in-to-stock-posting time, and stock-reconciliation variance by godown/commodity for 30 operating days before rollout, then repeat for 30 operating days after rollout; set numeric improvement targets from the observed results. Keep lot traceability, QC dispatch prevention, and credit controls as hard product invariants. Establishes an evidence-based pre/post comparison without inventing improvement percentages before pilot data exists. Choose numeric efficiency targets before collecting baseline evidence; assess only post-rollout values. Updates PRD §1.3; the protocol is resolved while measured baselines and numeric targets remain open under AMB-001. Stakeholder
DEC-020 2026-10-11 Stage 0B / Stage 1 Proceed to Stage 1 extraction using the PRD as its requirements baseline under bounded working assumptions: pilot improvement targets, legal retention values/obligations, and numeric fair-share budgets remain unresolved and evidence-gated. Allows complete feature extraction while preserving unknowns as TBD and preventing assumptions from being misrepresented as verified outcomes. Defer all Stage 1 extraction until pilot, legal, and load-test evidence is available; invent interim numeric/legal values. Baselines the PRD for Stage 1 extraction only; records ASM-001–ASM-003; AMB-001, AMB-006, and AMB-008 remain open and production/release gates. Stakeholder direction
DEC-021 2026-10-11 Stage 7 Approve the Stage 7 candidate modular-monolith architecture and reference patterns in architecture_spike_report.md as the design baseline for Stage 8 and Stage 9: verified membership before tenant RLS context, PostgreSQL transaction-local tenant context/RLS, append-only mutation audit, and a transactional outbox with idempotent consumers. Retires the Stage 7 review gate so requirements derivation and detailed design can proceed from one approved architecture template. Defer Stage 8 for a runnable prototype; approve changes to the candidate patterns. Enables Stage 8 SRS derivation and Stage 9 full HLD/LLD fan-out. It is design approval only; runtime/load proof, exact Keycloak logout/session contract, hosting provider, document storage provider, and legal/load-test values remain pending. Human lead (user approval, 2026-10-11)
DEC-022 2026-10-11 Stage 10 preparation Use Docker Compose on developer workstations for PostgreSQL, Keycloak, and Valkey, using upstream release-tagged images and local-only port bindings. Stakeholder acknowledges the single-host failure risk if Compose is later considered for production; this decision does not select or baseline a production runtime. Gives developers a reproducible local dependency stack without host installation while keeping deployment-provider decisions open. Install dependencies on each host; select Compose as a production runtime now. Adds 05_implementation_workspace/compose.yaml and its development guide. API, worker, frontend, migrations, and test-runner services will be added when their real source/artifacts exist. Acknowledged production SPOF risk does not revise BRD-NFR-011 or establish its satisfaction; production runtime selection, any required CR impact disposition, and deployment evidence remain open. Stakeholder