amos 2f32624d3b Batch 18 (20261026-C-hwe-codegen-18): add 100 calibrated HWE code-gen tasks; pause production for rollout
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>
2026-10-27 17:52:13 +08:00

14 lines
2.2 KiB
JSON

{
"seed": 271828182,
"candidates": [
"hotplug.hpp",
"cohort.cpp",
"cpu_set.cpp",
"ledger.cpp",
"inspect.cpp"
],
"context": {
"observer.cpp": "#include \"hotplug.hpp\"\n#include <iostream>\n#include <limits>\n#include <sstream>\n#include <string>\n\nnamespace {\nbool decimal(const std::string &token, long long &result) {\n std::size_t position = 0;\n bool negative = false;\n if (!token.empty() && (token[0] == '+' || token[0] == '-')) {\n negative = token[0] == '-';\n ++position;\n }\n if (position == token.size()) {\n return false;\n }\n const auto maximum = static_cast<std::uint64_t>(std::numeric_limits<long long>::max());\n const auto limit = maximum + (negative ? 1U : 0U);\n std::uint64_t value = 0;\n for (; position < token.size(); ++position) {\n const char digit = token[position];\n if (digit < '0' || digit > '9') {\n return false;\n }\n const auto number = static_cast<unsigned>(digit - '0');\n if (value > (limit - number) / 10) {\n return false;\n }\n value = value * 10 + number;\n }\n if (negative && value == maximum + 1U) {\n result = std::numeric_limits<long long>::min();\n } else {\n result = static_cast<long long>(value);\n if (negative) {\n result = -result;\n }\n }\n return true;\n}\n}\n\nint main() {\n hotplug::Engine engine;\n std::string line;\n while (std::getline(std::cin, line)) {\n std::istringstream input(line);\n hotplug::Command command;\n if (!(input >> command.name)) {\n continue;\n }\n std::string token;\n bool valid = true;\n while (input >> token) {\n long long number = 0;\n if (!decimal(token, number)) {\n valid = false;\n } else {\n command.args.push_back(number);\n }\n }\n if (!valid) {\n command.name = \"?\";\n command.args.clear();\n }\n const int result = engine.execute(command);\n std::cout << engine.observe(result);\n }\n return 0;\n}\n"
}
}