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>
55 lines
1.5 KiB
C
55 lines
1.5 KiB
C
#ifndef RENDER_API_H
|
|
#define RENDER_API_H
|
|
#include <stddef.h>
|
|
#include <stdint.h>
|
|
#define LABEL_LIMIT 48
|
|
#define TEXT_LIMIT 512
|
|
#define SESSION_LIMIT 64
|
|
#define PORT_SLOTS 16
|
|
struct record {
|
|
int32_t identifier;
|
|
unsigned level;
|
|
int32_t value;
|
|
unsigned char label[LABEL_LIMIT];
|
|
size_t label_length;
|
|
};
|
|
struct command {
|
|
unsigned sequence;
|
|
size_t capacity;
|
|
int allocation_failure;
|
|
int sink_failure;
|
|
struct record record;
|
|
};
|
|
struct render_result {
|
|
int status;
|
|
size_t required;
|
|
size_t emitted;
|
|
};
|
|
struct session {
|
|
unsigned accepted;
|
|
unsigned rejected;
|
|
unsigned last_sequence;
|
|
unsigned successful;
|
|
unsigned failed;
|
|
uint32_t digest;
|
|
};
|
|
enum render_status {
|
|
RENDER_OK = 0,
|
|
RENDER_TRUNCATED = 1,
|
|
RENDER_ALLOC = 2,
|
|
RENDER_SINK = 3,
|
|
RENDER_INVALID = 4
|
|
};
|
|
void session_init(struct session *session);
|
|
int session_parse(const char *line, struct command *command);
|
|
struct render_result session_apply(struct session *session,
|
|
const struct command *command);
|
|
struct render_result render_record(const struct command *command);
|
|
size_t codec_record_size(const struct record *record);
|
|
size_t codec_record_write(const struct record *record, char *target,
|
|
size_t capacity);
|
|
int codec_hex_decode(const char *text, unsigned char *out, size_t *length);
|
|
uint32_t codec_digest(uint32_t previous, const unsigned char *data,
|
|
size_t length);
|
|
#endif
|