@agenticprimitives/admission 0.0.0-alpha.20 → 0.0.0-alpha.21
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 +36 -0
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -63,3 +63,39 @@ pnpm add @agenticprimitives/admission
|
|
|
63
63
|
```
|
|
64
64
|
|
|
65
65
|
MIT.
|
|
66
|
+
|
|
67
|
+
## Credential presentations and HTTP signatures
|
|
68
|
+
|
|
69
|
+
`credentialPresentationEvaluator` (`CREDENTIAL_PRESENTATION_CONTRIBUTOR`) admits a zero-knowledge credential
|
|
70
|
+
presentation as evidence at the door: the verdict names the issuer facet, the predicate digest, the nullifier grade and
|
|
71
|
+
the status sequence, and grants nothing. `verifyHttpSignature` (`HTTP_SIGNATURE_CONTRIBUTOR`, RFC 9421) records an HTTP
|
|
72
|
+
message signature as transport evidence — never authentication, never authority.
|
|
73
|
+
|
|
74
|
+
## Reference
|
|
75
|
+
|
|
76
|
+
**Agent ids are ERC-4337 accounts, not names.** `principalAgentId`, `actingAgentId` and `targetAgentId` are CAIP-10 ids that
|
|
77
|
+
resolve to a 20-byte address (ADR-0010). Spec 339 as authored used `urn:ap:agent:…`; that is refused here, because a URN
|
|
78
|
+
is a name a namespace operator can reassign. `runtimeId` is exempt: a deployment is not an account. `agentAddressOf`
|
|
79
|
+
parses; it never resolves a name.
|
|
80
|
+
|
|
81
|
+
**Not `edge-runtime`.** `edge-runtime` asks the ingress question (route, headers, body size, abuse limit) and is
|
|
82
|
+
Cloudflare-shaped; its type is `EdgeIngressRequest`. This package asks the semantic one, and the canonical
|
|
83
|
+
`AdmissionRequest` lives here. One word for both is how a route check ends up standing in for an authority decision.
|
|
84
|
+
|
|
85
|
+
**mTLS is optional, with three meanings kept apart.** `createTransportAssuranceEvaluator` is the only place transport can
|
|
86
|
+
affect a decision: no certificate is normal (no rule means ALLOW); `minimumAssurance` denies below the bar
|
|
87
|
+
(`MTLS_REQUIRED_FOR_PROFILE` — requiring mTLS is policy, never transport deciding for itself); `preferredAssurance` with
|
|
88
|
+
`constraintsBelowPreferred` narrows instead. A certificate can only raise the bar; a test asserts it cannot turn another
|
|
89
|
+
evaluator's DENY into an ADMIT. Evidence comes from `edge-cloudflare.transportEvidenceFromRequest`; the level is measured
|
|
90
|
+
with `observedTransportAssurance`, never the self-reported label.
|
|
91
|
+
|
|
92
|
+
**Layout.** `src/types.ts` holds the contracts, each commented with the collapse its shape prevents. `src/ports.ts` holds the
|
|
93
|
+
injected interfaces and the only two extension points, both pointing inward. `src/invariants.ts` holds the
|
|
94
|
+
non-equivalences as code, because types cannot catch `if (mtls) { trusted }`.
|
|
95
|
+
|
|
96
|
+
**Claims this package makes checkable.** Transport evidence is never application authentication
|
|
97
|
+
(`hasApplicationAuthentication`). Assurance is what was validated, not what was claimed. A workload identifier is not an
|
|
98
|
+
agent; a binding must exist and be active. A grant is a door, not a key (`checkInvocationAgainstGrant` refuses an invocation
|
|
99
|
+
with no delegation). An empty capability ceiling admits nothing. An RFC 9421 HTTP signature is transport evidence only
|
|
100
|
+
(`verifyHttpSignature` → `optionalTransportEvidence.httpSignature`, spec 442 §6): the key is a resolver port, the invariant
|
|
101
|
+
set is identical with and without it, and `tag: payment` grants nothing.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agenticprimitives/admission",
|
|
3
|
-
"version": "0.0.0-alpha.
|
|
3
|
+
"version": "0.0.0-alpha.21",
|
|
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
5
|
"homepage": "https://agenticprimitives.dev",
|
|
6
6
|
"bugs": {
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"vitest": "^4.1.11",
|
|
38
|
-
"@agenticprimitives/types": "1.0.0-alpha.
|
|
39
|
-
"@agenticprimitives/estate-projection": "0.0.0-alpha.
|
|
38
|
+
"@agenticprimitives/types": "1.0.0-alpha.45",
|
|
39
|
+
"@agenticprimitives/estate-projection": "0.0.0-alpha.20"
|
|
40
40
|
},
|
|
41
41
|
"keywords": [
|
|
42
42
|
"agentic",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"agentic-trust"
|
|
53
53
|
],
|
|
54
54
|
"peerDependencies": {
|
|
55
|
-
"@agenticprimitives/types": "^1.0.0-alpha.
|
|
55
|
+
"@agenticprimitives/types": "^1.0.0-alpha.45"
|
|
56
56
|
},
|
|
57
57
|
"scripts": {
|
|
58
58
|
"build": "tsc -p tsconfig.build.json",
|