100 tasks from the HWE arm-linux code-gen pool (outside the lk/man/pth range given to batch 22), each with at least one independent contract-edge defect and plain public docs. Claude reviewed 100/100 USABLE against current digests; no ID or source overlap with main or batch 22. Difficulty is unmeasured. progress.md records the wrap-up: all Codex sessions and Qwen schedulers stopped for the user's rollout, Qwen results so far (57 HARD of 373), and what is left on each batch branch. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
27 lines
685 B
C++
27 lines
685 B
C++
#include "durable.hpp"
|
|
namespace durable {
|
|
int Domain::publish_many(int id, const std::vector<Number> &payloads, std::vector<Number> &sequences)
|
|
{
|
|
auto found = writers_.find(id);
|
|
if (found == writers_.end()) {
|
|
return -2;
|
|
}
|
|
if (payloads.size() > 16) {
|
|
return -22;
|
|
}
|
|
for (Number payload : payloads) {
|
|
if (!valid_payload(payload)) {
|
|
return -22;
|
|
}
|
|
}
|
|
std::vector<Number> assigned;
|
|
assigned.reserve(payloads.size());
|
|
for (Number payload : payloads) {
|
|
const Number sequence = commit(found->second, payload);
|
|
assigned.push_back(sequence);
|
|
}
|
|
sequences.swap(assigned);
|
|
return 0;
|
|
}
|
|
}
|