@vess-id/ai-identity 0.16.0 → 0.17.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.
- package/dist/index.d.mts +676 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +70 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +70 -7
- package/dist/index.mjs.map +1 -1
- package/dist/registry/__tests__/action-registry-freebusy.spec.d.ts +13 -0
- package/dist/registry/__tests__/action-registry-freebusy.spec.d.ts.map +1 -0
- package/dist/registry/__tests__/high-risk-resource-binding-invariant.spec.d.ts +30 -0
- package/dist/registry/__tests__/high-risk-resource-binding-invariant.spec.d.ts.map +1 -0
- package/dist/registry/action-registry-json.d.ts +555 -0
- package/dist/registry/action-registry-json.d.ts.map +1 -1
- package/dist/registry/action-risk.d.ts +17 -1
- package/dist/registry/action-risk.d.ts.map +1 -1
- package/dist/types/permission-vc.d.ts +103 -0
- package/dist/types/permission-vc.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tests for the calendar.freebusy action in ACTION_REGISTRY.
|
|
3
|
+
*
|
|
4
|
+
* calendar.freebusy is a read-only availability probe used to check whether a
|
|
5
|
+
* calendar is busy over a time window before proposing meeting slots. It never
|
|
6
|
+
* returns event details (only busy/free intervals), so it stays in the
|
|
7
|
+
* low-risk `calendar.read.basic` capability alongside calendar.event.list /
|
|
8
|
+
* calendar.event.read.
|
|
9
|
+
*
|
|
10
|
+
* Spec: docs/specs/2026-07-03-scheduling-wow-phase1-design.md §4.1
|
|
11
|
+
*/
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=action-registry-freebusy.spec.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action-registry-freebusy.spec.d.ts","sourceRoot":"","sources":["../../../src/registry/__tests__/action-registry-freebusy.spec.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Registry invariant — every HIGH-risk action must have a RESOLVABLE
|
|
3
|
+
* resource_id binding (#883 class-killer).
|
|
4
|
+
*
|
|
5
|
+
* Why this exists (2026-07-04): Gate-2 enforcement
|
|
6
|
+
* (`ToolExecutorService.validateVCResourceConstraint`, strict for high risk
|
|
7
|
+
* post-#886) fail-closes any high-risk invocation whose runtime resource
|
|
8
|
+
* cannot be canonicalized (`RESOURCE_UNRESOLVED`) — and issuance pins VC
|
|
9
|
+
* delegates through the SAME function (`canonicalResourceId`, INV-1). An
|
|
10
|
+
* action that is high-risk but has no resolvable binding is therefore
|
|
11
|
+
* IMPOSSIBLE to execute end-to-end: approval succeeds, the VC is pinned, and
|
|
12
|
+
* the invoke still dies at Gate-2. That failure mode shipped at least twice
|
|
13
|
+
* (#883 github write actions; g7.6/7.7/7.13 gmail.message.send unpinned
|
|
14
|
+
* permit-path issuance). This spec turns the class into a test failure at the
|
|
15
|
+
* moment the registry entry is added.
|
|
16
|
+
*
|
|
17
|
+
* Contract per high-risk action:
|
|
18
|
+
* (a) `canonicalResourceId(action, <schema-faithful params>)` resolves to a
|
|
19
|
+
* non-empty string — i.e. the binding exists AND its param(s) actually
|
|
20
|
+
* exist in the action's input_schema (a binding pointing at a param the
|
|
21
|
+
* schema doesn't carry can never resolve at runtime), OR
|
|
22
|
+
* (b) the action is on the explicit allowlist below, each entry justified.
|
|
23
|
+
*
|
|
24
|
+
* Adding a high-risk action? Give it `target_bindings.resource_id` bound to a
|
|
25
|
+
* param that exists in `input_schema.properties` (for CREATE actions: the
|
|
26
|
+
* container/parent that exists pre-execution — see the registry header
|
|
27
|
+
* comment), or consciously extend the allowlist with a justification.
|
|
28
|
+
*/
|
|
29
|
+
export {};
|
|
30
|
+
//# sourceMappingURL=high-risk-resource-binding-invariant.spec.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"high-risk-resource-binding-invariant.spec.d.ts","sourceRoot":"","sources":["../../../src/registry/__tests__/high-risk-resource-binding-invariant.spec.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG"}
|