@agenticprimitives/related-agents 0.0.0-alpha.42 → 0.0.0-alpha.43
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 +8 -0
- package/dist/index.d.ts +54 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +81 -2
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -35,6 +35,14 @@ const caveats = relatedAgentReadCaveats({
|
|
|
35
35
|
|
|
36
36
|
The credential is self-issued (holder = issuer = the person's Smart Agent), `visibility = private`, holder-resident. The caveat set a grantee receives is time-bound, zero-value, and target-scoped — the grantee can *read* the org, not move anything. `purpose` is a free string supplied by the app; this package carries no vertical vocabulary.
|
|
37
37
|
|
|
38
|
+
## The write challenge — v2 retires on 2026-12-10
|
|
39
|
+
|
|
40
|
+
A person authorizes one related-agent write by signing `hashRelatedAgentWriteChallengeV3({ chainId, person,
|
|
41
|
+
orgAgent, contentHash, nonce, expiry })` — it binds the chain. The chainless v2 challenge is accepted only until
|
|
42
|
+
**2026-12-10T00:00:00Z** (`RELATED_AGENT_WRITE_CHALLENGE_V2_RETIRED_AT`): a server calls
|
|
43
|
+
`checkRelatedAgentWriteChallengeVersion(version, now)` with its own clock and refuses v2 from that instant with
|
|
44
|
+
`challenge_v2_retired`; `hashRelatedAgentWriteChallenge` (v2) takes `{ now }` and throws from the same instant.
|
|
45
|
+
|
|
38
46
|
## How it's different
|
|
39
47
|
|
|
40
48
|
The competing pattern is **app-local membership tables and public social graphs** — either the relying app owns the person→org row (and the user cannot take it elsewhere or revoke the app's knowledge of it), or the link is published to a graph anyone can crawl:
|
package/dist/index.d.ts
CHANGED
|
@@ -24,7 +24,7 @@ export declare const SPEC_REF = "specs/246-related-agents-vault.md";
|
|
|
24
24
|
export declare const RELATED_AGENT_DESCRIPTION = "apra:RelatedAgentCredential";
|
|
25
25
|
/** The freeform body of a related-agent credential (NOT the roles/participants). */
|
|
26
26
|
export interface RelatedAgentBody extends Record<string, unknown> {
|
|
27
|
-
/** Human-readable name of the related agent (e.g. the org's `.
|
|
27
|
+
/** Human-readable name of the related agent (e.g. the org's `.org` name). */
|
|
28
28
|
agentName: string;
|
|
29
29
|
/** Optional app-level kind tag (opaque to this package). */
|
|
30
30
|
agentKind?: string;
|
|
@@ -67,14 +67,66 @@ export declare function relatedAgentWriteContentHash(f: {
|
|
|
67
67
|
purpose: string;
|
|
68
68
|
requestedBy: string;
|
|
69
69
|
}): Hex;
|
|
70
|
+
/**
|
|
71
|
+
* The v2 write challenge is RETIRED at this instant (spec 445 decision 8, COV-18): before it, a v2 challenge is
|
|
72
|
+
* still accepted while clients move to v3; from it on, v2 is refused with `challenge_v2_retired`. One fixed date,
|
|
73
|
+
* read against an INJECTED clock — never the ambient one.
|
|
74
|
+
*/
|
|
75
|
+
export declare const RELATED_AGENT_WRITE_CHALLENGE_V2_RETIRED_AT = "2026-12-10T00:00:00.000Z";
|
|
76
|
+
export type RelatedAgentWriteChallengeVersion = 'v2' | 'v3';
|
|
77
|
+
export type RelatedAgentWriteChallengeRefusalCode = 'challenge_v2_retired' | 'challenge_version_unknown' | 'clock_invalid';
|
|
78
|
+
/** A write challenge version the server will not accept, by name. */
|
|
79
|
+
export declare class RelatedAgentWriteChallengeRefusal extends Error {
|
|
80
|
+
readonly code: RelatedAgentWriteChallengeRefusalCode;
|
|
81
|
+
constructor(code: RelatedAgentWriteChallengeRefusalCode, message: string);
|
|
82
|
+
}
|
|
83
|
+
/** The injected clock: epoch milliseconds (a `Date` is accepted). */
|
|
84
|
+
export type RelatedAgentClock = () => number | Date;
|
|
85
|
+
/**
|
|
86
|
+
* Is a write challenge of `version` accepted NOW? `v3` always; `v2` only before
|
|
87
|
+
* {@link RELATED_AGENT_WRITE_CHALLENGE_V2_RETIRED_AT}; anything else is unknown. A clock that does not read is
|
|
88
|
+
* refused (`clock_invalid`) — fail closed, never "assume it is still early". The home calls this before verifying
|
|
89
|
+
* a related-agent write signature.
|
|
90
|
+
*/
|
|
91
|
+
export declare function checkRelatedAgentWriteChallengeVersion(version: string, now: RelatedAgentClock): {
|
|
92
|
+
ok: true;
|
|
93
|
+
version: RelatedAgentWriteChallengeVersion;
|
|
94
|
+
} | {
|
|
95
|
+
ok: false;
|
|
96
|
+
code: RelatedAgentWriteChallengeRefusalCode;
|
|
97
|
+
reason: string;
|
|
98
|
+
};
|
|
70
99
|
/** The digest a PERSON-SA custodian signs (ERC-1271) to authorize ONE related-agent write. Bound to the
|
|
71
|
-
* person, the agent, the content hash, a one-shot `nonce` (bytes32), and an `expiry` (unix seconds).
|
|
100
|
+
* person, the agent, the content hash, a one-shot `nonce` (bytes32), and an `expiry` (unix seconds).
|
|
101
|
+
*
|
|
102
|
+
* RETIRING (spec 445 decision 8): requires the injected clock `opts.now`, and from
|
|
103
|
+
* {@link RELATED_AGENT_WRITE_CHALLENGE_V2_RETIRED_AT} it THROWS `RelatedAgentWriteChallengeRefusal`
|
|
104
|
+
* (`challenge_v2_retired`) instead of returning a digest.
|
|
105
|
+
*
|
|
106
|
+
* @deprecated NO CHAIN ID (spec 445 / COV-18): a person SA deployed at one address on two chains signs a
|
|
107
|
+
* challenge that is valid at a home on either, within its expiry. Use {@link hashRelatedAgentWriteChallengeV3},
|
|
108
|
+
* which binds the chain. Kept only because client and server must move together — the wire is theirs. */
|
|
72
109
|
export declare function hashRelatedAgentWriteChallenge(a: {
|
|
73
110
|
person: Address;
|
|
74
111
|
orgAgent: Address;
|
|
75
112
|
contentHash: Hex;
|
|
76
113
|
nonce: Hex;
|
|
77
114
|
expiry: number;
|
|
115
|
+
}, opts: {
|
|
116
|
+
now: RelatedAgentClock;
|
|
117
|
+
}): Hex;
|
|
118
|
+
/**
|
|
119
|
+
* The v3 write challenge (spec 445 / COV-18): everything v2 binds, PLUS the chain the home verifies on — so a
|
|
120
|
+
* signature made for one chain's home is not a signature for another's. A chain id is declared or it is an error:
|
|
121
|
+
* there is no default, and `0` is not a chain.
|
|
122
|
+
*/
|
|
123
|
+
export declare function hashRelatedAgentWriteChallengeV3(a: {
|
|
124
|
+
chainId: number;
|
|
125
|
+
person: Address;
|
|
126
|
+
orgAgent: Address;
|
|
127
|
+
contentHash: Hex;
|
|
128
|
+
nonce: Hex;
|
|
129
|
+
expiry: number;
|
|
78
130
|
}): Hex;
|
|
79
131
|
export type RelatedAgentCredential = UnsignedCredential<Situation<{
|
|
80
132
|
payload: RelatedAgentBody;
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAIL,KAAK,SAAS,EACd,KAAK,kBAAkB,EACvB,KAAK,KAAK,EACV,KAAK,cAAc,EACpB,MAAM,2CAA2C,CAAC;AAOnD,OAAO,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAGtF,eAAO,MAAM,YAAY,sCAAsC,CAAC;AAChE,eAAO,MAAM,cAAc,EAAG,iBAA0B,CAAC;AACzD,eAAO,MAAM,QAAQ,sCAAsC,CAAC;AAE5D,oEAAoE;AACpE,eAAO,MAAM,yBAAyB,gCAAgC,CAAC;AAEvE,oFAAoF;AACpF,MAAM,WAAW,gBAAiB,SAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAC/D,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAIL,KAAK,SAAS,EACd,KAAK,kBAAkB,EACvB,KAAK,KAAK,EACV,KAAK,cAAc,EACpB,MAAM,2CAA2C,CAAC;AAOnD,OAAO,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAGtF,eAAO,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IACvB,8DAA8D;IAC9D,SAAS,EAAE,KAAK,CAAC;CAClB;AAED,sFAAsF;AACtF,MAAM,WAAW,yBAAyB;IACxC,IAAI,EAAE,gBAAgB,EAAE,CAAC;CAC1B;AAED,4EAA4E;AAC5E,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,UAAU,CAAC;CACxB;AAED,yFAAyF;AACzF,MAAM,WAAW,2BAA2B;IAC1C,IAAI,EAAE,kBAAkB,EAAE,CAAC;CAC5B;AAED,YAAY,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -72,14 +72,93 @@ export function buildCustodyDescriptor(d) {
|
|
|
72
72
|
export function relatedAgentWriteContentHash(f) {
|
|
73
73
|
return keccak256(encodeAbiParameters([{ type: 'address' }, { type: 'bytes32' }, { type: 'bytes32' }, { type: 'bytes32' }], [f.orgAgent, keccak256(toBytes(f.orgName)), keccak256(toBytes(f.purpose)), keccak256(toBytes(f.requestedBy))]));
|
|
74
74
|
}
|
|
75
|
+
/**
|
|
76
|
+
* The v2 write challenge is RETIRED at this instant (spec 445 decision 8, COV-18): before it, a v2 challenge is
|
|
77
|
+
* still accepted while clients move to v3; from it on, v2 is refused with `challenge_v2_retired`. One fixed date,
|
|
78
|
+
* read against an INJECTED clock — never the ambient one.
|
|
79
|
+
*/
|
|
80
|
+
export const RELATED_AGENT_WRITE_CHALLENGE_V2_RETIRED_AT = '2026-12-10T00:00:00.000Z';
|
|
81
|
+
/** A write challenge version the server will not accept, by name. */
|
|
82
|
+
export class RelatedAgentWriteChallengeRefusal extends Error {
|
|
83
|
+
code;
|
|
84
|
+
constructor(code, message) {
|
|
85
|
+
super(message);
|
|
86
|
+
this.code = code;
|
|
87
|
+
this.name = 'RelatedAgentWriteChallengeRefusal';
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Is a write challenge of `version` accepted NOW? `v3` always; `v2` only before
|
|
92
|
+
* {@link RELATED_AGENT_WRITE_CHALLENGE_V2_RETIRED_AT}; anything else is unknown. A clock that does not read is
|
|
93
|
+
* refused (`clock_invalid`) — fail closed, never "assume it is still early". The home calls this before verifying
|
|
94
|
+
* a related-agent write signature.
|
|
95
|
+
*/
|
|
96
|
+
export function checkRelatedAgentWriteChallengeVersion(version, now) {
|
|
97
|
+
if (version === 'v3')
|
|
98
|
+
return { ok: true, version };
|
|
99
|
+
if (version !== 'v2')
|
|
100
|
+
return { ok: false, code: 'challenge_version_unknown', reason: `related-agent write challenge version ${String(version)} is not v2 or v3` };
|
|
101
|
+
let t;
|
|
102
|
+
try {
|
|
103
|
+
const v = now();
|
|
104
|
+
t = v instanceof Date ? v.getTime() : v;
|
|
105
|
+
}
|
|
106
|
+
catch {
|
|
107
|
+
t = Number.NaN;
|
|
108
|
+
}
|
|
109
|
+
if (typeof t !== 'number' || !Number.isFinite(t))
|
|
110
|
+
return { ok: false, code: 'clock_invalid', reason: 'the injected clock did not return a time' };
|
|
111
|
+
if (t >= Date.parse(RELATED_AGENT_WRITE_CHALLENGE_V2_RETIRED_AT)) {
|
|
112
|
+
return { ok: false, code: 'challenge_v2_retired', reason: `the v2 related-agent write challenge was retired at ${RELATED_AGENT_WRITE_CHALLENGE_V2_RETIRED_AT}; sign the v3 challenge (it binds the chain)` };
|
|
113
|
+
}
|
|
114
|
+
return { ok: true, version: 'v2' };
|
|
115
|
+
}
|
|
75
116
|
/** The digest a PERSON-SA custodian signs (ERC-1271) to authorize ONE related-agent write. Bound to the
|
|
76
|
-
* person, the agent, the content hash, a one-shot `nonce` (bytes32), and an `expiry` (unix seconds).
|
|
77
|
-
|
|
117
|
+
* person, the agent, the content hash, a one-shot `nonce` (bytes32), and an `expiry` (unix seconds).
|
|
118
|
+
*
|
|
119
|
+
* RETIRING (spec 445 decision 8): requires the injected clock `opts.now`, and from
|
|
120
|
+
* {@link RELATED_AGENT_WRITE_CHALLENGE_V2_RETIRED_AT} it THROWS `RelatedAgentWriteChallengeRefusal`
|
|
121
|
+
* (`challenge_v2_retired`) instead of returning a digest.
|
|
122
|
+
*
|
|
123
|
+
* @deprecated NO CHAIN ID (spec 445 / COV-18): a person SA deployed at one address on two chains signs a
|
|
124
|
+
* challenge that is valid at a home on either, within its expiry. Use {@link hashRelatedAgentWriteChallengeV3},
|
|
125
|
+
* which binds the chain. Kept only because client and server must move together — the wire is theirs. */
|
|
126
|
+
export function hashRelatedAgentWriteChallenge(a, opts) {
|
|
127
|
+
const gate = checkRelatedAgentWriteChallengeVersion('v2', opts?.now);
|
|
128
|
+
if (!gate.ok)
|
|
129
|
+
throw new RelatedAgentWriteChallengeRefusal(gate.code, gate.reason);
|
|
78
130
|
return keccak256(encodeAbiParameters([{ type: 'bytes32' }, { type: 'address' }, { type: 'address' }, { type: 'bytes32' }, { type: 'bytes32' }, { type: 'uint256' }], [keccak256(toBytes('related-agents:write:v2')), a.person, a.orgAgent, a.contentHash, a.nonce, BigInt(a.expiry)]));
|
|
79
131
|
}
|
|
132
|
+
/**
|
|
133
|
+
* The v3 write challenge (spec 445 / COV-18): everything v2 binds, PLUS the chain the home verifies on — so a
|
|
134
|
+
* signature made for one chain's home is not a signature for another's. A chain id is declared or it is an error:
|
|
135
|
+
* there is no default, and `0` is not a chain.
|
|
136
|
+
*/
|
|
137
|
+
export function hashRelatedAgentWriteChallengeV3(a) {
|
|
138
|
+
if (!Number.isSafeInteger(a.chainId) || a.chainId <= 0)
|
|
139
|
+
throw new Error('related-agent write challenge: chainId is declared — a positive integer');
|
|
140
|
+
if (!Number.isSafeInteger(a.expiry) || a.expiry <= 0)
|
|
141
|
+
throw new Error('related-agent write challenge: expiry is unix seconds — a positive integer');
|
|
142
|
+
if (!CD_BYTES32.test(a.contentHash))
|
|
143
|
+
throw new Error('related-agent write challenge: contentHash must be bytes32');
|
|
144
|
+
if (!CD_BYTES32.test(a.nonce) || /^0x0{64}$/.test(a.nonce))
|
|
145
|
+
throw new Error('related-agent write challenge: nonce must be a non-zero bytes32');
|
|
146
|
+
if (a.person.toLowerCase() === a.orgAgent.toLowerCase())
|
|
147
|
+
throw new Error('related-agent write challenge: the person and the related agent are the same agent');
|
|
148
|
+
return keccak256(encodeAbiParameters([{ type: 'bytes32' }, { type: 'uint256' }, { type: 'address' }, { type: 'address' }, { type: 'bytes32' }, { type: 'bytes32' }, { type: 'uint256' }], [keccak256(toBytes('related-agents:write:v3')), BigInt(a.chainId), a.person, a.orgAgent, a.contentHash, a.nonce, BigInt(a.expiry)]));
|
|
149
|
+
}
|
|
150
|
+
const CAIP10_EIP155 = /^eip155:[1-9][0-9]*:0x[0-9a-fA-F]{40}$/;
|
|
80
151
|
/** Build the unsigned, self-issued related-agent situation credential. The caller
|
|
81
152
|
* signs it with the holder's ROOT credential (issuer = holder = personSA). */
|
|
82
153
|
export function buildRelatedAgentCredential(args) {
|
|
154
|
+
// A link relates TWO agents (spec 445 / COV-19; agent-rules/demo-person-org-distinct): a holder that is its own
|
|
155
|
+
// related agent is a person standing in as their own organization. And the issuer names a chain or is refused.
|
|
156
|
+
if (!CD_ADDRESS.test(args.holder) || !CD_ADDRESS.test(args.relatedAgent))
|
|
157
|
+
throw new Error('related-agent credential: holder and relatedAgent must be 20-byte addresses');
|
|
158
|
+
if (args.holder.toLowerCase() === args.relatedAgent.toLowerCase())
|
|
159
|
+
throw new Error('related-agent credential: the holder and the related agent are the same agent');
|
|
160
|
+
if (!CAIP10_EIP155.test(args.issuerCaip10))
|
|
161
|
+
throw new Error('related-agent credential: issuer must be a CAIP-10 with a declared chain (eip155:<chainId>:<address>)');
|
|
83
162
|
const situation = buildSituation({
|
|
84
163
|
description: RELATED_AGENT_DESCRIPTION,
|
|
85
164
|
roles: {
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;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C,WAAW;YAC7B,UAAU,EAAE,IAAI,CAAC,UAAU,IAAI,SAAS;SACzC;KACF,CAAC,CAAC;IACH,OAAO;QACL,UAAU,EAAE,CAAC,aAAa,CAAC;QAC3B,IAAI,EAAE,CAAC,sBAAsB,EAAE,wBAAwB,CAAC;QACxD,MAAM,EAAE,IAAI,CAAC,YAAY;QACzB,SAAS,EAAE,IAAI,CAAC,SAAS;QACzB,UAAU,EAAE,IAAI,CAAC,UAAU;QAC3B,iBAAiB,EAAE,SAAS;KAC7B,CAAC;AACJ,CAAC;AAED,oFAAoF;AACpF,MAAM,UAAU,qBAAqB,CAAC,UAAkC;IACtE,OAAO,cAAc,CAAC,UAAU,CAAC,CAAC;AACpC,CAAC;AAeD;;mEAEmE;AACnE,MAAM,UAAU,uBAAuB,CAAC,IAAgC;IACtE,OAAO;QACL,WAAW,CAAC,IAAI,CAAC,SAAS,CAAC,SAAS,EAAE,oBAAoB,CAAC,IAAI,CAAC,UAAU,IAAI,CAAC,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;QAClG,WAAW,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,CAAC;QACvD,WAAW,CAAC,IAAI,CAAC,SAAS,CAAC,cAAc,EAAE,yBAAyB,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;KAC3F,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agenticprimitives/related-agents",
|
|
3
|
-
"version": "0.0.0-alpha.
|
|
3
|
+
"version": "0.0.0-alpha.43",
|
|
4
4
|
"description": "Private, holder-resident related-agent credentials (person↔org links as vault situation credentials, never on-chain edges — ADR-0025) + scoped-delegation read caveats + list-query shapes. Composes verifiable-credentials + delegation.",
|
|
5
5
|
"homepage": "https://agenticprimitives.dev",
|
|
6
6
|
"bugs": {
|
|
@@ -53,9 +53,9 @@
|
|
|
53
53
|
"agentic-trust"
|
|
54
54
|
],
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@agenticprimitives/delegation": "1.0.0-alpha.
|
|
57
|
-
"@agenticprimitives/types": "1.0.0-alpha.
|
|
58
|
-
"@agenticprimitives/verifiable-credentials": "0.0.0-alpha.
|
|
56
|
+
"@agenticprimitives/delegation": "1.0.0-alpha.47",
|
|
57
|
+
"@agenticprimitives/types": "1.0.0-alpha.47",
|
|
58
|
+
"@agenticprimitives/verifiable-credentials": "0.0.0-alpha.44"
|
|
59
59
|
},
|
|
60
60
|
"scripts": {
|
|
61
61
|
"build": "tsc -p tsconfig.build.json",
|