@aldus-runtime/release 0.2.0-next.4 → 0.2.0-next.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/adapter.d.ts CHANGED
@@ -35,6 +35,21 @@ export type AdapterOutcome = {
35
35
  remoteId?: string;
36
36
  /** Address of the released item, where one is meaningful. */
37
37
  remoteUrl?: string;
38
+ /**
39
+ * Something an operator needs to know about a success (§20; #169 item 4).
40
+ *
41
+ * `failed` has `message` and `pending` has `message?`; `succeeded` had nowhere to put a
42
+ * sentence at all. An adapter that removed a marker from one video of several, or that found
43
+ * no marker and therefore removed nothing, succeeded — and had to discard the only part an
44
+ * operator would have wanted.
45
+ *
46
+ * **Not a channel for a qualified absence.** An adapter that cannot establish remote state
47
+ * returns {@link cannotEstablish} from `lookup`; using this to footnote a fabricated
48
+ * `exists: false` would be the same false record with better documentation (#169 item 3).
49
+ *
50
+ * Already redacted by the adapter (§19.2), like every other adapter-supplied string.
51
+ */
52
+ note?: string;
38
53
  } | {
39
54
  status: "failed";
40
55
  /** Operator-facing reason, already redacted by the adapter (contract §19.2). */
@@ -53,13 +68,51 @@ export type AdapterOutcome = {
53
68
  status: "pending";
54
69
  message?: string;
55
70
  };
71
+ /** @see CannotEstablish */
72
+ declare const CANNOT_ESTABLISH: unique symbol;
73
+ /**
74
+ * The destination could not be queried, so whether it holds the operation is unknown (#169).
75
+ *
76
+ * Distinct from `exists: false` in the way that matters: **`exists: false` is the answer only a
77
+ * completed search can give.** Before this, an adapter that could not establish the answer had two
78
+ * options — return `false` and assert a search nobody performed, or throw and abort the whole
79
+ * reconciliation pass before a single operation executed. Both were forced, and adopters took the
80
+ * first.
81
+ *
82
+ * Minted by {@link cannotEstablish} and not assemblable, because a state that suppresses a
83
+ * publish-safety check must not be reachable by writing an object literal.
84
+ */
85
+ export interface CannotEstablish {
86
+ readonly [CANNOT_ESTABLISH]: "cannot_establish";
87
+ /**
88
+ * Why the answer could not be established, for the operator (§20).
89
+ *
90
+ * **Required.** An adapter that cannot establish something and cannot say why has produced a
91
+ * finding nobody can act on — a rate limit, a permission, and a destination that does not retain
92
+ * what would identify the operation are three different problems with three different responses.
93
+ */
94
+ readonly reason: string;
95
+ }
96
+ /**
97
+ * Declare that the destination could not be queried (§17, §19.1; #169).
98
+ *
99
+ * @throws {AldusError} when the reason is empty.
100
+ */
101
+ export declare function cannotEstablish(reason: string): CannotEstablish;
102
+ /** Whether a remote state is an issued {@link CannotEstablish}. Membership, not shape. */
103
+ export declare function isCannotEstablish(state: RemoteState): state is CannotEstablish;
56
104
  /** What reconciliation found at the destination. */
57
- export interface RemoteState {
58
- /** Whether the destination holds the result of this operation. */
105
+ export type RemoteState = {
106
+ /**
107
+ * Whether the destination holds the result of this operation.
108
+ *
109
+ * `false` asserts a **completed search**. An adapter that did not or could not search
110
+ * returns {@link cannotEstablish} instead.
111
+ */
59
112
  exists: boolean;
60
113
  remoteId?: string;
61
114
  remoteUrl?: string;
62
- }
115
+ } | CannotEstablish;
63
116
  /**
64
117
  * An adopter's implementation for one destination.
65
118
  *
@@ -97,14 +150,29 @@ export declare class AdapterRegistry {
97
150
  */
98
151
  require(destination: string): ReleaseAdapter;
99
152
  }
