Repository navigation
feat: bind frozen requests to the serving boot and refuse pre-restart requests (C1) - #212
Conversation
… 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.
|
PARALLEL-1 审计 @ 62559a8 基线与范围
分项结论
开放发现:0 BLOCKER / 4 MAJOR / 1 MINOR。 发现项PRA-212-01 — MAJOR / OPEN:VERIFY 执行记录整体缺失仍通过 C1 检查位置: 检查器仅从现有 begin 记录检查重复及其 end,随后只遍历 **本次负例:**原始 restart 包先经 **修复要求:**对当前阶段的 SOLVE 和 VERIFY 保留答复均建立角色、boot、请求摘要、答复摘要与 begin/end 的完整绑定,拒绝缺失、孤立或错绑的执行记录;增加删除全部 VERIFY 记录、单条缺失、摘要错绑等负例。不得仅把报告里的复核次数改为零。 PRA-212-02 — MAJOR / OPEN:BOOT 回退可把预定 verifier 选为 solver位置:
**本次负例:**复用新增测试的 最终 journal 守卫阻止了自我复核接纳和发布,这一点没有失效;问题是新增预派发回退制造了不合法的求解/复核组合并留下预留,而非在无合法 solver 时准确停止。 **修复要求:**BOOT 候选必须满足既有 placement/不同角色约束;无合法候选时在 RESERVE 前返回既定终态。若要变更复核角色,须按批准设计处理,不能默默改变复核要求。补充部分不可达(而不只是全部不可达)回归。 PRA-212-03 — MAJOR / OPEN:C-06 收发观测遗漏探测与控制消息,却声明完整位置: SOLVE/VERIFY 计数来自唯一保留帧文件,重发同一原帧不会新增文件,因此探测实际发出的重复帧没有进入对应收发栏;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”;报告
**修复要求:**由维护者明确批准验收调整(本 PR 只交来宾级、物理项如何追踪,以及 R4 公开包已知限制的接受范围),条目会话据此同步计划卡和 PR;或补足相应证据。审计不会自行放宽验收,也不会自行启动物理机实验。 PRA-212-05 — MINOR / OPEN:报告把“拒绝此次投递”写成“该帧没有任何执行记录”位置:报告 计划与仓库规则核对
本次执行与退出码
本机: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。无故障注入环境覆盖, 建议**退回修改。**修复 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.
审计 PRA-212-01..05 的修复(增量起点 @ 179ae75)修复提交:
本轮执行(HEAD
|
| 命令 / 检查 | 结果 |
|---|---|
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.
|
补充(提交 |
|
PARALLEL-1 审计 @ 02f7219 增量基线与范围
结论
退回修改:0 BLOCKER / 2 MAJOR / 1 MINOR 仍 OPEN。 原发现复核
PRA-212-01 — MAJOR / OPEN:完整性修复仍未约束执行 ID、来源角色和所有 end 记录位置: 读取执行日志时丢弃了其来源角色;新 本次对原始 restart 包先确认通过,再分别做以下独立变异(每次恢复原包):
新增的四项回归确实通过,但“孤儿记录”用例插入的是成对 begin/end,不能覆盖只有 end 的情况。 **要求:**保留并核验每条记录所属角色、boot 所属角色、执行 ID、attempt/action、请求/答复摘要;begin/end 双向一一对应,拒绝孤立 end。增加上述轻量变异负例即可,不需再跑实验。 PRA-212-03 — MAJOR / OPEN:restart 全局差额豁免掩盖缺失记录,报告派生值口径不一致A. 豁免没有限制到重启窗口。 **要求:**将例外限定到可由记录定位的重启相关交换;其他消息仍须完整对账。未有证据解释的差应失败或明确未验收,不能仅改名为在途差。 B. 报告把实际发送帧字节减去了保留帧净荷。 本次仅从已留存字节做同口径核算:若采用实际发送口径,分别为 PRA-212-06 — MINOR / OPEN:报告刷新后仍混用首轮源码 pin 和 boot位置:报告
**要求:**按本轮证据同步来源提交、摘要、boot 与运行记录;历史事实若保留,单列并标明首轮,不覆盖历史证据。无需重测。 本次执行
增量 7 个文件均在批准文件集内;无预算、正式协议、OQ/Gate 状态或非目标改动。CONTRIBUTING §9 的上轮逐问结论在未变范围沿用;本轮受影响的执行完整性、fail-closed 与证据措辞按上述发现更新。没有新增理论依赖,不重测、不重判 TG-6/TG-7。当前 CI 读回 **建议:退回修改。**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.
第二轮审计修复(增量起点 @ dd60b9a)修复提交:
本轮执行(HEAD
|
| 命令 / 检查 | 结果 |
|---|---|
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 仍待签名者填写。
|
PARALLEL-1 审计 @ dd60b9a 基线与范围
分项结论
退回修改:0 BLOCKER / 1 MAJOR / 0 MINOR 仍 OPEN。 已有发现复核
新发现PRA-212-07 — MAJOR / OPEN:失败文案修正后未刷新源码摘要位置: 本次执行: 逐项只读核对该清单,唯一内容摘要不符的是
因此,“行为未变”虽成立,代码字节已变,不能继续使用旧源码哈希;当前 PR 正文及修复评论中“清单检查退出 0”的记录不能代替当前 HEAD 的实际失败。这不是新证据包内清单失败,也不要求改动历史证据源码 pin。 最小修复:条目会话运行清单生成器并审阅差异,仅更新应更新的当前交付清单;再次运行 本次执行与证据
增量 6 个文件均在批准文件集内。CONTRIBUTING §9 上轮逐问结论在未变部分沿用;本轮执行记录/收发完整性及报告同步已按新代码和证据复核。没有正式协议、预算、OQ/Gate 或理论依赖变更,无新增建模请求。
**建议:退回修改,仅处理 PRA-212-07。**原功能与报告发现不需重复整改;下轮若仅更新清单,只需轻量增量校验。禁止宣称物理双机重启已验收、任意采集器完整性、任意重放安全、持久去重/自动恢复、统计独立性、概率/成本保证、新协议 R4 campaign 已验证、Gate 退出或生产就绪。 |
# Conflicts: # docs/07-roadmap/current-status.md
PRA-212-07 修复(@ fcf9af3)
当前 PR 头 |
|
PARALLEL-1 审计 @ fcf9af3 基线与范围
发现复核**PRA-212-07:FIXED_IN_PR。**清单只把 PRA-212-01/02/03/05/06 维持 FIXED_IN_PR;PRA-212-04 维持 ACCEPTED_BY_MAINTAINER。源码、测试、驱动、证据包与报告相对上次审计均未改变,因此不重复功能测试或重新制作证据。 同步提交还带入 分项结论
本次命令与退出码
**建议合并:0 OPEN BLOCKER / 0 OPEN MAJOR / 0 OPEN MINOR,无新增发现。**审计建议不代替合并条件:本次读回 禁止宣称:物理双机重启已验收、任意采集器完整性、任意重放安全、持久去重/自动恢复、统计独立性、概率或成本保证、新协议 R4 campaign 已验证、Gate 退出或生产就绪。物理级验证与 R4 公开包边界继续按维护者决定保留。 |
<!-- 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>
Closes #208
Change
C1 按计划卡(含修订 2)与设计确认(设计说明、维护者确认)实现「重启前派发的请求一律拒绝」:
boots.jsonl再监听;每个连接先完成BOOT控制交换,随后才是冻结请求。RESERVE前取得 boot 并冻结进 SOLVE/VERIFY 帧;frame()只在事件带该字段时写入,旧日志与旧帧的重导出字节不变。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)。第二轮审计修复(PRA-212-01/03/06,
1d72d11、d418845)execution_id、slot、attempt、action、boot 与角色;begin/end 双向一一对应。改执行 ID、把记录搬到另一角色、只插入结束记录、成对孤儿记录均被拒(负例 7 项)。wait_boot的逐次交换推出(没有对应激活 = 该帧未收到;接受但没有答复 = 答复未收到),其它类别与方向必须为零;删除 STOP 接收记录或伪造结束记录都会失败。Problem / counterexample
AUD-20261117-01 的 A-03/C-03:工作服务的去重集合只在进程内(
general_vm.py:266),重启即丢失;请求处理器只校验epoch的类型,不查询当前授权。重启后重发同一请求会再次求解,旧轮次帧没有拒绝记录。两轮审计另复现了 PRA-212-01/02/03/06 的反例。Status before → after
(role, boot, execution, slot, attempt, action)至多一条 begin/end;拒绝有原因且不新增执行;执行记录与保留派发一一对应;BOOT 候选不得是冻结 verifier;收发差额只能来自可定位的 wait-boot 交换;旧日志与旧帧仍逐字节回放。Tests or proofs(本次执行)
make test-minimal-verifier(190 tests,本地 103.4 s;改动前 163 tests / 81.6 s)1d72d11python3 -B -m unittest discover -s tests -p 'test_general_evidence_replay.py'1d72d11python3 -B -m unittest discover -s tests -p 'test_c1_evidence_checks.py'(负例 7 项,用 r3 公开包)1d72d111d72d111d72d11--general-checkpoint 1,34.64 s)1d72d11make -j"$(nproc)" -O test(首轮 2m57s;第二轮179ae752m45.7s;本轮按维护者「不做非必要测试」未重跑)check-repository-evidence.py --repository .、update-manifests.py --check、check-license-coverage.py --require-git、git diff --check origin/maindd60b9acheck(改动前main1085fd3与本次提交)历史证据重放:
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
BOOT中的轮次由协调者自报,工作服务不核验其背后的授权;本条目不覆盖 A-01/A-03 中「任意实例能否自证有权」的部分。check仍报告改动前那条违反;这是被接受的既有交付限制,新协议下的 R4 式 campaign 未经本条目验证。Documents updated
docs/testing/C1-RESTART-RESEND-20261118.mddocs/testing/public-evidence/C1-RESTART-RESEND-public-evidence.tar.gzdocs/07-roadmap/current-status.mdSINGLEHOST-SHA256SUMSexperiments/aclt-minimal-verifier-baseline/:general_job.py、general_vm.py、guest_multivm.py、multivm.py、sort_contract.py、四个测试模块合并检查
BLOCKER/MAJOR(PRA-212-01/03 待第二轮增量复核;PRA-212-02/04/05 已闭合)/aclt-sync与最新main同步,本次重跑通过(合并前)Signed-off-by,dco检查通过(CONTRIBUTING §11)Signed-off-by: inpac inpac@lingmatrix.cn