@decionis/agent-safe-pipeline 0.1.4 → 0.2.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.
Files changed (85) hide show
  1. package/README.md +169 -10
  2. package/dist/Index.d.ts +8 -0
  3. package/dist/Index.d.ts.map +1 -1
  4. package/dist/Index.js +7 -0
  5. package/dist/Index.js.map +1 -1
  6. package/dist/audit/AuditRecorder.d.ts +1 -1
  7. package/dist/audit/AuditRecorder.d.ts.map +1 -1
  8. package/dist/audit/AuditRecorder.js.map +1 -1
  9. package/dist/decision/CreateGate.d.ts +123 -0
  10. package/dist/decision/CreateGate.d.ts.map +1 -0
  11. package/dist/decision/CreateGate.js +211 -0
  12. package/dist/decision/CreateGate.js.map +1 -0
  13. package/dist/decision/DecionisGate.d.ts +18 -1
  14. package/dist/decision/DecionisGate.d.ts.map +1 -1
  15. package/dist/decision/DecionisGate.js +31 -3
  16. package/dist/decision/DecionisGate.js.map +1 -1
  17. package/dist/decision/DecisionAuthority.d.ts +26 -0
  18. package/dist/decision/DecisionAuthority.d.ts.map +1 -1
  19. package/dist/decision/DecisionAuthority.js.map +1 -1
  20. package/dist/decision/ImmutableGateDecision.d.ts.map +1 -1
  21. package/dist/decision/ImmutableGateDecision.js +8 -0
  22. package/dist/decision/ImmutableGateDecision.js.map +1 -1
  23. package/dist/decision/Provision.d.ts +33 -0
  24. package/dist/decision/Provision.d.ts.map +1 -0
  25. package/dist/decision/Provision.js +116 -0
  26. package/dist/decision/Provision.js.map +1 -0
  27. package/dist/decision/ShadowGate.d.ts +31 -0
  28. package/dist/decision/ShadowGate.d.ts.map +1 -0
  29. package/dist/decision/ShadowGate.js +79 -0
  30. package/dist/decision/ShadowGate.js.map +1 -0
  31. package/dist/execution/ActionRegistry.d.ts +29 -0
  32. package/dist/execution/ActionRegistry.d.ts.map +1 -1
  33. package/dist/execution/ActionRegistry.js +36 -1
  34. package/dist/execution/ActionRegistry.js.map +1 -1
  35. package/dist/execution/AuthorizationVerifier.d.ts +120 -1
  36. package/dist/execution/AuthorizationVerifier.d.ts.map +1 -1
  37. package/dist/execution/AuthorizationVerifier.js +180 -6
  38. package/dist/execution/AuthorizationVerifier.js.map +1 -1
  39. package/dist/execution/SafeExecutor.d.ts +32 -2
  40. package/dist/execution/SafeExecutor.d.ts.map +1 -1
  41. package/dist/execution/SafeExecutor.js +36 -1
  42. package/dist/execution/SafeExecutor.js.map +1 -1
  43. package/dist/http/ClientIdentification.d.ts +22 -0
  44. package/dist/http/ClientIdentification.d.ts.map +1 -0
  45. package/dist/http/ClientIdentification.js +44 -0
  46. package/dist/http/ClientIdentification.js.map +1 -0
  47. package/dist/http/Credential.d.ts +17 -0
  48. package/dist/http/Credential.d.ts.map +1 -0
  49. package/dist/http/Credential.js +5 -0
  50. package/dist/http/Credential.js.map +1 -0
  51. package/dist/http/StoredCredentials.d.ts +34 -0
  52. package/dist/http/StoredCredentials.d.ts.map +1 -0
  53. package/dist/http/StoredCredentials.js +85 -0
  54. package/dist/http/StoredCredentials.js.map +1 -0
  55. package/dist/intent/CanonicalIntentHasher.d.ts.map +1 -1
  56. package/dist/intent/CanonicalIntentHasher.js +3 -0
  57. package/dist/intent/CanonicalIntentHasher.js.map +1 -1
  58. package/dist/intent/ExecutionIntent.d.ts +13 -1
  59. package/dist/intent/ExecutionIntent.d.ts.map +1 -1
  60. package/dist/intent/ExecutionIntent.js +4 -0
  61. package/dist/intent/ExecutionIntent.js.map +1 -1
  62. package/dist/intent/IntentCapture.d.ts.map +1 -1
  63. package/dist/intent/IntentCapture.js +3 -0
  64. package/dist/intent/IntentCapture.js.map +1 -1
  65. package/dist/report/DecisionReport.d.ts +22 -0
  66. package/dist/report/DecisionReport.d.ts.map +1 -0
  67. package/dist/report/DecisionReport.js +37 -0
  68. package/dist/report/DecisionReport.js.map +1 -0
  69. package/dist/report/DossierReport.d.ts +43 -0
  70. package/dist/report/DossierReport.d.ts.map +1 -0
  71. package/dist/report/DossierReport.js +130 -0
  72. package/dist/report/DossierReport.js.map +1 -0
  73. package/dist/report/HostedOutcome.d.ts +18 -0
  74. package/dist/report/HostedOutcome.d.ts.map +1 -0
  75. package/dist/report/HostedOutcome.js +24 -0
  76. package/dist/report/HostedOutcome.js.map +1 -0
  77. package/dist/testing/Index.d.ts +1 -1
  78. package/dist/testing/Index.d.ts.map +1 -1
  79. package/dist/testing/Index.js +1 -1
  80. package/dist/testing/Index.js.map +1 -1
  81. package/dist/testing/LocalAuthority.d.ts +89 -0
  82. package/dist/testing/LocalAuthority.d.ts.map +1 -1
  83. package/dist/testing/LocalAuthority.js +334 -9
  84. package/dist/testing/LocalAuthority.js.map +1 -1
  85. package/package.json +1 -1