100
- /** Scripted behaviour for {@link RecordingReleaseAdapter}. */
101
153
  export interface RecordingAdapterOptions {
102
154
  /** Outcome per `operationId`. Anything unlisted succeeds. */
103
155
  outcomes?: Readonly<Record<string, AdapterOutcome>>;
104
- /** Remote state per idempotency key, as reconciliation would find it. */
105
- remote?: Readonly<Record<string, RemoteState>>;
156
+ /**
157
+ * Remote state per idempotency key, as reconciliation would find it.
158
+ *
159
+ * A plain object or a `Map`, because the field it becomes is a `Map` and seeding it with one is
160
+ * the natural mistake. `Object.entries(aMap)` is `[]`, so a `Map` used to seed **nothing**, with
161
+ * no error — and every lookup then fell through to `{ exists: false }`, which reads as a
162
+ * completed search finding nothing. The same trap as an adapter returning `{ present: false }`:
163
+ * an input accepted quietly and answered as though nothing was there.
164
+ */
165
+ remote?: Readonly<Record<string, RemoteState>> | ReadonlyMap<string, RemoteState>;
106
166
  /** Omit `lookup` entirely, modelling a destination that cannot be queried. */
107
167
  withoutLookup?: boolean;
168
+ /**
169
+ * Make `lookup` throw for these `operationId`s, modelling an unanticipated query failure.
170
+ *
171
+ * Distinct from returning {@link cannotEstablish}: an adapter that knows it cannot answer says
172
+ * so, and this is the adapter that does not know — a quota error, a dropped connection. The
173
+ * executor has to survive both (#169).
174
+ */
175
+ lookupThrowsFor?: readonly string[];
108
176
  }
109
177
  /**
110
178
  * A test double that records what it was asked to do.
@@ -137,4 +205,5 @@ export declare class RecordingReleaseAdapter implements ReleaseAdapter {
137
205
  /** How many times an operation was actually sent to the destination. */
138
206
  executionCount(operationId: string): number;
139
207
  }
208
+ export {};
140
209
  //# sourceMappingURL=adapter.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../src/adapter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAGvD,sCAAsC;AACtC,MAAM,WAAW,cAAc;IAC7B,qCAAqC;IACrC,SAAS,EAAE,gBAAgB,CAAC;IAC5B;;;;;;OAMG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB,kCAAkC;IAClC,KAAK,EAAE,MAAM,CAAC;CACf;AAED,oCAAoC;AACpC,MAAM,MAAM,cAAc,GACtB;IACE,MAAM,EAAE,WAAW,CAAC;IACpB,qEAAqE;IACrE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,6DAA6D;IAC7D,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GACD;IACE,MAAM,EAAE,QAAQ,CAAC;IACjB,gFAAgF;IAChF,OAAO,EAAE,MAAM,CAAC;IAChB,wFAAwF;IACxF,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,GACD;IACE;;;;;;;OAOG;IACH,MAAM,EAAE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} from "./errors.js";
16
+ /**
17
+ * Authorities this process minted. A cast cannot manufacture membership.
18
+ *
19
+ * The same runtime proof `SynthesisPermit` uses, and for the same reason: the brand above is a
20
+ * phantom, absent at runtime, so a `RemoteState` narrowing that trusted it would trust a type
21
+ * assertion. #170 has the longer version of this argument — a check that assumes the type it is
22
+ * checking is not a check.
23
+ */
24
+ const ISSUED_CANNOT_ESTABLISH = new WeakSet();
25
+ /**
26
+ * Declare that the destination could not be queried (§17, §19.1; #169).
27
+ *
28
+ * @throws {AldusError} when the reason is empty.
29
+ */
30
+ export function cannotEstablish(reason) {
31
+ if (typeof reason !== "string" || reason.trim().length === 0) {
32
+ throw releaseError(ReleaseErrorCodes.OPERATION_INVALID, "An unestablished remote state must say why. A rate limit, a permission problem and a " +
33
+ "destination that does not retain what identifies the operation call for three different " +
34
+ "responses, and an operator cannot tell them apart from the absence of an answer (§17).", { category: "validation", retryable: false, details: {} });
35
+ }
36
+ const state = { reason };
37
+ ISSUED_CANNOT_ESTABLISH.add(state);
38
+ return state;
39
+ }
40
+ /** Whether a remote state is an issued {@link CannotEstablish}. Membership, not shape. */
41
+ export function isCannotEstablish(state) {
42
+ return typeof state === "object" && state !== null && ISSUED_CANNOT_ESTABLISH.has(state);
43
+ }
16
44
  /** Adapters by destination. */
