function validate(ctx, content)
if ctx.affects == nil then
return "ctx.affects is nil"
end
for _, affected in ipairs(ctx.affects) do
if affected.content ~= content then
return "block '" .. affected.name .. "' in " .. affected.file .. " is out of sync"
end
end
return nil
end