package/README.md CHANGED
@@ -73,6 +73,18 @@ DECIONIS_API_URL=https://api.decionis.com
73
73
  DECIONIS_API_KEY=server-side-secret
74
74
  ```
75
75
 
76
+ `DecionisGate` and `DecionisGrantVerifier` accept `apiKey` as a string or as a function read at
77
+ each request. A deployment whose credential rotates inside a process's life gives the function: the
78
+ next request carries the new value, a request already in flight keeps the one it sent, and nothing
79
+ has to be rebuilt to make that true. A credential that does not rotate stays a string.
80
+
81
+ ```ts
82
+ const gate = new DecionisGate({
83
+ baseUrl: process.env.DECIONIS_API_URL!,
84
+ apiKey: () => secrets.current("DECIONIS_API_KEY"),
85
+ });
86
+ ```
87
+
76
88
  ## Quick start: enforcement
77
89
 
78
90
  The complete production path in one file. The proposal comes from the agent; everything else comes
@@ -137,6 +149,17 @@ if (result.outcome === "COMPLETED") {
137
149
  The executor validates parameters against the handler's schema before the grant is claimed, and the
138
150
  grant is claimed before the handler runs. If either step fails, the handler is never invoked.
139
151
 
152
+ The trusted context also accepts an optional `expectedEffectDigest` (`sha256:` plus 64 lowercase hex):
153
+ a digest-only commitment to the downstream state predicted before dispatch. It is bound into the
154
+ canonical intent hash and into the signed grant, and `DecionisGrantVerifier` refuses the authorization
155
+ unless the returned grant echoes exactly that digest. The agent proposal can never carry it, and an
156
+ intent that omits it hashes byte-identically to before the field existed. After the attempt, a trusted
157
+ runtime that observed the effect may pass an `AuthorityEffectEvidence` record as `effectEvidence` to
158
+ `DecionisGrantVerifier.finalize`, and read the authority's own `AuthorityEffectReport` back through
159
+ `effectReport(authorization)`. See
160
+ [execution intent](https://github.com/decionis/agent-safe-pipeline/blob/master/docs/execution-intent.md)
161
+ and [execution outcomes](https://github.com/decionis/agent-safe-pipeline/blob/master/docs/execution-outcomes.md).
162
+
140
163
  ## Outcomes
141
164
 
142
165
  Decionis returns one of three verdicts. The executor turns a verdict into exactly one execution
@@ -150,18 +173,46 @@ outcome.
150
173
 
151
174
  `SafeExecutor.run` resolves to a discriminated result rather than throwing:
152
175
 
153
- | `outcome` | Meaning |
154
- | ------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
155
- | `COMPLETED` | The grant was consumed and the handler returned. `result` holds its value. |
156
- | `BLOCKED` | Nothing ran. `reason` names the refusal: a non-authoritative or non-`ALLOW` decision, a missing or invalid grant, an intent binding or conformance failure, or an unavailable audit sink. |
157
- | `FAILED_BEFORE_DISPATCH` | The grant was consumed but the handler failed before reaching the provider. Safe to reason about. |
158
- | `UNKNOWN_AFTER_DISPATCH` | The provider was called and its outcome is unknown. A `recovery` reference supports reconciliation. |
176
+ | `outcome` | Meaning |
177
+ | ------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
178
+ | `COMPLETED` | The grant was consumed and the handler returned. `result` holds its value. |
179
+ | `BLOCKED` | Nothing ran. `reason` names the refusal: a non-authoritative or non-`ALLOW` decision, a missing or invalid grant, an intent binding or conformance failure, or an unavailable audit sink. |
180
+ | `FAILED_BEFORE_DISPATCH` | The grant was consumed but the handler failed before reaching the provider. Safe to reason about. |
181
+ | `DEFINITELY_NOT_EXECUTED` | The provider was called and refused deterministically. `reason` is its own code. Nothing was effected and there is nothing to reconcile. |
182
+ | `UNKNOWN_AFTER_DISPATCH` | The provider was called and its outcome is unknown. A `recovery` reference supports reconciliation. |
183
+
184
+ A handler reports that last-but-one case by throwing `ProviderRefusal` from inside `dispatch.run`,
185
+ with the provider's own reason code. Only a deterministic refusal belongs in it: a timeout, a 5xx
186
+ or an unreadable answer is not a refusal, and reporting one as a refusal would turn "nobody knows"
187
+ into "definitely not".
159
188
 
160
189
  Every outcome that consumed a grant also reports `finalization` (`RECORDED`, `PENDING`, or
161
190
  `UNSUPPORTED`). The executor records `COMMITTED`, `FAILED`, or `INDETERMINATE` with Decionis after
162
191
  the attempt so commit evidence joins the Decision Dossier chain. Finalization is evidence, never
163
192
  authority: it cannot change `outcome` or `executed`.
164
193
 
194
+ ### What each record establishes
195
+
196
+ Fluent summaries lose these distinctions first. Each row names the record or state, what it
197
+ establishes, and what it does not.
198
+
199
+ | Record or state | What it establishes | What it does not establish |
200
+ | --------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
201
+ | Captured intent (`IntentCapture`, `intentHash`) | The exact action, target, and parameters the agent proposed, bound to trusted tenant, actor, and downstream context, hashed and expiring | That the agent's facts, identities, or amounts are true; that anything may execute |
202
+ | Verified human approval (Presence `receiptDossierId`) | A named person approved that exact intent hash under the assurance the receipt records | Permission to execute: Decionis re-evaluates policy with the receipt, and only that evaluation can issue a grant |
203
+ | Execution grant (`authorization` on an `ALLOW`) | Permission for one attempt at one intent, claimed once through the `AuthorizationVerifier` immediately before the handler runs | Anything after expiry, for another intent hash, or on a second presentation; a dossier identifier, an invitation link, or an earlier `ALLOW` is not a substitute |
204
+ | Decision Dossier (`decisionId`, `dossierId`) | The record of why Decionis allowed, escalated, or blocked: policy snapshot, inputs, evidence, and grant metadata | An execution credential; proof that the underlying business judgement was right |
205
+ | Single claim, `COMPLETED` | The grant was consumed once and the trusted handler returned a provider result | An exactly-once downstream business effect or independent confirmation of settlement; whether an observation counts as `CONFIRMED` is the authority's judgement, not this package's |
206
+ | `UNKNOWN_AFTER_DISPATCH`, finalized `INDETERMINATE` | Dispatch began and completion could not be proved | Permission to repeat the side effect: reconcile through provider idempotency and read-only lookup, never by a second dispatch |
207
+ | `DEFINITELY_NOT_EXECUTED`, finalized `FAILED` | Dispatch began, the provider refused it deterministically, and nothing was effected | Permission to try again: the refusal was about this attempt, and another needs a fresh decision and a fresh grant |
208
+ | Shadow observation (`ShadowPipeline`, `mode: "SHADOW"`) | What Decionis would have decided about an action that already ran: a verdict and a dossier, no grant | Enforcement, a grant, or a no-write test environment; the production write happened as before |
209
+ | Library boundary (this package) | Intent capture, the gate, verification, and claim-before-handler dispatch inside the trusted integration | Host isolation, IAM, network egress, credential storage, or incident response; see the [threat model](https://github.com/decionis/agent-safe-pipeline/blob/master/THREAT-MODEL.md) and [trust boundary](https://github.com/decionis/agent-safe-pipeline/blob/master/docs/trust-boundary.md) |
210
+ | Trusted executor (`createTrustedExecutor`) | What one process verifies about itself and enforces at its own door: the host posture `HostPosture` can observe, caller principals with roles and their own credentials, egress sealed to the origins `EgressPolicy` was configured with, a durable attempt journal reconciled by `StartupReconciler`, the ceilings in `HardLimits`, BEAP-vocabulary effect evidence, `HaltSwitch`, and hash-chained evidence with an offline-verifiable export | Node or kernel isolation, a CNI actually enforcing the NetworkPolicies the kit declares, an HSM or KMS, the authority's policy, or a bank's core correctness |
211
+ | Executor evidence bundle (`agent-safe.evidence-bundle/1`) | What one executor process can say about an incident: both hash-chained streams as it still held them, the open attempts, the posture by check, the chain heads, a configuration digest, and every file's own digest | Origin, unless a signature over the manifest verifies against a key the reader brought; completeness, since it carries a bounded window and says how many lines it dropped; and it holds no parameter, no provider body, no secret and no digest of one |
212
+
213
+ The sequence that produces both records, and two synthetic records side by side, are in
214
+ [Decision Dossiers](https://github.com/decionis/agent-safe-pipeline/blob/master/docs/decision-dossiers.md).
215
+
165
216
  ## Human approval through Presence
166
217
 
167
218
  When policy escalates, a person must approve that exact intent with independently signed evidence.
@@ -231,6 +282,94 @@ rewritten between them.
231
282
  | Shadow | `ShadowPipeline` over `DecionisGate` with `mode: "SHADOW"` | What Decionis would have decided about actions that already run; no grant issued |
232
283
  | Enforcement | `DecionisGate` plus `DecionisGrantVerifier` in `SafeExecutor` | Nothing runs without an independent decision and a consumed single-use grant |
233
284
 
285
+ ### Selecting the gate from the environment
286
+
287
+ `createGate` moves an integration between those stages with configuration alone. It takes the
288
+ authority and verifier you already run, and reads one variable to decide whether Decionis runs
289
+ beside them:
290
+
291
+ ```ts
292
+ import { createFixtureAuthorityPair, createGate } from "@decionis/agent-safe-pipeline";
293
+
294
+ const gate = createGate({
295
+ local: createFixtureAuthorityPair(() => "BLOCK", { unsafeAllowDevelopmentFixture: true }),
296
+ tenantId: "00000000-0000-4000-8000-000000000001",
297
+ });
298
+ const captured = new IntentCapture().capture(proposal, { tenantId: gate.tenantId, ...trusted });
299
+ const decision = await gate.authority.evaluate(captured);
300
+ const result = await new SafeExecutor(registry, gate.verifier).run(captured, decision);
301
+ ```
302
+
303
+ | Variable | Default | Effect |
304
+ | ---------------------------------- | -------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
305
+ | `DECIONIS_API_KEY` | unset | Unset: `gate.authority` and `gate.verifier` are the `local` objects themselves, and no client is constructed. Set: `DecionisGate` runs beside `local` through `ShadowGate`. |
306
+ | `DECIONIS_TENANT_ID` | required with the key | The key's organization. Decionis binds every intent to it, so `gate.tenantId` returns it for the capture; without the key, `gate.tenantId` is the `tenantId` you passed. |
307
+ | `DECIONIS_MODE` | `SHADOW` | `SHADOW`: the local decision governs execution and the hosted one is recorded on `decision.hosted`. `ENFORCEMENT`: the hosted decision governs, claimed through `DecionisGrantVerifier`; local can only tighten. |
308
+ | `DECIONIS_API_URL` | `https://api.decionis.com` | HTTPS only, unless `DECIONIS_ALLOW_INSECURE_LOOPBACK=true` names a loopback double. |
309
+ | `DECIONIS_TIMEOUT_MS` | `DecionisGate`'s default | Budget for the hosted call. A call past it is recorded as fail-closed. |
310
+ | `DECIONIS_ALLOW_INSECURE_LOOPBACK` | unset | `true` permits `http://127.0.0.1` for `LocalAuthority`. |
311
+
312
+ `ShadowGate` never returns a decision less restrictive than the local authority's, in either mode. A
313
+ hosted timeout, network error, non-2xx response, malformed body, or binding mismatch is recorded on
314
+ `decision.hosted` as `failClosed` with verdict `BLOCK`: in `SHADOW` that changes nothing about
315
+ execution, in `ENFORCEMENT` it blocks. A hosted variable that cannot be honoured (`DECIONIS_MODE`
316
+ outside `SHADOW` and `ENFORCEMENT`, a missing `DECIONIS_TENANT_ID`, a non-HTTPS URL) throws at
317
+ construction rather than falling back to local, so a misconfiguration is never mistaken for hosted
318
+ mode.
319
+
320
+ `DecionisGate` sends `User-Agent: agent-safe-pipeline/<version>` on every call, and `source`
321
+ (`{ repo, example }`, on `createGate` or the gate itself) is appended to it as a comment. It is
322
+ client identification for the authority's own accounting, never decision input, and it is sent only
323
+ when a call is made at all.
324
+
325
+ `printDecision(decision, { out })` writes what Decionis said, when it was asked, and nothing when
326
+ it was not: the governing verdict, the hosted verdict with its standing (`governs`, `recorded
327
+ beside the local verdict`, or `failed closed`), the dossier identifier, the page that verifies it
328
+ when the authority attached one (`decision.hosted.verificationUrl`), and the command that verifies
329
+ it offline. Pass `out: process.stderr` where stdout is a transport, as in a stdio MCP server, and
330
+ `verifyCommand` to name your own verification step; the default names this repository's
331
+ `pnpm decionis:verify <dossier-id>`, which fetches the signed record with your key and checks its
332
+ Ed25519 proof bundle against the authority's public JWKS offline.
333
+
334
+ ### One variable, a key issued in the run
335
+
336
+ `createHostedGate` is `createGate` with one more way onto Decionis, for the moment a developer has
337
+ nothing but a clone:
338
+
339
+ ```ts
340
+ import { createHostedGate, printHostedOutcome } from "@decionis/agent-safe-pipeline";
341
+
342
+ const gate = await createHostedGate({
343
+ local: createFixtureAuthorityPair(() => "BLOCK", { unsafeAllowDevelopmentFixture: true }),
344
+ tenantId: "00000000-0000-4000-8000-000000000001",
345
+ source: { repo: "owner/name", example: "basic-agent", surface: "github" },
346
+ });
347
+ const decision = await gate.authority.evaluate(captured);
348
+ await printHostedOutcome(gate, decision);
349
+ ```
350
+
351
+ | `DECIONIS_HOSTED` | `DECIONIS_API_KEY` | What runs |
352
+ | ----------------- | ------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
353
+ | unset | unset | The local pair, untouched; `printHostedOutcome` writes one hint line. |
354
+ | any | set | Exactly `createGate`: the key and `DECIONIS_TENANT_ID` from the environment, in `DECIONIS_MODE`. |
355
+ | `1` | unset | The credential this user keeps for this authority (`agentsafe login`, or an earlier run), else a free provisional workspace minted now from `POST /v1/public/agents/provision`, stored for the next run, and named on standard error once. |
356
+
357
+ A provisional workspace needs no account, no email and no card; its key evaluates in `SHADOW`
358
+ only, so the local verdict still governs and the hosted decision and its signed Decision Dossier
359
+ are recorded beside it. The credential lives in `$AGENTSAFE_HOME`, else
360
+ `$XDG_CONFIG_HOME/agentsafe`, else `~/.config/agentsafe/credentials.json`, readable by its owner
361
+ alone, the same file `agentsafe login` writes; `NODE_ENV=production` refuses the whole path, as
362
+ it refuses every stored login. `resolveHostedCredentials` is the same resolution for a process
363
+ that is not a gate, such as the trusted executor. The provisioning call carries the client
364
+ identification (`repo`, `example`, `surface`) in its `User-Agent`, and nothing else about the
365
+ machine.
366
+
367
+ `printHostedOutcome(gate, decision, { out })` is how an example ends: `printDecision`, then the
368
+ signed record itself, fetched with the run's own key from `GET /v1/protocol/dossiers/{id}`
369
+ (`gate.fetchDossier`) and shown by its proof: the algorithm, the key, when it was issued, how many
370
+ artifacts it covers, and the issuer tier, `provisional_anonymous` for a workspace without an
371
+ account. `fetchSignedDossier`, `summarizeDossier` and `printSignedDossier` are the parts.
372
+
234
373
  ## Local testing
