STOCKROOM — DESIGN NOTE Reviewed 21 September 2026 Scope: a single-user localhost application built with Python and SQLite. Source repository: private. This note describes the reviewed implementation; it is not a production-use claim or a benchmark report. TRANSACTION BOUNDARY Acquire a SQLite write transaction (BEGIN IMMEDIATE). Read the product, validate the requested quantity, and calculate the new balance. Update the balance and insert its movement record in the same transaction. Commit both; a failure rolls the transaction back. SALES AND RETURNS Completed sales snapshot the original name, cost, and price. Request keys and payload fingerprints prevent repeated submissions from creating additional orders; conflicting reuse is rejected. Returns cannot exceed the remaining sold quantity. Restockable returns retain the original price/cost and add a new movement rather than rewriting history. FORECAST BOUNDARY Trailing daily mean, up to 90 complete UTC days. At least 28 days of history and four sale days are required. The final seven days provide a short holdout. No seasonality model, lost-demand estimate, or accuracy guarantee is implied. Reorder suggestions require user-supplied lead time and safety settings. LIMITS No accounts, multi-user deployment, camera scanning, or automatic purchasing. Gross profit is not net business profit. Movement history is not tamper-proof against a person with direct access to the SQLite database.