@decionis/agentsafe 0.3.0 → 0.4.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 +181 -121
- package/dist/Cli.js +5 -0
- package/dist/Cli.js.map +1 -1
- package/dist/TrustedExecutor.d.ts.map +1 -1
- package/dist/TrustedExecutor.js +1 -0
- package/dist/TrustedExecutor.js.map +1 -1
- package/dist/adapters/EffectAwareGrantVerifier.d.ts +5 -2
- package/dist/adapters/EffectAwareGrantVerifier.d.ts.map +1 -1
- package/dist/adapters/EffectAwareGrantVerifier.js +9 -0
- package/dist/adapters/EffectAwareGrantVerifier.js.map +1 -1
- package/dist/adapters/banking/BankingAction.d.ts +2 -2
- package/dist/adapters/cards/CardHoldSeal.d.ts +29 -0
- package/dist/adapters/cards/CardHoldSeal.d.ts.map +1 -0
- package/dist/adapters/cards/CardHoldSeal.js +87 -0
- package/dist/adapters/cards/CardHoldSeal.js.map +1 -0
- package/dist/adapters/cards/CardHoldStore.d.ts +102 -0
- package/dist/adapters/cards/CardHoldStore.d.ts.map +1 -0
- package/dist/adapters/cards/CardHoldStore.js +9 -0
- package/dist/adapters/cards/CardHoldStore.js.map +1 -0
- package/dist/adapters/cards/CardHolds.d.ts +19 -0
- package/dist/adapters/cards/CardHolds.d.ts.map +1 -0
- package/dist/adapters/cards/CardHolds.js +57 -0
- package/dist/adapters/cards/CardHolds.js.map +1 -0
- package/dist/adapters/cards/HeldCardGrants.d.ts +41 -42
- package/dist/adapters/cards/HeldCardGrants.d.ts.map +1 -1
- package/dist/adapters/cards/HeldCardGrants.js +112 -22
- package/dist/adapters/cards/HeldCardGrants.js.map +1 -1
- package/dist/adapters/cards/PostgresCardHolds.d.ts +95 -0
- package/dist/adapters/cards/PostgresCardHolds.d.ts.map +1 -0
- package/dist/adapters/cards/PostgresCardHolds.js +411 -0
- package/dist/adapters/cards/PostgresCardHolds.js.map +1 -0
- package/dist/cli/Cards.d.ts +5 -0
- package/dist/cli/Cards.d.ts.map +1 -0
- package/dist/cli/Cards.js +48 -0
- package/dist/cli/Cards.js.map +1 -0
- package/dist/cli/Help.d.ts.map +1 -1
- package/dist/cli/Help.js +1 -0
- package/dist/cli/Help.js.map +1 -1
- package/dist/config/ConfigKeys.d.ts +2 -2
- package/dist/config/ConfigKeys.d.ts.map +1 -1
- package/dist/config/ConfigKeys.js +12 -0
- package/dist/config/ConfigKeys.js.map +1 -1
- package/dist/config/ExecutorConfig.d.ts +53 -0
- package/dist/config/ExecutorConfig.d.ts.map +1 -1
- package/dist/config/ExecutorConfig.js +88 -0
- package/dist/config/ExecutorConfig.js.map +1 -1
- package/dist/http/Routes.d.ts +7 -0
- package/dist/http/Routes.d.ts.map +1 -1
- package/dist/http/Routes.js +7 -1
- package/dist/http/Routes.js.map +1 -1
- package/dist/identity/Authenticator.d.ts.map +1 -1
- package/dist/identity/Authenticator.js +5 -2
- package/dist/identity/Authenticator.js.map +1 -1
- package/dist/identity/PrincipalsFile.d.ts +3 -1
- package/dist/identity/PrincipalsFile.d.ts.map +1 -1
- package/dist/identity/PrincipalsFile.js +1 -0
- package/dist/identity/PrincipalsFile.js.map +1 -1
- package/dist/incident/SecurityEvents.d.ts +9 -0
- package/dist/incident/SecurityEvents.d.ts.map +1 -1
- package/dist/incident/SecurityEvents.js +3 -0
- package/dist/incident/SecurityEvents.js.map +1 -1
- package/dist/service/EscalationResolver.d.ts +30 -6
- package/dist/service/EscalationResolver.d.ts.map +1 -1
- package/dist/service/EscalationResolver.js +2 -0
- package/dist/service/EscalationResolver.js.map +1 -1
- package/dist/service/Requests.d.ts +17 -0
- package/dist/service/Requests.d.ts.map +1 -1
- package/dist/service/TrustedExecutorService.d.ts +77 -4
- package/dist/service/TrustedExecutorService.d.ts.map +1 -1
- package/dist/service/TrustedExecutorService.js +451 -56
- package/dist/service/TrustedExecutorService.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -150,22 +150,22 @@ where those controls are written down.
|
|
|
150
150
|
|
|
151
151
|
## The wire contract
|
|
152
152
|
|
|
153
|
-
| Method | Path | Who
|
|
154
|
-
| ------ | --------------------------------------------------- |
|
|
155
|
-
| `GET` | `/health` | anyone
|
|
156
|
-
| `GET` | `/ready` | anyone
|
|
157
|
-
| `POST` | `/v1/actions` | a `PROPOSER`
|
|
158
|
-
| `POST` | `/v1/reconciliations` | the `PROPOSER` that proposed
|
|
159
|
-
| `POST` | `/v1/escalations` | the `PROPOSER` that proposed
|
|
160
|
-
| `GET` | `/v1/control/status` | an `OPERATOR` with `status`
|
|
161
|
-
| `POST` | `/v1/control/halt` | an `OPERATOR` with `halt`
|
|
162
|
-
| `POST` | `/v1/control/resume` | an `OPERATOR` with `resume`
|
|
163
|
-
| `GET` | `/v1/control/open-attempts` | an `OPERATOR` with `status`
|
|
164
|
-
| `POST` | `/v1/control/secrets/reload` | an `OPERATOR` with `secrets.reload`
|
|
165
|
-
| `POST` | `/v1/control/evidence-export` | an `OPERATOR` with `evidence`
|
|
166
|
-
| `GET` | `/metrics` | an `OPERATOR` with `metrics`
|
|
167
|
-
| `POST` | `/v1/card-authorizations` | an `OPERATOR` with `cards.authorize`
|
|
168
|
-
| `POST` | `/v1/card-authorizations/{authorization_id}/result` | an `OPERATOR` with `cards.authorize`
|
|
153
|
+
| Method | Path | Who | What it does |
|
|
154
|
+
| ------ | --------------------------------------------------- | -------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------ |
|
|
155
|
+
| `GET` | `/health` | anyone | The process is up |
|
|
156
|
+
| `GET` | `/ready` | anyone | Ready, or 503 while halted or still resolving an attempt; reports the mode and the actions |
|
|
157
|
+
| `POST` | `/v1/actions` | a `PROPOSER` | Capture, evaluate, and in enforcement execute once on an `ALLOW` |
|
|
158
|
+
| `POST` | `/v1/reconciliations` | the `PROPOSER` that proposed | Read-only: what the provider did with an attempt whose answer was lost |
|
|
159
|
+
| `POST` | `/v1/escalations` | the `PROPOSER` that proposed, or an `OPERATOR` with `escalations.resume` presenting an attestation | Resume an open escalation: one lookup, then a fresh decision if the person answered |
|
|
160
|
+
| `GET` | `/v1/control/status` | an `OPERATOR` with `status` | Mode, actions, posture, principals, the chain's head, the halt, the open attempts |
|
|
161
|
+
| `POST` | `/v1/control/halt` | an `OPERATOR` with `halt` | Stop taking new work, with a reason |
|
|
162
|
+
| `POST` | `/v1/control/resume` | an `OPERATOR` with `resume` | Take work again, with a reason; refused while the cause of the halt stands |
|
|
163
|
+
| `GET` | `/v1/control/open-attempts` | an `OPERATOR` with `status` | The attempts whose outcome this process does not know |
|
|
164
|
+
| `POST` | `/v1/control/secrets/reload` | an `OPERATOR` with `secrets.reload` | Re-read every secret file now; the report names files, never values |
|
|
165
|
+
| `POST` | `/v1/control/evidence-export` | an `OPERATOR` with `evidence` | Write a bundle of this process's own evidence, and return its manifest |
|
|
166
|
+
| `GET` | `/metrics` | an `OPERATOR` with `metrics` | The OpenMetrics exposition |
|
|
167
|
+
| `POST` | `/v1/card-authorizations` | an `OPERATOR` with `cards.authorize` | The card issuer's authorization hook: match it to a held grant, and claim that grant once |
|
|
168
|
+
| `POST` | `/v1/card-authorizations/{authorization_id}/result` | an `OPERATOR` with `cards.authorize` | What the issuer did with it: finalize the claimed grant with the effect |
|
|
169
169
|
|
|
170
170
|
Who may call is the principals file, described below; without one, the one legacy caller presents
|
|
171
171
|
the caller token as `Authorization: Bearer <token>`. Every request that is not public passes the
|
|
@@ -310,8 +310,25 @@ never logged, never written to the evidence stream or the journal, and not sent
|
|
|
310
310
|
claim. The authority verifies the signature under the key the organisation registered for its
|
|
311
311
|
provider and binds it to the intent hash; an attestation it cannot verify is a fail-closed `BLOCK`,
|
|
312
312
|
and one it verifies becomes an `ALLOW` only where policy has a rule matching the approval. A card
|
|
313
|
-
purchase escalated with no Presence handoff is handed `{ mode: "ATTESTATION", intent }`
|
|
314
|
-
this.
|
|
313
|
+
purchase escalated with no Presence handoff is handed `{ mode: "ATTESTATION", intent, requirement }`
|
|
314
|
+
for exactly this.
|
|
315
|
+
|
|
316
|
+
When the authority says where a hold goes, the handoff carries it as `requirement`:
|
|
317
|
+
`{ requirement_id, expires_at, selector: { kind, role_id? } | null, verification: { provider,
|
|
318
|
+
methods, level } | null }`, the policy's selector (a kind and a role, never a person) and who
|
|
319
|
+
proves the person. A `verification.provider` other than `decionis` names a presence provider the
|
|
320
|
+
organisation admitted, such as a card tap through the issuer's app (`koard`, method `CARD_TAP`):
|
|
321
|
+
no Presence ceremony is asked for, whatever `EXECUTOR_ESCALATION` says, and only that provider's
|
|
322
|
+
attestation resumes the hold. The decision carries the routing from Decionis for a runtime at
|
|
323
|
+
0.3.7 or later; an older authority says nothing and `requirement` is `null`.
|
|
324
|
+
|
|
325
|
+
The tap lands with the issuer's app, not with the agent that proposed. An `OPERATOR` holding
|
|
326
|
+
`escalations.resume` may therefore present `{ mode: "ATTESTATION", intent, attestation }` for an
|
|
327
|
+
intent it did not propose, and nothing else: a Presence handoff from an operator is
|
|
328
|
+
`403 ROLE_FORBIDDEN`. The operator adds no authority, because the authority binds the attestation
|
|
329
|
+
to the intent hash and evaluates the policy again; the intent is re-hashed on the way in, so an
|
|
330
|
+
intent altered in transit (a card number written into it, say) is refused before anything is
|
|
331
|
+
asked. Every line the resumption produces names the operator as its principal.
|
|
315
332
|
|
|
316
333
|
## Configuration
|
|
317
334
|
|
|
@@ -319,88 +336,95 @@ Every variable, in one list (`CONFIG_KEYS`). A missing or invalid value is a ref
|
|
|
319
336
|
names the variable and never its value. Nothing that identifies a tenant, a system, a person or a
|
|
320
337
|
network path has a default.
|
|
321
338
|
|
|
322
|
-
| Variable | Meaning
|
|
323
|
-
| ------------------------------------------------------------- |
|
|
324
|
-
| `EXECUTOR_MODE` | `SHADOW` or `ENFORCEMENT`
|
|
325
|
-
| `EXECUTOR_BIND_ADDRESS`, `PORT` | Where the listener binds
|
|
326
|
-
| `EXECUTOR_TENANT_ID` | Legacy mode only: the Decionis tenant, a UUID
|
|
327
|
-
| `EXECUTOR_ACTOR_ID`, `_TYPE` | Legacy mode only: the actor the intent names; `EXECUTOR_ACTOR_RUNTIME` is optional
|
|
328
|
-
| `EXECUTOR_INTENT_TTL_SECONDS` | How long a proposal stays valid, at most five minutes; a ceremony has to finish inside it
|
|
329
|
-
| `EXECUTOR_CALLER_TOKEN` | Legacy mode only: the token the one caller presents; secret
|
|
330
|
-
| `EXECUTOR_PRINCIPALS_FILE` | The principals file; excludes `EXECUTOR_TENANT_ID`, `EXECUTOR_ACTOR_*` and the caller token; required in production
|
|
331
|
-
| `EXECUTOR_ALLOW_LEGACY_CALLER` | `true` lets production run without a principals file, on the legacy caller alone
|
|
332
|
-
| `EXECUTOR_JWT_AUDIENCE`, `EXECUTOR_JWKS_FILE` | Together: the audience workload tokens must carry, and the JWKS they are verified against
|
|
333
|
-
| `EXECUTOR_JWKS_URL`, `EXECUTOR_JWKS_CA_FILE` | Optional: where the JWKS is refreshed from through the guarded fetch, and the bundle that address is verified against
|
|
334
|
-
| `EXECUTOR_JWKS_REFRESH_SECONDS` | How often, one minute to a day, five minutes by default
|
|
335
|
-
| `EXECUTOR_JWT_CLOCK_TOLERANCE_SECONDS` | Leeway on a token's times, up to five minutes, thirty seconds by default
|
|
336
|
-
| `EXECUTOR_RATE_LIMIT_UNAUTHENTICATED` | `<count>/<seconds>` for attempts that never became a principal; `20/60` by default
|
|
337
|
-
| `EXECUTOR_AUTH_LOCKOUT` | `<failures>/<seconds>/<lock seconds>` for a principal's proven failures; `10/60/300` by default, `0/…` disables
|
|
338
|
-
| `EXECUTOR_ESCALATION` | `NONE`, `DIRECT` or `MANAGED`; refused in shadow, which never escalates
|
|
339
|
-
| `EXECUTOR_POSTURE` | `ENFORCED` (the default) or `DEVELOPMENT`, which waives the host checks and says so; refused under `NODE_ENV=production`
|
|
340
|
-
| `EXECUTOR_POSTURE_INTERVAL_SECONDS` | How often the drift checks repeat while running; ten seconds to ten minutes, sixty by default
|
|
341
|
-
| `EXECUTOR_SECRETS_DIR` | The directory every `<NAME>_FILE` must resolve inside; required in production when any file is mounted
|
|
342
|
-
| `EXECUTOR_TLS_CERT_FILE`, `EXECUTOR_TLS_KEY` | The listener's certificate chain and its private key; the key is a secret, given as `EXECUTOR_TLS_KEY_FILE` in production
|
|
343
|
-
| `EXECUTOR_TLS_CLIENT_CA_FILE` | Optional: the CA that callers' client certificates chain to; every non-public route then requires one
|
|
344
|
-
| `EXECUTOR_TLS_MIN_VERSION` | `1.3` (the default) or `1.2`, which admits TLS 1.2 with AEAD ciphers only
|
|
345
|
-
| `EXECUTOR_ALLOW_PLAINTEXT_LISTENER` | `true` runs the listener without TLS, for a developer's machine; refused under `NODE_ENV=production`
|
|
346
|
-
| `EXECUTOR_EGRESS_MAX_RESPONSE_BYTES` | The most any outbound response may carry, 1 KiB to 16 MiB, 1 MiB by default
|
|
347
|
-
| `EXECUTOR_JOURNAL_DIR` | Where the evidence chains' heads and the attempt journal live; absolute, writable, required in enforcement
|
|
348
|
-
| `EXECUTOR_JOURNAL_REQUIRED` | `false` lets enforcement run without a journal, for a developer's machine; refused under `NODE_ENV=production`
|
|
349
|
-
| `EXECUTOR_JOURNAL_RETAIN_DAYS` | How many days of attempt files a restart reads back, one to a year, seven by default
|
|
350
|
-
| `EXECUTOR_READY_REQUIRES_NO_UNKNOWN_ATTEMPTS` | `true` keeps `/ready` at 503 while any attempt's outcome is unknown
|
|
351
|
-
| `EXECUTOR_HALT_FILE` | Optional: a file whose presence halts the executor, watched and polled
|
|
352
|
-
| `EXECUTOR_HALT_ON_AUTH_FAILURES` | `<count>/<seconds>` of door refusals that halt the executor; `50/60` by default
|
|
353
|
-
| `EXECUTOR_HALT_ON_EGRESS_REFUSALS` | `<count>/<seconds>` of refused outbound requests that halt it; `5/60` by default
|
|
354
|
-
| `EXECUTOR_HARD_LIMIT_SINGLE_MINOR` | `CHF:2500000000,EUR:1000000`: the most one action may move, per currency, in minor units
|
|
355
|
-
| `EXECUTOR_HARD_LIMIT_WINDOW_SECONDS` | The window the count and sum below are measured over; required with either
|
|
356
|
-
| `EXECUTOR_HARD_LIMIT_WINDOW_COUNT` | Optional: the most actions that may execute inside the window
|
|
357
|
-
| `EXECUTOR_HARD_LIMIT_WINDOW_SUM_MINOR` | Optional: the most value that may move inside the window, in minor units
|
|
358
|
-
| `EXECUTOR_MAX_CLOCK_SKEW_MS` | How far the authority's clock may differ before the executor halts; two seconds by default
|
|
359
|
-
| `EXECUTOR_AUDIT_CHECKPOINT_LINES` | How many chained lines between persisted heads, one hundred by default
|
|
360
|
-
| `EXECUTOR_EVIDENCE_DIR` | Where an operator's evidence bundle is written; exporting is refused with `409` when absent
|
|
361
|
-
| `EXECUTOR_EVIDENCE_WINDOW_LINES` | Lines of each stream this process keeps for a bundle, 100 to 200000, five thousand by default
|
|
362
|
-
| `EXECUTOR_EVIDENCE_SIGNING_KEY` | Optional Ed25519 PKCS#8 key that signs a bundle's manifest; secret, and needs an evidence directory
|
|
363
|
-
| `EXECUTOR_IMAGE_DIGEST` | What the platform says this deployment is running; carried into a bundle and marked not self-verified
|
|
364
|
-
| `EXECUTOR_DECISION_AUTHORITY` | `hosted` (the default): Decionis decides every intent. `edge`: the edge evaluator decides locally
|
|
365
|
-
| `EXECUTOR_EDGE_WASM_PATH` | `edge` only: the evaluator module (ABI 3), licensed separately; the executor refuses to start without it
|
|
366
|
-
| `EXECUTOR_EDGE_ORG_ID` | `edge` only: the Decionis organisation the policy bundles are issued to
|
|
367
|
-
| `EXECUTOR_EDGE_BUNDLE_SOURCE`, `_FILE` | `url` (the default) fetches bundles from Decionis; `file` reads `EXECUTOR_EDGE_BUNDLE_FILE`
|
|
368
|
-
| `EXECUTOR_EDGE_REFRESH_SECONDS` | The routine bundle refresh, one minute to a day, an hour by default
|
|
369
|
-
| `EXECUTOR_EDGE_ON_UNAVAILABLE` | `hosted` (the default) asks Decionis when there is no usable bundle; `block` refuses
|
|
370
|
-
| `EXECUTOR_EDGE_REPLAY_STORE` | `memory` (the default) or `postgres`: where single use is held; several replicas need `postgres`
|
|
371
|
-
| `EXECUTOR_EDGE_SINGLE_REPLICA` | `true` is required with `memory`: the deployment's statement that it runs one replica
|
|
372
|
-
| `EXECUTOR_EDGE_REPLAY_DATABASE_URL`, `_TABLE` | `postgres` only: the connection string (secret) and the claims table, `agentsafe_edge_replay` by default
|
|
373
|
-
| `EXECUTOR_EDGE_INSTALLATION_ID` | The installation a usage report names, one per evidence chain; generated and kept in the journal when absent
|
|
374
|
-
| `EXECUTOR_EDGE_USAGE_SIGNING_KEY`, `_KEY_ID` | Ed25519 PKCS#8 key monthly usage reports are signed with (secret), and its `kid`; without it a licence warning stands
|
|
375
|
-
| `EXECUTOR_EDGE_USAGE_REPORT_DIR` | `file` source only: where signed usage reports are written for an operator to upload
|
|
376
|
-
| `
|
|
377
|
-
| `
|
|
378
|
-
| `
|
|
379
|
-
| `
|
|
380
|
-
| `
|
|
381
|
-
| `
|
|
382
|
-
| `
|
|
383
|
-
| `
|
|
384
|
-
| `
|
|
385
|
-
| `
|
|
386
|
-
| `
|
|
387
|
-
| `
|
|
388
|
-
| `
|
|
389
|
-
| `
|
|
390
|
-
| `
|
|
391
|
-
| `
|
|
392
|
-
| `
|
|
393
|
-
| `
|
|
394
|
-
| `
|
|
395
|
-
| `
|
|
396
|
-
| `
|
|
397
|
-
| `
|
|
398
|
-
| `
|
|
399
|
-
| `
|
|
400
|
-
| `
|
|
401
|
-
| `
|
|
402
|
-
| `
|
|
403
|
-
| `
|
|
339
|
+
| Variable | Meaning |
|
|
340
|
+
| ------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
341
|
+
| `EXECUTOR_MODE` | `SHADOW` or `ENFORCEMENT` |
|
|
342
|
+
| `EXECUTOR_BIND_ADDRESS`, `PORT` | Where the listener binds |
|
|
343
|
+
| `EXECUTOR_TENANT_ID` | Legacy mode only: the Decionis tenant, a UUID |
|
|
344
|
+
| `EXECUTOR_ACTOR_ID`, `_TYPE` | Legacy mode only: the actor the intent names; `EXECUTOR_ACTOR_RUNTIME` is optional |
|
|
345
|
+
| `EXECUTOR_INTENT_TTL_SECONDS` | How long a proposal stays valid, at most five minutes; a ceremony has to finish inside it |
|
|
346
|
+
| `EXECUTOR_CALLER_TOKEN` | Legacy mode only: the token the one caller presents; secret |
|
|
347
|
+
| `EXECUTOR_PRINCIPALS_FILE` | The principals file; excludes `EXECUTOR_TENANT_ID`, `EXECUTOR_ACTOR_*` and the caller token; required in production |
|
|
348
|
+
| `EXECUTOR_ALLOW_LEGACY_CALLER` | `true` lets production run without a principals file, on the legacy caller alone |
|
|
349
|
+
| `EXECUTOR_JWT_AUDIENCE`, `EXECUTOR_JWKS_FILE` | Together: the audience workload tokens must carry, and the JWKS they are verified against |
|
|
350
|
+
| `EXECUTOR_JWKS_URL`, `EXECUTOR_JWKS_CA_FILE` | Optional: where the JWKS is refreshed from through the guarded fetch, and the bundle that address is verified against |
|
|
351
|
+
| `EXECUTOR_JWKS_REFRESH_SECONDS` | How often, one minute to a day, five minutes by default |
|
|
352
|
+
| `EXECUTOR_JWT_CLOCK_TOLERANCE_SECONDS` | Leeway on a token's times, up to five minutes, thirty seconds by default |
|
|
353
|
+
| `EXECUTOR_RATE_LIMIT_UNAUTHENTICATED` | `<count>/<seconds>` for attempts that never became a principal; `20/60` by default |
|
|
354
|
+
| `EXECUTOR_AUTH_LOCKOUT` | `<failures>/<seconds>/<lock seconds>` for a principal's proven failures; `10/60/300` by default, `0/…` disables |
|
|
355
|
+
| `EXECUTOR_ESCALATION` | `NONE`, `DIRECT` or `MANAGED`; refused in shadow, which never escalates |
|
|
356
|
+
| `EXECUTOR_POSTURE` | `ENFORCED` (the default) or `DEVELOPMENT`, which waives the host checks and says so; refused under `NODE_ENV=production` |
|
|
357
|
+
| `EXECUTOR_POSTURE_INTERVAL_SECONDS` | How often the drift checks repeat while running; ten seconds to ten minutes, sixty by default |
|
|
358
|
+
| `EXECUTOR_SECRETS_DIR` | The directory every `<NAME>_FILE` must resolve inside; required in production when any file is mounted |
|
|
359
|
+
| `EXECUTOR_TLS_CERT_FILE`, `EXECUTOR_TLS_KEY` | The listener's certificate chain and its private key; the key is a secret, given as `EXECUTOR_TLS_KEY_FILE` in production |
|
|
360
|
+
| `EXECUTOR_TLS_CLIENT_CA_FILE` | Optional: the CA that callers' client certificates chain to; every non-public route then requires one |
|
|
361
|
+
| `EXECUTOR_TLS_MIN_VERSION` | `1.3` (the default) or `1.2`, which admits TLS 1.2 with AEAD ciphers only |
|
|
362
|
+
| `EXECUTOR_ALLOW_PLAINTEXT_LISTENER` | `true` runs the listener without TLS, for a developer's machine; refused under `NODE_ENV=production` |
|
|
363
|
+
| `EXECUTOR_EGRESS_MAX_RESPONSE_BYTES` | The most any outbound response may carry, 1 KiB to 16 MiB, 1 MiB by default |
|
|
364
|
+
| `EXECUTOR_JOURNAL_DIR` | Where the evidence chains' heads and the attempt journal live; absolute, writable, required in enforcement |
|
|
365
|
+
| `EXECUTOR_JOURNAL_REQUIRED` | `false` lets enforcement run without a journal, for a developer's machine; refused under `NODE_ENV=production` |
|
|
366
|
+
| `EXECUTOR_JOURNAL_RETAIN_DAYS` | How many days of attempt files a restart reads back, one to a year, seven by default |
|
|
367
|
+
| `EXECUTOR_READY_REQUIRES_NO_UNKNOWN_ATTEMPTS` | `true` keeps `/ready` at 503 while any attempt's outcome is unknown |
|
|
368
|
+
| `EXECUTOR_HALT_FILE` | Optional: a file whose presence halts the executor, watched and polled |
|
|
369
|
+
| `EXECUTOR_HALT_ON_AUTH_FAILURES` | `<count>/<seconds>` of door refusals that halt the executor; `50/60` by default |
|
|
370
|
+
| `EXECUTOR_HALT_ON_EGRESS_REFUSALS` | `<count>/<seconds>` of refused outbound requests that halt it; `5/60` by default |
|
|
371
|
+
| `EXECUTOR_HARD_LIMIT_SINGLE_MINOR` | `CHF:2500000000,EUR:1000000`: the most one action may move, per currency, in minor units |
|
|
372
|
+
| `EXECUTOR_HARD_LIMIT_WINDOW_SECONDS` | The window the count and sum below are measured over; required with either |
|
|
373
|
+
| `EXECUTOR_HARD_LIMIT_WINDOW_COUNT` | Optional: the most actions that may execute inside the window |
|
|
374
|
+
| `EXECUTOR_HARD_LIMIT_WINDOW_SUM_MINOR` | Optional: the most value that may move inside the window, in minor units |
|
|
375
|
+
| `EXECUTOR_MAX_CLOCK_SKEW_MS` | How far the authority's clock may differ before the executor halts; two seconds by default |
|
|
376
|
+
| `EXECUTOR_AUDIT_CHECKPOINT_LINES` | How many chained lines between persisted heads, one hundred by default |
|
|
377
|
+
| `EXECUTOR_EVIDENCE_DIR` | Where an operator's evidence bundle is written; exporting is refused with `409` when absent |
|
|
378
|
+
| `EXECUTOR_EVIDENCE_WINDOW_LINES` | Lines of each stream this process keeps for a bundle, 100 to 200000, five thousand by default |
|
|
379
|
+
| `EXECUTOR_EVIDENCE_SIGNING_KEY` | Optional Ed25519 PKCS#8 key that signs a bundle's manifest; secret, and needs an evidence directory |
|
|
380
|
+
| `EXECUTOR_IMAGE_DIGEST` | What the platform says this deployment is running; carried into a bundle and marked not self-verified |
|
|
381
|
+
| `EXECUTOR_DECISION_AUTHORITY` | `hosted` (the default): Decionis decides every intent. `edge`: the edge evaluator decides locally |
|
|
382
|
+
| `EXECUTOR_EDGE_WASM_PATH` | `edge` only: the evaluator module (ABI 3), licensed separately; the executor refuses to start without it |
|
|
383
|
+
| `EXECUTOR_EDGE_ORG_ID` | `edge` only: the Decionis organisation the policy bundles are issued to |
|
|
384
|
+
| `EXECUTOR_EDGE_BUNDLE_SOURCE`, `_FILE` | `url` (the default) fetches bundles from Decionis; `file` reads `EXECUTOR_EDGE_BUNDLE_FILE` |
|
|
385
|
+
| `EXECUTOR_EDGE_REFRESH_SECONDS` | The routine bundle refresh, one minute to a day, an hour by default |
|
|
386
|
+
| `EXECUTOR_EDGE_ON_UNAVAILABLE` | `hosted` (the default) asks Decionis when there is no usable bundle; `block` refuses |
|
|
387
|
+
| `EXECUTOR_EDGE_REPLAY_STORE` | `memory` (the default) or `postgres`: where single use is held; several replicas need `postgres` |
|
|
388
|
+
| `EXECUTOR_EDGE_SINGLE_REPLICA` | `true` is required with `memory`: the deployment's statement that it runs one replica |
|
|
389
|
+
| `EXECUTOR_EDGE_REPLAY_DATABASE_URL`, `_TABLE` | `postgres` only: the connection string (secret) and the claims table, `agentsafe_edge_replay` by default |
|
|
390
|
+
| `EXECUTOR_EDGE_INSTALLATION_ID` | The installation a usage report names, one per evidence chain; generated and kept in the journal when absent |
|
|
391
|
+
| `EXECUTOR_EDGE_USAGE_SIGNING_KEY`, `_KEY_ID` | Ed25519 PKCS#8 key monthly usage reports are signed with (secret), and its `kid`; without it a licence warning stands |
|
|
392
|
+
| `EXECUTOR_EDGE_USAGE_REPORT_DIR` | `file` source only: where signed usage reports are written for an operator to upload |
|
|
393
|
+
| `EXECUTOR_CARD_HOLDS_STORE` | `memory` (the default) or `postgres`: where card holds and claims live; several replicas, or holds across a restart, need `postgres` |
|
|
394
|
+
| `EXECUTOR_CARD_HOLDS_NAMESPACE` | `postgres` only, required: whose holds these are; two deployments on one database never see each other's |
|
|
395
|
+
| `EXECUTOR_CARD_HOLDS_DATABASE_URL`, `_TABLE` | `postgres` only: the connection string (secret) and the tables' prefix, `agentsafe_card` by default |
|
|
396
|
+
| `EXECUTOR_CARD_HOLDS_KEY` | `postgres` only: 32 bytes, hex or base64 (secret), under which what a row keeps of a grant is sealed |
|
|
397
|
+
| `EXECUTOR_CARD_AUTHORIZATIONS` | `single` (the default): one amount per authorization id. `incremental`: the same id may be re-presented for more, up to the ceiling |
|
|
398
|
+
| `EXECUTOR_CARD_NO_GRANT` | `no_match` (the default): an authorization with no hold is `NO_GRANT`. `evaluate`: it is evaluated at the commit boundary, held and claimed on an `ALLOW`, `PENDING` on an `ESCALATE` |
|
|
399
|
+
| `EXECUTOR_CARD_COMMIT_TENANT_ID`, `_ACTOR_ID`, `_ACTOR_TYPE` | `evaluate` only, the first two required: the tenant and actor (`SYSTEM` by default) a commit-boundary evaluation is captured as |
|
|
400
|
+
| `EXECUTOR_EDGE_ENTITLEMENT_FILE`, `EXECUTOR_EDGE_JWKS_FILE` | `file` source only: the signed entitlement and the pinned Decionis JWKS it is verified against |
|
|
401
|
+
| `DECIONIS_API_URL` | The authority, HTTPS |
|
|
402
|
+
| `DECIONIS_API_KEY` | The server-side Decionis credential; secret |
|
|
403
|
+
| `DECIONIS_ALLOW_INSECURE_LOOPBACK` | `true` permits plain HTTP to loopback for local doubles; refused under `NODE_ENV=production` |
|
|
404
|
+
| `DECIONIS_CA_FILE`, `DECIONIS_SPKI_PINS` | Optional: the PEM bundle the authority is verified against, and two or more `sha256/<base64>` SPKI pins |
|
|
405
|
+
| `PRESENCE_APPROVER_ID` | The person who must approve (`DIRECT` and `MANAGED`); `PRESENCE_APPROVER_ROLE` is optional in `MANAGED` |
|
|
406
|
+
| `PRESENCE_VERIFICATION_LEVEL`, `_METHODS` | `STANDARD` or `HIGH_CONFIDENCE`, and a comma-separated list of `WEBAUTHN`, `ACTIVE_LIVENESS` |
|
|
407
|
+
| `PRESENCE_API_URL`, `PRESENCE_API_KEY` | `DIRECT` only: the Presence service and its server-side credential; secret |
|
|
408
|
+
| `PRESENCE_ORGANIZATION` | `DIRECT` only: the requesting party the person sees |
|
|
409
|
+
| `PRESENCE_CA_FILE` | `DIRECT` only, optional: the PEM bundle the Presence service is verified against |
|
|
410
|
+
| `PRESENCE_HARDWARE_PKI_REQUIRED`, `_DISALLOW_VIRTUAL_CAMERAS` | `DIRECT` only: `true` or `false` |
|
|
411
|
+
| `DOWNSTREAM_URL` | Where the reference handler forwards the verified parameters, HTTPS |
|
|
412
|
+
| `DOWNSTREAM_LOOKUP_URL` | Optional read-only lookup for reconciliation; must contain `{idempotency_key}` |
|
|
413
|
+
| `DOWNSTREAM_SYSTEM`, `_OPERATION`, `_ENVIRONMENT` | The downstream target the intent names |
|
|
414
|
+
| `DOWNSTREAM_CREDENTIAL_KIND` | `STATIC_HEADER` (the default), `PRIVATE_KEY_JWT` or `SIGNED_REQUEST`; the other kinds' keys must be absent |
|
|
415
|
+
| `DOWNSTREAM_CREDENTIAL` | `STATIC_HEADER`: the header value the downstream expects, prefix included; secret |
|
|
416
|
+
| `DOWNSTREAM_CREDENTIAL_HEADER` | `STATIC_HEADER`: the header it goes in |
|
|
417
|
+
| `DOWNSTREAM_TOKEN_URL`, `DOWNSTREAM_CLIENT_ID` | `PRIVATE_KEY_JWT`: the token endpoint, HTTPS, and the client id |
|
|
418
|
+
| `DOWNSTREAM_PRIVATE_KEY` | `PRIVATE_KEY_JWT`: the PKCS#8 key the assertion is signed with; secret |
|
|
419
|
+
| `DOWNSTREAM_PRIVATE_KEY_ID`, `_ALGORITHM` | `PRIVATE_KEY_JWT`: optional `kid`, and `ES256` (the default) or `PS256` |
|
|
420
|
+
| `DOWNSTREAM_TOKEN_AUDIENCE`, `DOWNSTREAM_TOKEN_SCOPE` | `PRIVATE_KEY_JWT`: optional assertion audience (the token endpoint by default) and scope |
|
|
421
|
+
| `DOWNSTREAM_SIGNING_KEY`, `DOWNSTREAM_SIGNING_KEY_ID` | `SIGNED_REQUEST`: the Ed25519 PKCS#8 key or the HMAC secret, and the `keyid` the downstream knows it by; the key is secret |
|
|
422
|
+
| `DOWNSTREAM_SIGNING_ALGORITHM` | `SIGNED_REQUEST`: `ed25519` (the default) or `hmac-sha256` |
|
|
423
|
+
| `DOWNSTREAM_CA_FILE`, `DOWNSTREAM_SPKI_PINS` | Optional: the PEM bundle the downstream is verified against, and two or more `sha256/<base64>` SPKI pins |
|
|
424
|
+
| `DOWNSTREAM_TIMEOUT_MS` | Finite, at most fifteen seconds |
|
|
425
|
+
| `DOWNSTREAM_LOOKUP_BY_REFERENCE_URL` | Optional read-back by the provider's own reference; must contain `{provider_reference}` |
|
|
426
|
+
| `BANKING_ADAPTER_ID`, `BANKING_ADAPTER_VERSION` | The observer identity the effect evidence names; `AGENTSAFE_CORE_BANKING` and `0.1.0` by default |
|
|
427
|
+
| `EXECUTOR_ON_EFFECT_MISMATCH` | `HALT` (the default) or `ALERT`: what an observed effect that is not the authorised one does |
|
|
404
428
|
|
|
405
429
|
### The edge evaluator
|
|
406
430
|
|
|
@@ -994,23 +1018,38 @@ mcc? }` and the target `card:<cardTokenRef>`. The card is named by its token ref
|
|
|
994
1018
|
grouped) is refused with `422 CARD_PAN_REFUSED` before the intent is captured. The amount is a
|
|
995
1019
|
ceiling in minor units of a currency this build knows the exponent of.
|
|
996
1020
|
2. On an `ALLOW` the grant is held, not claimed: the answer is `outcome: "HELD_FOR_AUTHORIZATION"`,
|
|
997
|
-
`executed: false`, with the grant's expiry in `result.expires_at`.
|
|
998
|
-
|
|
999
|
-
|
|
1021
|
+
`executed: false`, with the grant's expiry in `result.expires_at`. Holds are keyed by the card
|
|
1022
|
+
and the merchant: one card has at most one spendable hold per merchant, so a second purchase at
|
|
1023
|
+
the same merchant is `409 CARD_GRANT_ALREADY_HELD` until the first is authorised or expires,
|
|
1024
|
+
while purchases at other merchants hold in parallel. An `ESCALATE` resumes with an attestation,
|
|
1025
|
+
as above.
|
|
1000
1026
|
3. The issuer's hook posts `{ authorization_id, card_token_ref, amount_minor, currency,
|
|
1001
|
-
merchant_id, mcc? }` to `/v1/card-authorizations`. The
|
|
1002
|
-
|
|
1003
|
-
one
|
|
1004
|
-
grant through the authority exactly once and
|
|
1005
|
-
intent_hash, decision_id, dossier_id, grant_id,
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
`
|
|
1009
|
-
`
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1027
|
+
merchant_id, mcc? }` to `/v1/card-authorizations`. The hold is found by the card and the merchant
|
|
1028
|
+
the authorization names, the match is pure, and the claim is the only network call: same
|
|
1029
|
+
currency, same category when the purchase named one, an amount at or below the grant, and a
|
|
1030
|
+
grant unexpired and unspent. A match claims the grant through the authority exactly once and
|
|
1031
|
+
answers `{ decision: "APPROVE", intent_id, intent_hash, decision_id, dossier_id, grant_id,
|
|
1032
|
+
lease_expires_at }`; anything else answers `{ decision: "NO_MATCH", code }` with `NO_GRANT`
|
|
1033
|
+
(none held for this card at this merchant), `GRANT_ALREADY_USED`, `GRANT_EXPIRED`,
|
|
1034
|
+
`CURRENCY_MISMATCH`, `MCC_MISMATCH`, `AMOUNT_EXCEEDS_GRANT`, `AUTHORIZATION_ID_REUSED`,
|
|
1035
|
+
`GRANT_CLAIM_REFUSED`, `JOURNAL_UNAVAILABLE`, `CARD_HOLDS_UNAVAILABLE`, `EXECUTOR_HALTED`,
|
|
1036
|
+
`POSTURE_DEGRADED` or `CARD_AUTHORIZATION_CAPACITY_EXCEEDED`. What a `NO_MATCH` means for the
|
|
1037
|
+
purchase is the issuer's own policy. Concurrent identical requests share one claim and answer.
|
|
1038
|
+
Reusing an authorization id for a different request is refused before another card's grant can
|
|
1039
|
+
be claimed, unless the issuer may increment: with `EXECUTOR_CARD_AUTHORIZATIONS=incremental`,
|
|
1040
|
+
the same id re-presented for a higher amount, within the ceiling and before its result, is
|
|
1041
|
+
answered from the same claim (`CARD_AUTHORIZATION_INCREMENTED`), and the result records the
|
|
1042
|
+
final amount. At most 10,000 distinct authorization ids can be in flight per process. A
|
|
1043
|
+
completed approval is cached for retry while its record is retained. With
|
|
1044
|
+
`EXECUTOR_CARD_NO_GRANT=evaluate`, an authorization with no hold is not `NO_GRANT` but
|
|
1045
|
+
evaluated at the commit boundary as a `card.purchase` intent of the commit actor the deployment
|
|
1046
|
+
names: an `ALLOW` is held and claimed in the same call, an `ESCALATE` is answered
|
|
1047
|
+
`{ decision: "PENDING", intent_id, intent_hash, decision_id, dossier_id, expires_at, escalation }`
|
|
1048
|
+
for a platform that can pend until the tap arrives through `POST /v1/escalations` (presented by
|
|
1049
|
+
the issuer app's backend, an operator with `escalations.resume`) and the authorization is
|
|
1050
|
+
re-presented (`CARD_AUTHORIZATION_PENDING`), and a `BLOCK` is `NO_MATCH` with `POLICY_BLOCK`.
|
|
1051
|
+
The three places a tap can wait, and which of Koard's taps each is, are in
|
|
1052
|
+
[the card authorization guide](../../docs/banking/card-authorization.md#the-three-places-a-tap-can-wait).
|
|
1014
1053
|
4. The hook posts `{ status: "APPROVED" | "DECLINED", approved_amount_minor?, auth_code? }` to
|
|
1015
1054
|
`/v1/card-authorizations/{authorization_id}/result`. An approval finalizes the grant
|
|
1016
1055
|
`COMMITTED` with the effect compared against the grant (inside the ceiling is a match; above it
|
|
@@ -1018,13 +1057,34 @@ intent_hash, decision_id, dossier_id, grant_id, lease_expires_at }`; anything el
|
|
|
1018
1057
|
claim's lease finalizes `INDETERMINATE` with `CLAIM_LEASE_EXPIRED`, because the authority no
|
|
1019
1058
|
longer takes a commit for it. A result is recorded once.
|
|
1020
1059
|
|
|
1021
|
-
Holds live in memory, bounded, for no longer than their grant; a restart loses only
|
|
1022
|
-
claimed, which expire with no effect
|
|
1060
|
+
Holds live in memory by default, bounded, for no longer than their grant; a restart loses only
|
|
1061
|
+
grants nobody claimed, which expire with no effect, and that is right for exactly one replica. A
|
|
1062
|
+
deployment with several replicas, or one that must keep its holds across a restart, sets
|
|
1063
|
+
`EXECUTOR_CARD_HOLDS_STORE=postgres`: holds and claims become rows every replica shares, unique on
|
|
1064
|
+
the card and the merchant, and the database decides each race in one statement, so of two
|
|
1065
|
+
purchases racing for the same key one holds, and of two authorizations racing for the same hold
|
|
1066
|
+
one claims, exactly as in memory. What a row keeps of a grant, and later of the claim, is sealed
|
|
1067
|
+
under `EXECUTOR_CARD_HOLDS_KEY` (32 bytes, hex or base64, a secret) with the row's own identity
|
|
1068
|
+
as associated data, so the database holds no bearer credential in clear and a row moved elsewhere
|
|
1069
|
+
does not open. A hold another replica made is admitted on first use through the executor's own
|
|
1070
|
+
checks (`GRANT_HELD` with `HOLD_ADOPTED`), and a claim another replica made is settled with the
|
|
1071
|
+
claim material that replica sealed, so the issuer's hook and its result may reach any replica.
|
|
1072
|
+
`agentsafe cards holds-schema [--table <prefix>]` prints the DDL; the operator creates the three
|
|
1073
|
+
tables once, the executor probes them at start and sweeps them hourly, and
|
|
1074
|
+
`EXECUTOR_CARD_HOLDS_NAMESPACE` keeps two deployments on one database apart. Each card purchase's
|
|
1075
|
+
intent context carries
|
|
1076
|
+
`card_velocity: { window_seconds: 600, holds, claims }`, how many purchases this process held for
|
|
1077
|
+
the same card and how many authorizations claimed one in the last ten minutes, counted here because
|
|
1078
|
+
the policy language counts nothing over time: a rule can hold a burst for the cardholder's tap. The
|
|
1079
|
+
numbers are part of the hashed intent; the card reference is not among them. A claimed authorization is journaled before the issuer is
|
|
1023
1080
|
told to approve, and one whose result never arrives stays an open, unknown attempt, because the
|
|
1024
1081
|
executor has no read path into the issuer's ledger. The security stream carries
|
|
1025
|
-
`CARD_GRANT_HELD`, `CARD_AUTHORIZATION_MATCHED`, `
|
|
1026
|
-
`
|
|
1027
|
-
|
|
1082
|
+
`CARD_GRANT_HELD`, `CARD_AUTHORIZATION_MATCHED`, `CARD_AUTHORIZATION_INCREMENTED`,
|
|
1083
|
+
`CARD_AUTHORIZATION_NO_MATCH` with its code, `CARD_AUTHORIZATION_SETTLED` with the outcome, and
|
|
1084
|
+
`CARD_CLAIM_RECORD_FAILED` when the shared store could not keep a claim: intent ids and codes,
|
|
1085
|
+
never a card reference, an amount or a merchant. The card path's own cost is measured in
|
|
1086
|
+
`test/performance`; what the hook's latency is in a deployment is in
|
|
1087
|
+
[the card authorization guide](../../docs/banking/card-authorization.md#latency).
|
|
1028
1088
|
|
|
1029
1089
|
## The image
|
|
1030
1090
|
|
package/dist/Cli.js
CHANGED
|
@@ -21,6 +21,7 @@ import { join } from "node:path";
|
|
|
21
21
|
import process from "node:process";
|
|
22
22
|
import { nodeCliProcess } from "./cli/CliProcess.js";
|
|
23
23
|
import { isGatewayCommand, runGatewayCommand } from "./cli/Commands.js";
|
|
24
|
+
import { runCards } from "./cli/Cards.js";
|
|
24
25
|
import { runEdge } from "./cli/Edge.js";
|
|
25
26
|
import { usage } from "./cli/Help.js";
|
|
26
27
|
import { runVerifyIntent } from "./cli/VerifyIntent.js";
|
|
@@ -52,6 +53,7 @@ const COMMANDS = [
|
|
|
52
53
|
"verify-intent",
|
|
53
54
|
"probe-containment",
|
|
54
55
|
"edge",
|
|
56
|
+
"cards",
|
|
55
57
|
"tcp-broker",
|
|
56
58
|
"connector",
|
|
57
59
|
"tunnel",
|
|
@@ -139,6 +141,9 @@ async function main() {
|
|
|
139
141
|
else if (command === "edge") {
|
|
140
142
|
await runEdge(nodeCliProcess(), rest);
|
|
141
143
|
}
|
|
144
|
+
else if (command === "cards") {
|
|
145
|
+
await runCards(nodeCliProcess(), rest);
|
|
146
|
+
}
|
|
142
147
|
else if (command === "verify-intent") {
|
|
143
148
|
runVerifyIntent(nodeCliProcess(), rest);
|
|
144
149
|
}
|
package/dist/Cli.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Cli.js","sourceRoot":"","sources":["../src/Cli.ts"],"names":[],"mappings":";AACA;;;;;;;;;;;;;;;;GAgBG;AACH,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,OAAO,MAAM,cAAc,CAAC;AACnC,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACxE,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACtC,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AAClF,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC5C,OA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AO,EAAE,WAAW,CAAC;IAC9B,yFAAyF;IACzF,QAAQ,CAAC,QAAQ,CAAC,EAAE,mBAAmB,CAAC;IACxC,QAAQ,CAAC,YAAY,CAAC,EAAE,2BAA2B,CAAC;CACrD;AAED,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,OAAO,EAAE,sBAAsB,CAAC;IACzC,yFAAyF;IACzF,QAAQ,CAAC,QAAQ,EAAE,gBAAgB,CAAC;IACpC,4EAA4E;IAC5E,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;IAC1B,uEAAuE;IACvE,QAAQ,CAAC,OAAO,EAAE,aAAa,CAAC;IAChC,QAAQ,CAAC,OAAO,EAAE,eAAe,CAAC;IAClC,wCAAwC;IACxC,QAAQ,CAAC,UAAU,EAAE,iBAAiB,CAAC;IACvC,kFAAkF;IAClF,QAAQ,CAAC,aAAa,EAAE,aAAa,CAAC;IACtC,iFAAiF;IACjF,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAC;IAC7B,gHAAgH;IAChH,MAAM,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;IAC9D,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CACxB;AAED;;;;;;;;GAQG;AACH,wBAAsB,qBAAqB,CACzC,OAAO,EAAE,sBAAsB,GAC9B,OAAO,CAAC,eAAe,CAAC,CAiI1B"}
|
package/dist/TrustedExecutor.js
CHANGED
|
@@ -123,6 +123,7 @@ export async function createTrustedExecutor(options) {
|
|
|
123
123
|
// it did, never told to do it again.
|
|
124
124
|
await service.recover();
|
|
125
125
|
await service.startEdge();
|
|
126
|
+
await service.startCards();
|
|
126
127
|
const bound = await server.listen(port, address);
|
|
127
128
|
stopPosture = posture.start();
|
|
128
129
|
stopHalt = haltSwitch.start();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TrustedExecutor.js","sourceRoot":"","sources":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AM,GAAG,QAAQ,CAAC;IACxB,OAAO,CAAC,gBAAgB,CAAC,CAAC,QAAQ,EAAE,EAAE,CACpC,MAAM,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,gBAAgB,EAAE,QAAQ,EAAE,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC,CAClE,CAAC;IACF,OAAO,EAAE,IAAI,EAAE,YAAY,CAAC,IAAI,IAAI,OAAO,CAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC;AACxE,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AuthorizationFinalizationInput, AuthorizationVerifier, CapturedIntent,
|
|
1
|
+
import type { AuthorizationFinalizationInput, AuthorizationVerifier, CapturedIntent, DecisionGate, JsonObject, VerifiedAuthorization } from "@decionis/agent-safe-pipeline";
|
|
2
2
|
import type { EffectEvidenceRegister } from "./EffectEvidenceRegister.js";
|
|
3
3
|
export interface EffectAwareGrantVerifierOptions {
|
|
4
4
|
readonly verifier: AuthorizationVerifier;
|
|
@@ -24,7 +24,10 @@ export interface EffectAwareGrantVerifierOptions {
|
|
|
24
24
|
export declare class EffectAwareGrantVerifier implements AuthorizationVerifier {
|
|
25
25
|
private readonly options;
|
|
26
26
|
constructor(options: EffectAwareGrantVerifierOptions);
|
|
27
|
-
verifyAndConsume(captured: CapturedIntent, decision:
|
|
27
|
+
verifyAndConsume(captured: CapturedIntent, decision: DecisionGate): Promise<VerifiedAuthorization | null>;
|
|
28
|
+
/** Claim material is the delegate's: this wrapper holds nothing of a claim. */
|
|
29
|
+
claimMaterial(authorization: VerifiedAuthorization): JsonObject | null;
|
|
30
|
+
adoptClaim(authorization: VerifiedAuthorization, material: JsonObject): boolean;
|
|
28
31
|
finalize(input: AuthorizationFinalizationInput): Promise<"RECORDED" | "PENDING">;
|
|
29
32
|
}
|
|
30
33
|
//# sourceMappingURL=EffectAwareGrantVerifier.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EffectAwareGrantVerifier.d.ts","sourceRoot":"","sources":["../../src/adapters/EffectAwareGrantVerifier.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,8BAA8B,EAC9B,qBAAqB,EACrB,cAAc,EACd,YAAY,EACZ,qBAAqB,EACtB,MAAM,+BAA+B,CAAC;AAEvC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAE1E,MAAM,WAAW,+BAA+B;IAC9C,QAAQ,CAAC,QAAQ,EAAE,qBAAqB,CAAC;IACzC,QAAQ,CAAC,QAAQ,EAAE,sBAAsB,CAAC;IAC1C,QAAQ,CAAC,QAAQ,EAAE;QAAE,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;CACtE;AAED;;;;;;;;;;;;GAYG;AACH,qBAAa,wBAAyB,YAAW,qBAAqB;IACjD,OAAO,CAAC,QAAQ,CAAC,OAAO;gBAAP,OAAO,EAAE,+BAA+B;IAE/D,gBAAgB,CAC3B,QAAQ,EAAE,cAAc,EACxB,QAAQ,EAAE,YAAY,GACrB,OAAO,CAAC,qBAAqB,GAAG,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"EffectAwareGrantVerifier.d.ts","sourceRoot":"","sources":["../../src/adapters/EffectAwareGrantVerifier.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,8BAA8B,EAC9B,qBAAqB,EACrB,cAAc,EACd,YAAY,EACZ,UAAU,EACV,qBAAqB,EACtB,MAAM,+BAA+B,CAAC;AAEvC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAE1E,MAAM,WAAW,+BAA+B;IAC9C,QAAQ,CAAC,QAAQ,EAAE,qBAAqB,CAAC;IACzC,QAAQ,CAAC,QAAQ,EAAE,sBAAsB,CAAC;IAC1C,QAAQ,CAAC,QAAQ,EAAE;QAAE,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;CACtE;AAED;;;;;;;;;;;;GAYG;AACH,qBAAa,wBAAyB,YAAW,qBAAqB;IACjD,OAAO,CAAC,QAAQ,CAAC,OAAO;gBAAP,OAAO,EAAE,+BAA+B;IAE/D,gBAAgB,CAC3B,QAAQ,EAAE,cAAc,EACxB,QAAQ,EAAE,YAAY,GACrB,OAAO,CAAC,qBAAqB,GAAG,IAAI,CAAC;IAIxC,+EAA+E;IACxE,aAAa,CAAC,aAAa,EAAE,qBAAqB,GAAG,UAAU,GAAG,IAAI;IAKtE,UAAU,CAAC,aAAa,EAAE,qBAAqB,EAAE,QAAQ,EAAE,UAAU,GAAG,OAAO;IAKzE,QAAQ,CAAC,KAAK,EAAE,8BAA8B,GAAG,OAAO,CAAC,UAAU,GAAG,SAAS,CAAC;CAgB9F"}
|
|
@@ -20,6 +20,15 @@ export class EffectAwareGrantVerifier {
|
|
|
20
20
|
async verifyAndConsume(captured, decision) {
|
|
21
21
|
return await this.options.verifier.verifyAndConsume(captured, decision);
|
|
22
22
|
}
|
|
23
|
+
/** Claim material is the delegate's: this wrapper holds nothing of a claim. */
|
|
24
|
+
claimMaterial(authorization) {
|
|
25
|
+
const verifier = this.options.verifier;
|
|
26
|
+
return verifier.claimMaterial === undefined ? null : verifier.claimMaterial(authorization);
|
|
27
|
+
}
|
|
28
|
+
adoptClaim(authorization, material) {
|
|
29
|
+
const verifier = this.options.verifier;
|
|
30
|
+
return verifier.adoptClaim === undefined ? false : verifier.adoptClaim(authorization, material);
|
|
31
|
+
}
|
|
23
32
|
async finalize(input) {
|
|
24
33
|
const finalize = this.options.verifier.finalize?.bind(this.options.verifier);
|
|
25
34
|
if (finalize === undefined)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EffectAwareGrantVerifier.js","sourceRoot":"","sources":["../../src/adapters/EffectAwareGrantVerifier.ts"],"names":[],"mappings":"
|
|
1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