Maintenance
Maintenance keeps the docs aligned with implementation, generated references, protocol changes, and operational evidence.
Maintenance Principles
- Treat docs as part of the product.
- Update docs in the same pull request as behavior changes where possible.
- Separate planned behavior from implemented behavior.
- Label local, testnet, staging, and mainnet evidence.
- Preserve historical conformance reports.
- Do not delete evidence unless it contains sensitive data.
Backend API Changes
When backend APIs change:
- Update OpenAPI generation.
- Import generated output into
generated/openapi/. - Update API reference pages.
- Update SDK docs if client behavior changes.
- Update frontend docs if UI behavior changes.
- Run generated-reference checks.
Affected pages may include:
- Facilitator API Reference
- Discovery API Reference
- Resources API Reference
- Payments API Reference
- MCP API Reference
Contract Interface Changes
When contract interfaces change:
- Run contract tests.
- Regenerate ABI/spec files.
- Regenerate TypeScript bindings.
- Import generated artifacts into
generated/contracts/. - Update contract reference pages.
- Update backend integration docs.
- Update deployment docs and contract ID records.
Affected pages may include:
Frontend UX Changes
When frontend workflows change:
- Update seller guide.
- Update buyer guide.
- Update agent guide if MCP inspection changes.
- Update operator guide if dashboard status changes.
- Update screenshots only as supporting material, not proof.
Frontend docs should keep network, asset, amount, recipient, status, and transaction hashes visible in payment-related workflows.
x402 And Stellar Updates
External protocol and package details can drift. Before publishing reference updates:
- Verify upstream x402 references.
- Verify Stellar x402 docs.
- Verify Stellar smart wallet docs if policy docs changed.
- Verify
@x402/stellarpackage behavior. - Update source links.
- Add compatibility notes.
Conformance Report Retention
Conformance reports should be retained as historical evidence.
Archive old reports by:
- Keeping report ID.
- Keeping date.
- Keeping environment.
- Keeping network.
- Keeping commit SHAs.
- Keeping status.
- Marking superseded reports as historical.
Do not overwrite old testnet reports with mainnet reports.
Release Checklist
Before a docs release:
npm run lint
npm run links
npm run check:generated
npm run check:content
npm run build
Also check:
- Generated references are current or clearly marked stale.
- External source links are current.
- No page implies official Stellar, SDF, or SCF endorsement.
- Testnet and mainnet evidence are separate.
- Known limitations are listed.
Recurring Tasks
Weekly or per milestone:
- Review open docs issues.
- Review generated reference freshness.
- Review dependency audit output.
- Review source links.
- Review conformance report status.
- Review public metrics freshness.
Ownership
Docs maintainers coordinate with:
- Backend maintainers for API and generated OpenAPI changes.
- Contract maintainers for ABI/spec and deployment changes.
- Frontend maintainers for workflow changes.
- Operators for runbooks, incidents, and monitoring.
- Security reviewers for threat model and disclosure updates.