235
374
 
236
375
  `@decionis/agent-safe-pipeline/testing` ships `LocalPresence` and `LocalAuthority`: loopback doubles
@@ -273,8 +412,10 @@ them from the testing entry. See
273
412
  | -------------- | ------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- |
274
413
  | Intent | `IntentCapture`, `CanonicalIntentHasher`, `ExecutionIntentSchema`, `AgentProposalSchema` | Build the immutable `agent-safe.intent/1` binding and its canonical SHA-256 hash |
275
414
  | Decision | `DecionisGate`, `DecisionAuthority`, `GateDecision`, `FailClosedDecision` | Obtain an independent `ALLOW` / `ESCALATE` / `BLOCK` decision with dossier identifiers |
415
+ | Selection | `createGate`, `ShadowGate`, `SelectedGate`, `HostedEvaluation`, `printDecision` | Choose local, shadow, or enforcement from the environment; combine and report the two verdicts |
276
416
  | Human approval | `PresenceApprovalCoordinator`, `ManagedEscalationRequest`, `HumanApprovalEvidence` | Coordinate DIRECT Presence ceremonies or request MANAGED orchestration by Decionis |
277
417
  | Execution | `SafeExecutor`, `ActionRegistry`, `DecionisGrantVerifier`, `AuthorizationVerifier`, `ReplayStore` | Claim the single-use grant, validate parameters, invoke a sealed handler, finalize the attempt |
