Skip to content

feat: bind frozen requests to the serving boot and refuse pre-restart requests (C1) - #212

Merged
tenneidp merged 17 commits into
mainfrom
feat/c1-restart-resend
Nov 19, 2026
Merged

tenneidp merged 17 commits into
mainfrom
feat/c1-restart-resend

Conversation

@tenneidp

@tenneidp tenneidp commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

Closes #208

Change

C1 按计划卡(含修订 2)与设计确认(设计说明、维护者确认)实现「重启前派发的请求一律拒绝」:

  • 工作服务每次启动生成 32 字节 boot,先落盘 boots.jsonl 再监听;每个连接先完成 BOOT 控制交换,随后才是冻结请求。
  • 协调者在 RESERVE 前取得 boot 并冻结进 SOLVE/VERIFY 帧;frame() 只在事件带该字段时写入,旧日志与旧帧的重导出字节不变。
  • 工作服务接纳顺序:已激活 → 请求轮次等于激活轮次 → 请求 boot 等于本 boot → 本 boot 未见过该键;不满足即落盘拒绝原因、关闭连接、不执行也不答复,服务进程继续存活;BOOT 轮次低于水位按 stale-epoch 拒绝。
  • 协调者把拒绝视为无答复:NO_REPLY 按该片上限计入,再按现有规则补算一次。BOOT 不可达时不写 RESERVE、不计账、不发布,返回 DISPATCH_UNAVAILABLE。
  • 实验控制帧 RESTART 只在 C1 restart 场景开启,其它运行按未知动作拒绝并留记录。

第一轮审计修复(PRA-212-01/02/03/05,edd2877、60226f8)

  • activate() 跳过冻结 verifier;无合法候选时在 RESERVE 前返回 DISPATCH_UNAVAILABLE(PRA-212-02)。
  • 检查器要求每条必须存在的 SOLVE/VERIFY 执行有唯一 begin/end(PRA-212-01 初版)。
  • 执行/拒绝/控制记录带帧大小;STOP、RESTART、wait-boot、探测分别计量(PRA-212-03 初版)。
  • 报告区分「拒绝没有新增执行」与同一原帧早先的执行(PRA-212-05)。

第二轮审计修复(PRA-212-01/03/06,1d72d11、d418845)

  • PRA-212-01:执行记录保留来源角色;每条 expected begin 必须匹配请求的 execution_id、slot、attempt、action、boot 与角色;begin/end 双向一一对应。改执行 ID、把记录搬到另一角色、只插入结束记录、成对孤儿记录均被拒(负例 7 项)。
  • PRA-212-03 A:restart 不再有全局差额豁免。唯一允许的差额由 wait_boot 的逐次交换推出(没有对应激活 = 该帧未收到;接受但没有答复 = 答复未收到),其它类别与方向必须为零;删除 STOP 接收记录或伪造结束记录都会失败。
  • PRA-212-03 B:报告派生行改用保留帧口径(restart/duplicate 6,686−2,961=3,725;stale 4,523−2,004=2,519),并注明不含重发探测帧。
  • PRA-212-06:报告的来源提交、清单摘要、boot、归并用时、套件用时与全量用时全部按本轮证据重写;首轮/第二轮数值分列并标明所属轮次。
  • PRA-212-04:由维护者的验收调整决定闭合:本 PR 只交来宾级证据;物理双机重启场景不在范围内、未运行;R4 公开包的已知限制被接受。

Problem / counterexample

AUD-20261117-01 的 A-03/C-03:工作服务的去重集合只在进程内(general_vm.py:266),重启即丢失;请求处理器只校验 epoch 的类型,不查询当前授权。重启后重发同一请求会再次求解,旧轮次帧没有拒绝记录。两轮审计另复现了 PRA-212-01/02/03/06 的反例。

Status before → after

  • 前:at-most-once 只在一个服务进程存活期间成立;重启后的重发没有拒绝证据;执行记录绑定不完整;BOOT 回退可能选出 verifier;C-06 混算保留帧与实际发送。
  • 后:请求只有绑定到当前 boot 且与同连接激活的轮次一致时才执行;同一 (role, boot, execution, slot, attempt, action) 至多一条 begin/end;拒绝有原因且不新增执行;执行记录与保留派发一一对应;BOOT 候选不得是冻结 verifier;收发差额只能来自可定位的 wait-boot 交换;旧日志与旧帧仍逐字节回放。

Tests or proofs(本次执行)

命令 基线 SHA 退出码
make test-minimal-verifier(190 tests,本地 103.4 s;改动前 163 tests / 81.6 s) 1d72d11 0
python3 -B -m unittest discover -s tests -p 'test_general_evidence_replay.py' 1d72d11 0
python3 -B -m unittest discover -s tests -p 'test_c1_evidence_checks.py'(负例 7 项,用 r3 公开包) 1d72d11 0
来宾级 restart(19.72 s) 1d72d11 0
来宾级 duplicate(18.59 s) 1d72d11 0
来宾级 stale(--general-checkpoint 1,34.64 s) 1d72d11 0
make -j"$(nproc)" -O test(首轮 2m57s;第二轮 179ae75 2m45.7s;本轮按维护者「不做非必要测试」未重跑) — 0
check-repository-evidence.py --repository .、update-manifests.py --check、check-license-coverage.py --require-git、git diff --check origin/main dd60b9a 各 0
R4-SAFETY-MC 公开包 check(改动前 main 1085fd3 与本次提交) — 1(与改动前一致:每 campaign 1 条 executor 违规,四份 manifest 校验 0)

历史证据重放:tests/test_general_evidence_replay.py 重放 MULTIVM-GENERAL-JOB 五场景、MULTIVM-CONTRACT-CLOSURE 的 source/reuse/handoff 两阶段/overlap、MULTIVM-SORT-CONTRACT 两阶段,逐字节通过;既有 n-job 家族包由套件原有测试覆盖。

本地 make test-minimal-verifier 由 81.6 s 增至 103.4 s(+21.8 s):C1 模块 17 项、证据重放 3 项、检查器负例 7 项,各含一次 Rust 执行器构建。CI 的 local-validation 会带上同样的增量,具体耗时以该 workflow run 为准。

Evidence tags

evidence/20261118-c1-restart-resend-r3(指向实跑源码提交 1d72d11;报告与证据包随本 PR 合入;分支其后只有一处失败文案修正 d418845)。首轮 …-c1-restart-resend → 9aa998a、第二轮 …-r2 → 60226f8 的标签与提交保留,其包分别被后续审计发现后的新包取代。

理论缺口

