|
| 1 | +# tariff |
| 2 | + |
| 3 | +`tariff` — Imbra Ltd — a pricing and invoicing web application: |
| 4 | +a product catalog, discount rules of several kinds, tax jurisdictions, |
| 5 | +customers, and invoices assembled from them — Python 3.12 / Flask 3 / |
| 6 | +Jinja / HTMX / SQLite — runs locally, no deployment target |
| 7 | + |
| 8 | +Personal data: customers are people, stored with their name, email and |
| 9 | +postal address and named on the invoices billed to them. The business is |
| 10 | +in the EU, so the GDPR applies: a customer may ask for their data to be |
| 11 | +erased or for a copy of it. One administrator signs in to use the |
| 12 | +application; nobody else has an account. |
| 13 | + |
| 14 | +Boundaries and actors: two actors, the administrator working in a browser |
| 15 | +and another program; the pricing engine is a library the program imports |
| 16 | +without the web application present, and the web application is one |
| 17 | +caller of it. The store is a local file. Nothing reaches the network. |
| 18 | +The program's interfaces are the library's own API and the invoice |
| 19 | +exports. |
| 20 | + |
| 21 | +The project's rules are the templates below, one per topic. Do not read them |
| 22 | +before the work starts. The first time the work touches a template's topics, |
| 23 | +read that template, vendored at `docs/solid-ai-templates/` at the revision the |
| 24 | +project adopted; then apply every rule it holds that fits this project. |
| 25 | + |
| 26 | +| When the work first touches | Read first | |
| 27 | +| --- | --- | |
| 28 | +| Architecture, code style, calibration, tool trust, testing | `docs/solid-ai-templates/templates/core/quality.md` | |
| 29 | +| Committer identity, branching, pull requests, CI evidence, regenerated artifacts, off-limits paths, .gitignore | `docs/solid-ai-templates/templates/core/git.md` | |
| 30 | +| Rule language, standard documents, upkeep, line width, writing style, diagrams, generated files, agent output files | `docs/solid-ai-templates/templates/core/docs.md` | |
| 31 | +| Test types, isolation, assertions, proving a change | `docs/solid-ai-templates/templates/core/testing.md` | |
| 32 | +| Peer review priority, MUST/SHOULD checklists, deviation rules | `docs/solid-ai-templates/templates/core/review.md` | |
| 33 | +| Port, lifecycle, admin tasks, handlers, headers, methods, payloads, errors, auth | `docs/solid-ai-templates/templates/backend/http.md` | |
| 34 | +| API-first, contracts, versioning, deprecation, pagination | `docs/solid-ai-templates/templates/backend/api.md` | |
| 35 | +| Application security rules — input, output, injection, auth, sessions, TLS, headers | `docs/solid-ai-templates/templates/security/security.md` | |
| 36 | +| Authn/authz, JWT, RBAC, sessions, API keys | `docs/solid-ai-templates/templates/backend/auth.md` | |
| 37 | +| Migrations, transactions, parameterised queries, connection pooling | `docs/solid-ai-templates/templates/backend/database.md` | |
| 38 | +| UX principles, WCAG 2.1 AA, accessibility testing, design system, browser support | `docs/solid-ai-templates/templates/frontend/ux.md` | |
| 39 | +| Schema design, naming, normalization, relationships, data types | `docs/solid-ai-templates/templates/data/data-modeling.md` | |
| 40 | +| Classification, PII handling, retention, ownership, audit trail | `docs/solid-ai-templates/templates/data/data-governance.md` | |
0 commit comments