@agenticprimitives/fabric 0.0.0-alpha.3 → 0.0.0-alpha.31
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/CLAUDE.md +30 -29
- package/README.md +18 -16
- package/dist/adoption.d.ts +79 -0
- package/dist/adoption.d.ts.map +1 -0
- package/dist/adoption.js +95 -0
- package/dist/adoption.js.map +1 -0
- package/dist/case-emissions.d.ts +95 -0
- package/dist/case-emissions.d.ts.map +1 -0
- package/dist/case-emissions.js +208 -0
- package/dist/case-emissions.js.map +1 -0
- package/dist/case-machine.d.ts +28 -2
- package/dist/case-machine.d.ts.map +1 -1
- package/dist/case-machine.js +34 -7
- package/dist/case-machine.js.map +1 -1
- package/dist/cloudflare/authority-verdict-cache.d.ts +28 -1
- package/dist/cloudflare/authority-verdict-cache.d.ts.map +1 -1
- package/dist/cloudflare/authority-verdict-cache.js +32 -1
- package/dist/cloudflare/authority-verdict-cache.js.map +1 -1
- package/dist/cloudflare/index.d.ts +4 -1
- package/dist/cloudflare/index.d.ts.map +1 -1
- package/dist/cloudflare/index.js +7 -1
- package/dist/cloudflare/index.js.map +1 -1
- package/dist/cloudflare/interaction-store.d.ts +55 -0
- package/dist/cloudflare/interaction-store.d.ts.map +1 -0
- package/dist/cloudflare/interaction-store.js +230 -0
- package/dist/cloudflare/interaction-store.js.map +1 -0
- package/dist/cloudflare/principal-gateway-do.d.ts +136 -2
- package/dist/cloudflare/principal-gateway-do.d.ts.map +1 -1
- package/dist/cloudflare/principal-gateway-do.js +190 -8
- package/dist/cloudflare/principal-gateway-do.js.map +1 -1
- package/dist/cloudflare/sql-vault.d.ts.map +1 -1
- package/dist/cloudflare/sql-vault.js +56 -0
- package/dist/cloudflare/sql-vault.js.map +1 -1
- package/dist/cloudflare/vault-exchange-store.d.ts +47 -0
- package/dist/cloudflare/vault-exchange-store.d.ts.map +1 -0
- package/dist/cloudflare/vault-exchange-store.js +118 -0
- package/dist/cloudflare/vault-exchange-store.js.map +1 -0
- package/dist/cloudflare/vault-interaction-store.d.ts +44 -0
- package/dist/cloudflare/vault-interaction-store.d.ts.map +1 -0
- package/dist/cloudflare/vault-interaction-store.js +245 -0
- package/dist/cloudflare/vault-interaction-store.js.map +1 -0
- package/dist/communicative-act.d.ts +24 -1
- package/dist/communicative-act.d.ts.map +1 -1
- package/dist/communicative-act.js +28 -0
- package/dist/communicative-act.js.map +1 -1
- package/dist/delivery-envelope.d.ts.map +1 -1
- package/dist/delivery-envelope.js +0 -1
- package/dist/delivery-envelope.js.map +1 -1
- package/dist/email/index.d.ts +75 -0
- package/dist/email/index.d.ts.map +1 -0
- package/dist/email/index.js +77 -0
- package/dist/email/index.js.map +1 -0
- package/dist/enum-retirement.d.ts +43 -0
- package/dist/enum-retirement.d.ts.map +1 -0
- package/dist/enum-retirement.js +93 -0
- package/dist/enum-retirement.js.map +1 -0
- package/dist/exchange-record.d.ts +35 -4
- package/dist/exchange-record.d.ts.map +1 -1
- package/dist/exchange-record.js.map +1 -1
- package/dist/exchange-reducer.d.ts +32 -4
- package/dist/exchange-reducer.d.ts.map +1 -1
- package/dist/exchange-reducer.js +75 -1
- package/dist/exchange-reducer.js.map +1 -1
- package/dist/exchange-state.d.ts +30 -8
- package/dist/exchange-state.d.ts.map +1 -1
- package/dist/exchange-state.js +12 -10
- package/dist/exchange-state.js.map +1 -1
- package/dist/inbox-doc.d.ts +2 -2
- package/dist/inbox-doc.d.ts.map +1 -1
- package/dist/inbox-doc.js.map +1 -1
- package/dist/inbox-projection.d.ts +2 -2
- package/dist/inbox-projection.d.ts.map +1 -1
- package/dist/inbox-projection.js.map +1 -1
- package/dist/inbox-revision.d.ts +42 -0
- package/dist/inbox-revision.d.ts.map +1 -0
- package/dist/inbox-revision.js +57 -0
- package/dist/inbox-revision.js.map +1 -0
- package/dist/index.d.ts +26 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +40 -2
- package/dist/index.js.map +1 -1
- package/dist/interaction-machines.d.ts +136 -0
- package/dist/interaction-machines.d.ts.map +1 -0
- package/dist/interaction-machines.js +174 -0
- package/dist/interaction-machines.js.map +1 -0
- package/dist/interaction-profile.d.ts +136 -0
- package/dist/interaction-profile.d.ts.map +1 -0
- package/dist/interaction-profile.js +212 -0
- package/dist/interaction-profile.js.map +1 -0
- package/dist/interaction-record.d.ts +168 -0
- package/dist/interaction-record.d.ts.map +1 -0
- package/dist/interaction-record.js +108 -0
- package/dist/interaction-record.js.map +1 -0
- package/dist/interactions/grant-scopes.d.ts +21 -0
- package/dist/interactions/grant-scopes.d.ts.map +1 -0
- package/dist/interactions/grant-scopes.js +88 -0
- package/dist/interactions/grant-scopes.js.map +1 -0
- package/dist/interactions/index.d.ts +1 -0
- package/dist/interactions/index.d.ts.map +1 -1
- package/dist/interactions/index.js +3 -0
- package/dist/interactions/index.js.map +1 -1
- package/dist/interactions/machine.d.ts +2 -2
- package/dist/interactions/machine.d.ts.map +1 -1
- package/dist/interactions/machine.js +2 -2
- package/dist/interactions/machine.js.map +1 -1
- package/dist/interactions/open-case.d.ts +60 -0
- package/dist/interactions/open-case.d.ts.map +1 -0
- package/dist/interactions/open-case.js +83 -0
- package/dist/interactions/open-case.js.map +1 -0
- package/dist/interactions/store.d.ts +9 -0
- package/dist/interactions/store.d.ts.map +1 -1
- package/dist/interactions/store.js +57 -2
- package/dist/interactions/store.js.map +1 -1
- package/dist/messaging/board.d.ts +3 -3
- package/dist/messaging/board.d.ts.map +1 -1
- package/dist/messaging/board.js +2 -2
- package/dist/messaging/board.js.map +1 -1
- package/dist/messaging/consult-routing.d.ts +21 -14
- package/dist/messaging/consult-routing.d.ts.map +1 -1
- package/dist/messaging/consult-routing.js +34 -25
- package/dist/messaging/consult-routing.js.map +1 -1
- package/dist/messaging/consult.d.ts +4 -0
- package/dist/messaging/consult.d.ts.map +1 -1
- package/dist/messaging/consult.js +3 -1
- package/dist/messaging/consult.js.map +1 -1
- package/dist/messaging/conversation-interaction.d.ts +66 -0
- package/dist/messaging/conversation-interaction.d.ts.map +1 -0
- package/dist/messaging/conversation-interaction.js +139 -0
- package/dist/messaging/conversation-interaction.js.map +1 -0
- package/dist/messaging/conversation.d.ts +69 -1
- package/dist/messaging/conversation.d.ts.map +1 -1
- package/dist/messaging/conversation.js +131 -0
- package/dist/messaging/conversation.js.map +1 -1
- package/dist/messaging/delivery.d.ts +2 -2
- package/dist/messaging/delivery.d.ts.map +1 -1
- package/dist/messaging/delivery.js +8 -1
- package/dist/messaging/delivery.js.map +1 -1
- package/dist/messaging/envelope.d.ts +7 -3
- package/dist/messaging/envelope.d.ts.map +1 -1
- package/dist/messaging/envelope.js +18 -1
- package/dist/messaging/envelope.js.map +1 -1
- package/dist/messaging/hash.d.ts +8 -2
- package/dist/messaging/hash.d.ts.map +1 -1
- package/dist/messaging/hash.js +6 -0
- package/dist/messaging/hash.js.map +1 -1
- package/dist/messaging/inbox-assistant.d.ts +16 -4
- package/dist/messaging/inbox-assistant.d.ts.map +1 -1
- package/dist/messaging/inbox-assistant.js +27 -4
- package/dist/messaging/inbox-assistant.js.map +1 -1
- package/dist/messaging/index.d.ts +6 -2
- package/dist/messaging/index.d.ts.map +1 -1
- package/dist/messaging/index.js +10 -1
- package/dist/messaging/index.js.map +1 -1
- package/dist/messaging/outbound-message.d.ts +42 -0
- package/dist/messaging/outbound-message.d.ts.map +1 -0
- package/dist/messaging/outbound-message.js +64 -0
- package/dist/messaging/outbound-message.js.map +1 -0
- package/dist/messaging/projector.d.ts +3 -3
- package/dist/messaging/projector.d.ts.map +1 -1
- package/dist/messaging/projector.js.map +1 -1
- package/dist/messaging/receipts.d.ts +3 -3
- package/dist/messaging/receipts.d.ts.map +1 -1
- package/dist/messaging/receipts.js.map +1 -1
- package/dist/messaging/rules.d.ts +10 -3
- package/dist/messaging/rules.d.ts.map +1 -1
- package/dist/messaging/rules.js +8 -1
- package/dist/messaging/rules.js.map +1 -1
- package/dist/messaging/store.d.ts +4 -4
- package/dist/messaging/store.d.ts.map +1 -1
- package/dist/messaging/store.js +5 -3
- package/dist/messaging/store.js.map +1 -1
- package/dist/messaging/types.d.ts +30 -0
- package/dist/messaging/types.d.ts.map +1 -1
- package/dist/messaging/types.js +3 -0
- package/dist/messaging/types.js.map +1 -1
- package/dist/messaging/vault-store.d.ts +2 -2
- package/dist/messaging/vault-store.d.ts.map +1 -1
- package/dist/protocol-binding.d.ts +71 -0
- package/dist/protocol-binding.d.ts.map +1 -0
- package/dist/protocol-binding.js +0 -0
- package/dist/protocol-binding.js.map +1 -0
- package/dist/record-catalog.d.ts.map +1 -1
- package/dist/record-catalog.js +12 -0
- package/dist/record-catalog.js.map +1 -1
- package/package.json +28 -15
package/dist/exchange-reducer.js
CHANGED
|
@@ -13,8 +13,10 @@
|
|
|
13
13
|
//
|
|
14
14
|
// Fail-closed: an illegal case transition, an inconsistent transport move, or a seq gap is a typed rejection,
|
|
15
15
|
// never a silent state change. Idempotent: a replayed event (same `idempotencyKey`) is a no-op.
|
|
16
|
+
import { canonicalizeJson } from '@agenticprimitives/types';
|
|
16
17
|
import { canTaskTransition, expectedExecForCase, isExecCaseConsistent } from './exchange-state.js';
|
|
17
18
|
import { applyCaseTransition } from './case-machine.js';
|
|
19
|
+
import { sha256Hex32 } from './messaging/index.js';
|
|
18
20
|
/**
|
|
19
21
|
* Derive the transient case FSM view from a lean `ExchangeRecordV1` (option (a) — the record stays the lean
|
|
20
22
|
* spine; the case view is constructed only when applying a transition). Role convention: `requester` = the
|
|
@@ -42,6 +44,28 @@ export function caseViewFromRecord(record) {
|
|
|
42
44
|
* next slot (`record.events.length`). Returns the next record (`changed: true`), a no-op for an idempotent
|
|
43
45
|
* replay (`changed: false`), or a typed rejection.
|
|
44
46
|
*/
|
|
47
|
+
/**
|
|
48
|
+
* spec 340 W10b-3 — the decision substate this record projects, given the transition just applied.
|
|
49
|
+
*
|
|
50
|
+
* Mirrors `caseTransitionEmissions`' decision half deliberately narrowly: the reducer holds no
|
|
51
|
+
* `DecisionRecordV1` (no decider, no timestamps), only the state the `issue-credential` precondition
|
|
52
|
+
* needs. The authoritative record lives in the interaction store's decision machine.
|
|
53
|
+
*
|
|
54
|
+
* `undefined` in, `undefined` out for every non-deciding transition — this never invents a
|
|
55
|
+
* determination, and a transition that decides nothing leaves the projection exactly as it was.
|
|
56
|
+
*/
|
|
57
|
+
function nextDecisionState(current, transition) {
|
|
58
|
+
switch (transition) {
|
|
59
|
+
case 'approve':
|
|
60
|
+
return 'granted';
|
|
61
|
+
case 'deny':
|
|
62
|
+
return 'refused';
|
|
63
|
+
case 'expire':
|
|
64
|
+
return 'expired';
|
|
65
|
+
default:
|
|
66
|
+
return current;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
45
69
|
export function applyExchangeEvent(record, event) {
|
|
46
70
|
// Idempotent replay — a matching key already in the stream is a no-op (no second row).
|
|
47
71
|
if (event.idempotencyKey && record.events.some((e) => e.idempotencyKey === event.idempotencyKey)) {
|
|
@@ -77,7 +101,10 @@ export function applyExchangeEvent(record, event) {
|
|
|
77
101
|
messageId: event.messageId,
|
|
78
102
|
evidenceRef: event.evidenceRef,
|
|
79
103
|
authorityRef: event.authorityRef,
|
|
80
|
-
}
|
|
104
|
+
},
|
|
105
|
+
// W10b-3: supply the decision this record has projected so far, so `issue-credential` still
|
|
106
|
+
// cannot precede a grant now that the ordering is no longer an FSM edge.
|
|
107
|
+
{ decisionState: record.decision ?? null });
|
|
81
108
|
if (!res.ok)
|
|
82
109
|
return { ok: false, reason: `case:${res.reason}` };
|
|
83
110
|
const nextCase = res.case.state;
|
|
@@ -88,6 +115,7 @@ export function applyExchangeEvent(record, event) {
|
|
|
88
115
|
...appended,
|
|
89
116
|
case: nextCase,
|
|
90
117
|
exec: expectedExecForCase(nextCase), // projection — the case FSM is the authority
|
|
118
|
+
decision: nextDecisionState(record.decision, event.transition),
|
|
91
119
|
authorityRefs: res.case.authorityRefs,
|
|
92
120
|
},
|
|
93
121
|
};
|
|
@@ -105,4 +133,50 @@ export function applyExchangeEvent(record, event) {
|
|
|
105
133
|
}
|
|
106
134
|
}
|
|
107
135
|
}
|
|
136
|
+
// ─── Materialization provenance (spec 340 INV-340-8) ─────────────────────────
|
|
137
|
+
//
|
|
138
|
+
// "Materialized state rebuilds deterministically from signed events" is a claim, and a claim nobody can
|
|
139
|
+
// check is a hope. Two things make it checkable, and both must travel WITH the rebuilt state:
|
|
140
|
+
//
|
|
141
|
+
// eventSetDigest — WHICH events produced this. Without it, a state that silently dropped an event
|
|
142
|
+
// and a state that legitimately never received one are indistinguishable.
|
|
143
|
+
// reducerVersion — WHICH rules produced this. Two nodes on different reducer versions can fold the
|
|
144
|
+
// same events into different states and both be internally consistent; the
|
|
145
|
+
// disagreement then looks like data corruption instead of a version skew.
|
|
146
|
+
/** Bumped ONLY when a fold changes an output for inputs it already accepted. Adding a rejection reason
|
|
147
|
+
* is not a bump; changing what an accepted event does to the record is. */
|
|
148
|
+
export const EXCHANGE_REDUCER_VERSION = 'ap.exchange-reducer.v1';
|
|
149
|
+
/** Digest of the exact event sequence a materialization consumed. Order-sensitive on purpose: the same
|
|
150
|
+
* events in a different order are a different history, and folding them yields a different record. */
|
|
151
|
+
export async function eventSetDigest(events) {
|
|
152
|
+
return sha256Hex32(canonicalizeJson(events));
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* Rebuild an exchange from its event stream, and return the state WITH the evidence of how it was
|
|
156
|
+
* built.
|
|
157
|
+
*
|
|
158
|
+
* `seed` is the record as it existed before any event — the identity fields only. Its `events` are
|
|
159
|
+
* ignored and replaced by the fold, so replaying an already-materialized record cannot double-apply.
|
|
160
|
+
*
|
|
161
|
+
* Failure carries `atSeq` rather than just a reason: on a stream of two hundred events, "illegal
|
|
162
|
+
* transition" without the position is not a diagnosis.
|
|
163
|
+
*/
|
|
164
|
+
export async function replayExchange(seed, events) {
|
|
165
|
+
let record = { ...seed, events: [] };
|
|
166
|
+
for (const event of events) {
|
|
167
|
+
const res = applyExchangeEvent(record, event);
|
|
168
|
+
if (!res.ok)
|
|
169
|
+
return { ok: false, reason: res.reason, atSeq: event.seq };
|
|
170
|
+
record = res.record;
|
|
171
|
+
}
|
|
172
|
+
return {
|
|
173
|
+
ok: true,
|
|
174
|
+
record,
|
|
175
|
+
provenance: {
|
|
176
|
+
reducerVersion: EXCHANGE_REDUCER_VERSION,
|
|
177
|
+
eventSetDigest: await eventSetDigest(events),
|
|
178
|
+
eventCount: events.length,
|
|
179
|
+
},
|
|
180
|
+
};
|
|
181
|
+
}
|
|
108
182
|
//# sourceMappingURL=exchange-reducer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exchange-reducer.js","sourceRoot":"","sources":["../src/exchange-reducer.ts"],"names":[],"mappings":"AAAA,qGAAqG;AACrG,0GAA0G;AAC1G,6FAA6F;AAC7F,EAAE;AACF,2GAA2G;AAC3G,2GAA2G;AAC3G,6GAA6G;AAC7G,oEAAoE;AACpE,2GAA2G;AAC3G,wDAAwD;AACxD,6GAA6G;AAC7G,+GAA+G;AAC/G,EAAE;AACF,8GAA8G;AAC9G,gGAAgG;AAEhG,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AACnG,OAAO,EAAE,mBAAmB,
|
|
1
|
+
{"version":3,"file":"exchange-reducer.js","sourceRoot":"","sources":["../src/exchange-reducer.ts"],"names":[],"mappings":"AAAA,qGAAqG;AACrG,0GAA0G;AAC1G,6FAA6F;AAC7F,EAAE;AACF,2GAA2G;AAC3G,2GAA2G;AAC3G,6GAA6G;AAC7G,oEAAoE;AACpE,2GAA2G;AAC3G,wDAAwD;AACxD,6GAA6G;AAC7G,+GAA+G;AAC/G,EAAE;AACF,8GAA8G;AAC9G,gGAAgG;AAEhG,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AACnG,OAAO,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AC5C,UAAU,EAAE,MAAM,CAAC,MAAM;SAC1B;KACF,CAAC;AACJ,CAAC"}
|
package/dist/exchange-state.d.ts
CHANGED
|
@@ -4,20 +4,42 @@ export type ExecState = TaskState;
|
|
|
4
4
|
export { canTaskTransition };
|
|
5
5
|
/** All 8 transport `ExecState`s (mirrors `fulfillment` `TaskState`), for coverage assertions. */
|
|
6
6
|
export declare const EXEC_STATES: readonly ExecState[];
|
|
7
|
-
/**
|
|
8
|
-
*
|
|
9
|
-
|
|
7
|
+
/**
|
|
8
|
+
* The EXECUTION substate (spec 340 W10b-3), 8 states. Two earlier removals and one late one:
|
|
9
|
+
*
|
|
10
|
+
* - `delivered`/`seen` went in Blocker 6 — inbox read-receipt facts, not lifecycle transitions.
|
|
11
|
+
* - `approved`/`denied`/`expired`/`revoked` went in W10b-3. They were never execution. `approved`,
|
|
12
|
+
* `denied` and `expired` are DECISIONS and `revoked` is what happens to a COMMITMENT, so they now
|
|
13
|
+
* live in the machines that own them (spec 340 §R.2). One field was answering three questions with
|
|
14
|
+
* three different signers, which is why a case could be `denied` while a commitment stayed
|
|
15
|
+
* outstanding with nowhere to record it.
|
|
16
|
+
*
|
|
17
|
+
* `closed` replaces the terminal those four used to provide: the work was taken up and ended without
|
|
18
|
+
* issuance. It carries no verdict — the verdict is in the decision record. Deliberately not folded
|
|
19
|
+
* into `failed`: a denial is not a fault, and collapsing them would reclassify every refusal as an
|
|
20
|
+
* error (and would silently drop the `rejected` exec value, which nothing else produces).
|
|
21
|
+
*
|
|
22
|
+
* The TRANSITION VERBS did not change. `approve`/`deny`/`expire`/`revoke` are still transitions — they
|
|
23
|
+
* now emit into the decision and commitment machines and land the case on an execution state. That is
|
|
24
|
+
* what lets a stored v1 event log keep replaying with no migration (W10b-1).
|
|
25
|
+
*/
|
|
26
|
+
export type CaseState = 'draft' | 'submitted' | 'triaged' | 'needs-info' | 'issued' | 'completed' | 'closed' | 'failed';
|
|
10
27
|
export declare const CASE_STATES: readonly CaseState[];
|
|
11
28
|
/**
|
|
12
|
-
* EXEC_CASE_COUPLING (spec 316 §2) — the canonical `ExecState` each `CaseState` maps to. Exhaustive over
|
|
13
|
-
*
|
|
29
|
+
* EXEC_CASE_COUPLING (spec 316 §2) — the canonical `ExecState` each `CaseState` maps to. Exhaustive over
|
|
30
|
+
* all 8 `CaseState`. Rationale per row:
|
|
14
31
|
* - `draft`/`submitted` → `submitted` : case created, pre-triage/local — accepted, not yet worked.
|
|
15
|
-
* - `triaged
|
|
32
|
+
* - `triaged` → `working` : responder actively working the request.
|
|
16
33
|
* - `needs-info` → `input-required` : the ONLY case → `input-required` (blocked awaiting requester;
|
|
17
34
|
* A2A `input-required` = blocked on the SENDER, so `triaged` must NOT map here).
|
|
18
35
|
* - `issued`/`completed` → `completed`.
|
|
19
|
-
* - `
|
|
20
|
-
*
|
|
36
|
+
* - `closed` → `rejected` : taken up and ended without issuance — distinct from a failed
|
|
37
|
+
* task, which is the distinction `denied` used to carry. Keeping this row is
|
|
38
|
+
* what keeps `rejected` reachable at all; folding `closed` into `failed`
|
|
39
|
+
* would leave an `ExecState` no case produces.
|
|
40
|
+
* - `failed` → `failed` (canonical; `canceled` is the transport-set alternative).
|
|
41
|
+
*
|
|
42
|
+
* Still 6 case-derived exec values + the 2 transport-set ones = all 8 `ExecState`, unchanged by W10b-3.
|
|
21
43
|
*/
|
|
22
44
|
export declare const EXEC_CASE_COUPLING: Record<CaseState, ExecState>;
|
|
23
45
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exchange-state.d.ts","sourceRoot":"","sources":["../src/exchange-state.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,iBAAiB,EAAE,KAAK,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAEnF,yGAAyG;AACzG,MAAM,MAAM,SAAS,GAAG,SAAS,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAE,CAAC;AAE7B,iGAAiG;AACjG,eAAO,MAAM,WAAW,EAAE,SAAS,SAAS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@ export const EXEC_STATES = [
|
|
|
13
13
|
'submitted', 'working', 'completed', 'failed', 'canceled', 'input-required', 'rejected', 'auth-required',
|
|
14
14
|
];
|
|
15
15
|
export const CASE_STATES = [
|
|
16
|
-
'draft', 'submitted', 'triaged', 'needs-info', '
|
|
16
|
+
'draft', 'submitted', 'triaged', 'needs-info', 'issued', 'completed', 'closed', 'failed',
|
|
17
17
|
];
|
|
18
18
|
/**
|
|
19
|
-
* EXEC_CASE_COUPLING (spec 316 §2) — the canonical `ExecState` each `CaseState` maps to. Exhaustive over
|
|
20
|
-
*
|
|
19
|
+
* EXEC_CASE_COUPLING (spec 316 §2) — the canonical `ExecState` each `CaseState` maps to. Exhaustive over
|
|
20
|
+
* all 8 `CaseState`. Rationale per row:
|
|
21
21
|
* - `draft`/`submitted` → `submitted` : case created, pre-triage/local — accepted, not yet worked.
|
|
22
|
-
* - `triaged
|
|
22
|
+
* - `triaged` → `working` : responder actively working the request.
|
|
23
23
|
* - `needs-info` → `input-required` : the ONLY case → `input-required` (blocked awaiting requester;
|
|
24
24
|
* A2A `input-required` = blocked on the SENDER, so `triaged` must NOT map here).
|
|
25
25
|
* - `issued`/`completed` → `completed`.
|
|
26
|
-
* - `
|
|
27
|
-
*
|
|
26
|
+
* - `closed` → `rejected` : taken up and ended without issuance — distinct from a failed
|
|
27
|
+
* task, which is the distinction `denied` used to carry. Keeping this row is
|
|
28
|
+
* what keeps `rejected` reachable at all; folding `closed` into `failed`
|
|
29
|
+
* would leave an `ExecState` no case produces.
|
|
30
|
+
* - `failed` → `failed` (canonical; `canceled` is the transport-set alternative).
|
|
31
|
+
*
|
|
32
|
+
* Still 6 case-derived exec values + the 2 transport-set ones = all 8 `ExecState`, unchanged by W10b-3.
|
|
28
33
|
*/
|
|
29
34
|
export const EXEC_CASE_COUPLING = {
|
|
30
35
|
draft: 'submitted',
|
|
31
36
|
submitted: 'submitted',
|
|
32
37
|
triaged: 'working',
|
|
33
38
|
'needs-info': 'input-required',
|
|
34
|
-
approved: 'working',
|
|
35
39
|
issued: 'completed',
|
|
36
40
|
completed: 'completed',
|
|
37
|
-
|
|
38
|
-
expired: 'failed',
|
|
39
|
-
revoked: 'failed',
|
|
41
|
+
closed: 'rejected',
|
|
40
42
|
failed: 'failed',
|
|
41
43
|
};
|
|
42
44
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exchange-state.js","sourceRoot":"","sources":["../src/exchange-state.ts"],"names":[],"mappings":"AAAA,2GAA2G;AAC3G,2GAA2G;AAC3G,4GAA4G;AAC5G,4GAA4G;AAC5G,gHAAgH;AAChH,EAAE;AACF,2GAA2G;AAC3G,4GAA4G;AAE5G,OAAO,EAAE,iBAAiB,EAAkB,MAAM,gCAAgC,CAAC;AAInF,OAAO,EAAE,iBAAiB,EAAE,CAAC;AAE7B,iGAAiG;AACjG,MAAM,CAAC,MAAM,WAAW,GAAyB;IAC/C,WAAW,EAAE,SAAS,EAAE,WAAW,EAAE,QAAQ,EAAE,UAAU,EAAE,gBAAgB,EAAE,UAAU,EAAE,eAAe;CAChG,CAAC;
|
|
1
|
+
{"version":3,"file":"exchange-state.js","sourceRoot":"","sources":["../src/exchange-state.ts"],"names":[],"mappings":"AAAA,2GAA2G;AAC3G,2GAA2G;AAC3G,4GAA4G;AAC5G,4GAA4G;AAC5G,gHAAgH;AAChH,EAAE;AACF,2GAA2G;AAC3G,4GAA4G;AAE5G,OAAO,EAAE,iBAAiB,EAAkB,MAAM,gCAAgC,CAAC;AAInF,OAAO,EAAE,iBAAiB,EAAE,CAAC;AAE7B,iGAAiG;AACjG,MAAM,CAAC,MAAM,WAAW,GAAyB;IAC/C,WAAW,EAAE,SAAS,EAAE,WAAW,EAAE,QAAQ,EAAE,UAAU,EAAE,gBAAgB,EAAE,UAAU,EAAE,eAAe;CAChG,CAAC;AAyBX,MAAM,CAAC,MAAM,WAAW,GAAyB;IAC/C,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,YAAY,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE,QAAQ;CAChF,CAAC;AAEX;;;;;;;;;;;;;;;GAeG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAiC;IAC9D,KAAK,EAAE,WAAW;IAClB,SAAS,EAAE,WAAW;IACtB,OAAO,EAAE,SAAS;IAClB,YAAY,EAAE,gBAAgB;IAC9B,MAAM,EAAE,WAAW;IACnB,SAAS,EAAE,WAAW;IACtB,MAAM,EAAE,UAAU;IAClB,MAAM,EAAE,QAAQ;CACjB,CAAC;AAEF;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAyB,CAAC,eAAe,EAAE,UAAU,CAAU,CAAC;AAE/F,kHAAkH;AAClH,MAAM,UAAU,mBAAmB,CAAC,SAAgC;IAClE,IAAI,SAAS,KAAK,SAAS;QAAE,OAAO,WAAW,CAAC;IAChD,OAAO,kBAAkB,CAAC,SAAS,CAAC,CAAC;AACvC,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,oBAAoB,CAAC,IAAe,EAAE,SAAgC;IACpF,IAAI,kBAAkB,CAAC,QAAQ,CAAC,IAAI,CAAC;QAAE,OAAO,SAAS,KAAK,SAAS,CAAC;IACtE,OAAO,mBAAmB,CAAC,SAAS,CAAC,KAAK,IAAI,CAAC;AACjD,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,qBAAqB,CACnC,IAA2C,EAC3C,EAAyC;IAEzC,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC;QAAE,OAAO,KAAK,CAAC;IACzD,OAAO,oBAAoB,CAAC,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC;AAChD,CAAC"}
|
package/dist/inbox-doc.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { type ContextRefV1, type ConversationDescriptorV1, type InboxProjector, type
|
|
1
|
+
import { type ContextRefV1, type ConversationDescriptorV1, type InboxProjector, type AnyMessageEnvelope, type MessageEventV1 } from './messaging/index.js';
|
|
2
2
|
import { type ActionCardV1, type InteractionCaseV1, type InteractionMandateV1, type InteractionStore, type InteractionTransitionEventV1 } from './interactions/index.js';
|
|
3
3
|
export interface InboxDataV1 {
|
|
4
4
|
version: 1;
|
|
5
|
-
envelopes:
|
|
5
|
+
envelopes: AnyMessageEnvelope[];
|
|
6
6
|
events: MessageEventV1[];
|
|
7
7
|
/** Cases as they entered (draft) — current state is replayed from caseEvents. */
|
|
8
8
|
draftCases: InteractionCaseV1[];
|
package/dist/inbox-doc.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inbox-doc.d.ts","sourceRoot":"","sources":["../src/inbox-doc.ts"],"names":[],"mappings":"AAKA,OAAO,EAEL,KAAK,YAAY,EACjB,KAAK,wBAAwB,EAC7B,KAAK,cAAc,
|
|
1
|
+
{"version":3,"file":"inbox-doc.d.ts","sourceRoot":"","sources":["../src/inbox-doc.ts"],"names":[],"mappings":"AAKA,OAAO,EAEL,KAAK,YAAY,EACjB,KAAK,wBAAwB,EAC7B,KAAK,cAAc,EAEnB,KAAK,kBAAkB,EACvB,KAAK,cAAc,EACpB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAEL,KAAK,YAAY,EACjB,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,4BAA4B,EAClC,MAAM,yBAAyB,CAAC;AAEjC,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,CAAC,CAAC;IACX,SAAS,EAAE,kBAAkB,EAAE,CAAC;IAChC,MAAM,EAAE,cAAc,EAAE,CAAC;IACzB,iFAAiF;IACjF,UAAU,EAAE,iBAAiB,EAAE,CAAC;IAChC,UAAU,EAAE,4BAA4B,EAAE,CAAC;IAC3C,iFAAiF;IACjF,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;IACpC,oFAAoF;IACpF,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAC;IAChD,2EAA2E;IAC3E,aAAa,CAAC,EAAE,wBAAwB,EAAE,CAAC;CAE5C;AAED,wBAAgB,cAAc,IAAI,WAAW,CAE5C;AAED,yGAAyG;AACzG,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,WAAW,CAGvD;AAED,sFAAsF;AACtF,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,WAAW,GAAG;IAAE,SAAS,EAAE,cAAc,CAAC;IAAC,YAAY,EAAE,gBAAgB,CAAA;CAAE,CAYpI;AAED;;wEAEwE;AACxE,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,wBAAwB,EAAE,IAAI,EAAE,YAAY,EAAE,GAAG,SAAS,GAAG,OAAO,CAOhH;AAED;kGACkG;AAClG,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,WAAW,EAAE,UAAU,EAAE,wBAAwB,GAAG,IAAI,CAQ/F"}
|
package/dist/inbox-doc.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inbox-doc.js","sourceRoot":"","sources":["../src/inbox-doc.ts"],"names":[],"mappings":"AAAA,oGAAoG;AACpG,oGAAoG;AACpG,iGAAiG;AACjG,sGAAsG;AACtG,0DAA0D;AAC1D,OAAO,EACL,4BAA4B,
|
|
1
|
+
{"version":3,"file":"inbox-doc.js","sourceRoot":"","sources":["../src/inbox-doc.ts"],"names":[],"mappings":"AAAA,oGAAoG;AACpG,oGAAoG;AACpG,iGAAiG;AACjG,sGAAsG;AACtG,0DAA0D;AAC1D,OAAO,EACL,4BAA4B,GAO7B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,8BAA8B,GAM/B,MAAM,yBAAyB,CAAC;AAkBjC,MAAM,UAAU,cAAc;IAC5B,OAAO,EAAE,OAAO,EAAE,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE,MA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A `kind:'message'` fabric event — the inbox-relevant slice of the stream. */
|
|
4
4
|
export type InboxProjectionEvent = Extract<ExchangeEventV1, {
|
|
@@ -9,7 +9,7 @@ export type InboxProjectionEvent = Extract<ExchangeEventV1, {
|
|
|
9
9
|
* seeds the row from the envelope. Adapts the fabric event to messaging's `MessageEventV1` and delegates to
|
|
10
10
|
* the absorbed `applyMessageEvent` reducer, so folder/unread semantics stay identical across the absorption.
|
|
11
11
|
*/
|
|
12
|
-
export declare function projectInboxItem(prev: InboxItemV1 | undefined, envelope:
|
|
12
|
+
export declare function projectInboxItem(prev: InboxItemV1 | undefined, envelope: AnyMessageEnvelope, event: InboxProjectionEvent): InboxItemV1;
|
|
13
13
|
export { applyMessageEvent, applyInboxRules, createInMemoryInboxProjector } from './messaging/index.js';
|
|
14
14
|
export type { InboxItemV1, InboxRuleV1, InboxProjector, CreateInboxProjectorOpts, FolderKind, } from './messaging/index.js';
|
|
15
15
|
//# sourceMappingURL=inbox-projection.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inbox-projection.d.ts","sourceRoot":"","sources":["../src/inbox-projection.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"inbox-projection.d.ts","sourceRoot":"","sources":["../src/inbox-projection.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,kBAAkB,EAAE,WAAW,EAAkB,MAAM,sBAAsB,CAAC;AAC5F,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAE5D,gFAAgF;AAChF,MAAM,MAAM,oBAAoB,GAAG,OAAO,CAAC,eAAe,EAAE;IAAE,IAAI,EAAE,SAAS,CAAA;CAAE,CAAC,CAAC;AAEjF;;;;GAIG;AACH,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,WAAW,GAAG,SAAS,EAC7B,QAAQ,EAAE,kBAAkB,EAC5B,KAAK,EAAE,oBAAoB,GAC1B,WAAW,CAUb;AAGD,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,4BAA4B,EAAE,MAAM,sBAAsB,CAAC;AACxG,YAAY,EACV,WAAW,EACX,WAAW,EACX,cAAc,EACd,wBAAwB,EACxB,UAAU,GACX,MAAM,sBAAsB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inbox-projection.js","sourceRoot":"","sources":["../src/inbox-projection.ts"],"names":[],"mappings":"AAAA,2GAA2G;AAC3G,uGAAuG;AACvG,8GAA8G;AAC9G,4GAA4G;AAC5G,0GAA0G;AAC1G,EAAE;AACF,4GAA4G;AAC5G,yEAAyE;AAEzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAOzD;;;;GAIG;AACH,MAAM,UAAU,gBAAgB,CAC9B,IAA6B,EAC7B,
|
|
1
|
+
{"version":3,"file":"inbox-projection.js","sourceRoot":"","sources":["../src/inbox-projection.ts"],"names":[],"mappings":"AAAA,2GAA2G;AAC3G,uGAAuG;AACvG,8GAA8G;AAC9G,4GAA4G;AAC5G,0GAA0G;AAC1G,EAAE;AACF,4GAA4G;AAC5G,yEAAyE;AAEzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAOzD;;;;GAIG;AACH,MAAM,UAAU,gBAAgB,CAC9B,IAA6B,EAC7B,QAA4B,EAC5B,KAA2B;IAE3B,MAAM,YAAY,GAAmB;QACnC,OAAO,EAAE,qBAAqB;QAC9B,SAAS,EAAE,KAAK,CAAC,SAAS;QAC1B,KAAK,EAAE,KAAK,CAAC,KAAK;QAClB,SAAS,EAAE,KAAK,CAAC,SAAS;QAC1B,EAAE,EAAE,KAAK,CAAC,EAAE;QACZ,WAAW,EAAE,KAAK,CAAC,WAAW;KAC/B,CAAC;IACF,OAAO,iBAAiB,CAAC,IAAI,EAAE,QAAQ,EAAE,YAAY,CAAC,CAAC;AACzD,CAAC;AAED,qGAAqG;AACrG,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,4BAA4B,EAAE,MAAM,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { Hex32 } from './messaging/index.js';
|
|
2
|
+
import type { InboxDataV1 } from './inbox-doc.js';
|
|
3
|
+
/** An opaque cursor. Callers compare it for equality and MUST NOT parse or order it — see the header
|
|
4
|
+
* on why "newer?" is deliberately unanswerable. */
|
|
5
|
+
export type InboxRevision = Hex32;
|
|
6
|
+
/**
|
|
7
|
+
* The revision of an inbox document.
|
|
8
|
+
*
|
|
9
|
+
* Canonical JSON (sorted keys, `undefined` dropped) means two structurally identical documents produce
|
|
10
|
+
* the same digest regardless of key order — so a re-serialization round trip, or a different property
|
|
11
|
+
* insertion order between two writers, does not read as a change. That matters: a cursor that reported
|
|
12
|
+
* spurious changes would send the client back for a full replay it did not need, which is the cost this
|
|
13
|
+
* exists to remove.
|
|
14
|
+
*/
|
|
15
|
+
export declare function inboxRevision(doc: InboxDataV1): Promise<InboxRevision>;
|
|
16
|
+
/**
|
|
17
|
+
* Whether the caller's cursor still matches the document — the whole read-side contract.
|
|
18
|
+
*
|
|
19
|
+
* An absent cursor is NOT a match: a first-time caller has seen nothing, so it must receive the
|
|
20
|
+
* document. Treating "no cursor" as "unchanged" would return an empty answer to a client with an empty
|
|
21
|
+
* cache, and the two look identical from the client's side (ADR-0013 — empty is an answer, and here it
|
|
22
|
+
* would be the wrong one).
|
|
23
|
+
*/
|
|
24
|
+
export declare function inboxUnchanged(doc: InboxDataV1, callerRevision: string | null | undefined): Promise<boolean>;
|
|
25
|
+
/**
|
|
26
|
+
* The read result: either the document with its revision, or a bare "unchanged".
|
|
27
|
+
*
|
|
28
|
+
* A discriminated union rather than an optional `doc`, so a caller cannot read `result.doc` on an
|
|
29
|
+
* unchanged response and silently observe `undefined` as "empty inbox" — which is the shape of bug
|
|
30
|
+
* this cursor would otherwise introduce into every consumer.
|
|
31
|
+
*/
|
|
32
|
+
export type InboxReadResult = {
|
|
33
|
+
unchanged: true;
|
|
34
|
+
revision: InboxRevision;
|
|
35
|
+
} | {
|
|
36
|
+
unchanged: false;
|
|
37
|
+
revision: InboxRevision;
|
|
38
|
+
doc: InboxDataV1;
|
|
39
|
+
};
|
|
40
|
+
/** Build the read result for a caller presenting `callerRevision` (or none). */
|
|
41
|
+
export declare function readInboxWithCursor(doc: InboxDataV1, callerRevision: string | null | undefined): Promise<InboxReadResult>;
|
|
42
|
+
//# sourceMappingURL=inbox-revision.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inbox-revision.d.ts","sourceRoot":"","sources":["../src/inbox-revision.ts"],"names":[],"mappings":"AAyBA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAElD;oDACoD;AACpD,MAAM,MAAM,aAAa,GAAG,KAAK,CAAC;AAElC;;;;;;;;GAQG;AACH,wBAAsB,aAAa,CAAC,GAAG,EAAE,WAAW,GAAG,OAAO,CAAC,aAAa,CAAC,CAE5E;AAED;;;;;;;GAOG;AACH,wBAAsB,cAAc,CAClC,GAAG,EAAE,WAAW,EAChB,cAAc,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GACxC,OAAO,CAAC,OAAO,CAAC,CAGlB;AAED;;;;;;GAMG;AACH,MAAM,MAAM,eAAe,GACvB;IAAE,SAAS,EAAE,IAAI,CAAC;IAAC,QAAQ,EAAE,aAAa,CAAA;CAAE,GAC5C;IAAE,SAAS,EAAE,KAAK,CAAC;IAAC,QAAQ,EAAE,aAAa,CAAC;IAAC,GAAG,EAAE,WAAW,CAAA;CAAE,CAAC;AAEpE,gFAAgF;AAChF,wBAAsB,mBAAmB,CACvC,GAAG,EAAE,WAAW,EAChB,cAAc,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GACxC,OAAO,CAAC,eAAe,CAAC,CAI1B"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
// The inbox READ CURSOR (spec 341 §3.2 / Wave 2a).
|
|
2
|
+
//
|
|
3
|
+
// WHAT PROBLEM THIS SOLVES, precisely. Spec 341 moves the Home's inbox read off a shared-secret bridge
|
|
4
|
+
// and onto A2A. A poll that today is a cheap local-ish call becomes a signed round-trip, so a read that
|
|
5
|
+
// returns "nothing changed" has to become cheap or the migration is a latency regression wearing
|
|
6
|
+
// compliance's clothes (ADR-0059).
|
|
7
|
+
//
|
|
8
|
+
// WHY A DIGEST AND NOT A COUNTER. A monotonic counter needs somewhere to live and someone to increment
|
|
9
|
+
// it — new storage, and a second source of truth that can drift from the document it describes. A
|
|
10
|
+
// digest is derived: it changes if and only if the content changes, it needs no storage, and it cannot
|
|
11
|
+
// disagree with the thing it summarises. What a digest gives up is ORDER — it answers "different?" and
|
|
12
|
+
// never "newer?" — and that is exactly the ETag contract, which is all a poll requires.
|
|
13
|
+
//
|
|
14
|
+
// WHAT IT DOES NOT SAVE, stated so nobody expects more. The holder still reads and decrypts the
|
|
15
|
+
// document to compute the digest; the vault round-trip is unavoidable. What it saves is everything
|
|
16
|
+
// AFTER that: the JSON transfer, and — the expensive half — the client's `hydrateInboxStores` replay,
|
|
17
|
+
// which is O(events) on every single load. An unchanged answer lets a caller skip a full event-log
|
|
18
|
+
// replay it was otherwise doing several times a minute.
|
|
19
|
+
//
|
|
20
|
+
// NOT AUTHORITY, and not freshness. A matching revision says the bytes are the same; it says nothing
|
|
21
|
+
// about whether the caller may read them, and nothing about how recently anyone looked. Authorization
|
|
22
|
+
// is re-decided per call regardless (ADR-0041).
|
|
23
|
+
import { canonicalizeJson } from '@agenticprimitives/types';
|
|
24
|
+
import { sha256Hex32 } from './messaging/index.js';
|
|
25
|
+
/**
|
|
26
|
+
* The revision of an inbox document.
|
|
27
|
+
*
|
|
28
|
+
* Canonical JSON (sorted keys, `undefined` dropped) means two structurally identical documents produce
|
|
29
|
+
* the same digest regardless of key order — so a re-serialization round trip, or a different property
|
|
30
|
+
* insertion order between two writers, does not read as a change. That matters: a cursor that reported
|
|
31
|
+
* spurious changes would send the client back for a full replay it did not need, which is the cost this
|
|
32
|
+
* exists to remove.
|
|
33
|
+
*/
|
|
34
|
+
export async function inboxRevision(doc) {
|
|
35
|
+
return sha256Hex32(canonicalizeJson(doc));
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Whether the caller's cursor still matches the document — the whole read-side contract.
|
|
39
|
+
*
|
|
40
|
+
* An absent cursor is NOT a match: a first-time caller has seen nothing, so it must receive the
|
|
41
|
+
* document. Treating "no cursor" as "unchanged" would return an empty answer to a client with an empty
|
|
42
|
+
* cache, and the two look identical from the client's side (ADR-0013 — empty is an answer, and here it
|
|
43
|
+
* would be the wrong one).
|
|
44
|
+
*/
|
|
45
|
+
export async function inboxUnchanged(doc, callerRevision) {
|
|
46
|
+
if (!callerRevision)
|
|
47
|
+
return false;
|
|
48
|
+
return (await inboxRevision(doc)) === callerRevision;
|
|
49
|
+
}
|
|
50
|
+
/** Build the read result for a caller presenting `callerRevision` (or none). */
|
|
51
|
+
export async function readInboxWithCursor(doc, callerRevision) {
|
|
52
|
+
const revision = await inboxRevision(doc);
|
|
53
|
+
if (callerRevision && callerRevision === revision)
|
|
54
|
+
return { unchanged: true, revision };
|
|
55
|
+
return { unchanged: false, revision, doc };
|
|
56
|
+
}
|
|
57
|
+
//# sourceMappingURL=inbox-revision.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inbox-revision.js","sourceRoot":"","sources":["../src/inbox-revision.ts"],"names":[],"mappings":"AAAA,mDAAmD;AACnD,EAAE;AACF,uGAAuG;AACvG,wGAAwG;AACxG,iGAAiG;AACjG,mCAAmC;AACnC,EAAE;AACF,uGAAuG;AACvG,kGAAkG;AAClG,uGAAuG;AACvG,uGAAuG;AACvG,wFAAwF;AACxF,EAAE;AACF,gGAAgG;AAChG,mGAAmG;AACnG,sGAAsG;AACtG,mGAAmG;AACnG,wDAAwD;AACxD,EAAE;AACF,qGAAqG;AACrG,sGAAsG;AACtG,gDAAgD;AAEhD,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAQnD;;;;;;;;GAQG;AACH,MAAM,CAAC,KAAK,UAAU,aAAa,CAAC,GAAgB;IAClD,OAAO,WAAW,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC,CAAC;AAC5C,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,CAAC,KAAK,UAAU,cAAc,CAClC,GAAgB,EAChB,cAAyC;IAEzC,IAAI,CAAC,cAAc;QAAE,OAAO,KAAK,CAAC;IAClC,OAAO,CAAC,MAAM,aAAa,CAAC,GAAG,CAAC,CAAC,KAAK,cAAc,CAAC;AACvD,CAAC;AAaD,gFAAgF;AAChF,MAAM,CAAC,KAAK,UAAU,mBAAmB,CACvC,GAAgB,EAChB,cAAyC;IAEzC,MAAM,QAAQ,GAAG,MAAM,aAAa,CAAC,GAAG,CAAC,CAAC;IAC1C,IAAI,cAAc,IAAI,cAAc,KAAK,QAAQ;QAAE,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;IACxF,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC;AAC7C,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,13 +1,34 @@
|
|
|
1
1
|
export { canTaskTransition, canExchangeTransition, expectedExecForCase, isExecCaseConsistent, EXEC_CASE_COUPLING, TRANSPORT_SET_EXEC, EXEC_STATES, CASE_STATES, } from './exchange-state.js';
|
|
2
2
|
export type { ExecState, CaseState } from './exchange-state.js';
|
|
3
|
+
export { isEnvelopeV2 } from './messaging/types.js';
|
|
4
|
+
export type { AnyMessageEnvelope, MessageEnvelopeV1, MessageEnvelopeV2 } from './messaging/types.js';
|
|
3
5
|
export { hashExchangeEnvelope, hashIntentEnvelope, actorOf } from './exchange-record.js';
|
|
4
6
|
export type { ExchangeId, ExchangeEnvelopeV1, IntentEnvelopeV1, ExchangeRecordV1, ExchangeEventV1, ArtifactRef, } from './exchange-record.js';
|
|
5
|
-
export { performativeForKind } from './communicative-act.js';
|
|
7
|
+
export { performativeForKind, performativeOf, isOriginalMessage } from './communicative-act.js';
|
|
6
8
|
export type { Performative, CommunicativeActV1, SemanticContentRef, EvidenceRef, } from './communicative-act.js';
|
|
7
|
-
export { applyCaseTransition, isTerminalCaseState, TERMINAL_CASE_STATES, } from './case-machine.js';
|
|
8
|
-
export type { FabricCaseV1, CaseFsmFields, CaseTransition, CaseTransitionEventV1, CaseResult, CaseRejection, } from './case-machine.js';
|
|
9
|
+
export { applyCaseTransition, isTerminalCaseState, TERMINAL_CASE_STATES, requiresGrantedDecision, TRANSITIONS_REQUIRING_GRANTED_DECISION, } from './case-machine.js';
|
|
10
|
+
export type { FabricCaseV1, CaseFsmFields, CaseTransition, CaseTransitionEventV1, CaseResult, CaseRejection, CaseTransitionContext, } from './case-machine.js';
|
|
11
|
+
export { caseTransitionEmissions, applyCaseEmissions, seedDecision, seedCommitment, decisionIdForCase, commitmentIdForCase, EMITTING_CASE_TRANSITIONS, } from './case-emissions.js';
|
|
12
|
+
export type { CaseEmissionsV1, CaseEmissionApplyResult, EmissionOutcome, DecisionSeedV1, CommitmentSeedV1, } from './case-emissions.js';
|
|
9
13
|
export { applyExchangeEvent, caseViewFromRecord } from './exchange-reducer.js';
|
|
14
|
+
export { openCase, derivedCaseId, type OpenCaseInput, type OpenCaseResult } from './interactions/open-case.js';
|
|
10
15
|
export type { ExchangeApplyResult } from './exchange-reducer.js';
|
|
16
|
+
export { EXCHANGE_REDUCER_VERSION, eventSetDigest, replayExchange } from './exchange-reducer.js';
|
|
17
|
+
export type { MaterializationProvenanceV1, ExchangeReplayResult } from './exchange-reducer.js';
|
|
18
|
+
export { PROTOCOL, looksCanonical, bindProtocol, bindingKey, buildBindingIndex, resolveInteractionByBinding, topicInteractionId, channelIdFromTopicInteraction, } from './protocol-binding.js';
|
|
19
|
+
export type { ProtocolBindingV1, BindingRejection, BindingIndex, BindingResolution } from './protocol-binding.js';
|
|
20
|
+
export { PROFILE_FOR_MESSAGE_KIND, MACHINE_FOR_CASE_STATE, machinesSpannedByCaseState } from './enum-retirement.js';
|
|
21
|
+
export type { OwningMachine } from './enum-retirement.js';
|
|
22
|
+
export { checkExchangeAgainstProfile, profileFor, PROFILE_LIBRARY, DIRECT_PROFILE, NEGOTIATION_PROFILE, CONSULTATION_PROFILE, DISPUTE_PROFILE, ENGAGEMENT_PROFILE, TOPIC_PROFILE, ENGAGEMENT_RESPONSE_KIND_AXES, } from './interaction-profile.js';
|
|
23
|
+
export type { InteractionProfileV1, ProfileViolation, ExchangeUnderProfile, } from './interaction-profile.js';
|
|
24
|
+
export { applyInboxTransition, applyInteractionTransition, applyDecisionTransition, applyCommitmentTransition, mayDischargeOnExecution, TERMINAL_INTERACTION_STATES, TERMINAL_DECISION_STATES, TERMINAL_COMMITMENT_STATES, } from './interaction-machines.js';
|
|
25
|
+
export type { MachineRejection, MachineResult, InboxState, InboxTransition, InboxEntryV1, InteractionState, InteractionTransition, InteractionLifecycleV1, DecisionState, DecisionTransition, DecisionRecordV1, CommitmentState, CommitmentTransition, CommitmentRecordV1, } from './interaction-machines.js';
|
|
26
|
+
export { isProfileVersion, isFloatingVersion, checkReproducible, assertReproducible, hashContextSnapshot, buildContextSnapshot, verifyContextSnapshot, participantsAt, detectProfileDowngrades, } from './interaction-record.js';
|
|
27
|
+
export type { InteractionId, InteractionRecordV1, ProfileVersion, ParticipationV1, ContextDigest, ContextReferenceV1, ContextSnapshotV1, ContextReproducibilityFailure, ProfileDowngrade, } from './interaction-record.js';
|
|
28
|
+
export { inboxRevision, inboxUnchanged, readInboxWithCursor } from './inbox-revision.js';
|
|
29
|
+
export type { InboxRevision, InboxReadResult } from './inbox-revision.js';
|
|
30
|
+
export { conversationInteractionId, conversationIdFromInteraction, participationModeOfConversation, profileVersionOfConversation, participationsOfConversation, conversationPins, interactionViewOfConversation, participationModeOfChannel, interactionViewOfChannel, } from './messaging/conversation-interaction.js';
|
|
31
|
+
export type { ConversationExchangePins, ConversationInteractionView } from './messaging/conversation-interaction.js';
|
|
11
32
|
export { projectInboxItem, applyMessageEvent, applyInboxRules, createInMemoryInboxProjector, } from './inbox-projection.js';
|
|
12
33
|
export type { InboxProjectionEvent, InboxItemV1, InboxRuleV1, InboxProjector, CreateInboxProjectorOpts, FolderKind, } from './inbox-projection.js';
|
|
13
34
|
export { buildGatewaySurfaceCommitment, hashGatewaySurfaceCommitment, verifyGatewaySurfaceCommitment, } from './gateway-surface.js';
|
|
@@ -16,4 +37,6 @@ export { buildDeliveryEnvelope, admitDeliveryEnvelope, deliveryToExchangeRecord,
|
|
|
16
37
|
export type { DeliveryEnvelopeV1, DeliveryAdmission } from './delivery-envelope.js';
|
|
17
38
|
export { emptyInboxData, parseInboxData, hydrateInboxStores, mergeContextRefs, upsertConversation, type InboxDataV1, } from './inbox-doc.js';
|
|
18
39
|
export { RECORD_CATALOG, catalogEntryFor, type RecordCatalogEntry } from './record-catalog.js';
|
|
40
|
+
export { adoptionStage, compareServed, classifyDivergence, shouldShadow, recordDivergence, SHADOW_INTERVAL_MS, DIVERGENCE_BUFFER } from './adoption.js';
|
|
41
|
+
export type { AdoptionConcern, AdoptionStage, AdoptionEntry, AdoptionLedger, Divergence } from './adoption.js';
|
|
19
42
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AASA,OAAO,EACL,iBAAiB,EACjB,qBAAqB,EACrB,mBAAmB,EACnB,oBAAoB,EACpB,kBAAkB,EAClB,kBAAkB,EAClB,WAAW,EACX,WAAW,GACZ,MAAM,qBAAqB,CAAC;AAC7B,YAAY,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM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qBAAqB,EACrB,qBAAqB,EACrB,wBAAwB,GACzB,MAAM,wBAAwB,CAAC;AAChC,YAAY,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAIpF,OAAO,EACL,cAAc,EACd,cAAc,EACd,kBAAkB,EAClB,gBAAgB,EAChB,kBAAkB,EAClB,KAAK,WAAW,GACjB,MAAM,gBAAgB,CAAC;AAIxB,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,KAAK,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAI/F,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,kBAAkB,EAAE,YAAY,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AACxJ,YAAY,EAAE,eAAe,EAAE,aAAa,EAAE,aAAa,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -7,14 +7,49 @@
|
|
|
7
7
|
// Wave 1 (this slice): the two-level exec/case state machine spine. Envelope + inbox reducers + case
|
|
8
8
|
// payloads are absorbed from messaging/interactions in the subsequent Wave-1 steps.
|
|
9
9
|
export { canTaskTransition, canExchangeTransition, expectedExecForCase, isExecCaseConsistent, EXEC_CASE_COUPLING, TRANSPORT_SET_EXEC, EXEC_STATES, CASE_STATES, } from './exchange-state.js';
|
|
10
|
+
// spec 340 — the ap.message.v2 wire version and its dual-read seam. V1 is untouched and still
|
|
11
|
+
// verifies; V2 drops `kind` and carries `performative` natively. Readers take `AnyMessageEnvelope`.
|
|
12
|
+
export { isEnvelopeV2 } from './messaging/types.js';
|
|
10
13
|
// The canonical exchange object (spec 316 §b) — absorbs the messaging envelope + composes the two-level FSM.
|
|
11
14
|
export { hashExchangeEnvelope, hashIntentEnvelope, actorOf } from './exchange-record.js';
|
|
12
15
|
// Fabric semantic acts (spec 324 §9) — the speech-act layer over the transport envelope. Never authority.
|
|
13
|
-
export { performativeForKind } from './communicative-act.js';
|
|
16
|
+
export { performativeForKind, performativeOf, isOriginalMessage } from './communicative-act.js';
|
|
14
17
|
// The absorbed case (business-substate) machine — interactions FSM re-anchored on the 11-state CaseState.
|
|
15
|
-
export { applyCaseTransition, isTerminalCaseState, TERMINAL_CASE_STATES, } from './case-machine.js';
|
|
18
|
+
export { applyCaseTransition, isTerminalCaseState, TERMINAL_CASE_STATES, requiresGrantedDecision, TRANSITIONS_REQUIRING_GRANTED_DECISION, } from './case-machine.js';
|
|
19
|
+
// spec 340 W10 — what a case transition emits into the decision and commitment machines. The
|
|
20
|
+
// prerequisite §R.3 names for shrinking `CaseState` to execution: those states must land in their own
|
|
21
|
+
// machines before the enum can lose them.
|
|
22
|
+
export { caseTransitionEmissions, applyCaseEmissions, seedDecision, seedCommitment, decisionIdForCase, commitmentIdForCase, EMITTING_CASE_TRANSITIONS, } from './case-emissions.js';
|
|
16
23
|
// The unified exchange-event reducer (spec 316 §b/§2) — one append-only stream, one reducer over the record.
|
|
17
24
|
export { applyExchangeEvent, caseViewFromRecord } from './exchange-reducer.js';
|
|
25
|
+
export { openCase, derivedCaseId } from './interactions/open-case.js';
|
|
26
|
+
// Materialization provenance (spec 340 INV-340-8) — rebuilt state travels WITH which events and which
|
|
27
|
+
// rules produced it, so a dropped event and a never-received one stop looking identical.
|
|
28
|
+
export { EXCHANGE_REDUCER_VERSION, eventSetDigest, replayExchange } from './exchange-reducer.js';
|
|
29
|
+
// Protocol bindings (spec 340 §11 / W5) — foreign keys into other protocols' namespaces, NEVER our
|
|
30
|
+
// canonical ids. Resolution returns a typed ambiguity rather than a first match: cross-wiring two
|
|
31
|
+
// interactions merges two participant sets, two commitment ledgers and two audit trails.
|
|
32
|
+
export { PROTOCOL, looksCanonical, bindProtocol, bindingKey, buildBindingIndex, resolveInteractionByBinding, topicInteractionId, channelIdFromTopicInteraction, } from './protocol-binding.js';
|
|
33
|
+
// TRANSITIONAL (spec 340 W5) — the MessageKind/CaseState retirement path. This module exists to be
|
|
34
|
+
// deleted; both enums are still live, and the total compiler-checked mapping is what makes the later
|
|
35
|
+
// removal mechanical instead of a judgement call per call site.
|
|
36
|
+
export { PROFILE_FOR_MESSAGE_KIND, MACHINE_FOR_CASE_STATE, machinesSpannedByCaseState } from './enum-retirement.js';
|
|
37
|
+
// The profile mechanism (spec 340 W4) — what replaces the frozen MessageKind/CaseState enums. A new
|
|
38
|
+
// interaction type is DATA, not a schema change. A profile permits nothing.
|
|
39
|
+
export { checkExchangeAgainstProfile, profileFor, PROFILE_LIBRARY, DIRECT_PROFILE, NEGOTIATION_PROFILE, CONSULTATION_PROFILE, DISPUTE_PROFILE, ENGAGEMENT_PROFILE, TOPIC_PROFILE, ENGAGEMENT_RESPONSE_KIND_AXES, } from './interaction-profile.js';
|
|
40
|
+
// The four state machines spec 340 §5 named and the fabric did not have (W3). Six, never collapsed:
|
|
41
|
+
// delivery · inbox · interaction · decision · commitment · execution. None of them is authority.
|
|
42
|
+
export { applyInboxTransition, applyInteractionTransition, applyDecisionTransition, applyCommitmentTransition, mayDischargeOnExecution, TERMINAL_INTERACTION_STATES, TERMINAL_DECISION_STATES, TERMINAL_COMMITMENT_STATES, } from './interaction-machines.js';
|
|
43
|
+
// The durable governed situation (spec 340 W2; ADR-0058). The aggregate an Exchange occurs IN — an
|
|
44
|
+
// Exchange without one is a message, which is a legitimate state and why the pins are optional.
|
|
45
|
+
export { isProfileVersion, isFloatingVersion, checkReproducible, assertReproducible, hashContextSnapshot, buildContextSnapshot, verifyContextSnapshot, participantsAt, detectProfileDowngrades, } from './interaction-record.js';
|
|
46
|
+
// spec 341 §3.2 / Wave 2a — the inbox READ CURSOR. Makes an unchanged poll cheap BEFORE the read moves
|
|
47
|
+
// onto signed A2A round-trips, so the migration is not a latency regression. A digest, not a counter:
|
|
48
|
+
// derived rather than stored, so it cannot drift from the document it describes.
|
|
49
|
+
export { inboxRevision, inboxUnchanged, readInboxWithCursor } from './inbox-revision.js';
|
|
50
|
+
// The vault-backed conversation as an Interaction (spec 340 W12) — the projection `demo-a2a`'s live
|
|
51
|
+
// board path uses. W11 wired the DO-SQL channel store, which no app runs; this reaches the one that does.
|
|
52
|
+
export { conversationInteractionId, conversationIdFromInteraction, participationModeOfConversation, profileVersionOfConversation, participationsOfConversation, conversationPins, interactionViewOfConversation, participationModeOfChannel, interactionViewOfChannel, } from './messaging/conversation-interaction.js';
|
|
18
53
|
// Inbox projection (spec 316 §b) — the vault-resident inbox row projected from the message-event slice.
|
|
19
54
|
export { projectInboxItem, applyMessageEvent, applyInboxRules, createInMemoryInboxProjector, } from './inbox-projection.js';
|
|
20
55
|
// Gateway surface commitment (spec 316 §4.1 / W4 — decentralized discovery; the atl:gatewayRoot preimage).
|
|
@@ -27,4 +62,7 @@ export { emptyInboxData, parseInboxData, hydrateInboxStores, mergeContextRefs, u
|
|
|
27
62
|
// The registered record catalog (spec 322 §1) — resource pattern → type tag + ontology binding +
|
|
28
63
|
// classification floor. The catalog, never the resource string, carries the semantics.
|
|
29
64
|
export { RECORD_CATALOG, catalogEntryFor } from './record-catalog.js';
|
|
65
|
+
// ── ADR-0060 / spec 399 §4 — the serving-plane adoption LADDER: ledger types, the rung rule, divergence and sampling.
|
|
66
|
+
// The ledger's VALUES stay with the product whose ops they name.
|
|
67
|
+
export { adoptionStage, compareServed, classifyDivergence, shouldShadow, recordDivergence, SHADOW_INTERVAL_MS, DIVERGENCE_BUFFER } from './adoption.js';
|
|
30
68
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,yEAAyE;AACzE,EAAE;AACF,sGAAsG;AACtG,oGAAoG;AACpG,8EAA8E;AAC9E,EAAE;AACF,qGAAqG;AACrG,oFAAoF;AAEpF,OAAO,EACL,iBAAiB,EACjB,qBAAqB,EACrB,mBAAmB,EACnB,oBAAoB,EACpB,kBAAkB,EAClB,kBAAkB,EA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