无。故障率、重试预算与统一成本关系属于 TG-6(#123)/TG-7(#124),本条目不涉及,也不据此下概率或经济结论。

Residual risk

  • 物理双机的重启场景未运行,且按维护者的验收调整决定不在本 PR 的验收范围内;它是后续独立条目的义务(条目编号由维护者指派)。
  • 授权仍依赖拓扑信任:BOOT 中的轮次由协调者自报,工作服务不核验其背后的授权;本条目不覆盖 A-01/A-03 中「任意实例能否自证有权」的部分。
  • boot 与轮次水位只存在服务进程内,不是持久化去重;不实现自动续跑或恢复。新运行的冻结请求含随机 boot,不跨运行逐字节复现。
  • 一个从未送达的旧帧在服务尚未见到新轮次前被投递时最多执行一次,且该尝试已按上限计入;报告把它列为边界,不声称任意重放安全。
  • C-06 的收发差额只允许由 wait-boot 交换解释;TCP/重传与连接开销仍未观测。
  • R4 公开包缺执行器,check 仍报告改动前那条违反;这是被接受的既有交付限制,新协议下的 R4 式 campaign 未经本条目验证。
  • 来宾级证据不证明物理故障域分离或统计独立性;未推出完成率、故障率或成本结论。

Documents updated

  • docs/testing/C1-RESTART-RESEND-20261118.md
  • docs/testing/public-evidence/C1-RESTART-RESEND-public-evidence.tar.gz
  • docs/07-roadmap/current-status.md
  • SINGLEHOST-SHA256SUMS
  • experiments/aclt-minimal-verifier-baseline/:general_job.py、general_vm.py、guest_multivm.py、multivm.py、sort_contract.py、四个测试模块

合并检查

  • 改动文件都在计划卡文件集(修订 1/2)内
  • PARALLEL-1 审计没有未关闭的 BLOCKER / MAJOR(PRA-212-01/03 待第二轮增量复核;PRA-212-02/04/05 已闭合)
  • 已用 /aclt-sync 与最新 main 同步,本次重跑通过(合并前)
  • CI 通过(以 GitHub 为准;本地用时见上表)
  • DCO:签名者已在本正文最末尾另起一段加上 Signed-off-by,dco 检查通过(CONTRIBUTING §11)

Signed-off-by: inpac inpac@lingmatrix.cn

… requests (C1)

Change:
- general_job: SOLVE/VERIFY frames and RESERVE/ACCEPT events take an optional
  32-byte serving boot; frame() only emits it when one is supplied, so a journal
  without the field re-derives the same bytes as before. handle() accepts both.
- general_vm: ServingBoot records the per-process boot, the activation watermark,
  the executions (begin/end, fsync) and the refusals. serve() accepts one BOOT
  frame per connection, then one request bound to that boot and epoch; a request
  that cannot be bound is recorded and refused without executing it, and the
  process stays up. run() takes a dispatch object (BOOT then frozen request on the
  same exchange); a boot that cannot be activated before a reservation stops the
  run with DISPATCH_UNAVAILABLE without an attempt or a charge. The replay path
  of a withheld reply now uses the family checker, and check_restart_resend()
  verifies the C1 evidence and returns its split observation summary.
- guest_multivm: TCP dispatch/session objects, the coordinator's own local
  session, the C1 driver (restart, resend, stale-epoch probes) and the supervisor
  restart record; the RESTART control frame is only enabled for the C1 restart
  scenario and is an unknown action otherwise.
- multivm: --general-c1 restart|duplicate|stale with its own gates, the drop
  counted as a withheld reply during replay, the C1 host check and summary, and
  merge_ns in the result record.
- sort_contract: checked_request() accepts the optional boot field.
- tests: C1 unit and real-process restart regression, plus a regression that
  replays the retained general-job, contract-closure and capacity-sort packages
  under the current code.

Problem / counterexample: the serving dedup set lived in process memory
(general_vm.py:266), so a worker restart forgot it and the same attempt could be
solved again; the request handler only type-checked the epoch. AUD-20261117-01
A-03 / C-03.

Status before: at-most-once held only while one serving process lived; a resent
or pre-restart frame had no refusal record.

Status after: a request is executed only when it is bound to the current boot and
to the epoch activated immediately before it; the same (execution, slot, attempt,
action) is executed at most once per boot; refusals are recorded with a reason and
never execute. Old journals and frames still replay byte-for-byte.

Affected objects/functions: general_job.frame/handle/Journal.apply_event,
general_vm.serve/run/replay/ServingBoot, guest_multivm.run_general,
sort_contract.checked_request.

Affected invariants: the solve budget rule and the frozen-frame equality check are
unchanged; the retry path still charges the unanswered attempt at its cap.

Affected threats: a request dispatched before a worker restart; a bare replayed
frame; a stale-epoch frame; a repeated request within one boot.

New assumptions: the coordinator is trusted and self-reports the epoch; the
worker does not verify authorization behind it. Boots and epoch watermarks are
per process, not persistent dedup; a frame that was frozen but never sent can
execute at most once (already charged at cap) and cannot be accepted. New runs
carry a random boot in the frozen frame and are not byte-reproducible across runs.

Compatibility/migration: journals and frames without the boot field are unchanged;
the sort family keeps replaying old evidence and accepts the optional field.

Tests or proofs: make test-minimal-verifier (178 tests, 99.8 s) including the two
new modules; manual replay of the retained general-job, contract-closure and
capacity-sort packages passed during development.

Residual risk: guest-level C1 scenarios and the physical dual-host run still to be
executed and recorded in the report; no probability or cost conclusion is drawn.

Documents updated: report and current-status entry still to come.
Change: the activation rows on the coordinator side carry both frame sizes; the
summary now counts the BOOT request as sent and its reply as received there,
instead of reading the reply size from the SOLVE/VERIFY outcome row.

Problem / counterexample: the previous counting attributed a request reply size to
a BOOT reply, so the split control-frame observation was wrong.

Status before: summary only (no run used it yet).
Status after: BOOT requests/replies are each counted once per direction.

Affected objects/functions: general_vm.check_restart_resend.
Affected invariants: none.
Affected threats: none.
New assumptions: none.
Compatibility/migration: none.
Tests or proofs: covered by the guest-level C1 run.
Residual risk: none beyond the report's own scope.
Documents updated: report still to come.
…ocess

Change: add GuestDispatchTests, which drives guest_multivm.C1Dispatch and the C1
driver against a real serving process: activation reply binding in dispatch.jsonl,
one executed request, and the bare plus activated resend both refused as
unactivated and duplicate without another execution.

Problem / counterexample: the guest-side dispatch and driver were only reachable
through a multi-VM run, so their refusal paths had no fast regression.
Status before: no local coverage of the guest dispatch object.
Status after: the same dispatch and probe code is covered locally.
Affected objects/functions: guest_multivm.C1Dispatch, C1Driver.
Affected invariants: none.
Affected threats: a resend accepted on the guest path.
New assumptions: none.
Compatibility/migration: none.
Tests or proofs: 16 C1 tests in the local suite.
Residual risk: the real supervisor restart is covered by the guest-level run.
Documents updated: report still to come.
Change: the C1 summary now reports coordinator requests, worker requests,
coordinator responses and worker responses separately, so a reply retained but not
sent (the drop) is visible as the difference; BOOT frames stay their own class.
merge_ns is read from the coordinator's recorded guest report (the live run) rather
than a replay-time measurement.
…cuted

Change: the C1 checker no longer fails when a request is refused as unactivated or
duplicate on the boot that executed it once. It instead requires at most one
execution per (boot, frozen request), and keeps the strict rule that a frame
refused as boot-mismatch or epoch-mismatch never executes where it was refused.

Problem / counterexample: the duplicate scenario failed the host check with "a
refused request was executed by the refusing boot", because the resend refusal and
the original execution share the request digest on the same boot by design.

Status before: the duplicate guest scenario could not pass its own checker.
Status after: duplicate and unactivated refusals may follow one execution; foreign
boot and stale-epoch refusals still may not execute.
Affected objects/functions: general_vm.check_restart_resend.
Affected invariants: at most one execution per (boot, frozen request).
Affected threats: a duplicate frame executed twice.
New assumptions: none.
Compatibility/migration: none.
Tests or proofs: C1 unit and process tests; guest scenarios re-run.
Residual risk: none beyond the report scope.
Documents updated: report still to come.
Change: the journal binding check skips events retained before the handoff, which
belong to the previous coordinator phase and its own evidence root.

Problem / counterexample: the stale scenario failed with "('C', 1, 1, 'SOLVE') boot
differs from the activation that preceded it", because the successor journal
retains the pre-handoff requests whose activations live in the before-phase root.

Status before: the stale guest scenario could not pass its own checker.
Status after: only events after the handoff are bound to the after-phase
dispatches; the stale assertions still cover the retained pre-handoff frames.
Affected objects/functions: general_vm.check_restart_resend.
Affected invariants: none.
Affected threats: a stale request accepted after a handoff.
New assumptions: none.
Compatibility/migration: none.
Tests or proofs: C1 local tests; guest scenarios re-run.
Residual risk: none beyond the report scope.
Documents updated: report still to come.
Change: the general result record stores the requested C1 scenario; the split
observation summary keeps BOOT requests and replies per direction (coordinator
sent/received and serving received/sent) instead of one combined count.
…ence (C1)

Change:
- docs/testing/C1-RESTART-RESEND-20261118.md: the guest-level acceptance of C-03
  (restart, duplicate, stale), per-attempt execution counts taken from the
  serving records, the split C-06 observation, the replay results and the
  boundaries, including the unrun physical dual-host scenario.
- docs/testing/public-evidence/C1-RESTART-RESEND-public-evidence.tar.gz: the
  sanitized run trees, serial logs, host results, local suite and R4 check logs,
  commands and per-file SHA256SUMS (SHA-256
  5f3dbae0bb75834d02b3488d1e27a113c7fda95c42d661c7afdaed93a390232c).
- docs/07-roadmap/current-status.md: the coordinator-handoff row links and
  describes C1, and the §9 log gains its entry; both name the boundary that the
  authorization is still trusted and that the physical dual-host run did not
  happen.
- SINGLEHOST-SHA256SUMS: refreshed for the five changed sources, the two new test
  modules and the archive.

Problem / counterexample: AUD-20261117-01 A-03/C-03; the implementation commit
explains the pre-C1 behaviour (process-local dedup, epoch type check only).

Status before: the implementation and its local regression, without the recorded
guest runs.
Status after: the guest-level acceptance is recorded with its public evidence; the
physical dual-host restart scenario is explicitly not run.

Affected objects/functions: none (documentation and evidence only).
Affected invariants: none.
Affected threats: none.
New assumptions: none.
Compatibility/migration: none.
Tests or proofs: make test-minimal-verifier 182 tests OK (106.3 s); the three
guest scenarios exit 0; make -j"$(nproc)" -O test passes; the retained general
job, contract closure and capacity sort packages replay byte for byte.
Residual risk: the physical dual-host restart scenario is not run; the R4 public
package still reports the withheld-executor violation.
Documents updated: the C1 report, the status page, the manifests.
@tenneidp

Copy link
Copy Markdown
Member Author

PARALLEL-1 审计 @ 62559a8

基线与范围

  • PR:feat: bind frozen requests to the serving boot and refuse pre-restart requests (C1) #212;计划卡:feat: reject resent and stale attempt requests after worker restart, with split cost observations (C1) #208(含设计确认与修订 1)。
  • HEAD:62559a80990eb5e37940652416d3575084ec55e3。
  • origin/main:1085fd3085ab03d15380af83d37440795573d8aa。
  • 审计日期:2026-11-18,时区 CET(UTC+01:00);主要复跑窗口 21:17:36–21:28:07。
  • 请求为增量审计,但开始及发布前查询 PR 的 comments/reviews 均无既往审计记录,因此没有可定位的增量 SHA;本次覆盖 origin/main...HEAD 全部改动,不冒充已完成过首审。
  • 实现代理:dsh(计划卡设计说明及工作区记录);审计代理:OpenAI GPT-6.1 Sol,独立新会话。采用本代理逐路径代码审查、离线证据重放及负例复现,替代 /code-review;未委派子代理。
  • 独立 detached worktree,开始与结束 git status --short 均为空;未修改、提交、推送仓库或改变 PR 状态。变异实验只修改解包后的审计临时副本,随后恢复。
  • 多 VM、物理双机实验均未重跑;不占用 B 机。

分项结论

维度 结论
计划符合度 FAIL:两项既定验收尚未达成,C-06 观测也不完整
语义连续性 FAIL:派发回退与不同角色复核要求不一致;报告有超出可检查证据的表述
结构完整性 FAIL:执行记录检查缺少 VERIFY 完整性约束
历史隔离 PASS:旧帧回放通过,无历史证据删除/改名
本次复跑 FAIL:常规本地门禁全部通过;计划要求的 R4 公开包 check 仍退出 1,另有已复现反例

开放发现:0 BLOCKER / 4 MAJOR / 1 MINOR。

发现项

PRA-212-01 — MAJOR / OPEN:VERIFY 执行记录整体缺失仍通过 C1 检查

位置:experiments/aclt-minimal-verifier-baseline/general_vm.py:700–751,尤其 740–751。

检查器仅从现有 begin 记录检查重复及其 end,随后只遍历 RESERVE 对 SOLVE 答复要求执行记录;没有对 ACCEPT 的 VERIFY 答复做同样检查。由此,“没有记录”被当成“没有重复执行”,不能发现 VERIFY 记录采集整体失效。

**本次负例:**原始 restart 包先经 replay 与 check_restart_resend 通过(SOLVE 5、VERIFY 4);在临时副本中删除 B/C/D 的全部 VERIFY begin/end 行,保持 journal、帧、dispatch、boots 不变,检查器仍通过并返回 executions={'SOLVE': 5}。普通帧重算不等于真实执行次数观测,不能替代缺失的记录。整包 SHA 清单可以发现归档后的删改,但不能保证采集器原本就产生了完整记录;新运行调用此检查器时同样没有这项约束。

**修复要求:**对当前阶段的 SOLVE 和 VERIFY 保留答复均建立角色、boot、请求摘要、答复摘要与 begin/end 的完整绑定,拒绝缺失、孤立或错绑的执行记录;增加删除全部 VERIFY 记录、单条缺失、摘要错绑等负例。不得仅把报告里的复核次数改为零。

PRA-212-02 — MAJOR / OPEN:BOOT 回退可把预定 verifier 选为 solver

位置:general_vm.py:303–322、377–423;retry_after() 位于 225–231。

activate() 使用求解失败后的轮换函数探索候选,但不排除本槽位固定的 verifier。协调者-only 布局中,片 0 原定 B 求解、C 复核;B、D 的 BOOT 不可达而 C 可达时,候选为 B → D → C,随后 C 被实际派发 SOLVE,接着又被派发 VERIFY。

**本次负例:**复用新增测试的 MemoryDispatch,仅令 C 的 open 可达,运行 order=(0,1,2,3) 与 coordinator_only(('B','C','D'),4) / retry_after(('B','C','D'))。观测到 C 实际执行一次 SOLVE、一次 VERIFY,最后 Journal.add('ACCEPT') 才抛出 CodecError: verification must use a distinct role;落盘日志停在 START/RESERVE/ANSWER,而不是派发前的 DISPATCH_UNAVAILABLE。

最终 journal 守卫阻止了自我复核接纳和发布,这一点没有失效;问题是新增预派发回退制造了不合法的求解/复核组合并留下预留,而非在无合法 solver 时准确停止。

**修复要求:**BOOT 候选必须满足既有 placement/不同角色约束;无合法候选时在 RESERVE 前返回既定终态。若要变更复核角色,须按批准设计处理,不能默默改变复核要求。补充部分不可达(而不只是全部不可达)回归。

PRA-212-03 — MAJOR / OPEN:C-06 收发观测遗漏探测与控制消息,却声明完整

位置:general_vm.py:820–871;guest_multivm.py:355–365,391–465;报告 docs/testing/C1-RESTART-RESEND-20261118.md:78–101,147。

SOLVE/VERIFY 计数来自唯一保留帧文件,重发同一原帧不会新增文件,因此探测实际发出的重复帧没有进入对应收发栏;BOOT 的协调者栏只取正常 dispatch.jsonl,而工作服务栏包含探测。STOP 和 RESTART 未列出,wait_boot() 的交换也未在协调者端逐帧计量。

例如 restart 的协调者栏为 BOOT 9 帧/270 字节,而服务方实际收到 11 帧/338 字节;多出的两条分别来自等待新 boot 和重发探测,并不是网络丢包。该场景另有两次 686 字节旧 SOLVE 的实际发送,表中正常 SOLVE 仍只有 5 帧/3476 字节。虽然服务方保留但未发送的答复已有说明,其他遗漏没有单独完整列账,不能据此认定计划的“分方向、按消息类别”观测完整。

**修复要求:**将正常派发、场景探测、等待新 boot、STOP/RESTART 分类别记录实际发送/接收次数与字节;保留帧存量与实际发送量分开。旧证据无法补出的观测明确列未知/未达成,不得靠常量估计冒充实测;如缩减 C-06 验收范围,先取得维护者批准并同步计划及报告。

PRA-212-04 — MAJOR / OPEN:计划验收例外尚未闭合

依据:#208 验收第 2 项、维护者设计确认第 6 项与“计划卡修订 1”;报告 :3,108,145–147。

  1. 物理双机至少一个重启场景明确未运行。报告写“维护者决定先交来宾级”,且诚实保留未达成状态;但“先交”并不自动把原验收条件改成通过。所查 feat: reject resent and stale attempt requests after worker restart, with split cost observations (C1) #208/phase: post-closure protocol boundary — assumption audit, fault recovery and G0 continuation #184 的评论和 PR 没有将该验收正式改为本 PR 非目标或明确接受合并的决定。
  2. 修订 1 要求 R4 公开证据 check 通过;本次按公开包方式复跑,四个 campaign 均退出 1,各为 manifest: executor differs from the recorded digest。这与报告一致,是既有公开交付限制,不据此指控 C1 引入 R4 回归;但清单校验通过或证明“与改动前相同”不能自动替代维护者明确要求的 check 通过。

**修复要求:**由维护者明确批准验收调整(本 PR 只交来宾级、物理项如何追踪,以及 R4 公开包已知限制的接受范围),条目会话据此同步计划卡和 PR;或补足相应证据。审计不会自行放宽验收,也不会自行启动物理机实验。

PRA-212-05 — MINOR / OPEN:报告把“拒绝此次投递”写成“该帧没有任何执行记录”

位置:报告 :15,58–62。duplicate 场景的被拒原帧就是先前已执行一次的同一字节串/摘要,restart 场景也保留旧 boot 上的首次执行记录。因此“被拒绝的帧没有任何执行记录”与证据不符;应写为“拒绝没有新增执行;旧 boot/首次投递的执行另列”,并区分不同 boot、不同投递和同一原帧。检查器 :733–738 已对 foreign-boot/epoch 与 duplicate 做区别,报告应同步。

计划与仓库规则核对

  • **文件集:**实际 11 个文件均在计划卡及修订 1 范围内;范围外文件:无。coordination.py、montecarlo.py、dualhost_multivm.py、正式规范与预算规则未改;未扩展自动续跑、持久去重或故障率/经济结论。
  • **验收 1(设计):**boot 绑定、同连接 BOOT、可选字段兼容、默认禁用 RESTART 均有代码与本地回归;部分不可达的回退有 PRA-212-02。
  • **验收 2(三类场景):**原包三场景离线重放通过;本地模块随 182 项套件通过;物理部分未达成,见 PRA-212-04。
  • **验收 3(执行次数与拒绝):**原始记录支持已列场景的计数,但自动完整性检查不充分,见 PRA-212-01;拒绝原因有原始记录。
  • **验收 4(C-06):**未完整达成,见 PRA-212-03。
  • **验收 5(兼容回放):**通用作业、contract closure、capacity sort 的新增重放测试及既有 n-job 套件通过;R4 另见 PRA-212-04。
  • **CONTRIBUTING §9 逐问:**① boot 绑定缩小重启/重发歧义;②预算及拒绝接纳守卫仍生效,但角色回退、执行记录完整性见发现;③引入 boot/控制交换及 fsync 成本,授权仍为拓扑信任,无新协议 Principal;④仅覆盖可信协调者下指定重放/进程故障,Sybil、串谋、分区、资金耗尽未建立结论;⑤一般无答复/预算停止路径保留,预派发停止存在 PRA-212-02,未提供自动恢复/回滚保证;⑥来宾/物理与候选边界总体明确,具体执行措辞见 PRA-212-05;⑦未用实现定义正式协议语义或冒充来源定理;⑧不合法帧无执行、journal 不合法接纳会失败,但不能据此宣称完整 assurance;⑨已检查计划的报告/current-status 双处同步,未更改 OQ 状态、正式语义、ADR 或 Gate,正式权威文档无相应状态迁移需求。
  • 理论缺口:theory-gap: no failure-process model behind retry budgets (TG-6) #123(TG-6)与 theory-gap: no conversion rule between resource units for job cost (TG-7) #124(TG-7)本次查询均 OPEN;本 PR 未依赖它们推出概率或统一成本结论。不把上述采集/实现缺陷包装成数学缺口,本次无新增建模请求。
  • 历史与隐私:git diff --diff-filter=DR --name-status origin/main...HEAD 无输出。新增文本及解包文本扫描未发现真实宿主地址、操作者路径或凭据;出现的地址为已注明的来宾虚拟地址和本地回环。包 SHA-256 与报告一致,237 个清单条目通过;三个源码 pin 清单各 104 个文件均与证据提交 Git 内容一致。
  • 提交说明 NOTE:5864a61、9aa998a 等修正提交仅有 Change,未完整使用 CONTRIBUTING §6 模板;后续提交使用完整模板,不要求改写已推送历史。
  • **CI/DCO NOTE:**读回 local-validation 通过,job 4m58s,其中全量本地步骤约 4m08s;非本审计执行结果。dco 失败且 PR 正文尚无签名,须合并前由授权签名者处理,代理不填写。

本次执行与退出码

命令 / 检查 退出码 / 结果
make check 0,154.9s
make test 0,474.8s;其中 minimal-verifier 182 tests / 107.100s
python3 -B scripts/update-manifests.py --check 0
git diff --check origin/main...HEAD 0
python3 -B scripts/check-repository-evidence.py --repository . 0
C1 解包后 sha256sum -c SHA256SUMS 0,237 项
C1 restart / duplicate / stale:general_vm.replay + check_restart_resend 各通过;计数分别 SOLVE/VERIFY=5/4、5/4、3/3(stale after;before 另重放)
审计复现脚本 python3 -B <审计临时目录>/repro.py 0(脚本断言两个缺陷均成功复现;不是产品通过)
三份 source-sha256.json 对 git show <commit>:<file> 校验 0;每份 104 文件无不符
R4 四份 sha256sum -c --ignore-missing manifest.sha256 各 0
R4 montecarlo.py check --backend dualhost --output <campaign>,四 campaign 各 1,均 1 条 executor 摘要违反
R4 同上另加 --executor <审计本次重建的执行器> 各 1,各 18 条违反;重建执行器不匹配历史摘要,不能作完整历史环境认证
git tag --list 'evidence/*' --contains 9aa998a0b7c847adfba1835896d00959b4af62f7 0,有 evidence/20261118-c1-restart-resend
git ls-remote origin 'refs/tags/evidence/20261118-c1-restart-resend*' 0,远端 annotated tag 解引用为上述完整源码 SHA
git status --short(首尾) 0,均无输出

本机:Linux 7.0.0-43-generic x86_64;Python 3.14.4;rustc/Cargo 1.93.1;G++ 15.2.0;Git 2.53.0。无故障注入环境覆盖,LANG=en_US.UTF-8。本次本地命令日志及审计复现脚本保留在审计代理仓库外工作区,不把本地路径写入公开评论。没有修改源码、刷新清单或改变失败参数来通过测试。

建议

**退回修改。**修复 PRA-212-01/02,闭合 C-06 和验收例外后再增量审计;本评论固定 SHA 可作为下轮增量起点。

禁止宣称:物理双机重启已验收、完整 C-06 收发计量已建立、C1 检查器已完整验证真实执行次数、任意重放安全、持久化去重、自动恢复、无信任授权、统计独立性、故障/完成概率或成本结论、R4 新协议 campaign 已验证、Gate 退出或生产就绪。合并决定属于维护者。

…ess and frame accounting

Change:
- activate(): a boot candidate that equals the frozen verification role is never
  dispatched as the solver.  When no legal candidate answers, the run stops with
  DISPATCH_UNAVAILABLE before RESERVE instead of leaving an illegal
  solver/verifier combination and a reserved attempt (PRA-212-02).
- check_restart_resend(): every SOLVE and VERIFY execution the journal and the
  retained frames require must have exactly one begin and one end bound to the
  same attempt, boot, request and reply; missing, orphaned or misbound records are
  refused, and the execution records must match the retained dispatches exactly
  (PRA-212-01).
- serve(): execution and refusal records now carry the frame sizes; STOP and
  RESTART are recorded per serving process, and a reply that is generated but not
  sent is recorded as withheld instead of counting as sent (PRA-212-03).
- guest_multivm: the dispatch and probe drivers record the frames they actually
  send and receive, including probe boots, wait-boot exchanges, restart and stop
  control frames.
- the split observation summary now reports coordinator sent/received and serving
  sent/received per frame class, with retained frame files and withheld replies
  apart; the checker requires both sides to agree (PRA-212-03).

Problem / counterexample: see the PRA-212-01..03 reproductions in the audit
comment; a deleted VERIFY record set, a verifier chosen as the fallback solver,
and unaccounted probe/control frames all passed the earlier checks.

Status before: the checker proved frame binding but not record completeness; the
fallback could leave an illegal combination; C-06 mixed retained and sent frames.
Status after: those three defects are refused or accounted; the physical dual-host
acceptance exception is still open (maintainer decision pending).
Affected objects/functions: general_vm.activate, general_vm.serve,
general_vm.check_restart_resend, general_vm.ServingBoot, guest_multivm.C1Dispatch,
guest_multivm.C1Driver.
Affected invariants: distinct solver/verifier role; execution counts from records.
Affected threats: an unnoticed execution-record loss; an illegitimate solver.
New assumptions: none.
Compatibility/migration: old evidence still replays; new runs record frame sizes
and control frames additionally.
Tests or proofs: local suite 183 tests OK; the new negative cases follow with the
refreshed evidence package.
Residual risk: the physical dual-host scenario remains unrun.
Documents updated: report update still to come.
…ifferences

Change: the split observation summary adds frames with explicit counts, so a
multi-attempt wait-boot exchange no longer merges two frames into one count; the
wait-boot record carries its reply count, and a frame lost to a restarting serving
process is reported as an in-flight difference instead of failing an equality that
does not hold while a process is exiting.  Duplicate and stale runs still require
both sides to agree exactly.

Problem / counterexample: the cross-side equality failed the restart run with
"coordinator to worker BOOT frames differ": 12 sent frames (72 bytes) against 11
received, because the wait-boot frames' bytes were recorded as one count and one
frame was in flight when the old serving process exited.
Status before: the restart scenario could not pass its own accounting.
Status after: each sent frame counts once; the restart difference is recorded and
reported, and only restart runs may carry one.
Affected objects/functions: general_vm.check_restart_resend,
guest_multivm.C1Driver.wait_boot.
Affected invariants: actual send/receive counts versus retained frames.
Affected threats: unaccounted repeated sends.
New assumptions: none.
Compatibility/migration: none.
Tests or proofs: offline check of the three recorded runs passes; guest scenarios
re-run.
Residual risk: none beyond the report scope.
Documents updated: report update still to come.
…d evidence

Change:
- docs/testing/C1-RESTART-RESEND-20261118.md: the C-06 table is rebuilt from both
  sides' actual frame records (coordinator and worker sent/received per class, the
  in-flight difference, withheld replies and retained frame stock separately); the
  execution table distinguishes "the refusal added no execution" from the earlier
  execution of the same original frame; the maintainer's acceptance adjustment and
  plan-card revision 2 are linked; the numbers come from the re-run at 60226f8
  (187 tests, 108.7 s locally).