17
45
  export class AdapterRegistry {
18
46
  #byDestination = new Map();
@@ -43,6 +71,27 @@ export class AdapterRegistry {
43
71
  return adapter;
44
72
  }
45
73
  }
74
+ /** Scripted behaviour for {@link RecordingReleaseAdapter}. */
75
+ /**
76
+ * Build the remote-state map from either accepted shape, and refuse anything else.
77
+ *
78
+ * Refusing rather than tolerating, because the failure this replaces was silence: a mis-seeded
79
+ * harness answered every lookup as a completed search finding nothing, and a test written against
80
+ * it would assert the wrong behaviour and pass. A double that lies quietly is worse than one that
81
+ * will not start.
82
+ */
83
+ function seedRemote(remote) {
84
+ if (remote === undefined)
85
+ return new Map();
86
+ if (remote instanceof Map)
87
+ return new Map(remote);
88
+ if (typeof remote === "object" && remote !== null && !Array.isArray(remote)) {
89
+ return new Map(Object.entries(remote));
90
+ }
91
+ throw releaseError(ReleaseErrorCodes.OPERATION_INVALID, "A recording adapter's `remote` seed must be a plain object or a Map keyed by idempotency " +
92
+ "key. Anything else seeds nothing, and every lookup then answers as a completed search " +
93
+ "that found nothing — which is the defect this double is used to test for.", { category: "validation", retryable: false, details: {} });
94
+ }
46
95
  /**
47
96
  * A test double that records what it was asked to do.
48
97
  *
@@ -72,10 +121,13 @@ export class RecordingReleaseAdapter {
72
121
  constructor(destination, options = {}) {
73
122
  this.destination = destination;
74
123
  this.#options = options;
75
- this.remote = new Map(Object.entries(options.remote ?? {}));
124
+ this.remote = seedRemote(options.remote);
76
125
  if (options.withoutLookup !== true) {
77
126
  this.lookup = (request) => {
78
127
  this.lookedUp.push(request);
128
+ if (options.lookupThrowsFor?.includes(request.operation.operationId) === true) {
129
+ return Promise.reject(new Error("destination query failed"));
130
+ }
79
131
  return Promise.resolve(this.remote.get(request.idempotencyKey) ?? { exists: false });
80
132
  };
81
133
  }
@@ -1 +1 @@
1
- {"version":3,"file":"adapter.js","sourceRoot":"","sources":["../src/adapter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAGH,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AA4E9D,+BAA+B;AAC/B,MAAM,OAAO,eAAe;IACjB,cAAc,GAAG,IAAI,GAAG,EAA0B,CAAC;IAE5D,YAAY,QAAQ,GAA8B,EAAE;QAClD,KAAK,MAAM,OAAO,IAAI,QAAQ;YAAE,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;IACzD,CAAC;IAED,2EAA2E;IAC3E,QAAQ,CAAC,OAAuB;QAC9B,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,OAAO,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;IACxD,CAAC;IAED,qDAAqD;IACrD,IAAI,CAAC,WAAmB;QACtB,OAAO,IA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I,OAAO,CAAC,MAAM,KAAK,WAAW,EAAE,CAAC;YACnC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,cAAc,EAAE;gBACtC,MAAM,EAAE,IAAI;gBACZ,GAAG,CAAC,OAAO,CAAC,QAAQ,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,OAAO,CAAC,QAAQ,EAAE,CAAC;gBACzE,GAAG,CAAC,OAAO,CAAC,SAAS,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,OAAO,CAAC,SAAS,EAAE,CAAC;aAC7E,CAAC,CAAC;QACL,CAAC;QACD,OAAO,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IAClC,CAAC;IAED,wEAAwE;IACxE,cAAc,CAAC,WAAmB;QAChC,OAAO,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,SAAS,CAAC,WAAW,KAAK,WAAW,CAAC,CAAC,MAAM,CAAC;IACjG,CAAC;CACF"}
package/dist/bundle.d.ts CHANGED
@@ -51,6 +51,17 @@ export declare function assertBundleValid(bundle: ReleaseBundle): void;
51
51
  *
52
52
  * Input hashes are sorted before digesting: the set of things released is what matters, not the
53
53
  * order a caller happened to list them in.
54
+ *
55
+ * **The bundle's identity is deliberately not part of the key** (ADR-0033). It was, and that
56
+ * defeated the sentence above: nothing stores a `ReleaseBundle`, so a caller resuming after a
57
+ * crash reassembles one — and a reassembled bundle with a fresh `bundleId` produced a fresh key
58
+ * for every operation, matched no receipt, and re-executed the lot. Measured before the change:
59
+ * an equivalent bundle under a new id re-ran all three operations, including the media upload and
60
+ * the visibility transition (#40).
61
+ *
62
+ * What identifies an operation is what it does: this kind of operation, against this destination,
63
+ * over these exact bytes. Two bundles agreeing on all three are asking for the same external
64
+ * effect, and §19.1 requires that effect to happen once.
54
65
  */
