@openvtc/trust-tasks 0.26.7 → 0.26.8

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/CHANGELOG.md CHANGED
@@ -11,6 +11,49 @@ 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.26.8 — 2026-10-15
15
+
16
+
17
+ ### Added
18
+
19
+ - **vta/witness**: The client carries the witness messages — vta/witness/{open,present,accept} replace vta/witness/request (#779)
20
+
21
+ vta/witness/request/0.1 (#777) had the VTA make both round trips to the
22
+ witness itself, as the principal's relationship DID. It cannot: a witness
23
+ checks that the transport-proven sender of each document is its issuer and
24
+ replies to that sender, and the relationship DID's one mediator connection
25
+ belongs to whoever holds the relationship, normally the client. So the
26
+ client carries the messages and the VTA builds, signs and verifies, in
27
+ three steps:
28
+
29
+ - vta/witness/open/0.1: checks key custody, the credentials and the member
30
+ link up front, opens a session record, and returns the witness/session
31
+ document signed as relationshipDid for the client to send.
32
+ - vta/witness/present/0.1: takes the witness's session #response verbatim,
33
+ checks it is the witness's for this session, builds the relationship
34
+ presentation (and the member presentation) bound to its challenge and
35
+ domain, and returns the signed witness/session/submit document.
36
+ - vta/witness/accept/0.1: takes the submit #response verbatim, verifies the
37
+ VWC as #777 did, stores it with its evidence, and answers as #777 did.
38
+
39
+ The record is keyed by the session id within the caller's contexts,
40
+ expires, holds no presentation or challenge, and moves opened -> presented
41
+ -> accepted. Every handed-back document is checked against it (type,
42
+ issuer = the witness, recipient = relationshipDid, threadId, the witness's
43
+ proof) before it is read, so nothing from another session can be spliced
44
+ in. Each step is safe to repeat: open's duplicate is inert, present's
45
+ duplicates are spent by the witness's single-use challenge, and accept
46
+ answers the same outcome again without storing twice.
47
+
48
+ Shared rules are in vta/_shared/0.5/CONVENTIONS.md and the shared shapes
49
+ (SessionId, CarriedDocument) in witness-party.schema.json. The
50
+ witnessRequest capability now covers the three tasks.
51
+
52
+ vta/witness/request/0.1 is published (release #778), so it is not edited:
53
+ it is retired in place, supersededBy vta/witness/open/0.1, with a status
54
+ note naming its successors, why it cannot be implemented, and that no
55
+ implementation shipped it.
56
+
14
57
  ## 0.26.7 — 2026-10-15
15
58
 
16
59
 
@@ -1081,6 +1081,10 @@ export type Sensitivity = "normal" | "high";
1081
1081
  * Which transport a task is acting on. This is the discriminator: it selects which member of `config` is meaningful, and a payload naming one kind with another's config is malformed rather than merely ignored.
1082
1082
  */
1083
1083
  export type ServiceKind = "didcomm" | "rest" | "tsp" | "webauthn";
1084
+ /**
1085
+ * The id of the witness/session document the VTA built in vta/witness/open: the session's name, the thread every document of the session is on, and the value the VWC carries as taskContext. The VTA keys its state for the session by it.
1086
+ */
1087
+ export type SessionId = string;
1084
1088
  /**
1085
1089
  * `EdDSA` pairs with an `ed25519` key; `ES256` pairs with a `p256` key; `ML-DSA-44` and `ML-DSA-65` pair with `mldsa44` and `mldsa65` keys respectively. An `x25519` key performs key agreement and can sign nothing, so no algorithm here is valid for one. These are JOSE algorithm identifiers, externally owned, so they are carried verbatim and never re-cased (SPEC.md §4.10 rule 5); the ML-DSA names are those RFC 9964 registers in the JOSE Web Signature and Encryption Algorithms registry, which is why their hyphenated casing differs from the `keyType` values beside them — those are specification-defined. The set is expected to grow as algorithms are registered. The enumeration remains closed: an unrecognised algorithm is refused rather than silently substituted with a supported one.
1086
1090
  */
@@ -4231,6 +4235,11 @@ export interface CapabilityScopeListed {
4231
4235
  export interface CapabilityScopeNone {
4232
4236
  scope: "none";
4233
4237
  }
4238
+ /**
4239
+ * A whole Trust Task document — `id`, `type`, `payload` and every other member, `proof` included — carried between the VTA and the witness by the client: one the VTA built and signed for the client to send, or one the witness returned for the client to hand back. Typed as an open object so every member survives a round trip: carried exactly as built or received, never re-serialised, because its proof is over itself. Its envelope is checked by the VTA against the session record (CONVENTIONS.md §3), not by this schema.
4240
+ */
4241
+ export interface CarriedDocument {
4242
+ }
4234
4243
  /**
4235
4244
  * The terms of a `chunkedTrustTask` transfer, committed before any chunk moves. On export the recipient states them in the descriptor; on import the producer pre-commits them in the request and the recipient echoes them. Either way the manifest arrives in a document whose proof is REQUIRED, so the per-chunk digests are authenticated by the party that computed them and each chunk can be verified — and a single bad chunk re-fetched or refused — on arrival rather than only after reassembly.
4236
4245
  *