Runbook
This runbook contains repeatable operator procedures for LumenBazaar deployments. Keep commands implementation-specific once the backend, frontend, contracts, and docs repos publish their final scripts.
Procedure Rules
- Identify environment before acting: local, testnet, staging, or mainnet.
- Identify network before payment actions:
stellar:testnetorstellar:pubnet. - Capture timestamps, commit SHAs, deployment IDs, and run IDs.
- Prefer disabling unsafe paths before restoring availability.
- Never paste private keys, seed phrases, bearer tokens, or production credentials into issue comments or public logs.
Deploy Backend API
Checklist:
- Confirm target environment.
- Confirm backend commit SHA.
- Confirm database migrations have been reviewed.
- Confirm environment variables are present.
- Confirm supported networks and assets.
- Deploy API service.
- Run health check.
- Run
/v1/supported. - Run smoke verification against testnet or staging fixtures.
- Confirm metrics are flowing.
Evidence:
- Deployment ID.
- Commit SHA.
- Health result.
/v1/supportedoutput.- Smoke test output.
Deploy Worker
Checklist:
- Confirm worker commit SHA matches backend API compatibility.
- Confirm Redis and database connectivity.
- Deploy worker service.
- Confirm queue consumers are active.
- Confirm dead-letter queue is empty or understood.
- Process a test job where safe.
- Confirm metrics.
Worker queues:
settlement-confirmation-worker
resource-indexing-worker
search-sync-worker
conformance-runner-worker
network-health-worker
receipt-finalizer-worker
stale-payment-cleanup-worker
Deploy MCP Server
Checklist:
- Confirm MCP server commit SHA.
- Confirm backend API URL.
- Confirm budget policy configuration.
- Start MCP server.
- Call
list_supported_networks. - Call
search_paid_resourceswith a safe test query. - Confirm tool errors are deterministic.
Disable call_paid_resource if payment safety is unclear.
Deploy Frontend
Checklist:
- Confirm frontend commit SHA.
- Confirm API URL.
- Confirm default network.
- Confirm mainnet feature flags.
- Deploy frontend.
- Open dashboard.
- Check explore, seller onboarding, payment playground, transactions, operator health, and conformance views.
The frontend must display network, asset, amount, recipient, status, and transaction hashes where available.
Deploy Docs
Checklist:
- Confirm docs commit SHA.
- Run lint.
- Run link checks.
- Run production build.
- Confirm no docs claim official Stellar, SDF, or SCF endorsement.
- Deploy docs site.
- Check navigation and generated references.
Local checks:
npm run lint
npm run links
npm run build
Database Migration Procedure
Checklist:
- Review migration diff.
- Confirm backup exists for production.
- Confirm migration has been tested on an empty database.
- Confirm migration has been tested on representative existing data.
- Deploy migration during maintenance window if needed.
- Run application smoke tests.
- Confirm payment, settlement, discovery, and receipt queries.
Rollback planning is required before production migrations.
Contract Deployment Procedure
Checklist:
- Run
cargo test. - Build contract.
- Generate ABI/spec files.
- Generate TypeScript bindings if needed.
- Deploy locally.
- Run local smoke test.
- Deploy to testnet.
- Record contract ID.
- Record transaction hash.
- Update docs and backend configuration.
Mainnet contract deployment requires audit readiness and operator sign-off.
Rollback Procedure
For service rollback:
- Identify the bad deployment.
- Identify affected environment and network.
- Disable unsafe actions if needed.
- Roll back to last known-good commit or image.
- Verify health.
- Verify payment safety.
- Verify worker queues.
- Publish status update if user-facing.
For mainnet payment concerns, disable settlement before experimenting.
Worker Restart Procedure
Checklist:
- Check queue depth.
- Check active jobs.
- Check failed jobs.
- Stop worker gracefully.
- Start worker.
- Confirm consumers are active.
- Confirm no duplicate settlement attempts.
- Monitor job processing.
Settlement jobs must be idempotent.
Search Reindex Procedure
Checklist:
- Identify affected resource range.
- Confirm source resource metadata versions are valid.
- Pause cataloging if poisoning is suspected.
- Rebuild search documents.
- Confirm filters and ranking.
- Clear
partialResultsonly when indexing is complete.
Conformance Rerun Procedure
Checklist:
- Confirm target environment.
- Confirm network.
- Confirm facilitator URL.
- Run
/v1/supportedcheck. - Run
/v1/verifycheck. - Run
/v1/settlecheck. - Record exact scheme result.
- Record
uptoresult only after contract integration exists. - Store conformance run ID.
- Publish report.
Emergency Disablement
Operators should be able to disable:
- Mainnet verification.
- Mainnet settlement.
- Affected asset.
- Affected seller.
- Affected resource.
- Cataloging.
- MCP paid calls.
Uptosession creation.Uptosettlement.
Disablement should be reversible, logged, and visible in operator status.
Post-Change Verification
After any operational change, run:
- Health checks.
- Network support checks.
- Metrics checks.
- Worker checks.
- Discovery search checks.
- Receipt fetch checks.
- Conformance checks where relevant.
Store evidence with the incident, deployment, or release record.