55
- export declare function deriveIdempotencyKey(bundleId: string, operation: ReleaseOperation): string;
66
+ export declare function deriveIdempotencyKey(operation: ReleaseOperation): string;
56
67
  //# sourceMappingURL=bundle.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"bundle.d.ts","sourceRoot":"","sources":["../src/bundle.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAKH,OAAO,KAAK,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAE/F;;;;;;GAMG;AACH,MAAM,WAAW,aAAa;IAC5B,0EAA0E;IAC1E,QAAQ,EAAE,MAAM,CAAC;IACjB,iDAAiD;IACjD,KAAK,EAAE,MAAM,CAAC;IACd,0EAA0E;IAC1E,SAAS,EAAE,MAAM,CAAC;IAClB,sEAAsE;IACtE,QAAQ,EAAE,SAAS,iBAAiB,EAAE,CAAC;IACvC,6FAA6F;IAC7F,UAAU,EAAE,SAAS,mBAAmB,EAAE,CAAC;CAC5C;AAED,uEAAuE;AACvE,wBAAgB,YAAY,CAAC,MAAM,EAAE,aAAa,GAAG,SAAS,gBAAgB,EAAE,CAE/E;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,aAAa,GAAG,IAAI,CA2B7D;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,gBAAgB,GAAG,MAAM,CAS1F"}
1
+ {"version":3,"file":"bundle.d.ts","sourceRoot":"","sources":["../src/bundle.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAKH,OAAO,KAAK,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAE/F;;;;;;GAMG;AACH,MAAM,WAAW,aAAa;IAC5B,0EAA0E;IAC1E,QAAQ,EAAE,MAAM,CAAC;IACjB,iDAAiD;IACjD,KAAK,EAAE,MAAM,CAAC;IACd,0EAA0E;IAC1E,SAAS,EAAE,MAAM,CAAC;IAClB,sEAAsE;IACtE,QAAQ,EAAE,SAAS,iBAAiB,EAAE,CAAC;IACvC,6FAA6F;IAC7F,UAAU,EAAE,SAAS,mBAAmB,EAAE,CAAC;CAC5C;AAED,uEAAuE;AACvE,wBAAgB,YAAY,CAAC,MAAM,EAAE,aAAa,GAAG,SAAS,gBAAgB,EAAE,CAE/E;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,aAAa,GAAG,IAAI,CAiE7D;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,gBAAgB,GAAG,MAAM,CAQxE"}
package/dist/bundle.js CHANGED
@@ -40,6 +40,38 @@ export function assertBundleValid(bundle) {
40
40
  });
