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

36 lines
654 B
C++

#include "model.hpp"
namespace lineirq {
Reply Controller::disable(long long id)
{
if (!in_range(id)) {
return result(-1);
}
View& line = lines_[id];
if (!line.live) {
return result(-2);
}
if (line.depth == 8) {
return result(-9);
}
++line.depth;
++counters_[2];
return result(0);
}
Reply Controller::enable(long long id)
{
if (!in_range(id)) {
return result(-1);
}
View& line = lines_[id];
if (!line.live) {
return result(-2);
}
if (line.depth == 0) {
return result(-6);
}
--line.depth;
++counters_[3];
return result(0);
}
}