@fantastic.dev/better-stripe 0.97.0 → 0.97.1

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
@@ -26,6 +26,12 @@
26
26
  - Remove internal tracker references from public documentation and add a
27
27
  regression check that prevents their reintroduction.
28
28
 
29
+ ## [0.97.1](https://github.com/FantasticDevHQ/better-stripe/compare/v0.97.0...v0.97.1) (2026-10-31)
30
+
31
+ ### Refactoring
32
+
33
+ - isolate initial renewal material classifiers ([#435](https://github.com/FantasticDevHQ/better-stripe/issues/435)) ([25a76c7](https://github.com/FantasticDevHQ/better-stripe/commit/25a76c78afa97f01dca41ac0e3521455903b8305))
34
+
29
35
  ## [0.97.0](https://github.com/FantasticDevHQ/better-stripe/compare/v0.96.0...v0.97.0) (2026-10-31)
30
36
 
31
37
  ### Features
package/README.md CHANGED
@@ -5,7 +5,7 @@ billing, and Connect marketplaces. It provides checkout, subscriptions, webhook
5
5
  syncing, marketplace fees and splits, payouts, refunds, and disputes, with React
6
6
  hooks and headless UI components.
7
7
 
8
- **Version**: `0.97.0` <!-- x-release-please-version --> (pre-1.0). API may change between minor versions until 1.0.
8
+ **Version**: `0.97.1` <!-- x-release-please-version --> (pre-1.0). API may change between minor versions until 1.0.
9
9
 
10
10
  Connect platforms use the default GA API version. Non-Connect merchants using
11
11
  customer-only Accounts v2 need preview access and an explicit preview version.
@@ -518,5 +518,16 @@ declare const FRESH_STOP: Readonly<{
518
518
  /** Internal DATA consistency only; Source owner and acquisition provenance remain unbound. */
519
519
  export declare function classifyOwnedRetainedInitialAttachment(raw: unknown): Promise<Classified | typeof RETAINED_STOP>;
520
520
  export declare function classifyOwnedInitialAttachment(raw: unknown): Promise<Classified | typeof FRESH_STOP>;
521
+ /** Private original-call classifier factory. Inputs and outputs remain unsigned DATA. */
522
+ export declare function createInitialMaterialClassifiers(token: object): Readonly<{
523
+ retained(): Promise<Classified | Readonly<{
524
+ status: "unsupported";
525
+ code: "RETAINED_INITIAL_MATERIAL_STOP";
526
+ }>>;
527
+ fresh(currentBundle: unknown, observedAt: unknown): Promise<Classified | Readonly<{
528
+ status: "unsupported";
529
+ code: "RAW_COUPON_MATERIAL_STOP";
530
+ }>>;
531
+ }>;
521
532
  export {};
522
533
  //# sourceMappingURL=classifiers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"classifiers.d.ts","sourceRoot":"","sources":["../../../../../../src/client/billing/renewalAttach/internal/material/classifiers.ts"],"names":[],"mappings":"AACA,OAAO,EACL,gCAAgC,IAAI,EAAE,EACtC,kCAAkC,IAAI,EAAE,EACzC,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAKL,KAAK,aAAa,EAEnB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAW9D,KAAK,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;AAC/C,KAAK,OAAO,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;AAC9C,KAAK,KAAK,GAAG,UAAU,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC1D,KAAK,IAAI,GAAG;IACV,aAAa,EAAE,aAAa,CAAC,eAAe,CAAC,CAAC;IAC9C,MAAM,EAAE,SAAS,CAAC;IAClB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AACF,iBAAS,QAAQ,CACf,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,OAAO,EACd,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE;IAAE,uBAAuB,EAAE,OAAO,CAAA;CAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAAT,OAAO;;;;EAyB7C;AACD,KAAK,eAAe,GAAG,UAAU,CAAC,OAAO,QAAQ,CAAC,CAAC;AACnD,KAAK,UAAU,GAAG;IAChB,MAAM,EAAE,YAAY,CAAC;IACrB,IAAI,EAAE,2CAA2C,CAAC;IAClD,QAAQ,EAAE,eAAe,CAAC;CAC3B,CAAC;AACF,QAAA,MAAM,aAAa;YACT,aAAa;;EAErB,CAAC;AACH,QAAA,MAAM,UAAU;YACN,aAAa;;EAErB,CAAC;AAoMH,8FAA8F;AAC9F,wBAAgB,sCAAsC,CACpD,GAAG,EAAE,OAAO,GACX,OAAO,CAAC,UAAU,GAAG,OAAO,aAAa,CAAC,CAe5C;AACD,wBAAgB,8BAA8B,CAC5C,GAAG,EAAE,OAAO,GACX,OAAO,CAAC,UAAU,GAAG,OAAO,UAAU,CAAC,CAezC"}
1
+ {"version":3,"file":"classifiers.d.ts","sourceRoot":"","sources":["../../../../../../src/client/billing/renewalAttach/internal/material/classifiers.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,gCAAgC,IAAI,EAAE,EACtC,kC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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAAT,OAAO;;;;EAyB7C;AACD,KAAK,eAAe,GAAG,UAAU,CAAC,OAAO,QAAQ,CAAC,CAAC;AACnD,KAAK,UAAU,GAAG;IAChB,MAAM,EAAE,YAAY,CAAC;IACrB,IAAI,EAAE,2CAA2C,CAAC;IAClD,QAAQ,EAAE,eAAe,CAAC;CAC3B,CAAC;AACF,QAAA,MAAM,aAAa;YACT,aAAa;;EAErB,CAAC;AACH,QAAA,MAAM,UAAU;YACN,aAAa;;EAErB,CAAC;AAoMH,8FAA8F;AAC9F,wBAAgB,sCAAsC,CACpD,GAAG,EAAE,OAAO,GACX,OAAO,CAAC,UAAU,GAAG,OAAO,aAAa,CAAC,CAE5C;AAoBD,wBAAgB,8BAA8B,CAC5C,GAAG,EAAE,OAAO,GACX,OAAO,CAAC,UAAU,GAAG,OAAO,UAAU,CAAC,CAEzC;AAqBD,yFAAyF;AACzF,wBAAgB,gCAAgC,CAAC,KAAK,EAAE,MAAM;;gBA7PpD,aAAa;;;yBA6QE,OAAO,cAAc,OAAO;gBAzQ3C,aAAa;;;GAgRtB"}
@@ -1,4 +1,7 @@
1
1
  import { OWNER } from "../originalOwner.js";
2
+ import { ownerForInitialLineage } from "../producer/ownerFactory.js";
3
+ import { readInitialLineage } from "../producer/lineageAuthority.js";
4
+ import { ownedAwaitForInitialLineage } from "../producer/ownedAwaitFactory.js";
2
5
  import { prepareRenewalPriceReplacementV2 as c1, prepareRenewalScheduleAttachmentV2 as c2, } from "../../../renewalV2/index.js";
3
6
  import { captureRetainedInput, captureOwnedInput, ownedRetainedEligibility, ownedCouponEligibility, } from "./capture.js";
4
7
  import { validateOwnedReadMaterial } from "./readMaterial.js";
@@ -122,19 +125,19 @@ function release(material, prepared, request) {
122
125
  encode(node);
123
126
  return freeze(materialize(node));
124
127
  }
125
- async function retained(value) {
128
+ async function retained(owner, value) {
126
129
  const raw = value.attachRequest;
127
- OWNER.check();
130
+ owner.check();
128
131
  const prepared = await c1(raw.preparation);
129
- OWNER.check();
130
- OWNER.check();
132
+ owner.check();
133
+ owner.check();
131
134
  const request = await c2({
132
135
  prepared,
133
136
  apiVersion: raw.apiVersion,
134
137
  attachKey: raw.attachKey,
135
138
  firstDispatchedAt: raw.firstDispatchedAt,
136
139
  });
137
- OWNER.check();
140
+ owner.check();
138
141
  const discounts = ownedRetainedEligibility(value), args = { attachRequest: raw, intent: "initial" };
139
142
  const reads = validateOwnedReadMaterial({
140
143
  apiVersion: raw.apiVersion,
@@ -143,26 +146,26 @@ async function retained(value) {
143
146
  targetPrice: prepared.providerSnapshot.targetPrice,
144
147
  billingCustomer: prepared.providerSnapshot.billingCustomer,
145
148
  }, prepared, undefined, discounts);
146
- OWNER.check();
149
+ owner.check();
147
150
  const result = release(material(args, false, prepared, request, reads, {
148
151
  actualFreshSubscription: raw.preparation.subscription,
149
152
  }), prepared, request);
150
- OWNER.check();
153
+ owner.check();
151
154
  return result;
152
155
  }
153
- async function fresh(value) {
156
+ async function fresh(owner, value) {
154
157
  const raw = value.attachRequest;
155
- OWNER.check();
158
+ owner.check();
156
159
  const prepared = await c1(raw.preparation);
157
- OWNER.check();
158
- OWNER.check();
160
+ owner.check();
161
+ owner.check();
159
162
  const request = await c2({
160
163
  prepared,
161
164
  apiVersion: raw.apiVersion,
162
165
  attachKey: raw.attachKey,
163
166
  firstDispatchedAt: raw.firstDispatchedAt,
164
167
  });
165
- OWNER.check();
168
+ owner.check();
166
169
  const discounts = ownedCouponEligibility(value), b = value.currentBundle;
167
170
  const args = {
168
171
  attachRequest: raw,
@@ -179,48 +182,80 @@ async function fresh(value) {
179
182
  targetPrice: b.wireTargetPrice,
180
183
  billingCustomer: b.wireBillingCustomer,
181
184
  }, prepared, undefined, discounts);
182
- OWNER.check();
185
+ owner.check();
183
186
  const result = release(material(args, true, prepared, request, reads, {
184
187
  actualFreshSubscription: b.wireSubscription,
185
188
  }), prepared, request);
186
- OWNER.check();
189
+ owner.check();
187
190
  return result;
188
191
  }
189
192
  /** Internal DATA consistency only; Source owner and acquisition provenance remain unbound. */
190
193
  export function classifyOwnedRetainedInitialAttachment(raw) {
194
+ return classifyRetained(OWNER, raw);
195
+ }
196
+ function classifyRetained(owner, raw) {
191
197
  let value;
192
198
  try {
193
- OWNER.check();
199
+ owner.check();
194
200
  value = captureRetainedInput(raw);
195
- OWNER.check();
201
+ owner.check();
196
202
  }
197
203
  catch {
198
204
  return Promise.resolve(RETAINED_STOP);
199
205
  }
200
- return retained(value).catch(() => {
206
+ return retained(owner, value).catch(() => {
201
207
  try {
202
- OWNER.check();
208
+ owner.check();
203
209
  }
204
210
  catch { }
205
211
  return RETAINED_STOP;
206
212
  });
207
213
  }
208
214
  export function classifyOwnedInitialAttachment(raw) {
215
+ return classifyFresh(OWNER, raw);
216
+ }
217
+ function classifyFresh(owner, raw) {
209
218
  let value;
210
219
  try {
211
- OWNER.check();
220
+ owner.check();
212
221
  value = captureOwnedInput(raw);
213
- OWNER.check();
222
+ owner.check();
214
223
  }
215
224
  catch {
216
225
  return Promise.resolve(FRESH_STOP);
217
226
  }
218
- return fresh(value).catch(() => {
227
+ return fresh(owner, value).catch(() => {
219
228
  try {
220
- OWNER.check();
229
+ owner.check();
221
230
  }
222
231
  catch { }
223
232
  return FRESH_STOP;
224
233
  });
225
234
  }
235
+ /** Private original-call classifier factory. Inputs and outputs remain unsigned DATA. */
236
+ export function createInitialMaterialClassifiers(token) {
237
+ if (arguments.length !== 1)
238
+ throw Error("INITIAL_MATERIAL_UNBOUND");
239
+ const owner = ownerForInitialLineage(token);
240
+ owner.check();
241
+ const lineage = readInitialLineage(token);
242
+ const source = JSON.parse(lineage.reservation.recordJSON);
243
+ const original = {
244
+ attachRequest: source.attachRequest,
245
+ originalBundle: source.originalBundle,
246
+ };
247
+ const owned = ownedAwaitForInitialLineage(token);
248
+ return Object.freeze({
249
+ retained() {
250
+ if (arguments.length !== 0)
251
+ throw Error("INITIAL_MATERIAL_UNBOUND");
252
+ return owned(() => classifyRetained(owner, original));
253
+ },
254
+ fresh(currentBundle, observedAt) {
255
+ if (arguments.length !== 2)
256
+ throw Error("INITIAL_MATERIAL_UNBOUND");
257
+ return owned(() => classifyFresh(owner, { ...original, currentBundle, observedAt }));
258
+ },
259
+ });
260
+ }
226
261
  //# sourceMappingURL=classifiers.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"classifiers.js","sourceRoot":"","sources":["../../../../../../src/client/billing/renewalAttach/internal/material/classifiers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAC5C,OAAO,EACL,gCAAgC,IAAI,EAAE,EACtC,kCAAkC,IAAI,EAAE,GACzC,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,oBAAoB,EACpB,iBAAiB,EACjB,wBAAwB,EACxB,sBAAsB,GAGvB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EACL,UAAU,EACV,UAAU,EACV,MAAM,EACN,WAAW,EACX,IAAI,EACJ,MAAM,GAEP,MAAM,iBAAiB,CAAC;AAYzB,SAAS,QAAQ,CACf,IAAU,EACV,KAAc,EACd,QAAkB,EAClB,OAAgB,EAChB,KAAY,EACZ,QAA8C;IAE9C,OAAO;QACL,sBAAsB,EAAE,qBAAqB;QAC7C,gBAAgB,EAAE,2BAA2B;QAC7C,KAAK,EAAE,QAAQ;QACf,MAAM,EAAE,IAAI,CAAC,MAAM;QACnB,KAAK,EAAE,OAAO,CAAC,KAAK;QACpB,UAAU,EAAE,OAAO,CAAC,UAAU;QAC9B,OAAO,EAAE,KAAK,C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,CAAC,KAAK,EAAE,CAAC;IACd,OAAO,MAAM,CAAC;AAChB,CAAC;AACD,8FAA8F;AAC9F,MAAM,UAAU,sCAAsC,CACpD,GAAY;IAEZ,IAAI,KAAK,CAAC;IACV,IAAI,CAAC;QACH,KAAK,CAAC,KAAK,EAAE,CAAC;QACd,KAAK,GAAG,oBAAoB,CAAC,GAAG,CAAC,CAAC;QAClC,KAAK,CAAC,KAAK,EAAE,CAAC;IAChB,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,OAAO,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;IACxC,CAAC;IACD,OAAO,QAAQ,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE;QAChC,IAAI,CAAC;YACH,KAAK,CAAC,KAAK,EAAE,CAAC;QAChB,CAAC;QAAC,MAAM,CAAC,CAAA,CAAC;QACV,OAAO,aAAa,CAAC;IACvB,CAAC,CAAC,CAAC;AACL,CAAC;AACD,MAAM,UAAU,8BAA8B,CAC5C,GAAY;IAEZ,IAAI,KAAK,CAAC;IACV,IAAI,CAAC;QACH,KAAK,CAAC,KAAK,EAAE,CAAC;QACd,KAAK,GAAG,iBAAiB,CAAC,GAAG,CAAC,CAAC;QAC/B,KAAK,CAAC,KAAK,EAAE,CAAC;IAChB,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;IACrC,CAAC;IACD,OAAO,KAAK,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE;QAC7B,IAAI,CAAC;YACH,KAAK,CAAC,KAAK,EAAE,CAAC;QAChB,CAAC;QAAC,MAAM,CAAC,CAAA,CAAC;QACV,OAAO,UAAU,CAAC;IACpB,CAAC,CAAC,CAAC;AACL,CAAC"}
1
+ {"version":3,"file":"classifiers.js","sourceRoot":"","sources":["../../../../../../src/client/billing/renewalAttach/internal/material/classifiers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE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,CAAC,CAAC;IAC5C,KAAK,CAAC,KAAK,EAAE,CAAC;IACd,MAAM,OAAO,GAAG,kBAAkB,CAAC,KAAK,CAAC,CAAC;IAC1C,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;IAC1D,MAAM,QAAQ,GAAG;QACf,aAAa,EAAE,MAAM,CAAC,aAAa;QACnC,cAAc,EAAE,MAAM,CAAC,cAAc;KACtC,CAAC;IACF,MAAM,KAAK,GAAG,2BAA2B,CAAC,KAAK,CAAC,CAAC;IACjD,OAAO,MAAM,CAAC,MAAM,CAAC;QACnB,QAAQ;YACN,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC;gBAAE,MAAM,KAAK,CAAC,0BAA0B,CAAC,CAAC;YACpE,OAAO,KAAK,CAAC,GAAG,EAAE,CAAC,gBAAgB,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC;QACxD,CAAC;QACD,KAAK,CAAC,aAAsB,EAAE,UAAmB;YAC/C,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC;gBAAE,MAAM,KAAK,CAAC,0BAA0B,CAAC,CAAC;YACpE,OAAO,KAAK,CAAC,GAAG,EAAE,CAChB,aAAa,CAAC,KAAK,EAAE,EAAE,GAAG,QAAQ,EAAE,aAAa,EAAE,UAAU,EAAE,CAAC,CACjE,CAAC;QACJ,CAAC;KACF,CAAC,CAAC;AACL,CAAC"}
@@ -2,12 +2,14 @@ import { type InitialOwner } from "./ownerFactory.js";
2
2
  import { stockDelegateForInitialLineage } from "./stockDelegateFactory.js";
3
3
  import type { createClassActionOperationJournal } from "../operationJournal.js";
4
4
  import { createInitialAttachEventCompiler } from "../c10/attachEvents.js";
5
+ import { createInitialMaterialClassifiers } from "../material/classifiers.js";
5
6
  export type InitialInvocationCore = Readonly<{
6
7
  owner: InitialOwner;
7
8
  basisJSON: string;
8
9
  delegate: ReturnType<typeof stockDelegateForInitialLineage>;
9
10
  owned<T>(work: () => T | PromiseLike<T>): Promise<T>;
10
11
  attachEvents(): ReturnType<typeof createInitialAttachEventCompiler>;
12
+ material: ReturnType<typeof createInitialMaterialClassifiers>;
11
13
  operationalAuthority: false;
12
14
  }>;
13
15
  /** Node-only private construction. Does not admit an operational runtime profile. */
@@ -1 +1 @@
1
- {"version":3,"file":"invocationProducer.d.ts","sourceRoot":"","sources":["../../../../../../src/client/billing/renewalAttach/internal/producer/invocationProducer.ts"],"names":[],"mappings":"AACA,OAAO,EAA0B,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAE9E,OAAO,EAAE,8BAA8B,EAAE,MAAM,2BAA2B,CAAC;AAC3E,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,wBAAwB,CAAC;AAChF,OAAO,EAAE,gCAAgC,EAAE,MAAM,wBAAwB,CAAC;AAE1E,MAAM,MAAM,qBAAqB,GAAG,QAAQ,CAAC;IAC3C,KAAK,EAAE,YAAY,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,UAAU,CAAC,OAAO,8BAA8B,CAAC,CAAC;IAC5D,KAAK,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;IACrD,YAAY,IAAI,UAAU,CAAC,OAAO,gCAAgC,CAAC,CAAC;IACpE,oBAAoB,EAAE,KAAK,CAAC;CAC7B,CAAC,CAAC;AAEH,qFAAqF;AACrF,wBAAsB,4BAA4B,CAChD,IAAI,EAAE,OAAO,EACb,OAAO,EAAE,OAAO,CAAC,UAAU,CAAC,OAAO,iCAAiC,CAAC,CAAC,GACrE,OAAO,CAAC,qBAAqB,CAAC,CA+ChC"}
1
+ {"version":3,"file":"invocationProducer.d.ts","sourceRoot":"","sources":["../../../../../../src/client/billing/renewalAttach/internal/producer/invocationProducer.ts"],"names":[],"mappings":"AACA,OAAO,EAA0B,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAE9E,OAAO,EAAE,8BAA8B,EAAE,MAAM,2BAA2B,CAAC;AAC3E,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,wBAAwB,CAAC;AAChF,OAAO,EAAE,gCAAgC,EAAE,MAAM,wBAAwB,CAAC;AAC1E,OAAO,EAAE,gCAAgC,EAAE,MAAM,4BAA4B,CAAC;AAE9E,MAAM,MAAM,qBAAqB,GAAG,QAAQ,CAAC;IAC3C,KAAK,EAAE,YAAY,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,UAAU,CAAC,OAAO,8BAA8B,CAAC,CAAC;IAC5D,KAAK,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;IACrD,YAAY,IAAI,UAAU,CAAC,OAAO,gCAAgC,CAAC,CAAC;IACpE,QAAQ,EAAE,UAAU,CAAC,OAAO,gCAAgC,CAAC,CAAC;IAC9D,oBAAoB,EAAE,KAAK,CAAC;CAC7B,CAAC,CAAC;AAEH,qFAAqF;AACrF,wBAAsB,4BAA4B,CAChD,IAAI,EAAE,OAAO,EACb,OAAO,EAAE,OAAO,CAAC,UAAU,CAAC,OAAO,iCAAiC,CAAC,CAAC,GACrE,OAAO,CAAC,qBAAqB,CAAC,CAgDhC"}
@@ -3,6 +3,7 @@ import { ownerForInitialLineage } from "./ownerFactory.js";
3
3
  import { ownedAwaitForInitialLineage } from "./ownedAwaitFactory.js";
4
4
  import { stockDelegateForInitialLineage } from "./stockDelegateFactory.js";
5
5
  import { createInitialAttachEventCompiler } from "../c10/attachEvents.js";
6
+ import { createInitialMaterialClassifiers } from "../material/classifiers.js";
6
7
  /** Node-only private construction. Does not admit an operational runtime profile. */
7
8
  export async function captureInitialInvocationCore(call, journal) {
8
9
  const token = mintInitialLineage(call, journal, arguments.length);
@@ -43,6 +44,7 @@ export async function captureInitialInvocationCore(call, journal) {
43
44
  throw Error("INITIAL_CHANNEL_UNBOUND");
44
45
  return createInitialAttachEventCompiler(token);
45
46
  },
47
+ material: createInitialMaterialClassifiers(token),
46
48
  operationalAuthority: false,
47
49
  });
48
50
  }
@@ -1 +1 @@
1
- {"version":3,"file":"invocationProducer.js","sourceRoot":"","sources":["../../../../../../src/client/billing/renewalAttach/internal/producer/invocationProducer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC/E,OAAO,EAAE,sBAAsB,EAAqB,MAAM,mBAAmB,CAAC;AAC9E,OAAO,EAAE,2BAA2B,EAAE,MAAM,wBAAwB,CAAC;AACrE,OAAO,EAAE,8BAA8B,EAAE,MAAM,2BAA2B,CAAC;AAE3E,OAAO,EAAE,gCAAgC,EAAE,MAAM,wBAAwB,CAAC;AAW1E,qFAAqF;AACrF,MAAM,CAAC,KAAK,UAAU,4BAA4B,CAChD,IAAa,EACb,OAAsE;IAEtE,MAAM,KAAK,GAAG,kBAAkB,CAAC,IAAI,EAAE,OAAO,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC;IAClE,MAAM,OAAO,GAAG,kBAAkB,CAAC,KAAK,CAAC,CAAC;IAC1C,MAAM,KAAK,GAAG,sBAAsB,CAAC,KAAK,CAAC,CAAC;IAC5C,IAAI,CAAC;QACH,MAAM,KAAK,GAAG,2BAA2B,CAAC,KAAK,CAAC,CAAC;QACjD,MAAM,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC;QACxC,IAAI,CAAC,CAAC,kBAAkB,IAAI,WAAW,CAAC;YACtC,MAAM,KAAK,CAAC,yBAAyB,CAAC,CAAC;QACzC,MAAM,KAAK,GAAG,MAAM,KAAK,CAAC,GAAG,EAAE,CAC7B,OAAO,CAAC,gBAAgB,CAAC;YACvB,SAAS,EAAE,WAAW,CAAC,SAAS;YAChC,UAAU,EAAE,WAAW,CAAC,gBAAgB;YACxC,SAAS,EAA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AC,YAAY,CAAC,SAAS,KAAK,WAAW,CAAC,SAAS;YACtD,KAAK,CAAC,YAAY,CAAC,eAAe,KAAK,WAAW,CAAC,SAAS;YAC5D,KAAK,CAAC,YAAY,CAAC,SAAS,KAAK,OAAO,CAAC,SAAS;YAClD,KAAK,CAAC,YAAY,CAAC,UAAU,KAAK,WAAW,CAAC,gBAAgB;YAC9D,KAAK,CAAC,YAAY,CAAC,KAAK,KAAK,QAAQ;YACrC,KAAK,CAAC,YAAY,CAAC,OAAO,KAAK,CAAC;YAEhC,MAAM,KAAK,CAAC,yBAAyB,CAAC,CAAC;QACzC,KAAK,CAAC,KAAK,EAAE,CAAC;QACd,IAAI,eAAe,GAAG,KAAK,CAAC;QAC5B,OAAO,MAAM,CAAC,MAAM,CAAC;YACnB,KAAK;YACL,SAAS,EAAE,OAAO,CAAC,SAAS;YAC5B,KAAK;YACL,QAAQ,EAAE,8BAA8B,CAAC,KAAK,CAAC;YAC/C,YAAY;gBACV,KAAK,CAAC,KAAK,EAAE,CAAC;gBACd,IAAI,eAAe;oBAAE,MAAM,KAAK,CAAC,0BAA0B,CAAC,CAAC;gBAC7D,eAAe,GAAG,IAAI,CAAC;gBACvB,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC;oBAAE,MAAM,KAAK,CAAC,yBAAyB,CAAC,CAAC;gBACnE,OAAO,gCAAgC,CAAC,KAAK,CAAC,CAAC;YACjD,CAAC;YACD,QAAQ,EAAE,gCAAgC,CAAC,KAAK,CAAC;YACjD,oBAAoB,EAAE,KAAK;SAC5B,CAAC,CAAC;IACL,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,KAAK,CAAC,MAAM,EAAE,CAAC;QACf,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC"}
@@ -127,8 +127,19 @@ Retiring one invocation rejects its pending channel without retiring another
127
127
  invocation's channel or removing already committed DATA. Stored events and C10
128
128
  append acknowledgements do not establish provider custody or a returned public
129
129
  operation acknowledgement. Legacy stage-channel facades retain their existing
130
- lazy Owner and behavior. Initial actor, classifier, acquisition and transport
131
- factory wiring remains required.
130
+ lazy Owner and behavior. Initial actor, acquisition and transport factory wiring
131
+ remains required.
132
+
133
+ The core's private material classifiers also retain the original journal source
134
+ and canonical Owner. Retained classification accepts no replacement source.
135
+ Fresh classification accepts read DATA and its observed timestamp, then uses the
136
+ existing raw Coupon join checks and actual C1/C2 reconstruction against the
137
+ original source. Both paths keep the existing DATA-consistency-only result and
138
+ bounded snapshots. They do not qualify acquisition or provider custody. Pending
139
+ reconstruction is owned by that invocation; retirement rejects its continuation
140
+ without closing another invocation's classifier. Legacy classifier exports keep
141
+ their lazy Owner and existing refusal behavior. The initial actor still needs
142
+ to wire these classifiers to its per-invocation acquisition and transport.
132
143
 
133
144
  ## Component operation journal
134
145
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fantastic.dev/better-stripe",
3
- "version": "0.97.0",
3
+ "version": "0.97.1",
4
4
  "description": "Convex component for Stripe Accounts v2, subscriptions, metered billing and Connect marketplaces, with React workflows.",
5
5
  "keywords": [
6
6
  "stripe",
@@ -1,4 +1,8 @@
1
1
  import { OWNER } from "../originalOwner.js";
2
+ import { ownerForInitialLineage } from "../producer/ownerFactory.js";
3
+ import { readInitialLineage } from "../producer/lineageAuthority.js";
4
+ import { ownedAwaitForInitialLineage } from "../producer/ownedAwaitFactory.js";
5
+ type MaterialOwner = Pick<typeof OWNER, "check">;
2
6
  import {
3
7
  prepareRenewalPriceReplacementV2 as c1,
4
8
  prepareRenewalScheduleAttachmentV2 as c2,
@@ -190,19 +194,19 @@ function release(
190
194
  encode(node);
191
195
  return freeze(materialize(node)) as Classified;
192
196
  }
193
- async function retained(value: RetainedInput) {
197
+ async function retained(owner: MaterialOwner, value: RetainedInput) {
194
198
  const raw = value.attachRequest;
195
- OWNER.check();
199
+ owner.check();
196
200
  const prepared = await c1(raw.preparation);
197
- OWNER.check();
198
- OWNER.check();
201
+ owner.check();
202
+ owner.check();
199
203
  const request = await c2({
200
204
  prepared,
201
205
  apiVersion: raw.apiVersion,
202
206
  attachKey: raw.attachKey,
203
207
  firstDispatchedAt: raw.firstDispatchedAt,
204
208
  });
205
- OWNER.check();
209
+ owner.check();
206
210
  const discounts = ownedRetainedEligibility(value),
207
211
  args = { attachRequest: raw, intent: "initial" as const };
208
212
  const reads = validateOwnedReadMaterial(
@@ -217,7 +221,7 @@ async function retained(value: RetainedInput) {
217
221
  undefined,
218
222
  discounts,
219
223
  );
220
- OWNER.check();
224
+ owner.check();
221
225
  const result = release(
222
226
  material(args, false, prepared, request, reads, {
223
227
  actualFreshSubscription: raw.preparation.subscription,
@@ -225,22 +229,22 @@ async function retained(value: RetainedInput) {
225
229
  prepared,
226
230
  request,
227
231
  );
228
- OWNER.check();
232
+ owner.check();
229
233
  return result;
230
234
  }
231
- async function fresh(value: FreshInput) {
235
+ async function fresh(owner: MaterialOwner, value: FreshInput) {
232
236
  const raw = value.attachRequest;
233
- OWNER.check();
237
+ owner.check();
234
238
  const prepared = await c1(raw.preparation);
235
- OWNER.check();
236
- OWNER.check();
239
+ owner.check();
240
+ owner.check();
237
241
  const request = await c2({
238
242
  prepared,
239
243
  apiVersion: raw.apiVersion,
240
244
  attachKey: raw.attachKey,
241
245
  firstDispatchedAt: raw.firstDispatchedAt,
242
246
  });
243
- OWNER.check();
247
+ owner.check();
244
248
  const discounts = ownedCouponEligibility(value),
245
249
  b = value.currentBundle;
246
250
  const args = {
@@ -263,7 +267,7 @@ async function fresh(value: FreshInput) {
263
267
  undefined,
264
268
  discounts,
265
269
  );
266
- OWNER.check();
270
+ owner.check();
267
271
  const result = release(
268
272
  material(args, true, prepared, request, reads, {
269
273
  actualFreshSubscription: b.wireSubscription,
@@ -271,43 +275,81 @@ async function fresh(value: FreshInput) {
271
275
  prepared,
272
276
  request,
273
277
  );
274
- OWNER.check();
278
+ owner.check();
275
279
  return result;
276
280
  }
277
281
  /** Internal DATA consistency only; Source owner and acquisition provenance remain unbound. */
278
282
  export function classifyOwnedRetainedInitialAttachment(
279
283
  raw: unknown,
284
+ ): Promise<Classified | typeof RETAINED_STOP> {
285
+ return classifyRetained(OWNER, raw);
286
+ }
287
+ function classifyRetained(
288
+ owner: MaterialOwner,
289
+ raw: unknown,
280
290
  ): Promise<Classified | typeof RETAINED_STOP> {
281
291
  let value;
282
292
  try {
283
- OWNER.check();
293
+ owner.check();
284
294
  value = captureRetainedInput(raw);
285
- OWNER.check();
295
+ owner.check();
286
296
  } catch {
287
297
  return Promise.resolve(RETAINED_STOP);
288
298
  }
289
- return retained(value).catch(() => {
299
+ return retained(owner, value).catch(() => {
290
300
  try {
291
- OWNER.check();
301
+ owner.check();
292
302
  } catch {}
293
303
  return RETAINED_STOP;
294
304
  });
295
305
  }
296
306
  export function classifyOwnedInitialAttachment(
297
307
  raw: unknown,
308
+ ): Promise<Classified | typeof FRESH_STOP> {
309
+ return classifyFresh(OWNER, raw);
310
+ }
311
+ function classifyFresh(
312
+ owner: MaterialOwner,
313
+ raw: unknown,
298
314
  ): Promise<Classified | typeof FRESH_STOP> {
299
315
  let value;
300
316
  try {
301
- OWNER.check();
317
+ owner.check();
302
318
  value = captureOwnedInput(raw);
303
- OWNER.check();
319
+ owner.check();
304
320
  } catch {
305
321
  return Promise.resolve(FRESH_STOP);
306
322
  }
307
- return fresh(value).catch(() => {
323
+ return fresh(owner, value).catch(() => {
308
324
  try {
309
- OWNER.check();
325
+ owner.check();
310
326
  } catch {}
311
327
  return FRESH_STOP;
312
328
  });
313
329
  }
330
+
331
+ /** Private original-call classifier factory. Inputs and outputs remain unsigned DATA. */
332
+ export function createInitialMaterialClassifiers(token: object) {
333
+ if (arguments.length !== 1) throw Error("INITIAL_MATERIAL_UNBOUND");
334
+ const owner = ownerForInitialLineage(token);
335
+ owner.check();
336
+ const lineage = readInitialLineage(token);
337
+ const source = JSON.parse(lineage.reservation.recordJSON);
338
+ const original = {
339
+ attachRequest: source.attachRequest,
340
+ originalBundle: source.originalBundle,
341
+ };
342
+ const owned = ownedAwaitForInitialLineage(token);
343
+ return Object.freeze({
344
+ retained() {
345
+ if (arguments.length !== 0) throw Error("INITIAL_MATERIAL_UNBOUND");
346
+ return owned(() => classifyRetained(owner, original));
347
+ },
348
+ fresh(currentBundle: unknown, observedAt: unknown) {
349
+ if (arguments.length !== 2) throw Error("INITIAL_MATERIAL_UNBOUND");
350
+ return owned(() =>
351
+ classifyFresh(owner, { ...original, currentBundle, observedAt }),
352
+ );
353
+ },
354
+ });
355
+ }
@@ -4,6 +4,7 @@ import { ownedAwaitForInitialLineage } from "./ownedAwaitFactory.js";
4
4
  import { stockDelegateForInitialLineage } from "./stockDelegateFactory.js";
5
5
  import type { createClassActionOperationJournal } from "../operationJournal.js";
6
6
  import { createInitialAttachEventCompiler } from "../c10/attachEvents.js";
7
+ import { createInitialMaterialClassifiers } from "../material/classifiers.js";
7
8
 
8
9
  export type InitialInvocationCore = Readonly<{
9
10
  owner: InitialOwner;
@@ -11,6 +12,7 @@ export type InitialInvocationCore = Readonly<{
11
12
  delegate: ReturnType<typeof stockDelegateForInitialLineage>;
12
13
  owned<T>(work: () => T | PromiseLike<T>): Promise<T>;
13
14
  attachEvents(): ReturnType<typeof createInitialAttachEventCompiler>;
15
+ material: ReturnType<typeof createInitialMaterialClassifiers>;
14
16
  operationalAuthority: false;
15
17
  }>;
16
18
 
@@ -59,6 +61,7 @@ export async function captureInitialInvocationCore(
59
61
  if (arguments.length !== 0) throw Error("INITIAL_CHANNEL_UNBOUND");
60
62
  return createInitialAttachEventCompiler(token);
61
63
  },
64
+ material: createInitialMaterialClassifiers(token),
62
65
  operationalAuthority: false,
63
66
  });
64
67
  } catch (error) {
@@ -0,0 +1,251 @@
1
+ import assert from "node:assert/strict";
2
+ import { afterEach, beforeEach, expect, it, vi } from "vitest";
3
+ import { initialOperations } from "../test-fixtures/producerInitialOperation.js";
4
+ import { declaredInputs } from "../test-fixtures/attachEntries.js";
5
+ import { INITIAL_NS } from "../test-fixtures/producerInitialDeclarations.js";
6
+ import {
7
+ captureInitialInvocationCore,
8
+ type InitialInvocationCore,
9
+ } from "./invocationProducer.js";
10
+ import {
11
+ prepareRenewalPriceReplacementV2,
12
+ prepareRenewalScheduleAttachmentV2,
13
+ } from "../../../renewalV2/index.js";
14
+ import { createInitialMaterialClassifiers } from "../material/classifiers.js";
15
+
16
+ const legacy = vi.hoisted(() => ({ touched: 0 }));
17
+ vi.mock("../originalOwner.js", () => ({
18
+ OWNER: Object.freeze({
19
+ get basis() {
20
+ legacy.touched++;
21
+ throw Error("LEGACY_OWNER_POISON");
22
+ },
23
+ check() {
24
+ legacy.touched++;
25
+ throw Error("LEGACY_OWNER_POISON");
26
+ },
27
+ sample() {
28
+ legacy.touched++;
29
+ throw Error("LEGACY_OWNER_POISON");
30
+ },
31
+ subscribe() {
32
+ legacy.touched++;
33
+ throw Error("LEGACY_OWNER_POISON");
34
+ },
35
+ retire() {
36
+ legacy.touched++;
37
+ throw Error("LEGACY_OWNER_POISON");
38
+ },
39
+ }),
40
+ }));
41
+ beforeEach(() => {
42
+ legacy.touched = 0;
43
+ vi.useFakeTimers({ toFake: ["Date", "setTimeout", "clearTimeout"] });
44
+ vi.setSystemTime(
45
+ (declaredInputs("INITIAL-ACK").original.attachRequest.firstDispatchedAt +
46
+ 1) *
47
+ 1000,
48
+ );
49
+ vi.spyOn(process.hrtime, "bigint").mockReturnValue(INITIAL_NS);
50
+ });
51
+ afterEach(() => {
52
+ vi.useRealTimers();
53
+ vi.unstubAllGlobals();
54
+ vi.restoreAllMocks();
55
+ });
56
+
57
+ it("classifies original retained and fresh Coupon material with its actual invocation Owner", async () => {
58
+ const source = declaredInputs("INITIAL-ACK").original;
59
+ const prepared = await prepareRenewalPriceReplacementV2(
60
+ source.attachRequest.preparation,
61
+ );
62
+ const request = await prepareRenewalScheduleAttachmentV2({
63
+ prepared,
64
+ apiVersion: source.attachRequest.apiVersion,
65
+ attachKey: source.attachRequest.attachKey,
66
+ firstDispatchedAt: source.attachRequest.firstDispatchedAt,
67
+ });
68
+ await initialOperations(
69
+ async ({ fresh, journal }) => {
70
+ const core = await captureInitialInvocationCore(fresh.call, journal);
71
+ try {
72
+ expect(core.material).toBeDefined();
73
+ const retained = await core.material.retained();
74
+ expect(retained.status).toBe("classified");
75
+ assert(retained.status === "classified");
76
+ expect(retained.kind).toBe("RENEWAL_MATERIAL_V2_DATA_CONSISTENCY_ONLY");
77
+ expect(retained.material.originalPrepared).toEqual(prepared);
78
+ expect(retained.material.completeRequest).toEqual(request);
79
+ expect(retained.material.rawSources.attachRequest).toEqual(
80
+ source.attachRequest,
81
+ );
82
+ const current = structuredClone(source.originalBundle);
83
+ const live = await core.material.fresh(
84
+ current,
85
+ source.attachRequest.firstDispatchedAt,
86
+ );
87
+ expect(live.status).toBe("classified");
88
+ assert(live.status === "classified");
89
+ expect(live.material.freshness).toBe("fresh");
90
+ expect(live.material.completeRequest).toEqual(request);
91
+ expect(Object.isFrozen(live.material)).toBe(true);
92
+ expect(legacy.touched).toBe(0);
93
+ expect(core.operationalAuthority).toBe(false);
94
+ } finally {
95
+ core.owner.retire();
96
+ }
97
+ },
98
+ 1,
99
+ {
100
+ source,
101
+ workEndWallMs: (source.attachRequest.firstDispatchedAt + 4) * 1000,
102
+ endWallMs: (source.attachRequest.firstDispatchedAt + 5) * 1000,
103
+ },
104
+ );
105
+ });
106
+
107
+ it("refuses replacement retained source and incompatible fresh material without legacy access", async () => {
108
+ const source = declaredInputs("INITIAL-ACK").original;
109
+ await initialOperations(
110
+ async ({ fresh, journal }) => {
111
+ const core = await captureInitialInvocationCore(fresh.call, journal);
112
+ try {
113
+ expect(core.material).toBeDefined();
114
+ let read = 0;
115
+ const foreign = {
116
+ get attachRequest() {
117
+ read++;
118
+ throw Error("FOREIGN_SOURCE");
119
+ },
120
+ };
121
+ expect(() =>
122
+ Reflect.apply(core.material.retained, undefined, [foreign]),
123
+ ).toThrow("INITIAL_MATERIAL_UNBOUND");
124
+ expect(read).toBe(0);
125
+ const current = structuredClone(source.originalBundle);
126
+ current.wireSubscription.schedule = "sub_sched_foreign";
127
+ expect(
128
+ (
129
+ await core.material.fresh(
130
+ current,
131
+ source.attachRequest.firstDispatchedAt,
132
+ )
133
+ ).status,
134
+ ).toBe("unsupported");
135
+ expect((await core.material.retained()).status).toBe("classified");
136
+ core.owner.retire();
137
+ expect(() => core.material.retained()).toThrow("INITIAL_OWNER_STOP");
138
+ expect(legacy.touched).toBe(0);
139
+ } finally {
140
+ core.owner.retire();
141
+ }
142
+ },
143
+ 1,
144
+ {
145
+ source,
146
+ workEndWallMs: (source.attachRequest.firstDispatchedAt + 4) * 1000,
147
+ endWallMs: (source.attachRequest.firstDispatchedAt + 5) * 1000,
148
+ },
149
+ );
150
+ });
151
+
152
+ it("retiring one Owner rejects its pending material reconstruction while another finishes", async () => {
153
+ const source = declaredInputs("INITIAL-ACK").original;
154
+ const cores: InitialInvocationCore[] = [];
155
+ let ready = () => {},
156
+ entered = () => {},
157
+ retired = () => {},
158
+ release = () => {};
159
+ const bothReady = new Promise<void>((resolve) => {
160
+ ready = resolve;
161
+ });
162
+ const bothPending = new Promise<void>((resolve) => {
163
+ entered = resolve;
164
+ });
165
+ const firstRetired = new Promise<void>((resolve) => {
166
+ retired = resolve;
167
+ });
168
+ const gate = new Promise<void>((resolve) => {
169
+ release = resolve;
170
+ });
171
+ let holding = false,
172
+ pending = 0;
173
+ const nativeDigest = crypto.subtle.digest.bind(crypto.subtle);
174
+ vi.spyOn(crypto.subtle, "digest").mockImplementation(
175
+ async (algorithm, data) => {
176
+ const value = await nativeDigest(algorithm, data);
177
+ if (holding) {
178
+ if (++pending === 2) entered();
179
+ await gate;
180
+ }
181
+ return value;
182
+ },
183
+ );
184
+ await initialOperations(
185
+ async ({ fresh, journal, index }) => {
186
+ const core = await captureInitialInvocationCore(fresh.call, journal);
187
+ cores[index] = core;
188
+ try {
189
+ expect(core.material).toBeDefined();
190
+ if (cores.filter(Boolean).length === 2) ready();
191
+ await bothReady;
192
+ holding = true;
193
+ const observed = core.material.retained().then(
194
+ (value) => ({ ok: true, value }),
195
+ (error: unknown) => ({ ok: false, error }),
196
+ );
197
+ await bothPending;
198
+ if (index === 0) {
199
+ core.owner.retire();
200
+ expect((await observed).ok).toBe(false);
201
+ retired();
202
+ } else {
203
+ await firstRetired;
204
+ release();
205
+ const result = await observed;
206
+ expect(result.ok).toBe(true);
207
+ assert("value" in result);
208
+ expect(result.value.status).toBe("classified");
209
+ expect(core.owner.check().retired).toBe(false);
210
+ }
211
+ expect(legacy.touched).toBe(0);
212
+ } finally {
213
+ release();
214
+ core.owner.retire();
215
+ }
216
+ },
217
+ 2,
218
+ {
219
+ source,
220
+ workEndWallMs: (source.attachRequest.firstDispatchedAt + 4) * 1000,
221
+ endWallMs: (source.attachRequest.firstDispatchedAt + 5) * 1000,
222
+ },
223
+ );
224
+ });
225
+
226
+ it("opaque stored material remains unsupported rather than gaining source qualification", async () => {
227
+ // The original codec fixture has an opaque bundle instead of raw Coupon joins.
228
+ vi.setSystemTime(1700000002000);
229
+ await initialOperations(async ({ fresh, journal }) => {
230
+ const core = await captureInitialInvocationCore(fresh.call, journal);
231
+ try {
232
+ expect((await core.material.retained()).status).toBe("unsupported");
233
+ expect((await core.material.fresh({}, 1700000002)).status).toBe(
234
+ "unsupported",
235
+ );
236
+ expect(core.operationalAuthority).toBe(false);
237
+ expect(legacy.touched).toBe(0);
238
+ } finally {
239
+ core.owner.retire();
240
+ }
241
+ });
242
+ });
243
+
244
+ it("forged lineage cannot select a classifier Owner or sample clocks", () => {
245
+ const now = vi.spyOn(Date, "now");
246
+ expect(() => createInitialMaterialClassifiers(Object.freeze({}))).toThrow(
247
+ "INITIAL_LINEAGE_UNBOUND",
248
+ );
249
+ expect(now).not.toHaveBeenCalled();
250
+ expect(legacy.touched).toBe(0);
251
+ });
@@ -14,6 +14,7 @@ import {
14
14
  codecFixture,
15
15
  } from "../../../../../component/renewalOperations/timingPolicy.fixtures.js";
16
16
  import { createClassActionOperationJournal } from "../operationJournal.js";
17
+ import type { RetainedInput } from "../material/capture.js";
17
18
  import {
18
19
  prepareRenewalPriceReplacementV2,
19
20
  prepareRenewalScheduleAttachmentV2,
@@ -35,6 +36,7 @@ export async function initialOperations(
35
36
  endWallMs?: number;
36
37
  afterBind?: () => Promise<void>;
37
38
  afterAppend?: () => Promise<void>;
39
+ source?: RetainedInput;
38
40
  } = {},
39
41
  ) {
40
42
  const h = await codecFixture();
@@ -76,6 +78,35 @@ export async function initialOperations(
76
78
  h.record.timingPolicy.workEndWallMs = options.workEndWallMs;
77
79
  if (options.endWallMs !== undefined)
78
80
  h.record.timingPolicy.endWallMs = options.endWallMs;
81
+ const source = options.source?.attachRequest ?? h.record.attachRequest;
82
+ const prepared = await prepareRenewalPriceReplacementV2(source.preparation);
83
+ const request = await prepareRenewalScheduleAttachmentV2({
84
+ prepared,
85
+ apiVersion: source.apiVersion,
86
+ attachKey: source.attachKey,
87
+ firstDispatchedAt: source.firstDispatchedAt,
88
+ });
89
+ const record = {
90
+ ...h.record,
91
+ attachRequest: source,
92
+ originalBundle: options.source?.originalBundle ?? h.record.originalBundle,
93
+ requestBinding: request.requestIdentity.binding,
94
+ dispatch: {
95
+ scope: request.scope,
96
+ apiVersion: request.apiVersion,
97
+ method: request.method,
98
+ path: request.path,
99
+ payload: request.payload,
100
+ key: request.key,
101
+ firstDispatchedAt: request.firstDispatchedAt,
102
+ },
103
+ timingPolicy: {
104
+ ...h.record.timingPolicy,
105
+ firstDispatchedAt: source.firstDispatchedAt,
106
+ periodStart: prepared.expected.periodStart,
107
+ periodEnd: prepared.expected.periodEnd,
108
+ },
109
+ };
79
110
  const sdk = new BetterStripe(components.betterStripe, {
80
111
  STRIPE_SECRET_KEY: "sk_test_invalid_owner_core",
81
112
  });
@@ -107,13 +138,13 @@ export async function initialOperations(
107
138
  await Promise.all(
108
139
  Array.from({ length: count }, async (_, index) => {
109
140
  const logicalOperationId =
110
- h.record.logicalOperationId + "-owner-" + index;
111
- const recordJSON = canonical({ ...h.record, logicalOperationId });
141
+ record.logicalOperationId + "-owner-" + index;
142
+ const recordJSON = canonical({ ...record, logicalOperationId });
112
143
  const created = await ctx.runMutation(
113
144
  refs.mutations.createAuthorizedOperation,
114
145
  {
115
- authorizationScope: h.record.authorization.scope,
116
- authorizationRevision: h.record.authorization.revision,
146
+ authorizationScope: record.authorization.scope,
147
+ authorizationRevision: record.authorization.revision,
117
148
  logicalOperationId,
118
149
  recordJSON,
119
150
  },
@@ -126,7 +157,7 @@ export async function initialOperations(
126
157
  const fresh = await journal.reserveFreshAttempt({
127
158
  expectedRevision: 0,
128
159
  stage: "attach",
129
- expectedRequestBinding: h.record.requestBinding,
160
+ expectedRequestBinding: record.requestBinding,
130
161
  recordJSON,
131
162
  });
132
163
  assert(fresh.result.disposition === "acquired" && fresh.call);