41
41
  }
42
42
  seen.add(operation.operationId);
43
+ // Checked at runtime, because the type is not the enforcement. `repeatable()` refuses an empty
44
+ // reason and nothing stops a caller writing `{ reason: "" } as RepeatableDeclaration` — and
45
+ // the code that will assemble operations from configuration is exactly the code that does
46
+ // that. Without this the operation was treated as repeatable and the warning ended in a bare
47
+ // colon where the justification should be.
48
+ //
49
+ // Higher stakes than the usual version of this argument: the declaration licenses performing
50
+ // an external effect more than once, and §13.4 binds a release approval to the bundle, so a
51
+ // blank reason is an approval of nothing.
52
+ //
53
+ // The **shape** as well as the emptiness. The first version read `repeatable.reason.trim()`,
54
+ // which assumes `reason` is a string — the assumption this check exists because it cannot
55
+ // make. `repeatable: true` is the single most likely thing someone writes in a config file
56
+ // when they mean this, and it threw a bare `TypeError` with no code, no bundle or operation
57
+ // id, and no sentence saying what was wrong. Fail-closed, so nothing unsafe happened; what was
58
+ // lost was the refusal, arriving from exactly the source the paragraph above names.
59
+ const declaration = operation.repeatable;
60
+ if (declaration !== undefined) {
61
+ const reason = typeof declaration === "object" && declaration !== null
62
+ ? declaration.reason
63
+ : undefined;
64
+ if (typeof reason !== "string" || reason.trim().length === 0) {
65
+ throw releaseError(ReleaseErrorCodes.OPERATION_INVALID, `Release bundle "${bundle.bundleId}" declares "${operation.operationId}" safe to ` +
66
+ "repeat without a usable reason. Repeating an external effect is something an " +
67
+ "approver accepts, and neither a blank justification nor a value that is not a " +
68
+ "declaration is something anyone can approve. Build it with `repeatable(reason)` " +
69
+ "(contract §13.4, §17).", {
70
+ category: "validation",
71
+ details: { bundleId: bundle.bundleId, operationId: operation.operationId },
72
+ });
73
+ }
74
+ }
43
75
  }
44
76
  }
45
77
  /**
@@ -53,10 +85,20 @@ export function assertBundleValid(bundle) {
53
85
  *
54
86
  * Input hashes are sorted before digesting: the set of things released is what matters, not the
55
87
  * order a caller happened to list them in.
88
+ *
89
+ * **The bundle's identity is deliberately not part of the key** (ADR-0033). It was, and that
90
+ * defeated the sentence above: nothing stores a `ReleaseBundle`, so a caller resuming after a
91
+ * crash reassembles one — and a reassembled bundle with a fresh `bundleId` produced a fresh key
92
+ * for every operation, matched no receipt, and re-executed the lot. Measured before the change:
93
+ * an equivalent bundle under a new id re-ran all three operations, including the media upload and
94
+ * the visibility transition (#40).
95
+ *
96
+ * What identifies an operation is what it does: this kind of operation, against this destination,
97
+ * over these exact bytes. Two bundles agreeing on all three are asking for the same external
98
+ * effect, and §19.1 requires that effect to happen once.
56
99
  */
