@execlave/sdk 1.9.0 → 1.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -76,24 +76,57 @@ await exe.shutdown();
76
76
 
77
77
  > **Important:** tracing alone does NOT block LLM calls. Trace ingestion creates incidents post-hoc. To block requests before they reach the LLM, you MUST call `exe.enforcePolicy()` and handle `PolicyBlockedError` as shown above. The `enableInjectionScan` option only tags traces with an injection score — it does not block.
78
78
 
79
+ ## Workload identity (no API key)
80
+
81
+ From 1.10.0 an agent running in Azure can authenticate with its Microsoft Entra
82
+ workload identity instead of an API key. Bind the agent to the identity first
83
+ ([IAM binding docs](https://www.execlave.com/docs/governance/iam-binding)), then
84
+ pass a function that returns a fresh Entra token:
85
+
86
+ ```typescript
87
+ import { DefaultAzureCredential } from '@azure/identity';
88
+ import { Execlave } from '@execlave/sdk';
89
+
90
+ const azure = new DefaultAzureCredential();
91
+ const exe = new Execlave({
92
+ credentialProvider: async () =>
93
+ (await azure.getToken('api://<API app client ID>/.default')).token,
94
+ });
95
+
96
+ // Names the bound agent in this client; creates nothing.
97
+ await exe.registerAgent({ agentId: 'support-bot', name: 'Support bot' });
98
+ ```
99
+
100
+ The SDK exchanges the token for a short-lived `exe_agt_` API credential,
101
+ exchanges again a minute before it expires, and sends it as the bearer. One
102
+ client acts for exactly one agent. Enforcement, traces, heartbeats, the kill
103
+ switch (polling and WebSocket), approvals, `authorizeAgentCall`,
104
+ `getAgentCredential` and bypass reports work with it; `discoverAgents`,
105
+ `checkUsage`, `reportAgentMetadata`, `reportToolBaseline` and prompt management
106
+ need an API key. A token the exchange refuses makes `enforcePolicy` throw
107
+ `ExeclaveAuthError` (never fail-open); an exchange or Entra outage follows
108
+ `enforcementOnOutage`. Not available with `apiKey` or `mode: 'otlp'`.
109
+
79
110
  ## Configuration
80
111
 
81
- | Option | Type | Default | Description |
82
- | -------------------------- | ----------------- | -------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
83
- | `apiKey` | `string` | `EXECLAVE_API_KEY` env | API key (`exe_prod_xxx`) |
84
- | `baseUrl` | `string` | `https://api.execlave.com` | Execlave API URL |
85
- | `environment` | `string` | `production` | Deployment environment |
86
- | `asyncMode` | `boolean` | `true` | Buffer traces for background flush |
87
- | `batchSize` | `number` | `100` | Max traces per flush batch |
88
- | `flushIntervalMs` | `number` | `10000` | Background flush interval |
89
- | `debug` | `boolean` | `false` | Enable debug logging |
90
- | `enableControlChannel` | `boolean` | `true` | Poll agent status for kill-switch |
91
- | `pollIntervalMs` | `number` | `15000` | Status poll interval |
92
- | `enableInjectionScan` | `boolean` | `true` | Client-side injection scoring; tags traces with metadata. **Does NOT block LLM calls** — use a `block`-mode injection policy + `enforcePolicy()` to block. |
93
- | `enforcementOnOutage` | `string` | `fail_open` | Behavior when enforcement API is unreachable: `fail_open` allows the call, `fail_closed` raises `EnforcementUnavailableError`. |
94
- | `onEnforcementBypassed` | `(event) => void` | -- | Called once for every call that ran without a server enforcement decision (network error, 5xx, circuit breaker open, or plan limit under fail-open). |
95
- | `reportBypassesToPlatform` | `boolean` | `true` | Also record each ungoverned window (coalesced per agent and reason) in your organisation's audit log as `enforcement.bypassed`. Set `false` to keep only the local callback. Requires 1.8.0+ and a platform that supports it. |
96
- | `policyCacheTtlMs` | `number` | `60000` | TTL for cached policy decisions |
112
+ | Option | Type | Default | Description |
113
+ | -------------------------- | --------------------------------- | -------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
114
+ | `apiKey` | `string` | `EXECLAVE_API_KEY` env | API key (`exe_prod_xxx`). Not used with `credentialProvider` |
115
+ | `credentialProvider` | `() => string \| Promise<string>` | -- | Authenticate as one agent with an identity provider token instead of an API key; see [Workload identity](#workload-identity-no-api-key). 1.10.0+ |
116
+ | `baseUrl` | `string` | `https://api.execlave.com` | Execlave API URL |
117
+ | `environment` | `string` | `production` | Deployment environment |
118
+ | `asyncMode` | `boolean` | `true` | Buffer traces for background flush |
119
+ | `batchSize` | `number` | `100` | Max traces per flush batch |
120
+ | `flushIntervalMs` | `number` | `10000` | Background flush interval |
121
+ | `debug` | `boolean` | `false` | Enable debug logging |
122
+ | `enableControlChannel` | `boolean` | `true` | Poll agent status for kill-switch |
123
+ | `pollIntervalMs` | `number` | `15000` | Status poll interval |
124
+ | `enableInjectionScan` | `boolean` | `true` | Client-side injection scoring; tags traces with metadata. **Does NOT block LLM calls** — use a `block`-mode injection policy + `enforcePolicy()` to block. |
125
+ | `enforcementOnOutage` | `string` | `fail_open` | Behavior when enforcement API is unreachable: `fail_open` allows the call, `fail_closed` raises `EnforcementUnavailableError`. |
126
+ | `onEnforcementBypassed` | `(event) => void` | -- | Called once for every call that ran without a server enforcement decision (network error, 5xx, circuit breaker open, or plan limit under fail-open). |
127
+ | `reportBypassesToPlatform` | `boolean` | `true` | Also record each ungoverned window (coalesced per agent and reason) in your organisation's audit log as `enforcement.bypassed`. Set `false` to keep only the local callback. Requires 1.8.0+ and a platform that supports it. |
128
+ | `onTraceRejected` | `(rejections) => void` | -- | Called with each trace the platform refused (`{ traceId, code?, message }`), for example `OUTCOME_EVIDENCE_REQUIRED` for a strict agent. A refused trace is never resent. Without a handler the SDK writes to `console.error`. 1.9.0+. |
129
+ | `policyCacheTtlMs` | `number` | `60000` | TTL for cached policy decisions |
97
130
 
98
131
  ## API Reference
99
132
 
@@ -106,7 +139,8 @@ await exe.shutdown();
106
139
  - `startTrace(opts)` — Start a manual trace (post-hoc; does not block)
107
140
  - `wrap(fn, opts)` — Wrap a function with automatic tracing
108
141
  - `checkAgentStatus(agentId?)` — Get agent status
109
- - `flush()` — Flush buffered traces
142
+ - `flush()` — Flush buffered traces. Resolves to `{ sent, rejected, undelivered }` (1.9.0+): `rejected` lists traces the platform refused and did not store.
143
+ - `resolveTrace(traceId, { resolvedStatus, basis, effectRef?, acknowledgementId?, detail?, observedAt? })` — Append a later observation about a trace whose effect was unconfirmed. Never rewrites the trace.
110
144
  - `shutdown()` — Flush and shut down
111
145
 
112
146
  ### Errors
@@ -133,6 +167,29 @@ await exe.shutdown();
133
167
  - `setCost(usd)` — Set cost (chainable)
134
168
  - `addMetadata(meta)` — Add metadata (chainable)
135
169
  - `finish(status?, error?, errorType?)` — Submit the trace
170
+ - `finish({ status, errorMessage?, errorType?, effectEvidence? })` — Submit with evidence of the action's effect (1.8.0+)
171
+
172
+ ## Effect evidence
173
+
174
+ An accepted request is not a performed action. Say how you know what you report, and report `effect_unconfirmed` when the target accepted but nobody saw it happen:
175
+
176
+ ```ts
177
+ const job = await payments.refund(orderId, amount); // 202 + job id
178
+ trace.finish({
179
+ status: 'effect_unconfirmed',
180
+ effectEvidence: { basis: 'acknowledgement', acknowledgementId: job.id },
181
+ });
182
+
183
+ // Later, when you learn the outcome:
184
+ await exe.resolveTrace(trace.traceId, {
185
+ resolvedStatus: 'success',
186
+ basis: 'callback',
187
+ acknowledgementId: job.id,
188
+ effectRef: 'refund_8Hc2',
189
+ });
190
+ ```
191
+
192
+ `basis` is `read_back` or `callback` (confirmation; needs `effectRef` or `acknowledgementId`), `acknowledgement` or `none` (not confirmation). An agent whose outcome strictness is `strict` has every `success` without `read_back` or `callback` evidence refused with `OUTCOME_EVIDENCE_REQUIRED`; handle it in `onTraceRejected`. See [Effect Confirmation](https://www.execlave.com/docs/governance/effect-confirmation).
136
193
 
137
194
  ## Zero Dependencies
138
195
 
package/dist/client.d.ts CHANGED
@@ -42,7 +42,10 @@ export declare function formatLogMessage(msg: string, args: unknown[]): string;
42
42
  * ```
43
43
  */
44
44
  export declare class Execlave {
45
+ /** Empty when authenticating with `credentialProvider`. */
45
46
  private _apiKey;
47
+ /** Set when authenticating as one agent with workload identity federation. */
48
+ private _credentials;
46
49
  private _baseUrl;
47
50
  private _apiVersion;
48
51
  private _environment;
@@ -98,6 +101,12 @@ export declare class Execlave {
98
101
  /**
99
102
  * Register (or re-register) an AI agent. Idempotent — call on startup.
100
103
  *
104
+ * With `credentialProvider` nothing is created: the agent already exists and
105
+ * is bound to the federated identity. The call exchanges a credential and
106
+ * names that agent `opts.agentId` in this client, so `enforcePolicy`,
107
+ * `startTrace` and the other calls can refer to it as before. Only the agent
108
+ * fields `agentId`, `name` and `environment` are used.
109
+ *
101
110
  * @returns An Agent object with prompt management methods.
102
111
  */
103
112
  registerAgent(opts: RegisterAgentOptions): Promise<Agent>;
@@ -291,8 +300,26 @@ export declare class Execlave {
291
300
  _apiPath(path: string): string;
292
301
  /** @internal */
293
302
  _request(method: string, path: string, body?: unknown): Promise<any>;
294
- /** Signing descriptor for the HTTP layer when request signing is enabled. */
295
- private _sign;
303
+ /**
304
+ * The bearer for the next request (the API key, or a current federated
305
+ * credential) and, when request signing is on, the HMAC key. The server
306
+ * verifies a signature with the bearer the request presents, so the signing
307
+ * key is always that same bearer.
308
+ */
309
+ private _auth;
310
+ /**
311
+ * Exchange an identity provider token for an agent API credential. The
312
+ * exchange endpoint is unauthenticated by design: the token is the proof.
313
+ * A refusal (4xx other than 429) is an ExeclaveAuthError; rate limiting,
314
+ * server errors and network failures are ExeclaveErrors, so callers can tell
315
+ * a withdrawn identity from an outage.
316
+ */
317
+ private _exchangeIdpToken;
318
+ /**
319
+ * Name the federated identity's agent `agentId` in this client (see
320
+ * registerAgent). One client authenticates as exactly one agent.
321
+ */
322
+ private _nameFederatedAgent;
296
323
  private _requestRaw;
297
324
  /**
298
325
  * Resolve an external agentId string to the internal UUID.
@@ -324,10 +351,29 @@ export declare class Execlave {
324
351
  private _doFlush;
325
352
  private _statusPoll;
326
353
  private _hashPii;
354
+ /**
355
+ * Every string (and number) leaf of a value, joined: what a pattern scanner should read.
356
+ * Recurses through arrays and objects. Coercing items with String() reduced each object in
357
+ * a message array to "[object Object]", so nothing inside it was ever scanned.
358
+ */
327
359
  private _toText;
328
360
  private _scrubText;
361
+ /**
362
+ * A copy of `value` with PII replaced in every string, however deeply nested. The caller's
363
+ * own objects are never modified. What cannot be scrubbed safely is dropped instead of
364
+ * passed through: a cycle becomes '[CIRCULAR]', anything past the depth limit becomes
365
+ * '[REDACTED_DEPTH_LIMIT]'. A number that holds PII becomes its redacted string.
366
+ */
367
+ private _scrubValue;
368
+ private _detectPii;
329
369
  private _applyPrivacy;
330
370
  private _scanInjection;
371
+ /**
372
+ * The agent ID a bypass window is reported under. With an agent credential
373
+ * the platform accepts only the credential's own agent, by UUID or external
374
+ * ID, and the local registerAgent name need not be the external ID.
375
+ */
376
+ private _reportedAgentId;
331
377
  private _firstAgentId;
332
378
  private _firstAgent;
333
379
  private _ensureNotShutdown;
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAchC,OAAO,KAAK,EACV,cAAc,EAEd,oBAAoB,EACpB,0BAA0B,EAC1B,eAAe,EACf,yBAAyB,EACzB,YAAY,EACZ,YAAY,EAEZ,oBAAoB,EACpB,aAAa,EAGb,oBAAoB,EACpB,eAAe,EACf,eAAe,EACf,WAAW,EAGX,WAAW,EACZ,MAAM,SAAS,CAAC;AA0BjB;;;;GAIG;AACH;;;;;;;;GAQG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,MAAM,CA6BrE;AAyDD;;;;;;;;;;;;;;;;;GAiBG;AACH,qBAAa,QAAQ;IACnB,OAAO,CAAC,OAAO,CAAS;IACxB,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,WAAW,CAAqB;IACxC,OAAO,CAAC,YAAY,CAAS;IAC7B,OAAO,CAAC,UAAU,CAAU;IAC5B,OAAO,CAAC,UAAU,CAAS;IAC3B,OAAO,CAAC,gBAAgB,CAAS;IACjC,OAAO,CAAC,MAAM,CAAU;IACxB,OAAO,C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