@openvtc/trust-tasks 0.27.9 → 0.28.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.
Files changed (61) hide show
  1. package/CHANGELOG.md +84 -0
  2. package/dist/_runtime/codes.d.ts +1 -1
  3. package/dist/_runtime/codes.d.ts.map +1 -1
  4. package/dist/_runtime/codes.js +3 -0
  5. package/dist/_runtime/codes.js.map +1 -1
  6. package/dist/_runtime/document.d.ts +1 -1
  7. package/dist/_runtime/document.js +1 -1
  8. package/dist/_shared/components.d.ts +39 -0
  9. package/dist/_shared/components.d.ts.map +1 -1
  10. package/dist/index.d.ts +7 -0
  11. package/dist/index.d.ts.map +1 -1
  12. package/dist/index.js +7 -0
  13. package/dist/index.js.map +1 -1
  14. package/dist/policy/_shared/0.4/policy.d.ts +16 -0
  15. package/dist/policy/_shared/0.4/policy.d.ts.map +1 -0
  16. package/dist/policy/_shared/0.4/policy.js +6 -0
  17. package/dist/policy/_shared/0.4/policy.js.map +1 -0
  18. package/dist/policy/evaluate/0.1/payload.d.ts +4 -4
  19. package/dist/policy/evaluate/0.1/payload.js +1 -1
  20. package/dist/policy/evaluate/0.2/payload.d.ts +4 -4
  21. package/dist/policy/evaluate/0.2/payload.js +1 -1
  22. package/dist/policy/evaluate/0.3/payload.d.ts +13 -2
  23. package/dist/policy/evaluate/0.3/payload.d.ts.map +1 -1
  24. package/dist/policy/evaluate/0.3/payload.js +1 -1
  25. package/dist/policy/evaluate/0.3/payload.js.map +1 -1
  26. package/dist/policy/evaluate/0.4/payload.d.ts +1416 -0
  27. package/dist/policy/evaluate/0.4/payload.d.ts.map +1 -0
  28. package/dist/policy/evaluate/0.4/payload.js +899 -0
  29. package/dist/policy/evaluate/0.4/payload.js.map +1 -0
  30. package/dist/trust-task-error/0.1/payload.d.ts +2 -2
  31. package/dist/trust-task-error/0.1/payload.js +1 -1
  32. package/dist/trust-task-error/0.2/payload.d.ts +2 -2
  33. package/dist/trust-task-error/0.2/payload.js +1 -1
  34. package/dist/trust-task-error/0.3/payload.d.ts +2 -2
  35. package/dist/trust-task-error/0.3/payload.js +1 -1
  36. package/dist/trust-task-error/0.4/payload.d.ts +2 -2
  37. package/dist/trust-task-error/0.4/payload.js +1 -1
  38. package/dist/trust-task-error/0.5/payload.d.ts +7 -1
  39. package/dist/trust-task-error/0.5/payload.d.ts.map +1 -1
  40. package/dist/trust-task-error/0.5/payload.js +1 -1
  41. package/dist/trust-task-error/0.5/payload.js.map +1 -1
  42. package/dist/trust-task-error/0.6/payload.d.ts +199 -0
  43. package/dist/trust-task-error/0.6/payload.d.ts.map +1 -0
  44. package/dist/trust-task-error/0.6/payload.js +126 -0
  45. package/dist/trust-task-error/0.6/payload.js.map +1 -0
  46. package/package.json +1 -1
  47. package/src/_runtime/codes.ts +3 -0
  48. package/src/_runtime/document.ts +1 -1
  49. package/src/_shared/components.ts +39 -0
  50. package/src/index.ts +7 -0
  51. package/src/policy/_shared/0.4/policy.ts +17 -0
  52. package/src/policy/evaluate/0.1/payload.ts +5 -5
  53. package/src/policy/evaluate/0.2/payload.ts +5 -5
  54. package/src/policy/evaluate/0.3/payload.ts +14 -3
  55. package/src/policy/evaluate/0.4/payload.ts +944 -0
  56. package/src/trust-task-error/0.1/payload.ts +3 -3
  57. package/src/trust-task-error/0.2/payload.ts +3 -3
  58. package/src/trust-task-error/0.3/payload.ts +3 -3
  59. package/src/trust-task-error/0.4/payload.ts +3 -3
  60. package/src/trust-task-error/0.5/payload.ts +8 -2
  61. package/src/trust-task-error/0.6/payload.ts +195 -0
