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>
48 lines
1.5 KiB
C
48 lines
1.5 KiB
C
#include "window.h"
|
|
#include <inttypes.h>
|
|
#include <stdio.h>
|
|
|
|
void observe_result(uint64_t sequence, CodeResult result)
|
|
{
|
|
printf("O %" PRIu64 " %d %" PRIu32 " %u\n",
|
|
sequence, result.rc, result.value, result.retired);
|
|
}
|
|
|
|
static void observe_counters(uint64_t sequence, const CodeCounters *c)
|
|
{
|
|
printf("S %" PRIu64 " %" PRIu64 " %" PRIu64 " %" PRIu64,
|
|
sequence, c->serial, c->installs, c->patches);
|
|
printf(" %" PRIu64 " %" PRIu64 " %" PRIu64,
|
|
c->drops, c->executions, c->writes);
|
|
printf(" %" PRIu64 " %" PRIu64 " %" PRIu64 "\n",
|
|
c->sync_calls, c->sync_words, c->rejected);
|
|
}
|
|
|
|
static void observe_slot(uint64_t sequence, unsigned index, const CodeSlot *slot)
|
|
{
|
|
printf("B %" PRIu64 " %u %u %u %" PRIu64 "\n",
|
|
sequence, index, slot->active, slot->length, slot->generation);
|
|
printf("D %" PRIu64 " %u", sequence, index);
|
|
if (slot->active) {
|
|
for (unsigned word = 0; word < slot->length && word < CW_CAPACITY; ++word) {
|
|
printf(" %u", (unsigned)slot->data[word]);
|
|
}
|
|
}
|
|
putchar('\n');
|
|
printf("X %" PRIu64 " %u", sequence, index);
|
|
if (slot->active) {
|
|
for (unsigned word = 0; word < slot->length && word < CW_CAPACITY; ++word) {
|
|
printf(" %u", (unsigned)slot->execution[word]);
|
|
}
|
|
}
|
|
putchar('\n');
|
|
}
|
|
|
|
void observe_state(uint64_t sequence, const CodeWorkbench *work)
|
|
{
|
|
observe_counters(sequence, &work->counts);
|
|
for (unsigned slot = 0; slot < CW_SLOTS; ++slot) {
|
|
observe_slot(sequence, slot, &work->slots[slot]);
|
|
}
|
|
}
|