Catalog
affaan-m/agent-runtime-gateway-smoke-test

affaan-m

agent-runtime-gateway-smoke-test

Verify a local agent API, temporary gateway tunnel, and remote sandbox callback with a tool-free task, then restore the original app connection.

v1.0LATEST
NewUpdated Oct 12, 2026

Agent Runtime Gateway Smoke Test

Use this workflow when an agent task runs in a remote sandbox that calls back to a local API through a gateway. It verifies the whole path without relying on connected tools or private production data.

When to Activate

  • A local agent API needs an end-to-end runtime check.
  • A task stalls after dispatch and the gateway or tunnel may be unreachable.
  • A web app is temporarily pointed at a local API for agent testing.
  • A previous test left the web app pointing at a stopped API.

Required Inputs

  • Repository-relative instructions for starting the API and web app.
  • The gateway route path and its expected anonymous response.
  • An isolated test agent, a tool-free prompt, and its exact expected answer.
  • A way to inspect task status and confirm a callback reached the local API.
  • Provider credentials, supplied through the project's normal secret store. Name the providers in shared documentation; never copy credential values into the skill or test report.

If these inputs are unavailable, report the missing input instead of guessing an endpoint or using a real account.

Authorization and Cleanup

Confirm authorization to expose the local test API through the selected tunnel provider, dispatch the test task, and temporarily change the web app route. Use an isolated local web app or test deployment; do not switch a shared production app as part of this smoke test. Keep tunnel access scoped to the required authenticated route.

Install cleanup before changing the route: on success, error, timeout, interruption, or cancellation, restore the recorded target and verify health before stopping the API and tunnel. Track only the process IDs or resources created by this test. If restoration fails, report it immediately and keep the evidence needed to recover; do not claim success.

Smoke Test

  1. Record and check the original route. Note the web app's current API target and verify it is healthy. Keep this value locally for restoration. Confirm the test agent and data are isolated from real users.
  2. Start the local API and tunnel. Use a process manager that will keep both alive for the full test. Verify API health. Probe the gateway route anonymously and confirm the documented authentication response, usually 401 or 403. Confirm the probe appears in the local API log; an edge response alone does not prove the API was reached.
  3. Switch the web app only after both checks pass. Verify a request from the web app reaches the local API. Check the route again after any web server restart or configuration reload.
  4. Run one tool-free task. Use a short prompt with an exact expected answer. Confirm the remote sandbox called the local gateway, the task reached a terminal state, and the returned answer matches. A queued or running task is not a pass.
  5. Restore the original route. Set the web app back to its recorded API target, verify that target and a representative page load, then stop the test API and tunnel. If restoration fails, report the broken route immediately.

Example checks, with values supplied by the project:

curl --silent --show-error --output /dev/null --write-out '%{http_code}\n' "$LOCAL_API_HEALTH_URL"
curl --silent --show-error --output /dev/null --write-out '%{http_code}\n' "$PUBLIC_GATEWAY_PROBE_URL"

The first command should return the project's healthy status. The second should return the documented anonymous authentication status and appear in the local API log. Do not put a credential in either URL.

Connected Tool Follow-up

Run a separate test only after the tool-free task passes. Use an explicit test connection and grants. Report connection presence and actions granted as different facts. Do not infer that an empty action search means no app is connected. Do not execute a write action against a real account as a smoke test.

Failure Handling

Observation Next check
Web page loads but API requests fail Compare the configured API target with the listening process and restore the original route.
Gateway probe gets a connection error or 404 Check tunnel lifetime, route path, and local API health before dispatching a task.
Gateway probe gets 401 or 403, but no local log entry The response may come from the tunnel edge; verify the callback path.
Task stays queued or running Check whether another dispatcher claimed it and whether the sandbox reached the local gateway.
Task finishes with the wrong answer Capture the task status and redacted error; do not call the smoke test successful.

Output Contract

Return a short report with:

  • Local API healthy: yes or no
  • Gateway probe status and local log confirmation
  • Remote callback observed: yes or no
  • Tool-free task terminal status and whether the exact answer matched
  • Original web API route restored and healthy: yes or no
  • One unresolved blocker or next action, if any

Keep account details, credential values, personal paths, public tunnel URLs, and raw private logs out of the report. Keep the source operator notes local.

  • hermes-imports for sanitizing a local workflow before sharing it.
  • agent-introspection-debugging when an agent run fails repeatedly.
  • verification-loop after changing runtime code.
Files1
1 files · 1.0 KB

Select a file to preview

Overall Score

88/100

Grade

A

Excellent

Grades are signals, not a certification. Always review a skill yourself before use.

Safety

92

Quality

86

Clarity

89

Completeness

82

Summary

This skill provides a structured end-to-end verification workflow for testing an agent's capability to dispatch tasks through a local API tunnel and receive callbacks from a remote sandbox. It guides operators through health checks, safe isolation, temporary routing changes, and restoration with minimal blast radius and explicit cleanup guardrails.

Detected Capabilities

Process management (start/stop API and tunnel)HTTP probing and response status inspectionConfiguration read/write (web app routing targets)Local API log inspectionEnvironment variable access (for credentials reference)Structured reporting

Trigger Keywords

Phrases that agents use to match this skill to user intent.

smoke test agent runtimeverify gateway tunnel callbacklocal api sandbox testtest agent dispatchend-to-end gateway verification

Risk Signals

INFO

Temporary modification of web app routing target during test

Smoke Test § 3 and § 5
INFO

Access to local API health and gateway probe URLs via environment

Required Inputs and Example checks
INFO

Credential reference in shared documentation (not embedded in skill)

Required Inputs

Use Cases

  • Verify local agent API reachability through gateway tunnel before production deployment
  • Diagnose task dispatch failures when gateway or callback path is suspect
  • Validate sandbox-to-local-API callback connectivity in isolated test environment
  • Recover from broken routing after a previous test left web app pointing at stopped API
  • End-to-end smoke test of agent runtime without relying on connected tools or real data

Quality Notes

  • Excellent scope boundaries: explicitly restricts to isolated test environment and prohibits production app switching
  • Strong authorization and cleanup section with specific guardrails—mandatory restoration on all exit paths (success, error, timeout, interruption)
  • Comprehensive failure handling table maps specific symptoms to diagnostic next steps
  • Clear output contract specifies what to redact (credentials, personal paths, tunnel URLs, raw logs) to prevent secret leakage
  • Security-conscious design: tool-free task avoids connected tool risk, anonymous gateway probe verifies tunnel without credentials, isolated test data
  • Well-structured workflow with explicit checkpoints (record original → start API/tunnel → switch route → run task → restore → verify)
  • Related Skills section contextualizes this workflow within a broader testing strategy
  • Example curl commands are safely templated with environment variable placeholders—demonstrates pattern without hardcoding
  • Prerequisite validation step ('If inputs unavailable, report missing input') prevents blind guessing of endpoints
  • Detailed authorization requirement prevents unauthorized exposure of local test API
Model: claude-haiku-4-5-20251001Analyzed: Oct 12, 2026

Reviews

Add this skill to your library to leave a review.

No reviews yet

Be the first to share your experience.

Use affaan-m/agent-runtime-gateway-smoke-test in your dev environment

Command Palette

Search for a command to run...