Contract tests
The contract suite keeps adapter behavior aligned with the shared lifecycle:
registryDerivation.test.tsdefends derived capability registry membership and ordering.adapterPathContract.test.tsdefends generated-source/path agreement.- Adapter-specific hook tests defend target reload, pointer, package, and environment behavior.
selectApply.test.tsdefends sequential application and partial-failure persistence.themeGenerator.test.tscovers shared generation/application behavior.atomicWrite.test.tsdefends same-directory atomic-write and copy invariants.
New adapters should add tests for every overridden capability, path, gate, extra file, or hook—not only snapshot their output.