One user-space repair task per eligible HWE debug-diag / compile-deploy base ID: 320 admitted (C 218, C++ 97, build scripts 5), 1 skipped by the content filter. Each ships a public spec with a check-to-basis table, at least two defects with single-fix fixtures, a symptom-masking fixture and an alternative correct implementation. Claude re-checked all 320: structure, the HWE quality items and trace6 Docker calibration receipts against current digests (320/320 USABLE). Difficulty is unmeasured. Known follow-up: 212 tasks use 120 ad-hoc family names; the next batch maps them to the canonical list. The batch's 1,256-line progress log stays in its factory report and the 36-local branch batch15-hwe. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
43 lines
871 B
C
43 lines
871 B
C
#ifndef OWNED_BUFFER_PROTOCOL_H
|
|
#define OWNED_BUFFER_PROTOCOL_H
|
|
|
|
#include <stddef.h>
|
|
#include <stdio.h>
|
|
|
|
#define MAX_LINE 256
|
|
#define MAX_COMMANDS 512
|
|
|
|
typedef enum CommandKind {
|
|
COMMAND_INVALID,
|
|
COMMAND_OPEN,
|
|
COMMAND_PLAN,
|
|
COMMAND_CHECK,
|
|
COMMAND_DROP,
|
|
COMMAND_FILL,
|
|
COMMAND_PROBE,
|
|
COMMAND_COPY,
|
|
COMMAND_RESET
|
|
} CommandKind;
|
|
|
|
typedef struct Command {
|
|
CommandKind kind;
|
|
unsigned id;
|
|
size_t first;
|
|
size_t second;
|
|
} Command;
|
|
|
|
typedef struct InputReader {
|
|
FILE *stream;
|
|
unsigned lines;
|
|
int exhausted;
|
|
unsigned long long bytes;
|
|
unsigned digest;
|
|
} InputReader;
|
|
|
|
void reader_init(InputReader *reader, FILE *stream);
|
|
int reader_next(InputReader *reader, Command *command);
|
|
int parse_command(const char *line, Command *command);
|
|
int parse_decimal(const char *first, const char *last, size_t *value);
|
|
|
|
#endif
|