Steer Protocol
Developer Guide

Signed Swap Operations Runbook

Operational procedures for rollout, monitoring, signer governance, and incident handling of signed quote mode.

Scope

This runbook covers Model 2 signed quote operations.

Core invariant:

  • no quote => pure AMM pass-through
  • valid quote => signed quote settlement
  • invalid supplied quote => revert (no same-transaction fallback)

Rollout Plan

  1. Configure and verify quoteSigner for each target collateral.
  2. Keep signedQuoteEnabled disabled while validating quote generation and signature pipeline in staging.
  3. Run canary traffic on a small collateral/pool set.
  4. Monitor quote rejection rates by reason before widening rollout.
  5. Maintain a fast rollback path (signedQuoteEnabled = false) per collateral.

Preflight Checklist

  • signer key custody and rotation owner are documented
  • quote service uses the correct chainId + verifyingContract
  • poolId derivation is validated against on-chain pool id
  • expiry uses Unix seconds (not milliseconds)
  • replay safeguards for derived replay keys are monitored
  • alerts configured for rejection spikes

Monitoring and Alerts

Track these metrics per collateral and pool:

  • signed-quote adoption rate (signed / total swaps)
  • rejection rate by error (SignedQuoteExpired, SignedQuoteReplay, etc.)
  • signer mismatch rate (SignedQuoteSignerMismatch / SignedQuoteSignerMissing)
  • policy violation rate (SignedQuotePolicyViolation)
  • expiry skew rate (quotes expiring before submission)

Suggested alert posture:

  • page on sustained rejection spikes
  • page on signer mismatch bursts
  • warn on increasing expiry failures

Incident Response

Signer compromise suspected

  1. Disable signed mode (signedQuoteEnabled = false) for affected collateral.
  2. Rotate signer (quoteSigner) to recovery key.
  3. Invalidate upstream quote issuance for compromised signer.
  4. Re-enable signed mode only after canary validation.

Quote service outage

  1. Stop routing signed quote requests from clients.
  2. Route pure AMM pass-through by omitting signed payloads.
  3. Track user-visible failure rates and latencies.
  4. Restore signed flow with canary traffic first.

Replay or malformed payload spike

  1. Inspect source clients and quote service payload construction.
  2. Confirm version and encoded payload shape in SDK.
  3. Tighten API validation at quote service boundary.
  4. Keep signed mode disabled if failures remain elevated.

Operator Actions by Error

ErrorTypical causeImmediate action
SignedQuoteExpiredstale submission or bad clockreduce TTL, sync clocks, refresh quote earlier
SignedQuoteReplaysigned price envelope reusedensure the quote service issues a fresh envelope for each successful swap attempt
SignedQuoteTraderMismatchwrong account bindingrebuild quote with exact trader address
SignedQuotePoolMismatchwrong pool idverify pool id derivation
SignedQuoteSignerMismatch / SignedQuoteSignerMissingbad signer config or stale signerverify quoteSigner, rotate if needed
SignedQuoteAmountLimitExceededswap size exceeds quote envelopeincrease quote bound or split order
SignedQuotePolicyViolationsigned value outside oracle policy envelopeinspect oracle state/policy and reprice
SignedQuoteModeDisabledmode offroute pure AMM or re-enable intentionally

Post-Incident Verification

  • rejection rates return to baseline
  • no abnormal signer mismatch bursts
  • quote service health checks stable
  • canary swaps settle cleanly in Model 2

See Also

On this page