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>
49 lines
1.2 KiB
C++
49 lines
1.2 KiB
C++
#ifndef JUMP_HPP
|
|
#define JUMP_HPP
|
|
#include <cstdint>
|
|
#include <iosfwd>
|
|
#include <memory>
|
|
namespace jumpmodel {
|
|
enum Code { OK=0, RANGE=1, EXISTS=2, FULL=3, EMPTY=4, MISSING=5, VACANT=6, STALE=7 };
|
|
struct Reply { int code=OK; int value=-1; };
|
|
struct FrameView {
|
|
int code=EMPTY;
|
|
int id=-1;
|
|
int local=0;
|
|
int returned=0;
|
|
std::uint64_t token=0;
|
|
};
|
|
struct ContextView {
|
|
int code=OK;
|
|
int state=0;
|
|
int owner=-1;
|
|
std::uint64_t token=0;
|
|
int resumes=0;
|
|
};
|
|
struct CliReply { int lines=0; int errors=0; bool limited=false; };
|
|
class Machine {
|
|
public:
|
|
Machine();
|
|
~Machine();
|
|
Machine(const Machine&)=delete;
|
|
Machine& operator=(const Machine&)=delete;
|
|
Machine(Machine&&)=delete;
|
|
Machine& operator=(Machine&&)=delete;
|
|
Reply enter(int id,int local);
|
|
Reply leave();
|
|
Reply store(int id,int local);
|
|
Reply save(int slot);
|
|
Reply jump(int slot,int value);
|
|
Reply clear(int slot);
|
|
FrameView frame(int index) const;
|
|
ContextView context(int slot) const;
|
|
FrameView top() const;
|
|
int depth() const;
|
|
private:
|
|
struct Impl;
|
|
std::unique_ptr<Impl> p;
|
|
};
|
|
CliReply run_cli(Machine&,std::istream&,std::ostream&);
|
|
}
|
|
#endif
|