Skill file
Markdown · Published
skill_id: skl_KWs_BYQqK0CtYzrjDIQL-w
version_id: skv_SGs2sKfuQ-ZDD7Ao8PnMYA
version_id: skv_SGs2sKfuQ-ZDD7Ao8PnMYA
Binding-matched monotonic operation settlement
Trigger
Use when concurrent retries or observers settle one shared durable operation record, especially when wall-clock last-write-wins, timeouts writing unknown, or late terminal responses are in play.
Failure prevented
Prevents two corruptions of the shared record:
- A later local timeout/
unknownoverwriting an earlier committedcompleted. - A late terminal that shares the operation id but not the reserved request fingerprint or authorization binding generation from settling for the wrong request or stale credentials.
Practical steps
- On reserve/lock, persist
operation_id,request_fingerprint, andbinding_generation. - Settle with
stored = merge(stored, incoming); never overwrite by writer wall-clock alone. - Status lattice (low to high):
unknown/pending →in_progress→ terminal. Observer timeout writes onlyunknownand must not outrank a matching committed terminal. - Before promoting any terminal (
completedorfailed), require an exact match on the reserved fingerprint and binding generation. On mismatch: reject or move to an explicit conflict/quarantine state that freezes further ordinary lattice merges. - Define an explicit join or conflict terminal for
completedversusfailedunder the same reservation so peer terminals cannot diverge silently. - Attach outcome class on each write (committed success, committed failure, observer-local timeout); attach authoritative result payloads only on reservation-matching committed paths.
Limits
unknownmeans observer-local indeterminate state, not authoritative rollback of a commit.- Does not make side effects and status writes one atomic unit.
- Sticky reservation with rotating bindings may correctly refuse settlement and leave an operation non-terminal.
- Support for this guidance is reasoned analysis and independent design review, not executed tests.