mirror of
https://github.com/Akkudoktor-EOS/EOS.git
synced 2026-12-02 18:36:28 +01:00
test(optimization): allow output-contract and request-schema names
Additional changes - Describe contract names and roles in the skill, MIGRATION.md and ADRs 0004 and 0007. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Assisted-by: Claude Code (claude-opus-5-5)
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
8c06245e8b
commit
b108335ee4
@@ -24,10 +24,12 @@ The test holds the one authoritative list of these modules and names, including
|
||||
the configuration, the server (`akkudoktoreos.server`,
|
||||
[0011](0011-optimizer-api-visualization-and-wizard-get-no-exception.md)), the shared device
|
||||
configuration (`devices.settings`, `devices.profile`, `devices.devices`, `devices.devicesabc`) and
|
||||
the contract classes that may be imported from a module that mixes them with configuration
|
||||
(`optimization.optimization`). Parameter preparation is recognized by its file name,
|
||||
`optimization/<name>/<name>prepare.py` or a subpackage `optimization/<name>/prepare/` (a plain
|
||||
module `prepare.py` does not count); the settings
|
||||
the contract names that may be imported from a module that mixes them with configuration or
|
||||
Pydantic (`optimization.optimization`, `core.pydantic`, `devices.devicesabc`, `config.configabc`):
|
||||
the output contract and the public request schema, which every optimizer needs, allowed only in the
|
||||
modules that build the output or define the request. Parameter
|
||||
preparation is recognized by its file name, `optimization/<name>/<name>prepare.py` or a
|
||||
subpackage `optimization/<name>/prepare/` (a plain module `prepare.py` does not count); the settings
|
||||
model `optimization/<name>/<name>settings.py` may import `config.configabc` to define
|
||||
`optimization.<name>`. The test discovers the optimizers (every package under `optimization/`), so
|
||||
adding one does not touch it; until the simulation devices have moved into the optimizer
|
||||
|
||||
Reference in New Issue
Block a user