GeezerVison is showing github.com — SyliusAiTranslationPlugin/docs/adr/README.md at main · CylleneDigital/SyliusAiTranslationPlugin
45 lines (41 loc) · 3.92 KB File metadata and controls45 lines (41 loc) · 3.92 KB Copy raw file Download raw file Edit and raw actions Architecture decision records
One file per decision: its context, what was decided, what follows from it. A decision is not
edited once accepted: a new record supersedes it, and the old one says so in its status. A fact
of its context or consequences that changed since, the decision holding, is corrected in place,
with an Amended line under the date saying what changed.
A record holds the decision and its reasons, which do not move with the code. It names what the
decision is about (a bus, a priority, a status code), nothing else of the code. What moves with
it - file paths, versions, class lists, counts, the tags to write - is in the
architecture overview, the public contract
and the guides, which follow the code: a record that quoted them would be wrong at the next
refactoring, and could not be corrected.
A new record takes the next number, the template of the others (Status, Date, Context, Decision,
Consequences, Related, and Supersedes under the date when it replaces one) and a line in the
table below.
| # |
Decision |
| 0001 |
Generation runs go through a dedicated bus, not sylius.command_bus |
| 0002 |
One prefix for everything the plugin names |
| 0003 |
Services are declared explicitly, without autowiring |
| 0004 |
A Bundle class with SyliusPluginTrait, not AbstractBundle |
| 0005 |
One invokable controller per route |
| 0006 |
Routes in YAML, request inputs without validation constraints |
| 0007 |
CSRF is checked by Screen::validateCsrf(), not #[IsCsrfTokenValid] |
| 0008 |
The engine interfaces are re-aliased with plain aliases |
| 0009 |
The menu entry is added at priority -1024 |
| 0010 |
One permission per kind of consequence |
| 0011 |
No script in the templates, behaviour in Stimulus controllers |
| 0012 |
No file is written, nothing AI-generated is applied without a human |
| 0013 |
Only the engine's public contract is used |
| 0014 |
No plugin-side cache of the catalogue rows |
| 0015 |
The plugin exposes no API |
| 0016 |
No live tracking of a generation |
| 0017 |
pending_count stays in the data of the suggestions screen |
| 0018 |
The bulk action renderer decorator is kept, outside the public contract |
| 0019 |
The labels of the syntax issues are not factored |
| 0020 |
The channel code to name map is not cached |
| 0021 |
The .gitignore names the maintainers' local tooling |
| 0022 |
The guard against double billing is the engine's (superseded by 0024) |
| 0023 |
A deleted channel keeps its overrides, suggestions and journal (superseded by 0025) |
| 0024 |
The guard against double billing is the engine's, by its contract (supersedes 0022) |
| 0025 |
A deleted channel takes its overrides and suggestions along, its journal stays (supersedes 0023) |
|