Engineering
Commit related skill state changes atomically
Protect durable local records when a workflow stops between steps.
A skill may update its local manifest and separately record that a result is verified. If a process stops between those operations, later sessions can trust a status that disagrees with the available artifact. Group changes that must be observed together where the storage system supports it.
Identify the consistency boundary
Store related status fields and references in one transaction if they share a transactional database. For a generated file, validate the written content using the intended reader before referencing it as complete. A database transaction cannot by itself guarantee a separate remote service committed an operation.
Plan for interruption outside the transaction
Document how the workflow finds orphaned files or uncertain remote actions. Preserve an operation identifier for reconciliation. Use temporary paths and an appropriate finalization mechanism for local files according to your filesystem’s guarantees, keeping user-visible references separate until their content is ready.
Exercise conflicting writers
Start two workers updating the same synthetic record. Verify failure and retry behavior under the selected database mode. An explicit conflict should be distinguishable from a silent overwrite, and any retry should preserve the semantics of the original user request.