@decionis/agentsafe 0.6.0 → 0.8.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 +68 -20
- package/dist/Cli.js +30 -3
- package/dist/Cli.js.map +1 -1
- package/dist/Index.d.ts +5 -3
- package/dist/Index.d.ts.map +1 -1
- package/dist/Index.js +3 -1
- package/dist/Index.js.map +1 -1
- package/dist/TrustedExecutor.d.ts.map +1 -1
- package/dist/TrustedExecutor.js +2 -0
- package/dist/TrustedExecutor.js.map +1 -1
- package/dist/acceptance/AcceptancePlan.d.ts +109 -0
- package/dist/acceptance/AcceptancePlan.d.ts.map +1 -0
- package/dist/acceptance/AcceptancePlan.js +128 -0
- package/dist/acceptance/AcceptancePlan.js.map +1 -0
- package/dist/acceptance/AcceptanceReport.d.ts +596 -0
- package/dist/acceptance/AcceptanceReport.d.ts.map +1 -0
- package/dist/acceptance/AcceptanceReport.js +361 -0
- package/dist/acceptance/AcceptanceReport.js.map +1 -0
- package/dist/acceptance/AcceptanceRun.d.ts +118 -0
- package/dist/acceptance/AcceptanceRun.d.ts.map +1 -0
- package/dist/acceptance/AcceptanceRun.js +419 -0
- package/dist/acceptance/AcceptanceRun.js.map +1 -0
- package/dist/acceptance/Coverage.d.ts +12 -0
- package/dist/acceptance/Coverage.d.ts.map +1 -0
- package/dist/acceptance/Coverage.js +48 -0
- package/dist/acceptance/Coverage.js.map +1 -0
- package/dist/acceptance/OutageDoubles.d.ts +34 -0
- package/dist/acceptance/OutageDoubles.d.ts.map +1 -0
- package/dist/acceptance/OutageDoubles.js +67 -0
- package/dist/acceptance/OutageDoubles.js.map +1 -0
- package/dist/acceptance/ZoneProbes.d.ts +368 -0
- package/dist/acceptance/ZoneProbes.d.ts.map +1 -0
- package/dist/acceptance/ZoneProbes.js +488 -0
- package/dist/acceptance/ZoneProbes.js.map +1 -0
- package/dist/adapters/JcsDigest.d.ts +6 -5
- package/dist/adapters/JcsDigest.d.ts.map +1 -1
- package/dist/adapters/JcsDigest.js +9 -8
- package/dist/adapters/JcsDigest.js.map +1 -1
- package/dist/adapters/mcp/McpGuard.d.ts +32 -3
- package/dist/adapters/mcp/McpGuard.d.ts.map +1 -1
- package/dist/adapters/mcp/McpGuard.js +29 -5
- package/dist/adapters/mcp/McpGuard.js.map +1 -1
- package/dist/adapters/mcp/McpIntentBinder.d.ts +18 -3
- package/dist/adapters/mcp/McpIntentBinder.d.ts.map +1 -1
- package/dist/adapters/mcp/McpIntentBinder.js +48 -1
- package/dist/adapters/mcp/McpIntentBinder.js.map +1 -1
- package/dist/adapters/mcp/McpInvocation.d.ts +9 -2
- package/dist/adapters/mcp/McpInvocation.d.ts.map +1 -1
- package/dist/adapters/mcp/McpInvocation.js.map +1 -1
- package/dist/cli/Accept.d.ts +9 -0
- package/dist/cli/Accept.d.ts.map +1 -0
- package/dist/cli/Accept.js +209 -0
- package/dist/cli/Accept.js.map +1 -0
- package/dist/cli/Actions.d.ts +16 -0
- package/dist/cli/Actions.d.ts.map +1 -0
- package/dist/cli/Actions.js +194 -0
- package/dist/cli/Actions.js.map +1 -0
- package/dist/cli/Arguments.d.ts +4 -0
- package/dist/cli/Arguments.d.ts.map +1 -1
- package/dist/cli/Arguments.js +12 -3
- package/dist/cli/Arguments.js.map +1 -1
- package/dist/cli/Commands.d.ts +1 -1
- package/dist/cli/Commands.d.ts.map +1 -1
- package/dist/cli/Commands.js +5 -0
- package/dist/cli/Commands.js.map +1 -1
- package/dist/cli/ConfigCommand.d.ts.map +1 -1
- package/dist/cli/ConfigCommand.js +10 -0
- package/dist/cli/ConfigCommand.js.map +1 -1
- package/dist/cli/Doctor.d.ts.map +1 -1
- package/dist/cli/Doctor.js +67 -1
- package/dist/cli/Doctor.js.map +1 -1
- package/dist/cli/Help.d.ts.map +1 -1
- package/dist/cli/Help.js +18 -1
- package/dist/cli/Help.js.map +1 -1
- package/dist/cli/Host.d.ts +5 -2
- package/dist/cli/Host.d.ts.map +1 -1
- package/dist/cli/Host.js +24 -2
- package/dist/cli/Host.js.map +1 -1
- package/dist/cli/Identity.d.ts +13 -1
- package/dist/cli/Identity.d.ts.map +1 -1
- package/dist/cli/Identity.js +25 -2
- package/dist/cli/Identity.js.map +1 -1
- package/dist/cli/Profile.d.ts +24 -0
- package/dist/cli/Profile.d.ts.map +1 -0
- package/dist/cli/Profile.js +168 -0
- package/dist/cli/Profile.js.map +1 -0
- package/dist/cli/Records.d.ts +15 -0
- package/dist/cli/Records.d.ts.map +1 -0
- package/dist/cli/Records.js +205 -0
- package/dist/cli/Records.js.map +1 -0
- package/dist/cli/Status.d.ts +23 -0
- package/dist/cli/Status.d.ts.map +1 -1
- package/dist/cli/Status.js +80 -18
- package/dist/cli/Status.js.map +1 -1
- package/dist/cli/VerifyAcceptance.d.ts +38 -0
- package/dist/cli/VerifyAcceptance.d.ts.map +1 -0
- package/dist/cli/VerifyAcceptance.js +143 -0
- package/dist/cli/VerifyAcceptance.js.map +1 -0
- package/dist/config/ConfigKeys.d.ts +2 -2
- package/dist/config/ConfigKeys.d.ts.map +1 -1
- package/dist/config/ConfigKeys.js +6 -0
- package/dist/config/ConfigKeys.js.map +1 -1
- package/dist/config/ExecutorConfig.d.ts +35 -1
- package/dist/config/ExecutorConfig.d.ts.map +1 -1
- package/dist/config/ExecutorConfig.js +53 -1
- package/dist/config/ExecutorConfig.js.map +1 -1
- package/dist/egress/ZoneHttpClient.d.ts +3 -0
- package/dist/egress/ZoneHttpClient.d.ts.map +1 -0
- package/dist/egress/ZoneHttpClient.js +72 -0
- package/dist/egress/ZoneHttpClient.js.map +1 -0
- package/dist/exposure/DecionisExposureLedger.d.ts +44 -0
- package/dist/exposure/DecionisExposureLedger.d.ts.map +1 -0
- package/dist/exposure/DecionisExposureLedger.js +175 -0
- package/dist/exposure/DecionisExposureLedger.js.map +1 -0
- package/dist/exposure/ExposureDeclaration.d.ts +68 -0
- package/dist/exposure/ExposureDeclaration.d.ts.map +1 -0
- package/dist/exposure/ExposureDeclaration.js +83 -0
- package/dist/exposure/ExposureDeclaration.js.map +1 -0
- package/dist/exposure/ExposureFacts.d.ts +61 -0
- package/dist/exposure/ExposureFacts.d.ts.map +1 -0
- package/dist/exposure/ExposureFacts.js +201 -0
- package/dist/exposure/ExposureFacts.js.map +1 -0
- package/dist/exposure/ExposureGate.d.ts +144 -0
- package/dist/exposure/ExposureGate.d.ts.map +1 -0
- package/dist/exposure/ExposureGate.js +446 -0
- package/dist/exposure/ExposureGate.js.map +1 -0
- package/dist/exposure/ExposureLedger.d.ts +93 -0
- package/dist/exposure/ExposureLedger.d.ts.map +1 -0
- package/dist/exposure/ExposureLedger.js +24 -0
- package/dist/exposure/ExposureLedger.js.map +1 -0
- package/dist/gateway/AttemptStore.d.ts +83 -0
- package/dist/gateway/AttemptStore.d.ts.map +1 -0
- package/dist/gateway/AttemptStore.js +229 -0
- package/dist/gateway/AttemptStore.js.map +1 -0
- package/dist/gateway/ForwardHandler.d.ts +50 -6
- package/dist/gateway/ForwardHandler.d.ts.map +1 -1
- package/dist/gateway/ForwardHandler.js +58 -14
- package/dist/gateway/ForwardHandler.js.map +1 -1
- package/dist/gateway/Gateway.d.ts +347 -15
- package/dist/gateway/Gateway.d.ts.map +1 -1
- package/dist/gateway/Gateway.js +1524 -63
- package/dist/gateway/Gateway.js.map +1 -1
- package/dist/gateway/GatewayConfig.d.ts +295 -0
- package/dist/gateway/GatewayConfig.d.ts.map +1 -1
- package/dist/gateway/GatewayConfig.js +485 -13
- package/dist/gateway/GatewayConfig.js.map +1 -1
- package/dist/gateway/GatewayManifest.d.ts +18 -0
- package/dist/gateway/GatewayManifest.d.ts.map +1 -0
- package/dist/gateway/GatewayManifest.js +42 -0
- package/dist/gateway/GatewayManifest.js.map +1 -0
- package/dist/gateway/GatewayMetrics.d.ts +12 -4
- package/dist/gateway/GatewayMetrics.d.ts.map +1 -1
- package/dist/gateway/GatewayMetrics.js +5 -0
- package/dist/gateway/GatewayMetrics.js.map +1 -1
- package/dist/gateway/GatewayReport.d.ts +39 -2
- package/dist/gateway/GatewayReport.d.ts.map +1 -1
- package/dist/gateway/GatewayReport.js +14 -0
- package/dist/gateway/GatewayReport.js.map +1 -1
- package/dist/gateway/HoldStore.d.ts +89 -0
- package/dist/gateway/HoldStore.d.ts.map +1 -0
- package/dist/gateway/HoldStore.js +280 -0
- package/dist/gateway/HoldStore.js.map +1 -0
- package/dist/gateway/InterceptedRequest.d.ts +55 -1
- package/dist/gateway/InterceptedRequest.d.ts.map +1 -1
- package/dist/gateway/InterceptedRequest.js +63 -1
- package/dist/gateway/InterceptedRequest.js.map +1 -1
- package/dist/gateway/PolicySelector.d.ts +5 -0
- package/dist/gateway/PolicySelector.d.ts.map +1 -0
- package/dist/gateway/PolicySelector.js +9 -0
- package/dist/gateway/PolicySelector.js.map +1 -0
- package/dist/gateway/RouteTable.d.ts +72 -7
- package/dist/gateway/RouteTable.d.ts.map +1 -1
- package/dist/gateway/RouteTable.js +133 -9
- package/dist/gateway/RouteTable.js.map +1 -1
- package/dist/gateway/ShadowLedger.d.ts +11 -0
- package/dist/gateway/ShadowLedger.d.ts.map +1 -1
- package/dist/gateway/ShadowLedger.js +11 -0
- package/dist/gateway/ShadowLedger.js.map +1 -1
- package/dist/gateway/SubjectSessions.d.ts +113 -0
- package/dist/gateway/SubjectSessions.d.ts.map +1 -0
- package/dist/gateway/SubjectSessions.js +219 -0
- package/dist/gateway/SubjectSessions.js.map +1 -0
- package/dist/gateway/TargetEffect.d.ts +74 -0
- package/dist/gateway/TargetEffect.d.ts.map +1 -0
- package/dist/gateway/TargetEffect.js +95 -0
- package/dist/gateway/TargetEffect.js.map +1 -0
- package/dist/gateway/TargetReader.d.ts +70 -0
- package/dist/gateway/TargetReader.d.ts.map +1 -0
- package/dist/gateway/TargetReader.js +106 -0
- package/dist/gateway/TargetReader.js.map +1 -0
- package/dist/gateway/Upstream.d.ts +26 -0
- package/dist/gateway/Upstream.d.ts.map +1 -1
- package/dist/gateway/Upstream.js +42 -3
- package/dist/gateway/Upstream.js.map +1 -1
- package/dist/hosted/TenantHost.d.ts +26 -6
- package/dist/hosted/TenantHost.d.ts.map +1 -1
- package/dist/hosted/TenantHost.js +45 -10
- package/dist/hosted/TenantHost.js.map +1 -1
- package/dist/hosted/TenantRegistry.d.ts +28 -0
- package/dist/hosted/TenantRegistry.d.ts.map +1 -1
- package/dist/hosted/TenantRegistry.js +60 -1
- package/dist/hosted/TenantRegistry.js.map +1 -1
- package/dist/http/GatewayHttpServer.d.ts +7 -0
- package/dist/http/GatewayHttpServer.d.ts.map +1 -1
- package/dist/http/GatewayHttpServer.js +103 -3
- package/dist/http/GatewayHttpServer.js.map +1 -1
- package/dist/identity/WorkloadJwtVerifier.d.ts +13 -0
- package/dist/identity/WorkloadJwtVerifier.d.ts.map +1 -1
- package/dist/identity/WorkloadJwtVerifier.js +40 -8
- package/dist/identity/WorkloadJwtVerifier.js.map +1 -1
- package/dist/incident/HaltSwitch.d.ts +10 -2
- package/dist/incident/HaltSwitch.d.ts.map +1 -1
- package/dist/incident/HaltSwitch.js +22 -2
- package/dist/incident/HaltSwitch.js.map +1 -1
- package/dist/incident/SecurityEvents.d.ts +18 -0
- package/dist/incident/SecurityEvents.d.ts.map +1 -1
- package/dist/incident/SecurityEvents.js +17 -0
- package/dist/incident/SecurityEvents.js.map +1 -1
- package/dist/limits/HardLimits.d.ts.map +1 -1
- package/dist/limits/HardLimits.js.map +1 -1
- package/dist/outcomes/CardOutcomeEvidence.d.ts +56 -0
- package/dist/outcomes/CardOutcomeEvidence.d.ts.map +1 -0
- package/dist/outcomes/CardOutcomeEvidence.js +211 -0
- package/dist/outcomes/CardOutcomeEvidence.js.map +1 -0
- package/dist/outcomes/CardOutcomeFact.d.ts +90 -0
- package/dist/outcomes/CardOutcomeFact.d.ts.map +1 -0
- package/dist/outcomes/CardOutcomeFact.js +76 -0
- package/dist/outcomes/CardOutcomeFact.js.map +1 -0
- package/dist/outcomes/CardOutcomeLedger.d.ts +26 -0
- package/dist/outcomes/CardOutcomeLedger.d.ts.map +1 -0
- package/dist/outcomes/CardOutcomeLedger.js +31 -0
- package/dist/outcomes/CardOutcomeLedger.js.map +1 -0
- package/dist/outcomes/CardOutcomeRecorder.d.ts +35 -0
- package/dist/outcomes/CardOutcomeRecorder.d.ts.map +1 -0
- package/dist/outcomes/CardOutcomeRecorder.js +84 -0
- package/dist/outcomes/CardOutcomeRecorder.js.map +1 -0
- package/dist/outcomes/CardOutcomes.d.ts +68 -0
- package/dist/outcomes/CardOutcomes.d.ts.map +1 -0
- package/dist/outcomes/CardOutcomes.js +191 -0
- package/dist/outcomes/CardOutcomes.js.map +1 -0
- package/dist/outcomes/CoreOutcomeEvidenceClient.d.ts +54 -0
- package/dist/outcomes/CoreOutcomeEvidenceClient.d.ts.map +1 -0
- package/dist/outcomes/CoreOutcomeEvidenceClient.js +116 -0
- package/dist/outcomes/CoreOutcomeEvidenceClient.js.map +1 -0
- package/dist/outcomes/FileCardOutcomeLedger.d.ts +36 -0
- package/dist/outcomes/FileCardOutcomeLedger.d.ts.map +1 -0
- package/dist/outcomes/FileCardOutcomeLedger.js +152 -0
- package/dist/outcomes/FileCardOutcomeLedger.js.map +1 -0
- package/dist/outcomes/OutcomeEvidence.d.ts +238 -0
- package/dist/outcomes/OutcomeEvidence.d.ts.map +1 -0
- package/dist/outcomes/OutcomeEvidence.js +130 -0
- package/dist/outcomes/OutcomeEvidence.js.map +1 -0
- package/dist/outcomes/OutcomeEvidencePublisher.d.ts +81 -0
- package/dist/outcomes/OutcomeEvidencePublisher.d.ts.map +1 -0
- package/dist/outcomes/OutcomeEvidencePublisher.js +189 -0
- package/dist/outcomes/OutcomeEvidencePublisher.js.map +1 -0
- package/dist/outcomes/OutcomeEvidenceStore.d.ts +57 -0
- package/dist/outcomes/OutcomeEvidenceStore.d.ts.map +1 -0
- package/dist/outcomes/OutcomeEvidenceStore.js +191 -0
- package/dist/outcomes/OutcomeEvidenceStore.js.map +1 -0
- package/dist/posture/ActionSpaceDrift.d.ts +40 -0
- package/dist/posture/ActionSpaceDrift.d.ts.map +1 -0
- package/dist/posture/ActionSpaceDrift.js +67 -0
- package/dist/posture/ActionSpaceDrift.js.map +1 -0
- package/dist/posture/DeploymentFingerprint.d.ts +88 -0
- package/dist/posture/DeploymentFingerprint.d.ts.map +1 -0
- package/dist/posture/DeploymentFingerprint.js +78 -0
- package/dist/posture/DeploymentFingerprint.js.map +1 -0
- package/dist/secrets/SecretStore.d.ts +6 -1
- package/dist/secrets/SecretStore.d.ts.map +1 -1
- package/dist/secrets/SecretStore.js.map +1 -1
- package/dist/service/EscalationResolver.d.ts +6 -6
- package/dist/service/EscalationResolver.d.ts.map +1 -1
- package/dist/service/EscalationResolver.js +8 -4
- package/dist/service/EscalationResolver.js.map +1 -1
- package/dist/service/Requests.d.ts +6 -0
- package/dist/service/Requests.d.ts.map +1 -1
- package/dist/service/Requests.js +9 -1
- package/dist/service/Requests.js.map +1 -1
- package/dist/service/TrustedExecutorService.d.ts +21 -1
- package/dist/service/TrustedExecutorService.d.ts.map +1 -1
- package/dist/service/TrustedExecutorService.js +54 -13
- package/dist/service/TrustedExecutorService.js.map +1 -1
- package/dist/verify/VerifyingProvider.d.ts +32 -6
- package/dist/verify/VerifyingProvider.d.ts.map +1 -1
- package/dist/verify/VerifyingProvider.js +16 -2
- package/dist/verify/VerifyingProvider.js.map +1 -1
- package/package.json +7 -6
|
@@ -1,11 +1,20 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { type EscalationConfig } from "../config/ExecutorConfig.js";
|
|
3
|
+
import { type ContainmentTarget } from "../containment/ContainmentProbe.js";
|
|
4
|
+
import { type ExposureDeclaration } from "../exposure/ExposureDeclaration.js";
|
|
3
5
|
import type { SecretName } from "../secrets/SecretStore.js";
|
|
4
6
|
import { type RateLimit } from "./RateLimit.js";
|
|
5
7
|
export type GatewayMode = "SHADOW" | "ENFORCEMENT";
|
|
6
8
|
export type FailurePolicy = "FAIL_CLOSED" | "FAIL_OPEN";
|
|
7
9
|
export type AuthorityKind = "LOCAL" | "DECIONIS";
|
|
8
10
|
export type UnmatchedPolicy = "GOVERN" | "PASSTHROUGH";
|
|
11
|
+
/**
|
|
12
|
+
* What of a governed request the authority receives. `FULL` is the method,
|
|
13
|
+
* path, query and, within the embedding bound, the body. `FACTS` is the API
|
|
14
|
+
* profile's operation id and path template and the facts it names, and never
|
|
15
|
+
* a raw path, query, header or body byte.
|
|
16
|
+
*/
|
|
17
|
+
export type PrivacyMode = "FULL" | "FACTS";
|
|
9
18
|
export type OutputFormat = "HUMAN" | "JSON";
|
|
10
19
|
/** The methods a route governs unless it names its own; a safe method is never consequential. */
|
|
11
20
|
export declare const CONSEQUENTIAL_METHODS: readonly ["POST", "PUT", "PATCH", "DELETE"];
|
|
@@ -14,6 +23,21 @@ export type ConsequentialMethod = (typeof CONSEQUENTIAL_METHODS)[number];
|
|
|
14
23
|
export declare const ACTION_NAME: RegExp;
|
|
15
24
|
/** The header a tenant presents its ingress key in; never the URL, never forwarded. */
|
|
16
25
|
export declare const TENANT_KEY_HEADER = "agentsafe-tenant-key";
|
|
26
|
+
/** The header a caller presents a subject session in, from the gateway's token exchange; never forwarded. */
|
|
27
|
+
export declare const SESSION_HEADER = "agentsafe-session";
|
|
28
|
+
/** The header a caller presents the identity provider's subject token in, per request; never forwarded. */
|
|
29
|
+
export declare const SUBJECT_TOKEN_HEADER = "agentsafe-subject-token";
|
|
30
|
+
/**
|
|
31
|
+
* The header the gateway presents its own token to the upstream in, so the
|
|
32
|
+
* upstream can tell a request came through it; a caller's value is never forwarded.
|
|
33
|
+
*/
|
|
34
|
+
export declare const GATEWAY_TOKEN_HEADER = "agentsafe-gateway-token";
|
|
35
|
+
/** The secret the gateway token is opened as, from the file its configuration names. */
|
|
36
|
+
export declare const GATEWAY_TOKEN_SECRET = "AGENTSAFE_GATEWAY_TOKEN";
|
|
37
|
+
/** The secret an acceptance report is signed with, opened from `acceptance.key.file`. */
|
|
38
|
+
export declare const ACCEPTANCE_KEY_SECRET = "AGENTSAFE_ACCEPTANCE_KEY";
|
|
39
|
+
/** The bearer of `/_agentsafe/v1/acceptance`, opened from `acceptance.operatorToken.file`. */
|
|
40
|
+
export declare const ACCEPTANCE_TOKEN_SECRET = "AGENTSAFE_ACCEPTANCE_TOKEN";
|
|
17
41
|
/** The tenant the demo authority evaluates under; a reserved fixture identifier, never an organization. */
|
|
18
42
|
export declare const LOCAL_TENANT_ID = "00000000-0000-4000-8000-000000000009";
|
|
19
43
|
export declare const DEFAULT_AUTHORITY_ENDPOINT = "https://api.decionis.com";
|
|
@@ -21,10 +45,49 @@ export declare const DEFAULT_LISTEN: {
|
|
|
21
45
|
readonly host: "127.0.0.1";
|
|
22
46
|
readonly port: 8080;
|
|
23
47
|
};
|
|
48
|
+
/** How long after a refusal its target is read again, by default, and at most. */
|
|
49
|
+
export declare const DEFAULT_REFUSAL_WINDOW_MS = 1000;
|
|
50
|
+
export declare const MAX_REFUSAL_WINDOW_MS = 30000;
|
|
51
|
+
/** The longest a shadow answer may wait for its observation: well under any caller's timeout. */
|
|
52
|
+
export declare const MAX_SHADOW_VERDICT_WAIT_MS = 2000;
|
|
53
|
+
/**
|
|
54
|
+
* The longest a hold may last: the authority lets an intent live this long
|
|
55
|
+
* only when it asks the policy for its approvers (a managed escalation that
|
|
56
|
+
* names no approver), and still mints its grant only after the approval.
|
|
57
|
+
*/
|
|
58
|
+
export declare const MAX_HOLD_TTL_SECONDS: number;
|
|
59
|
+
/**
|
|
60
|
+
* Who a session is for: the identity provider whose short-lived token names
|
|
61
|
+
* the subject (the customer in context), and where in the token the subject
|
|
62
|
+
* is. The gateway pins that subject for the session.
|
|
63
|
+
*/
|
|
64
|
+
export interface SubjectConfig {
|
|
65
|
+
readonly issuer: string;
|
|
66
|
+
readonly audience: string;
|
|
67
|
+
/** A JWKS document on disk; the first key set, and the one kept when a refresh fails. */
|
|
68
|
+
readonly jwksFile: string | null;
|
|
69
|
+
/** Where the key set is refreshed from, through the guarded egress; fetched at start without a file. */
|
|
70
|
+
readonly jwksUrl: string | null;
|
|
71
|
+
/** The claim naming the subject; `sub` by default. */
|
|
72
|
+
readonly claim: string;
|
|
73
|
+
/** The longest a session from the token exchange lasts; never past the token's own expiry. */
|
|
74
|
+
readonly sessionTtlSeconds: number;
|
|
75
|
+
}
|
|
24
76
|
export interface RouteConfig {
|
|
25
77
|
readonly path: string;
|
|
26
78
|
readonly action: string;
|
|
27
79
|
readonly methods: readonly ConsequentialMethod[];
|
|
80
|
+
/** A published immutable policy bundle UUID, not a workspace policy head or rule ID. */
|
|
81
|
+
readonly policyId?: string;
|
|
82
|
+
/** An exact published policy version; when both selectors are set, both must match. */
|
|
83
|
+
readonly policyVersion?: string;
|
|
84
|
+
/**
|
|
85
|
+
* The route releases money: where its amount, currency and subjects are,
|
|
86
|
+
* so each payment is reserved against the organisation's cumulative limits
|
|
87
|
+
* before it is forwarded (docs/gateway/exposure.md). Absent, the route is
|
|
88
|
+
* governed exactly as before.
|
|
89
|
+
*/
|
|
90
|
+
readonly exposure?: ExposureDeclaration;
|
|
28
91
|
}
|
|
29
92
|
/**
|
|
30
93
|
* Everything the gateway runs on, resolved from flags, environment, file and
|
|
@@ -49,6 +112,13 @@ export interface GatewayConfig {
|
|
|
49
112
|
* envelope of every chained line, so the tenant is covered by the hash.
|
|
50
113
|
*/
|
|
51
114
|
readonly hostedTenant: string | null;
|
|
115
|
+
/**
|
|
116
|
+
* A hosted gateway that is the only gateway its process serves: a host
|
|
117
|
+
* started for one tenant (`agentsafe host --tenant`), or a single hosted
|
|
118
|
+
* gateway. A hosted gateway enforces nowhere else, so no other tenant's
|
|
119
|
+
* process ever holds its credentials or its held requests.
|
|
120
|
+
*/
|
|
121
|
+
readonly hostedDedicated: boolean;
|
|
52
122
|
/**
|
|
53
123
|
* The tenant's ingress keys, as `sha256:` digests: one, or two while a
|
|
54
124
|
* rotation overlaps. When there are any, a request that is not the
|
|
@@ -80,6 +150,28 @@ export interface GatewayConfig {
|
|
|
80
150
|
* hosted tenant and the Decionis organization it runs under.
|
|
81
151
|
*/
|
|
82
152
|
readonly proofRequired: boolean;
|
|
153
|
+
/**
|
|
154
|
+
* The credential the gateway, and not its caller, presents to the
|
|
155
|
+
* upstream: one header it sets on every request it forwards, whose value
|
|
156
|
+
* is the secret in `file` (opened as `DOWNSTREAM_CREDENTIAL`, and followed
|
|
157
|
+
* when the file is rotated). A caller's own value of that header is
|
|
158
|
+
* dropped. Null forwards the caller's headers as they are.
|
|
159
|
+
*/
|
|
160
|
+
readonly credential: {
|
|
161
|
+
readonly header: string;
|
|
162
|
+
readonly file: string;
|
|
163
|
+
} | null;
|
|
164
|
+
/**
|
|
165
|
+
* The gateway's own token: the secret in `file` (opened as
|
|
166
|
+
* `AGENTSAFE_GATEWAY_TOKEN`, and followed when the file is rotated), sent
|
|
167
|
+
* as `AgentSafe-Gateway-Token` on every request it forwards, so the
|
|
168
|
+
* upstream can tell the request came through this gateway. It is apart
|
|
169
|
+
* from `credential`, which stands in for the caller. Null sends none; a
|
|
170
|
+
* caller's own value of that header is dropped either way.
|
|
171
|
+
*/
|
|
172
|
+
readonly gatewayToken: {
|
|
173
|
+
readonly file: string;
|
|
174
|
+
} | null;
|
|
83
175
|
readonly system: string;
|
|
84
176
|
readonly environment: string;
|
|
85
177
|
readonly timeoutMs: number;
|
|
@@ -108,7 +200,64 @@ export interface GatewayConfig {
|
|
|
108
200
|
readonly maxEmbeddedBodyBytes: number;
|
|
109
201
|
/** A request header whose value names the calling principal; carried, never verified. */
|
|
110
202
|
readonly principalHeader: string | null;
|
|
203
|
+
/**
|
|
204
|
+
* The API intent profile (`agent-safe.profile.api/1`) the gateway governs by, after any
|
|
205
|
+
* explicit route: its operations name the action and the facts. Null governs by routes only.
|
|
206
|
+
*/
|
|
207
|
+
readonly profile: string | null;
|
|
208
|
+
/** `FACTS`: the authority receives the profile's operation and facts, never the request. */
|
|
209
|
+
readonly privacy: PrivacyMode;
|
|
210
|
+
/**
|
|
211
|
+
* Facts-only privacy: a file in the tenant's custody holding the key its
|
|
212
|
+
* keyed digests (`request_hmac_sha256`, the keyed idempotency key) are
|
|
213
|
+
* derived from, so every replica states the same values. Null keys them
|
|
214
|
+
* with a secret each gateway process makes for itself.
|
|
215
|
+
*/
|
|
216
|
+
readonly digestKeyFile: string | null;
|
|
217
|
+
/**
|
|
218
|
+
* Refuse a call the profile cannot check: a read no profile operation
|
|
219
|
+
* names, a path beneath one, and a write neither a route nor an operation
|
|
220
|
+
* names (a batch included), whatever `unmatched` says. On by default when
|
|
221
|
+
* the gateway pins subjects with a profile.
|
|
222
|
+
*/
|
|
223
|
+
readonly refuseUnknownReads: boolean;
|
|
224
|
+
/**
|
|
225
|
+
* After a BLOCK, a held ESCALATE or a fail-closed refusal of a write whose
|
|
226
|
+
* profile operation names a read, read the target again and record what
|
|
227
|
+
* it showed (`REFUSAL_OBSERVATION`): one more `GET` per refusal. On by
|
|
228
|
+
* default; enforcement only.
|
|
229
|
+
*/
|
|
230
|
+
readonly observeRefusals: boolean;
|
|
231
|
+
/** How long after the refusal that read is made, so the window it covers is not empty. */
|
|
232
|
+
readonly refusalWindowMs: number;
|
|
111
233
|
};
|
|
234
|
+
/** Subject-bound sessions: null when the gateway pins no subject. */
|
|
235
|
+
readonly subject: SubjectConfig | null;
|
|
236
|
+
/**
|
|
237
|
+
* The systems of record the agent zone must not reach except through this
|
|
238
|
+
* gateway, as the operator declares them. Nothing here dials them: they are
|
|
239
|
+
* part of what the deployment says it is (its fingerprint), and what
|
|
240
|
+
* `agentsafe probe-containment` is pointed at.
|
|
241
|
+
*/
|
|
242
|
+
readonly containment: {
|
|
243
|
+
readonly targets: readonly ContainmentTarget[];
|
|
244
|
+
};
|
|
245
|
+
/**
|
|
246
|
+
* An acceptance run's two secrets, or null when the gateway serves no run
|
|
247
|
+
* (ADR 0009): the key that signs its reports and nothing else, and the
|
|
248
|
+
* bearer the operator's tool presents on `/_agentsafe/v1/acceptance`. Each
|
|
249
|
+
* is a file, opened as a secret; `kid` names the key in a report's header,
|
|
250
|
+
* its RFC 7638 thumbprint when null.
|
|
251
|
+
*/
|
|
252
|
+
readonly acceptance: {
|
|
253
|
+
readonly key: {
|
|
254
|
+
readonly file: string;
|
|
255
|
+
};
|
|
256
|
+
readonly operatorToken: {
|
|
257
|
+
readonly file: string;
|
|
258
|
+
};
|
|
259
|
+
readonly kid: string | null;
|
|
260
|
+
} | null;
|
|
112
261
|
readonly actor: {
|
|
113
262
|
readonly id: string;
|
|
114
263
|
readonly type: string;
|
|
@@ -123,10 +272,32 @@ export interface GatewayConfig {
|
|
|
123
272
|
readonly id: string | null;
|
|
124
273
|
};
|
|
125
274
|
readonly intentTtlSeconds: number;
|
|
275
|
+
/**
|
|
276
|
+
* In shadow, how long a forwarded answer may wait, after the upstream has
|
|
277
|
+
* answered, for the observation to settle so `AgentSafe-Shadow-Verdict`
|
|
278
|
+
* can name it. 0, the default, never waits: the header says what had
|
|
279
|
+
* settled by then, or `PENDING`.
|
|
280
|
+
*/
|
|
281
|
+
readonly shadowVerdictWaitMs: number;
|
|
282
|
+
/**
|
|
283
|
+
* Where held requests are kept: a directory every replica mounts, each hold
|
|
284
|
+
* sealed under the key in `keyFile`. Null keeps them in this process's
|
|
285
|
+
* memory, where a restart loses them and only this replica can resume them.
|
|
286
|
+
*/
|
|
287
|
+
readonly holds: {
|
|
288
|
+
readonly dir: string;
|
|
289
|
+
readonly keyFile: string;
|
|
290
|
+
} | null;
|
|
126
291
|
readonly escalation: EscalationConfig;
|
|
127
292
|
readonly evidence: {
|
|
128
293
|
readonly enabled: boolean;
|
|
129
294
|
readonly journalDir: string | null;
|
|
295
|
+
/**
|
|
296
|
+
* Who the gateway's effect evidence names as its observer: the identity
|
|
297
|
+
* the authority's trusted-observer allowlist must list for a read-back to
|
|
298
|
+
* be recorded `CONFIRMED`. Null names the boundary.
|
|
299
|
+
*/
|
|
300
|
+
readonly observer: string | null;
|
|
130
301
|
};
|
|
131
302
|
readonly output: {
|
|
132
303
|
readonly format: OutputFormat;
|
|
@@ -148,6 +319,13 @@ export declare const GatewayFileSchema: z.ZodObject<{
|
|
|
148
319
|
upstream: z.ZodOptional<z.ZodString>;
|
|
149
320
|
upstreamInsecure: z.ZodOptional<z.ZodBoolean>;
|
|
150
321
|
upstreamPublicOnly: z.ZodOptional<z.ZodBoolean>;
|
|
322
|
+
upstreamCredential: z.ZodOptional<z.ZodObject<{
|
|
323
|
+
header: z.ZodString;
|
|
324
|
+
file: z.ZodString;
|
|
325
|
+
}, z.core.$strict>>;
|
|
326
|
+
gatewayToken: z.ZodOptional<z.ZodObject<{
|
|
327
|
+
file: z.ZodString;
|
|
328
|
+
}, z.core.$strict>>;
|
|
151
329
|
hosted: z.ZodOptional<z.ZodBoolean>;
|
|
152
330
|
tenantKeyDigests: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
153
331
|
rateLimit: z.ZodOptional<z.ZodObject<{
|
|
@@ -193,6 +371,38 @@ export declare const GatewayFileSchema: z.ZodObject<{
|
|
|
193
371
|
PATCH: "PATCH";
|
|
194
372
|
DELETE: "DELETE";
|
|
195
373
|
}>, unknown>>>;
|
|
374
|
+
policyId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodString>>;
|
|
375
|
+
policyVersion: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodString>>;
|
|
376
|
+
exposure: z.ZodOptional<z.ZodObject<{
|
|
377
|
+
actionType: z.ZodOptional<z.ZodPreprocess<z.ZodEnum<{
|
|
378
|
+
PRICE_CHANGE: "PRICE_CHANGE";
|
|
379
|
+
INVENTORY_MUTATION: "INVENTORY_MUTATION";
|
|
380
|
+
ORDER_ACCEPTANCE: "ORDER_ACCEPTANCE";
|
|
381
|
+
FULFILLMENT_ACTION: "FULFILLMENT_ACTION";
|
|
382
|
+
PROMOTION_CHANGE: "PROMOTION_CHANGE";
|
|
383
|
+
REFUND_REQUEST: "REFUND_REQUEST";
|
|
384
|
+
RETURN_AUTHORIZATION: "RETURN_AUTHORIZATION";
|
|
385
|
+
PAYMENT_RELEASE: "PAYMENT_RELEASE";
|
|
386
|
+
VENDOR_BANK_CHANGE: "VENDOR_BANK_CHANGE";
|
|
387
|
+
EARLY_PAYMENT_DISCOUNT: "EARLY_PAYMENT_DISCOUNT";
|
|
388
|
+
CREDIT_HOLD_RELEASE: "CREDIT_HOLD_RELEASE";
|
|
389
|
+
}>, unknown>>;
|
|
390
|
+
amount: z.ZodString;
|
|
391
|
+
amountUnit: z.ZodOptional<z.ZodPreprocess<z.ZodEnum<{
|
|
392
|
+
[x: string]: string;
|
|
393
|
+
}>, unknown>>;
|
|
394
|
+
currency: z.ZodString;
|
|
395
|
+
subjects: z.ZodOptional<z.ZodObject<{
|
|
396
|
+
vendor: z.ZodOptional<z.ZodString>;
|
|
397
|
+
customer: z.ZodOptional<z.ZodString>;
|
|
398
|
+
sku: z.ZodOptional<z.ZodString>;
|
|
399
|
+
agent: z.ZodOptional<z.ZodString>;
|
|
400
|
+
}, z.core.$strict>>;
|
|
401
|
+
settledAmount: z.ZodOptional<z.ZodString>;
|
|
402
|
+
failurePolicy: z.ZodOptional<z.ZodPreprocess<z.ZodEnum<{
|
|
403
|
+
[x: string]: string;
|
|
404
|
+
}>, unknown>>;
|
|
405
|
+
}, z.core.$strict>>;
|
|
196
406
|
}, z.core.$strict>>>;
|
|
197
407
|
unmatched: z.ZodOptional<z.ZodPreprocess<z.ZodEnum<{
|
|
198
408
|
[x: string]: string;
|
|
@@ -200,6 +410,34 @@ export declare const GatewayFileSchema: z.ZodObject<{
|
|
|
200
410
|
maxBodyBytes: z.ZodOptional<z.ZodNumber>;
|
|
201
411
|
maxEmbeddedBodyBytes: z.ZodOptional<z.ZodNumber>;
|
|
202
412
|
principalHeader: z.ZodOptional<z.ZodString>;
|
|
413
|
+
profile: z.ZodOptional<z.ZodString>;
|
|
414
|
+
privacy: z.ZodOptional<z.ZodPreprocess<z.ZodEnum<{
|
|
415
|
+
[x: string]: string;
|
|
416
|
+
}>, unknown>>;
|
|
417
|
+
digestKeyFile: z.ZodOptional<z.ZodString>;
|
|
418
|
+
refuseUnknownReads: z.ZodOptional<z.ZodBoolean>;
|
|
419
|
+
observeRefusals: z.ZodOptional<z.ZodBoolean>;
|
|
420
|
+
refusalWindowMs: z.ZodOptional<z.ZodNumber>;
|
|
421
|
+
}, z.core.$strict>>;
|
|
422
|
+
subject: z.ZodOptional<z.ZodObject<{
|
|
423
|
+
issuer: z.ZodString;
|
|
424
|
+
audience: z.ZodString;
|
|
425
|
+
jwksFile: z.ZodOptional<z.ZodString>;
|
|
426
|
+
jwksUrl: z.ZodOptional<z.ZodString>;
|
|
427
|
+
claim: z.ZodOptional<z.ZodString>;
|
|
428
|
+
sessionTtlSeconds: z.ZodOptional<z.ZodNumber>;
|
|
429
|
+
}, z.core.$strict>>;
|
|
430
|
+
containment: z.ZodOptional<z.ZodObject<{
|
|
431
|
+
targets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
432
|
+
}, z.core.$strict>>;
|
|
433
|
+
acceptance: z.ZodOptional<z.ZodObject<{
|
|
434
|
+
key: z.ZodOptional<z.ZodObject<{
|
|
435
|
+
file: z.ZodString;
|
|
436
|
+
}, z.core.$strict>>;
|
|
437
|
+
operatorToken: z.ZodOptional<z.ZodObject<{
|
|
438
|
+
file: z.ZodString;
|
|
439
|
+
}, z.core.$strict>>;
|
|
440
|
+
kid: z.ZodOptional<z.ZodString>;
|
|
203
441
|
}, z.core.$strict>>;
|
|
204
442
|
actor: z.ZodOptional<z.ZodObject<{
|
|
205
443
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -209,6 +447,14 @@ export declare const GatewayFileSchema: z.ZodObject<{
|
|
|
209
447
|
id: z.ZodOptional<z.ZodString>;
|
|
210
448
|
}, z.core.$strict>>;
|
|
211
449
|
intentTtlSeconds: z.ZodOptional<z.ZodNumber>;
|
|
450
|
+
shadow: z.ZodOptional<z.ZodObject<{
|
|
451
|
+
verdictWaitMs: z.ZodOptional<z.ZodNumber>;
|
|
452
|
+
}, z.core.$strict>>;
|
|
453
|
+
holds: z.ZodOptional<z.ZodObject<{
|
|
454
|
+
dir: z.ZodString;
|
|
455
|
+
keyFile: z.ZodString;
|
|
456
|
+
ttlSeconds: z.ZodOptional<z.ZodNumber>;
|
|
457
|
+
}, z.core.$strict>>;
|
|
212
458
|
presence: z.ZodOptional<z.ZodObject<{
|
|
213
459
|
managed: z.ZodOptional<z.ZodBoolean>;
|
|
214
460
|
approverId: z.ZodOptional<z.ZodString>;
|
|
@@ -223,6 +469,7 @@ export declare const GatewayFileSchema: z.ZodObject<{
|
|
|
223
469
|
evidence: z.ZodOptional<z.ZodObject<{
|
|
224
470
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
225
471
|
journalDir: z.ZodOptional<z.ZodString>;
|
|
472
|
+
observer: z.ZodOptional<z.ZodString>;
|
|
226
473
|
}, z.core.$strict>>;
|
|
227
474
|
output: z.ZodOptional<z.ZodObject<{
|
|
228
475
|
format: z.ZodOptional<z.ZodPreprocess<z.ZodEnum<{
|
|
@@ -282,6 +529,23 @@ export declare function parseListen(value: string, setting: string): {
|
|
|
282
529
|
*/
|
|
283
530
|
export declare class GatewayConfigLoader {
|
|
284
531
|
static load(input: GatewayConfigInput): GatewayConfig;
|
|
532
|
+
/** Each declared containment target as `name=host:port`, refused by setting when it is not one. */
|
|
533
|
+
private static containmentTargets;
|
|
534
|
+
/**
|
|
535
|
+
* The subject section, when there is one: an issuer, an audience and a key
|
|
536
|
+
* set, on disk or at an address the guarded egress fetches. The address is
|
|
537
|
+
* https, or loopback with the authority's loopback allowance.
|
|
538
|
+
*/
|
|
539
|
+
private static subject;
|
|
540
|
+
/**
|
|
541
|
+
* Facts-only mode sends the authority a profile's operation and facts, so
|
|
542
|
+
* it governs by a profile alone. Every setting that would put a raw part of
|
|
543
|
+
* the request in front of the authority, or govern a call no operation
|
|
544
|
+
* names, is refused by name rather than quietly overridden: a route (its
|
|
545
|
+
* target is the raw path), a principal header (a raw header value), and an
|
|
546
|
+
* explicit passthrough of unmatched calls (facts-only refuses them).
|
|
547
|
+
*/
|
|
548
|
+
private static factsOnly;
|
|
285
549
|
/** The file's shape, refused by the name of the first key that is wrong. */
|
|
286
550
|
private static file;
|
|
287
551
|
/**
|
|
@@ -297,12 +561,42 @@ export declare class GatewayConfigLoader {
|
|
|
297
561
|
* and at least one when it is hosted.
|
|
298
562
|
*/
|
|
299
563
|
static admittedKeys(digests: readonly string[], hosted: boolean): readonly string[];
|
|
564
|
+
/**
|
|
565
|
+
* The upstream credential the gateway presents, from the environment or
|
|
566
|
+
* the file: a header and the file holding its value, both or neither. The
|
|
567
|
+
* header is one a credential can travel in without the gateway setting or
|
|
568
|
+
* dropping it, and never one whose value reaches the authority.
|
|
569
|
+
*/
|
|
570
|
+
private static upstreamCredential;
|
|
571
|
+
/**
|
|
572
|
+
* An acceptance run's key and operator token, from the environment or the
|
|
573
|
+
* file: both or neither, each an absolute path. One without the other is
|
|
574
|
+
* refused, because a key with no way to ask for a run signs nothing, and a
|
|
575
|
+
* token with nothing to sign opens runs that cannot close.
|
|
576
|
+
*/
|
|
577
|
+
private static acceptance;
|
|
578
|
+
/**
|
|
579
|
+
* The file holding the gateway's own token, from the environment or the
|
|
580
|
+
* file: an absolute path, or none. The header it travels in is fixed, so
|
|
581
|
+
* nothing about it can collide with what the authority reads.
|
|
582
|
+
*/
|
|
583
|
+
private static gatewayToken;
|
|
584
|
+
/** Every control hosted enforcement needs, refused by the first one missing, by name. */
|
|
585
|
+
private static requireHostedEnforcement;
|
|
300
586
|
/** Hosted, the tenant is the only caller the gateway admits, from day one. */
|
|
301
587
|
private static requireTenantKey;
|
|
302
588
|
/** One or two distinct `sha256:` digests, lower-case hex; anything else is refused by name. */
|
|
303
589
|
private static tenantKeys;
|
|
304
590
|
private static upstreamUrl;
|
|
305
591
|
private static authorityUrl;
|
|
592
|
+
/**
|
|
593
|
+
* Where held requests live. A shared directory is for enforcement only
|
|
594
|
+
* (shadow never holds), named by absolute paths, and the only place a hold
|
|
595
|
+
* may outlive the authority's short intent window: that longer window is
|
|
596
|
+
* for a managed escalation whose approvers the policy names, which is the
|
|
597
|
+
* one the authority lets live up to seven days.
|
|
598
|
+
*/
|
|
599
|
+
private static holds;
|
|
306
600
|
/**
|
|
307
601
|
* How an `ESCALATE` is resolved, in the executor's own shape. Managed is
|
|
308
602
|
* the gateway's default when Presence is configured at all: Decionis
|
|
@@ -310,6 +604,7 @@ export declare class GatewayConfigLoader {
|
|
|
310
604
|
* Direct is available for a deployment that already holds one.
|
|
311
605
|
*/
|
|
312
606
|
private static escalation;
|
|
607
|
+
private static verdictWait;
|
|
313
608
|
private static level;
|
|
314
609
|
}
|
|
315
610
|
/** The file `agentsafe init` writes: the smallest working configuration, commented. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GatewayConfig.d.ts","sourceRoot":"","sources":["../../src/gateway/GatewayConfig.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"GatewayConfig.d.ts","sourceRoot":"","sources":["../../src/gateway/GatewayConfig.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAEL,KAAK,gBAAgB,EAEtB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAe,KAAK,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAEzF,OAAO,EAGL,KAAK,mBAAmB,EACzB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAA6B,KAAK,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAG3E,MAAM,MAAM,WAAW,GAAG,QAAQ,GAAG,aAAa,CAAC;AACnD,MAAM,MAAM,aAAa,GAAG,aAAa,GAAG,WAAW,CAAC;AACxD,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,UAAU,CAAC;AACjD,MAAM,MAAM,eAAe,GAAG,QAAQ,GAAG,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