pub fn plan_claim(
schema_name: &str,
registry: &Registry,
ctx: Option<&Context>,
filter: &Value,
update: &Value,
sort: Option<&Value>,
limit: i64,
now: i64,
) -> Result<Value, String>Expand description
claim 计划:领取 filter 命中的前 limit 行并写入领取标记。
now 由 Host 注入(core 无时钟与随机源);sort 缺省 [["_id", 1]](FIFO);
limit <= 0 显式拒绝(禁静默取 1——领取语义下静默改值会掩盖调用方错误)。