From 9e8ec4c4e667aaec8c5dad7fb691ae893210665d Mon Sep 17 00:00:00 2001 From: bonamin Date: Sun, 15 Nov 2026 12:29:43 +0200 Subject: [PATCH] docs: CL-8 the fee engine has two copies (pack README) Co-Authored-By: Claude Opus 5.5 --- docs/README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/README.md b/docs/README.md index 19473a2..38572fa 100644 --- a/docs/README.md +++ b/docs/README.md @@ -56,6 +56,8 @@ If the cloud is down, restaurants must keep taking orders (global Rule 8). Don't **CL-6. The license signing key is permanent.** `LICENSE_SIGNING_KEY` (cloud `.env`) signs every site's license. Its public half is built into the site code. Never regenerate or lose it: a new key means every site needs a new image. Keep the backup at `%USERPROFILE%\.xenia\license_signing_key.txt` safe. Never add fields to the token payload that old sites would misread; bump `v` for incompatible changes. +**CL-8. The fee engine has two copies.** `cloud_backend/services/fees.py` is byte-identical to the site's `local_backend/services/fees.py` (the cloud charges what the manager's "test an order" shows). Change both, and `tests/fixtures/fee_cases.json` in both repos; the site's `tests/test_fees.py` compares them. + **CL-5. Frontend URLs are baked in at build time.** `VITE_CLOUD_URL` is a build arg, so changing it means rebuilding the image, not restarting it.