- docs/testing/public-evidence/C1-RESTART-RESEND-public-evidence.tar.gz: the
  refreshed sanitized package (SHA-256 9d5b0dff...); the first package at 9aa998a
  stays available through its tag and is named as superseded.
- tests/test_c1_evidence_checks.py: the checker must refuse deleted, misbound and
  orphaned execution records on the recorded restart evidence, using the public
  package as the fixture.
- SINGLEHOST-SHA256SUMS: refreshed for the archive, the changed sources and the
  new test module.

Problem / counterexample: PRA-212-01..05 in the audit comment on PR #212; the
previous package and report could not distinguish retained frames from actual
sends and did not force VERIFY execution records to exist.
Status before: the audit returned the PR with four MAJOR and one MINOR finding.
Status after: PRA-212-01/02/03/05 are fixed in code and evidence; PRA-212-04 is
closed by the maintainer's recorded acceptance decision.
Affected objects/functions: documentation and evidence only in this commit; the
code fixes are in edd2877 and 60226f8.
Affected invariants: none beyond those commits.
Affected threats: none.
New assumptions: none.
Compatibility/migration: the first evidence tag and package are unchanged.
Tests or proofs: local suite 187 tests OK; make -j"$(nproc)" -O test passes; the
three guest scenarios pass at 60226f8 (19.18 s / 20.15 s / 37.98 s); the retained
packages still replay.
Residual risk: the physical dual-host restart scenario remains unrun and is now
outside this PR's accepted scope; the R4 public package keeps its documented
withheld-executor limitation.
Documents updated: the C1 report, the status page is unchanged in this commit, the
manifests.
@tenneidp

