- use
@praxa/sdkwith a deployment-specific Integration Gateway; - use Node.js
fetchwith the public Execution Fabric API.
Prerequisites
- Node.js 20 or newer
- TypeScript with ESM (
NodeNextorESNext) - either a Gateway origin and delegated OAuth token, or a personal Execution Fabric API key
Path A: Integration Gateway SDK
src/mission.ts
Path B: Execution Fabric
src/task.ts
202
response proves durable admission, not task completion.
Add a terminal readback
execute:write for admission and runs:read for readback.
Test with native fakes
Use Node’s test runner and injectfetch into your own client wrapper. Assert:
- exact URL, method, header, and body;
- one stable key for repeated logical input;
- no token in returned values or logs;
401,403,409,429, and network errors remain distinguishable;- polling stops only at a public terminal state.
Troubleshooting
Best practices
- Reuse one configured SDK or HTTP client per process.
- Keep all credentials in the server runtime.
- Use
AbortSignaland an overall deadline. - Redact authorization and customer payloads from telemetry.
- Bound concurrency and respect
429responses. - Reconcile every ambiguous mutation through exact replay or readback.
Next.js
Put the TypeScript client behind an authenticated App Router boundary.
Nuxt
Use a Nitro server route and private runtime config.
Optimize for production
- Reuse one configured HTTP or SDK client per process and bound concurrent upstream work.
- Prefer durable admission plus asynchronous readback over holding application requests open.
- Cache only non-sensitive, tenant-scoped reads within their documented freshness window.
- Measure p50/p95 latency, admission-to-terminal time, retries, conflicts, and connection reuse before tuning.
Cleanup and next steps
- Revoke the disposable Praxa key and require a later request to fail.
- Remove synthetic application records and any temporary environment files.
- Cancel or archive unresolved test runs according to the application policy.
- Retain only redacted request, run, and verification identifiers needed for the test record.