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>
30 lines
678 B
C++
30 lines
678 B
C++
#ifndef SEQUENCE_INTERNAL_HPP
|
|
#define SEQUENCE_INTERNAL_HPP
|
|
#include "sequence.hpp"
|
|
#include <map>
|
|
#include <string>
|
|
namespace sequence {
|
|
struct Record {
|
|
std::int64_t id;
|
|
std::int64_t value;
|
|
ByteString payload;
|
|
};
|
|
struct Cursor {
|
|
std::vector<Record> records;
|
|
std::int64_t length = 0;
|
|
std::int64_t position = 0;
|
|
std::size_t index = 0;
|
|
std::string pending;
|
|
std::size_t used = 0;
|
|
bool active = false;
|
|
};
|
|
struct Engine::Impl {
|
|
std::map<std::int64_t, Record> records;
|
|
std::map<std::int64_t, Cursor> handles;
|
|
};
|
|
bool record_id(std::int64_t id);
|
|
bool handle_id(std::int64_t id);
|
|
std::string render_record(const Record& record);
|
|
}
|
|
#endif
|