Copy link
Copy Markdown
Member Author

审计 PRA-212-01..05 的修复(增量起点 @ 179ae75)

修复提交:edd2877(候选角色、记录完整性、帧计量)、60226f8(逐帧计数与在途差)、179ae75(报告、负例、刷新证据包与清单)。证据标签 evidence/20261118-c1-restart-resend-r2 → 60226f8;首轮标签与包保留,报告已写明其被本包取代。

发现 本轮处置 修复与证据
PRA-212-01 FIXED_IN_PR(待复核) 检查器从当前阶段 journal 与保留帧推导每条必须存在的 SOLVE/VERIFY 执行,要求恰好一条 begin/end 并绑定同一 attempt、boot、请求摘要与答复摘要;执行记录集合必须与保留派发完全一致。负例:删除全部 VERIFY 记录、删除单条、错绑答复摘要、插入孤儿记录,均被拒(tests/test_c1_evidence_checks.py,以公开包 restart 证据为夹具)。
PRA-212-02 FIXED_IN_PR(待复核) activate() 跳过与本槽位冻结 verifier 相同的候选;无合法候选时在 RESERVE 前返回 DISPATCH_UNAVAILABLE。新增回归:只有 verifier 可达时日志只有 START、无尝试、无预留、无计费(test_partial_unreachability_never_uses_the_frozen_verifier_as_solver)。
PRA-212-03 FIXED_IN_PR(待复核) 执行/拒绝/控制记录带帧大小;STOP、RESTART、wait-boot 与实际重发探测分别计量;摘要按协调者发送/接收与工作服务发送/接收分栏,保留帧存量、实际发送量、保留但未发送的答复分列;restart 的重启窗口允许并单列在途差(本次 BOOT 1 帧 / 34 字节),duplicate 与 stale 要求两侧完全一致。
PRA-212-04 由维护者决定闭合(供审计核对) 维护者验收调整决定与计划卡修订 2:本 PR 只交来宾级证据;物理双机重启场景不在范围内、未运行、留为后续条目义务;R4 公开包缺执行器的限制被接受,只记录与改动前一致的结果与 manifest 校验,不声称 check 通过。
PRA-212-05 FIXED_IN_PR(待复核) 报告改为「拒绝没有新增执行;同一原帧在旧 boot/首次投递上的执行另列」,执行表分列「拒绝新增执行」与「同一原帧早先的执行」。

本轮执行(HEAD 179ae75)

命令 / 检查 结果
make test-minimal-verifier 187 tests,108.7 s,退出 0(改动前 163 / 81.6 s;+24 项:C1 17、重放 3、检查器负例 4)
make -j"$(nproc)" -O test 退出 0,2m45.7s
来宾级 restart / duplicate / stale @ 60226f8 各退出 0,19.18 s / 20.15 s / 37.98 s,均发布;执行 SOLVE/VERIFY 5/4、5/4、3/3;拒绝 unactivated+boot-mismatch / unactivated+duplicate / unactivated×2+epoch-mismatch×2
证据包解包后 sha256sum -c SHA256SUMS 0
check-repository-evidence.py --repository .、update-manifests.py --check、check-license-coverage.py --require-git、git diff --check origin/main 各 0
R4 公开包 check(四 campaign + compare + manifest) 与改动前一致:各 1 条 executor 违规、compare 2 条、四份 manifest 0

剩余边界:C-06 的「实际发送/接收」由两侧各自记录交叉核对,不含 TCP/重传与连接开销(单列未知);记录完整性只覆盖本检查器使用的 C1 证据,不声明任意采集器完整性;物理双机重启场景按维护者决定未运行;DCO 仍待签名者填写。多 VM 之外的物理实验未重跑,未占用 B 机。

…able

Change: the C1 report states the derived request-frame envelope bytes per scenario (request frame bytes minus request payload) instead of a bare method note; no measurement or code changes.
@tenneidp

Copy link
Copy Markdown
Member Author

补充(提交 02f7219,仅文档):报告 C-06 表把派生「请求帧信封」写成具体字节(restart/duplicate 5,097、stale 5,473;方法为请求帧字节减请求净荷),没有改动代码或测量。审计的增量起点请用 PR 头 02f7219;上一条列出的执行都在代码树 179ae75 上完成,源码与测试在该提交之后未变。

@tenneidp

Copy link
Copy Markdown
Member Author

PARALLEL-1 审计 @ 02f7219

增量基线与范围

  • HEAD:02f7219ac8d2174cc7ba200351e53133bc814fca;origin/main:1085fd3085ab03d15380af83d37440795573d8aa。
  • 增量:上次审计 62559a80990eb5e37940652416d3575084ec55e3 → 当前 HEAD;审计时间 2026-11-18 22:11 CET(UTC+01:00)。
  • 实现代理 dsh;审计代理 OpenAI GPT-6.1 Sol。本代理手工审查增量并做定向负例,未参与实现、未委派子代理。
  • 按维护者本轮“不要做不必要的测试”的要求,本次只运行 C1 两模块的定向回归、新包离线核验及轻量机械检查;未重跑 make check / make test、其他历史证据家族、R4 campaign、VM 或物理双机实验。这是本次相对 PARALLEL-1 默认全量复跑要求的范围调整,不将上轮或实现方全量通过记录当成本次结果。
  • detached worktree;未编辑仓库内容、提交、推送或改 PR 状态。负例只操作审计临时解包副本,各次变异后恢复。

结论

维度 结果
计划符合度 FAIL:修订 2 的执行记录完整性与 C-06 要求仍未完全满足
语义连续性 FAIL:检查器与“错绑/孤立均失败”的声明仍不一致,派发候选问题已修复
结构完整性 FAIL:执行记录绑定、结束记录完整性及收发差豁免仍有缺口
历史隔离 PASS:新报告显式说明证据被取代,旧提交/标签保留;无删除或改名
本次复跑 PASS(仅上述定向范围;不表示全量或审计整体通过)

退回修改:0 BLOCKER / 2 MAJOR / 1 MINOR 仍 OPEN。

原发现复核

编号 本次状态 依据
PRA-212-01 / MAJOR OPEN,部分修复 删除 VERIFY 记录的原反例已被拒绝,但执行 ID/来源角色错绑、孤立 end 仍通过,详见下文
PRA-212-02 / MAJOR FIXED_IN_PR general_vm.activate() 在打开候选前排除冻结 verifier;新增部分不可达回归通过,日志仅 START,无尝试/计费/预留
PRA-212-03 / MAJOR OPEN,部分修复 探测、wait-boot、STOP/RESTART 与 withheld 已记录并分栏,但 restart 豁免过宽及净荷口径混算仍存在
PRA-212-04 / MAJOR ACCEPTED_BY_MAINTAINER 已核对 维护者决定及修订 2:物理项移出本 PR 且保留后续义务;接受 R4 已知公开包限制,不宣称 check 通过
PRA-212-05 / MINOR FIXED_IN_PR 报告结论及执行表已区分“拒绝没有新增执行”与同一原帧早先执行

PRA-212-01 — MAJOR / OPEN:完整性修复仍未约束执行 ID、来源角色和所有 end 记录

位置:experiments/aclt-minimal-verifier-baseline/general_vm.py:729–808。

读取执行日志时丢弃了其来源角色;新 by_key/expected_keys 只绑定 (boot, request_sha256),虽取得 expected 的 role,却未校验它,也未将记录的 execution_id 与冻结请求对应。检查集合仍只覆盖 begin;每个 begin 有 end 不等于所有 end 都有 begin。

本次对原始 restart 包先确认通过,再分别做以下独立变异(每次恢复原包):

  1. 把所有 VERIFY begin/end 的 execution_id 改为另一个值:仍通过,执行数仍为 5/4。
  2. 把 C 的全部 VERIFY begin/end 从 C/C/executions.jsonl 移到 B 的对应文件:仍通过,未发现工作角色错绑。
  3. 仅插入一条没有 begin 的孤立 VERIFY execute-end:仍通过;其虚构的 1 帧/1 字节被当成 restart 的 worker→coordinator 在途差。

新增的四项回归确实通过,但“孤儿记录”用例插入的是成对 begin/end,不能覆盖只有 end 的情况。

**要求:**保留并核验每条记录所属角色、boot 所属角色、执行 ID、attempt/action、请求/答复摘要;begin/end 双向一一对应,拒绝孤立 end。增加上述轻量变异负例即可,不需再跑实验。

PRA-212-03 — MAJOR / OPEN:restart 全局差额豁免掩盖缺失记录,报告派生值口径不一致

A. 豁免没有限制到重启窗口。 general_vm.py:966–984 对 restart 放行所有消息类别、两个方向、任意非负发送−接收差,并未区分是不是重启窗口内的消息。本次删除三个工作服务的所有 STOP 接收记录后,检查器仍通过,仅新增 STOP: {count: 3, bytes: 39} 的“在途差”。STOP 在运行结束时发送,不能因场景名是 restart 就把采集缺失自动解释为重启窗口内的丢失。孤立 VERIFY end 也能被上述豁免吞掉。

**要求:**将例外限定到可由记录定位的重启相关交换;其他消息仍须完整对账。未有证据解释的差应失败或明确未验收,不能仅改名为在途差。

B. 报告把实际发送帧字节减去了保留帧净荷。 docs/testing/C1-RESTART-RESEND-20261118.md C-06 表中,restart/duplicate 的 8,058 请求字节包含两次重发,而所减 2,961 净荷只来自唯一保留帧,遗漏重发净荷 638 字节;stale 的 7,477 请求字节包含旧 SOLVE/VERIFY 探测,所减 2,004 净荷遗漏探测净荷 1,276 字节。因此 5,097 / 5,473 并非所称的“请求帧信封”。

本次仅从已留存字节做同口径核算:若采用实际发送口径,分别为 8,058−3,599=4,459(restart/duplicate)、7,477−3,280=4,197(stale)。也可改用保留帧口径,但被减数和减数必须同范围,并标清探测净荷。这是字节账核对,不涉及成本建模或挑选参数。

PRA-212-06 — MINOR / OPEN:报告刷新后仍混用首轮源码 pin 和 boot

位置:报告 :21,27,40–43,68,118,与本轮新增“证据与标签”及新包不一致。

  • :21 仍写来源提交 9aa998a...,并称各 commit.txt/guest.json 与其一致;新包三个运行目录实际均为 60226f83ffffd77377834f89db5d3616740a28c0,来源清单摘要是 858832a3...,不是旧 337f68ff...。
  • restart 场景细节仍用旧 boot 00b78572... → 6e586fce...;本轮实际为 bb4fd10f... → e4ed3e42...,逐尝试表也未同步。
  • 本地全量用时段落仍保留首轮 2m57s,而本轮 PR/修复评论记录为 2m45.7s,需明确各自基线,不能混写为本轮同一次运行。

**要求:**按本轮证据同步来源提交、摘要、boot 与运行记录;历史事实若保留,单列并标明首轮,不覆盖历史证据。无需重测。

本次执行

命令/检查 退出码/结果
python3 -B -m unittest discover -s experiments/aclt-minimal-verifier-baseline/tests -p 'test_c1_*.py' 0;21 项,21.500s,含三场景离线重放、新增完整性负例及部分不可达回归
审计临时副本上的上述 4 个增量变异探针及净荷字节核算 脚本 0;四种错误输入均被当前检查器接受(已记录为缺陷,不是产品通过)
python3 -B scripts/update-manifests.py --check 0
python3 -B scripts/check-repository-evidence.py --repository . 0
git diff --check 62559a8..HEAD 0
C1 新包 sha256sum -c SHA256SUMS(变异恢复后) 0;251 项
新包三份 source 清单与证据 SHA 的 git show 逐项校验 0;每份 104 文件无不符
包 SHA-256 9d5b0dff107a86845860d32d3576aaf5d1d9c8097aa7c3ec6ba3d4017b2a4b2f,与报告一致
git tag --list 'evidence/*' --contains 60226f83ffffd77377834f89db5d3616740a28c0 与远端标签读回 0;evidence/20261118-c1-restart-resend-r2,远端解引用 SHA 一致
git diff --diff-filter=DR --name-status 62559a8..HEAD 0;无删除/改名

