@agenticprimitives/admission 0.0.0-alpha.1
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/LICENSE +21 -0
- package/README.md +63 -0
- package/dist/digests.d.ts +46 -0
- package/dist/digests.d.ts.map +1 -0
- package/dist/digests.js +164 -0
- package/dist/digests.js.map +1 -0
- package/dist/engine.d.ts +51 -0
- package/dist/engine.d.ts.map +1 -0
- package/dist/engine.js +224 -0
- package/dist/engine.js.map +1 -0
- package/dist/execution.d.ts +53 -0
- package/dist/execution.d.ts.map +1 -0
- package/dist/execution.js +166 -0
- package/dist/execution.js.map +1 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +19 -0
- package/dist/index.js.map +1 -0
- package/dist/invariants.d.ts +80 -0
- package/dist/invariants.d.ts.map +1 -0
- package/dist/invariants.js +288 -0
- package/dist/invariants.js.map +1 -0
- package/dist/ports.d.ts +149 -0
- package/dist/ports.d.ts.map +1 -0
- package/dist/ports.js +9 -0
- package/dist/ports.js.map +1 -0
- package/dist/request-proof.d.ts +61 -0
- package/dist/request-proof.d.ts.map +1 -0
- package/dist/request-proof.js +175 -0
- package/dist/request-proof.js.map +1 -0
- package/dist/transport-policy.d.ts +47 -0
- package/dist/transport-policy.d.ts.map +1 -0
- package/dist/transport-policy.js +95 -0
- package/dist/transport-policy.js.map +1 -0
- package/dist/types.d.ts +430 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +28 -0
- package/dist/types.js.map +1 -0
- package/package.json +54 -0
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import type { ExecutionAuthorityPoint, FailHardAuditSink, IdempotencyStore } from './ports.js';
|
|
2
|
+
import type { AdmissionGrant, ExecutionDecision } from './types.js';
|
|
3
|
+
export interface ExecutionAuthorityOptions {
|
|
4
|
+
/** Resolves the cited grant. `null` ⇒ deny; a gateway never improvises a grant it cannot find. */
|
|
5
|
+
loadGrant: (grantId: string) => Promise<AdmissionGrant | null>;
|
|
6
|
+
/**
|
|
7
|
+
* LIVE delegation check — on-chain, at invocation time.
|
|
8
|
+
*
|
|
9
|
+
* Not "was a delegation cited at admission". The whole point is that the answer can have changed.
|
|
10
|
+
*/
|
|
11
|
+
verifyDelegation: (input: {
|
|
12
|
+
principalAgentId: string;
|
|
13
|
+
actingAgentId: string;
|
|
14
|
+
delegationRefs: string[];
|
|
15
|
+
operationName: string;
|
|
16
|
+
resourceId?: string;
|
|
17
|
+
at: string;
|
|
18
|
+
}) => Promise<{
|
|
19
|
+
ok: boolean;
|
|
20
|
+
reason?: string;
|
|
21
|
+
}>;
|
|
22
|
+
/** LIVE entitlement check. Separate gate — a delegation is not an entitlement (ADR-0041). */
|
|
23
|
+
verifyEntitlement: (input: {
|
|
24
|
+
principalAgentId: string;
|
|
25
|
+
entitlementRefs: string[];
|
|
26
|
+
operationName: string;
|
|
27
|
+
resourceId?: string;
|
|
28
|
+
purpose?: string;
|
|
29
|
+
dataClassification?: string;
|
|
30
|
+
at: string;
|
|
31
|
+
}) => Promise<{
|
|
32
|
+
ok: boolean;
|
|
33
|
+
reason?: string;
|
|
34
|
+
}>;
|
|
35
|
+
audit: FailHardAuditSink;
|
|
36
|
+
/** Required for effectful operations; a write with no idempotency key is refused. */
|
|
37
|
+
idempotency?: IdempotencyStore;
|
|
38
|
+
now?: () => Date;
|
|
39
|
+
newId?: () => string;
|
|
40
|
+
observe?: (o: {
|
|
41
|
+
effect: ExecutionDecision['effect'];
|
|
42
|
+
reasonCodes: string[];
|
|
43
|
+
}) => void;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Build the execution authority point.
|
|
47
|
+
*
|
|
48
|
+
* Never throws. Every failure path — unreachable chain, missing grant, broken audit — resolves to
|
|
49
|
+
* DENY. An authorize() that can throw has a third outcome callers forget to handle, and that is where
|
|
50
|
+
* fail-open lives.
|
|
51
|
+
*/
|
|
52
|
+
export declare function createExecutionAuthorityPoint(opts: ExecutionAuthorityOptions): ExecutionAuthorityPoint;
|
|
53
|
+
//# sourceMappingURL=execution.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execution.d.ts","sourceRoot":"","sources":["../src/execution.ts"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EACV,uBAAuB,EACvB,iBAAiB,EACjB,gBAAgB,EACjB,MAAM,YAAY,CAAC;AACpB,OAAO,KAAK,EACV,cAAc,EAGd,iBAAiB,EAClB,MAAM,YAAY,CAAC;AAEpB,MAAM,WAAW,yBAAyB;IACxC,kGAAkG;IAClG,SAAS,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IAE/D;;;;OAIG;IACH,gBAAgB,EAAE,CAAC,KAAK,EAAE;QACxB,gBAAgB,EAAE,MAAM,CAAC;QACzB,aAAa,EAAE,MAAM,CAAC;QACtB,cAAc,EAAE,MAAM,EAAE,CAAC;QACzB,aAAa,EAAE,MAAM,CAAC;QACtB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,EAAE,EAAE,MAAM,CAAC;KACZ,KAAK,OAAO,CAAC;QAAE,EAAE,EAAE,OAAO,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAEhD,6FAA6F;IAC7F,iBAAiB,EAAE,CAAC,KAAK,EAAE;QACzB,gBAAgB,EAAE,MAAM,CAAC;QACzB,eAAe,EAAE,MAAM,EAAE,CAAC;QAC1B,aAAa,EAAE,MAAM,CAAC;QACtB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,kBAAkB,CAAC,EAAE,MAAM,CAAC;QAC5B,EAAE,EAAE,MAAM,CAAC;KACZ,KAAK,OAAO,CAAC;QAAE,EAAE,EAAE,OAAO,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAEhD,KAAK,EAAE,iBAAiB,CAAC;IACzB,qFAAqF;IACrF,WAAW,CAAC,EAAE,gBAAgB,CAAC;IAC/B,GAAG,CAAC,EAAE,MAAM,IAAI,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE;QAAE,MAAM,EAAE,iBAAiB,CAAC,QAAQ,CAAC,CAAC;QAAC,WAAW,EAAE,MAAM,EAAE,CAAA;KAAE,KAAK,IAAI,CAAC;CACvF;AAKD;;;;;;GAMG;AACH,wBAAgB,6BAA6B,CAC3C,IAAI,EAAE,yBAAyB,GAC9B,uBAAuB,CAgJzB"}
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
// The Execution Authority Point (spec 339 §21 — Phase 3).
|
|
2
|
+
//
|
|
3
|
+
// This is the gate in front of the private MCP gateway, and it exists because of one sentence:
|
|
4
|
+
//
|
|
5
|
+
// An AdmissionGrant is permission to INTERACT. It is not permission to ACT.
|
|
6
|
+
//
|
|
7
|
+
// The window between admission and invocation is exactly when revocation has to work. A delegation
|
|
8
|
+
// revoked ten seconds after a grant was issued must stop the next call — so delegation and entitlement
|
|
9
|
+
// are re-checked HERE, live, against the same on-chain rail that issued them (ADR-0041: Web3 is the
|
|
10
|
+
// authority on this hop; the transport envelope never is).
|
|
11
|
+
//
|
|
12
|
+
// WHY THIS PACKAGE HOLDS THE GATE BUT NOT THE CHECKS. Verifying a delegation means reading a chain.
|
|
13
|
+
// Verifying an entitlement means reading a vault. Both belong to packages that own those rails
|
|
14
|
+
// (`delegation`, `entitlements`, `chain-state`). What belongs here is the ORDER, the fail-closed
|
|
15
|
+
// defaults, and the refusal to let any single piece of evidence stand in for the others — which is
|
|
16
|
+
// precisely the part that gets quietly reordered when someone is optimizing a latency graph.
|
|
17
|
+
import { checkInvocationAgainstGrant } from './invariants.js';
|
|
18
|
+
/** Operation kinds that CHANGE something. These need exactly-once handling, not best effort. */
|
|
19
|
+
const EFFECTFUL = new Set(['RESOURCE_WRITE', 'TASK_OPERATION']);
|
|
20
|
+
/**
|
|
21
|
+
* Build the execution authority point.
|
|
22
|
+
*
|
|
23
|
+
* Never throws. Every failure path — unreachable chain, missing grant, broken audit — resolves to
|
|
24
|
+
* DENY. An authorize() that can throw has a third outcome callers forget to handle, and that is where
|
|
25
|
+
* fail-open lives.
|
|
26
|
+
*/
|
|
27
|
+
export function createExecutionAuthorityPoint(opts) {
|
|
28
|
+
const now = opts.now ?? (() => new Date());
|
|
29
|
+
const newId = opts.newId ?? (() => globalThis.crypto.randomUUID());
|
|
30
|
+
return {
|
|
31
|
+
async authorize(request) {
|
|
32
|
+
const at = now();
|
|
33
|
+
const evaluatedAt = at.toISOString();
|
|
34
|
+
const decisionId = newId();
|
|
35
|
+
const settle = async (effect, reasonCodes, obligations = []) => {
|
|
36
|
+
let receiptRef = '';
|
|
37
|
+
try {
|
|
38
|
+
const r = await opts.audit.append({
|
|
39
|
+
kind: 'execution.decision',
|
|
40
|
+
decisionId,
|
|
41
|
+
invocationId: request.invocationId,
|
|
42
|
+
admissionGrantId: request.admissionGrantId,
|
|
43
|
+
principalAgentId: request.principalAgentId,
|
|
44
|
+
actingAgentId: request.actingAgentId,
|
|
45
|
+
operationKind: request.operationKind,
|
|
46
|
+
operationName: request.operationName,
|
|
47
|
+
// The DIGEST, never the arguments — this record must not become a copy of the payload.
|
|
48
|
+
canonicalArgumentsDigest: request.canonicalArgumentsDigest,
|
|
49
|
+
resourceId: request.resourceId,
|
|
50
|
+
effect,
|
|
51
|
+
reasonCodes,
|
|
52
|
+
evaluatedAt,
|
|
53
|
+
});
|
|
54
|
+
receiptRef = r.receiptRef;
|
|
55
|
+
}
|
|
56
|
+
catch {
|
|
57
|
+
opts.observe?.({ effect: 'DENY', reasonCodes: ['AUDIT_SINK_UNAVAILABLE'] });
|
|
58
|
+
return {
|
|
59
|
+
decisionId,
|
|
60
|
+
effect: 'DENY',
|
|
61
|
+
reasonCodes: ['AUDIT_SINK_UNAVAILABLE'],
|
|
62
|
+
obligations: [],
|
|
63
|
+
receiptRef: '',
|
|
64
|
+
evaluatedAt,
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
opts.observe?.({ effect, reasonCodes });
|
|
68
|
+
return { decisionId, effect, reasonCodes, obligations, receiptRef, evaluatedAt };
|
|
69
|
+
};
|
|
70
|
+
// ── 1. The grant must exist ──────────────────────────────────────────
|
|
71
|
+
let grant;
|
|
72
|
+
try {
|
|
73
|
+
grant = await opts.loadGrant(request.admissionGrantId);
|
|
74
|
+
}
|
|
75
|
+
catch {
|
|
76
|
+
return settle('DENY', ['POLICY_DEPENDENCY_UNAVAILABLE']);
|
|
77
|
+
}
|
|
78
|
+
if (!grant)
|
|
79
|
+
return settle('DENY', ['MCP_OPERATION_NOT_AUTHORIZED']);
|
|
80
|
+
// ── 2. Structural: is the invocation inside the grant's ceiling? ─────
|
|
81
|
+
const violations = checkInvocationAgainstGrant(grant, request, at);
|
|
82
|
+
if (violations.length > 0) {
|
|
83
|
+
return settle('DENY', [...new Set(violations.map((v) => v.code))]);
|
|
84
|
+
}
|
|
85
|
+
// ── 3. The operation must be within what was admitted ────────────────
|
|
86
|
+
// A grant naming capabilities is not a grant naming THIS operation. Checked explicitly so a
|
|
87
|
+
// gateway cannot drift into "they were admitted, therefore this call is fine".
|
|
88
|
+
if (grant.permittedCapabilityIds.length > 0 &&
|
|
89
|
+
!grant.permittedCapabilityIds.includes(request.operationName) &&
|
|
90
|
+
!grant.operations.includes(request.operationName)) {
|
|
91
|
+
return settle('DENY', ['MCP_OPERATION_NOT_AUTHORIZED']);
|
|
92
|
+
}
|
|
93
|
+
// ── 4. LIVE delegation — the check that makes revocation real ────────
|
|
94
|
+
let del;
|
|
95
|
+
try {
|
|
96
|
+
del = await opts.verifyDelegation({
|
|
97
|
+
principalAgentId: request.principalAgentId,
|
|
98
|
+
actingAgentId: request.actingAgentId,
|
|
99
|
+
delegationRefs: request.delegationRefs,
|
|
100
|
+
operationName: request.operationName,
|
|
101
|
+
resourceId: request.resourceId,
|
|
102
|
+
at: evaluatedAt,
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
catch {
|
|
106
|
+
// Could not confirm live ⇒ not authorized. Never "it worked a moment ago" (ADR-0013).
|
|
107
|
+
del = { ok: false, reason: 'delegation check unavailable' };
|
|
108
|
+
}
|
|
109
|
+
if (!del.ok)
|
|
110
|
+
return settle('DENY', ['MCP_OPERATION_NOT_AUTHORIZED']);
|
|
111
|
+
// ── 5. LIVE entitlement — a SEPARATE gate ────────────────────────────
|
|
112
|
+
// "May call this agent" is not "may read this field". Collapsing the two is the specific
|
|
113
|
+
// failure ADR-0041 names; keeping them as two awaits is what prevents it.
|
|
114
|
+
let ent;
|
|
115
|
+
try {
|
|
116
|
+
ent = await opts.verifyEntitlement({
|
|
117
|
+
principalAgentId: request.principalAgentId,
|
|
118
|
+
entitlementRefs: request.entitlementRefs,
|
|
119
|
+
operationName: request.operationName,
|
|
120
|
+
resourceId: request.resourceId,
|
|
121
|
+
purpose: request.purpose,
|
|
122
|
+
dataClassification: request.dataClassification,
|
|
123
|
+
at: evaluatedAt,
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
catch {
|
|
127
|
+
ent = { ok: false, reason: 'entitlement check unavailable' };
|
|
128
|
+
}
|
|
129
|
+
if (!ent.ok)
|
|
130
|
+
return settle('DENY', ['MCP_OPERATION_NOT_AUTHORIZED']);
|
|
131
|
+
// ── 6. Exactly-once for anything that changes state ──────────────────
|
|
132
|
+
if (EFFECTFUL.has(request.operationKind)) {
|
|
133
|
+
if (!request.idempotencyKey) {
|
|
134
|
+
return settle('DENY', ['IDEMPOTENCY_CONFLICT']);
|
|
135
|
+
}
|
|
136
|
+
if (!opts.idempotency) {
|
|
137
|
+
// An effectful op with no ledger cannot be made exactly-once. Refuse rather than retry-storm.
|
|
138
|
+
return settle('DENY', ['POLICY_DEPENDENCY_UNAVAILABLE']);
|
|
139
|
+
}
|
|
140
|
+
let res;
|
|
141
|
+
try {
|
|
142
|
+
res = await opts.idempotency.reserve({
|
|
143
|
+
principalAgentId: request.principalAgentId,
|
|
144
|
+
targetBoundaryId: grant.boundaryId,
|
|
145
|
+
operation: request.operationName,
|
|
146
|
+
idempotencyKey: request.idempotencyKey,
|
|
147
|
+
requestDigest: request.canonicalArgumentsDigest,
|
|
148
|
+
expiresAt: grant.expiresAt,
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
catch {
|
|
152
|
+
return settle('DENY', ['POLICY_DEPENDENCY_UNAVAILABLE']);
|
|
153
|
+
}
|
|
154
|
+
// Same key, DIFFERENT arguments: someone is reusing a key across payloads. Never a retry.
|
|
155
|
+
if (res.state === 'CONFLICT')
|
|
156
|
+
return settle('DENY', ['IDEMPOTENCY_CONFLICT']);
|
|
157
|
+
if (res.state === 'COMPLETED') {
|
|
158
|
+
// Already done. Allowing it again would double-apply the effect.
|
|
159
|
+
return settle('DENY', ['IDEMPOTENCY_CONFLICT']);
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
return settle('ALLOW', [], grant.obligations);
|
|
163
|
+
},
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
//# sourceMappingURL=execution.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execution.js","sourceRoot":"","sources":["../src/execution.ts"],"names":[],"mappings":"AAAA,0DAA0D;AAC1D,EAAE;AACF,+FAA+F;AAC/F,EAAE;AACF,8EAA8E;AAC9E,EAAE;AACF,mGAAmG;AACnG,uGAAuG;AACvG,oGAAoG;AACpG,2DAA2D;AAC3D,EAAE;AACF,oGAAoG;AACpG,+FAA+F;AAC/F,iGAAiG;AACjG,mGAAmG;AACnG,6FAA6F;AAE7F,OAAO,EAAE,2BAA2B,EAAE,MAAM,iBAAiB,CAAC;AAkD9D,gGAAgG;AAChG,MAAM,SAAS,GAAG,IAAI,GAAG,CAAC,CAAC,gBAAgB,EAAE,gBAAgB,CAAC,CAAC,CAAC;AAE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,CAAC,KAAK,KAAK,WAAW,EAAE,CAAC;oBAC9B,iEAAiE;oBACjE,OAAO,MAAM,CAAC,MAAM,EAAE,CAAC,sBAAsB,CAAC,CAAC,CAAC;gBAClD,CAAC;YACH,CAAC;YAED,OAAO,MAAM,CAAC,OAAO,EAAE,EAAE,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC;QAChD,CAAC;KACF,CAAC;AACJ,CAAC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export { PACKAGE_NAME, SPEC_REF } from './types.js';
|
|
2
|
+
export type { A2AProtocolBinding, A2AHttpsEndpoint, TransportAssurance, OptionalTransportEvidence, ApplicationAuthenticationMethod, OAuthEvidence, AgenticRequestProofClaims, RequestProofEvidence, WorkloadIdentifier, WorkloadIdentityBinding, AgenticEdgeAssertionClaims, CanonicalActorContext, AdmissionSituation, AdmissionRequest, AdmissionEffect, AdmissionConstraint, AdmissionObligation, AdmissionPolicyContribution, AdmissionGrant, AdmissionChallenge, AdmissionDecision, ExactMcpInvocationRequest, ExecutionDecision, AdmissionReceipt, } from './types.js';
|
|
3
|
+
export type { ApplicationAuthenticator, CanonicalIdentityResolver, AdmissionPolicyEvaluator, AdmissionEngine, ExecutionAuthorityPoint, AtomicReplayStore, IdempotencyStore, FailHardAuditSink, InteractionIngressAdapter, WorkloadIdentityBindingResolver, } from './ports.js';
|
|
4
|
+
export { digestOf, authenticationEvidenceDigest, identityResolutionDigest, authorityEvidenceDigest, policySnapshotDigest, admissionGrantBody, admissionGrantDigest, } from './digests.js';
|
|
5
|
+
export { requestProofBody, requestProofDigest, sha256Of, verifyRequestProof } from './request-proof.js';
|
|
6
|
+
export type { VerifyRequestProofInput, VerifyRequestProofResult } from './request-proof.js';
|
|
7
|
+
export { createAdmissionEngine, verifyAdmissionGrant } from './engine.js';
|
|
8
|
+
export type { AdmissionEngineOptions, VerifyGrantInput, VerifyGrantResult } from './engine.js';
|
|
9
|
+
export { createTransportAssuranceEvaluator, meetsTransportAssurance } from './transport-policy.js';
|
|
10
|
+
export type { TransportAssuranceRule, TransportAssurancePolicyOptions, } from './transport-policy.js';
|
|
11
|
+
export { createExecutionAuthorityPoint } from './execution.js';
|
|
12
|
+
export type { ExecutionAuthorityOptions } from './execution.js';
|
|
13
|
+
export { agentAddressOf, isCanonicalAgentId, claimsAuthority, hasPrincipalAuthentication, checkAdmissionInvariants, checkInvocationAgainstGrant, hasApplicationAuthentication, observedTransportAssurance, } from './invariants.js';
|
|
14
|
+
export type { AdmissionReasonCode, InvariantViolation } from './invariants.js';
|
|
15
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEpD,YAAY,EAEV,kBAAkB,EAClB,gBAAgB,EAChB,kBAAkB,EAClB,yBAAyB,EAEzB,+BAA+B,EAC/B,aAAa,EACb,yBAAyB,EACzB,oBAAoB,EAEpB,kBAAkB,EAClB,uBAAuB,EAEvB,0BAA0B,EAE1B,qBAAqB,EAErB,kBAAkB,EAClB,gBAAgB,EAChB,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,2BAA2B,EAC3B,cAAc,EACd,kBAAkB,EAClB,iBAAiB,EAEjB,yBAAyB,EACzB,iBAAiB,EACjB,gBAAgB,GACjB,MAAM,YAAY,CAAC;AAEpB,YAAY,EACV,wBAAwB,EACxB,yBAAyB,EACzB,wBAAwB,EACxB,eAAe,EACf,uBAAuB,EACvB,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EAEjB,yBAAyB,EACzB,+BAA+B,GAChC,MAAM,YAAY,CAAC;AAEpB,OAAO,EACL,QAAQ,EACR,4BAA4B,EAC5B,wBAAwB,EACxB,uBAAuB,EACvB,oBAAoB,EACpB,kBAAkB,EAClB,oBAAoB,GACrB,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,QAAQ,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACxG,YAAY,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,MAAM,oBAAoB,CAAC;AAE5F,OAAO,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAC1E,YAAY,EAAE,sBAAsB,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAE/F,OAAO,EAAE,iCAAiC,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AACnG,YAAY,EACV,sBAAsB,EACtB,+BAA+B,GAChC,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,6BAA6B,EAAE,MAAM,gBAAgB,CAAC;AAC/D,YAAY,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAC;AAEhE,OAAO,EACL,cAAc,EACd,kBAAkB,EAClB,eAAe,EACf,0BAA0B,EAC1B,wBAAwB,EACxB,2BAA2B,EAC3B,4BAA4B,EAC5B,0BAA0B,GAC3B,MAAM,iBAAiB,CAAC;AACzB,YAAY,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// @agenticprimitives/admission — the semantic admission boundary (spec 339, ADR-0057).
|
|
2
|
+
//
|
|
3
|
+
// "Agentic Primitives defines semantic trust and authority ABOVE the transport layer."
|
|
4
|
+
//
|
|
5
|
+
// This package is where that sentence becomes checkable. It holds the contracts for the four
|
|
6
|
+
// questions the edge must keep separate — what the transport proved, what authenticated the caller,
|
|
7
|
+
// who the caller canonically IS, and what they are allowed to do — plus executable invariants for the
|
|
8
|
+
// places those questions get silently merged.
|
|
9
|
+
//
|
|
10
|
+
// ZERO RUNTIME DEPENDENCIES, BY DESIGN. Core must never depend outward (spec 339 §23.3): no viem, no
|
|
11
|
+
// provider SDK, no SPIFFE, no transport. If something here needs I/O, it is a port, not an import.
|
|
12
|
+
export { PACKAGE_NAME, SPEC_REF } from './types.js';
|
|
13
|
+
export { digestOf, authenticationEvidenceDigest, identityResolutionDigest, authorityEvidenceDigest, policySnapshotDigest, admissionGrantBody, admissionGrantDigest, } from './digests.js';
|
|
14
|
+
export { requestProofBody, requestProofDigest, sha256Of, verifyRequestProof } from './request-proof.js';
|
|
15
|
+
export { createAdmissionEngine, verifyAdmissionGrant } from './engine.js';
|
|
16
|
+
export { createTransportAssuranceEvaluator, meetsTransportAssurance } from './transport-policy.js';
|
|
17
|
+
export { createExecutionAuthorityPoint } from './execution.js';
|
|
18
|
+
export { agentAddressOf, isCanonicalAgentId, claimsAuthority, hasPrincipalAuthentication, checkAdmissionInvariants, checkInvocationAgainstGrant, hasApplicationAuthentication, observedTransportAssurance, } from './invariants.js';
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,uFAAuF;AACvF,EAAE;AACF,uFAAuF;AACvF,EAAE;AACF,6FAA6F;AAC7F,oGAAoG;AACpG,sGAAsG;AACtG,8CAA8C;AAC9C,EAAE;AACF,qGAAqG;AACrG,mGAAmG;AAEnG,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAkDpD,OAAO,EACL,QAAQ,EACR,4BAA4B,EAC5B,wBAAwB,EACxB,uBAAuB,EACvB,oBAAoB,EACpB,kBAAkB,EAClB,oBAAoB,GACrB,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,QAAQ,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAGxG,OAAO,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAG1E,OAAO,EAAE,iCAAiC,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAMnG,OAAO,EAAE,6BAA6B,EAAE,MAAM,gBAAgB,CAAC;AAG/D,OAAO,EACL,cAAc,EACd,kBAAkB,EAClB,eAAe,EACf,0BAA0B,EAC1B,wBAAwB,EACxB,2BAA2B,EAC3B,4BAA4B,EAC5B,0BAA0B,GAC3B,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import type { AdmissionGrant, AdmissionRequest, ExactMcpInvocationRequest, OptionalTransportEvidence } from './types.js';
|
|
2
|
+
/** Spec 339 §26.1. Internal, for audit — never a public error body. */
|
|
3
|
+
export type AdmissionReasonCode = 'HTTPS_REQUIRED' | 'OAUTH_TOKEN_REQUIRED' | 'OAUTH_TOKEN_EXPIRED' | 'OAUTH_AUDIENCE_MISMATCH' | 'REQUEST_PROOF_REQUIRED' | 'REQUEST_PROOF_INVALID' | 'REQUEST_PROOF_EXPIRED' | 'REQUEST_BODY_DIGEST_MISMATCH' | 'REQUEST_AUDIENCE_MISMATCH' | 'REQUEST_REPLAY_DETECTED' | 'MTLS_REQUIRED_FOR_PROFILE' | 'CLIENT_CERTIFICATE_INVALID' | 'CERTIFICATE_TOKEN_BINDING_MISMATCH' | 'WORKLOAD_BINDING_NOT_FOUND' | 'WORKLOAD_BINDING_REVOKED' | 'APPLICATION_IDENTITY_BINDING_NOT_FOUND' | 'CANONICAL_AGENT_MISMATCH' | 'NON_CANONICAL_AGENT_ID' | 'RUNTIME_BINDING_MISMATCH' | 'PRINCIPAL_AUTHENTICATION_REQUIRED' | 'CAPABILITY_NOT_ADMITTED' | 'MCP_OPERATION_NOT_AUTHORIZED' | 'EXACT_INVOCATION_PROOF_REQUIRED' | 'IDEMPOTENCY_CONFLICT' | 'AUDIT_SINK_UNAVAILABLE' | 'POLICY_DEPENDENCY_UNAVAILABLE';
|
|
4
|
+
export interface InvariantViolation {
|
|
5
|
+
code: AdmissionReasonCode;
|
|
6
|
+
/** Which collapse this catches. Local diagnostics only. */
|
|
7
|
+
detail: string;
|
|
8
|
+
}
|
|
9
|
+
/** Does this id name an ERC-4337 Smart Agent, chain-qualified? */
|
|
10
|
+
export declare function isCanonicalAgentId(id: string): boolean;
|
|
11
|
+
/**
|
|
12
|
+
* The address an agent id resolves to, or `null`.
|
|
13
|
+
*
|
|
14
|
+
* Pure parsing — never a registry read. `null` means "this is not an agent id", never "look it up".
|
|
15
|
+
*/
|
|
16
|
+
export declare function agentAddressOf(id: string): string | null;
|
|
17
|
+
/**
|
|
18
|
+
* ─────────────────────────────────────────────────────────────────────────────
|
|
19
|
+
* OAuth authenticates a CLIENT. A signed proof authenticates a PRINCIPAL.
|
|
20
|
+
* ─────────────────────────────────────────────────────────────────────────────
|
|
21
|
+
*
|
|
22
|
+
* THIS REPO'S BINDING POSITION, narrower than spec 339's source text (see ADR-0057 §"OAuth is
|
|
23
|
+
* subordinate", and ADR-0041 which established it for the A2A→MCP hop):
|
|
24
|
+
*
|
|
25
|
+
* Spec 339 as authored treats OAuth/OIDC and the signed Agentic request proof as co-equal application
|
|
26
|
+
* authentication. On this substrate they are not, and treating them as interchangeable is how the
|
|
27
|
+
* ERC-1271 authority model gets replaced by an issuer-granted scope without anyone deciding to.
|
|
28
|
+
*
|
|
29
|
+
* OAuth bearer → an IdP asserts a client obtained a token. Nothing is signed by the principal's
|
|
30
|
+
* Smart Agent. It is an ingress ENVELOPE: it may carry a principal claim and a
|
|
31
|
+
* grant reference, never delegation payload or field-level authority.
|
|
32
|
+
*
|
|
33
|
+
* Request proof → the principal's own key signed THIS request. Verified through
|
|
34
|
+
* `UniversalSignatureValidator` — ERC-1271 / ERC-6492 / ECDSA / WebAuthn — so
|
|
35
|
+
* it is not a competing mechanism, it IS the substrate's mechanism at the HTTP
|
|
36
|
+
* layer. SA-bound, signature-verified, on-chain revocable.
|
|
37
|
+
*
|
|
38
|
+
* The consequence enforced below: an operation that CLAIMS AUTHORITY (cites delegations or
|
|
39
|
+
* entitlements) requires principal authentication. OAuth alone can carry a request through the door;
|
|
40
|
+
* it can never be the thing that says a principal delegated anything.
|
|
41
|
+
*
|
|
42
|
+
* ADR-0013 applies too: these are not a fallback chain. A failed proof does not degrade to
|
|
43
|
+
* "well, the OAuth token was valid" — it denies.
|
|
44
|
+
*/
|
|
45
|
+
export declare function hasPrincipalAuthentication(req: AdmissionRequest): boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Does this request claim authority to act, as opposed to merely asking to be heard?
|
|
48
|
+
*
|
|
49
|
+
* Citing a delegation or an entitlement IS the claim. A request that cites neither may still be
|
|
50
|
+
* admitted (a public capability, a challenge exchange) — it just cannot later be used to justify
|
|
51
|
+
* acting on someone's behalf.
|
|
52
|
+
*/
|
|
53
|
+
export declare function claimsAuthority(req: AdmissionRequest): boolean;
|
|
54
|
+
/**
|
|
55
|
+
* Was the calling execution context authenticated AT THE APPLICATION LAYER?
|
|
56
|
+
*
|
|
57
|
+
* The question exists because transport evidence is so tempting to answer it with. A valid client
|
|
58
|
+
* certificate authenticates a connection; it says nothing about which principal is on the other end of
|
|
59
|
+
* it, and a deployment that treats mTLS as login has replaced its authority model with its network
|
|
60
|
+
* topology.
|
|
61
|
+
*/
|
|
62
|
+
export declare function hasApplicationAuthentication(req: AdmissionRequest): boolean;
|
|
63
|
+
/** Derive assurance from what was actually validated, rather than trusting a self-reported label. */
|
|
64
|
+
export declare function observedTransportAssurance(e: OptionalTransportEvidence | undefined): AdmissionRequest['transport']['assurance'];
|
|
65
|
+
/**
|
|
66
|
+
* Structural coherence of an admission request. Empty means coherent, NOT admissible.
|
|
67
|
+
*
|
|
68
|
+
* Every violation below is a layer collapse someone has shipped in production somewhere.
|
|
69
|
+
*/
|
|
70
|
+
export declare function checkAdmissionInvariants(req: AdmissionRequest): InvariantViolation[];
|
|
71
|
+
/**
|
|
72
|
+
* Is this invocation INSIDE the grant's ceiling?
|
|
73
|
+
*
|
|
74
|
+
* READ THE RETURN VALUE CAREFULLY: `[]` means the grant does not forbid this call. It does NOT mean
|
|
75
|
+
* the call is authorized. Delegation and entitlement are re-checked live at the gateway, because they
|
|
76
|
+
* can be revoked between admission and invocation — and that window is exactly when revocation has to
|
|
77
|
+
* work (spec 339 §21.5).
|
|
78
|
+
*/
|
|
79
|
+
export declare function checkInvocationAgainstGrant(grant: AdmissionGrant, invocation: ExactMcpInvocationRequest, now?: Date): InvariantViolation[];
|
|
80
|
+
//# sourceMappingURL=invariants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invariants.d.ts","sourceRoot":"","sources":["../src/invariants.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EACV,cAAc,EACd,gBAAgB,EAChB,yBAAyB,EACzB,yBAAyB,EAC1B,MAAM,YAAY,CAAC;AAEpB,uEAAuE;AACvE,MAAM,MAAM,mBAAmB,GAC3B,gBAAgB,GAChB,sBAAsB,GACtB,qBAAqB,GACrB,yBAAyB,GACzB,wBAAwB,GACxB,uBAAuB,GACvB,uBAAuB,GACvB,8BAA8B,GAC9B,2BAA2B,GAC3B,yBAAyB,GACzB,2BAA2B,GAC3B,4BAA4B,GAC5B,oCAAoC,GACpC,4BAA4B,GAC5B,0BAA0B,GAC1B,wCAAwC,GACxC,0BAA0B,GAC1B,wBAAwB,GACxB,0BAA0B,GAC1B,mCAAmC,GACnC,yBAAyB,GACzB,8BAA8B,GAC9B,iCAAiC,GACjC,sBAAsB,GACtB,wBAAwB,GACxB,+BAA+B,CAAC;AAEpC,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,mBAAmB,CAAC;IAC1B,2DAA2D;IAC3D,MAAM,EAAE,MAAM,CAAC;CAChB;AA2BD,kEAAkE;AAClE,wBAAgB,kBAAkB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAEtD;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAExD;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;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