From d83226ce6e68c12f1287c0b9b0d9e4dbd7919f18 Mon Sep 17 00:00:00 2001 From: Prashant Shendre Date: Sun, 11 Oct 2026 15:21:20 +0530 Subject: [PATCH] couple of ambiguities left open and proceeding with baselining requirements --- 01_BRD/PRD_Specification.md | 14 ++- .../00_process_control/ambiguity_register.md | 2 +- .../assumptions_register.md | 5 +- .../checkpoint-007-atb-brd-extraction.md | 23 ++++ .../checkpoints/checkpoint_index.md | 2 + .../00_process_control/decision_log.md | 1 + .../00_process_control/master_context.md | 6 +- .../01_source_inventories/brd_inventory.md | 100 ++++++++++++++++-- ...11T074829Z-session-greenfield-bootstrap.md | 9 ++ 9 files changed, 144 insertions(+), 18 deletions(-) create mode 100644 04_generated_documentation/00_process_control/checkpoints/checkpoint-007-atb-brd-extraction.md diff --git a/01_BRD/PRD_Specification.md b/01_BRD/PRD_Specification.md index 8c69dcd..16b60ae 100644 --- a/01_BRD/PRD_Specification.md +++ b/01_BRD/PRD_Specification.md @@ -7,7 +7,7 @@ | **Version** | 1.0.0 | | **Author** | Stakeholder elicitation with `up-requirements-elicit` | | **Process** | UP-AI v1.5 | -| **Status** | Draft — business direction accepted; candidate policies pending domain review and baseline approval | +| **Status** | Baselined for Stage 1 extraction with explicit evidence-gated assumptions; open evidence items remain production/release gates | | **Last Updated** | 2026-10-11 | --- @@ -691,7 +691,17 @@ The stakeholder accepted the reference values below as configurable seed candida Coverage budgets, test dimensions, and test levels are governed by the active technology profile and UP-AI process rather than the backup PRD. -### 6.3 Multi-Tenant Platform Security and Operations References +### 6.3 Bounded Assumptions for Stage 1 and Evidence Gates + +The following assumptions allow business requirements to be inventoried without fabricating unresolved numeric or legal outcomes. They are valid for Stage 1 extraction and early elaboration only; they do not close the linked ambiguities or waive production/release evidence gates. + +- **ASM-001 — Efficiency targets remain evidence-based:** Until the accepted 30-operating-day pre-rollout and post-rollout pilot measurements exist, no numeric efficiency-improvement target is assumed. Requirements extraction and early design may proceed; the system must preserve the ability to measure the agreed metrics. Resolve `AMB-001` before final production acceptance. +- **ASM-002 — Retention durations remain unassigned:** No category/purpose retention duration or additional legal obligation is inferred. The system must support configurable schedules and holds under `BRD-FR-050` and `BRD-NFR-014`; responsible qualified reviewers must approve actual schedules and legal mappings before production. Resolve `AMB-006` before release. +- **ASM-003 — Numeric fair-share budgets remain TBD:** The accepted capacity envelope and load-test scenario are planning inputs, not contractual quotas. No numeric per-tenant budget or alert threshold is assumed until architecture/load-test evidence exists; observability and configurable budget controls remain required. Resolve `AMB-008` before production capacity acceptance. + +These assumptions do not assert legal compliance, determine a tenant's operating policy, or permit production release without the stated evidence. + +### 6.4 Multi-Tenant Platform Security and Operations References - [OWASP Application Security Verification Standard (ASVS)](https://github.com/OWASP/ASVS) — candidate source for selecting testable application-security controls and verification rigor. - [PostgreSQL Row Security Policies](https://www.postgresql.org/docs/current/ddl-rowsecurity.html) — behavior and privileged-role considerations for the configured row-level security model. diff --git a/04_generated_documentation/00_process_control/ambiguity_register.md b/04_generated_documentation/00_process_control/ambiguity_register.md index 26eb874..8f6897d 100644 --- a/04_generated_documentation/00_process_control/ambiguity_register.md +++ b/04_generated_documentation/00_process_control/ambiguity_register.md @@ -15,6 +15,6 @@ Open requirements questions are tracked here (`AMB-xxx`). Unresolved business ru | AMB-003 | 2026-10-11 | Stage 0B | How should the proposed numeric operating values from the reference be applied when their appropriateness varies by tenant, commodity, or contract? | Stakeholder accepted the business scope and all 11 mockup areas, and accepted the reference values as configurable tenant-scoped seed candidates. | Resolved: the values are not universal defaults. Each tenant’s Partner/Managing Director or delegated authorized business owner must confirm or edit applicable thresholds before affected risk-sensitive workflows are enabled; only those affected workflows remain blocked for missing/unreviewed values. Policies are effective-dated and changes audited per `BRD-FR-052`. | Resolved | Stakeholder, 2026-10-11 | | AMB-004 | 2026-10-11 | Stage 0B | How are tenants onboarded and suspended, and may one user hold memberships in multiple tenant firms? | Tenant lifecycle and membership management affect identity and administration design. | Resolved: v1 has no public self-service signup; an authorized platform administrator provisions and activates tenants. A person may belong to multiple tenants and explicitly selects the active tenant after sign-in; server-side membership and role checks apply on every request. Captured in `BRD-FR-042`–`BRD-FR-044`. | Resolved | Stakeholder, 2026-10-11 | | AMB-005 | 2026-10-11 | Stage 0B | Who may approve exceptional cross-tenant support access, and what tenant notification/review is required? | Support access to tenant business data must be exceptional, attributable, and reviewable. | Resolved: no standing support access; ordinary case-specific access requires Tenant Administrator approval and is time-limited. A designated platform security administrator may grant break-glass access for at most one hour during an urgent incident, recording the reason, generating an immediate audit alert, and notifying the tenant administrator within one business day. Captured in `BRD-FR-046`. | Resolved | Stakeholder, 2026-10-11 | -| AMB-006 | 2026-10-11 | Stage 0B | What actual retention durations and additional India-specific sectoral/contractual obligations apply to v1? | The stakeholder accepted the SaaS privacy roles, India-first scope, all-natural-person coverage, four internal sensitivity labels with separate personal-data/purpose tags, category/purpose retention governance, OWASP ASVS v5.0.0 Level 2, and the review path: tenant legal/accounting reviewers approve trading-data purposes/retention; the ATB operator’s qualified privacy/legal reviewer approves platform processing, retention, and processor obligations. Exact durations and other legal/contractual duties remain unconfirmed. The Act/Rules have phased commencement. | PRD captures accepted policy in `BRD-FR-047`–`BRD-FR-051` and `BRD-NFR-009`/`BRD-NFR-014`. Record qualified review evidence for actual durations and other obligations before baseline; revalidate current requirements before production. | Open | — | +| AMB-006 | 2026-10-11 | Stage 0B | What actual retention durations and additional India-specific sectoral/contractual obligations apply to v1? | The stakeholder accepted the SaaS privacy roles, India-first scope, all-natural-person coverage, four internal sensitivity labels with separate personal-data/purpose tags, category/purpose retention governance, OWASP ASVS v5.0.0 Level 2, and the review path: tenant legal/accounting reviewers approve trading-data purposes/retention; the ATB operator’s qualified privacy/legal reviewer approves platform processing, retention, and processor obligations. Exact durations and other legal/contractual duties remain unconfirmed. The Act/Rules have phased commencement. | PRD captures accepted policy in `BRD-FR-047`–`BRD-FR-051` and `BRD-NFR-009`/`BRD-NFR-014`. Under `ASM-002`, extraction and early design proceed without assuming durations or obligations; record qualified review evidence and revalidate current requirements before production release. | Open | — | | AMB-007 | 2026-10-11 | Stage 0B | What production availability, backup retention, RTO, and RPO targets are acceptable? | These targets determine hosting, data protection, recovery design, and support commitments. | Resolved: 99.9% monthly availability measured 24/7; RTO ≤4 hours; RPO ≤15 minutes; encrypted daily backups with point-in-time recovery and 35-day retention; quarterly restore exercises. Captured in `BRD-NFR-011`. | Resolved | Stakeholder, 2026-10-11 | | AMB-008 | 2026-10-11 | Stage 0B | What tenant count, active-user count, transaction volume, peak concurrency, and per-tenant limits must the platform support? | Stakeholder approved an initial envelope of 50 tenant firms, 25 named users per tenant, and 250 concurrent active users service-wide. The approved provisional planning scenario is 200 core business documents per tenant per operating day with a 5× peak-hour burst. Stakeholder accepted no fixed business-document quota; observe per-tenant use, provide configurable early warnings near the tested fair-share budget, and protect core transactions while using backpressure/temporary throttling for expensive reports or bulk exports under contention. Numeric fair-share budgets and alert thresholds still require architecture/load-test evidence and later pilot refinement. | Partially resolved: approved 50 tenant firms, up to 25 named users per tenant, 250 concurrent active users service-wide, and 50,000 ledger rows per tenant for report validation. The 200 documents/tenant/operating day and 5× peak-hour burst scenario has been accepted for load testing; set numeric fair-share budgets and alert thresholds from architecture/load-test evidence and refine them with pilot telemetry; see `BRD-NFR-004` and `BRD-NFR-012`. | Open | — | diff --git a/04_generated_documentation/00_process_control/assumptions_register.md b/04_generated_documentation/00_process_control/assumptions_register.md index 8ae6a97..b613189 100644 --- a/04_generated_documentation/00_process_control/assumptions_register.md +++ b/04_generated_documentation/00_process_control/assumptions_register.md @@ -8,7 +8,10 @@ ## Active Assumptions -No unapproved business assumptions are being used to complete the PRD draft. Candidate numeric policies are listed in the ambiguity register and marked provisional. Technical choices in `tech-profile.yaml` are known configuration facts, not assumptions. +Three bounded working assumptions are accepted for Stage 1 extraction and early elaboration only. They preserve unknown values as TBD and retain the corresponding ambiguity and production/release evidence gates. Technical choices in `tech-profile.yaml` are configuration facts, not assumptions. | ID | Date | Stage | Assumption | Basis | Risk Level | Status | Superseded By | |---|---|---|---|---|---|---|---| +| ASM-001 | 2026-10-11 | Stage 1 | Efficiency improvement targets remain unset until the agreed representative-tenant pre/post pilot measurements are collected; requirements extraction and early design may proceed, and the product must support measurement of the agreed metrics. | Stakeholder authorized proceeding under explicit assumptions; no pilot evidence currently supports numeric targets. | Medium | Accepted for Stage 1 and early elaboration; resolve `AMB-001` before production acceptance. | — | +| ASM-002 | 2026-10-11 | Stage 1 | Do not infer retention durations or additional legal obligations. Support configurable category/purpose schedules; require qualified review and evidence before production release. | Exact durations and applicable obligations are unresolved under `AMB-006`; a configurable design can proceed without inventing legal rules. | High | Accepted for Stage 1 and early elaboration; resolve `AMB-006` before production release. | — | +| ASM-003 | 2026-10-11 | Stage 1 | Treat the accepted capacity envelope and load profile as planning inputs only; numeric fair-share budgets and alert thresholds remain TBD pending architecture/load tests and pilot telemetry. | No performance evidence currently establishes safe per-tenant budgets; observability and configurable fairness controls remain in scope. | Medium | Accepted for Stage 1 and early elaboration; resolve `AMB-008` before production capacity acceptance. | — | diff --git a/04_generated_documentation/00_process_control/checkpoints/checkpoint-007-atb-brd-extraction.md b/04_generated_documentation/00_process_control/checkpoints/checkpoint-007-atb-brd-extraction.md new file mode 100644 index 0000000..72eeb5b --- /dev/null +++ b/04_generated_documentation/00_process_control/checkpoints/checkpoint-007-atb-brd-extraction.md @@ -0,0 +1,23 @@ +# Checkpoint 007 — ATB BRD Extraction + +- **Checkpoint ID:** `CKPT-007` +- **Date:** 2026-10-11 +- **Active Stage:** Stage 1 — Business Requirements Extraction +- **Active Track:** Greenfield, India-first, multi-tenant Agriculture Trading Backoffice (ATB) +- **Active Skill:** `up-brd-extract` +- **PRD Status:** Baselined for Stage 1 extraction with bounded, evidence-gated assumptions + +## Completed +- Recorded stakeholder direction `DEC-020` authorizing Stage 1 under explicit bounded assumptions. +- Added `ASM-001`–`ASM-003`; kept `AMB-001`, `AMB-006`, and `AMB-008` open as evidence gates. +- Baselined `01_BRD/PRD_Specification.md` for Stage 1 extraction and documented assumption boundaries. +- Extracted all 52 functional requirements and 14 NFRs into `04_generated_documentation/01_source_inventories/brd_inventory.md`. +- Confirmed unique FR/NFR ID counts and scoped whitespace validation; no tests or traceability gates are applicable to this extraction step. + +## Open Items +- `AMB-001`: pilot measurements and efficiency targets. +- `AMB-006`: qualified legal/accounting review and retention/legal evidence. +- `AMB-008`: architecture/load-test evidence and pilot telemetry for fair-share budgets. + +## Exact Next Action +Review the Stage 1 inventory for completeness and consistency, then continue the Greenfield track to Stage 5 use-case authoring. Carry `ASM-001`–`ASM-003` and their release gates forward; do not mark the open ambiguities resolved or treat the assumptions as production evidence. diff --git a/04_generated_documentation/00_process_control/checkpoints/checkpoint_index.md b/04_generated_documentation/00_process_control/checkpoints/checkpoint_index.md index 0b01a5f..b638627 100644 --- a/04_generated_documentation/00_process_control/checkpoints/checkpoint_index.md +++ b/04_generated_documentation/00_process_control/checkpoints/checkpoint_index.md @@ -23,3 +23,5 @@ | `CKPT-006` | 2026-10-11 | Stage 0B (Requirements elicitation / Inception) | ATB draft PRD expanded to 52 FRs and 14 NFRs; decisions recorded through DEC-019, including the accepted pre/post pilot KPI measurement protocol. | `AMB-001`, `AMB-006`, and `AMB-008` remain open for pilot results, qualified legal/accounting evidence, and load-test/pilot telemetry; PRD baseline approval pending. | Prepare Stage 0B Human Review Brief and review the Draft PRD; collect evidence for the remaining ambiguities, then obtain explicit baseline approval before Stage 1. | `checkpoint-006-atb-requirements-elicitation.md` | + +| `CKPT-007` | 2026-10-11 | Stage 1 (Business Requirements Extraction) | Baselined PRD for Stage 1 under DEC-020 and ASM-001–ASM-003; extracted 52 FRs and 14 NFRs. | `AMB-001`, `AMB-006`, and `AMB-008` remain evidence gates. | Review Stage 1 inventory, then continue Greenfield track to Stage 5 use-case authoring while carrying assumptions and release gates forward. | `checkpoint-007-atb-brd-extraction.md` | diff --git a/04_generated_documentation/00_process_control/decision_log.md b/04_generated_documentation/00_process_control/decision_log.md index 3dc3c9a..63f0fb7 100644 --- a/04_generated_documentation/00_process_control/decision_log.md +++ b/04_generated_documentation/00_process_control/decision_log.md @@ -33,3 +33,4 @@ Project decisions made during requirements elicitation and bootstrap are recorde | 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 | diff --git a/04_generated_documentation/00_process_control/master_context.md b/04_generated_documentation/00_process_control/master_context.md index 7172e8a..aecdef5 100644 --- a/04_generated_documentation/00_process_control/master_context.md +++ b/04_generated_documentation/00_process_control/master_context.md @@ -14,7 +14,7 @@ ## 1. Project Goal & Overview -Agriculture Trading Backoffice (ATB) is a greenfield, India-first multi-tenant backoffice platform for agricultural trading firms. The stakeholder-reviewed business direction is captured in the Draft PRD at [`01_BRD/PRD_Specification.md`](../../../01_BRD/PRD_Specification.md); requirements are not yet baselined. +Agriculture Trading Backoffice (ATB) is a greenfield, India-first multi-tenant backoffice platform for agricultural trading firms. The stakeholder-reviewed PRD at [`01_BRD/PRD_Specification.md`](../../../01_BRD/PRD_Specification.md) is baselined for Stage 1 extraction under bounded assumptions; pilot, legal/accounting, and load-test evidence gates remain open for production readiness. --- @@ -85,6 +85,6 @@ stack: ## 4. Active Stage & Next Actions -- **Current Stage:** Stage 0B — Requirements elicitation; PRD draft prepared from stakeholder-accepted business direction. +- **Current Stage:** Stage 1 — Business requirements extraction; PRD baselined for extraction under bounded, evidence-gated assumptions. - **Active Iteration:** None; no iteration has been planned for this project baseline. -- **Next:** Prepare the Stage 0B Human Review Brief and review `01_BRD/PRD_Specification.md`. The pilot measurement protocol for `AMB-001` is accepted; collect 30-operating-day pre- and post-rollout results to set numeric targets. Obtain qualified review evidence for DPDP retention durations and other applicable obligations (`AMB-006`), and derive fair-share budgets from load testing and pilot telemetry (`AMB-008`). Keep the PRD in Draft until required evidence is available and the stakeholder explicitly approves the baseline; then proceed to Stage 1 extraction. +- **Next:** Review `04_generated_documentation/01_source_inventories/brd_inventory.md` for completeness, then continue the Greenfield track to Stage 5 use-case authoring. Carry `ASM-001`–`ASM-003` forward. Pilot results (`AMB-001`), qualified legal/accounting evidence (`AMB-006`), and load-test/pilot evidence (`AMB-008`) remain production/release gates; the assumptions do not resolve them. diff --git a/04_generated_documentation/01_source_inventories/brd_inventory.md b/04_generated_documentation/01_source_inventories/brd_inventory.md index c1b4651..a09e2dd 100644 --- a/04_generated_documentation/01_source_inventories/brd_inventory.md +++ b/04_generated_documentation/01_source_inventories/brd_inventory.md @@ -2,18 +2,96 @@ | Field | Value | |---|---| -| **Governed Standard** | SEI-CMMI Level 3 (UP-AI v1.0) | +| **Governed Standard** | UP-AI v1.5 | | **Document Path** | `04_generated_documentation/01_source_inventories/brd_inventory.md` | -| **Source** | `01_BRD/PRD_Specification.template.md` | -| **Last Updated** | 2026-09-03 | +| **Authoritative Source** | `01_BRD/PRD_Specification.md` (baselined for Stage 1 extraction with bounded assumptions) | +| **Last Updated** | 2026-10-11 | +| **Active Track** | Greenfield | ---- +## Extracted Functional Business Requirements (`BRD-FR-xxx`) -## Extracted Business Features & Requirements (`BRD-FR-xxx`) +Every functional feature from PRD §5 is represented once. Stage 1 extraction does not compare against the illustrative mockup or infer legacy behavior. Candidate values retain the provisional status and controls stated in the PRD. -| Feature ID | Feature Name | PRD Reference | Primary Actor | Description | Downstream Use Case | Status | -|---|---|---|---|---|---|---| -| `BRD-FR-001` | Multi-Tenant User Authentication | PRD §3 | All Users | Secure OIDC/PKCE login with tenant context propagation and JWT bearer token issuance. | `UC-001` | Extracted / Baselined | -| `BRD-FR-002` | Role-Based Access Control (RBAC) | PRD §3 | Tenant Admin | Tenant-scoped roles, permissions, and hierarchical privilege enforcement. | `UC-001` | Extracted / Baselined | -| `BRD-FR-003` | User Session & Token Revocation | PRD §3 | All Users | Session state monitoring, refresh token rotation, and instant revocation capability. | `UC-001` | Extracted / Baselined | -| `BRD-FR-004` | Audit & Compliance Event Stream | PRD §3 | System Admin | Immutable audit logging of authentication, state mutations, and administrative events. | `UC-001` | Extracted / Baselined | +| Feature ID | Feature Name | PRD Reference | Primary Actor(s) | Priority | Extracted Business Requirement | Legacy Overlap / Conflict | Downstream Use Case | +|---|---|---|---|---|---|---|---| +| `BRD-FR-001` | Daily APMC Mandi Arrival Ingestion & Tracking | §5 | Procurement Executive / Mandi Buyer | P0 | The system must record daily physical arrival volumes at APMC mandi yards across target commodities (Chana, Coriander, Cumin, Fenugreek, Groundnut, Isabgol, Jaggery, Maize, Mustard, Soybean, Turmeric, Wheat) across monitored markets (Neemuch, Mandsaur, Ratlam, Kota, Indore, Jaora, Ujjain, Chittorgarh). | Not assessed (Greenfield; Stage 1 is independent of reference mockup/legacy behavior) | Not yet mapped (Stage 5) | +| `BRD-FR-002` | Daily Modal & Range Pricing Tracking (₹/Qtl) | §5 | Procurement Executive / Purchase Manager | P0 | For each daily mandi arrival record, the system must capture the quoted price range (Min Rate ₹/Qtl, Max Rate ₹/Qtl) and the official modal clearing price (Modal Rate ₹/Qtl). | Not assessed (Greenfield; Stage 1 is independent of reference mockup/legacy behavior) | Not yet mapped (Stage 5) | +| `BRD-FR-003` | Intraday Price Trend Analysis & 20-Day Benchmark Analytics | §5 | Purchase Manager / Partner | P0 | The system must provide interactive visual charts and trend tables comparing the 20-day historical modal rate trend per commodity across markets, computing 20-day moving averages, 20-day highs/lows, and price velocity. | Not assessed (Greenfield; Stage 1 is independent of reference mockup/legacy behavior) | Not yet mapped (Stage 5) | +| `BRD-FR-004` | Procurement Price Variance Alert vs. Modal Rate | §5 | Purchase Manager | P1 | When booking a purchase sauda, the system must compare the offered trade rate against the latest modal clearing rate for that commodity/mandi. If the offered rate exceeds the modal rate by $>5\%$, the system must display an inline warning and require confirmation. | Not assessed (Greenfield; Stage 1 is independent of reference mockup/legacy behavior) | Not yet mapped (Stage 5) | +| `BRD-FR-005` | Mandi Auction & Direct Purchase Sauda Booking | §5 | Procurement Executive / Purchase Manager | P0 | The system must record purchase contracts (*saudas*) negotiated in mandi auctions or directly with suppliers. Each sauda must capture supplier code, sourcing market, commodity, variety, trade rate (₹/Qtl), estimated bag count, and booked quantity in MT. The system must support multi-truck partial delivery: a sauda may be fulfilled across multiple trucks/GRNs over consecutive delivery days, tracking cumulative received MT and remaining balance MT until fully fulfilled. | Not assessed (Greenfield; Stage 1 is independent of reference mockup/legacy behavior) | Not yet mapped (Stage 5) | +| `BRD-FR-006` | Supplier Credit Terms & Due Date Computation | §5 | Purchase Manager / Accounts Executive | P0 | The system must automatically compute the supplier payment due date by adding the supplier's contractual credit days (e.g., 7, 15, or 21 days) to the sauda or GRN receipt date. | Not assessed (Greenfield; Stage 1 is independent of reference mockup/legacy behavior) | Not yet mapped (Stage 5) | +| `BRD-FR-007` | Mandi Cess & Statutory Levies Apportioning | §5 | Accounts Executive | P1 | The system must calculate statutory mandi cess (e.g., 1.5% APMC market fee + 0.2% Nirashrit fee) based on the gross sauda value and append it to the total procurement cost. | Not assessed (Greenfield; Stage 1 is independent of reference mockup/legacy behavior) | Not yet mapped (Stage 5) | +| `BRD-FR-008` | Inward Vehicle Gate Entry & Verification | §5 | Yard Supervisor | P0 | Upon vehicle arrival at the godown, the Yard Supervisor must log gate entry linking the vehicle registration number and driver details to an active booked sauda. | Not assessed (Greenfield; Stage 1 is independent of reference mockup/legacy behavior) | Not yet mapped (Stage 5) | +| `BRD-FR-009` | Weighbridge Gross & Tare Weighment Logging | §5 | Yard Supervisor | P0 | The system must record dual-phase weighbridge measurements for incoming trucks: (1) Gross Weighment (truck + commodity) upon arrival, and (2) Tare Weighment (empty truck) after unloading. | Not assessed (Greenfield; Stage 1 is independent of reference mockup/legacy behavior) | Not yet mapped (Stage 5) | +| `BRD-FR-010` | Bag Tare Deduction (*Bardana Katai*) & Final Net MT | §5 | Yard Supervisor | P0 | The system must deduct the weight of packaging bags from the gross commodity weight using the defined tare deduction factor (default 1.0 kg/gunny bag) to calculate true Net Payable MT. | Not assessed (Greenfield; Stage 1 is independent of reference mockup/legacy behavior) | Not yet mapped (Stage 5) | +| `BRD-FR-011` | Weighment Tolerance & Transit Shortage Verification | §5 | Yard Supervisor / Purchase Manager | P0 | The system must compare the Final Net Weighbridge MT against the Booked Sauda MT. If shortage exceeds $0.5\%$, the system must flag a `Transit Shortage Warning` and adjust the final payable amount to the actual net received weight. | Not assessed (Greenfield; Stage 1 is independent of reference mockup/legacy behavior) | Not yet mapped (Stage 5) | +| `BRD-FR-012` | Goods Receipt Note (GRN) Posting & Warehouse Stack Placement | §5 | Yard Supervisor | P0 | Upon weighment completion, the system must generate a formal GRN document, allocate the physical goods to a specific warehouse/godown and stack location, credit the warehouse stock book, and mint an inward Commodity Lot. | Not assessed (Greenfield; Stage 1 is independent of reference mockup/legacy behavior) | Not yet mapped (Stage 5) | +| `BRD-FR-013` | Mandatory Lot & Batch Identity Generation | §5 | Yard Supervisor / Quality Officer | P0 | The system must automatically generate a globally unique, immutable Lot ID (`LOT-YYYYMM-xxx`) for every inward consignment processed through a GRN. | Not assessed (Greenfield; Stage 1 is independent of reference mockup/legacy behavior) | Not yet mapped (Stage 5) | +| `BRD-FR-014` | Inward Quality Inspection Parameter Recording | §5 | Quality Officer | P0 | The Quality Officer must log laboratory/physical test parameters for the lot: Moisture %, Foreign Matter / Dust %, Admixture (other grains) %, Damaged / Discolored %, and Weevil count. | Not assessed (Greenfield; Stage 1 is independent of reference mockup/legacy behavior) | Not yet mapped (Stage 5) | +| `BRD-FR-015` | Quality Deduction / Rebate Calculation | §5 | Quality Officer / Accounts Executive | P1 | If moisture or foreign matter exceeds standard contract baselines (e.g., standard moisture baseline 10.0%), the system must automatically compute a quality price deduction (e.g., ₹10 deduction per quintal for each 0.5% moisture above baseline). | Not assessed (Greenfield; Stage 1 is independent of reference mockup/legacy behavior) | Not yet mapped (Stage 5) | +| `BRD-FR-016` | Finite State Machine Enforcement for `QC Hold` vs. `Released` | §5 | Quality Officer | P0 | The system must enforce strict FSM transitions on the Lot record. If moisture $>12\%$ or foreign matter $>2\%$, the lot must be transitioned to `QC Hold`. A lot on `QC Hold` is programmatically blocked from sales order allocation and dispatch loading. | Not assessed (Greenfield; Stage 1 is independent of reference mockup/legacy behavior) | Not yet mapped (Stage 5) | +| `BRD-FR-017` | Lot Splitting & Blending Traceability | §5 | Yard Supervisor / Quality Officer | P1 | The system must support splitting a parent lot into sub-lots (e.g., when dividing a consignment across two warehouses) or blending multiple lots, maintaining parent-child lineage in the traceability graph. | Not assessed (Greenfield; Stage 1 is independent of reference mockup/legacy behavior) | Not yet mapped (Stage 5) | +| `BRD-FR-018` | Multi-Godown Dual-Unit Stock Ledger | §5 | Yard Supervisor / Management | P0 | The system must maintain a real-time, double-entry stock ledger tracking commodity positions across warehouses (WH-01 Neemuch Main Yard, WH-02 Neemuch North Godown, WH-03 Mandsaur Transit Godown, WH-04 Indore Buffer Depot). For each commodity, variety, and grade, it must maintain Opening Stock MT, Received MT, Dispatched MT, Closing Stock MT, and physical Bag counts. The system must support Periodic Physical Stock Audits: recording physical tally counts against book balances and generating supervisor-authorized Stock Adjustment Vouchers capturing natural storage loss/gain (*ghat / nami* due to moisture evaporation or seasonal humidity) or handling spillage with mandatory reason codes. | Not assessed (Greenfield; Stage 1 is independent of reference mockup/legacy behavior) | Not yet mapped (Stage 5) | +| `BRD-FR-019` | Godown Capacity & Volume Utilization Tracking | §5 | Yard Supervisor / Partner | P0 | The system must track the physical storage capacity of each warehouse in Metric Tonnes and calculate real-time percentage utilization: | Not assessed (Greenfield; Stage 1 is independent of reference mockup/legacy behavior) | Not yet mapped (Stage 5) | +| `BRD-FR-020` | Godown-to-Godown Internal Stock Transfer | §5 | Yard Supervisor / Logistics Coordinator | P0 | The system must support recording stock transfers between godowns (e.g., from Mandsaur Transit Godown to Neemuch Main Yard), logging origin outward deduction, in-transit state, destination weighment, and destination inward credit. | Not assessed (Greenfield; Stage 1 is independent of reference mockup/legacy behavior) | Not yet mapped (Stage 5) | +| `BRD-FR-021` | Customer Sales Contract Booking | §5 | Sales Manager / Sales Executive | P0 | The system must record customer sales orders/contracts specifying customer code, destination city, customer segment (`Wholesale`, `Processor`, `Institutional`, `Distributor`), commodity, variety, grade, contracted quantity in MT, contract rate in ₹/Qtl, and delivery timeline. | Not assessed (Greenfield; Stage 1 is independent of reference mockup/legacy behavior) | Not yet mapped (Stage 5) | +| `BRD-FR-022` | Customer Credit Limit & Pre-Order Exposure Verification | §5 | Sales Manager / Accounts Executive | P0 | Prior to confirming a sales order, the system must evaluate the customer's current outstanding receivables plus the value of the new order against their sanctioned credit limit. | Not assessed (Greenfield; Stage 1 is independent of reference mockup/legacy behavior) | Not yet mapped (Stage 5) | +| `BRD-FR-023` | Sales Order Inventory Allocation | §5 | Sales Manager / Yard Supervisor | P0 | The Sales Manager must allocate specific available inventory lot(s) from a warehouse to a confirmed sales order. The system must verify that selected lots are in `Released` state and have sufficient unreserved balance. | Not assessed (Greenfield; Stage 1 is independent of reference mockup/legacy behavior) | Not yet mapped (Stage 5) | +| `BRD-FR-024` | Outbound Dispatch Board Console | §5 | Logistics Coordinator | P0 | The system must provide a visual dispatch management board displaying scheduled, loading, and in-transit consignments, matching confirmed sales orders to allocated warehouse lots and transport vehicles. | Not assessed (Greenfield; Stage 1 is independent of reference mockup/legacy behavior) | Not yet mapped (Stage 5) | +| `BRD-FR-025` | Outbound Weighbridge & Dispatch Bilty/Manifest | §5 | Yard Supervisor / Logistics Coordinator | P0 | The system must capture outward weighbridge weights for loaded dispatch trucks (Tare truck before loading, Gross truck after loading), verify loaded weight against order MT, and generate a printable transport manifest / Bilty. | Not assessed (Greenfield; Stage 1 is independent of reference mockup/legacy behavior) | Not yet mapped (Stage 5) | +| `BRD-FR-026` | In-Transit Tracking & Proof of Delivery (POD) | §5 | Logistics Coordinator | P0 | The system must track dispatch states from `In Transit` to `Delivered`. Upon consignee receipt, the Logistics Coordinator logs confirmation date, destination weighment, and uploads POD document reference. If destination weighment or quality parameters reveal a transit shortage or damage acknowledged by the buyer, the system must allow recording a Consignee Shortage Note and automatically generating a compensating Sales Credit Note against the customer ledger without altering the immutable outbound dispatch manifest. | Not assessed (Greenfield; Stage 1 is independent of reference mockup/legacy behavior) | Not yet mapped (Stage 5) | +| `BRD-FR-027` | Transport Fleet Registry | §5 | Logistics Coordinator | P1 | The system must maintain a registry of transport trucks (owned and contract carriers) including registration number, vehicle model, gross payload capacity in MT, ownership type (`Own` vs `Contract`), insurance/fitness expiry dates, and operational status (`Available`, `On Route`, `Maintenance`). | Not assessed (Greenfield; Stage 1 is independent of reference mockup/legacy behavior) | Not yet mapped (Stage 5) | +| `BRD-FR-028` | Customer Ledger & Aging Statement | §5 | Accounts Executive / Sales Manager | P0 | The system must maintain an immutable party sub-ledger for each customer, debiting finalized sales invoices, crediting payment receipts, and presenting a real-time outstanding balance and aging schedule (0–7 days, 8–15 days, 16–30 days, >30 days). | Not assessed (Greenfield; Stage 1 is independent of reference mockup/legacy behavior) | Not yet mapped (Stage 5) | +| `BRD-FR-029` | Automated Customer Credit Exposure Watch & Threshold Alert | §5 | Accounts Executive / Partner | P0 | The system must continuously recompute the customer exposure ratio ($\text{Outstanding} / \text{Credit Limit}$). If exposure $>80\%$, the account must be automatically tagged with a visual `Watch` badge, and an operational warning alert generated on the Executive Dashboard. | Not assessed (Greenfield; Stage 1 is independent of reference mockup/legacy behavior) | Not yet mapped (Stage 5) | +| `BRD-FR-030` | Credit Breach Dispatch Lock & Partner Override | §5 | Partner / Managing Director | P0 | If a customer's outstanding receivables exceed 100% of their sanctioned credit limit, all pending dispatches for that customer must be locked. Only a Partner user can record an explicit electronic approval override with mandatory justification notes to release the lock. | Not assessed (Greenfield; Stage 1 is independent of reference mockup/legacy behavior) | Not yet mapped (Stage 5) | +| `BRD-FR-031` | Customer Payment Receipt Posting | §5 | Accounts Executive | P0 | The system must record customer payments capturing payment date, customer code, received amount in INR, payment instrument mode (`NEFT`, `RTGS`, `Cheque`, `Cash`, `UPI`), bank reference/UTR number, and payment status (`Pending Clearance`, `Cleared`, `Bounced`). The system must enforce automatic reversal upon Cheque/Instrument Bounce: if an instrument status transitions to `Bounced`, the system must immediately reverse the credit entry on the customer sub-ledger, restore the previous outstanding debt, recompute exposure ratio %, reinstate credit locks if exposure $>100\%$, and trigger an urgent financial alert. | Not assessed (Greenfield; Stage 1 is independent of reference mockup/legacy behavior) | Not yet mapped (Stage 5) | +| `BRD-FR-032` | Supplier Payables Aging & Balance Snapshots | §5 | Accounts Executive / Partner | P0 | The system must track supplier payables arising from accepted GRNs, applying supplier credit days, generating aging schedules, and providing daily aggregate payables snapshots. | Not assessed (Greenfield; Stage 1 is independent of reference mockup/legacy behavior) | Not yet mapped (Stage 5) | +| `BRD-FR-033` | Mandi Operating Expense Classification & Recording | §5 | Accounts Executive | P1 | The system must record operational expenses incurred in mandi and godown operations categorizing entries under: Labor / Hamali (loading/unloading), Freight / Cartage, Weighbridge Fees, Godown Rent, Mandi Cess, Pest Control/Fumigation, and Office Expenses. | Not assessed (Greenfield; Stage 1 is independent of reference mockup/legacy behavior) | Not yet mapped (Stage 5) | +| `BRD-FR-034` | Real-Time Operational Alerts Engine | §5 | Partner / Operations Supervisor | P0 | The system must evaluate active business data and publish automated proactive alerts across four critical categories: | Not assessed (Greenfield; Stage 1 is independent of reference mockup/legacy behavior) | Not yet mapped (Stage 5) | +| `BRD-FR-035` | Executive Control Centre Dashboard | §5 | Partner / Managing Director | P0 | The system must provide a unified operational dashboard displaying real-time metrics: Total Stock on Hand (MT), Total Active Stock Lines, Intraday Purchase Value INR, Intraday Sales Revenue INR, Total Customer Receivables INR, Top 10 Stock Lines by Volume, Top Recent Sales, and Warehouse Utilization Barometers. | Not assessed (Greenfield; Stage 1 is independent of reference mockup/legacy behavior) | Not yet mapped (Stage 5) | +| `BRD-FR-036` | 20-Day Consolidated Trading Trend Reporting | §5 | Partner / Managing Director | P0 | The system must compile daily management snapshots across a rolling 20-day trading window, tabulating: Date, Purchases MT, Sales MT, Closing Stock MT, Total Receivables INR, and Total Payables INR. | Not assessed (Greenfield; Stage 1 is independent of reference mockup/legacy behavior) | Not yet mapped (Stage 5) | +| `BRD-FR-037` | Agricultural Commodity Master Data Management | §5 | System Administrator | P0 | Maintain authoritative master catalogs for: Commodities (Chana, Soybean, Mustard, Wheat, Coriander, Cumin, Fenugreek, Groundnut, Isabgol, Jaggery, Maize, Turmeric), Varieties per commodity (e.g., Lokwan, Pusa, Eagle/Badami), and Commercial Quality Grades (`FAQ`, `Premium`, `Below FAQ`). | Not assessed (Greenfield; Stage 1 is independent of reference mockup/legacy behavior) | Not yet mapped (Stage 5) | +| `BRD-FR-038` | Trading Counterparty Masters (Suppliers, Customers & Godowns) | §5 | System Administrator / Accounts Executive | P0 | Maintain registries for: (1) Suppliers (Code, Name, City, Segment, Credit Days: 7/15/21), (2) Customers (Code, Name, City, Segment, Credit Limit INR, Contact), and (3) Godowns/Warehouses (Code, Name, City, Capacity MT). | Not assessed (Greenfield; Stage 1 is independent of reference mockup/legacy behavior) | Not yet mapped (Stage 5) | +| `BRD-FR-039` | Tenant Data Isolation | §5 | System Administrator | P0 | Each independent trading enterprise is a tenant; its branches and godowns operate within that tenant boundary. Users and transactions must be associated with the correct tenant, and access to one tenant’s business data must not expose another tenant’s data. The isolation implementation must conform to the active technology profile. | Not assessed (Greenfield; Stage 1 is independent of reference mockup/legacy behavior) | Not yet mapped (Stage 5) | +| `BRD-FR-040` | Role-Based Access Control (RBAC) & Permission Scoping | §5 | System Administrator | P0 | Access to business records and actions must be governed by role-based permissions for the roles defined in this PRD: `Tenant Administrator`, `Mandi Buyer`, `Purchase Manager`, `Yard Supervisor`, `Quality Officer`, `Sales Executive`, `Sales Manager`, `Logistics Coordinator`, `Accounts Executive`, `Partner / MD`, and `System Administrator`. | Not assessed (Greenfield; Stage 1 is independent of reference mockup/legacy behavior) | Not yet mapped (Stage 5) | +| `BRD-FR-041` | Immutable Transaction Audit Logging | §5 | System Administrator | P0 | Submitted business records (GRNs, Sales Orders, Dispatches, Payment Receipts) must preserve an auditable history. Corrections must not silently rewrite the business history. The system must record user ID, timestamp, and the changed values for governed mutations. | Not assessed (Greenfield; Stage 1 is independent of reference mockup/legacy behavior) | Not yet mapped (Stage 5) | +| `BRD-FR-042` | Tenant Provisioning and Lifecycle Management | §5 | System Administrator | P0 | Public self-service tenant signup is out of scope for v1. An authorized platform administrator must create and configure each tenant, assign its initial Tenant Administrator, and activate, suspend, or close the tenant through a controlled lifecycle. Tenant lifecycle changes must not silently delete or expose business records. | Not assessed (Greenfield; Stage 1 is independent of reference mockup/legacy behavior) | Not yet mapped (Stage 5) | +| `BRD-FR-043` | Tenant Membership and Role Administration | §5 | Tenant Administrator | P0 | A person may hold active memberships in multiple tenants. A Tenant Administrator must be able to add, deactivate, and assign approved business roles to users within their own tenant. A tenant administrator must not manage users or roles belonging to another tenant. Platform-level administrators and tenant-level administrators must have distinct permissions. | Not assessed (Greenfield; Stage 1 is independent of reference mockup/legacy behavior) | Not yet mapped (Stage 5) | +| `BRD-FR-044` | Verified Tenant Context for Every Operation | §5 | All authenticated users | P0 | The service must derive the effective tenant context from the authenticated user’s verified tenant membership. A client-supplied tenant identifier alone must never grant or switch tenant access. A user associated with multiple tenants must explicitly select the active tenant after sign-in; the service verifies that membership and its role for every request before permitting action in that tenant. | Not assessed (Greenfield; Stage 1 is independent of reference mockup/legacy behavior) | Not yet mapped (Stage 5) | +| `BRD-FR-045` | End-to-End Tenant Resource Isolation | §5 | All users; System Administrator for platform controls | P0 | Tenant isolation must apply to all tenant-owned records and derived resources, including database reads and writes, API lookups, search/report results, exports, uploaded files, cache entries, and queued/background work. Cross-tenant access attempts must fail closed and must not reveal whether another tenant’s resource exists. | Not assessed (Greenfield; Stage 1 is independent of reference mockup/legacy behavior) | Not yet mapped (Stage 5) | +| `BRD-FR-046` | Controlled Privileged Support Access | §5 | System Administrator | P0 | Platform support must not imply routine unrestricted access to tenant business data. Support staff have no standing access to tenant business data. Ordinary exceptional access requires approval by that tenant’s Tenant Administrator for a specific support case and a limited duration. For an urgent incident, a designated platform security administrator may grant a break-glass access window of at most one hour, with a recorded reason, immediate audit alert, and notice to the tenant administrator within one business day. All access is recorded for tenant and platform security review. | Not assessed (Greenfield; Stage 1 is independent of reference mockup/legacy behavior) | Not yet mapped (Stage 5) | +| `BRD-FR-047` | Personal Data Purpose, Notice & Consent Records | §5 | Tenant Administrator; System Administrator for platform-controlled processing | P0 | The service must allow each responsible Data Fiduciary to determine and approve the processing purpose, applicable lawful basis, and privacy notice for its processing, then document personal-data categories, purpose, basis, notice version, and accountable contact. Tenant firms own these decisions for trading data; the ATB operator records them separately for its own account, security, and service processing. Privacy controls cover every natural person whose personal data is processed in tenant or platform contexts, whether or not that person has an application account. Where consent is the applicable basis, the service must capture evidence of the notice and consent, support withdrawal, and record resulting processing restrictions. Tenant and platform processing contexts must remain distinguishable. | Not assessed (Greenfield; Stage 1 is independent of reference mockup/legacy behavior) | Not yet mapped (Stage 5) | +| `BRD-FR-048` | Data Principal Rights & Grievance Case Management | §5 | Tenant Administrator; System Administrator for platform-controlled processing | P0 | The service must support receipt, identity verification, routing, tracking, response, and evidence retention for Data Principal requests and grievances concerning access to information, correction, erasure, consent withdrawal, grievance redressal, and nomination, as applicable, including for individuals who do not hold application accounts. Requests must be routed to the responsible Data Fiduciary and handled within the applicable statutory or approved contractual time limit. A request channel must be available without requiring a general customer or supplier portal account. | Not assessed (Greenfield; Stage 1 is independent of reference mockup/legacy behavior) | Not yet mapped (Stage 5) | +| `BRD-FR-049` | Personal Data Breach Response Coordination | §5 | System Administrator; Tenant Administrator for tenant-scoped incidents | P0 | The service must support recording, triaging, investigation, impact assessment, remediation, and notification coordination for suspected or confirmed personal-data breaches. The platform operator must be able to identify affected tenants and notify the responsible tenant Data Fiduciary promptly when acting as its Data Processor. The workflow must support applicable notification content and deadlines to affected Data Principals and the Data Protection Board, including phased or subsequently amended statutory requirements. | Not assessed (Greenfield; Stage 1 is independent of reference mockup/legacy behavior) | Not yet mapped (Stage 5) | +| `BRD-FR-050` | Purpose-Aware Retention, Erasure & Legal Hold | §5 | Tenant Administrator; System Administrator for platform-controlled processing | P0 | Use four internal sensitivity levels—Public, Internal, Confidential, and Restricted—with a separate personal-data flag and processing-purpose tag; these are product handling labels, not statutory DPDP classifications. The responsible Data Fiduciary must approve retention schedules by personal-data category and processing purpose after legal/accounting review (tenant firms for trading data; ATB operator for its own account, security, and service data). Authorized operators must be able to apply these schedules by tenant/platform responsibility and applicable legal obligation. The service must support correction, erasure or irreversible de-identification when required, legal holds and statutory retention exceptions, and deletion handling for derived copies and processors, including backups according to the approved schedule. Statutory processing-log retention requirements must be represented separately from general business-record retention. | Not assessed (Greenfield; Stage 1 is independent of reference mockup/legacy behavior) | Not yet mapped (Stage 5) | +| `BRD-FR-051` | Data Processor & Subprocessor Governance | §5 | System Administrator | P0 | The platform operator must maintain an inventory of processors and subprocessors used for tenant personal data, their processing purpose and location, applicable safeguards and contractual obligations, and status of due diligence. The operator must support tenant Data Fiduciaries with information and operational assistance needed for security safeguards, Data Principal requests, breach response, retention, and erasure obligations. | Not assessed (Greenfield; Stage 1 is independent of reference mockup/legacy behavior) | Not yet mapped (Stage 5) | +| `BRD-FR-052` | Tenant Operating Policy Configuration & Audit | §5 | Partner / Managing Director; authorized tenant functional managers | P0 | The service must provide tenant-scoped configuration for the provisional operating thresholds listed in §6.2, including market-price variance, weighment shortage, bag tare/packing, commodity quality grading/deductions, credit exposure, warehouse capacity/adjustments/transfers, dispatch tolerances, and alert timing. Policies must support commodity, grade, contract, or other applicable scope and effective dates where needed. Only roles authorized in the tenant permission model may change them; changes must record actor, timestamp, reason, prior value, and new value. Seed values remain provisional. Before each affected live workflow is enabled for a tenant, that tenant’s Partner/Managing Director or delegated authorized business owner must review and confirm or edit every applicable threshold. Missing or unreviewed thresholds block only the affected risk-sensitive workflow. Confirmed policies are versioned with an effective date and changes are audited. | Not assessed (Greenfield; Stage 1 is independent of reference mockup/legacy behavior) | Not yet mapped (Stage 5) | + +## Extracted Non-Functional Requirements (`BRD-NFR-xxx`) + +NFRs are retained under their source IDs; they are not reminted as functional requirement IDs. + +| NFR ID | Requirement Area | Statement & Quantitative Metric | Priority | +|---|---|---|---| +| `BRD-NFR-001` | Commercial Calculation Integrity | Dual-unit mathematical conversions ($\text{Value} = \text{MT} \times 10 \times \text{Rate}_{\text{Qtl}}$) and bag tare deductions must maintain decimal precision to 3 decimal places for weight and 2 decimal places for currency without rounding drift. | P0 | +| `BRD-NFR-002` | UI Rendering Performance | Web views, forms, and executive dashboards must achieve page load rendering times $\le 1.5\text{ seconds}$ on standard broadband (10 Mbps). | P0 | +| `BRD-NFR-003` | API Latency SLAs | Standard resource CRUD endpoints and list filter queries must achieve response latencies $\le 250\text{ ms}$ (p95) under normal operating load. | P0 | +| `BRD-NFR-004` | High-Volume Reporting SLA | 20-day trading trend snapshots and multi-godown stock position reports must generate in $\le 1.0\text{ second}$ for a tenant with historical ledgers containing $\ge 50,000$ transaction rows. | P0 | +| `BRD-NFR-005` | Programmatic FSM Invariant Protection | Finite State Machines for Lot Quality (`Under QC` $\rightarrow$ `QC Hold` / `Released`) and Outbound Dispatches must be enforced in backend domain logic, preventing client-side or API bypass. | P0 | +| `BRD-NFR-006` | Tenant Data Isolation | Tenant data must remain isolated according to the row-level security model configured in `tech-profile.yaml`; unauthorized cross-tenant access must be prevented and tested. | P0 | +| `BRD-NFR-007` | Offline Sandbox Testability | Configured identity, payment, and messaging integration adapters must provide deterministic local mocks capable of offline, reproducible verification without external network access. | P0 | +| `BRD-NFR-008` | Automated Test Coverage Budgets | Code must meet UP-AI differentiated coverage budgets: $\ge 95\%$ statement/branch coverage for backend domain services and FSMs, $\ge 90\%$ for sandbox adapters, and $\ge 80\%$ for frontend components. | P0 | +| `BRD-NFR-009` | Application Security Assurance | The v1 launch is India-first and must support compliance with India’s Digital Personal Data Protection Act, 2023 and the DPDP Rules applicable at production launch. Supporting tenants subject to other jurisdictions requires a separate legal and privacy assessment before onboarding. Application-security verification must target OWASP ASVS v5.0.0 Level 2. Applicable requirements must be mapped to verification evidence; any non-applicable requirement or exception must be documented with rationale and an accountable owner. Authentication, session handling, authorization, input validation, secure configuration, and sensitive-data protections in transit and at rest must be verified before production release. The compliance design must account for phased commencement and be revalidated against current official notifications before release. | P0 | +| `BRD-NFR-010` | Tenant Isolation Assurance | Tenant isolation must fail closed across synchronous and asynchronous paths, including APIs, database connections, exports, files, caches, scheduled jobs, and support tooling. Automated tests must include cross-tenant negative cases and privileged-role bypass cases. | P0 | +| `BRD-NFR-011` | Availability and Recoverability | Production service availability must be at least 99.9% per month, measured 24/7. Recovery time objective (RTO) must be no more than 4 hours and recovery point objective (RPO) no more than 15 minutes. Backups must be encrypted, taken daily, support point-in-time recovery, and be retained for 35 days. Restore exercises must be performed quarterly and their results recorded before production release. | P0 | +| `BRD-NFR-012` | Capacity and Tenant Fairness | The initial production capacity-planning envelope is 50 tenant firms, up to 25 named users per tenant, and 250 concurrent active users across the service. Report performance must be validated with at least 50,000 ledger rows for a tenant. Load-test the platform for 200 core business documents per tenant per operating day and a 5× peak-hour burst, across the approved tenant/user envelope. This is a provisional capacity-planning scenario, not a customer usage cap. No fixed business-document quota is imposed by this planning envelope. Per-tenant resource use must be observable, with configurable early warnings near the tested fair-share budget. Under contention, the service may apply backpressure or temporarily throttle resource-intensive reports and bulk exports to protect service levels, while preserving and safely reporting the outcome of accepted core business transactions. Numeric fair-share budgets and alert thresholds must be set from architecture/load-test evidence. | P0 | +| `BRD-NFR-013` | Operational Observability | Production operations must provide service-level and tenant-scoped health, error, latency, and workload signals with actionable alerts. Logs and telemetry must carry tenant/correlation context where authorized and must exclude secrets and unnecessary sensitive business data. | P0 | +| `BRD-NFR-014` | Data Governance and Retention | The service must define and enforce four internal sensitivity levels (Public, Internal, Confidential, Restricted), with personal-data and processing-purpose tags applied independently, alongside purpose-aware retention, Data Principal request handling, export, correction, erasure, and legal-hold handling, including tenant closure, in support of applicable DPDP obligations and other applicable laws. These internal labels do not represent statutory DPDP categories. Each responsible Data Fiduciary must approve retention durations by category and purpose after legal/accounting review. The system must preserve applicable statutory minimums and legal holds, and support erasure when purposes and retention obligations end. Backup, processing-log, and audit-data retention and access must follow the approved policy and applicable statutory periods. | P0 | + +## Open Evidence Dependencies + +The following ambiguities remain open and are carried forward; their values are not resolved by this inventory: + +- `AMB-001` / `ASM-001`: gather pre- and post-rollout pilot evidence before setting numeric efficiency targets. +- `AMB-006` / `ASM-002`: obtain qualified review of retention durations and applicable legal/contractual obligations before production release. +- `AMB-008` / `ASM-003`: derive fair-share budgets and alert thresholds from architecture/load-test evidence and pilot telemetry before production capacity acceptance. diff --git a/prompts/20261011T074829Z-session-greenfield-bootstrap.md b/prompts/20261011T074829Z-session-greenfield-bootstrap.md index 66ec4eb..ad8f45d 100644 --- a/prompts/20261011T074829Z-session-greenfield-bootstrap.md +++ b/prompts/20261011T074829Z-session-greenfield-bootstrap.md @@ -282,3 +282,12 @@ Accepted the recommended `AMB-001` pilot protocol: use a representative tenant, ## 2026-10-11T09:37:28Z — Assistant — Action summary Updated PRD §1.3 to specify the 30-operating-day pre-rollout manual baseline and 30-operating-day post-rollout comparison. Recorded stakeholder decision `DEC-019`; kept `AMB-001` open only for measured baseline/target values. Updated master context and `CKPT-006`/checkpoint index: Stage 0B now proceeds to a Human Review Brief, while `AMB-006` needs qualified legal/accounting evidence and `AMB-008` needs load-test and pilot evidence. The PRD remains Draft pending evidence and explicit baseline approval. Verification: 52 unique FR IDs (`001`–`052`), 14 unique NFR IDs (`001`–`014`), open ambiguities `AMB-001`, `AMB-006`, and `AMB-008`; scoped `git diff --check` passed. No tests or traceability gate run. + + +## 2026-10-11T09:44:33Z — Assistant — Correction + +The first extraction attempt stopped on a heading-parser mismatch after the PRD status, bounded assumption text, assumptions register, and `DEC-020` had been written. The parser was corrected; no duplicate decision or assumption entries were added. The complete Stage 1 inventory and `CKPT-007` were then generated, with `AMB-001`, `AMB-006`, and `AMB-008` still open. Verification pending. + +## 2026-10-11T09:46:12Z — Assistant — Action summary + +Completed Stage 1 extraction. Updated the master context to reflect the bounded Stage 1 baseline and corrected `AMB-006` to make qualified review a production-release gate. `brd_inventory.md` contains all 52 PRD functional requirements with source section, actor, priority, statement, Greenfield legacy-comparison status, and downstream mapping status, plus all 14 NFRs. Created `CKPT-007`. Verification: pending.