增量 7 个文件均在批准文件集内;无预算、正式协议、OQ/Gate 状态或非目标改动。CONTRIBUTING §9 的上轮逐问结论在未变范围沿用;本轮受影响的执行完整性、fail-closed 与证据措辞按上述发现更新。没有新增理论依赖,不重测、不重判 TG-6/TG-7。当前 CI 读回 local-validation 仍运行中、dco 失败;二者都不是本次定向执行结果,签名仍由授权人合并前处理。

**建议:退回修改。**PRA-212-02/04/05 无须重复整改;修复 PRA-212-01/03 和报告同步项即可再次定向增量审计。禁止宣称物理双机重启已验收、任意采集记录完整性、任意重放安全、持久去重/自动恢复、统计独立性、成本或概率保证、新协议 R4 campaign 已验证、Gate 退出或生产就绪。

…rded restart losses

Change:
- check_restart_resend(): every execution record keeps its serving role.  The
  checker now requires each expected SOLVE/VERIFY begin to match the request's
  execution id, slot, attempt, action and boot under the expected role, and every
  begin to pair one to one with a completion record in the same role; orphan
  begins or completions, records moved between roles and altered execution ids
  are refused (PRA-212-01).
- The restart exception is no longer a global difference allowance: the checker
  derives the only permitted frame loss from the wait-boot exchanges (a dispatch
  with no serving activation means the frame was not received; an accepted
  dispatch without a reply means the reply was not received) and requires every
  other sent/received difference to be zero, so a missing STOP or a fabricated
  completion can no longer be absorbed (PRA-212-03 A).
- guest_multivm.wait_boot() records each exchange's dispatch, request bytes and
  reply bytes, which is the record the allowance is computed from.
- tests: add the audit's negative cases (altered execution id, records moved to
  another serving role, orphan completion record); the recorded-run tests use the
  refreshed package.

Problem / counterexample: the incremental audit accepted four wrong inputs: an
altered VERIFY execution id, C's records moved into B's file, an orphan VERIFY
completion, and the deletion of every STOP receipt (absorbed as an in-flight
difference).  PR #212 comment of 2026-11-18 22:12 CET.
Status before: record binding covered boot and request digest only; the restart
exception applied to every class and direction.
Status after: role, execution id, attempt, action, request and reply are all bound;
each record has exactly one counterpart; the only permitted difference is a
wait-boot exchange that the serving side did not receive or answer.
Affected objects/functions: general_vm.check_restart_resend,
guest_multivm.C1Driver.wait_boot.
Affected invariants: execution counts come from one-to-one records per role.
Affected threats: a silently lost or forged execution record.
New assumptions: none.
Compatibility/migration: the refreshed evidence package carries the per-exchange
wait-boot records; earlier packages are superseded by a new tag.
Tests or proofs: 17 C1 unit tests and the 7 checker tests pass against the
regenerated package.
Residual risk: the physical dual-host restart scenario remains outside the
accepted scope.
Documents updated: report update follows the regenerated evidence.
Change: the checker's duplicate-attempt condition compares
(serving role, execution id, slot, attempt, action), so it can only fire inside one
serving role when the same attempt appears on two boots; the failure message now
says that instead of claiming the attempt appeared on more than one role.

Problem / counterexample: the message misdescribed the condition; a reader could
believe the cross-role case was covered by this check when it is covered by the
expected-record lookup.
Status before: a misleading failure message in the C1 checker.
Status after: the message matches the comparison.
Affected objects/functions: general_vm.check_restart_resend.
Affected invariants: none.
Affected threats: none.
New assumptions: none.
Compatibility/migration: none.
Tests or proofs: the message is not triggered by the recorded runs; the checker
tests are unchanged and re-run with the refreshed package.
Residual risk: none.
Documents updated: none.
…e r3 package

Change:
- docs/testing/C1-RESTART-RESEND-20261118.md: the report is regenerated against
  the runs at 1d72d11 (boots d5764979 -> 56e0b6f7 for C, 14c4e503 for B; source
  manifest de306fb9; merge times 536,047 / 791,334 / 522,573 ns; suite 190 tests
  in 103.4 s).  The derived envelope row uses the retained-frame scope only
  (3,725 / 3,725 / 2,519 bytes), names the probe frames as excluded, and states
  that the only permitted send/receive difference is a wait-boot exchange
  recorded per dispatch.  The checker negative cases now list the altered
  execution id, the records moved between roles and the orphan completion.
- docs/testing/public-evidence/C1-RESTART-RESEND-public-evidence.tar.gz: the
  refreshed sanitized package (SHA-256 052cdc86...), superseding the r2 package.
- SINGLEHOST-SHA256SUMS: refreshed for the archive, the changed sources and the
  new test module.

Problem / counterexample: the incremental audit at 02f7219 accepted an altered
execution id, records moved to another serving role, an orphan completion and a
deleted STOP receipt; the report also mixed the first-round source pin, boots and
a derived byte value computed from two different scopes.
Status before: the second audit round returned the PR with two MAJOR and one
MINOR finding still open.
Status after: the checker binds role, execution id and both record sides; the
only permitted difference is derived from the recorded wait-boot exchanges; the
report is synced to the r3 run.
Affected objects/functions: documentation, evidence package and manifests; the
code fixes are in 1d72d11.
Affected invariants: none beyond that commit.
Affected threats: none.
New assumptions: none.
Compatibility/migration: the r2 tag and package stay in place; r3 supersedes it.
Tests or proofs: suite 190 tests OK; the seven checker tests pass against the new
package; the three guest scenarios pass at 1d72d11 (19.72 s / 18.59 s / 34.64 s);
RETENTION-PLACEHOLDER
Residual risk: the physical dual-host restart scenario stays outside the accepted
scope; the R4 public package keeps its documented limitation.
Documents updated: the C1 report and the manifests.
Change: the C1 report separates the first-round (2m57s) and second-round (2m45.7s at 179ae75) full make test timings and records that the third round did not rerun the full suite on the maintainer's instruction; the changed checker and driver are covered by the 190-test suite and the seven checker negatives.
@tenneidp

Copy link
Copy Markdown
Member Author

第二轮审计修复(增量起点 @ dd60b9a)

修复提交:1d72d11(记录绑定与收发差额)、d418845(一处失败文案,无行为变化)、a05c3ba/dd60b9a(报告、证据包、清单与用时说明)。实跑源码提交 1d72d11;证据标签 evidence/20261118-c1-restart-resend-r3;证据包 SHA-256 052cdc86…。

发现 本轮处置 修复与证据
PRA-212-01 FIXED_IN_PR(待复核) 执行记录保留来源角色。每条 expected SOLVE/VERIFY begin 必须匹配请求的 execution_id、slot、attempt、action、boot 与角色;begin/end 双向一一对应,孤立 begin 或 end 都失败。新增负例:改全部 VERIFY 的 execution_id、把 C 的 VERIFY 记录搬到 B、只插入孤儿 end——三类都是你复现的输入,均在 tests/test_c1_evidence_checks.py(7 项,用 r3 包)。
PRA-212-03 A FIXED_IN_PR(待复核) 取消全局差额豁免。唯一允许的差额由 wait_boot 的逐次交换推导:该 dispatch 没有工作服务激活 → 该帧未收到;激活接受但没有答复 → 答复未收到。其它类别/方向必须为零。删除三个工作服务的 STOP 接收记录、或插入伪造 end,现在都会失败(前者已加入负例思路,后者由 begin/end 配对拦截)。
PRA-212-03 B FIXED_IN_PR(待复核) 派生行改用保留帧口径:restart/duplicate 6,686−2,961=3,725,stale 4,523−2,004=2,519,并注明不含重发探测帧。实际发送量仍单列在发送栏。
PRA-212-06 FIXED_IN_PR(待复核) 来源提交 1d72d11、清单摘要 de306fb9…;restart 的 boot 改为 d5764979… → 56e0b6f7…,B 为 14c4e503…;逐尝试表同步;归并用时 536,047 / 791,334 / 522,573 ns;套件 190 项 103.4 s;全量用时按轮次分列(首轮 2m57s、第二轮 179ae75 2m45.7s,本轮未重跑)。
PRA-212-02 / 04 / 05 维持已闭合 未重复整改。

本轮执行(HEAD dd60b9a;实跑源码 1d72d11)

命令 / 检查 结果
make test-minimal-verifier 190 tests,103.4 s,退出 0(改动前 163 / 81.6 s)
检查器负例(7 项,r3 包) 退出 0
来宾级 restart / duplicate / stale @ 1d72d11 各退出 0:19.72 s / 18.59 s / 34.64 s;执行 5/4、5/4、3/3
证据包 sha256sum -c SHA256SUMS 0
check-repository-evidence、update-manifests --check、check-license-coverage --require-git、git diff --check origin/main 各 0

按维护者「不做非必要测试」,本轮未重跑全量 make test、历史证据家族、R4 campaign、VM 之外的物理实验;报告与 PR 注明各轮用时基线,不把上一轮结果当本轮。物理双机重启场景仍按维护者决定未运行、不在本 PR 验收范围内;DCO 仍待签名者填写。

@tenneidp

Copy link
Copy Markdown
Member Author

PARALLEL-1 审计 @ dd60b9a

基线与范围

  • HEAD:dd60b9a037399a95812f1aa635da6f5665e33d4f;origin/main:01465f3d22a9b50ece02c002979b65ef70d79792。
  • 增量:上次审计 02f7219ac8d2174cc7ba200351e53133bc814fca → 当前 HEAD;2026-11-19 10:35 CET(UTC+01:00)。
  • 实现代理 dsh;审计代理 OpenAI GPT-6.1 Sol,未参与实现。采用本代理增量代码审查、定向回归与离线负例;不委派子代理。
  • 沿用维护者“不做不必要测试”的要求:仅复跑 C1 定向模块、新包离线检查及轻量机械校验;未重跑全量 make check / make test、无关历史证据家族、R4 campaign、VM 或物理双机实验。这是本次相对 PARALLEL-1 默认全量复跑的范围调整;上轮与实现方结果不冒充本次执行。
  • 独立 detached worktree,只读审计;临时负例在仓库外解包副本运行并恢复。未修改仓库、提交、推送或改变 PR 状态。

分项结论

维度 结果
计划符合度 FAIL:原功能发现已修复,但当前源码交付清单校验失败
语义连续性 PASS(本次增量范围)
结构完整性 FAIL:SINGLEHOST-SHA256SUMS 未匹配当前 HEAD
历史隔离 PASS:新包显式取代旧包,历史提交/标签保留,无删除或改名
本次复跑 FAIL:24 项定向回归通过,清单检查退出 1

退回修改:0 BLOCKER / 1 MAJOR / 0 MINOR 仍 OPEN。

已有发现复核

编号 状态 本次依据
PRA-212-01 FIXED_IN_PR 来源角色进入键;expected 绑定冻结请求的执行 ID、角色、boot、slot、attempt/action;begin/end 集合双向匹配。错执行 ID、跨角色搬移、孤立 end 及之前负例的定向回归均通过
PRA-212-03 FIXED_IN_PR 移除 restart 全局豁免;差额仅来自逐次 wait-boot 的 BOOT 交换。独立删除三个服务的全部 STOP 接收记录后,现明确失败,而非吞成在途差。保留帧信封已采用同口径,实算为 3,725 / 3,725 / 2,519 字节
PRA-212-06 FIXED_IN_PR 报告来源提交、清单摘要、restart boot、归并用时均与新包一致;全量用时按轮次分开,本轮未重跑已明示
PRA-212-02 / 05 维持 FIXED_IN_PR 本轮未改对应实现/政策,未发现回退
PRA-212-04 维持 ACCEPTED_BY_MAINTAINER 修订 2 的来宾级验收范围与 R4 公开包例外未变;物理级义务仍保留为后续工作,不宣称通过

新发现

