amos 73a5240295 Batches 21 and 18: add 74 calibrated tasks (40 Bos redo, 34 HWE code-gen)
Batch 21 (20261027-A-bos-redo-21) rebuilt 40 of the 53 rejected Bos-qiao
environments: hidden assertions that ran inside the candidate's process
now run in a trusted parent that reads observations from a low-UID
worker; gold bytes are unchanged. 9 were excluded for scope (ROS2,
oversize, security core), 3 are blocked because the source requires an
exec bit the platform does not freeze, 1 lacks requests/bs4 in trace6.

Batch 18 (20261026-C-hwe-codegen-18) adds its last 34 of 134 tasks; the
first 100 landed in 2f32624d.

Claude reviewed 74/74 USABLE against current digests, canonical
families, no ID or source overlap with main, plain public docs. Only the
new task directories are taken; the stale pre-batch-20 copies of
concur-release-capsule and resource-temp-link on the batch 21 branch and
both branches' progress notes stay as main has them. Difficulty is
unmeasured.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 10:23:12 +08:00

62 lines
1.8 KiB
C++

#include "internal.hpp"
namespace ag {
Reading Registry::show(Number parent, Number name) const
{
if (!parent_valid(parent) || !name_valid(name)) {
return reading_error(Code::RANGE);
}
auto view=project(state_->events);
auto c=view.cells[parent][name];
if (!c.live) {
return reading_error(Code::ABSENT);
}
return {Code::OK,c.generation,c.owner,c.value,c.writable};
}
Writing Registry::store(Number parent, Number name, Number value, Number count)
{
if (!parent_valid(parent) || !name_valid(name) || !value_valid(value) || !bytes_valid(count)) {
return writing_error(Code::RANGE);
}
auto view=project(state_->events);
auto c=view.cells[parent][name];
if (!c.live) {
return writing_error(Code::ABSENT);
}
if (!c.writable) {
return writing_error(Code::READONLY);
}
if (count>0) {
state_->events.push_back({2,parent,0,name,0,0,0,value});
c.value=value;
}
return {Code::OK,c.generation,c.owner,c.value,count};
}
GroupInfo Registry::group(Number parent, Number id) const
{
if (!parent_valid(parent) || !group_valid(id)) {
return group_error(Code::RANGE);
}
auto view=project(state_->events);
auto g=view.groups[parent][id];
if (!g.live) {
return group_error(Code::ABSENT);
}
return {Code::OK,g.generation,g.first,g.count,g.writable};
}
Listing Registry::list(Number parent) const
{
if (!parent_valid(parent)) {
return listing_error(Code::RANGE);
}
auto view=project(state_->events);
Listing result;
for (Number name=0; name<16; ++name) {
auto c=view.cells[parent][name];
if (c.live) {
result.attributes.push_back({name,c.owner,c.generation,c.value,c.writable});
}
}
return result;
}
}