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>
Attribute service
这是普通 Linux 进程中的属性服务演示,不访问内核、设备或时钟。用 make 构建,make smoke 运行公开复现,make clean 清除程序。需要 C++17 标准库和 g++。
docs/contract.md 是完整行为合同。修复后行为须符合该文档全部条款。控制台从 stdin 逐行读命令,stdout 每条命令输出一个 JSON 数组;通知的数组出现在相应写入结果之前。stderr 供诊断使用。命令与观察格式见 docs/console.md。
最终只提交并评分 attribute.hpp、attribute_core.cpp、attribute_value.cpp。其余文件提供构建、合同和公开观察工具;新增文件不会被收集。可以修改内部结构或算法,保留公开类型、签名和行为。正式验收使用相同公开控制台,并直接观察各 helper 的返回和值。