PRA-212-07 — MAJOR / OPEN:失败文案修正后未刷新源码摘要

位置:SINGLEHOST-SHA256SUMS:187,对应 experiments/aclt-minimal-verifier-baseline/general_vm.py。

本次执行:

python3 -B scripts/update-manifests.py --check
退出 1
STALE manifests: SINGLEHOST-SHA256SUMS

逐项只读核对该清单,唯一内容摘要不符的是 general_vm.py:

  • 清单期望:b72615482b07238ae3ab776abe6c1364d637c30730abf0e9a91ff2d83af49ea7,对应实跑源码提交 1d72d11。
  • HEAD 实际:729ad29a6f15896af5d267c3345edd9d94f91b1b9ff996efc8b647f7e32d586c,从仅改失败文案的 d418845 起即为此值。

因此,“行为未变”虽成立,代码字节已变,不能继续使用旧源码哈希;当前 PR 正文及修复评论中“清单检查退出 0”的记录不能代替当前 HEAD 的实际失败。这不是新证据包内清单失败,也不要求改动历史证据源码 pin。

最小修复:条目会话运行清单生成器并审阅差异,仅更新应更新的当前交付清单;再次运行 update-manifests.py --check 和 git diff --check。此项不需重跑全量测试、VM、物理实验或重制证据包。审计没有代为刷新清单。

本次执行与证据

命令/检查 退出码/结果
python3 -B -m unittest discover -s experiments/aclt-minimal-verifier-baseline/tests -p 'test_c1_*.py' 0;24 项,20.206s,含三场景离线重放及执行记录负例
新包 restart 基线检查与删除全部 STOP 接收记录的独立探针 脚本 0:基线通过;变异以 STOP ... {count:3, bytes:39} vs ... {count:0, bytes:0} 被拒
python3 -B scripts/update-manifests.py --check 1,见 PRA-212-07
python3 -B scripts/check-repository-evidence.py --repository . 0
git diff --check 02f7219..HEAD 0
新包 sha256sum -c SHA256SUMS(变异恢复后) 0;251 项
三份 source 清单逐文件与 git show <source SHA>:<path> 对照 0;各 105 文件一致,源码 SHA 均为 1d72d11de18c9894a637ba52aa13c0d4ef0ad841
保留帧字节/净荷核算 restart、duplicate:6686−2961=3725;stale:4523−2004=2519
来源与测量对照 source manifest de306fb9...;restart C boot d5764979...→56e0b6f7...;归并 536047 / 791334 / 522573 ns,与报告一致
整包 SHA-256 052cdc862eea0a721071d186292eaa18003eb30e01bcf40bffb0305a8154cc38,与报告一致
本地证据标签可达性及 git ls-remote 远端解引用 0;evidence/20261118-c1-restart-resend-r3 指向上述实跑源码 SHA
git diff --diff-filter=DR --name-status 02f7219..HEAD 0,无删除/改名

增量 6 个文件均在批准文件集内。CONTRIBUTING §9 上轮逐问结论在未变部分沿用;本轮执行记录/收发完整性及报告同步已按新代码和证据复核。没有正式协议、预算、OQ/Gate 或理论依赖变更,无新增建模请求。

origin/main 比本分支基线前进了文档提交,合并前仍须按正常流程同步;本审计不替条目会话同步。CI 读回目前只有失败的 dco 项,不能据此宣称当前 HEAD 的 local-validation 通过;签名仍须授权签名者处理,代理不填写。

**建议:退回修改,仅处理 PRA-212-07。**原功能与报告发现不需重复整改;下轮若仅更新清单,只需轻量增量校验。禁止宣称物理双机重启已验收、任意采集器完整性、任意重放安全、持久去重/自动恢复、统计独立性、概率/成本保证、新协议 R4 campaign 已验证、Gate 退出或生产就绪。

# Conflicts:
#	docs/07-roadmap/current-status.md
@tenneidp

Copy link
Copy Markdown
Member Author

PRA-212-07 修复(@ fcf9af3)

  • 已在合并最新 main(01465f3)后运行 scripts/update-manifests.py,只更新了应更新的当前交付清单:SINGLEHOST-SHA256SUMS 中 general_vm.py 的摘要由 d418845 的实际字节决定(729ad29a…),不再沿用 1d72d11 的 b7261548…。
  • python3 -B scripts/update-manifests.py --check 退出 0;git diff --check 退出 0;工作树干净。
  • 合并提交 fcf9af3(main 01465f3)同时解决了 docs/07-roadmap/current-status.md 的冲突:保留 main 上 A1 的容量对照行与归档条目,并保留本条的 C1 行/条目;历史证据源码 pin 与 r3 包(1d72d11)未动。
  • 按你的说明,本项不重跑全量测试、VM、物理实验或证据包;定向模块与清单检查即本轮全部执行。

当前 PR 头 fcf9af3;dco 仍待签名者在正文末尾填写 Signed-off-by。

@tenneidp

Copy link
Copy Markdown
Member Author

PARALLEL-1 审计 @ fcf9af3

基线与范围

  • HEAD:fcf9af3106f2c1212dd426fc60b2c30307f656ed。
  • origin/main:01465f3d22a9b50ece02c002979b65ef70d79792。
  • 增量:上次审计 dd60b9a037399a95812f1aa635da6f5665e33d4f → 当前 HEAD;时间:2026-11-19 10:40 CET(UTC+01:00)。
  • 实现代理 dsh;审计代理 OpenAI GPT-6.1 Sol,未参与实现。本轮手工审查清单与 merge 冲突结果,不委派子代理。
  • 延续维护者“不做不必要测试”的要求:仅轻量增量校验,未重跑功能回归、全量 make check / make test、离线场景重放、VM 或物理实验;不将前轮结果记为本次执行。
  • detached worktree;首尾工作树干净;未改仓库内容、提交、推送或改变 PR 状态。

发现复核

**PRA-212-07:FIXED_IN_PR。**清单只把 general_vm.py 的旧摘要改为当前文件的 729ad29a6f15896af5d267c3345edd9d94f91b1b9ff996efc8b647f7e32d586c;update-manifests.py --check 本次退出 0。

PRA-212-01/02/03/05/06 维持 FIXED_IN_PR;PRA-212-04 维持 ACCEPTED_BY_MAINTAINER。源码、测试、驱动、证据包与报告相对上次审计均未改变,因此不重复功能测试或重新制作证据。

同步提交还带入 main 的 A1 文档:两份审计档案/索引及 docs/README.md 与 origin/main 没有差异;current-status.md 相对 main 仅增加本 PR 的 C1 行与日志,A1 的容量范围修正和归档条目完整保留。未发现冲突解决造成的内容丢失,亦无新增越界结论、文件集扩张或理论依赖。既有验收修订与禁止宣称不变。

分项结论

维度 结论
计划符合度 PASS(按计划卡修订 2)
语义连续性 PASS
结构完整性 PASS
历史隔离 PASS
本次复跑 PASS(仅轻量增量范围)

本次命令与退出码

命令/核查 退出码/结果
python3 -B scripts/update-manifests.py --check 0
python3 -B scripts/check-repository-evidence.py --repository . 0
git diff --check dd60b9a..HEAD 0
git diff --check origin/main...HEAD 0
git merge-base --is-ancestor origin/main HEAD 0,已包含本次固定的 main
源码、测试、脚本、Makefile 与 docs/testing 的增量文件检查 0,无变化
A1 同步文档与 origin/main 对照、current-status 双侧保留核对 0,未发现丢失或额外改写
git status --short(首尾) 0,空

**建议合并:0 OPEN BLOCKER / 0 OPEN MAJOR / 0 OPEN MINOR,无新增发现。**审计建议不代替合并条件:本次读回 local-validation 仍 pending、dco 失败;须等待必需 CI 通过,由授权签名者处理 DCO,并取得当前头部所需批准后,由维护者决定合并。

禁止宣称:物理双机重启已验收、任意采集器完整性、任意重放安全、持久去重/自动恢复、统计独立性、概率或成本保证、新协议 R4 campaign 已验证、Gate 退出或生产就绪。物理级验证与 R4 公开包边界继续按维护者决定保留。

@tenneidp
tenneidp merged commit bf91acf into main Nov 19, 2026
2 of 4 checks passed
@tenneidp
tenneidp deleted the feat/c1-restart-resend branch November 19, 2026 10:41
tenneidp added a commit that referenced this pull request Nov 19, 2026
<!-- PARALLEL-1:docs/08-governance/parallel-workflow.md。不要写入凭据、真实
IP、用户名或本地路径。 -->

Closes #216

## 条目与基线

