Skip to content

Trinity 0.3.0

Latest

Choose a tag to compare

@XiONDiGiTaL XiONDiGiTaL released this 30 Nov 04:05
· 1 commit to main since this release

Trinity 0.3.0

This release adds trinity.registry, a production-ready plugin-to-plugin
interface registry, and the separate native provider/consumer examples and
tests that exercise it across module boundaries.

Artifacts

  • Trinity-v0.3.0-windows-x64.zip — TrinityCore/exefs/Trinity.dll plus the
    NXP and registry C headers
  • Trinity-v0.3.0-linux-x64.tar.gz — TrinityCore/lib/libTrinity.so plus the
    NXP and registry C headers
  • SHA256SUMS and release.json

Registry

  • One process-wide registry owned by the loaded Trinity.dll /
    libTrinity.so; no plugin embeds a second table.
  • NXP access through host->get_interface(host, "trinity.registry", 1) and
    legacy access through the exported trinity_get_interface.
  • Windows discovery through the already-loaded Trinity.dll; Linux discovery
    through RTLD_NOLOAD and a dl_iterate_phdr fallback. The client never loads
    a second Trinity.
  • First registration wins; identical re-registration is idempotent; conflicts
    are rejected; lookup uses a minimum compatible version; enumeration supports
    capacity and stride; withdrawal is owner-only and does not invalidate table
    pointers or registry strings already returned.
  • Provider names are canonical <owner>.<project>; interface names add at
    least one local segment. trinity., nxp., host prefixes and reserved first
    segments stay protected. Third-party provider namespaces are accepted as a
    cooperative, process-local claim and documented as not authenticated.
  • The registry is internally thread-safe and never holds its lock while calling
    a host log callback.
  • NXP descriptors gained an appended optional early callback. The adapter's
    nxmod_early export is opt-in with NXP_ENABLE_EARLY to avoid shadowing a
    plugin's existing export.
  • Trinity Core's panel shows generation, active provider/interface/version
    records and recent rejected registrations.

The new guide is REGISTRY.md. It includes complete provider and
consumer examples, pointer lifetime, concurrency, initialization-order limits,
discovery and error codes. The prefix policy is updated in
PREFIXES.md. The NXP guide is updated in NXP.md.

Examples and tests

The separate modules are:

examples/registry_provider/   legacy NxModApi provider
examples/registry_consumer/   NXP consumer

The build produces separate DLLs/shared objects and a cross-module harness. It
loads Trinity, the provider and the consumer as distinct native modules and
checks missing-Trinity retry, early registration, the exported lookup path,
size/version validation, rejection, withdrawal and duplicate-load prevention.

CTest now has eight cases: the registry state machine, the cross-module
harness, the NXP host harness, the demo host harness, and compatibility-adapter
mappings for API 3, 4, 5 and 6. All eight pass on Windows x64 and Linux x64.
The state-machine suite covers nulls, invalid/reserved names, idempotence,
conflicts, version compatibility, unauthorized withdrawal, generation,
enumeration capacity/stride, pointer stability and concurrent
registration/lookup/withdrawal.

Verification level

  • Compiled and linked: Windows x64 and Linux x64.
  • Unit/state-machine tests: passed on both.
  • Native module loading and runtime lookup through the exported function and
    the NXP host path: passed on both in the separate-module harness.
  • Game runtime: the 0.2.0 payload remains the last package loaded by the three
    host runtimes. The registry was not driven by a game runtime or a host
    launcher in this workspace, and the panel's registry section was not visually
    inspected. The in-process harness is not a gameplay test.
  • Early registration: proven when Trinity is already loaded. A provider whose
    folder sorts before TrinityCore cannot register from nxmod_early because
    the module is not loaded yet; it must retry at nxmod_init. That limitation
    is documented, not hidden.

The existing 0.2.0 host evidence is unchanged in
COMPATIBILITY.md; new claims are appended with their exact
level.

SHA-256

ed4c7797f73d120bbf1cbf7c0f0f0757543b0e7dd2312b83184d0950b94e26a0  Trinity-v0.3.0-windows-x64.zip
eef72e3daef381fd0681678f6e49f52591d9ac8084f16a957283029283cf8c39  Trinity-v0.3.0-linux-x64.tar.gz

The archives are produced by tools/package_release.py; the release also
publishes SHA256SUMS and release.json.