إنتقل إلى المحتوى الرئيسي

02-Product-Definition: OS Blueprint

Status: ✅ ACTIVE Purpose: SSOT for all MVP phases, linked from Strategy (01), Technical Spec (05), and AI Features (04)


Overview

This section defines What We Build across three phases. Each workflow maps directly to the three tracked core workflows in the North Star metric (FWCR):

#WorkflowFWCR CategoryPhase
1Invoice → ZATCA clearanceInvoice-to-CashPhase 2
2Expense → approval → paymentExpense-to-PayPhase 3
3PO → receive → payPO-to-PaymentPhase 3

Phase 1: Blueprint (Current)

Duration: Q1 2025 Goal: Define product, architecture, and compliance requirements

Deliverables

  • 00-overview/ - OS Constitution, PDLC
  • 01-strategy/ - Executive Summary, North Star, Vision
  • 02-product-definition/ - This section (SSOT)
  • 03-compliance/ - ZATCA Phase 2, PDPL, GOSI, VAT
  • 04-ai-features/ - RAG Architecture, Tool Registry
  • 05-technical-spec/ - SAD, SRS, Data Model
  • 06-ui-design/ - UX Strategy, Design System
  • 07-operations/ - Security, Observability, Runbooks
  • 08-release/ - All 8 phase documents

Exit Criteria

  • All sections documented
  • Cross-references established
  • Architecture boundary defined (ERPNext + custom apps)
  • Compliance requirements locked

Phase 2: Forge (Invoice-to-Cash)

Duration: Q2-Q3 2025 Goal: Build and ship ZATCA Phase 2 compliant Invoice-to-Cash workflow

Core Deliverables

#DocumentStatusOwner
1Sales Quotation → SO workflowPlannedProduct
2ZATCA XML generationPlannedEngineering
3ZATCA clearance API integrationPlannedEngineering
4Fatoora portal submissionPlannedEngineering
5AI Error Resolution AssistantPlannedAI Team
6PDF attachment to cleared invoicePlannedEngineering
7Liquid Glass UI for invoicingPlannedFrontend
8RBAC workspace configurationPlannedProduct

User Stories

Scenario: ZATCA Invoice Clearance
Given an accountant has filled all mandatory fields
When they click "Submit"
Then the system generates XML, retrieves ZATCA stamp, attaches cleared PDF

Scenario: ZATCA Validation Error
Given an invoice is missing required fields
When they click "Submit"
Then the AI translates errors into plain-English instructions

Compliance Requirements

  • ZATCA Phase 2 cryptographic stamping
  • WPS (Wage Protection System) for payroll
  • PDPL data residency (OCI Riyadh/Jeddah)
  • Native Arabic RTL support
  • Hijri calendar integration

Success Metrics

  • FWCR for Invoice-to-Cash: >65%
  • Time-to-ZATCA clearance: under 2 seconds
  • ZATCA rejection rate: under 5%

Phase 3: Aesthetic (Expense-to-Pay + PO-to-Payment)

Duration: Q4 2025 Goal: Expand to full P2P cycle with approval workflows

Core Deliverables

#DocumentStatusOwner
1Purchase Invoice workflowPlannedProduct
2AI OCR for vendor receiptsPlannedAI Team
3Expense approval routingPlannedEngineering
4PO → GRN → Vendor Bill flowPlannedEngineering
5Multi-tier approval workflowsPlannedProduct
6Bank reconciliation automationPlannedEngineering
7Payment batch generationPlannedEngineering
8Payment run integration (SADAD)PlannedEngineering

User Stories

Scenario: AI OCR Invoice Processing
Given a user uploads a vendor PDF invoice
When upload completes
Then the AI extracts Vendor Name, VAT Number, Date, Amount into draft Purchase Invoice

Scenario: Expense Approval Flow
Given an employee submits an expense report
When amount exceeds threshold
Then system routes to manager for approval
And notifies finance upon approval
And initiates payment batch

Scenario: PO-to-Payment
Given a PO has been fully received
When finance initiates payment run
Then system generates SADAD-compatible batch file
And posts journal entries to GL

Success Metrics

  • FWCR for Expense-to-Pay: >65%
  • FWCR for PO-to-Payment: >65%
  • AI OCR accuracy: >95%
  • Approval cycle time: under 4 hours

Phase 4: Builder

Duration: Q1 2026 Goal: Inventory, HR, and project accounting

Core Deliverables

  • Inventory management (stock, warehouse, batches)
  • HRMS with GOSI payroll
  • Project costing and timesheets
  • Customer portal

Phase 5: Automation

Duration: Q2 2026 Goal: Self-healing workflows, predictive compliance

Core Deliverables

  • Predictive HR compliance (Iqama renewals)
  • Auto-reconciliation engine
  • Proactive ZATCA alerts
  • Cash flow forecasting

Phase 6: Shadow

Duration: Q3 2026 Goal: Real-world pilot customer validation

Core Deliverables

  • Production deployment to pilot
  • FWCR measurement and baseline
  • Implementation playbook refinement
  • Customer success workflows

Phase 7: Pulse

Duration: Q4 2026 Goal: Market launch and initial customer base

Core Deliverables

  • Marketing site and collateral
  • Sales enablement
  • Customer onboarding automation
  • Support documentation

Phase 8: Horizon

Duration: 2027+ Goal: Platform ecosystem and scale

Core Deliverables

  • ISV marketplace
  • Advanced analytics
  • Multi-entity support
  • API ecosystem

Cross-Section References

FromToPurpose
This section01-strategy/executive-summaryNorth Star alignment
This section03-compliance/zatcaField requirements, validation rules
This section04-ai-features/rag-architectureAI tool definitions
This section05-technical-spec/sadArchitecture decisions
This section06-ui-design/ux-strategyUI/UX specifications
This section07-operations/runbooks/zatca-outageIncident procedures

Document Owners

RoleOwner
Product DefinitionProduct Team
ArchitectureEngineering Lead
ComplianceCompliance Officer
AI SystemsAI Team Lead
UX/UIDesign Lead

Last Updated: May 2026 Review Cadence: Monthly or on phase gate completion