-
Issue:[#216](https://github.com/ZeroMatrixTech/ACLt/issues/216)(SR-1:落实
REPO-AUDIT R1 第一轮裁定中的文本类事项)
- 依据:[#211 R1
第一轮裁定](https://github.com/ZeroMatrixTech/ACLt/issues/211#issuecomment-6991230132);R1
主审报告 `agents/dsh/reports/REPO-AUDIT-R1-20261118.*`;R1 复核报告
`agents/claude/reports/REPO-AUDIT-R1-20261118.review.md` 及
`r1-review-annex/review-{B,C,D}.md`
- 分支:`docs/sr1-r1-rulings`
- 基线:`01465f3d22a9b50ece02c002979b65ef70d79792`(提交时 `origin/main`)
- 提交:`d4b545b`(规范与概览文本)、`2d95544`(§29.3 历史向量措辞)、`32b0b68`(审计
PRA-217-01/02 修复)、`060a78e`(合并前同步 `origin/main` `bf91acf`)
- 实现代理:dsh;审计由 Codex 另行安排(PARALLEL-1 §3.1,实现代理不自审)
- 合并前已用 `/aclt-sync` 把 `origin/main` `bf91acf` merge 进分支;合并提交
`060a78e`,无冲突
- 并行判定:与在途 #206(B1)、#208/C2(C2)不共享非热点文件;热点文件只改
`docs/07-roadmap/current-status.md` 的 :33 一行与 §9 一行,按 PARALLEL-1 §6.2
按行处理
- 文件集补记:R1-049 的唯一规范落点在 `docs/03-protocol/result-validation.md`
§2,原计划卡文件集遗漏该文件;已把该文件(仅 Registry 清单)补入 Issue 文件集并留言:[#216
issuecomment-7005716930](#216 (comment))
- 审计修复补记:PRA-217-02 需要同步活依赖计划;已把
`docs/07-roadmap/fm-s3-audit-dependencies.{json,md}` 与生成物
`SINGLEHOST-SHA256SUMS`、`WORKFLOW-SHA256SUMS` 补入 Issue 文件集并留言:[#216
issuecomment-7006180326](#216 (comment))

## Change

### 1. 第 1 项:恢复 #171 改坏的句子(裁定 1)

文件:`docs/01-requirements/threat-model.md`
§11、`docs/00-overview/project-overview.md:101`。

新结构把 §11
分为两组:第一组是尚待证明的命题,只有在对应证明义务完成之后才属于安全主张;第二组是已否决、取代或明确排除的主张,边界无条件成立,不附加证明义务的前提。§11
标题保留当前文“安全主张的边界”,因为 §14 第 7 项已使用“安全主张边界”这一指代;#171
之前的标题“明确禁止的安全主张”未恢复。以下逐句对照,原句取自 `git show 89ae3a8^:<文件>`,当前文本取自基线
`01465f3`。

| # | #171 之前的原文 | 当前文本(基线 `01465f3`) | 新文本 | 含义核对 |
|---:|---|---|---|---|
| 11 引导句 | 在对应证明义务完成前,不得声称: | 在对应证明义务完成前,以下结论不属于安全主张: |
本节把安全主张的边界分成两组。第一组是尚待证明的命题:下列命题只有在对应证明义务完成之后才属于安全主张。……第二组是已被否决、取代或明确排除的主张。这些边界无条件成立,不依赖任何证明义务的完成:
| 原文对 16 条统一加“证明义务完成前”的禁令。复核 D 组指出其中 9
条是已否决/取代的语义,不待证明。新引导句把两类分开:待证组保留“证明义务完成之后”的条件;已决组明确无条件。没有双重否定。 |
| 1 | ACLt Protocol 的整体鲁棒性已经得到证明; | ACLt Protocol 的整体鲁棒性尚未得到证明; | ACLt
Protocol 的整体鲁棒性已经得到证明; |
原句是禁止在证明义务完成前声称的肯定命题。新句回到该肯定形式,由第一组标题限制其成为安全主张的时点。 |
| 2 | 任意计算都能以低成本可靠验证; | 任意计算的低成本可靠验证尚未建立; | 任意计算能以低成本可靠验证; |
同上;“能以”保留原文的可能性表述,未被写成已完成事实。 |
| 3 | 多个 Provider 代表多个独立控制实体; | 多个 Provider 不表示多个独立控制实体; | 多个 Provider
代表多个独立控制实体; | 原句是被否决的语义(术语表 §10 `REJECTED`)。新句放入第二组,无条件不构成安全主张,不附证明前提。 |
| 4 | 51% 是 ACLt Protocol 的默认安全阈值; | ACLt Protocol 没有默认的 51% 安全阈值; | 51%
是 ACLt Protocol 的默认安全阈值; | 原句是已取代的语义(术语表 §10
`SUPERSEDED`)。新句放入第二组,无条件成立。 |
| 5 | Rank、信誉或历史履约能够代表真理; | Rank、信誉或历史履约不表示真理; | Rank、信誉或历史履约代表真理; |
原句是已取代的语义(术语表 §10 `SUPERSEDED`)。“能够代表”与“代表”是同一肯定命题;放入第二组。 |
| 6 | `TRUSTED` 表示绝对正确; | `TRUSTED` 不表示绝对正确; | `TRUSTED` 表示绝对正确; |
原句是已否决的语义(术语表 §10 `REJECTED`)。新句放入第二组。 |
| 7 | 零抵押消除了 Sybil 或弃单风险; | 零抵押不消除 Sybil 或弃单风险; | 零抵押消除 Sybil 或弃单风险; |
原句与 DP-09“零抵押不等于零约束”冲突。新句放入第二组;删去完成体“了”,命题仍为“消除”,不表示已发生。 |
| 8 | 攻击成本大于协议内收益即可排除攻击; | 攻击成本大于协议内收益不足以排除攻击; | 攻击成本大于协议内收益即可排除攻击; |
原句是待证命题。当前文把它改成了反向断言“不足以排除”,强度加大;新句恢复原命题并放入第一组,待证明义务完成才成为安全主张。 |
| 9 | 验证资金可以通过临时发行变为“免费”; | 临时发行不会使验证资金变为“免费”; | 验证资金通过临时发行变为“免费”; |
原句是已取代/已排除的语义(临时发行只是可选
FundingPolicy,不消除真实成本)。新句放入第二组;“通过”与“可以…变为”指向同一命题。 |
| 10 | 区块链或去中心化存储会自动满足 ACLt Protocol 不变量; | 区块链或去中心化存储不会自动满足 ACLt
Protocol 不变量; | 区块链或去中心化存储自动满足 ACLt Protocol 不变量; | 原句是已否决的语义(术语表 §10
`REJECTED`)。新句放入第二组。 |
| 11 | 官方主网 assurance、Foundation 报告或一次工程审计等于绝对正确性证明; | 官方主网
assurance、Foundation 报告或一次工程审计不构成绝对正确性证明; | 官方主网 assurance、Foundation
报告或一次工程审计等于绝对正确性证明; | 原句是已否决/已决定的语义(ADR-0005、D-10 不给个案真理权)。新句放入第二组。 |
| 12 | 官方主网的条件性保证自动适用于 fork、私有部署、替换组件或主网外业务; | 官方主网的条件性保证不自动适用于
fork、私有部署、替换组件或主网外业务; | 官方主网的条件性保证自动适用于 fork、私有部署、替换组件或主网外业务; |
原句是已否决/已限定的语义(ADR-0005:主网外不继承)。新句放入第二组。 |
| 13 | 中心化参考实现已经具备分布式容错; | 中心化参考实现尚不具备分布式容错; | 中心化参考实现具备分布式容错; |
原句是待证命题。新句删去“已经”,回到原肯定命题并放入第一组;不表示当前已具备。 |
| 14 | 未经证明的序贯方法保持 anytime-valid 误差控制。 | 未经证明的序贯方法,其 anytime-valid
误差控制尚未得到证明,不作为当前主张; | 序贯方法保持 anytime-valid 误差控制。 |
原句的问题主体是“未经证明的方法”,当前文写成“未经证明…尚未证明”的同义反复。新句把同一性质放入第一组,由组标题承担“证明义务完成前”的条件;词面不再保留自相矛盾的“未经证明的”前缀。
|
| 15 | Rust 的语言安全、RIR 的存在或单一参考 compiler 自动保证结果正确、确定性、资源一致或分布式安全; | Rust
的语言安全、RIR 的存在或单一参考 compiler 不自动保证结果正确、确定性、资源一致或分布式安全; | Rust 的语言安全、RIR
的存在或单一参考 compiler 自动保证结果正确、确定性、资源一致或分布式安全; | 原句是已否决的语义(术语表
§10、ADR-0002)。新句放入第二组。 |
| 16 | V1 已支持 unsafe Rust、完整宿主 effects、原生执行、GPU/专用加速器或非确定性任务。 | V1
Profile 将 unsafe Rust、完整宿主 effects、原生执行、GPU/专用加速器或非确定性任务列为 `DEFERRED`
排除项;扩展由后续目标与对应准入条件决定。 | V1 支持 unsafe Rust、完整宿主
effects、原生执行、GPU/专用加速器或非确定性任务。……V1 Profile 将 unsafe Rust、完整宿主
effects、原生执行、GPU/专用加速器或非确定性任务列为 `DEFERRED` 排除项;扩展由后续目标与对应准入条件决定。 |
原句的“已支持”是已排除的肯定命题,放入第二组;基线中正确的 `DEFERRED`
决定句保留为第二组之后的独立句子,不把被否决的做法写成未来方向。 |

`docs/00-overview/project-overview.md:101`:

| #171 之前的原文 | 当前文本(基线 `01465f3`) | 新文本 | 含义核对 |
|---|---|---|---|
| 这些能力可以成为未来研究或适配方向,但不得被写入当前安全主张。 | 这些能力属于未来研究或适配方向;当前安全主张不包含它们。 | 其中仍处于
`OPEN`、`CANDIDATE` 或 `DEFERRED`
的内容可以作为未来研究或适配方向;已被否决或取代的做法保持其否决或取代记录(见[术语表](terminology.md#10-废弃或禁止的旧术语语义)与相关
ADR)。上述内容均不得写入当前安全主张。 |
恢复“可以成为”的可能性(当前文的“属于”把可能性写成断言),恢复“不得写入当前安全主张”的禁令;同时把已否决/取代的做法(术语表
§10、ADR-0002:60、ADR-0003:139)排除出“未来方向”,避免与 `REJECTED`/`SUPERSEDED` 记录冲突。
|

### 2. 规范文本(裁定 2、3、5)

文件:`docs/03-protocol/verification-profile-schema.md`。

- **裁定 2(`TimeRange`)**:§17.3 的 2 元数组标注为唯一线上形式;§3.2.1 的两行都改为“数据模型视图”,并指向
§17.3 的线上形式,`VersionRange` 与 `TimeRange` 写法一致。旧 20 条 map
形式向量保留为历史,不覆盖、不就地重算;相关代码与新增数组向量按计划卡留给 B1。
- **裁定 3(wire-key)**:§17.5B 新增恒等映射通则:在 `acl.enc.p0-1@1` 下,规范对象 CBOR map
的字段键即字段名文本。现有整数键例外逐一核实后只有 `VersionRange` 的 0/1(§17.3);仓库内候选切片
`schemas/verification-profile/claim-codec-slice.json` 与 FM 基础对象
`schemas/formal-migration/foundation.json`
均为恒等文本键,未发现其他例外。逆映射所需的字段类型表不在本通则内,注明由 TG-8(#213)处理。
- **裁定 5(tag 与编码版本)**:§17.4 写明对象版本的 tag 与编码 Profile 版本彼此独立;新增对象版本的 tag
不要求提升 `encoding_profile_id`,只有编码规则变化才提升;以 Profile v2 使用
`ACLt/P0-1/Profile/2` 而 `encoding_profile_id` 仍为 `acl.enc.p0-1@1`
为例;已发布摘要不变。
- **§29.1 更正**:不再把 `TimeRange` 的线上形式写成已统一;该行区分 2026-08-21
已完成的语义统一与本次(2026-11-19)对线上形式的冻结。
- **§29.3 新增修订记录**:写明本次修订、对应裁定与日期;§20—§28 的历史审计响应原文未改。

### 3. 同步已有决定(裁定 4 与复核补充)

- **R1-030 / B2(终态)**:`protocol-spec.md` §12 分开 Receipt 终态与
`CreateReceiptResult`(`ACCEPTED` / `REJECTED_AT_CREATE` /
`UNSUPPORTED`);`ACCEPTED` 成功登记 Receipt 并返回 ReceiptID,只有后两者创建失败且不产生
ReceiptID。终态为
`TRUSTED`、`UNRESOLVED`、`FAILED`、`EXPIRED`、`FUNDING_EXHAUSTED`、`FAILED_PLANNING`。`terminology.md`
§8 增加区分说明并改写两个词条;`task-lifecycle.md` §9 删除两行终态、保留说明,:53 的验证快照安全退出改为
`UNRESOLVED`;`system-context.md:103` 的规划阶段安全退出删除
`UNSUPPORTED`,并在表后说明创建结果与终态的边界。依据:ADR-0005 D-02(a)。
- **R1-049(Registry 清单)**:`result-validation.md` §2 删除与 schema 重复的 10
项清单,改为链接 schema 的 §3.1、§3.5、§5 与 §6;悬空冒号随之消失。
- **R1-061(Receipt 清单)**:`task-lifecycle.md` §4 增加“完整字段清单以 protocol-spec
§5 为准”,并点名 Exposure、Availability 与 Deployment assurance 三组。
- **R1-064 / R1-066(重复 V1 列)**:`protocol-spec.md` §4 删除逐行 V1 列,改为引用
`v1-profile.md` 的 FeatureKey 登记;未新增 FeatureKey,也未改 v1-profile。
- **复核补充**:`ADR-0009:12` 与 `current-status:33` 不再声称 v1-profile 中有
`verification.proof-assisted`;改为如实指向 Profile Schema §16.2 的非权威建议表,并写明
v1-profile 尚未登记该键(未新增条目)。`invariants:270`、`threat-model:148/181/308`
的故障归因状态改为:结算层 `AttributionClass` 已由 Profile Schema §10.1
冻结,履约证据层与完整结算归因矩阵仍为
`OPEN`(current-status:80、OQ-10)。`architecture-guide:174` 改为“项目工件
Apache-2.0;第三方材料保留原许可”,§8 的状态快照改为链接当前状态与覆盖清单。`project-overview:195`
的商标清查按 #128 名称决定改为仅保留域名/包名,`threat-model:313` 的同一行同步该范围。

## Problem / counterexample

- #171(`89ae3a8`)把 `threat-model.md` §11 的“不得声称
[肯定命题]”改成“以下结论不属于安全主张:[否定命题]”,形成双重否定;按字面,“多个 Provider
不表示多个独立控制实体不属于安全主张”,与原意相反。它还给 9
条已否决/取代的语义附加了“证明义务完成前”的条件。AUD-20261116-03 只抽核了“是否上调结论”,没有覆盖这一反转。
- 同一提交把 `project-overview.md:101`
的“可以成为未来研究或适配方向”改成“属于未来研究或适配方向”,把被否决的做法(真理权、增发掩盖耗尽、源码即规范语义等)写成未来方向。
- 规范文本中 `TimeRange` 同时有命名键 map(§3.2.1)与 2 元数组(§17.3)两种线上形式,§29.1
却写“已统一”;wire-key 通则与整数键例外未冻结;§17.4 的“新增 tag MUST 提升
`encoding_profile_id`”与 Profile v2 的实际 tag 冲突。
- `protocol-spec` §4 复制 V1 列,与“V1 处置只由 v1-profile 登记”冲突;§12 把
`REJECTED_AT_CREATE`、`UNSUPPORTED` 与 Receipt 终态混列,与 ADR-0005 D-02(a)
不一致。
- R1-049/061/064/066 与复核补充的跨文档引用未同步。

## Status before → after

| 位置 | 之前 | 之后 |
|---|---|---|
| `threat-model.md` §11 | 双重否定引导句 + 否定式条目 + 9 条已决语义附带证明前提 |
两组分开;待证组保留证明条件,已决组无条件;16 条均为肯定命题 |
| `project-overview.md:101` | 已否决/取代的做法“属于未来方向” | 只有
`OPEN`/`CANDIDATE`/`DEFERRED` 可作为未来方向;已否决/取代保持记录;保留“不得写入安全主张” |
| `verification-profile-schema.md` §3.2.1 / §17.3 | `TimeRange`
两套线上形式;§29.1 称已统一 | 唯一线上形式为 2 元数组;§3.2.1 为数据模型视图;§29.1 更正 |
| `verification-profile-schema.md` §17.5B | 无恒等 wire-key 通则 | 恒等映射 +
`VersionRange` 0/1 例外;TG-8 #213 注明逆映射类型问题 |
| `verification-profile-schema.md` §17.4 | 新增 tag 必须提升
`encoding_profile_id` | 对象 tag 与编码 Profile 版本独立;只有编码规则变化才提升 |
| `protocol-spec.md` §4 | 逐行 V1 列 | 删除 V1 列,改为引用 v1-profile |
| `protocol-spec.md` §12 | 8 个值混列为终态 | 6 个 Receipt 终态 +
`CreateReceiptResult`;`ACCEPTED` 返回 ReceiptID,后两者不产生 ReceiptID 且登记后不得进入
|
| `terminology.md` §8、`task-lifecycle.md` §9/:53、`system-context.md:103`
| 仍把 `REJECTED_AT_CREATE`/`UNSUPPORTED` 当终态或登记后退出 | 同步 ADR-0005 D-02(a)
|
| `result-validation.md` §2 | 重复 10 项 Registry 清单、冒号悬空 | 链接 schema
§3.1/§3.5/§5/§6 |
| `task-lifecycle.md` §4 | 缺 Exposure/Availability/Deployment assurance
| 指向 protocol-spec §5 并点名三组 |
| `ADR-0009:12`、`current-status:33` | 声称 v1-profile 有 `proof-assisted` |
指向 Profile Schema §16.2 非权威建议表;v1-profile 尚未登记 |
| `invariants:270`、`threat-model:148/181/308` | 故障归因统一写成 `OPEN/P0` | 结算层
`AttributionClass` 已冻结;履约证据层/完整矩阵仍 OPEN |
| `architecture-guide:174`、§8 | “仓库全部工件 Apache-2.0”;过时状态快照 | 项目工件
Apache-2.0、第三方保留原许可;状态链接当前状态与覆盖清单 |
| `project-overview:195`、`threat-model:313` | 商标、域名和包名清查 |
域名/包名清查;商标部分已按 2026-11-16 决定关闭 |

## Affected objects/functions

`TimeRange`、`VersionRange`、`CreateReceiptResult`、Receipt
终态集合、`RegistrySnapshot` 引用;`ToSchemaView` / `FromSchemaView` 的 wire-key
通则说明。

## Affected invariants

INV-01、INV-04、INV-07、INV-13、INV-14。只同步文本与引用,不改变不变量语义或状态。

## Affected threats

TH-05、TH-24、TH-03(终态引用)与 §11 安全主张边界;`threat-model.md` §12 的公共品牌清查行。

## New assumptions

无。

## Compatibility/migration

- 不新增编码规则;`encoding_profile_id` 保持 `acl.enc.p0-1@1`;已发布摘要与向量不变。
- 20 条 map 形式 `TimeRange` 向量按裁定保留为历史向量,标为旧形式;不覆盖、不就地重算。注册路径代码与新增数组向量留给
B1。
- 未修改 v1-profile,未新增 `verification.proof-assisted` 条目;`PROOF_VERIFIED` 的
V1 处置仍以 v1-profile 为准。

## Tests or proofs(本次执行)

在分支头 `32b0b68` 上执行,2026-11-19(Europe/Budapest),基线 `01465f3`;`d4b545b`
上的同一组快速检查结果相同,`2d95544` 只改 §29.3 的一条措辞,`32b0b68` 修复 PRA-217-01/02:

| 命令 | 退出码 | 结果 |
|---|---:|---|
| `python3 -B scripts/check-repository-evidence.py --repository .` | 0 |
`status: PASS`;`documents.status: PASS`;本地 prose 链接 1028 条 |
| `python3 -B scripts/update-manifests.py` | 0 | 更新后清单无差异 |
| `python3 -B scripts/update-manifests.py --check` | 0 | `PASS: delivery
manifests match the current inventory` |
| `python3 -B scripts/check-license-coverage.py --require-git` | 0 |
`PASS: covered=352 headers=257 declared=95 excluded=458 missing=0` |
| `make check-profile-inventory` | 0 | `127` 条规则;Type A `81 implemented
/ 35 partial / 3 not implemented`;`18` 个摘要 |
| `python3 -B -m unittest discover -s tests/migration_evidence -p
test_evidence.py -k test_full_inventory_is_accounted_without_closure` |
0 | `OK`(审计 PRA-217-02 的定向复现) |
| `python3 -B -m unittest discover -s tests/migration_evidence -p
'test_*.py'` | 0 | 17 项 `OK` |
| `make manifests` | 0 | 审计修复时只更新 `SINGLEHOST-SHA256SUMS` 中
`fm-s3-audit-dependencies.json` 的哈希;同步后再生成无额外差异 |
| `git diff --check origin/main` | 0 | 无命中 |

纯文档改动,按计划卡要求只跑快速检查与 `make check-profile-inventory`;未跑 `make test`,未等待
CI。CI 结果以 GitHub 为准。

## 审计响应(PRA-217-01 / PRA-217-02)

- **PRA-217-01(MAJOR,已修复)**:§12 引导句不再覆盖整个
`CreateReceiptResult`。`ACCEPTED` 分支写明成功登记 Receipt 并返回
ReceiptID;`REJECTED_AT_CREATE` / `UNSUPPORTED` 写明创建失败且不产生
ReceiptID。仍保留二者不是 Receipt 终态、登记后不得进入、不得出现在 `CanonicalTerminal` 的限制。
- **PRA-217-02(MAJOR,已修复)**:先核对 SR-1 的 §3.2.1、§17.3、§17.4、§17.5B 文本修订:SV
编号、119 项 Type A 计数、audit scope、四个 audit 终态与工作包划分均未改变。只刷新
`docs/07-roadmap/fm-s3-audit-dependencies.json` 中
`verification-profile-schema.md` 的 `source_sha256` 到当前字节 `597ef56c…`,并在
`.md` 记录核对结论;`make manifests` 只更新 `SINGLEHOST-SHA256SUMS`
的对应哈希。未改写历史实验摘要、历史 `source_revision` 或禁用检查。

## 合并前同步

- 2026-11-19:把 `origin/main` `bf91acf`(C1 #212)merge 进
`docs/sr1-r1-rulings`,生成 `060a78e`;无冲突。
- `docs/07-roadmap/current-status.md` §9 保留双方行:本分支的 2026-11-19 行在 C1 的
2026-11-18 行上方。`SINGLEHOST-SHA256SUMS` 自动合并后由 `make manifests` 复核,无额外差异。
- 同步带入的 C1 代码与测试位于
`experiments/aclt-minimal-verifier-baseline/**`,不在本条目文件集内;本条目文件集内只有热点
`current-status.md` 与生成清单,无新增待补审的非热点文件。
- 同步后在 `060a78e` 上执行 `make check` 退出 0、`make manifests` 退出 0、`git diff
HEAD --check` 退出 0。

## Residual risk

- `TimeRange` 注册路径的代码与新数组向量尚未迁移,按计划卡由 B1 处理;本 PR 只冻结规范文本并保留旧向量为历史。
- §11 的分组改写是本次最需要逐句核对的部分;本 PR 已在上面给出三列对照,但仍需独立审计确认。特别是第 7、9、14、16
条从否定式回到肯定式后的边界。
- `threat-model:313` 与 `project-overview:195` 的商标范围同步不在原计划卡逐项列表中,但属于
R1-046 的同一已决政策;如审计认为应只改 project-overview,可退回该一行。
- 未新增 v1-profile 的 `verification.proof-assisted`
条目;如果维护者认为需要新增,按计划卡应停下另行报告。
- 未改历史审计原文、发布说明正文、代码、向量与摘要。PRA-217-01/02 的修复待审计复核。

## Documents updated


`docs/00-overview/architecture-guide.md`、`docs/00-overview/project-overview.md`、`docs/00-overview/system-context.md`、`docs/00-overview/terminology.md`、`docs/01-requirements/invariants.md`、`docs/01-requirements/threat-model.md`、`docs/02-architecture/task-lifecycle.md`、`docs/03-protocol/protocol-spec.md`、`docs/03-protocol/result-validation.md`、`docs/03-protocol/verification-profile-schema.md`、`docs/05-decisions/ADR-0009-proof-verified-computation-statements.md`、`docs/07-roadmap/current-status.md`、`docs/07-roadmap/fm-s3-audit-dependencies.json`、`docs/07-roadmap/fm-s3-audit-dependencies.md`、`SINGLEHOST-SHA256SUMS`

## 理论缺口

- TG-8(#213):Schema View 逆映射的定义域与往返性质。本 PR 只注明 wire-key
通则不提供字段类型表,未处理该理论缺口,也未自行建模。
- 无新增 theory-gap;未为通过验收挑选参数或近似。

## 文档同步矩阵与 OQ

- CONTRIBUTING §7:命中“对象或状态机”(终态与
CreateReceiptResult)、“验证或统计”(`TimeRange`、wire-key、`REJECTED_AT_CREATE`/`UNSUPPORTED`)、“SemanticStatus
或 VersionDisposition”(protocol-spec §4 改为引用 v1-profile);对应文件均已同步。未改
Principal/职能、RIR、资金/结算矩阵或 Adapter。
- `docs/07-roadmap/open-questions.md` 未改:OQ-10 仍为 `OPEN`,本 PR 只把“结算层
`AttributionClass` 已冻结、履约证据层仍 OPEN”的分层写清;OQ-02 的 §17 编码债务未关闭。
- `docs/06-research/claims-and-sources.md` 未改:没有新增或改变 CLM 结论。

## 合并检查

- [x] 改动文件都在 Issue 文件集内(`result-validation.md` 已补入并在 Issue 留言)
- [x] 未改代码、向量、摘要、历史审计原文与发布说明正文
- [x] 分支基线即最新 `origin/main`,首次推送前无需 `/aclt-sync`
- [x] CI 结果以 GitHub 为准;未轮询、未等待
- [x] DCO:代理未在提交或正文中写 `Signed-off-by`;由签名者在合并前按 CONTRIBUTING §11
于正文最末尾另起一段签署

## 不得宣称

- 不得宣称 `TimeRange` 注册路径的代码、向量迁移或 B1 的 SV-42/SV-118 覆盖已经完成。
- 不得宣称 P0-1A、P0-1B、G0 或 G2 的状态因本 PR 改变。
- 不得宣称 v1-profile 已登记 `verification.proof-assisted` 或已把 `PROOF_VERIFIED`
改为 `CORE`。
- 不得把本 PR 的文本同步当作历史审计结论的重新裁定或发布说明的更新。

<!-- DCO(CONTRIBUTING §11):签名者(维护者,或签名名单中由维护者授权的人类协作者)合并前在本行下方另起一段加上签名行
`Signed-off-by: 姓名 <邮箱>`。只有正文最末尾的 trailer 区才算数;正文中只含 `---`
的行会把之后的内容当成补丁区。代理不填写本段。 -->

Signed-off-by: inpac <inpac@lingmatrix.cn>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: reject resent and stale attempt requests after worker restart, with split cost observations (C1)

2 participants