Skip to content

Connect ENGINE_INFO to the engine registry, without moving it (item 5, final) - #165

Merged
isayev merged 1 commit into
mainfrom
test/engine-info-drift
Aug 14, 2026
Merged

Connect ENGINE_INFO to the engine registry, without moving it (item 5, final)#165
isayev merged 1 commit into
mainfrom
test/engine-info-drift

Conversation

@isayev

@isayev isayev commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

Non-breaking, test-only. Suite: 1757 passed, 1 skipped, 70 deselected.

A deliberate departure from the design spec

The spec for the registry said to move ENGINE_INFO into the registry entries
as info=, collapsing the third parallel list into the other two. On
reflection that is the wrong direction, and I did not do it.

ENGINE_INFO is presentation content — descriptions, reference URLs, prose
notes about which model suits which chemistry. model_factory is the engine
layer. Pushing display strings down two layers to remove a duplication trades a
checkable problem for a structural one.

Worth noting why the layer test wouldn't have caught it: the dependency
direction would have been fine, since the CLI reading from the engine layer
points downward. It is the content that would be in the wrong place, and no
mechanical check I have would say so.

The property, without the move

The failure ENGINE_INFO allowed is silent in the worst direction: register an
engine, forget the display entry, and it works perfectly while never appearing
in auto3d models list or models info. A user cannot discover it and nothing
says why.

That property doesn't require relocating anything. The two lists stay where they
belong and a test asserts they name the same set — in both directions, so an
engine with no metadata fails and metadata for a deleted engine fails.

Verified by mutation, not by reading: registering aimnet2-probe without an
entry, and adding a GHOST entry with no engine, each turn it red naming the
offender.

Item 5 is closed

Adding a model backend is one register() call plus its display entry, with a
test that refuses to let you forget the second. Adding an isomer backend is one
register() call plus its construction branch — which stays explicit on
purpose, so an argument no engine reads can't survive unnoticed.

Entry-point discovery and a public ModelAdapter remain out of scope, for the
reasons in #162: Auto3D already accepts third-party models by path, and freezing
ModelAdapter would block native_dtype for D4.

Item 5, last piece -- and a deliberate departure from what the design spec said
to do.

The spec proposed moving `ENGINE_INFO` into the registry entries as `info=`,
collapsing the third parallel list into the other two. On reflection that is the
wrong direction. `ENGINE_INFO` is presentation content -- descriptions,
reference URLs, prose notes about which model suits which chemistry -- and
`model_factory` is the engine layer. Pushing display strings down two layers to
remove a duplication trades a checkable problem for a structural one, and
`tests/test_layer_boundaries.py` exists to stop exactly that kind of drift
downward. It would have passed the layer test, since the dependency direction is
fine; it is the *content* that would be in the wrong place.

What the move was for is the property, and the property does not require the
move. The failure `ENGINE_INFO` allowed is silent in the worst direction:
register an engine and forget the display entry, and it works perfectly while
never appearing in `auto3d models list` or `models info`. A user cannot discover
it and nothing says why.

So the two lists stay where they belong and a test asserts they name the same
set, in both directions -- an engine with no display metadata fails, and
metadata for an engine that no longer exists fails too. Verified by mutation
rather than by reading: registering `aimnet2-probe` without an entry, and adding
a `GHOST` entry with no engine, each turn it red with the offending name.

This closes item 5. Adding a model backend is one `register()` call plus its
display entry, with a test that refuses to let you forget the second; adding an
isomer backend is one `register()` call plus its construction branch.

Suite: 1757 passed, 1 skipped, 70 deselected.
@isayev
isayev merged commit 0c6020e into main Aug 14, 2026
5 checks passed
@isayev
isayev deleted the test/engine-info-drift branch August 14, 2026 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant