Operational Remediation Reports
Once Value Remediation Report
Apply at most one idempotent write and turn the accepted and skipped counts into a commit, skip, or retry remediation action.
Once Value Remediation Report
once_value.lua
local writes =
local accepted = 0
local skipped = 0
for i = 1, writes do
if accepted == 0 then
accepted = accepted + 1
else
skipped = skipped + 1
end
end
local action = "retry"
if accepted >= 1 and skipped >= 1 then
action = "skip"
elseif accepted >= 1 then
action = "commit"
end
print("writes=" .. writes .. " accepted=" .. accepted .. " skipped=" .. skipped .. " " .. action)
local writes =
local accepted = 0
local skipped = 0
for i = 1, writes do
if accepted == 0 then
accepted = accepted + 1
else
skipped = skipped + 1
end
end
local action = "retry"
if accepted >= 1 and skipped >= 1 then
action = "skip"
elseif accepted >= 1 then
action = "commit"
end
print("writes=" .. writes .. " accepted=" .. accepted .. " skipped=" .. skipped .. " " .. action)
local writes =
local accepted = 0
local skipped = 0
for i = 1, writes do
if accepted == 0 then
accepted = accepted + 1
else
skipped = skipped + 1
end
end
local action = "retry"
if accepted >= 1 and skipped >= 1 then
action = "skip"
elseif accepted >= 1 then
action = "commit"
end
print("writes=" .. writes .. " accepted=" .. accepted .. " skipped=" .. skipped .. " " .. action)
idempotent write
Only the first write is accepted and later writes are counted as skipped, so the remediation action is reproducible without a live one-shot value guard.