Keep the memory schema free of launch and adapter shapes

schemas.py was 473 lines and the memory lifecycle work needs to add
fields to it. The seven adapter and launch-profile models were the
right thing to move: they describe what trained the model and how a
machine starts it, they change when the evidence rules change, and the
memory model should not move with them. They joined the runtime shapes
file that already held the adapter load report.

schemas.py 473 -> 314 lines, runtime_schemas.py 30 -> 192. Every moved
class body is byte-identical (compared with ast.get_source_segment
against HEAD: 37 classes then, 30 + 9 now, none missing, none
differing).

Gates: 333 passed, ruff clean, filesize clean, mypy 24 errors in 9
files on both trees with identical messages, pyright 9 errors on the
package on both trees.
This commit is contained in:
ZacharyZhang-NY committed 2026-10-09 06:24:47 -04:00
1 parent a6a1ef05f0
commit 4c6af87fe0
13 files changed
+189 -183

No files matched your search

+8 -2
View File
@@ -13,8 +13,14 @@ from pydantic import ValidationError
from . import cartridge_store
from .config import Settings
from .db import Database
from .runtime_schemas import AdapterChoice, AdapterLoadReport, AdapterOrigin, AdapterState
from .schemas import AdapterManifest, TrainingAdapterKind
from .runtime_schemas import (
AdapterChoice,
AdapterLoadReport,
AdapterManifest,
AdapterOrigin,
AdapterState,
)
from .schemas import TrainingAdapterKind
logger = logging.getLogger("ely_eye.adapters")