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

42 lines
907 B
C

#ifndef READY_OBSERVER_H
#define READY_OBSERVER_H
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
#include "trace.h"
typedef struct {
uint32_t id;
uint16_t mask;
unsigned budget;
unsigned hold;
size_t count;
uint16_t frames[256];
} Job;
typedef struct {
const Job *job;
unsigned cursor;
unsigned reads;
unsigned checkpoints;
Trace *trace;
} Port;
typedef struct {
uint32_t id;
unsigned outcome;
unsigned reads;
unsigned checkpoints;
uint16_t last;
unsigned streak;
} Observation;
void port_init(Port *port, const Job *job);
int port_read(Port *port, uint16_t *value);
int port_checkpoint(Port *port);
int observer_run(Port *port, const Job *job, Observation *out);
int read_jobs(FILE *stream, Job **out_jobs, size_t *out_count);
void free_jobs(Job *jobs);
int write_observation(FILE *stream, const Observation *out);
#endif