executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
ramp-cost-tuningReduce Ramp integration workload and operating cost without losing financial completeness. Use when polling, storage, retries, or accounting synchronization consumes excessive capacity. Trigger with "optimize Ramp sync cost" or "reduce Ramp API calls".
Independent GitHub snapshot · Automated classification · Original documentation governs
Cost tuning is a correctness exercise: remove redundant retrieval, not evidence. Establish a complete baseline, shift change detection to webhooks where supported, and preserve periodic reconciliation for missed or non-evented changes.
references/official-docs.md and re-check endpoint schemas, scopes, limits, and support status before a live operation.synced_after covers accounting sync events, not every transaction update.Measure requests, pages, transferred bytes, retries, storage growth, reconciliation lag, webhook volume, and operator toil by endpoint and entity.
Classify each poll as initial seed, supported incremental read, unsupported change detection, recovery reconciliation, or waste.
Replace eligible near-real-time polling with scoped webhooks and a durable deduplicating queue; retain scheduled reconciliation for gaps.
Use maximum safe page sizes, endpoint filters with verified semantics, bounded concurrency, conditional local reads, and batch operations where documented.
Compare pre/post completeness, latency, error rate, API demand, infrastructure cost, and recovery time before accepting the change.
Data and accounting owners approve any freshness or retention change. Platform owners approve queue, schedule, and capacity changes; vendor limit increases require a documented support request.
A cost baseline, endpoint demand map, proposed changes, completeness guardrails, benchmark results, rollback thresholds, and accountable owners.
| Condition | Response |
|---|---|
| Request count drops but records go missing | Roll back and reconcile the full affected window; the optimization failed its correctness gate. |
| A filter name looks incremental | Verify its exact semantics in first-party docs before using it as a checkpoint. |
| Webhook volume spikes | Backpressure the consumer and deduplicate; do not discard events or disable reconciliation silently. |
Replace five-minute bill polling with bill webhooks plus a nightly entity-scoped reconciliation.
Persist a transaction seed locally and eliminate repeated full-history downloads while retaining a documented re-seed path.