@grc-claw/aims 0.8.0

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.
@@ -0,0 +1,8 @@
1
+ export interface ClauseMapping {
2
+ clause: string;
3
+ title: string;
4
+ implementationAnchor: string;
5
+ }
6
+ export declare const ISO_42001_CLAUSE_MAP: ClauseMapping[];
7
+ export declare function listClauseMap(): ClauseMapping[];
8
+ //# sourceMappingURL=clause-map.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clause-map.d.ts","sourceRoot":"","sources":["../src/clause-map.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,oBAAoB,EAAE,MAAM,CAAC;CAC9B;AAED,eAAO,MAAM,oBAAoB,EAAE,aAAa,EAQ/C,CAAC;AAEF,wBAAgB,aAAa,IAAI,aAAa,EAAE,CAE/C"}
@@ -0,0 +1,13 @@
1
+ export const ISO_42001_CLAUSE_MAP = [
2
+ { clause: '4', title: 'Context of the organization', implementationAnchor: 'AIMS scope doc, interested parties' },
3
+ { clause: '5', title: 'Leadership', implementationAnchor: 'AI policy, roles, management commitment' },
4
+ { clause: '6', title: 'Planning', implementationAnchor: 'AI risk register, objectives' },
5
+ { clause: '7', title: 'Support', implementationAnchor: 'Competence, awareness, documented information' },
6
+ { clause: '8', title: 'Operation', implementationAnchor: 'Gateway, exec policy, suppliers' },
7
+ { clause: '9', title: 'Performance evaluation', implementationAnchor: 'KPIs, audit, management review' },
8
+ { clause: '10', title: 'Improvement', implementationAnchor: 'Nonconformity, corrective action' },
9
+ ];
10
+ export function listClauseMap() {
11
+ return [...ISO_42001_CLAUSE_MAP];
12
+ }
13
+ //# sourceMappingURL=clause-map.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clause-map.js","sourceRoot":"","sources":["../src/clause-map.ts"],"names":[],"mappings":"AAMA,MAAM,CAAC,MAAM,oBAAoB,GAAoB;IACnD,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,6BAA6B,EAAE,oBAAoB,EAAE,oCAAoC,EAAE;IACjH,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,YAAY,EAAE,oBAAoB,EAAE,yCAAyC,EAAE;IACrG,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,UAAU,EAAE,oBAAoB,EAAE,8BAA8B,EAAE;IACxF,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,SAAS,EAAE,oBAAoB,EAAE,+CAA+C,EAAE;IACxG,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,WAAW,EAAE,oBAAoB,EAAE,iCAAiC,EAAE;IAC5F,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,wBAAwB,EAAE,oBAAoB,EAAE,gCAAgC,EAAE;IACxG,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,aAAa,EAAE,oBAAoB,EAAE,kCAAkC,EAAE;CACjG,CAAC;AAEF,MAAM,UAAU,aAAa;IAC3B,OAAO,CAAC,GAAG,oBAAoB,CAAC,CAAC;AACnC,CAAC"}
@@ -0,0 +1,11 @@
1
+ export { listVendorGaps, listVendorGapSummary, VENDOR_GAP_MATRIX, type VendorGapRow, type VendorId, } from './vendor-gaps.js';
2
+ export { listTechnicalControls, AIMS_TECHNICAL_CONTROLS, type AimsTechnicalControl } from './technical-controls.js';
3
+ export { listClauseMap, ISO_42001_CLAUSE_MAP, type ClauseMapping } from './clause-map.js';
4
+ export declare const AIMS_SCOPE_TEMPLATE: {
5
+ standard: string;
6
+ product: string;
7
+ productionSoc: string;
8
+ inScope: string[];
9
+ outOfScope: string[];
10
+ };
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,oBAAoB,EACpB,iBAAiB,EACjB,KAAK,YAAY,EACjB,KAAK,QAAQ,GACd,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,qBAAqB,EAAE,uBAAuB,EAAE,KAAK,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AACpH,OAAO,EAAE,aAAa,EAAE,oBAAoB,EAAE,KAAK,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAE1F,eAAO,MAAM,mBAAmB;;;;;;CAa/B,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,18 @@
1
+ export { listVendorGaps, listVendorGapSummary, VENDOR_GAP_MATRIX, } from './vendor-gaps.js';
2
+ export { listTechnicalControls, AIMS_TECHNICAL_CONTROLS } from './technical-controls.js';
3
+ export { listClauseMap, ISO_42001_CLAUSE_MAP } from './clause-map.js';
4
+ export const AIMS_SCOPE_TEMPLATE = {
5
+ standard: 'ISO/IEC 42001:2023',
6
+ product: 'GRC_Claw (OpenClaw for GRC)',
7
+ productionSoc: 'https://a2zsoc.com',
8
+ inScope: [
9
+ 'GRC_Claw gateway and agent-runtime',
10
+ 'Framework packs including ISO 42001 AIMS controls',
11
+ 'Customer deployments integrated with a2zsoc.com',
12
+ ],
13
+ outOfScope: [
14
+ 'Customer-owned LLM training data',
15
+ 'Third-party model weights (Anthropic, OpenAI, etc.) — documented as suppliers',
16
+ ],
17
+ };
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,oBAAoB,EACpB,iBAAiB,GAGlB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,qBAAqB,EAAE,uBAAuB,EAA6B,MAAM,yBAAyB,CAAC;AACpH,OAAO,EAAE,aAAa,EAAE,oBAAoB,EAAsB,MAAM,iBAAiB,CAAC;AAE1F,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,QAAQ,EAAE,oBAAoB;IAC9B,OAAO,EAAE,6BAA6B;IACtC,aAAa,EAAE,oBAAoB;IACnC,OAAO,EAAE;QACP,oCAAoC;QACpC,mDAAmD;QACnD,iDAAiD;KAClD;IACD,UAAU,EAAE;QACV,kCAAkC;QAClC,+EAA+E;KAChF;CACF,CAAC"}
@@ -0,0 +1,10 @@
1
+ export interface AimsTechnicalControl {
2
+ id: string;
3
+ objective: string;
4
+ clause: string;
5
+ grcClawComponent: string;
6
+ evidenceCommand?: string;
7
+ }
8
+ export declare const AIMS_TECHNICAL_CONTROLS: AimsTechnicalControl[];
9
+ export declare function listTechnicalControls(): AimsTechnicalControl[];
10
+ //# sourceMappingURL=technical-controls.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"technical-controls.d.ts","sourceRoot":"","sources":["../src/technical-controls.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,oBAAoB;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,gBAAgB,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,eAAO,MAAM,uBAAuB,EAAE,oBAAoB,EAwCzD,CAAC;AAEF,wBAAgB,qBAAqB,IAAI,oBAAoB,EAAE,CAE9D"}
@@ -0,0 +1,45 @@
1
+ export const AIMS_TECHNICAL_CONTROLS = [
2
+ {
3
+ id: 'TC-01',
4
+ objective: 'Human oversight of agent actions',
5
+ clause: '8 / A.14',
6
+ grcClawComponent: '@grc-claw/agent-runtime',
7
+ evidenceCommand: 'POST /api/agent/invoke (destructive without approval → 403)',
8
+ },
9
+ {
10
+ id: 'TC-02',
11
+ objective: 'Traceability of agent decisions',
12
+ clause: '9 / A.10',
13
+ grcClawComponent: 'AgentSession.getAuditLog()',
14
+ },
15
+ {
16
+ id: 'TC-03',
17
+ objective: 'Access control to control plane',
18
+ clause: '8 / A.12',
19
+ grcClawComponent: '@grc-claw/gateway',
20
+ evidenceCommand: 'WS connect + X-GRC-Claw-Token',
21
+ },
22
+ {
23
+ id: 'TC-04',
24
+ objective: 'Integrity of compliance evidence',
25
+ clause: '7 / A.6',
26
+ grcClawComponent: '@grc-claw/evidence',
27
+ },
28
+ {
29
+ id: 'TC-05',
30
+ objective: 'Monitoring AI-related security events',
31
+ clause: '9 / A.10',
32
+ grcClawComponent: '@grc-claw/ingest + a2zsoc.com',
33
+ evidenceCommand: 'POST /api/ingest/normalize',
34
+ },
35
+ {
36
+ id: 'TC-06',
37
+ objective: 'Supplier API key hygiene',
38
+ clause: '8 / A.9',
39
+ grcClawComponent: 'npm run doctor',
40
+ },
41
+ ];
42
+ export function listTechnicalControls() {
43
+ return [...AIMS_TECHNICAL_CONTROLS];
44
+ }
45
+ //# sourceMappingURL=technical-controls.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"technical-controls.js","sourceRoot":"","sources":["../src/technical-controls.ts"],"names":[],"mappings":"AAQA,MAAM,CAAC,MAAM,uBAAuB,GAA2B;IAC7D;QACE,EAAE,EAAE,OAAO;QACX,SAAS,EAAE,kCAAkC;QAC7C,MAAM,EAAE,UAAU;QAClB,gBAAgB,EAAE,yBAAyB;QAC3C,eAAe,EAAE,6DAA6D;KAC/E;IACD;QACE,EAAE,EAAE,OAAO;QACX,SAAS,EAAE,iCAAiC;QAC5C,MAAM,EAAE,UAAU;QAClB,gBAAgB,EAAE,4BAA4B;KAC/C;IACD;QACE,EAAE,EAAE,OAAO;QACX,SAAS,EAAE,iCAAiC;QAC5C,MAAM,EAAE,UAAU;QAClB,gBAAgB,EAAE,mBAAmB;QACrC,eAAe,EAAE,+BAA+B;KACjD;IACD;QACE,EAAE,EAAE,OAAO;QACX,SAAS,EAAE,kCAAkC;QAC7C,MAAM,EAAE,SAAS;QACjB,gBAAgB,EAAE,oBAAoB;KACvC;IACD;QACE,EAAE,EAAE,OAAO;QACX,SAAS,EAAE,uCAAuC;QAClD,MAAM,EAAE,UAAU;QAClB,gBAAgB,EAAE,+BAA+B;QACjD,eAAe,EAAE,4BAA4B;KAC9C;IACD;QACE,EAAE,EAAE,OAAO;QACX,SAAS,EAAE,0BAA0B;QACrC,MAAM,EAAE,SAAS;QACjB,gBAAgB,EAAE,gBAAgB;KACnC;CACF,CAAC;AAEF,MAAM,UAAU,qBAAqB;IACnC,OAAO,CAAC,GAAG,uBAAuB,CAAC,CAAC;AACtC,CAAC"}
@@ -0,0 +1,17 @@
1
+ export type VendorId = 'anthropic' | 'openai' | 'cursor' | 'openclaw';
2
+ export interface VendorGapRow {
3
+ vendor: VendorId;
4
+ area: string;
5
+ strength: string;
6
+ gapTheme: string;
7
+ mitigation: string;
8
+ grcClawControlIds?: string[];
9
+ }
10
+ export declare const VENDOR_GAP_MATRIX: VendorGapRow[];
11
+ export declare function listVendorGaps(vendor?: VendorId): VendorGapRow[];
12
+ export declare function listVendorGapSummary(): {
13
+ vendor: VendorId;
14
+ strength: string;
15
+ gapTheme: string;
16
+ }[];
17
+ //# sourceMappingURL=vendor-gaps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vendor-gaps.d.ts","sourceRoot":"","sources":["../src/vendor-gaps.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,QAAQ,GAAG,WAAW,GAAG,QAAQ,GAAG,QAAQ,GAAG,UAAU,CAAC;AAEtE,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,QAAQ,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;CAC9B;AAED,eAAO,MAAM,iBAAiB,EAAE,YAAY,EAiE3C,CAAC;AAEF,wBAAgB,cAAc,CAAC,MAAM,CAAC,EAAE,QAAQ,GAAG,YAAY,EAAE,CAGhE;AAED,wBAAgB,oBAAoB,IAAI;IAAE,MAAM,EAAE,QAAQ,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,EAAE,CAUjG"}
@@ -0,0 +1,83 @@
1
+ export const VENDOR_GAP_MATRIX = [
2
+ {
3
+ vendor: 'anthropic',
4
+ area: 'Safety research',
5
+ strength: 'RSP, model evaluations',
6
+ gapTheme: 'Customer-operated AIMS boundary unclear',
7
+ mitigation: 'Contractual scope + customer-side logging via gateway',
8
+ grcClawControlIds: ['aims-a.10.1', 'aims-a.12.1'],
9
+ },
10
+ {
11
+ vendor: 'anthropic',
12
+ area: 'API usage',
13
+ strength: 'Policies, rate limits',
14
+ gapTheme: 'Agent tool chains not visible to customer AIMS',
15
+ mitigation: 'Gateway mediates all tool calls',
16
+ grcClawControlIds: ['aims-a.12.2'],
17
+ },
18
+ {
19
+ vendor: 'openai',
20
+ area: 'Policies',
21
+ strength: 'Usage policies, preparedness',
22
+ gapTheme: 'Autonomous agent loops without per-action approval',
23
+ mitigation: 'Exec policy + max calls per turn',
24
+ grcClawControlIds: ['aims-a.12.3', 'aims-a.14.1'],
25
+ },
26
+ {
27
+ vendor: 'openai',
28
+ area: 'Tools',
29
+ strength: 'Function calling, assistants',
30
+ gapTheme: 'Destructive partner actions in composite apps',
31
+ mitigation: 'Tier destructive tools + idempotency',
32
+ grcClawControlIds: ['aims-a.12.3'],
33
+ },
34
+ {
35
+ vendor: 'cursor',
36
+ area: 'Product',
37
+ strength: 'IDE-integrated agents',
38
+ gapTheme: 'AIMS scope: local index vs cloud model routing',
39
+ mitigation: 'Document processing locations in SoA',
40
+ grcClawControlIds: ['aims-a.7.1', 'aims-a.13.1'],
41
+ },
42
+ {
43
+ vendor: 'cursor',
44
+ area: 'Extensibility',
45
+ strength: 'Skills, MCP, rules',
46
+ gapTheme: 'Supply chain: third-party MCP servers',
47
+ mitigation: 'Curated MCP registry + signing (customer policy)',
48
+ grcClawControlIds: ['aims-a.9.1'],
49
+ },
50
+ {
51
+ vendor: 'openclaw',
52
+ area: 'Architecture',
53
+ strength: 'Gateway daemon, pairing, skills',
54
+ gapTheme: 'Deployer accountable for operator AIMS',
55
+ mitigation: 'Hardening guide + npm run doctor',
56
+ grcClawControlIds: ['aims-a.12.1'],
57
+ },
58
+ {
59
+ vendor: 'openclaw',
60
+ area: 'Security',
61
+ strength: 'Public vulnerability research',
62
+ gapTheme: 'Default localhost-trust configurations',
63
+ mitigation: 'TLS, token auth, pairing for non-local',
64
+ grcClawControlIds: ['aims-a.12.1', 'aims-a.12.2'],
65
+ },
66
+ ];
67
+ export function listVendorGaps(vendor) {
68
+ if (!vendor)
69
+ return [...VENDOR_GAP_MATRIX];
70
+ return VENDOR_GAP_MATRIX.filter((r) => r.vendor === vendor);
71
+ }
72
+ export function listVendorGapSummary() {
73
+ const vendors = ['anthropic', 'openai', 'cursor', 'openclaw'];
74
+ return vendors.map((vendor) => {
75
+ const rows = listVendorGaps(vendor);
76
+ return {
77
+ vendor,
78
+ strength: rows.map((r) => r.area).join('; '),
79
+ gapTheme: rows[0]?.gapTheme ?? '',
80
+ };
81
+ });
82
+ }
83
+ //# sourceMappingURL=vendor-gaps.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vendor-gaps.js","sourceRoot":"","sources":["../src/vendor-gaps.ts"],"names":[],"mappings":"AAWA,MAAM,CAAC,MAAM,iBAAiB,GAAmB;IAC/C;QACE,MAAM,EAAE,WAAW;QACnB,IAAI,EAAE,iBAAiB;QACvB,QAAQ,EAAE,wBAAwB;QAClC,QAAQ,EAAE,yCAAyC;QACnD,UAAU,EAAE,uDAAuD;QACnE,iBAAiB,EAAE,CAAC,aAAa,EAAE,aAAa,CAAC;KAClD;IACD;QACE,MAAM,EAAE,WAAW;QACnB,IAAI,EAAE,WAAW;QACjB,QAAQ,EAAE,uBAAuB;QACjC,QAAQ,EAAE,gDAAgD;QAC1D,UAAU,EAAE,iCAAiC;QAC7C,iBAAiB,EAAE,CAAC,aAAa,CAAC;KACnC;IACD;QACE,MAAM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iBAAiB,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,KAAK,MAAM,CAAC,CAAC;AAC9D,CAAC;AAED,MAAM,UAAU,oBAAoB;IAClC,MAAM,OAAO,GAAe,CAAC,WAAW,EAAE,QAAQ,EAAE,QAAQ,EAAE,UAAU,CAAC,CAAC;IAC1E,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE;QAC5B,MAAM,IAAI,GAAG,cAAc,CAAC,MAAM,CAAC,CAAC;QACpC,OAAO;YACL,MAAM;YACN,QAAQ,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;YAC5C,QAAQ,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,QAAQ,IAAI,EAAE;SAClC,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"}
package/package.json ADDED
@@ -0,0 +1,32 @@
1
+ {
2
+ "name": "@grc-claw/aims",
3
+ "version": "0.8.0",
4
+ "description": "ISO/IEC 42001 AIMS \u2014 vendor gaps, clause map, technical controls for GRC_Claw",
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "main": "./dist/index.js",
8
+ "types": "./dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./dist/index.d.ts",
12
+ "import": "./dist/index.js"
13
+ }
14
+ },
15
+ "scripts": {
16
+ "build": "tsc -p tsconfig.json",
17
+ "test": "npm run build && tsc -p tsconfig.test.json && node --test dist-test/test/iso42001.test.js"
18
+ },
19
+ "dependencies": {
20
+ "@grc-claw/core": "*"
21
+ },
22
+ "files": [
23
+ "dist"
24
+ ],
25
+ "publishConfig": {
26
+ "access": "public"
27
+ },
28
+ "repository": {
29
+ "type": "git",
30
+ "url": "https://github.com/AAH20/GRC_Claw"
31
+ }
32
+ }