registerModule
Registers one ai.module source.
Repeating the same revision and source is idempotent. Changing source requires a strictly newer revision. The candidate graph and all affected compositions validate before this method replaces the current entry.
public LuaMindModuleDescriptor registerModule(String expectedIdentifier, long expectedRevision, String sourceName, String source)
Registers a module only when its Lua-declared identity matches the caller's catalog identity. A mismatch leaves the owner catalog unchanged.