Chapter 12 — Responsibilities of SPP, APP and PHY¶
© 2026 S++ project contributors. All rights reserved. Book copyright.
S++ separates business from technology, and technical logic from physical implementation. SPP defines the business; APP declares the technical contracts needed to execute it; PHY supplies environment-specific resources.
Business and Technical Responsibilities¶
SPP defines participants, roles, contracts, calculations, validations, scenarios and required transaction boundaries. A membership discount belongs in SPP; SQL, transport and external-system integration do not. Requirements specialists familiar with the language can express compilable business models, while technical developers connect their roles and contracts to actual systems.
APP organizes repository mappings, bindings, interfaces, duplicate protection, numbering, logical resources and environment deployment. PHY selects databases, protocols, numeric representations, endpoints and runtime resources. Developers implement or adapt capabilities; operators configure them. A new protocol or representation may first require an adapter before PHY can select it.
How Three Layers Complete Payment¶
| Layer | Content | Primary Responsibility |
|---|---|---|
| SPP | Buyer, merchant, agreement, qualifications, amount and transaction boundary | Business developers or requirements specialists familiar with the language |
| APP | Storage mappings, bindings, interfaces and technical contracts | Technical developers and integrators |
| PHY | Databases, endpoints, resources and physical representations | Operators, with adapters supplied by technical developers |
SPP expresses buyer −100 and merchant +100 and the order-receipt result. APP organizes storage and integration, selecting execution that honors the boundary. PHY supplies actual resources.
Order numbers with direct business use can belong to SPP. Internal storage keys are supplied by compiler and system, without an extra business ID. Rounding is business; machine representation and storage capacity are physical. These distinctions preserve meaning while separating maintenance.
Deterministic Generation and Review¶
Compilers, generators and runtimes derive repeated model, mapping, query/save integration, interface and storage code from declarations. Given the same source, configuration and tool version, deterministic transformations reduce the amount of implementation code that humans or AI must independently maintain.
Business specialists can review the roles, formulas, conditions and settlement results against requirements. Technical developers review mappings and adapter guarantees; operators review resources and configuration. AI can focus changes on the relevant layer rather than regenerate mixed business and infrastructure logic.
Generation does not prove business correctness or adapter guarantees. Requirements, exceptions, expected results and actual execution still require validation; toolchain changes need their own targeted review.
Locate a Change in Its Layer¶
Membership discounts change SPP calculations; new customer systems change APP adaptation; production endpoints and connections change PHY.
The following chapters introduce source expressions. Part V, Chapters 23–27, extends the benefits and technical services for performance, security, reliability and governance.
Part Contents · Full Book Contents · Previous Chapter · Next Chapter