THE GITHTML FIELD GUIDE

A third-party SDK integration contract for maintainers

Document a third-party SDK integration around the boundary between your application and the vendor: versions, initialization, inputs, outputs, permissions, failure behavior, and ownership. Separate verified vendor guarantees from application decisions. Include how the integration is disabled or replaced so the document remains useful beyond the first successful setup.

Name the integration's purpose and boundary

State the user task the SDK supports and which application component owns the integration. Identify the exact package and supported version range, but do not infer behavior solely from semantic version labels. List the data passed to the SDK and the results the application consumes, using categories rather than real user payloads. Record external services and permissions involved. Keep unrelated product architecture out of this document. The reader should be able to answer why the dependency exists, what crosses its boundary, and which part of the application must change if the vendor contract changes.

Describe lifecycle and failure decisions

Use the scaffold below to record initialization timing, configuration sources, ownership of callbacks or resources, shutdown behavior, and error handling. Link the vendor's current documentation for guarantees and mark application-specific choices separately. An SDK example may demonstrate a happy path without defining what your app does when initialization fails or connectivity disappears. Include those decisions explicitly. Record whether calls can be retried, canceled, or repeated only when the relevant contract is verified. Keep credentials and private account identifiers out of the record. A maintainer should not need access to production secrets to understand the integration's structure.

text
Integration purpose:
Package and verified version:
Application owner:
Initialization and shutdown:
Inputs / outputs / permissions:
Vendor guarantees with sources:
Application failure policy:
Safe test fixture:
Disable or replacement path:
Upgrade review trigger:

Make the handoff useful for upgrades and removal

Include a safe test fixture, the critical behaviors it checks, and the expected observation when the integration is unavailable. Identify the owner who reviews vendor changes and the evidence required before an upgrade. Document the supported disable or replacement path without implying that removing a package automatically removes all data or service-side configuration. Record unresolved risks and external coordination requirements. Revisit the document when initialization, data collection, permissions, or supported platforms change. The contract is not a generic setup tutorial; it is a maintained boundary description that helps a future engineer change the integration without rediscovering every assumption through trial and error. Include a short example of a vendor-contract change that would require review, such as a new required permission or changed callback lifecycle. This makes maintenance responsibility concrete rather than merely assigning a name.

  1. Identify purpose, package version, application owner, and data crossing the boundary.
  2. Separate vendor guarantees from application lifecycle and failure decisions.
  3. Provide safe fixtures for normal operation and unavailable-dependency behavior.
  4. Record upgrade ownership and the limits of disabling or removing the integration.

Sources and further reading

AI-assisted writing with source-linked guidance and illustrative examples. Read our editorial approach or report a correction.

All documentation templates guides →

Read as MarkdownAll guides

A third-party SDK integration contract for maintainers · gitHtml