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

35 lines
763 B
C

#ifndef CODE_CONSOLE_H
#define CODE_CONSOLE_H
#include "window.h"
#include <stdio.h>
#define CW_LINE_LIMIT 1023u
#define CW_TOKEN_LIMIT 32u
typedef enum {
CMD_BAD,
CMD_RESET,
CMD_INSTALL,
CMD_PATCH,
CMD_DROP,
CMD_EXECUTE
} CommandKind;
typedef struct {
CommandKind kind;
unsigned slot;
unsigned first;
unsigned count;
uint64_t expected;
uint32_t input;
uint16_t words[CW_CAPACITY];
} Command;
typedef enum {
LINE_END = 0,
LINE_TEXT = 1,
LINE_LONG = 2,
LINE_IO = 3
} LineStatus;
LineStatus console_line(FILE *stream, char *buffer, size_t capacity);
int console_ignored(const char *line);
Command console_parse(char *line);
CodeResult dispatch(CodeWorkbench *work, const Command *command);
#endif