57
- export function deriveIdempotencyKey(bundleId, operation) {
100
+ export function deriveIdempotencyKey(operation) {
58
101
  const material = JSON.stringify({
59
- bundleId,
60
102
  operationId: operation.operationId,
61
103
  kind: operation.kind,
62
104
  destination: operation.destination,
@@ -1 +1 @@
1
- {"version":3,"file":"bundle.js","sourceRoot":"","sources":["../src/bundle.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAuB9D,uEAAuE;AACvE,MAAM,UAAU,YAAY,CAAC,MAAq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C;YACJ,CAAC;QACH,CAAC;IACH,CAAC;AACH,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,UAAU,oBAAoB,CAAC,SAA2B;IAC9D,MAAM,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC;QAC9B,WAAW,EAAE,SAAS,CAAC,WAAW;QAClC,IAAI,EAAE,SAAS,CAAC,IAAI;QACpB,WAAW,EAAE,SAAS,CAAC,WAAW;QAClC,WAAW,EAAE,CAAC,GAAG,SAAS,CAAC,WAAW,CAAC,CAAC,IAAI,EAAE;KAC/C,CAAC,CAAC;IACH,OAAO,UAAU,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AACrE,CAAC"}
package/dist/errors.d.ts CHANGED
@@ -24,6 +24,13 @@ export declare const ReleaseErrorCodes: {
24
24
  readonly DUPLICATE_OPERATION: "ALDUS_RELEASE_DUPLICATE_OPERATION";
25
25
  /** A bundle was constructed with no operations at all. */
26
26
  readonly EMPTY_BUNDLE: "ALDUS_RELEASE_EMPTY_BUNDLE";
27
+ /**
28
+ * An operation declaration is not usable as written (#169).
29
+ *
30
+ * Today: a repeatable declaration with no reason. It licenses performing an external effect more
31
+ * than once, and an approver cannot accept that from a bare flag (§13.4, §17).
32
+ */
33
+ readonly OPERATION_INVALID: "ALDUS_RELEASE_OPERATION_INVALID";
27
34
  /**
28
35
  * A required operation failed, so the release did not complete.
29
36
  *
@@ -1 +1 @@
1
- {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,UAAU,EAAE,KAAK,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAErE,kDAAkD;AAClD,eAAO,MAAM,iBAAiB;IAC5B;;;;;;;OAOG;aACH,sBAAsB,EAAE,8BAA8B;IACtD,+DAA+D;aAC/D,sBAAsB,EAAE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M,gBAAgB,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,OAAO,iBAAiB,CAAC,CAAC;AAE1F,2DAA2D;AAC3D,wBAAgB,YAAY,CAC1B,IAAI,EAAE,gBAAgB,EACtB,OAAO,EAAE,MAAM,EACf,OAAO,EAAE;IAAE,QAAQ,EAAE,aAAa,CAAC;IAAC,SAAS,CAAC,EAAE,OAAO,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAAE,GAC3F,UAAU,CAEZ"}
package/dist/errors.js CHANGED
@@ -24,6 +24,13 @@ export const ReleaseErrorCodes = {
24
24
  DUPLICATE_OPERATION: "ALDUS_RELEASE_DUPLICATE_OPERATION",
25
25
  /** A bundle was constructed with no operations at all. */
26
26
  EMPTY_BUNDLE: "ALDUS_RELEASE_EMPTY_BUNDLE",
27
+ /**
28
+ * An operation declaration is not usable as written (#169).
29
+ *
30
+ * Today: a repeatable declaration with no reason. It licenses performing an external effect more
31
+ * than once, and an approver cannot accept that from a bare flag (§13.4, §17).
32
+ */
33
+ OPERATION_INVALID: "ALDUS_RELEASE_OPERATION_INVALID",
27
34
  /**
28
35
  * A required operation failed, so the release did not complete.
29
36
  *
@@ -1 +1 @@
1
- {"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,UAAU,EAAsB,MAAM,qBAAqB,CAAC;AAErE,kDAAkD;AAClD,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B;;;;;;;OAOG;IACH,sBAAsB,EAAE,8BAA8B;IACtD,+DAA+D;IAC/D,sBAAsB,EAAE,sCAAsC;IAC9D,oEAAoE;IACpE,mBAAmB,EAAE,mCAAmC;IACxD,0DAA0D;IAC1D,YAAY,EAAE,4BAA4B;IAC1C;;;;;;OAMG;IACH,yBAAyB,EAAE,yCAAyC;IACpE;;;;;;OAMG;IACH,gBAAgB,EAAE,gCAAgC;IAClD;;;;;;OAMG;IACH,0BAA0B,EAAE,0CAA0C;CAC9D,CAAC;AAKX,2DAA2D;AAC3D,MAAM,UAAU,YAAY,CAC1B,IAAsB,EACtB,OAAe,EACf,OAA4F;IAE5F,OAAO,IAAI,UAAU,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;AAChD,CAAC"}
1
+ {"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,UAAU,EAAsB,MAAM,qBAAqB,CAAC;AAErE,kDAAkD;AAClD,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B;;;;;;;OAOG;IACH,sBAAsB,EAAE,8BAA8B;IACtD,+DAA+D;IAC/D,sBAAsB,EAAE,sCAAsC;IAC9D,oEAAoE;IACpE,mBAAmB,EAAE,mCAAmC;IACxD,0DAA0D;IAC1D,YAAY,EAAE,4BAA4B;IAC1C;;;;;OAKG;IACH,iBAAiB,EAAE,iCAAiC;IACpD;;;;;;OAMG;IACH,yBAAyB,EAAE,yCAAyC;IACpE;;;;;;OAMG;IACH,gBAAgB,EAAE,gCAAgC;IAClD;;;;;;OAMG;IACH,0BAA0B,EAAE,0CAA0C;CAC9D,CAAC;AAKX,2DAA2D;AAC3D,MAAM,UAAU,YAAY,CAC1B,IAAsB,EACtB,OAAe,EACf,OAA4F;IAE5F,OAAO,IAAI,UAAU,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;AAChD,CAAC"}
@@ -67,7 +67,6 @@ export interface BundleStatus {
67
67
  /** Operation ids that still need to run for the release to complete. */
68
68
  remaining: string[];
69
69
  }
70
- /** What reconciliation did about one operation. */
71
70
  export interface ReconciliationFinding {
72
71
  operationId: string;
73
72
  idempotencyKey: string;
@@ -79,7 +78,21 @@ export interface ReconciliationFinding {
79
78
  /** The destination does not hold it, so the operation genuinely still needs to run. */
80
79
  | "confirmed_absent"
81
80
  /** The adapter cannot query the destination (contract §17 "where the platform allows it"). */
82
- | "unavailable";
81
+ | "unavailable"
82
+ /**
83
+ * The operation declares its effect safe to repeat, so it was not queried (#169).
84
+ *
85
+ * Deliberately its own action rather than folded into `confirmed_absent`. Nothing was
86
+ * searched for, and saying it was absent would be the false statement this exists to stop.
87
+ */
88
+ | "not_reconciled_repeatable"
89
+ /**
90
+ * The adapter was asked and could not establish whether the operation happened (#169).
91
+ *
92
+ * Distinct from `unavailable`, which is a destination that cannot be queried at all, and from
93
+ * `confirmed_absent`, which is a completed search. This one asked and got no answer.
94
+ */
95
+ | "cannot_establish";
83
96
  explanation?: string;
84
97
  }
85
98
  /** What a reconciliation pass found. */
@@ -1 +1 @@
1
- {"version":3,"file":"executor.d.ts","sourceRoot":"","sources":["../src/executor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAc,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAGhF,OAAO,KAAK,EAAE,eAAe,EAAkC,MAAM,cAAc,CAAC;AACpF,OAAO,EAA2C,KAAK,aAAa,EAAE,MAAM,aAAa,CAAC;AAE1F,OAAO,KAAK,EAAE,oBAAoB,EAAoB,MAAM,gBAAgB,CAAC;AAC7E,OAAO,EAAe,KAAK,gBAAgB,EAAE,KAAK,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAC1F,OAAO,EAAuB,KAAK,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAEjF,kCAAkC;AAClC,eAAO,MAAM,gBAAgB;AAC3B,oDAAoD;AACpD,aAAa;AACb,wFAAwF;AACxF,SAAS;AACT,oCAAoC;AACpC,WAAW;AACX,iDAAiD;AACjD,QAAQ;AACR,mEAAmE;AACnE,SAAS,CACD,CAAC;AAEX,4BAA4B;AAC5B,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE/D,sDAAsD;AACtD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