@mstar-harness/engine 3.9.2 → 3.9.4

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/audit.d.ts CHANGED
@@ -246,16 +246,17 @@ export type PromoteAuditPlansOptions = {
246
246
  * same root lock `registerWorkflow` uses — so the guard is check-then-act
247
247
  * safe: two concurrent same-id promotes cannot both pass it (one writes
248
248
  * and registers; the other re-checks under the lock and refuses). The
249
- * snapshot is written directly with `writeJson` under the root lock (never
250
- * a nested `writeWorkflowSnapshot` its own snapshot-dir lock would be a
251
- * second serialization point; the root lock must be THE serialization
252
- * point). The root upsert replicates `registerWorkflow` semantics inline
249
+ * snapshot is written create-only through the routed
250
+ * `writeWorkflowSnapshot(snapshot, dir, { createOnly: true })`, whose own
251
+ * snapshot-dir lock nests inside the root lock (root snapshot is the
252
+ * documented acquisition order). The root upsert replicates
253
+ * `registerWorkflow` semantics inline
253
254
  * via the shared `registerWorkflowEntryLocked` helper (calling
254
255
  * `registerWorkflow` itself would re-enter the non-reentrant root lock).
255
256
  *
256
- * On any failure inside the lock, the partial snapshot + now-empty
257
- * workflow dir are rolled back so a retry converges after the root
258
- * conflict is resolved.
257
+ * On any failure inside the lock, the snapshot this call created (and only
258
+ * that exact byte version) plus the now-empty workflow dir are rolled back so
259
+ * a retry converges after the root conflict is resolved.
259
260
  */
260
261
  export declare function promoteAuditPlans(outDir: string, selected: readonly string[], options: PromoteAuditPlansOptions): Promise<{
261
262
  workflowId: string;