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

2.7 KiB
Raw Blame History

resource-offset-owned-buffer 规格

  • 来源:路线 C 原创,hwe/cc-da-003(public / compile-deploy / medium)。来源只提示对齐子缓冲与原始 owner 责任,工程、接口、测试均为本题原创。split 键为基础 ID cc-da-003。
  • 软件替身:进程内 Owner 持有真实 malloc 块,View 只携带 offset、有效跨度与原始 owner 身份。固定 observer 记录指针余数、范围及归还知识;不把无效 view 解引用,也不以 interior pointer 调用 free。对齐、跨度和所有权这三个知识在软件替身仍可复现。
  • 非硬件边界:不验证真实 DMA、cache coherency、ARM 板卡、交叉编译器或物理地址。难度 UNMEASURED,真实 Agent/Pi 尚未采样。
  • 缺陷 A:已经对齐的块仍跳到下一边界;only_fix_offset 只修这一处。
  • 缺陷 B:可用尾部跨度只记请求长度,默认演示恰好请求整段时不暴露;only_fix_span 只修这一处。
  • 有效解:gold 用模运算并直接比较请求与尾部;valid_cycle 循环推进余数求最小偏移,并按区间终点求跨度。

判据检查项 ↔ 公开依据

检查项 依据
alignment 为正、容量/请求边界,失败不生成 view template/docs/buffer-contract.md:7–template/docs/buffer-contract.md:12、:23–:25
返回最小非负对齐 offset,已经对齐时 offset 为 0 template/docs/buffer-contract.md:13–template/docs/buffer-contract.md:16
请求区间完整容纳,成功有效跨度为 offset 到原始块末尾 template/docs/buffer-contract.md:18–template/docs/buffer-contract.md:21
view 记原始 owner 和 generation,不能改写 owner/原始容量 template/docs/buffer-contract.md:23–template/docs/buffer-contract.md:26
归还记录只认原始 owner;失效句柄不能再次报告可用 template/docs/buffer-contract.md:27–template/docs/buffer-contract.md:30
填充与 view 前缀校验遵守公开字节算法且不读取失效 view template/docs/buffer-contract.md:32–template/docs/buffer-contract.md:40
copy 与 reset 的边界和状态 template/docs/buffer-contract.md:40–template/docs/buffer-contract.md:49
原始观察协议与十进制字段、实际输入摘要 template/docs/buffer-contract.md:51–template/docs/buffer-contract.md:70

自检计划

  1. 公开 demo 和多个 alignment(1、2、16、32、64、非二次幂 3、24)与容量边界。
  2. 每个 fixture 构建,gold/valid 全行为通过,template/noop/cheat/read_grader/only_fix/mask 以实际观测失败。
  3. 本地及固定镜像各 5 次正式校准;同摘要的真实故障注入,记录每次原始回执和身份/IO/清理证据。