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
..

Line service

This is a software model of an output-line controller. It runs in an ordinary Linux process with a C11 compiler and the standard C library. No kernel headers, board, network, or clock are used.

Build with make. Run make smoke to reproduce the support report. The three result objects should describe a held line, a failed replacement that still describes the held line, and the same held line. The provider error in the second result is -13. Read docs/contract.md for the complete API and console behavior.

The submitted files are include/line_service.h, src/internal.h, src/acquire.c, src/service.c, src/codec.c, and src/console.c. Only these files are collected and scored. New files are not collected. Keep their declared C11 interfaces usable and provide one console entry point among the submitted C files. Definitions may move between these translation units. The Makefile and documentation are supplied context.

src/internal.h contains implementation helpers; their names and layout are not part of the public API. The public API is in include/line_service.h and is described in the contract. The fields of ls_service and ls_slot are implementation storage; callers use the functions rather than inspecting or changing that storage.