@agenticprimitives/admission 0.0.0-alpha.1 → 0.0.0-alpha.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # @agenticprimitives/admission
2
2
 
3
+ > Part of **[Agentic Primitives](https://agenticprimitives.dev)** — the open-source trust substrate for agentic applications: identity that can sign, authority checked at act time, evidence the owner carries. [Developer kit](https://github.com/agentictrustlabs/agentic-primitives) · [All packages](https://agenticprimitives.dev/developers)
4
+
3
5
  Admission contracts for the Agentic Primitives Edge — the boundary between external agent intentions
4
6
  and internal agent capabilities.
5
7
 
@@ -0,0 +1,47 @@
1
+ import type { AdmissionPolicyEvaluator } from './ports.js';
2
+ import type { AdmissionRequest } from './types.js';
3
+ export declare const FOREIGN_ESTATE_REF: RegExp;
4
+ /** What the edge read from the anchor for an estate — the live original. */
5
+ export interface ForeignEstateRoots {
6
+ estateId: `0x${string}`;
7
+ sequence: number;
8
+ liveGrantRoot: `0x${string}`;
9
+ membershipRoot: `0x${string}`;
10
+ anchoredAt: number;
11
+ }
12
+ export type ForeignEstateVerdict = {
13
+ ok: true;
14
+ estateId: `0x${string}`;
15
+ set: 'live-grant' | 'membership';
16
+ sequence: number;
17
+ subject: `0x${string}`;
18
+ } | {
19
+ ok: false;
20
+ code: string;
21
+ reason: string;
22
+ };
23
+ export interface ForeignEstateEvaluatorDeps {
24
+ /** The presentation the edge holds under this reference, or null (never fetched from the presenter). */
25
+ resolvePresentation(ref: string): Promise<unknown | null>;
26
+ /** The roots as anchored on public ground, or null when the estate is unregistered; throws when the anchor could not be read. */
27
+ readRoots(estateId: `0x${string}`): Promise<ForeignEstateRoots | null>;
28
+ /** `estate-projection.verifyAuthorityPresentation`, injected. */
29
+ verify(presentation: unknown, roots: ForeignEstateRoots, expect: {
30
+ subject: `0x${string}`;
31
+ nonce: `0x${string}`;
32
+ audience: string;
33
+ now: number;
34
+ maxAgeSeconds: number;
35
+ }): ForeignEstateVerdict;
36
+ /** The challenge this edge issued for the presentation: its nonce and its audience (this edge's origin). */
37
+ challengeFor(request: AdmissionRequest, ref: string): {
38
+ nonce: `0x${string}`;
39
+ audience: string;
40
+ } | null;
41
+ /** The edge's freshness policy: how old an anchored sequence may be. */
42
+ maxAgeSeconds: number;
43
+ now?: () => number;
44
+ }
45
+ export declare const FOREIGN_ESTATE_CONTRIBUTOR = "foreign-estate-presentation";
46
+ export declare function foreignEstateEvaluator(deps: ForeignEstateEvaluatorDeps): AdmissionPolicyEvaluator;
47
+ //# sourceMappingURL=foreign-estate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"foreign-estate.d.ts","sourceRoot":"","sources":["../src/foreign-estate.ts"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,KAAK,EAA+B,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAEhF,eAAO,MAAM,kBAAkB,QAAiE,CAAC;AAEjG,4EAA4E;AAC5E,MAAM,WAAW,kBAAkB;IAAG,QAAQ,EAAE,KAAK,MAAM,EAAE,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,aAAa,EAAE,KAAK,MAAM,EAAE,CAAC;IAAC,cAAc,EAAE,KAAK,MAAM,EAAE,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAE;AAElK,MAAM,MAAM,oBAAoB,GAC5B;IAAE,EAAE,EAAE,IAAI,CAAC;IAAC,QAAQ,EAAE,KAAK,MAAM,EAAE,CAAC;IAAC,GAAG,EAAE,YAAY,GAAG,YAAY,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,KAAK,MAAM,EAAE,CAAA;CAAE,GACjH;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AAEhD,MAAM,WAAW,0BAA0B;IACzC,wGAAwG;IACxG,mBAAmB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC,CAAC;IAC1D,iIAAiI;IACjI,SAAS,CAAC,QAAQ,EAAE,KAAK,MAAM,EAAE,GAAG,OAAO,CAAC,kBAAkB,GAAG,IAAI,CAAC,CAAC;IACvE,iEAAiE;IACjE,MAAM,CAAC,YAAY,EAAE,OAAO,EAAE,KAAK,EAAE,kBAAkB,EAAE,MAAM,EAAE;QAAE,OAAO,EAAE,KAAK,MAAM,EAAE,CAAC;QAAC,KAAK,EAAE,KAAK,MAAM,EAAE,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAC;QAAC,aAAa,EAAE,MAAM,CAAA;KAAE,GAAG,oBAAoB,CAAC;IAC/L,4GAA4G;IAC5G,YAAY,CAAC,OAAO,EAAE,gBAAgB,EAAE,GAAG,EAAE,MAAM,GAAG;QAAE,KAAK,EAAE,KAAK,MAAM,EAAE,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IACxG,wEAAwE;IACxE,aAAa,EAAE,MAAM,CAAC;IACtB,GAAG,CAAC,EAAE,MAAM,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,0BAA0B,gCAAgC,CAAC;AAExE,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,0BAA0B,GAAG,wBAAwB,CAoCjG"}
@@ -0,0 +1,50 @@
1
+ export const FOREIGN_ESTATE_REF = /^estate:(0x[0-9a-fA-F]{64}):presentation:([A-Za-z0-9_.:-]+)$/;
2
+ export const FOREIGN_ESTATE_CONTRIBUTOR = 'foreign-estate-presentation';
3
+ export function foreignEstateEvaluator(deps) {
4
+ const now = deps.now ?? (() => Math.floor(Date.now() / 1000));
5
+ return {
6
+ contributorId: FOREIGN_ESTATE_CONTRIBUTOR,
7
+ async evaluate(request) {
8
+ const evaluatedAt = new Date(now() * 1000).toISOString();
9
+ const refs = [...request.relationshipRefs, ...request.delegationRefs].filter((r) => FOREIGN_ESTATE_REF.test(r));
10
+ const base = { contributorId: FOREIGN_ESTATE_CONTRIBUTOR, policyVersion: 'spec-410-4.2/1', evaluatedAt };
11
+ // No foreign reference: this evaluator has no opinion — ALLOW with no reason narrows nothing and the other
12
+ // stages decide. (Zero contributions overall is the engine's misconfiguration case; this is one contribution
13
+ // that says "nothing foreign here".)
14
+ if (!refs.length)
15
+ return { ...base, effect: 'ALLOW', reasonCodes: ['FOREIGN_ESTATE_NOT_PRESENTED'] };
16
+ // The acting agent, as an address: the actor context names it CAIP-10 (`eip155:<chain>:0x…`).
17
+ const subject = (request.actor.actingAgentId.match(/0x[0-9a-fA-F]{40}$/)?.[0] ?? '').toLowerCase();
18
+ if (!subject)
19
+ return { ...base, effect: 'DENY', reasonCodes: ['FOREIGN_ESTATE_ACTOR_UNADDRESSED'] };
20
+ const evidenceRefs = [];
21
+ const reasonCodes = [];
22
+ for (const ref of refs) {
23
+ const m = FOREIGN_ESTATE_REF.exec(ref);
24
+ const estateId = m[1].toLowerCase();
25
+ const pres = await deps.resolvePresentation(ref);
26
+ if (!pres)
27
+ return { ...base, effect: 'DENY', reasonCodes: ['FOREIGN_ESTATE_PRESENTATION_MISSING'], evidenceRefs: [ref] };
28
+ const challenge = deps.challengeFor(request, ref);
29
+ if (!challenge)
30
+ return { ...base, effect: 'DENY', reasonCodes: ['FOREIGN_ESTATE_CHALLENGE_UNKNOWN'], evidenceRefs: [ref] };
31
+ let roots;
32
+ try {
33
+ roots = await deps.readRoots(estateId);
34
+ }
35
+ catch {
36
+ return { ...base, effect: 'INDETERMINATE', reasonCodes: ['FOREIGN_ESTATE_ANCHOR_UNREADABLE'], evidenceRefs: [ref] };
37
+ }
38
+ if (!roots || roots.sequence === 0)
39
+ return { ...base, effect: 'DENY', reasonCodes: ['FOREIGN_ESTATE_UNREGISTERED'], evidenceRefs: [ref] };
40
+ const v = deps.verify(pres, roots, { subject, ...challenge, now: now(), maxAgeSeconds: deps.maxAgeSeconds });
41
+ if (!v.ok)
42
+ return { ...base, effect: 'DENY', reasonCodes: [`FOREIGN_ESTATE_${v.code.toUpperCase()}`], evidenceRefs: [ref] };
43
+ reasonCodes.push(v.set === 'live-grant' ? 'FOREIGN_ESTATE_LIVE_GRANT' : 'FOREIGN_ESTATE_MEMBER');
44
+ evidenceRefs.push(ref, `estate:${estateId}:sequence:${v.sequence}`);
45
+ }
46
+ return { ...base, effect: 'ALLOW', reasonCodes, evidenceRefs };
47
+ },
48
+ };
49
+ }
50
+ //# sourceMappingURL=foreign-estate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"foreign-estate.js","sourceRoot":"","sources":["../src/foreign-estate.ts"],"names":[],"mappings":"AAwBA,MAAM,CAAC,MAAM,kBAAkB,GAAG,8DAA8D,CAAC;AAuBjG,MAAM,CAAC,MAAM,0BAA0B,GAAG,6BAA6B,CAAC;AAExE,MAAM,UAAU,sBAAsB,CAAC,IAAgC;IACrE,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,CAAC,CAAC;IAC9D,OAAO;QACL,aAAa,EAAE,0BAA0B;QACzC,KAAK,CAAC,QAAQ,CAAC,OAAyB;YACtC,MAAM,WAAW,GAAG,IAAI,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,CAAC,WAAW,EAAE,CAAC;YACzD,MAAM,IAAI,GAAG,CAAC,GAAG,OAAO,CAAC,gBAAgB,EAAE,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;YAChH,MAAM,IAAI,GAAG,EAAE,aAAa,EAAE,0BAA0B,EAAE,aAAa,EAAE,gBAAgB,EAAE,WAAW,EA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E,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,CAAC;QACjE,CAAC;KACF,CAAC;AACJ,CAAC"}
package/dist/index.d.ts CHANGED
@@ -12,4 +12,5 @@ export { createExecutionAuthorityPoint } from './execution.js';
12
12
  export type { ExecutionAuthorityOptions } from './execution.js';
13
13
  export { agentAddressOf, isCanonicalAgentId, claimsAuthority, hasPrincipalAuthentication, checkAdmissionInvariants, checkInvocationAgainstGrant, hasApplicationAuthentication, observedTransportAssurance, } from './invariants.js';
14
14
  export type { AdmissionReasonCode, InvariantViolation } from './invariants.js';
15
+ export { foreignEstateEvaluator, FOREIGN_ESTATE_REF, FOREIGN_ESTATE_CONTRIBUTOR, type ForeignEstateEvaluatorDeps, type ForeignEstateRoots, type ForeignEstateVerdict } from './foreign-estate.js';
15
16
  //# sourceMappingURL=index.d.ts.map
@@ -1 +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,OAA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kB,EAAE,MAAM,iBAAiB,CAAC;AAE/E,OAAO,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,0BAA0B,EAAE,KAAK,0BAA0B,EAAE,KAAK,kBAAkB,EAAE,KAAK,oBAAoB,EAAE,MAAM,qBAAqB,CAAC"}
package/dist/index.js CHANGED
@@ -16,4 +16,6 @@ export { createAdmissionEngine, verifyAdmissionGrant } from './engine.js';
16
16
  export { createTransportAssuranceEvaluator, meetsTransportAssurance } from './transport-policy.js';
17
17
  export { createExecutionAuthorityPoint } from './execution.js';
18
18
  export { agentAddressOf, isCanonicalAgentId, claimsAuthority, hasPrincipalAuthentication, checkAdmissionInvariants, checkInvocationAgainstGrant, hasApplicationAuthentication, observedTransportAssurance, } from './invariants.js';
19
+ // Spec 410 §4 — admission at the receiving edge of a presentation rooted in ANOTHER estate's public projection.
20
+ export { foreignEstateEvaluator, FOREIGN_ESTATE_REF, FOREIGN_ESTATE_CONTRIBUTOR } from './foreign-estate.js';
19
21
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,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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
package/package.json CHANGED
@@ -1,17 +1,21 @@
1
1
  {
2
2
  "name": "@agenticprimitives/admission",
3
- "version": "0.0.0-alpha.1",
3
+ "version": "0.0.0-alpha.10",
4
4
  "description": "Agentic Primitives Edge admission contracts: transport evidence, application authentication, canonical actor resolution, admission grants, and exact MCP invocation authorization. Zero runtime dependencies; admission is never authority.",
5
+ "homepage": "https://agenticprimitives.dev",
6
+ "bugs": {
7
+ "url": "https://github.com/agentictrustlabs/agenticprimitives/issues"
8
+ },
9
+ "author": {
10
+ "name": "Agentic Trust Labs",
11
+ "url": "https://agenticprimitives.dev"
12
+ },
5
13
  "license": "MIT",
6
14
  "repository": {
7
15
  "type": "git",
8
16
  "url": "git+https://github.com/agentictrustlabs/agenticprimitives.git",
9
17
  "directory": "packages/admission"
10
18
  },
11
- "homepage": "https://github.com/agentictrustlabs/agenticprimitives/tree/master/packages/admission",
12
- "bugs": {
13
- "url": "https://github.com/agentictrustlabs/agenticprimitives/issues"
14
- },
15
19
  "type": "module",
16
20
  "main": "./dist/index.js",
17
21
  "types": "./dist/index.d.ts",
@@ -31,7 +35,8 @@
31
35
  },
32
36
  "devDependencies": {
33
37
  "vitest": "^4.1.8",
34
- "@agenticprimitives/types": "1.0.0-alpha.20"
38
+ "@agenticprimitives/types": "1.0.0-alpha.29",
39
+ "@agenticprimitives/estate-projection": "0.0.0-alpha.3"
35
40
  },
36
41
  "keywords": [
37
42
  "agentic",
@@ -39,10 +44,15 @@
39
44
  "admission",
40
45
  "a2a",
41
46
  "edge",
42
- "authorization"
47
+ "authorization",
48
+ "agentic-primitives",
49
+ "agenticprimitives",
50
+ "ai-agents",
51
+ "agent-authority",
52
+ "agentic-trust"
43
53
  ],
44
54
  "peerDependencies": {
45
- "@agenticprimitives/types": "1.0.0-alpha.20"
55
+ "@agenticprimitives/types": "1.0.0-alpha.29"
46
56
  },
47
57
  "scripts": {
48
58
  "build": "tsc -p tsconfig.build.json",