amos 8b7616bfd8 Batch 22 (20261027-C-hwe-hard-22): add 63 calibrated HWE hard-design tasks
From the 101 lk/man/pth code-gen sources: 63 tasks (C11 36, C++17 27,
11 canonical families), 38 skipped for scope or duplication. Each task
has at least one independent contract-edge defect, boundary types
rotate, and public docs state trap clauses as plain contract prose.
Claude reviewed 63/63 USABLE against current digests. Difficulty is
unmeasured.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 16:14:57 +08:00
..

Address-mask negotiation console

This is an original user-space model, built with C11 and the standard library. It models address-width requests and deterministic failures; it does not perform real DMA. Run make smoke to build and print the observations from smoke.txt. A successful build exits 0. The console exits 0 after processing valid command records; library failures are data in stdout. No external service, privilege or hardware is required.

Read docs/contract.md before changing the library. All behavior in that document is required. Only these files are collected and graded: dma.h, mask.c, device.c, policy.c, config.c, status.c. Additional files are allowed but are not collected. The evaluator uses the supplied public ABI and a fresh copy of the observation console and simulation backend; modifying the console, backend, Makefile, smoke input or documentation does not change the evaluated program. Preserve the declared structures, field types, constants and function signatures. Implementations may use any algorithm consistent with the contract and may rearrange code among the six collected files.

The command language and observations are documented in docs/contract.md. stdout is UTF-8, one JSON array per command; JSON whitespace is insignificant. stderr is diagnostic only. The console contains observations, no assertions. The private evaluator independently computes expected behavior for other legal command sequences.