SDK Versioning and API Compatibility Management
Research status: Theoretical SDK design. Examples are illustrative and have not been built or tested against the live engine.
Independent version axes
The SDK package version, engine API version and wallet birth-law identity represent different contracts. A new SDK release does not modify an existing wallet fee law. Maintain a compatibility matrix based on verified engine deployments rather than assuming all versions sharing an API prefix behave identically. Discovery can establish advertised capabilities but not prove every operation works. Unknown or unsupported capabilities must fail explicitly.
Conceptual TypeScript manifest
type Compatibility = {
sdkVersion: string;
apiContract: string;
evidence: "planned" | "verified";
testedOperations: string[];
};This is package metadata, not an engine endpoint. Keep planned compatibility distinct from verified compatibility. Record the exact tested revision and date in release evidence. A new optional response field can be tolerated by a decoder, while a missing required field or changed amount semantics must be treated as a contract failure. Do not silently translate a changed fee policy or substitute another network.
Release and migration policy
Use semantic versioning for the public SDK interface: incompatible changes require a major release, backward-compatible additions a minor release, and compatible fixes a patch. This policy does not imply that engine releases follow the same scheme. Document deprecations, supported runtime versions and migration examples. Persisted operation records require schema migrations that preserve identifiers and unresolved payment states. Rollback must not replay previously dispatched sends. Keep wire adapters isolated from specialized commerce and agent layers so compatibility fixes do not rewrite business logic.
Acceptance plan
Run old and new SDK versions against shared fixtures and approved live environments. Test unknown optional fields, changed required fields, unavailable capabilities and migration of pending operations. Publish a compatibility matrix only after tests complete. If an engine contract cannot be established, disable the affected operation rather than claiming compatibility.
Primary reference
https://thamer.org/api
Related reading
https://thamer.org/docs/wab-sdk-cross-language-interfaces
https://thamer.org/docs/wab-sdk-typed-json-contracts
https://thamer.org/docs/wab-sdk-immutable-fee-policy
