@peac/adapter-runtime-governance 0.12.9
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 +190 -0
- package/README.md +69 -0
- package/dist/builders.d.ts +22 -0
- package/dist/builders.d.ts.map +1 -0
- package/dist/constants.d.ts +46 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/families.d.ts +16 -0
- package/dist/families.d.ts.map +1 -0
- package/dist/index.cjs +517 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +22 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.mjs +505 -0
- package/dist/index.mjs.map +1 -0
- package/dist/issue.d.ts +14 -0
- package/dist/issue.d.ts.map +1 -0
- package/dist/mappers/agt.d.ts +34 -0
- package/dist/mappers/agt.d.ts.map +1 -0
- package/dist/mappers/index.d.ts +2 -0
- package/dist/mappers/index.d.ts.map +1 -0
- package/dist/normalize.d.ts +29 -0
- package/dist/normalize.d.ts.map +1 -0
- package/dist/session-summary.d.ts +22 -0
- package/dist/session-summary.d.ts.map +1 -0
- package/dist/types.d.ts +136 -0
- package/dist/types.d.ts.map +1 -0
- package/package.json +71 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agt.d.ts","sourceRoot":"","sources":["../../src/mappers/agt.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,KAAK,EAAE,sBAAsB,EAA2B,MAAM,aAAa,CAAC;AAEnF,mDAAmD;AACnD,MAAM,WAAW,aAAa;IAC5B,sDAAsD;IACtD,MAAM,EAAE,MAAM,CAAC;IACf,sDAAsD;IACtD,KAAK,EAAE,MAAM,CAAC;IACd,kCAAkC;IAClC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC9B,wCAAwC;IACxC,MAAM,CAAC,EAAE;QACP,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,gBAAgB,CAAC,EAAE,MAAM,CAAC;KAC3B,CAAC;CACH;AAWD;;;GAGG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,aAAa,GAAG,sBAAsB,CA0BxE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/mappers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,KAAK,aAAa,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @peac/adapter-runtime-governance normalization and validation
|
|
3
|
+
*
|
|
4
|
+
* Fail-closed input validation for runtime governance payloads.
|
|
5
|
+
* Rejects malformed input with descriptive errors.
|
|
6
|
+
*
|
|
7
|
+
* These are adapter-level shape prechecks: string presence, max lengths,
|
|
8
|
+
* numeric bounds, RFC 3339 format, digest grammar (algorithm:hex), and
|
|
9
|
+
* URI scheme presence. Protocol-layer validation (@peac/protocol issue()
|
|
10
|
+
* and @peac/schema Wire02ClaimsSchema) remains authoritative for issuer
|
|
11
|
+
* canonicality, JOSE hardening, and wire-format compliance. Adapter
|
|
12
|
+
* validators catch obviously malformed input before it reaches the
|
|
13
|
+
* protocol layer.
|
|
14
|
+
*
|
|
15
|
+
* PEAC validates the structure of carried values, not upstream truth.
|
|
16
|
+
* Trust scores are structurally validated (finite, 0-1000 integer)
|
|
17
|
+
* but never derived, recomputed, ranked, or authoritatively assessed.
|
|
18
|
+
*/
|
|
19
|
+
import type { RuntimeGovernanceEvent } from './types.js';
|
|
20
|
+
export declare class NormalizationError extends Error {
|
|
21
|
+
readonly field: string;
|
|
22
|
+
constructor(message: string, field: string);
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Normalize and validate a raw runtime governance event input.
|
|
26
|
+
* Fail-closed: rejects malformed input with descriptive errors.
|
|
27
|
+
*/
|
|
28
|
+
export declare function normalizeRuntimeGovernanceEvent(input: unknown): RuntimeGovernanceEvent;
|
|
29
|
+
//# sourceMappingURL=normalize.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"normalize.d.ts","sourceRoot":"","sources":["../src/normalize.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAIH,OAAO,KAAK,EAIV,sBAAsB,EACvB,MAAM,YAAY,CAAC;AAEpB,qBAAa,kBAAmB,SAAQ,KAAK;aAGzB,KAAK,EAAE,MAAM;gBAD7B,OAAO,EAAE,MAAM,EACC,KAAK,EAAE,MAAM;CAKhC;AAiPD;;;GAGG;AACH,wBAAgB,+BAA+B,CAAC,KAAK,EAAE,OAAO,GAAG,sBAAsB,CAgCtF"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @peac/adapter-runtime-governance session summary builder
|
|
3
|
+
*
|
|
4
|
+
* Aggregates decoded receipts into a session summary.
|
|
5
|
+
* Decode-only (does NOT verify signatures; caller should verify first).
|
|
6
|
+
* Returns deterministic family order (sorted alphabetically).
|
|
7
|
+
* Counts unknown/unsupported type URIs separately.
|
|
8
|
+
* Never implies verification or finality.
|
|
9
|
+
*/
|
|
10
|
+
import { type SessionSummary } from './types.js';
|
|
11
|
+
/**
|
|
12
|
+
* Build a session summary from an array of signed JWS receipts.
|
|
13
|
+
*
|
|
14
|
+
* Decodes each JWS (does NOT verify signatures; caller should verify first).
|
|
15
|
+
* Extracts session ID, families, and issuer from claims and extensions.
|
|
16
|
+
* Unknown type URIs are counted but not included in the families list.
|
|
17
|
+
*
|
|
18
|
+
* @param receipts - Array of compact JWS strings (must be valid JWS format)
|
|
19
|
+
* @returns Session summary with deterministic family ordering
|
|
20
|
+
*/
|
|
21
|
+
export declare function buildSessionSummary(receipts: string[]): SessionSummary;
|
|
22
|
+
//# sourceMappingURL=session-summary.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"session-summary.d.ts","sourceRoot":"","sources":["../src/session-summary.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,OAAO,EAGL,KAAK,cAAc,EACpB,MAAM,YAAY,CAAC;AAKpB;;;;;;;;;GASG;AACH,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,cAAc,CA+CtE"}
|
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @peac/adapter-runtime-governance types
|
|
3
|
+
*
|
|
4
|
+
* Discriminated union payload model with per-family typing.
|
|
5
|
+
* No weak Record<string, unknown> blobs.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Runtime governance record families.
|
|
9
|
+
* String-literal union (not enum) for lighter output and tree-shaking.
|
|
10
|
+
*/
|
|
11
|
+
export declare const RUNTIME_GOVERNANCE_FAMILIES: readonly ["policy_decision", "audit_entry", "authority_scope", "lifecycle_event", "trust_observation", "compliance_observation"];
|
|
12
|
+
export type RuntimeGovernanceFamily = (typeof RUNTIME_GOVERNANCE_FAMILIES)[number];
|
|
13
|
+
/**
|
|
14
|
+
* Preserved upstream artifact context.
|
|
15
|
+
* All optional, all observational. Bounded fields, no arbitrary passthrough.
|
|
16
|
+
*/
|
|
17
|
+
export interface PreservedUpstreamArtifact {
|
|
18
|
+
/** Upstream system identifier (max 256 chars). */
|
|
19
|
+
source_system?: string;
|
|
20
|
+
/** Upstream event type identifier (max 256 chars). */
|
|
21
|
+
source_event_type?: string;
|
|
22
|
+
/** Upstream event identifier for deduplication (max 256 chars). */
|
|
23
|
+
source_event_id?: string;
|
|
24
|
+
/** Upstream event timestamp (RFC 3339, max 64 chars). */
|
|
25
|
+
source_timestamp?: string;
|
|
26
|
+
/** Hash of upstream artifact (max 512 chars). */
|
|
27
|
+
source_artifact_hash?: string;
|
|
28
|
+
/** URI or reference to upstream artifact (max 2048 chars). */
|
|
29
|
+
source_artifact_ref?: string;
|
|
30
|
+
/** CloudEvents type URI for cross-system correlation (max 256 chars). */
|
|
31
|
+
source_cloud_event_type?: string;
|
|
32
|
+
}
|
|
33
|
+
/** Policy decision payload. */
|
|
34
|
+
export interface PolicyDecisionPayload {
|
|
35
|
+
family: 'policy_decision';
|
|
36
|
+
action: string;
|
|
37
|
+
matched_rule?: string;
|
|
38
|
+
policy_name?: string;
|
|
39
|
+
reason?: string;
|
|
40
|
+
evaluation_ms?: number;
|
|
41
|
+
}
|
|
42
|
+
/** Audit entry payload. */
|
|
43
|
+
export interface AuditEntryPayload {
|
|
44
|
+
family: 'audit_entry';
|
|
45
|
+
entry_id?: string;
|
|
46
|
+
event_type?: string;
|
|
47
|
+
outcome?: string;
|
|
48
|
+
previous_hash?: string;
|
|
49
|
+
entry_hash?: string;
|
|
50
|
+
trace_id?: string;
|
|
51
|
+
}
|
|
52
|
+
/** Authority scope payload. */
|
|
53
|
+
export interface AuthorityScopePayload {
|
|
54
|
+
family: 'authority_scope';
|
|
55
|
+
decision?: string;
|
|
56
|
+
effective_scope?: string[];
|
|
57
|
+
trust_tier?: string;
|
|
58
|
+
matched_invariants?: string[];
|
|
59
|
+
}
|
|
60
|
+
/** Lifecycle event payload. */
|
|
61
|
+
export interface LifecycleEventPayload {
|
|
62
|
+
family: 'lifecycle_event';
|
|
63
|
+
lifecycle_event_type?: string;
|
|
64
|
+
previous_state?: string;
|
|
65
|
+
new_state?: string;
|
|
66
|
+
actor?: string;
|
|
67
|
+
}
|
|
68
|
+
/** Trust observation payload. */
|
|
69
|
+
export interface TrustObservationPayload {
|
|
70
|
+
family: 'trust_observation';
|
|
71
|
+
peer_id?: string;
|
|
72
|
+
action?: string;
|
|
73
|
+
success?: boolean;
|
|
74
|
+
trust_delta?: number;
|
|
75
|
+
trust_score?: number;
|
|
76
|
+
}
|
|
77
|
+
/** Compliance observation payload. */
|
|
78
|
+
export interface ComplianceObservationPayload {
|
|
79
|
+
family: 'compliance_observation';
|
|
80
|
+
framework?: string;
|
|
81
|
+
compliance_score?: number;
|
|
82
|
+
violation_count?: number;
|
|
83
|
+
evidence_item_count?: number;
|
|
84
|
+
}
|
|
85
|
+
/** Discriminated union of all family payloads. */
|
|
86
|
+
export type RuntimeGovernancePayload = PolicyDecisionPayload | AuditEntryPayload | AuthorityScopePayload | LifecycleEventPayload | TrustObservationPayload | ComplianceObservationPayload;
|
|
87
|
+
/**
|
|
88
|
+
* Normalized runtime governance event.
|
|
89
|
+
* Generic input to issueRuntimeGovernanceRecord().
|
|
90
|
+
*/
|
|
91
|
+
export interface RuntimeGovernanceEvent {
|
|
92
|
+
/** Specific event name (e.g., 'policy.evaluated'). */
|
|
93
|
+
event_name: string;
|
|
94
|
+
/** Typed, validated payload (discriminated by family). */
|
|
95
|
+
payload: RuntimeGovernancePayload;
|
|
96
|
+
/** Optional preserved upstream artifact context. */
|
|
97
|
+
upstream?: PreservedUpstreamArtifact;
|
|
98
|
+
}
|
|
99
|
+
/** Options for issuing a runtime governance record. */
|
|
100
|
+
export interface IssueOptions {
|
|
101
|
+
/** Ed25519 private key (32 bytes). Caller-provided; never stored. */
|
|
102
|
+
privateKey: Uint8Array;
|
|
103
|
+
/** Key ID (max 256 chars). */
|
|
104
|
+
kid: string;
|
|
105
|
+
/** Canonical issuer URL (HTTPS or DID). */
|
|
106
|
+
issuer: string;
|
|
107
|
+
/** Session identifier for event correlation. */
|
|
108
|
+
sessionId: string;
|
|
109
|
+
/** Agent identifier. */
|
|
110
|
+
agentId: string;
|
|
111
|
+
/** Provider name. Caller-supplied; never hardcoded. */
|
|
112
|
+
provider: string;
|
|
113
|
+
}
|
|
114
|
+
/** Result of issuing a runtime governance record. */
|
|
115
|
+
export interface IssueResult {
|
|
116
|
+
/** Compact JWS (signed Interaction Record). */
|
|
117
|
+
jws: string;
|
|
118
|
+
/** PEAC event type URI used. */
|
|
119
|
+
type: string;
|
|
120
|
+
/** Record family. */
|
|
121
|
+
family: RuntimeGovernanceFamily;
|
|
122
|
+
}
|
|
123
|
+
/** Session summary aggregated from decoded receipts. */
|
|
124
|
+
export interface SessionSummary {
|
|
125
|
+
/** Session identifier. */
|
|
126
|
+
sessionId: string;
|
|
127
|
+
/** Total receipts in the session. */
|
|
128
|
+
receipts: number;
|
|
129
|
+
/** Distinct families represented (sorted alphabetically). */
|
|
130
|
+
families: RuntimeGovernanceFamily[];
|
|
131
|
+
/** Count of receipts with unrecognized type URIs. */
|
|
132
|
+
unknownTypeCount: number;
|
|
133
|
+
/** Issuer (from the first receipt, or empty if no receipts). */
|
|
134
|
+
issuer: string;
|
|
135
|
+
}
|
|
136
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;;GAGG;AACH,eAAO,MAAM,2BAA2B,kIAO9B,CAAC;AAEX,MAAM,MAAM,uBAAuB,GAAG,CAAC,OAAO,2BAA2B,CAAC,CAAC,MAAM,CAAC,CAAC;AAEnF;;;GAGG;AACH,MAAM,WAAW,yBAAyB;IACxC,kDAAkD;IAClD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,sDAAsD;IACtD,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,mEAAmE;IACnE,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,yDAAyD;IACzD,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,iDAAiD;IACjD,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,8DAA8D;IAC9D,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,yEAAyE;IACzE,uBAAuB,CAAC,EAAE,MAAM,CAAC;CAClC;AAED,+BAA+B;AAC/B,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE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C,qDAAqD;IACrD,gBAAgB,EAAE,MAAM,CAAC;IACzB,gEAAgE;IAChE,MAAM,EAAE,MAAM,CAAC;CAChB"}
|
package/package.json
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@peac/adapter-runtime-governance",
|
|
3
|
+
"version": "0.12.9",
|
|
4
|
+
"description": "Runtime governance adapter for PEAC interaction records with AGT mapper",
|
|
5
|
+
"main": "dist/index.cjs",
|
|
6
|
+
"module": "dist/index.mjs",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"type": "module",
|
|
9
|
+
"sideEffects": false,
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
13
|
+
"import": "./dist/index.mjs",
|
|
14
|
+
"require": "./dist/index.cjs",
|
|
15
|
+
"default": "./dist/index.mjs"
|
|
16
|
+
},
|
|
17
|
+
"./package.json": "./package.json"
|
|
18
|
+
},
|
|
19
|
+
"repository": {
|
|
20
|
+
"type": "git",
|
|
21
|
+
"url": "git+https://github.com/peacprotocol/peac.git",
|
|
22
|
+
"directory": "packages/adapters/runtime-governance"
|
|
23
|
+
},
|
|
24
|
+
"author": "PEAC Protocol Contributors",
|
|
25
|
+
"license": "Apache-2.0",
|
|
26
|
+
"homepage": "https://peacprotocol.org",
|
|
27
|
+
"bugs": {
|
|
28
|
+
"url": "https://github.com/peacprotocol/peac/issues"
|
|
29
|
+
},
|
|
30
|
+
"files": [
|
|
31
|
+
"dist",
|
|
32
|
+
"README.md"
|
|
33
|
+
],
|
|
34
|
+
"publishConfig": {
|
|
35
|
+
"access": "public",
|
|
36
|
+
"provenance": true
|
|
37
|
+
},
|
|
38
|
+
"engines": {
|
|
39
|
+
"node": ">=22.0.0"
|
|
40
|
+
},
|
|
41
|
+
"dependencies": {
|
|
42
|
+
"@peac/protocol": "0.12.9",
|
|
43
|
+
"@peac/crypto": "0.12.9"
|
|
44
|
+
},
|
|
45
|
+
"devDependencies": {
|
|
46
|
+
"@types/node": "^22.0.0",
|
|
47
|
+
"tsup": "^8.0.0",
|
|
48
|
+
"typescript": "^5.3.3",
|
|
49
|
+
"vitest": "^4.0.0"
|
|
50
|
+
},
|
|
51
|
+
"keywords": [
|
|
52
|
+
"peac",
|
|
53
|
+
"peacprotocol",
|
|
54
|
+
"interaction-records",
|
|
55
|
+
"signed-records",
|
|
56
|
+
"runtime-governance",
|
|
57
|
+
"agent-records",
|
|
58
|
+
"agent-governance",
|
|
59
|
+
"mcp",
|
|
60
|
+
"a2a"
|
|
61
|
+
],
|
|
62
|
+
"scripts": {
|
|
63
|
+
"prebuild": "rm -rf dist",
|
|
64
|
+
"build": "pnpm run build:js && pnpm run build:types",
|
|
65
|
+
"build:js": "tsup",
|
|
66
|
+
"build:types": "rm -f dist/.tsbuildinfo && tsc && rm -f dist/.tsbuildinfo",
|
|
67
|
+
"test": "vitest run",
|
|
68
|
+
"test:watch": "vitest",
|
|
69
|
+
"clean": "rm -rf dist"
|
|
70
|
+
}
|
|
71
|
+
}
|