package/CHANGELOG.md CHANGED
@@ -11,6 +11,90 @@ The package versions over **its own API** — what a consumer compiles against
11
11
  not over `SPEC.md`. Below 1.0 a breaking change bumps the leading non-zero
12
12
  component.
13
13
 
14
+ ## 0.28.0 — 2026-10-27
15
+
16
+
17
+ ### Added
18
+
19
+ - **ts, go**: Trust-task-error/0.6 and the unsupportedExtension and indeterminate standard codes (#961)
20
+
21
+ * feat(ts)!: trust-task-error/0.6 and the unsupportedExtension and indeterminate standard codes
22
+
23
+ Framework 0.7.0 added unsupportedExtension to the standard codes, and the
24
+ indeterminate ruling (SPEC §8.3) adds indeterminate: the recipient could
25
+ not decide because something it needed and does not control could not
26
+ be obtained or checked, which is neither a refusal nor a failed
27
+ verification. Both live in the closed code list of the trust-task-error
28
+ payload schema, so they need a new version.
29
+
30
+ - specs/trust-task-error/0.6: both codes appended to the enum, and
31
+ extends: "0.5", which the build checks. References to 0.5 across the
32
+ registry therefore stay current, and no other spec changes.
33
+ - All four libraries recognize both codes and emit 0.6:
34
+ trust_task_error_type_uri(), TRUST_TASK_ERROR_TYPE_URI,
35
+ TrustTaskErrorTypeURI and trustTaskErrorTypeUri move together.
36
+ Rust's StandardCode is hand-written (trust-task-error is in
37
+ SKIP_SLUGS) and gains UnsupportedExtension and Indeterminate, with
38
+ indeterminate retryable by default as §8.3 gives it.
39
+ - The HTTPS binding's status table maps unsupportedExtension to 422 and
40
+ indeterminate to 503, in the binding prose, trust-tasks-https and
41
+ trust_tasks_https. The Dart package spells the new codes out so it
42
+ still builds against a core that predates them.
43
+
44
+ Breaking for @openvtc/trust-tasks only: StandardCode is a closed union
45
+ there, so an exhaustive switch over it stops compiling. Rust's
46
+ StandardCode is #[non_exhaustive] and Go's and Dart's are open string
47
+ types, so the change is additive for them.
48
+
49
+ Part of trustoverip/dtgwg-trust-tasks-spec#42.
50
+
51
+ - **registry**: Declare carried protocols in front matter (#959)
52
+
53
+ SPEC §9.4 Carried Protocols and §7.3 item 23 add a carries front-matter
54
+ object naming the external protocol, version, defining reference and
55
+ operation a specification carries.
56
+
57
+ - spec.meta.schema.json accepts carries (all four members required).
58
+ - The build records it in registry.json and checks §9.4 rule 1 across
59
+ the tree: a slug carries one operation in every live version, and no
60
+ two slugs carry the same operation of the same protocol version.
61
+ - The spec page shows a Carries row linking the protocol.
62
+ - registry/authorization/0.2 and registry/recognition/0.2 declare that
63
+ they carry TRQP 2.0's authorization and recognition operations; their
64
+ TRQP field-name sections now say so and name the party mapping.
65
+ - CONTRIBUTING-SPECS gains "Carrying another protocol".
66
+ - SPEC.md is regenerated from canonical main (bdf2cdd), which this
67
+ needs for the §9.4 anchor.
68
+
69
+ Part of trustoverip/dtgwg-trust-tasks-spec#43.
70
+
71
+
72
+
73
+ ### Specifications
74
+
75
+ - **policy**: A consent decision carries its quorum and self-approval rule (#960)
76
+
77
+ policy/_shared/0.3 gave requireConsent.minApprovals a default of 1 and
78
+ requireConsent.excludeRequester a default of false. JSON Schema defaults
79
+ are annotations, but generators apply them, so a decision that omitted
80
+ either sent a quorum of one, or let the requester approve itself, with
81
+ nothing on the wire to show that nobody had chosen it. SPEC §6.6 rule 5
82
+ now forbids a governance default in a shared schema component.
83
+
84
+ - policy/_shared/0.4: both members required, defaults removed.
85
+ task-consent/request/0.1 already requires both, so the policy decision
86
+ and the consent request now agree.
87
+ - policy/evaluate/0.4: policy/evaluate/0.3 re-pinned to the new
88
+ component, which is its only change; the Security & Privacy section
89
+ gains the four sub-headings a new version must carry.
90
+ - policy/get/0.1 and policy/active/0.1 stay on 0.3: they use only
91
+ PolicyModule, which is unchanged.
92
+ - Stale references in task-consent prose moved to policy/evaluate/0.4.
93
+ - Rust, TypeScript, Go and Dart regenerated. 0.1 to 0.3 of
94
+ policy/evaluate are now marked superseded by 0.4.
95
+
96
+ Part of trustoverip/dtgwg-trust-tasks-spec#39.
97
+
14
98
  ## 0.27.9 — 2026-10-27
15
99
 
16
100
 
@@ -7,7 +7,7 @@
7
7
  * 0.1 peer.
8
8
  */
9
9
  /** The framework-defined standard error codes (SPEC.md §8.3). */
10
- export declare const STANDARD_CODES: readonly ["malformedRequest", "unsupportedType", "unsupportedVersion", "expired", "proofRequired", "proofInvalid", "permissionDenied", "wrongRecipient", "identityMismatch", "idConflict", "cancelled", "taskFailed", "unavailable", "internalError"];
10
+ export declare const STANDARD_CODES: readonly ["malformedRequest", "unsupportedType", "unsupportedVersion", "expired", "proofRequired", "proofInvalid", "permissionDenied", "wrongRecipient", "identityMismatch", "idConflict", "cancelled", "taskFailed", "unavailable", "internalError", "unsupportedExtension", "indeterminate"];
11
11
  /**
12
12
  * The framework-defined standard error codes, as a **closed** union.
13
13
  *
@@ -1 +1 @@
1
- {"version":3,"file":"codes.d.ts","sourceRoot":"","sources":["../../src/_runtime/codes.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,iEAAiE;AACjE,eAAO,MAAM,cAAc,uPAejB,CAAC;AAEX;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC;AAuB3D;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAGlD;AAED,gEAAgE;AAChE,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,IAAI,YAAY,CAEjE;AAaD;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CASnE;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAepF;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAEvD"}
1
+ {"version":3,"file":"codes.d.ts","sourceRoot":"","sources":["../../src/_runtime/codes.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,iEAAiE;AACjE,eAAO,MAAM,cAAc,gSAkBjB,CAAC;AAEX;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC;AAuB3D;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAGlD;AAED,gEAAgE;AAChE,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,IAAI,YAAY,CAEjE;AAaD;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CASnE;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAepF;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAEvD"}
@@ -23,6 +23,9 @@ export const STANDARD_CODES = [
23
23
  "taskFailed",
24
24
  "unavailable",
25
25
  "internalError",
26
+ // New in trust-task-error/0.6 (SPEC.md §4.5.2, §8.3).
27
+ "unsupportedExtension",
28
+ "indeterminate",
26
29
  ];
27
30
  /**
28
31
  * Framework 0.1 snake_case spellings, mapped to their 0.2 lowerCamelCase form.
@@ -1 +1 @@
1
- {"version":3,"file":"codes.js","sourceRoot":"","sources":["../../src/_runtime/codes.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAE7C,iEAAiE;AACjE,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,kBAAkB;IAClB,iBAAiB;IACjB,oBAAoB;IACpB,SAAS;IACT,eAAe;IACf,cAAc;IACd,kBAAkB;IAClB,gBAAgB;IAChB,kBAAkB;IAClB,YAAY;IACZ,WAAW;IACX,YAAY;IACZ,aAAa;IACb,eAAe;CACP,CAAC;AA0CX;;;GAGG;AACH,MAAM,eAAe,GAA2C;IAC9D,iBAAiB,EAAE,kBAAkB;IACrC,gBAAgB,EAAE,iBAAiB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ED;;;;;;;;;;GAUG;AACH,MAAM,UAAU,eAAe,CAAC,OAAe;IAC7C,OAAO,YAAY,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC;AACpC,CAAC"}
@@ -214,7 +214,7 @@ export interface RejectReason {
214
214
  * SHOULD accept it. (This comment said `0.3` while the value said `0.5`: the
215
215
  * value moved and the prose did not.)
216
216
  */
217
- export declare const TRUST_TASK_ERROR_TYPE_URI = "https://trusttasks.org/spec/trust-task-error/0.5";
217
+ export declare const TRUST_TASK_ERROR_TYPE_URI = "https://trusttasks.org/spec/trust-task-error/0.6";
218
218
  /**
219
219
  * SPEC §7.2 items 4 and 5a — expiry and wrong-recipient.
220
220
  *
@@ -26,7 +26,7 @@ import { normalizeCode } from "./codes.js";
26
26
  * SHOULD accept it. (This comment said `0.3` while the value said `0.5`: the
27
27
  * value moved and the prose did not.)
28
28
  */
29
- export const TRUST_TASK_ERROR_TYPE_URI = "https://trusttasks.org/spec/trust-task-error/0.5";
29
+ export const TRUST_TASK_ERROR_TYPE_URI = "https://trusttasks.org/spec/trust-task-error/0.6";
30
30
  /**
31
31
  * SPEC §7.2 items 4 and 5a — expiry and wrong-recipient.
32
32
  *
@@ -9558,6 +9558,45 @@ export interface PolicyDecision_PolicyV0_3 {
9558
9558
  */
9559
9559
  explanation?: string;
9560
9560
  }
9561
+ export interface PolicyDecision_PolicyV0_4 {
9562
+ decision: "allow" | "deny" | "requireStepUp" | "requireConsent";
9563
+ /**
9564
+ * Vault-flow-specific. When decision == "allow" for a proxy-login/release request, whether the maintainer should proxy-login or release-for-fill. Default: proxy. Ignored for other task kinds.
9565
+ */
9566
+ mode?: "proxy" | "fill";
9567
+ /**
9568
+ * When decision == "requireStepUp", which method to demand.
9569
+ */
9570
+ stepUp?: {
9571
+ method: "webauthnUv" | "pushApproval" | "totp";
9572
+ ttlSeconds?: number;
9573
+ };
9574
+ /**
9575
+ * When decision == "requireConsent", the approver constraint the enforcement point MUST satisfy — a signed consent decision from the named set, bound to the request's payloadDigest — before executing.
9576
+ */
9577
+ requireConsent?: {
9578
+ /**
9579
+ * Named set of enrolled approver devices permitted to approve this task (resolved by the enforcement point against its device registry).
9580
+ */
9581
+ approverSet: string;
9582
+ /**
9583
+ * REQUIRED, with no default: whether the requester may approve its own request is the community's choice, not this schema's (SPEC §6.6 rule 5). When true, the device that issued the request MUST NOT be accepted as the approver — forcing cross-device approval so a compromised requesting device cannot self-approve.
9584
+ */
9585
+ excludeRequester: boolean;
9586
+ /**
9587
+ * REQUIRED, with no default: the quorum is the community's choice, not this schema's (SPEC §6.6 rule 5), and an omitted quorum is malformedRequest rather than one. Number of distinct approvers from the set required before the task may execute.
9588
+ */
9589
+ minApprovals: number;
9590
+ };
9591
+ /**
9592
+ * When decision == "allow", maximum lifetime of any issued session blob / released secret.
9593
+ */
9594
+ ttlSecondsCap?: number;
9595
+ /**
9596
+ * Human-readable explanation for diagnostic display.
9597
+ */
9598
+ explanation?: string;
9599
+ }
9561
9600
  /**
9562
9601
  * The structured input fed to a policy evaluator on every vault/proxy-login, vault/release, and policy/evaluate call.
9563
9602
  */