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>
43 lines
1.2 KiB
C++
43 lines
1.2 KiB
C++
#pragma once
|
|
#include <array>
|
|
#include <cstdint>
|
|
#include <istream>
|
|
#include <memory>
|
|
#include <ostream>
|
|
#include <vector>
|
|
namespace sequence {
|
|
struct Record {
|
|
std::int64_t key;
|
|
std::int64_t payload;
|
|
std::int64_t ticket;
|
|
};
|
|
struct Reply {
|
|
int code;
|
|
std::vector<std::int64_t> values;
|
|
};
|
|
struct State {
|
|
std::int64_t next_ticket;
|
|
std::array<std::vector<Record>, 3> banks;
|
|
};
|
|
class Engine {
|
|
public:
|
|
Engine();
|
|
~Engine();
|
|
Engine(const Engine&) = delete;
|
|
Engine& operator=(const Engine&) = delete;
|
|
Reply reset(std::int64_t bank);
|
|
Reply append(std::int64_t bank, std::int64_t key, std::int64_t payload);
|
|
Reply order(std::int64_t bank, std::int64_t descending);
|
|
Reply merge(std::int64_t destination, std::int64_t left,
|
|
std::int64_t right, std::int64_t descending);
|
|
Reply item(std::int64_t bank, std::int64_t index) const;
|
|
Reply range(std::int64_t bank, std::int64_t offset, std::int64_t count) const;
|
|
Reply locate(std::int64_t bank, std::int64_t ticket) const;
|
|
State inspect() const;
|
|
private:
|
|
struct Storage;
|
|
std::unique_ptr<Storage> storage_;
|
|
};
|
|
int run_cli(Engine& engine, std::istream& input, std::ostream& output);
|
|
}
|