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

44 lines
1.5 KiB
C

#define _POSIX_C_SOURCE 200809L
#include "profile.h"
#include <inttypes.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(void)
{
Bank bank;
char *line = NULL;
size_t capacity = 0;
ssize_t length;
bank_init(&bank);
while ((length = getline(&line, &capacity, stdin)) >= 0) {
CommandResult result;
Summary summary;
if (length > 0 && line[length - 1] == '\n') {
line[length - 1] = '\0';
}
bank_command(&bank, line, &result);
bank_summary(&bank, &summary);
printf("%d %" PRIu64 " %zu %" PRId64 " %" PRId64 " %" PRId64,
result.rc, bank.epoch, summary.count, summary.x_total,
summary.y_total, summary.limit_total);
printf(" %zu %zu %" PRIu64, summary.negative_gains,
summary.zero_limits, summary.digest);
printf(" %" PRId64 " %" PRId64 " %" PRId64 " %d",
result.measurement.raw, result.measurement.value,
result.measurement.distance, result.measurement.clipped);
for (int64_t id = 0; id < BANK_CAPACITY; ++id) {
Profile profile = {0};
uint64_t revision = 0;
int rc = bank_get(&bank, id, &profile, &revision);
printf(" %d %" PRIu64, rc, revision);
printf(" %" PRId64 " %" PRId64 " %" PRId64 " %" PRId64 " %" PRId64,
profile.x, profile.y, profile.gain, profile.bias, profile.limit);
}
putchar('\n');
}
free(line);
return ferror(stdin) || ferror(stdout) ? 2 : 0;
}