amos 9d633e9e67 Batch 15 (20261023-C-hwe-scale-15): 320 HWE-derived repair tasks
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>
2026-10-27 01:55:56 +08:00

27 lines
917 B
C

#ifndef STATIC_BATCH_H
#define STATIC_BATCH_H
#include <stddef.h>
#include <stdint.h>
#include "store.h"
enum { BATCH_LIMIT = 32, BATCH_WRITE = 1, BATCH_APPEND = 2,
BATCH_PATCH = 3, BATCH_ERASE = 4, BATCH_COPY = 5,
BATCH_REVERSE = 6, BATCH_ROTATE = 7, BATCH_XOR = 8,
BATCH_FILL = 9, BATCH_SWAP = 10 };
typedef struct {
int kind;
int slot;
int peer;
size_t offset;
size_t length;
unsigned char value;
unsigned char data[STORE_CAPACITY];
} batch_operation;
int batch_apply(const batch_operation *operations, size_t count, size_t *failed_at);
uint32_t batch_fingerprint(void);
int batch_export(int slot, unsigned char *output, size_t capacity, size_t *written);
int batch_import(int slot, const unsigned char *input, size_t length);
int batch_slice(int slot, size_t offset, size_t length,
unsigned char *output, size_t capacity, size_t *written);
#endif