418
+ | Effect | `AuthorityEffectEvidence`, `AuthorityEffectReport`, `DecionisGrantVerifier.effectReport` | Forward a trusted runtime's downstream observation on finalize and read the authority's answer |
278
419
  | Observation | `ShadowPipeline`, `ShadowObservation` | Record what the authority would have decided without granting execution |
279
420
  | Audit | `AuditRecorder`, `AuditEventV1`, `AuditSink` | Emit immutable, redacted lifecycle records through one bounded sink call |
280
421
  | Testing | `LocalPresence`, `LocalAuthority`, `createFixtureAuthorityPair` (from `/testing`) | Loopback doubles and fixture authorities for development and CI |
@@ -304,6 +445,10 @@ before integrating a real downstream API.
304
445
 
305
446
  ## Assurance and supply chain
306
447
 
448
+ The reviewer's route through all of it, with what each piece of evidence establishes and what it
449
+ does not, is
450
+ [EVALUATION-PATH.md](https://github.com/decionis/agent-safe-pipeline/blob/master/EVALUATION-PATH.md).
451
+
307
452
  - **Provenance.** Every release is published through npm trusted publishing with a provenance
308
453
  attestation, from a keyless-signed release tag, and archived under Zenodo concept DOI
309
454
  [`10.5281/zenodo.22312955`](https://doi.org/10.5281/zenodo.22312955).
@@ -334,13 +479,18 @@ Runnable, offline, and fixture-backed unless noted. Each one uses this package u
334
479
  - [`presence-live-approval`](https://github.com/decionis/agent-safe-pipeline/tree/master/examples/presence-live-approval): DIRECT Presence enforcement against the real services with a FIDO2 or FIDO2-plus-liveness ceremony (needs credentials).
335
480
  - [`presence-managed-approval`](https://github.com/decionis/agent-safe-pipeline/tree/master/examples/presence-managed-approval): Decionis-managed Presence orchestration against the real services (needs credentials).
336
481
  - [`golden-adversarial-demo`](https://github.com/decionis/agent-safe-pipeline/tree/master/examples/golden-adversarial-demo): one golden path, eight attacks, zero unauthorized executions.
482
+ - [`whisper-boundary-demo`](https://github.com/decionis/agent-safe-pipeline/tree/master/examples/whisper-boundary-demo): the same proof for a shopping agent — six attacks, zero unauthorized effects.
483
+ - [`crm-outreach-demo`](https://github.com/decionis/agent-safe-pipeline/tree/master/examples/crm-outreach-demo): who can approve a sales agent's CRM update or outbound message — six attacks, a lost provider response reconciled once, zero unauthorized effects.
484
+ - [`trusted-executor`](https://github.com/decionis/agent-safe-pipeline/tree/master/examples/trusted-executor): the proof of `@decionis/agentsafe`, the execution boundary as one deployable process — an HTTP trusted executor in front of these components — over real HTTP against the loopback doubles, and the adopter's template; the image, Kubernetes manifest and shadow-to-enforcement runbook are in the repository's [deployment kit](https://github.com/decionis/agent-safe-pipeline/blob/master/deploy/README.md).
337
485
 
338
486
  ## Open core
339
487
 
340
- Everything in the repository is Apache-2.0: the architecture, the intent contract, the execution
341
- boundary, the client adapters, the audit contract, shadow mode, the conformance vectors, and the
342
- examples. Decionis operates the policy control plane behind `DecionisGate`: policy evaluation, grant
343
- issuance and atomic consumption, Decision Dossier signing and retention, and Presence.
488
+ This package and the repository's architecture, intent contract, execution boundary, client
489
+ adapters, audit contract, shadow mode, conformance vectors, and examples are Apache-2.0. The sole
490
+ license exception is the dedicated MIT-licensed Claude Desktop wrapper in
491
+ `packages/commerce-mcp-claude-extension`; the CommerceGate runtime it bundles remains Apache-2.0.
492
+ Decionis operates the policy control plane behind `DecionisGate`: policy evaluation, grant issuance
493
+ and atomic consumption, Decision Dossier signing and retention, and Presence.
344
494
  [OPEN-CORE.md](https://github.com/decionis/agent-safe-pipeline/blob/master/OPEN-CORE.md) states the
345
495
  boundary and the commitments that keep it stable.
346
496
 
@@ -349,6 +499,15 @@ boundary and the commitments that keep it stable.
349
499
  Decionis Research defines the architecture, this package demonstrates it as tested code, and the
350
500
  Decionis platform operates it as a hosted authority.
351
501
 
502
+ The banking profile of the protocol, whose reference runtime builds on this package, is published at
503
+ [banking.decionis.com](https://banking.decionis.com) (BEAP v1.0, published 2026-09-15; the profile
504
+ Decionis publishes and implements, not a standard approved by any body). The Commerce Gate this repository's MCP server fronts is at
505
+ [commerce.decionis.com](https://commerce.decionis.com).
506
+ The proof-of-human infrastructure this package's `PresenceApprovalCoordinator` coordinates with is
507
+ described at [decionis.com/proof-of-human-infrastructure](https://decionis.com/proof-of-human-infrastructure)
508
+ and runs at [presence.decionis.com](https://presence.decionis.com); production enforcement there is
509
+ sales-assisted.
510
+
352
511
  - Jejelowo, Festus. "The Execution Verifiability Gap: Why Model Governance Cannot Authorize
353
512
  Consequential Actions." Decionis Research, version 1.0, 21 August 2026.
354
513
  [Canonical article](https://decionis.com/research/execution-verifiability-gap) ·
package/dist/Index.d.ts CHANGED
@@ -1,15 +1,23 @@
1
1
  export * from "./approval/PresenceApprovalCoordinator.js";
2
2
  export * from "./audit/AuditRecorder.js";
3
+ export * from "./decision/CreateGate.js";
3
4
  export * from "./decision/DecisionAuthority.js";
4
5
  export * from "./decision/DecionisGate.js";
5
6
  export * from "./decision/FixtureDecisionAuthority.js";
7
+ export * from "./decision/Provision.js";
8
+ export * from "./decision/ShadowGate.js";
6
9
  export * from "./execution/ActionRegistry.js";
7
10
  export * from "./execution/AuthorizationVerifier.js";
8
11
  export * from "./execution/ReplayStore.js";
9
12
  export * from "./execution/SafeExecutor.js";
13
+ export type { ClientSource } from "./http/ClientIdentification.js";
14
+ export * from "./http/StoredCredentials.js";
10
15
  export * from "./intent/CanonicalIntentHasher.js";
11
16
  export * from "./intent/ExecutionIntent.js";
12
17
  export * from "./intent/IntentCapture.js";
13
18
  export * from "./intent/JsonValue.js";
19
+ export * from "./report/DecisionReport.js";
20
+ export * from "./report/DossierReport.js";
21
+ export * from "./report/HostedOutcome.js";
14
22
  export * from "./shadow/ShadowPipeline.js";
15
23
  //# sourceMappingURL=Index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Index.d.ts","sourceRoot":"","sources":["../src/Index.ts"],"names":[],"mappings":"AAAA,cAAc,2CAA2C,CAAC;AAC1D,cAAc,0BAA0B,CAAC;AACzC,cAAc,iCAAiC,CAAC;AAChD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wCAAwC,CAAC;AACvD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,sCAAsC,CAAC;AACrD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mCAAmC,CAAC;AAClD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,4BAA4B,CAAC"}
1
+ {"version":3,"file":"Index.d.ts","sourceRoot":"","sources":["../src/Index.ts"],"names":[],"mappings":"AAAA,cAAc,2CAA2C,CAAC;AAC1D,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,iCAAiC,CAAC;AAChD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wCAAwC,CAAC;AACvD,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,sCAAsC,CAAC;AACrD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;AAC5C,YAAY,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AACnE,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mCAAmC,CAAC;AAClD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC"}
package/dist/Index.js CHANGED
@@ -1,15 +1,22 @@
1
1
  export * from "./approval/PresenceApprovalCoordinator.js";
2
2
  export * from "./audit/AuditRecorder.js";
3
+ export * from "./decision/CreateGate.js";
3
4
  export * from "./decision/DecisionAuthority.js";
4
5
  export * from "./decision/DecionisGate.js";
5
6
  export * from "./decision/FixtureDecisionAuthority.js";
7
+ export * from "./decision/Provision.js";
8
+ export * from "./decision/ShadowGate.js";
6
9
  export * from "./execution/ActionRegistry.js";
7
10
  export * from "./execution/AuthorizationVerifier.js";
8
11
  export * from "./execution/ReplayStore.js";
9
12
  export * from "./execution/SafeExecutor.js";
13
+ export * from "./http/StoredCredentials.js";
10
14
  export * from "./intent/CanonicalIntentHasher.js";
11
15
  export * from "./intent/ExecutionIntent.js";
12
16
  export * from "./intent/IntentCapture.js";
13
17
  export * from "./intent/JsonValue.js";
18
+ export * from "./report/DecisionReport.js";
19
+ export * from "./report/DossierReport.js";
20
+ export * from "./report/HostedOutcome.js";
14
21
  export * from "./shadow/ShadowPipeline.js";
15
22
  //# sourceMappingURL=Index.js.map
package/dist/Index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"Index.js","sourceRoot":"","sources":["../src/Index.ts"],"names":[],"mappings":"AAAA,cAAc,2CAA2C,CAAC;AAC1D,cAAc,0BAA0B,CAAC;AACzC,cAAc,iCAAiC,CAAC;AAChD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wCAAwC,CAAC;AACvD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,sCAAsC,CAAC;AACrD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mCAAmC,CAAC;AAClD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,4BAA4B,CAAC"}
1
+ {"version":3,"file":"Index.js","sourceRoot":"","sources":["../src/Index.ts"],"names":[],"mappings":"AAAA,cAAc,2CAA2C,CAAC;AAC1D,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,iCAAiC,CAAC;AAChD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wCAAwC,CAAC;AACvD,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,sCAAsC,CAAC;AACrD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;AAE5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mCAAmC,CAAC;AAClD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC"}
@@ -2,7 +2,7 @@ import type { GateDecision } from "../decision/DecisionAuthority.js";
2
2
  import type { CapturedIntent } from "../intent/ExecutionIntent.js";
3
3
  import type { JsonObject, JsonValue } from "../intent/JsonValue.js";
4
4
  import type { VerifiedAuthorization } from "../execution/AuthorizationVerifier.js";
5
- export type AuditEventType = "INTENT_CAPTURED" | "AUTHORITY_DECISION" | "AUTHORITY_FAILED_CLOSED" | "PRESENCE_ESCALATED" | "PRESENCE_RESOLVED" | "SHADOW_EVALUATED" | "GRANT_CONSUMED" | "EXECUTION_STARTED" | "EXECUTION_COMPLETED" | "EXECUTION_BLOCKED" | "EXECUTION_FAILED_BEFORE_DISPATCH" | "EXECUTION_OUTCOME_UNKNOWN" | "RECONCILIATION_COMPLETED" | "RECONCILIATION_NOT_EXECUTED" | "RECONCILIATION_UNKNOWN";
5
+ export type AuditEventType = "INTENT_CAPTURED" | "AUTHORITY_DECISION" | "AUTHORITY_FAILED_CLOSED" | "PRESENCE_ESCALATED" | "PRESENCE_RESOLVED" | "SHADOW_EVALUATED" | "GRANT_CONSUMED" | "EXECUTION_STARTED" | "EXECUTION_COMPLETED" | "EXECUTION_BLOCKED" | "EXECUTION_FAILED_BEFORE_DISPATCH" | "EXECUTION_REFUSED_AFTER_DISPATCH" | "EXECUTION_OUTCOME_UNKNOWN" | "RECONCILIATION_COMPLETED" | "RECONCILIATION_NOT_EXECUTED" | "RECONCILIATION_UNKNOWN";
6
6
  export type AuditAuthority = "AUTHORITATIVE" | "OBSERVATIONAL" | "NON_AUTHORITATIVE";
7
7
  export interface AuditPolicyRevision {
8
8
  readonly policyId: string;
@@ -1 +1 @@
1
- {"version":3,"file":"AuditRecorder.d.ts","sourceRoot":"","sources":["../../src/audit/AuditRecorder.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACpE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,uCAAuC,CAAC;AAEnF,MAAM,MAAM,cAAc,GACtB,iBAAiB,GACjB,oBAAoB,GACpB,yBAAyB,GACzB,oBAAoB,GACpB,mBAAmB,GACnB,kBAAkB,GAClB,gBAAgB,GAChB,mBAAmB,GACnB,qBAAqB,GACrB,mBAAmB,GACnB,kCAAkC,GAClC,2BAA2B,GAC3B,0BAA0B,GAC1B,6BAA6B,GAC7B,wBAAwB,CAAC;AAE7B,MAAM,MAAM,cAAc,GAAG,eAAe,GAAG,eAAe,GAAG,mBAAmB,CAAC;AAErF,MAAM,WAAW,mBAAmB;IAClC,QAAQ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U;YAClB,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,GAAG,QAAQ,EAAE,CAAC;SACzC,CAAC;IACJ,CAAC;CACF;AAED,SAAS,mBAAmB,CAAC,KAAa;IACxC,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,IAAI,KAAK,CAAC,MAAM,GAAG,GAAG;QAAE,OAAO,KAAK,CAAC;IACzD,KAAK,IAAI,KAAK,GAAG,CAAC,EAAE,KAAK,GAAG,KAAK,CAAC,MAAM,EAAE,KAAK,IAAI,CAAC,EAAE,CAAC;QACrD,MAAM,QAAQ,GAAG,KAAK,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;QACzC,IAAI,QAAQ,IAAI,IAAI,IAAI,QAAQ,KAAK,IAAI;YAAE,OAAO,KAAK,CAAC;IAC1D,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC"}
@@ -0,0 +1,123 @@
1
+ import { type AuthorizationVerifier } from "../execution/AuthorizationVerifier.js";
2
+ import type { ClientSource } from "../http/ClientIdentification.js";
3
+ import { type CredentialFiles } from "../http/StoredCredentials.js";
4
+ import type { DecisionAuthority, DecisionEvaluationMode } from "./DecisionAuthority.js";
5
+ import { type SignedDossierSummary } from "../report/DossierReport.js";
6
+ import { type ProvisionOptions, type ProvisionedWorkspace } from "./Provision.js";
7
+ export type GateMode = "LOCAL" | DecisionEvaluationMode;
8
+ /** An authority and the verifier that can claim the grants it issues. */
9
+ export interface AuthorityPair {
10
+ readonly authority: DecisionAuthority;
11
+ readonly verifier: AuthorizationVerifier;
12
+ }
13
+ export interface SelectedGate extends AuthorityPair {
14
+ readonly mode: GateMode;
15
+ /**
16
+ * The tenant a captured intent must name. In a hosted mode this is the
17
+ * key's own organization, because Decionis binds every intent to it; in
18
+ * `LOCAL` mode it is the `tenantId` the caller passed.
19
+ */
20
+ readonly tenantId: string;
21
+ }
22
+ export interface CreateGateOptions {
23
+ /**
24
+ * The pair that runs when no key is set. It keeps governing execution in
25
+ * `SHADOW` mode, and in `ENFORCEMENT` mode its authority can only tighten
26
+ * the hosted decision.
27
+ */
28
+ readonly local: AuthorityPair;
29
+ /** The tenant used when no key is set. */
30
+ readonly tenantId: string;
31
+ /** Defaults to `process.env`. */
32
+ readonly env?: Readonly<Record<string, string | undefined>>;
33
+ readonly fetch?: typeof fetch;
34
+ /** Carried in the `User-Agent` of hosted calls only; never sent without a key. */
35
+ readonly source?: ClientSource;
36
+ }
37
+ /**
38
+ * Selects the gate from the environment.
39
+ *
40
+ * `DECIONIS_API_KEY` unset: returns `local` itself, the same authority and
41
+ * verifier objects, with no client constructed and no network call. A caller
42
+ * that sets nothing gets exactly what it gets today.
43
+ *
44
+ * `DECIONIS_API_KEY` set: `DecionisGate` runs beside `local` through
45
+ * `ShadowGate`, in `DECIONIS_MODE` (`SHADOW` by default, `ENFORCEMENT` on
46
+ * request). `DECIONIS_TENANT_ID` is then required, because Decionis binds
47
+ * every intent to the key's own organization and refuses any other tenant.
48
+ * `DECIONIS_API_URL`, `DECIONIS_TIMEOUT_MS` and `DECIONIS_ALLOW_INSECURE_LOOPBACK`
49
+ * configure the connection the way the trusted executor's do.
50
+ */
51
+ export declare function createGate(options: CreateGateOptions): SelectedGate;
52
+ export type HostedCredentialSource = "environment" | "stored" | "provisioned";
53
+ /** Where the hosted key came from, for the run to say so; null when the gate is local. */
54
+ export interface HostedCredentials {
55
+ readonly source: HostedCredentialSource;
56
+ readonly tenantId: string;
57
+ readonly endpoint: string;
58
+ /** The file the key is kept in, when it is kept. */
59
+ readonly path: string | null;
60
+ readonly provisional: boolean;
61
+ /** How a person claims a provisioned workspace, as the authority stated it. */
62
+ readonly claim: Readonly<Record<string, unknown>> | null;
63
+ }
64
+ export interface HostedGate extends SelectedGate {
65
+ readonly credentials: HostedCredentials | null;
66
+ /**
67
+ * Fetches a dossier this gate's key minted and summarizes its proof; null
68
+ * when the gate is local. The key stays inside the closure.
69
+ */
70
+ readonly fetchDossier: ((dossierId: string) => Promise<{
71
+ readonly summary: SignedDossierSummary;
72
+ readonly body: unknown;
73
+ }>) | null;
74
+ }
75
+ export interface CreateHostedGateOptions extends CreateGateOptions, ResolveHostedCredentialsOptions {
76
+ }
77
+ /** Whether `DECIONIS_HOSTED` asks for the hosted gate. */
78
+ export declare function hostedRequested(env: Readonly<Record<string, string | undefined>>): boolean;
79
+ export interface ResolveHostedCredentialsOptions {
80
+ readonly env?: Readonly<Record<string, string | undefined>>;
81
+ readonly fetch?: typeof fetch;
82
+ readonly source?: ClientSource;
83
+ /**
84
+ * Where a provisioned key is kept between runs, so a second run reuses the
85
+ * workspace instead of minting another: the user's `agentsafe` credential
86
+ * file by default; `false` keeps nothing.
87
+ */
88
+ readonly store?: {
89
+ readonly home?: string;
90
+ readonly files?: CredentialFiles;
91
+ } | false;
92
+ /** Mints the workspace; the authority's own route by default. */
93
+ readonly provision?: (options: ProvisionOptions) => Promise<ProvisionedWorkspace>;
94
+ /** Where the one-time note about a provisioned workspace goes; standard error by default. */
95
+ readonly notice?: (line: string) => void;
96
+ }
97
+ /** The credentials a hosted run uses, and the environment overlay that carries them. */
98
+ export interface ResolvedHostedCredentials {
99
+ readonly credentials: HostedCredentials;
100
+ /** The key, for the one place that must hold it: the environment of the gate or process. */
101
+ readonly apiKey: string;
102
+ readonly env: Readonly<Record<string, string | undefined>>;
103
+ }
104
+ /**
105
+ * Where a hosted run's key comes from, in order: the environment, the
106
+ * credential this user keeps for this authority, and when there is none and
107
+ * `DECIONIS_HOSTED` asks, a free provisional workspace minted now, kept for
108
+ * the next run and named on standard error once. Null when nothing asks for
109
+ * the hosted path at all.
110
+ */
111
+ export declare function resolveHostedCredentials(options?: ResolveHostedCredentialsOptions): Promise<ResolvedHostedCredentials | null>;
112
+ /**
113
+ * The gate `createGate` selects, with one more way onto Decionis: a single
114
+ * variable. `DECIONIS_HOSTED=1` with no key means the key this user already
115
+ * keeps for this authority, and when there is none, a free provisional
116
+ * workspace minted now, kept for the next run, and named on standard error
117
+ * once. A key in the environment still wins, and no variable at all is
118
+ * still the local pair. A provisional key evaluates in `SHADOW` only:
119
+ * recorded beside the local verdict, with a signed dossier, never governing
120
+ * execution; an owned key set in the environment takes the mode asked for.
121
+ */
122
+ export declare function createHostedGate(options: CreateHostedGateOptions): Promise<HostedGate>;
123
+ //# sourceMappingURL=CreateGate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CreateGate.d.ts","sourceRoot":"","sources":["../../src/decision/CreateGate.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,qBAAqB,EAC3B,MAAM,uCAAuC,CAAC;AAC/C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAIL,KAAK,eAAe,EACrB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,KAAK,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AACxF,OAAO,EAAsB,KAAK,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAC3F,OAAO,EAEL,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EAC1B,MAAM,gBAAgB,CAAC;AAGxB,MAAM,MAAM,QAAQ,GAAG,OAAO,GAAG,sBAAsB,CAAC;AAExD,yEAAyE;AACzE,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,SAAS,EAAE,iBAAiB,CAAC;IACtC,QAAQ,CAAC,QAAQ,EAAE,qBAAqB,CAAC;CAC1C;AAED,MAAM,WAAW,YAAa,SAAQ,aAAa;IACjD,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC;IACxB;;;;OAIG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,WAAW,iBAAiB;IAChC;;;;OAIG;IACH,QAAQ,CAAC,KAAK,EAAE,aAAa,CAAC;IAC9B,0CAA0C;IAC1C,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,iCAAiC;IACjC,QAAQ,CAAC,GAAG,CAAC,EAAE,QA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