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-common-errorsAnalyze and resolve Ramp API failures using status, error_v2, x-trace-id, OAuth scope, and retry safety. Use when an integration returns 400, 401, 403, 404, 422, 429, 5xx, or 504. Trigger with "Ramp API error" or "Ramp forbidden".
Independent GitHub snapshot · Automated classification · Original documentation governs
Turn a failing request into a sanitized, reproducible diagnosis. Separate permanent request or authority failures from transient service conditions before retrying anything.
references/official-docs.md and re-check endpoint schemas, scopes, limits, and support status before a live operation.error_v2.error_code, additional_info, and a user-facing message.x-trace-id; preserve it for correlation and support without logging authorization or sensitive payloads.Capture method, sanitized URL, status, response class, x-trace-id, attempt count, environment, grant type, and requested scope without recording secrets or raw sensitive bodies.
Validate the request against the current endpoint schema, including required and nested fields; never rely on an unknown field being ignored.
For 401, refresh or reacquire the appropriate token once. For 403, compare configured scopes, token-bound scopes, app grant, user role, entity access, and endpoint authority.
For 429, 5xx, or 504, retry only idempotent reads or writes protected by an idempotency key, using bounded exponential backoff and jitter.
Reproduce in sandbox with the smallest sanitized request, preserve the trace ID and outcome, and escalate persistent vendor-side failures with the evidence bundle.
The integration owner approves any request correction. Security approves credential rotation; finance or workflow owners approve replay of a write with business effects.
A failure classification, sanitized reproducer, trace ID, authority comparison, retry/replay decision, fix, and post-fix verification.
| Condition | Response |
|---|---|
| A body contains financial or personal data | Store only a redacted field inventory and one-way identifiers; do not paste the body into tickets. |
| A write timed out after submission | Reconcile the resource or deferred task before retrying; use the original idempotency key. |
| The same call alternates 401 and 403 | Verify environment and token provenance before changing scopes or roles. |
Diagnose a 403 transaction read by comparing transactions:read, the token's environment, and the authorizing user's access.
Triage a 504 accounting export, reconcile whether the sync receipt exists, then retry only the uncommitted idempotent unit.
x-trace-id but no secret or sensitive business payload.