Kaynağa Gözat

docs: align active truth to Linux 11-byte contract

Archive Windows/d99f354/false cocotb-pass claims under docs/historical;
state matrix fail at 6f32493, no tip matrix yet, TD ead5a3e historical;
clarify motor 00=stop vs solenoid 00=hold.

Co-authored-by: Cursor <cursoragent@cursor.com>
root 3 ay önce
ebeveyn
işleme
fef3c9d92a

+ 40 - 32
ACCEPTANCE_MATRIX.md

@@ -1,35 +1,43 @@
-# Final Convergence Acceptance Matrix
+# Acceptance Matrix(活动真相)
+
+> Windows 2026-07-26 全绿矩阵叙述已归档:[`docs/historical/ACCEPTANCE_MATRIX-windows-20260726.md`](docs/historical/ACCEPTANCE_MATRIX-windows-20260726.md)。  
+> 下表为 **当前可声明** 状态;`pass` 仅当有绑定到所述 commit 的收据。
+
+## Frozen contract gates
 
 | Area | Contract evidence | Status |
 |---|---|---:|
-| Project configuration | `project.json` has ordered 8 PTC and 4 FAN objects, mappings, `limits.startup`, UART, I2C, motor and watchdog fields | pass |
-| Schema | Every configuration section is closed and count/list drift is rejected | pass |
-| Protocol model | CRC, legal duty range, legal motor values, frame sizes and golden vectors | pass |
-| Generator | Deterministic artifacts, active interface metadata, generated ADC, single source-of-truth | pass |
-| Active ADC | Exactly 24 ordered assignments with no inactive board loads | pass |
-| RTL and simulation | Icarus full manifest (21 testbenches including POR, startup one-shot, and runtime limit inert) and Verilator top lint | pass |
-| Formal | All 8 `.sby` targets pass or bounded BMC pass | pass |
-| cocotb | `test_prod2u_door_temp_uart_e2e` produces `results.xml` pass | pass |
-| TD and bitstream | Anlogic TD primary + confirmation build, non-empty `fw.bit` | pass |
-| Package | `prod2u-agent-analysis-core-20260726.zip` zipfile audit + `prod2u-door-temp-final-20260726.zip` selftest; SHA-256 verified | pass |
-| Physical hardware | Outside this task boundary | not_applicable |
-
-## Verification receipts
-
-- Offline matrix: `C:\Users\Administrator\CodexTemp\prod2u-matrix-cleanup\verification-matrix-receipt.json` (status: pass, commit `d99f3542d73a468e29c151e3183dc2d229644d45`;包生成于 `4ddfbec3b1ec9363be051c9e5757b608359b918c`,source closure 未变).
-- Final core audit package: `C:\Users\Administrator\Downloads\CPLD-analysis\prod2u-agent-analysis-core-20260726\prod2u-agent-analysis-core-20260726.zip`.
-- Final reference package: `C:\Users\Administrator\Downloads\CPLD-analysis\prod2u-agent-analysis-core-20260726-reference\prod2u-agent-analysis-core-20260726-reference.zip`.
-- Final firmware delivery package: `C:\Users\Administrator\Downloads\CPLD-firmware\prod2u-door-temp-final-20260726.zip`.
-- Final TD bitstream (reused, source closure unchanged): `C:\Users\Administrator\CodexTemp\cpld-td-primary2\td\prod2u_p4_normal_v3\bitgen\prod2u_p4_normal_v3.bit`.
-
-## Frozen gates
-
-- Clock: 25 MHz; UART: 115200 8N1, 217 clocks per bit.
-- Frame header: `A5 5A`; CRC-16/CCITT-FALSE covers type, length and payload, with little-endian wire order.
-- Types: `0x01 SET_ALL`, `0x02 GET_TEMPERATURE`, `0x82 TEMPERATURE_DATA`.
-- SET_ALL: 11-byte payload (4 fan, 4 chamber PTC→8 physical PWM, 3 door bytes), 0..100 duty, door values 0/1/2, no response. Legacy 14-byte length rejected.
-- Temperature: 27 values and one 33-byte response frame.
-- PWM: protocol width 8, internal width 7, max 100, 100 phases, 1042 clocks per slot, actual frequency 19.993602047 Hz.
-- Boot targets: PTC=0/FAN=10. Watchdog: 10 s, target PTC=0/FAN=20, 500 us tick, 12500 clocks, 20000 ticks.
-- Startup: X/Y close seek, 450 steps/burst, 1000 step/s, 50 ms inter-burst, max 10 bursts, active-high limits, UART/motor gated until `startup_done`.
-- Active interface count: 24 unique assignments in the generated order.
+| Project configuration | `project.json`:4 FAN + 4 chamber PTC→8 PWM + intake/exhaust doors;UART/I2C/motor/watchdog/limits.startup | pass(源合同) |
+| Schema | 配置节闭合;count/list 漂移拒绝 | pass(源合同) |
+| Protocol model | CRC;duty 0..100;**SET_ALL 11 字节**;旧 14 字节拒绝;马达 `00=stop` / 电磁铁 `00=hold` | pass(源合同) |
+| Generator / ADC | 确定性产物;活动 ADC 24 脚;`intake_solenoid_out` 不 LOC | pass(源合同) / solenoid ball **blocked** |
+| Startup one-shot | 450 步/burst、1000 step/s、50 ms、最多 10 burst;`startup_done` 后 limit 惰性 | pass(源合同 + 既有 Icarus/formal 目标) |
+
+## Offline verification(收据绑定)
+
+| Area | Bound evidence | Status |
+|---|---|---:|
+| Python / contract | 最近矩阵 `6f32493` lane | pass(该矩阵内) |
+| Formal | 最近矩阵 `6f32493` lane | pass(该矩阵内;BMC vs prove 细节以各 `.sby` / 收据为准) |
+| cocotb UART e2e | 最近矩阵 `6f32493` | **fail** |
+| Full matrix @ `6f32493` | `verification_run_id` `cee32026080419331000000000000000` | **fail**(因 cocotb) |
+| Full matrix @ tip `f82c41e` | — | **not_run**(本轮尚未冻结最终 tip 矩阵) |
+| TD + bitstream | Linux `td2026` @ **`ead5a3e`**;bit SHA-256 `a7b5c119799b5c69520007777339798c2ed8ce286b62e709d9af1bb6dba523bc` | pass(**历史 commit**;非 tip) |
+| TD @ tip `f82c41e` | — | **not_run**(待 Lane F 独占重建) |
+| Package / replay | 随本轮 packager / 集成更新 | open / 以最新收据为准 |
+| Physical hardware | COM/JTAG/烧录未授权 | **`not_run`** |
+
+## Physical / board blocked(不升格为 pass)
+
+- Intake solenoid FPGA ball / 极性未确认。
+- Exhaust X/Y 产品轴名与丝印角色未闭环。
+- A11 与 CON124 装配冲突待确认。
+- 详见 [`docs/IO_EVIDENCE_MATRIX.zh-CN.md`](docs/IO_EVIDENCE_MATRIX.zh-CN.md)。
+
+## Frozen protocol numbers
+
+- Clock 25 MHz;UART 115200 8N1,217 clocks/bit;帧头 `A5 5A`;CRC-16/CCITT-FALSE LE。
+- Types:`0x01` / `0x02` / `0x82`。
+- SET_ALL:**11** 字节;Temperature:**27** 值 / 33 字节响应帧。
+- PWM:~19.993602047 Hz;boot PTC=0/FAN=10;watchdog 10 s → PTC=0/FAN=20。
+- Ordinary motor:450 steps @ 1000 step/s;X/Y 可重叠。

+ 1 - 0
AGENTS.md

@@ -43,6 +43,7 @@ Current authority is limited to the above contract files, this `AGENTS.md`, and
 - UART: 25 MHz, 115200 8N1, 217 clocks/bit, A5 5A framing, CRC-16/CCITT-FALSE.
 - Supported frame types: `0x01 SET_ALL`, `0x02 GET_TEMPERATURE`, `0x82 TEMPERATURE_DATA`.
 - SET_ALL payload: 4 FAN + 4 chamber PTC (each duplicated to 2 physical PTC PWM) + intake/exhaust X/exhaust Y door bytes (11 bytes total).
+- Door byte `00`: motor axes = stop (no new jog); intake solenoid = hold. `01` open / `02` close.
 - PTC active high; FAN active low at FPGA output.
 - PWM ~20 Hz.
 - Watchdog 10 s -> PTC 0, FAN 20.

+ 4 - 74
BASELINE_REPORT.md

@@ -1,77 +1,7 @@
-# Prod2U CPLD 重构基线报告
+# Baseline report pointer
 
-## 基线身份
+The July 2024 Windows-era baseline narrative is **historical only**:
 
-- Run ID: `3d8b6fec3bc44ad1a9ac73930c201107`
-- Reported at UTC: `2026-07-24T01:28:56.0438125Z`
-- Active branch before cleanup: `dev`
-- Active workspace commit before cleanup: `2980a4febeac8f59b476cd015dd50da33125bb44`
-- Selected working baseline commit: `1920ab3e33d1e50553ac8132698220bee65b4730`
-- Existing source tag: `p4-normal-1920ab3e-7c5918ac-rc1`
-- Planned archive tag: `archive/p4-normal-1920ab3e-7c5918ac`
+- [`docs/historical/BASELINE_REPORT-20260724.md`](docs/historical/BASELINE_REPORT-20260724.md)
 
-## Working bitstream
-
-- Package root: `C:\Users\Administrator\CodexTemp\p4-normal-images\1920ab3e\prod2u-p4-normal-1920ab3e-7c5918ac0d76556f`
-- Bitstream: `fw.bit`
-- Size: `162762` bytes
-- SHA-256: `7c5918ac0d76556f374e332b6ecf2e3c9c6b99b03e332dee45075cd349fa2c1c`
-- Package info SHA-256: `fde8502789c0d74dd79a4ef406d42d1cb27916e22b407402f85d36bd038ccd77`
-- Package verification run: `ff53c568d2034c86b822c6733706fc7d`
-- Package mode: `urgent_single_td`
-- Package metadata: `verification_complete=false`, `confirmation_td_present=false`
-
-The user reports that this baseline was manually verified. The package metadata and receipts do not establish final hardware acceptance, confirmation TD, Flash programming, or thermal qualification; those claims remain excluded from this report.
-
-## Hardware facts retained for migration
-
-- Device: `EF2L45BG256B`, 25 MHz clock on `J1`.
-- Host UART: RX `N11`, TX `M10`.
-- Temperature I2C: SCL `M8`, SDA `N9`.
-- CT7428 addresses: `0x49`, `0x48`, `0x4B`; registers `0..8` per device.
-- Inlet/X motor: STEP `C11`, DIR `B12`.
-- Outlet/Y motor: STEP `D15`, DIR `H14`.
-- Shared motor enable: `A10`, constant low enabled.
-- Z pins retained as reserved outputs: STEP `H12`, DIR `F14`, driven constant zero.
-- LS1/LS2 pads retained without synchronization or motion logic: `B9`, `A11`.
-- Solenoid pad retained at `P5` with the new safe non-action constant.
-
-All remaining PTC/FAN polarity, I2C transaction order, byte order, and temperature conversion details must match the selected baseline source and current TD constraints. Conflicts are blockers, not guesses.
-
-## Baseline artifact hashes
-
-| Artifact | SHA-256 |
-|---|---|
-| `fw.bit` | `7c5918ac0d76556f374e332b6ecf2e3c9c6b99b03e332dee45075cd349fa2c1c` |
-| `package-info.json` | `fde8502789c0d74dd79a4ef406d42d1cb27916e22b407402f85d36bd038ccd77` |
-| `config/prod2u_p4_normal_v3_hw_binding.json` | `04361389313289f74b7feada4623372b9a45e17c95dd4b1b097d97d731888862` |
-| `config/prod2u_p4_verification_targets_v1.json` | `c7eb8fc466b7c4e7bff9c9d293229e4a16b02666c826d0e4d08c7055a8c1dd51` |
-| `evidence/td-primary-receipt.json` | `ab3db15396d3ee0eafd4e373ae6b9d43c0bccf24a6c8d0f949c3446e054c3700` |
-| `evidence/validation-summary.json` | `4680bc160d1ca5ed56c4de9d672482cf841a71dad326e9030c0101026e3682da` |
-| `evidence/package-selftest-result.json` | `a9d6a6e2094207be57864b6b113e48ec82b6518305f4aee0863e26e3ec58cc4b` |
-| `evidence/td-primary/syn_qor.qor` | `1fdbc3aa1dc1232fdd9b7e130d3becddde61d8a2049a696dd37680d3ece4028c` |
-| `evidence/td-primary/phy_area.area` | `f3aeb4c711fa73c8b7f583ec8f50b85e3dc704ea4be91fa324f2eeee840f3bc6` |
-| `evidence/td-primary/timing.timing` | `75654aa6a38c015993fdbfc5d30d0cb2a2bc83b3b4ef33d2e322e99e68357368` |
-| `evidence/td-primary/phy_cdc.rpt` | `bbd665cea788c0fc364e382b357bc7e6330bff2774d14e42cd63b1f10eedbecc` |
-
-## Prior TD resource reference
-
-- IO: `43`
-- Synthesis registers: `1743`
-- Synthesis LUTs: `1936`
-- Synthesis slices: `104`
-- Synthesis RAMs: `1`
-- Synthesis DSPs: `0`
-- Setup WNS: `28018` ps
-- Setup TNS: `0`
-- Async registers reported: `6`
-
-These are historical comparison values only. They are not the new architecture's acceptance result.
-
-## Cleanup boundary
-
-- Preserve the authoritative detailed design file.
-- Restore all other tracked working-tree modifications.
-- Remove other untracked candidate and Adviser files.
-- Do not delete ignored generated evidence during cleanup.
-- Do not open hardware interfaces or modify global tooling.
+Active contract and verification truth: `README.zh-CN.md`, `ACCEPTANCE_MATRIX.md`, `FINAL_DELIVERY_REPORT.md`, `docs/prod2u-door-temp-protocol.zh-CN.md`, `AGENTS.md`, and `projects/prod2u-door-temp/*`.

+ 32 - 73
FINAL_DELIVERY_REPORT.md

@@ -1,90 +1,49 @@
-# Prod2U 门控温度 CPLD 最终交付报告
+# Prod2U 门控温度 CPLD — 活动交付状态报告
 
-## 执行摘要
+> 本文件描述 **当前活动真相**(Linux / 11 字节 SET_ALL)。  
+> 2026-07-26 Windows 清理轮次的最终包叙述已归档:[`docs/historical/FINAL_DELIVERY_REPORT-windows-20260726.md`](docs/historical/FINAL_DELIVERY_REPORT-windows-20260726.md)。
 
-本次任务完成了 `PROD2U-ONE-SHOT-FINAL-INTEGRATION` 的最终收尾:
+## 执行摘要
 
-- 删除了退休的旧 RTL(`uart_rx_8n1`、`uart_tx_8n1`、`prod2u_p4_temperature_read`、`prod2u_p4_us_tick`)及其孤儿测试。
-- 激活了 POR 回归测试 `prod2u_por_tb`,Icarus 目标从 20 个增至 21 个并全部通过。
-- 为 `package_for_agent_analysis.py` 实现了 Python `zipfile` 回退,核心源码审计包无需 7-Zip 即可生成。
-- 重写了 `tools/build_firmware_package.py`:强制 `--td-root` 绑定、源码闭包跨提交对比(`SOURCE-CLOSURE-COMPARISON.json`)、`TD-PROVENANCE.json`、manifest v2、外部自校验 sidecar(`.selftest.json`)。
-- 复用了 `cpld-td-primary2` 位流,因为 source closure 未变(与 `fe1a0a2a` 一致),无需重新跑 TD。
-- 生成了最终源码审计包、参考包和固件交付包,均通过 SHA-256 自校验。
+- 产品合同已收敛为 **11 字节 SET_ALL**、进风默认电磁铁、出风 X/Y 步进;旧 14 字节格式拒绝。
+- 权威工具链为 **Linux**(`td2026` + OSS CAD / Python 验证)。Windows 收据与路径不是活动权威。
+- 本轮 final closure 基线 tip:`f82c41e`。Lane A(本文档)只校正文档与 provenance,不跑全矩阵、不跑 TD。
 
-## 关键标识
+## 关键标识(活动)
 
 | 项目 | 值 |
 |---|---|
-| 最终 dev commit | `d99f3542d73a468e29c151e3183dc2d229644d45` |
-| 最终包生成 commit | `4ddfbec3b1ec9363be051c9e5757b608359b918c`(source closure 未变) |
-| 合并来源 | `integrate/prod2u-final-cleanup-20260726-121249` |
-| 工作树 | `C:\Users\Administrator\Agentworkspace\CPLD` |
-| TD 构建来源 commit | `fe1a0a2a19622b6f290905ec14795bb6cce6899d` |
-| 验证矩阵 commit | `3717c242e70f96704def13fb5800aa80392a29ea` |
-| source closure 是否变化 | 否(与 `fe1a0a2a` 一致) |
-| source-closure 对比 SHA-256 | 包含在固件包 `evidence/SOURCE-CLOSURE-COMPARISON.json` 中 |
-| 位流 SHA-256 | `d0f6b8c024df1a0895ea5ee9fb28f49b5eca697fbf31b1e897b6e99ee6b2a98a` |
-| 资源 | LUT 1113、Register 677、Packed Slice 570、BRAM 0、DSP 0 |
-| 时序 | Fmax 90.49 MHz、setup slack 28.949 ns、hold slack 0.046 ns |
-
-## 交付物路径
-
-- **核心源码审计包**:`C:\Users\Administrator\Downloads\CPLD-analysis\prod2u-agent-analysis-core-20260726\prod2u-agent-analysis-core-20260726.zip`
-  - SHA-256: `2a3744cdc641dbd6dc002a4ad53c125758e07cddec86e818097072165e9f195b`
-  - 文件数:206,未压缩 10.7 MB,压缩后 9.2 MB
-- **参考包**:`C:\Users\Administrator\Downloads\CPLD-analysis\prod2u-agent-analysis-core-20260726-reference\prod2u-agent-analysis-core-20260726-reference.zip`
-  - SHA-256: `70bdc59896c403b92af1dc3bea6f2d236f9ae056c3ab248d30d3da7106a820b3`
-  - 文件数:42,未压缩 21.1 MB,压缩后 10.2 MB
-- **固件交付包**:`C:\Users\Administrator\Downloads\CPLD-firmware\prod2u-door-temp-final-20260726.zip`
-  - SHA-256: `ee9dc94c5454d20a7db3cae8a5f16c44113bdb2298253873ca2f18896fe3fa2c`
-  - 自校验 sidecar:`C:\Users\Administrator\Downloads\CPLD-firmware\prod2u-door-temp-final-20260726.selftest.json`
-  - 包含 `fw.bit`、`PACKAGE-MANIFEST.json`(v2)、`td/original-final_td_report.json`、`td/TD-PROVENANCE.json`、`evidence/SOURCE-CLOSURE-COMPARISON.json`、约束/TD 输入、合同文档、离线矩阵 receipt
-- **离线验证矩阵收据**:`C:\Users\Administrator\CodexTemp\prod2u-matrix-cleanup\verification-matrix-receipt.json`(status: pass)
-- **TD 主建收据**:`C:\Users\Administrator\CodexTemp\cpld-td-primary2\report.json`(status: pass)
-- **位流**:`C:\Users\Administrator\CodexTemp\cpld-td-primary2\td\prod2u_p4_normal_v3\bitgen\prod2u_p4_normal_v3.bit`
-
-## 独立审计与验证
-
-以下审计均在最终 commit `2e299534c85e9927c17f4a09dcf01560dc351180` 上执行,且彼此隔离:
-
-1. **Python 单元与项目结构审计**(`pytest`)
-   - `166 passed, 1 skipped, 122 subtests passed`
-   - 收据:`prod2u-matrix-cleanup-python-prod2u-c\python-unit-receipt.json`
-
-2. **Icarus 完整 manifest 审计**
-   - 21 个 testbench 全部通过(含新增 `prod2u_por_tb` 与 `prod2u_p4_normal_v3_top_runtime_limit_tb`)
-   - 收据:`prod2u-matrix-cleanup-icarus-prod2u-c\icarus-receipt.json`
+| 文档对齐 / worktree 起点 tip | `f82c41e2a90fe7e6edf0777b19039cd577eb0f53` |
+| SET_ALL payload | **11 字节** |
+| 最近矩阵绑定 commit | `6f32493bc4d504981540d124aaaecb63d438d6b2` |
+| 该矩阵整体状态 | **fail**(失败项:`cocotb`) |
+| tip `f82c41e` 最终全矩阵 | **尚未出具**(本轮其他 Lane / 集成后才会冻结) |
+| 最近 TD pass commit | `ead5a3ed966288ab6509d0f0fd5054a7f9f2ef08`(历史) |
+| 该 TD bitstream SHA-256 | `a7b5c119799b5c69520007777339798c2ed8ce286b62e709d9af1bb6dba523bc` |
+| tip 上 TD 重建 | **待 Lane F**;在重建完成前不得把 `ead5a3e` 位流当作 tip 证据 |
+| Hardware validation | **`NOT RUN`** |
 
-3. **Verilator top lint 审计**
-   - 顶层 lint 通过,无未豁免警告
-   - 收据:`prod2u-matrix-cleanup-verilator-prod2u-c\verilator-receipt.json`
+## 风门语义摘要
 
-4. **Formal 形式化验证审计**
-   - 全部 `.sby` 目标通过
-   - 收据:`prod2u-matrix-cleanup-formal-prod2u-c\formal-receipt.json`
+- **马达(exhaust X/Y)`00` = stop**(无新 STEP jog)。
+- **电磁铁(intake)`00` = hold**(保持当前 latch;非“停止脉冲”语义)。
+- `01` = open;`02` = close。细节见协议文档。
 
-5. **cocotb 端到端 UART 审计**
-   - `test_prod2u_door_temp_uart_e2e` pass
-   - 收据:`prod2u-matrix-cleanup-cocotb-prod2u-c\cocotb-receipt.json`
+## 合法 blocked / not_run
 
-6. **TD 构建审计**
-   - 复用 `cpld-td-primary2` 位流;source closure 与 `project.json` 哈希与最终 `dev` 一致
-   - 资源:LUT 1113、Register 677、Packed Slice 570、BRAM 0、DSP 0
-   - 时序:Fmax 90.49 MHz、setup slack 28.949 ns、hold slack 0.046 ns
-   - 收据:`C:\Users\Administrator\CodexTemp\cpld-td-primary2\report.json`
+- `intake_solenoid_out`:无完整 connector→driver→ball→ADC 链 → **blocked**(禁止 LOC)。
+- X/Y STEP/DIR 产品轴名与丝印未完全闭环 → **blocked**。
+- A11 vs CON124 装配冲突待确认 → **blocked**。
+- COM / JTAG / 烧录未授权 → Hardware **`not_run`**。
 
-7. **包完整性审计**
-   - `prod2u-agent-analysis-core-20260726.zip` 生成并 zipfile 校验通过
-   - `prod2u-door-temp-final-20260726.zip` SHA-256 与 `SHA256SUMS.txt`、manifest 一致
-   - `td/build` 旧实验产物未进入固件包
-   - 外部 `.selftest.json` sidecar 与 ZIP 哈希一致
+## 明确作废的活动声明
 
-## 安全与权限边界
+以下内容**不得**再当作 tip / 活动 pass:
 
-- 未访问 COM/JTAG、未烧录硬件、未安装驱动、未修改全局 PATH。
-- 未创建固定 ChatGPT Adviser 工件;`AGENTS.md` 仅允许按任务提供的 exact URL 使用现有会话。
-- 所有操作在隔离的临时工作树与外部 work root 中完成;`dev` 分支已干净合并。
+- Windows 路径下的 “全矩阵 pass + cocotb pass”(`d99f354` / `4ddfbec` 时代叙述)。
+- SET_ALL **14 字节** 为当前合同。
+- 将 `ead5a3e` TD 位流直接标为 tip `f82c41e` 的 TD 证据。
 
 ## 结论
 
-`prod2u-agent-analysis-core` 源码审计包、`prod2u-agent-analysis-core-reference` 参考包与 `prod2u-door-temp-final` 固件交付包已生成,离线验证矩阵全部通过,source closure 与 TD 位流一致。物理硬件验证不在本次任务边界内,状态为 `not_run`。
+软件合同与 Linux 工具链方向已对齐;**活动验收矩阵与 tip TD 仍开放**。物理硬件为 **`NOT RUN`**。本报告随最终集成矩阵与 tip TD 收据更新,不以历史 Windows 包冒充闭环。

+ 18 - 6
OPEN_QUESTIONS.md

@@ -1,10 +1,22 @@
 # Open Questions and Accepted Uncertainty
 
-No user decision is currently blocking implementation.
+No user product-contract decision currently blocks the **11-byte SET_ALL + solenoid intake** software path.
 
-Accepted uncertainty for this run:
+## Accepted uncertainty / explicit status
 
-- No physical COM/JTAG or board test is authorized, so hardware response and actual fan load behavior remain unverified.
-- TD may be unavailable or may fail for environmental/project reasons; such outcomes remain explicitly blocked or failed.
-- The 20 Hz PWM value is a debugging target and does not guarantee a specific fan's mechanical speed or torque.
-- Existing baseline hardware facts remain authoritative for pins and project behavior; this change does not reinterpret them.
+- **Hardware validation: `NOT RUN`** — COM/JTAG/programming not authorized; board response and real fan load behavior unverified.
+- **TD at tip**: last known Linux TD pass is historical commit `ead5a3e` (bitstream `a7b5c119…`); tip `f82c41e` requires a fresh `td2026` rebuild before it is acceptance evidence.
+- **Verification matrix at tip**: latest bound full-matrix failure is `6f32493` (`cocotb` fail). No final tip matrix receipt yet for this closure run.
+- PWM ~20 Hz is a protocol/debug target; it does not guarantee a specific fan mechanical speed or torque.
+
+## Physical blocked (remain blocked; do not invent pins)
+
+- `intake_solenoid_out` lacks a confirmed connector → driver → FPGA ball → ADC chain; keep **un-LOC’d**.
+- Exhaust X/Y product axis naming vs silkscreen role not fully closed.
+- A11 vs CON124 assembly conflict unresolved.
+- Contract prose historically said CON30.3 for X limit; V1.2 probe point is **CON125.3 / B9** (see IO evidence matrix).
+
+## Non-goals for docs lane
+
+- Do not treat archived Windows packages (`d99f354` / `4ddfbec`, `C:\Users\...`) as current pass evidence.
+- Do not claim cocotb pass while the bound matrix records fail.

+ 30 - 20
PLAN.md

@@ -1,27 +1,37 @@
-# Prod2U Linux closed-loop + 11-byte newboard plan(active)
+# Prod2U final closure plan(active)
 
-- run_id: `linux-closed-loop-20260804`
-- branch: `refactor/linux-closed-loop-20260804T133246Z`
-- baseline_commit: `c0a7a9f8737a7140bf761f79995095f1c7ce171d`
-- TD: **in progress / required**(本轮用 Linux `td2026` SP2 重新跑;不再沿用 Windows not_run)
+- run_id: `grok45-final-20260805T013238Z`
+- docs worktree branch: `wt/docs-grok45-final-20260805T013238Z`
+- baseline tip (Phase 0): `f82c41e2a90fe7e6edf0777b19039cd577eb0f53`
+- authority env: **Linux** (`td2026`); Windows receipts → [`docs/historical/`](docs/historical/)
 
-## 已完成
+## Lane A(本文件所属)— docs / truth / provenance
 
-1. SET_ALL payload 14→11 字节;字段顺序 fan×4 + chamber PTC×4 + 三风门动作。
-2. 4 chamber PTC 复制到 8 路物理 PWM。
-3. 进风门默认电磁铁 adapter;出风门 X/Y jog(450 步 / 1000 step/s)。
-4. 开机限位校准保留;运行期限位硬隔离。
-5. 协议/host generator/golden vectors/单元测试更新。
-6. IO 证据矩阵 [`docs/IO_EVIDENCE_MATRIX.zh-CN.md`](IO_EVIDENCE_MATRIX.zh-CN.md)。
-7. Linux doctor/bootstrap/verify、可观测 runner、矩阵 TD lane。
-8. Reference inventory(V1.2 BRD / V2.0 PDF 哈希核验)。
+1. Active docs describe Linux + **11-byte SET_ALL** + honest matrix/TD/hardware status.
+2. Motor `00` = **stop**; solenoid `00` = **hold**(协议写清).
+3. Stale Windows / 14-byte / `d99f354` / `4ddfbec` / false cocotb-pass claims moved under `docs/historical/`.
+4. Do **not** run full verification matrix or TD in this lane.
 
-## TD 说明
+## Known evidence (do not inflate)
 
-- `intake_solenoid_out` 物理 ball 仍为 blocked;顶层保持内部 net(非封装脚),`keep` + unused sink 保留 adapter 逻辑,避免 unconstrained IO 阻断 bitgen。
-- 电磁铁极性为 inferred,待 V1.2 证据确认后再绑定 FPGA ball / 翻转电平。
-- 硬件烧录未授权:hardware validation = not_run。
+| Item | Fact |
+|---|---|
+| Latest bound matrix | `6f32493` overall **fail** (`cocotb` fail) |
+| Tip `f82c41e` final matrix | **not yet** |
+| TD pass | `ead5a3e`, bit `a7b5c119799b5c69520007777339798c2ed8ce286b62e709d9af1bb6dba523bc` — historical until tip rebuild |
+| Hardware | **`not_run`** |
+| Physical | solenoid ball / polarity, X/Y naming, A11↔CON124 — **blocked** |
 
-## 历史计划
+## Other lanes(协调摘要,非本树实现)
 
-- [`docs/historical/PLAN-prod2u-cleanup-20260726.zh-CN.md`](historical/PLAN-prod2u-cleanup-20260726.zh-CN.md)
+- B cocotb:修 `frame_accept_enable` 挂起等,合同 E2E 必须 pass。
+- C board-viewer:curated expectation + 矩阵覆盖。
+- D intake:生产 solenoid + non-prod motor-compat 双 profile。
+- E formal/tests:BMC vs prove 诚实收据。
+- F TD:tip 独占 `td2026` 重建。
+- G packager:inclusion-first full package + 诚实 source-closure。
+
+## Prior plans(historical)
+
+- [`docs/historical/PLAN-prod2u-cleanup-20260726.zh-CN.md`](docs/historical/PLAN-prod2u-cleanup-20260726.zh-CN.md)
+- Prior Linux plan id `linux-closed-loop-20260804` superseded by this run_id for active tracking.

+ 44 - 56
README.zh-CN.md

@@ -1,72 +1,60 @@
 # Prod2U 门控温度 CPLD
 
-本仓库当前为 `prod2u-door-temp` Final Convergence 候选工作树:25 MHz 主时钟、115200 8N1、无流控,统一帧为 `A5 5A type length payload CRC16_LE`。CRC-16/CCITT-FALSE 覆盖类型、长度和 payload,线路按低字节在前发送。
+本仓库实现 `prod2u-door-temp` 门温控:25 MHz 主时钟、UART `115200 8N1`、无流控。统一帧为 `A5 5A type length payload CRC16_LE`。CRC-16/CCITT-FALSE 覆盖 type、length 与 payload,线路低字节在前。
 
-正式类型只有:
+**权威执行环境:Linux 容器**(`td2026`、Python/Icarus/Verilator/formal/cocotb)。Windows 路径与旧收据仅作历史参考,见 [`docs/historical/`](docs/historical/)。
 
-- `0x01 SET_ALL`:8 路 PTC、4 路 FAN、X/Y 两个马达命令,共 14 字节 payload;成功后无回复。
-- `0x02 GET_TEMPERATURE`:空 payload;完成 27 项 CT7428 读取后只回复一帧温度数据。
-- `0x82 TEMPERATURE_DATA`:27 字节 payload,总帧长 33 字节。
+## 正式帧类型
 
-PTC 和 FAN 的占空值为十进制 0..100。马达字段合法值为 `00`、`01`、`02`;两个 `00` 表示心跳保持。X/Y 均为 exhaust 角色,执行 450 步,步频 1000 step/s,半周期 500 us,方向建立时间约 1 ms,共用低有效使能。
+| 类型 | 说明 |
+|---|---|
+| `0x01 SET_ALL` | **11 字节** payload:4 FAN + 4 chamber PTC(各复制到 2 路物理 PTC PWM)+ 进风门/出风门 X/出风门 Y;成功无回复。旧 14 字节 length `0x0E` 静默丢弃。 |
+| `0x02 GET_TEMPERATURE` | 空 payload;读完 27 项 CT7428 后只回一帧温度。 |
+| `0x82 TEMPERATURE_DATA` | 27 字节 payload,总帧长 33 字节。 |
 
-项目配置中的 PTC 顺序为 `G16,F16,N1,M1,R16,P16,P9,T9`,FAN 顺序为 `B1,C4,B5,A14`。PWM 使用 8 位协议值、7 位内部值、100 相位和 1042 个时钟槽,实际频率为约 19.993602047 Hz。启动目标为 PTC=0、FAN=10;看门狗超时为 10 s,目标为 PTC=0、FAN=20,500 us tick 对应 12500 个时钟、20000 个 tick。
+PTC/FAN 占空为十进制 0..100。PWM ≈20 Hz。PTC active-high;FAN 在 FPGA 输出为 active-low。启动目标 PTC=0、FAN=10;看门狗 10 s → PTC=0、FAN=20。
 
-启动限位关门流程已冻结:上电后 `startup_close_seek` 驱动 X/Y 马达向 close 方向间歇寻限位,最多 10 次 burst、每次 450 步、步频 1000 step/s、burst 间隔 50 ms;任一轴到达 active-high 限位即停止该轴,`startup_done` 为 1 前主机 UART 帧与马达控制被门控。
+### 风门字节语义(关键)
 
-本项目不提供旧协议兼容,不新增其他帧类型、确认帧、忙状态帧、队列或分页行为。项目事实以 `project.json` 为准,协议说明见 `docs/prod2u-door-temp-protocol.zh-CN.md`。
+| 字节 | 执行器 | `00` | `01` | `02` |
+|---|---|---|---|---|
+| 偏移 8 进风门 | 默认**电磁铁** | **保持(hold)** | open latched | closed latched |
+| 偏移 9/10 出风门 X/Y | **步进马达** | **停止(stop / 无新 jog)** | 开门 DIR=0 | 关门 DIR=1 |
 
-## Final Convergence 内容
+马达普通 jog:450 步 @ 1000 step/s;X/Y 可并行。详细合同见 [`docs/prod2u-door-temp-protocol.zh-CN.md`](docs/prod2u-door-temp-protocol.zh-CN.md) 与 `projects/prod2u-door-temp/project.json`。
 
-- 启动限位关门 RTL `src/modules/startup_close_seek.v` 已集成到 `src/top/prod2u_p4_normal_v3_top.v`,`x_limit_raw`/`y_limit_raw` 经二级同步后输入;`startup_done` 为 sticky,上电/复位后仅一次限位关门。
-- 运行时 limit 完全惰性:已新增 `tests/sim/prod2u_p4_normal_v3_top_runtime_limit_tb.v`,验证 `startup_done` 后限位变化不影响马达。
-- `project.json` 为唯一机器配置源,`config/source_closure.json` 和 `src/generated/td-source-manifest.json` 被构建/包/验证共享。
-- 退休的旧 RTL 已删除:`src/rtl/uart_rx_8n1.v`、`uart_tx_8n1.v`、`prod2u_p4_temperature_read.v`、`prod2u_p4_us_tick.v` 及其孤儿测试。
-- 激活 POR 回归 `tests/sim/prod2u_por_tb.v`,Icarus manifest 目标由 20 个增至 21 个。
-- `tools/run_verification_matrix.py` 已改为并发但简洁的矩阵运行器;每 lane 独立 work root 和 receipt。
-- `package_for_agent_analysis.py` 为 canonical 源码审计入口,核心 ZIP 卷使用 Python `zipfile` 生成,无需 7-Zip。
-- `tools/build_firmware_package.py` 生成最终 bitstream 交付包,强制 `--td-root` 绑定,包含 `SOURCE-CLOSURE-COMPARISON.json`、`TD-PROVENANCE.json`、manifest v2 与外部 `.selftest.json` sidecar。
+## 启动限位(one-shot)
 
-## 当前离线验证状态
+上电/`startup_done==0`:X/Y 向 close(DIR=1)间歇寻限位,最多 10 burst × 450 步 @ 1000 step/s,burst 间隔 50 ms;限位 active-high(X: B9,Y: A11)。`startup_done` 前主机 UART 被丢弃;完成后限位对普通 jog **惰性**。
 
-所有离线层均已通过同一 `verification_run_id` `prod2u-cleanup-20260726` 与最终 dev commit `d99f3542d73a468e29c151e3183dc2d229644d45`(最终包在 `4ddfbec3b1ec9363be051c9e5757b608359b918c` 生成,source closure 未变):
+## 当前基线与验证真相(本轮 closure)
 
-| 层级 | 命令 | 状态 |
-|---|---|---:|
-| Python 单元/合同 | `python -B tools/run_verification_matrix.py --lanes python ...` | pass |
-| Icarus 完整 manifest(21 testbenches) | `python -B tools/run_verification_matrix.py --lanes icarus ...` | pass |
-| Verilator top lint | `python -B tools/run_verification_matrix.py --lanes verilator ...` | pass |
-| Formal | `python -B tools/run_verification_matrix.py --lanes formal ...` | pass |
-| cocotb | `python -B tools/run_verification_matrix.py --lanes cocotb ...` | pass |
-| TD primary(bitstream reused, source closure unchanged) | `C:\Users\Administrator\CodexTemp\cpld-td-primary2\report.json` | pass |
-| Core audit package | `package_for_agent_analysis.py` | pass |
-| Firmware delivery package | `tools/build_firmware_package.py` | pass |
-| Physical hardware | 不在本次任务边界 | not_run |
+| 项 | 值 |
+|---|---|
+| 文档对齐 tip(本 worktree 起点) | `f82c41e` |
+| SET_ALL | **11 字节**(非 14) |
+| 最近完整矩阵绑定 | `6f32493`:整体 **fail**(`cocotb` fail;python/formal 等曾 pass) |
+| tip `f82c41e` 全矩阵 | **尚未**作为本轮最终矩阵跑完(Lane A 不声明 tip pass) |
+| TD / bitstream | 最近 pass 绑定历史 commit `ead5a3e`,bitstream SHA-256 `a7b5c119799b5c69520007777339798c2ed8ce286b62e709d9af1bb6dba523bc`;**非 tip**,tip 需 Lane F 重跑后方可宣称 |
+| Hardware / JTAG / 烧录 | **`not_run`**(未授权) |
+| 物理 blocked | 进风电磁铁 ball/极性;X/Y 产品轴名与丝印;A11 vs CON124 装配冲突等(见 `OPEN_QUESTIONS.md` / IO 证据矩阵) |
 
-```powershell
-# 一键运行完整离线矩阵(约 4-5 分钟)
-C:\Users\Administrator\CodexToolchains\CPLD\oss-cad-suite\latest\environment.ps1
-python -B tools/run_verification_matrix.py `
-  --work-root-prefix "C:\Users\Administrator\CodexTemp\prod2u-matrix" `
-  --verification-run-id prod2u-final-matrix `
-  --report-file "C:\Users\Administrator\CodexTemp\prod2u-matrix\matrix-receipt.json" `
-  --max-workers 4
+陈旧 Windows 最终交付叙述(`d99f354` / `4ddfbec`、虚假 cocotb 全绿、`C:\Users\...` 包路径)已移至 [`docs/historical/`](docs/historical/),**不是**当前活动真相。
+
+## 离线验证入口(Linux)
+
+```bash
+python -B tools/run_verification_matrix.py \
+  --work-root-prefix "${TMPDIR:-/tmp}/prod2u-matrix" \
+  --verification-run-id "<run_id>" \
+  --report-file "${TMPDIR:-/tmp}/prod2u-matrix/matrix-receipt.json"
 ```
 
-## 最终交付物
-
-- 最终 `dev` commit: `d99f3542d73a468e29c151e3183dc2d229644d45`(包生成于 `4ddfbec3b1ec9363be051c9e5757b608359b918c`,source closure 未变)
-- 核心源码审计包:`C:\Users\Administrator\Downloads\CPLD-analysis\prod2u-agent-analysis-core-20260726\prod2u-agent-analysis-core-20260726.zip`
-  - SHA-256: `2a3744cdc641dbd6dc002a4ad53c125758e07cddec86e818097072165e9f195b`
-- 参考包:`C:\Users\Administrator\Downloads\CPLD-analysis\prod2u-agent-analysis-core-20260726-reference\prod2u-agent-analysis-core-20260726-reference.zip`
-  - SHA-256: `70bdc59896c403b92af1dc3bea6f2d236f9ae056c3ab248d30d3da7106a820b3`
-- 固件交付包:`C:\Users\Administrator\Downloads\CPLD-firmware\prod2u-door-temp-final-20260726.zip`
-  - 含 `fw.bit`、manifest v2、TD 报告/溯源、source-closure 对比、约束/TD 输入、合同文档、离线矩阵 receipt
-  - 固件包 SHA-256: `ee9dc94c5454d20a7db3cae8a5f16c44113bdb2298253873ca2f18896fe3fa2c`
-  - 自校验 sidecar:`prod2u-door-temp-final-20260726.selftest.json`
-  - Bitstream SHA-256: `d0f6b8c024df1a0895ea5ee9fb28f49b5eca697fbf31b1e897b6e99ee6b2a98a`
-- 离线验证矩阵收据:`C:\Users\Administrator\CodexTemp\prod2u-matrix-cleanup\verification-matrix-receipt.json` (status: pass)
-- TD 主建收据:`C:\Users\Administrator\CodexTemp\cpld-td-primary2\report.json` (status: pass)
-- 资源:LUT 1113、Register 677、Packed Slice 570、BRAM 0、DSP 0;Fmax 90.49 MHz,setup slack 28.949 ns,hold slack 0.046 ns。
-
-物理硬件验证不在本次任务边界内。
+TD:仅用 `td2026`(Anlogic TD 2026.1 SP2 Linux)。勿把 TD 的 `LD_LIBRARY_PATH` 导出到全局 shell。说明见 [`docs/TD_USAGE.zh-CN.md`](docs/TD_USAGE.zh-CN.md)。
+
+## 合同与工具
+
+- 合同:`projects/prod2u-door-temp/project.json`、`requirements.zh-CN.md`、协议文档、`AGENTS.md`
+- 源码审计包:`package_for_agent_analysis.py`
+- 固件包:`tools/build_firmware_package.py`(需绑定 `--td-root`)
+- IO / 硬件期望:[`docs/IO_EVIDENCE_MATRIX.zh-CN.md`](docs/IO_EVIDENCE_MATRIX.zh-CN.md)、[`docs/HARDWARE_TEST_ORDER_WAVEFORMS.zh-CN.md`](docs/HARDWARE_TEST_ORDER_WAVEFORMS.zh-CN.md)

+ 3 - 2
docs/HARDWARE_TEST_ORDER_WAVEFORMS.zh-CN.md

@@ -60,8 +60,9 @@ LIMIT (active-high):   ____________/‾‾‾‾‾‾  → stop further rises
 
 ### 2.4 普通 jog(startup_done 后)
 
-- 命令 01:DIR=0;02:DIR=1;00:无新边沿。
-- 固定 **450** 个 STEP 上升沿 @ 1000 step/s(约 450 ms 脉冲列)。
+- 步进马达:`01` DIR=0 开门;`02` DIR=1 关门;**`00` = stop**(无新 STEP 边沿 / 不启动新 jog)。
+- 进风电磁铁(若已接线):`01` open latch;`02` closed latch;**`00` = hold**(保持;非马达 stop 语义)。无 FPGA ball 时本步 **blocked / 跳过**。
+- 非零马达命令:固定 **450** 个 STEP 上升沿 @ 1000 step/s(约 450 ms 脉冲列)。
 - 运行期 LIMIT 翻转 **不应** 截断 STEP。
 
 ```text

+ 8 - 4
docs/TD_USAGE.zh-CN.md

@@ -1,13 +1,15 @@
 # TD 工具链使用说明(Prod2U / CPLD 项目)
 
-本文档说明如何在 **Windows** 与 **Linux 容器** 环境中安装、验证和使用 Anlogic TD 对 `prod2u_p4_normal_v3` 进行综合与实现。
+**活动权威环境是 Linux 容器**,命令入口为 `td2026`(Anlogic TD 2026.1 SP2)。最终验收收据必须以当前 Linux 运行产生;Windows GUI/批处理路径仅作可选参考,不是活动闭环权威。
+
+最近一次已记录的 Linux TD pass 绑定历史 commit `ead5a3e`(bitstream SHA-256 `a7b5c119…`)。tip 变更后必须重跑;勿用历史位流冒充 tip 证据。Hardware 烧录未授权时状态为 `not_run`。
 
 ## 1. 工具链版本
 
 | 环境 | 推荐版本 | 说明 |
 |------|----------|------|
-| Windows | TD Release 2026.1 SP2 NL(或更新) | GUI + 批处理,路径示例 `C:\Anlogic\TD_Release_2026.1_SP2_NL` |
-| Linux 容器 | TD Release 2026.1 SP2 NL Build 6.2.2.200067 | 无头批处理,zip 名 `TD_Release_2026.1_SP2_NL.zip` |
+| **Linux 容器(权威)** | TD Release 2026.1 SP2 NL Build 6.2.2.200067 | 无头批处理,`td2026`;zip 名 `TD_Release_2026.1_SP2_NL.zip` |
+| Windows(非权威参考) | TD Release 2026.1 SP2 NL(或更新) | GUI + 批处理;历史路径示例见下文,不作最终验收权威 |
 
 Linux 安装包与 `license_for_website.zip` 需放在项目目录或 `Agentworkspace/`,**不包含在本源码压缩包内**(TD zip 约 1.9 GB)。
 
@@ -68,7 +70,9 @@ export QT_PLUGIN_PATH=$ANLOGIC_TD2026_HOME/lib/Qt/plugins
 export QT_QPA_PLATFORM=offscreen
 ```
 
-## 3. Windows 使用
+## 3. Windows 使用(非权威参考)
+
+> 活动验收与最终收据以 Linux `td2026` 为准。本节仅保留 GUI/批处理操作备忘;历史 Windows 收据见 `docs/historical/`。
 
 ### 3.1 安装
 

Dosya farkı çok büyük olduğundan ihmal edildi
+ 10 - 16
docs/agent-handoff-packaging.zh-CN.md


+ 35 - 0
docs/historical/ACCEPTANCE_MATRIX-windows-20260726.md

@@ -0,0 +1,35 @@
+# Final Convergence Acceptance Matrix
+
+| Area | Contract evidence | Status |
+|---|---|---:|
+| Project configuration | `project.json` has ordered 8 PTC and 4 FAN objects, mappings, `limits.startup`, UART, I2C, motor and watchdog fields | pass |
+| Schema | Every configuration section is closed and count/list drift is rejected | pass |
+| Protocol model | CRC, legal duty range, legal motor values, frame sizes and golden vectors | pass |
+| Generator | Deterministic artifacts, active interface metadata, generated ADC, single source-of-truth | pass |
+| Active ADC | Exactly 24 ordered assignments with no inactive board loads | pass |
+| RTL and simulation | Icarus full manifest (21 testbenches including POR, startup one-shot, and runtime limit inert) and Verilator top lint | pass |
+| Formal | All 8 `.sby` targets pass or bounded BMC pass | pass |
+| cocotb | `test_prod2u_door_temp_uart_e2e` produces `results.xml` pass | pass |
+| TD and bitstream | Anlogic TD primary + confirmation build, non-empty `fw.bit` | pass |
+| Package | `prod2u-agent-analysis-core-20260726.zip` zipfile audit + `prod2u-door-temp-final-20260726.zip` selftest; SHA-256 verified | pass |
+| Physical hardware | Outside this task boundary | not_applicable |
+
+## Verification receipts
+
+- Offline matrix: `C:\Users\Administrator\CodexTemp\prod2u-matrix-cleanup\verification-matrix-receipt.json` (status: pass, commit `d99f3542d73a468e29c151e3183dc2d229644d45`;包生成于 `4ddfbec3b1ec9363be051c9e5757b608359b918c`,source closure 未变).
+- Final core audit package: `C:\Users\Administrator\Downloads\CPLD-analysis\prod2u-agent-analysis-core-20260726\prod2u-agent-analysis-core-20260726.zip`.
+- Final reference package: `C:\Users\Administrator\Downloads\CPLD-analysis\prod2u-agent-analysis-core-20260726-reference\prod2u-agent-analysis-core-20260726-reference.zip`.
+- Final firmware delivery package: `C:\Users\Administrator\Downloads\CPLD-firmware\prod2u-door-temp-final-20260726.zip`.
+- Final TD bitstream (reused, source closure unchanged): `C:\Users\Administrator\CodexTemp\cpld-td-primary2\td\prod2u_p4_normal_v3\bitgen\prod2u_p4_normal_v3.bit`.
+
+## Frozen gates
+
+- Clock: 25 MHz; UART: 115200 8N1, 217 clocks per bit.
+- Frame header: `A5 5A`; CRC-16/CCITT-FALSE covers type, length and payload, with little-endian wire order.
+- Types: `0x01 SET_ALL`, `0x02 GET_TEMPERATURE`, `0x82 TEMPERATURE_DATA`.
+- SET_ALL: 11-byte payload (4 fan, 4 chamber PTC→8 physical PWM, 3 door bytes), 0..100 duty, door values 0/1/2, no response. Legacy 14-byte length rejected.
+- Temperature: 27 values and one 33-byte response frame.
+- PWM: protocol width 8, internal width 7, max 100, 100 phases, 1042 clocks per slot, actual frequency 19.993602047 Hz.
+- Boot targets: PTC=0/FAN=10. Watchdog: 10 s, target PTC=0/FAN=20, 500 us tick, 12500 clocks, 20000 ticks.
+- Startup: X/Y close seek, 450 steps/burst, 1000 step/s, 50 ms inter-burst, max 10 bursts, active-high limits, UART/motor gated until `startup_done`.
+- Active interface count: 24 unique assignments in the generated order.

+ 77 - 0
docs/historical/BASELINE_REPORT-20260724.md

@@ -0,0 +1,77 @@
+# Prod2U CPLD 重构基线报告
+
+## 基线身份
+
+- Run ID: `3d8b6fec3bc44ad1a9ac73930c201107`
+- Reported at UTC: `2026-07-24T01:28:56.0438125Z`
+- Active branch before cleanup: `dev`
+- Active workspace commit before cleanup: `2980a4febeac8f59b476cd015dd50da33125bb44`
+- Selected working baseline commit: `1920ab3e33d1e50553ac8132698220bee65b4730`
+- Existing source tag: `p4-normal-1920ab3e-7c5918ac-rc1`
+- Planned archive tag: `archive/p4-normal-1920ab3e-7c5918ac`
+
+## Working bitstream
+
+- Package root: `C:\Users\Administrator\CodexTemp\p4-normal-images\1920ab3e\prod2u-p4-normal-1920ab3e-7c5918ac0d76556f`
+- Bitstream: `fw.bit`
+- Size: `162762` bytes
+- SHA-256: `7c5918ac0d76556f374e332b6ecf2e3c9c6b99b03e332dee45075cd349fa2c1c`
+- Package info SHA-256: `fde8502789c0d74dd79a4ef406d42d1cb27916e22b407402f85d36bd038ccd77`
+- Package verification run: `ff53c568d2034c86b822c6733706fc7d`
+- Package mode: `urgent_single_td`
+- Package metadata: `verification_complete=false`, `confirmation_td_present=false`
+
+The user reports that this baseline was manually verified. The package metadata and receipts do not establish final hardware acceptance, confirmation TD, Flash programming, or thermal qualification; those claims remain excluded from this report.
+
+## Hardware facts retained for migration
+
+- Device: `EF2L45BG256B`, 25 MHz clock on `J1`.
+- Host UART: RX `N11`, TX `M10`.
+- Temperature I2C: SCL `M8`, SDA `N9`.
+- CT7428 addresses: `0x49`, `0x48`, `0x4B`; registers `0..8` per device.
+- Inlet/X motor: STEP `C11`, DIR `B12`.
+- Outlet/Y motor: STEP `D15`, DIR `H14`.
+- Shared motor enable: `A10`, constant low enabled.
+- Z pins retained as reserved outputs: STEP `H12`, DIR `F14`, driven constant zero.
+- LS1/LS2 pads retained without synchronization or motion logic: `B9`, `A11`.
+- Solenoid pad retained at `P5` with the new safe non-action constant.
+
+All remaining PTC/FAN polarity, I2C transaction order, byte order, and temperature conversion details must match the selected baseline source and current TD constraints. Conflicts are blockers, not guesses.
+
+## Baseline artifact hashes
+
+| Artifact | SHA-256 |
+|---|---|
+| `fw.bit` | `7c5918ac0d76556f374e332b6ecf2e3c9c6b99b03e332dee45075cd349fa2c1c` |
+| `package-info.json` | `fde8502789c0d74dd79a4ef406d42d1cb27916e22b407402f85d36bd038ccd77` |
+| `config/prod2u_p4_normal_v3_hw_binding.json` | `04361389313289f74b7feada4623372b9a45e17c95dd4b1b097d97d731888862` |
+| `config/prod2u_p4_verification_targets_v1.json` | `c7eb8fc466b7c4e7bff9c9d293229e4a16b02666c826d0e4d08c7055a8c1dd51` |
+| `evidence/td-primary-receipt.json` | `ab3db15396d3ee0eafd4e373ae6b9d43c0bccf24a6c8d0f949c3446e054c3700` |
+| `evidence/validation-summary.json` | `4680bc160d1ca5ed56c4de9d672482cf841a71dad326e9030c0101026e3682da` |
+| `evidence/package-selftest-result.json` | `a9d6a6e2094207be57864b6b113e48ec82b6518305f4aee0863e26e3ec58cc4b` |
+| `evidence/td-primary/syn_qor.qor` | `1fdbc3aa1dc1232fdd9b7e130d3becddde61d8a2049a696dd37680d3ece4028c` |
+| `evidence/td-primary/phy_area.area` | `f3aeb4c711fa73c8b7f583ec8f50b85e3dc704ea4be91fa324f2eeee840f3bc6` |
+| `evidence/td-primary/timing.timing` | `75654aa6a38c015993fdbfc5d30d0cb2a2bc83b3b4ef33d2e322e99e68357368` |
+| `evidence/td-primary/phy_cdc.rpt` | `bbd665cea788c0fc364e382b357bc7e6330bff2774d14e42cd63b1f10eedbecc` |
+
+## Prior TD resource reference
+
+- IO: `43`
+- Synthesis registers: `1743`
+- Synthesis LUTs: `1936`
+- Synthesis slices: `104`
+- Synthesis RAMs: `1`
+- Synthesis DSPs: `0`
+- Setup WNS: `28018` ps
+- Setup TNS: `0`
+- Async registers reported: `6`
+
+These are historical comparison values only. They are not the new architecture's acceptance result.
+
+## Cleanup boundary
+
+- Preserve the authoritative detailed design file.
+- Restore all other tracked working-tree modifications.
+- Remove other untracked candidate and Adviser files.
+- Do not delete ignored generated evidence during cleanup.
+- Do not open hardware interfaces or modify global tooling.

+ 90 - 0
docs/historical/FINAL_DELIVERY_REPORT-windows-20260726.md

@@ -0,0 +1,90 @@
+# Prod2U 门控温度 CPLD 最终交付报告
+
+## 执行摘要
+
+本次任务完成了 `PROD2U-ONE-SHOT-FINAL-INTEGRATION` 的最终收尾:
+
+- 删除了退休的旧 RTL(`uart_rx_8n1`、`uart_tx_8n1`、`prod2u_p4_temperature_read`、`prod2u_p4_us_tick`)及其孤儿测试。
+- 激活了 POR 回归测试 `prod2u_por_tb`,Icarus 目标从 20 个增至 21 个并全部通过。
+- 为 `package_for_agent_analysis.py` 实现了 Python `zipfile` 回退,核心源码审计包无需 7-Zip 即可生成。
+- 重写了 `tools/build_firmware_package.py`:强制 `--td-root` 绑定、源码闭包跨提交对比(`SOURCE-CLOSURE-COMPARISON.json`)、`TD-PROVENANCE.json`、manifest v2、外部自校验 sidecar(`.selftest.json`)。
+- 复用了 `cpld-td-primary2` 位流,因为 source closure 未变(与 `fe1a0a2a` 一致),无需重新跑 TD。
+- 生成了最终源码审计包、参考包和固件交付包,均通过 SHA-256 自校验。
+
+## 关键标识
+
+| 项目 | 值 |
+|---|---|
+| 最终 dev commit | `d99f3542d73a468e29c151e3183dc2d229644d45` |
+| 最终包生成 commit | `4ddfbec3b1ec9363be051c9e5757b608359b918c`(source closure 未变) |
+| 合并来源 | `integrate/prod2u-final-cleanup-20260726-121249` |
+| 工作树 | `C:\Users\Administrator\Agentworkspace\CPLD` |
+| TD 构建来源 commit | `fe1a0a2a19622b6f290905ec14795bb6cce6899d` |
+| 验证矩阵 commit | `3717c242e70f96704def13fb5800aa80392a29ea` |
+| source closure 是否变化 | 否(与 `fe1a0a2a` 一致) |
+| source-closure 对比 SHA-256 | 包含在固件包 `evidence/SOURCE-CLOSURE-COMPARISON.json` 中 |
+| 位流 SHA-256 | `d0f6b8c024df1a0895ea5ee9fb28f49b5eca697fbf31b1e897b6e99ee6b2a98a` |
+| 资源 | LUT 1113、Register 677、Packed Slice 570、BRAM 0、DSP 0 |
+| 时序 | Fmax 90.49 MHz、setup slack 28.949 ns、hold slack 0.046 ns |
+
+## 交付物路径
+
+- **核心源码审计包**:`C:\Users\Administrator\Downloads\CPLD-analysis\prod2u-agent-analysis-core-20260726\prod2u-agent-analysis-core-20260726.zip`
+  - SHA-256: `2a3744cdc641dbd6dc002a4ad53c125758e07cddec86e818097072165e9f195b`
+  - 文件数:206,未压缩 10.7 MB,压缩后 9.2 MB
+- **参考包**:`C:\Users\Administrator\Downloads\CPLD-analysis\prod2u-agent-analysis-core-20260726-reference\prod2u-agent-analysis-core-20260726-reference.zip`
+  - SHA-256: `70bdc59896c403b92af1dc3bea6f2d236f9ae056c3ab248d30d3da7106a820b3`
+  - 文件数:42,未压缩 21.1 MB,压缩后 10.2 MB
+- **固件交付包**:`C:\Users\Administrator\Downloads\CPLD-firmware\prod2u-door-temp-final-20260726.zip`
+  - SHA-256: `ee9dc94c5454d20a7db3cae8a5f16c44113bdb2298253873ca2f18896fe3fa2c`
+  - 自校验 sidecar:`C:\Users\Administrator\Downloads\CPLD-firmware\prod2u-door-temp-final-20260726.selftest.json`
+  - 包含 `fw.bit`、`PACKAGE-MANIFEST.json`(v2)、`td/original-final_td_report.json`、`td/TD-PROVENANCE.json`、`evidence/SOURCE-CLOSURE-COMPARISON.json`、约束/TD 输入、合同文档、离线矩阵 receipt
+- **离线验证矩阵收据**:`C:\Users\Administrator\CodexTemp\prod2u-matrix-cleanup\verification-matrix-receipt.json`(status: pass)
+- **TD 主建收据**:`C:\Users\Administrator\CodexTemp\cpld-td-primary2\report.json`(status: pass)
+- **位流**:`C:\Users\Administrator\CodexTemp\cpld-td-primary2\td\prod2u_p4_normal_v3\bitgen\prod2u_p4_normal_v3.bit`
+
+## 独立审计与验证
+
+以下审计均在最终 commit `2e299534c85e9927c17f4a09dcf01560dc351180` 上执行,且彼此隔离:
+
+1. **Python 单元与项目结构审计**(`pytest`)
+   - `166 passed, 1 skipped, 122 subtests passed`
+   - 收据:`prod2u-matrix-cleanup-python-prod2u-c\python-unit-receipt.json`
+
+2. **Icarus 完整 manifest 审计**
+   - 21 个 testbench 全部通过(含新增 `prod2u_por_tb` 与 `prod2u_p4_normal_v3_top_runtime_limit_tb`)
+   - 收据:`prod2u-matrix-cleanup-icarus-prod2u-c\icarus-receipt.json`
+
+3. **Verilator top lint 审计**
+   - 顶层 lint 通过,无未豁免警告
+   - 收据:`prod2u-matrix-cleanup-verilator-prod2u-c\verilator-receipt.json`
+
+4. **Formal 形式化验证审计**
+   - 全部 `.sby` 目标通过
+   - 收据:`prod2u-matrix-cleanup-formal-prod2u-c\formal-receipt.json`
+
+5. **cocotb 端到端 UART 审计**
+   - `test_prod2u_door_temp_uart_e2e` pass
+   - 收据:`prod2u-matrix-cleanup-cocotb-prod2u-c\cocotb-receipt.json`
+
+6. **TD 构建审计**
+   - 复用 `cpld-td-primary2` 位流;source closure 与 `project.json` 哈希与最终 `dev` 一致
+   - 资源:LUT 1113、Register 677、Packed Slice 570、BRAM 0、DSP 0
+   - 时序:Fmax 90.49 MHz、setup slack 28.949 ns、hold slack 0.046 ns
+   - 收据:`C:\Users\Administrator\CodexTemp\cpld-td-primary2\report.json`
+
+7. **包完整性审计**
+   - `prod2u-agent-analysis-core-20260726.zip` 生成并 zipfile 校验通过
+   - `prod2u-door-temp-final-20260726.zip` SHA-256 与 `SHA256SUMS.txt`、manifest 一致
+   - `td/build` 旧实验产物未进入固件包
+   - 外部 `.selftest.json` sidecar 与 ZIP 哈希一致
+
+## 安全与权限边界
+
+- 未访问 COM/JTAG、未烧录硬件、未安装驱动、未修改全局 PATH。
+- 未创建固定 ChatGPT Adviser 工件;`AGENTS.md` 仅允许按任务提供的 exact URL 使用现有会话。
+- 所有操作在隔离的临时工作树与外部 work root 中完成;`dev` 分支已干净合并。
+
+## 结论
+
+`prod2u-agent-analysis-core` 源码审计包、`prod2u-agent-analysis-core-reference` 参考包与 `prod2u-door-temp-final` 固件交付包已生成,离线验证矩阵全部通过,source closure 与 TD 位流一致。物理硬件验证不在本次任务边界内,状态为 `not_run`。

+ 72 - 0
docs/historical/README-windows-final-20260726.zh-CN.md

@@ -0,0 +1,72 @@
+# Prod2U 门控温度 CPLD
+
+本仓库当前为 `prod2u-door-temp` Final Convergence 候选工作树:25 MHz 主时钟、115200 8N1、无流控,统一帧为 `A5 5A type length payload CRC16_LE`。CRC-16/CCITT-FALSE 覆盖类型、长度和 payload,线路按低字节在前发送。
+
+正式类型只有:
+
+- `0x01 SET_ALL`:8 路 PTC、4 路 FAN、X/Y 两个马达命令,共 14 字节 payload;成功后无回复。
+- `0x02 GET_TEMPERATURE`:空 payload;完成 27 项 CT7428 读取后只回复一帧温度数据。
+- `0x82 TEMPERATURE_DATA`:27 字节 payload,总帧长 33 字节。
+
+PTC 和 FAN 的占空值为十进制 0..100。马达字段合法值为 `00`、`01`、`02`;两个 `00` 表示心跳保持。X/Y 均为 exhaust 角色,执行 450 步,步频 1000 step/s,半周期 500 us,方向建立时间约 1 ms,共用低有效使能。
+
+项目配置中的 PTC 顺序为 `G16,F16,N1,M1,R16,P16,P9,T9`,FAN 顺序为 `B1,C4,B5,A14`。PWM 使用 8 位协议值、7 位内部值、100 相位和 1042 个时钟槽,实际频率为约 19.993602047 Hz。启动目标为 PTC=0、FAN=10;看门狗超时为 10 s,目标为 PTC=0、FAN=20,500 us tick 对应 12500 个时钟、20000 个 tick。
+
+启动限位关门流程已冻结:上电后 `startup_close_seek` 驱动 X/Y 马达向 close 方向间歇寻限位,最多 10 次 burst、每次 450 步、步频 1000 step/s、burst 间隔 50 ms;任一轴到达 active-high 限位即停止该轴,`startup_done` 为 1 前主机 UART 帧与马达控制被门控。
+
+本项目不提供旧协议兼容,不新增其他帧类型、确认帧、忙状态帧、队列或分页行为。项目事实以 `project.json` 为准,协议说明见 `docs/prod2u-door-temp-protocol.zh-CN.md`。
+
+## Final Convergence 内容
+
+- 启动限位关门 RTL `src/modules/startup_close_seek.v` 已集成到 `src/top/prod2u_p4_normal_v3_top.v`,`x_limit_raw`/`y_limit_raw` 经二级同步后输入;`startup_done` 为 sticky,上电/复位后仅一次限位关门。
+- 运行时 limit 完全惰性:已新增 `tests/sim/prod2u_p4_normal_v3_top_runtime_limit_tb.v`,验证 `startup_done` 后限位变化不影响马达。
+- `project.json` 为唯一机器配置源,`config/source_closure.json` 和 `src/generated/td-source-manifest.json` 被构建/包/验证共享。
+- 退休的旧 RTL 已删除:`src/rtl/uart_rx_8n1.v`、`uart_tx_8n1.v`、`prod2u_p4_temperature_read.v`、`prod2u_p4_us_tick.v` 及其孤儿测试。
+- 激活 POR 回归 `tests/sim/prod2u_por_tb.v`,Icarus manifest 目标由 20 个增至 21 个。
+- `tools/run_verification_matrix.py` 已改为并发但简洁的矩阵运行器;每 lane 独立 work root 和 receipt。
+- `package_for_agent_analysis.py` 为 canonical 源码审计入口,核心 ZIP 卷使用 Python `zipfile` 生成,无需 7-Zip。
+- `tools/build_firmware_package.py` 生成最终 bitstream 交付包,强制 `--td-root` 绑定,包含 `SOURCE-CLOSURE-COMPARISON.json`、`TD-PROVENANCE.json`、manifest v2 与外部 `.selftest.json` sidecar。
+
+## 当前离线验证状态
+
+所有离线层均已通过同一 `verification_run_id` `prod2u-cleanup-20260726` 与最终 dev commit `d99f3542d73a468e29c151e3183dc2d229644d45`(最终包在 `4ddfbec3b1ec9363be051c9e5757b608359b918c` 生成,source closure 未变):
+
+| 层级 | 命令 | 状态 |
+|---|---|---:|
+| Python 单元/合同 | `python -B tools/run_verification_matrix.py --lanes python ...` | pass |
+| Icarus 完整 manifest(21 testbenches) | `python -B tools/run_verification_matrix.py --lanes icarus ...` | pass |
+| Verilator top lint | `python -B tools/run_verification_matrix.py --lanes verilator ...` | pass |
+| Formal | `python -B tools/run_verification_matrix.py --lanes formal ...` | pass |
+| cocotb | `python -B tools/run_verification_matrix.py --lanes cocotb ...` | pass |
+| TD primary(bitstream reused, source closure unchanged) | `C:\Users\Administrator\CodexTemp\cpld-td-primary2\report.json` | pass |
+| Core audit package | `package_for_agent_analysis.py` | pass |
+| Firmware delivery package | `tools/build_firmware_package.py` | pass |
+| Physical hardware | 不在本次任务边界 | not_run |
+
+```powershell
+# 一键运行完整离线矩阵(约 4-5 分钟)
+C:\Users\Administrator\CodexToolchains\CPLD\oss-cad-suite\latest\environment.ps1
+python -B tools/run_verification_matrix.py `
+  --work-root-prefix "C:\Users\Administrator\CodexTemp\prod2u-matrix" `
+  --verification-run-id prod2u-final-matrix `
+  --report-file "C:\Users\Administrator\CodexTemp\prod2u-matrix\matrix-receipt.json" `
+  --max-workers 4
+```
+
+## 最终交付物
+
+- 最终 `dev` commit: `d99f3542d73a468e29c151e3183dc2d229644d45`(包生成于 `4ddfbec3b1ec9363be051c9e5757b608359b918c`,source closure 未变)
+- 核心源码审计包:`C:\Users\Administrator\Downloads\CPLD-analysis\prod2u-agent-analysis-core-20260726\prod2u-agent-analysis-core-20260726.zip`
+  - SHA-256: `2a3744cdc641dbd6dc002a4ad53c125758e07cddec86e818097072165e9f195b`
+- 参考包:`C:\Users\Administrator\Downloads\CPLD-analysis\prod2u-agent-analysis-core-20260726-reference\prod2u-agent-analysis-core-20260726-reference.zip`
+  - SHA-256: `70bdc59896c403b92af1dc3bea6f2d236f9ae056c3ab248d30d3da7106a820b3`
+- 固件交付包:`C:\Users\Administrator\Downloads\CPLD-firmware\prod2u-door-temp-final-20260726.zip`
+  - 含 `fw.bit`、manifest v2、TD 报告/溯源、source-closure 对比、约束/TD 输入、合同文档、离线矩阵 receipt
+  - 固件包 SHA-256: `ee9dc94c5454d20a7db3cae8a5f16c44113bdb2298253873ca2f18896fe3fa2c`
+  - 自校验 sidecar:`prod2u-door-temp-final-20260726.selftest.json`
+  - Bitstream SHA-256: `d0f6b8c024df1a0895ea5ee9fb28f49b5eca697fbf31b1e897b6e99ee6b2a98a`
+- 离线验证矩阵收据:`C:\Users\Administrator\CodexTemp\prod2u-matrix-cleanup\verification-matrix-receipt.json` (status: pass)
+- TD 主建收据:`C:\Users\Administrator\CodexTemp\cpld-td-primary2\report.json` (status: pass)
+- 资源:LUT 1113、Register 677、Packed Slice 570、BRAM 0、DSP 0;Fmax 90.49 MHz,setup slack 28.949 ns,hold slack 0.046 ns。
+
+物理硬件验证不在本次任务边界内。

+ 17 - 0
docs/historical/README.md

@@ -0,0 +1,17 @@
+# Historical documents (not active authority)
+
+Files here preserve prior Windows-era or superseded claims for provenance.
+They are **not** the active product contract.
+
+Active authority:
+- `projects/prod2u-door-temp/project.json`
+- `projects/prod2u-door-temp/requirements.zh-CN.md`
+- `docs/prod2u-door-temp-protocol.zh-CN.md`
+- `AGENTS.md`
+- Root active docs: `README.zh-CN.md`, `ACCEPTANCE_MATRIX.md`, `FINAL_DELIVERY_REPORT.md`, `PLAN.md`, `OPEN_QUESTIONS.md`
+
+Known superseded claims archived here:
+- Windows primary toolchain paths (`C:\Users\...`)
+- SET_ALL 14-byte payload as current
+- Final commits `d99f354` / package commit `4ddfbec` as tip truth
+- Cocotb / full matrix reported as pass on those Windows cleanup commits

+ 20 - 6
docs/prod2u-door-temp-protocol.zh-CN.md

@@ -30,11 +30,25 @@ CRC 为 CRC-16/CCITT-FALSE,初值 `0xFFFF`、多项式 `0x1021`,覆盖 type
 | ---: | --- | --- |
 | 0–3 | 腔体 1–4 风扇 | 0..100 |
 | 4–7 | 腔体 1–4 PTC | 0..100(各复制到 2 路物理 PWM) |
-| 8 | 腔体 1 进风门 | 00/01/02 |
-| 9 | 出风门 X | 00/01/02 |
-| 10 | 出风门 Y | 00/01/02 |
+| 8 | 腔体 1 进风门(默认电磁铁) | 00/01/02 |
+| 9 | 出风门 X(步进马达) | 00/01/02 |
+| 10 | 出风门 Y(步进马达) | 00/01/02 |
 
-风门语义:`00` 无新动作(电磁铁保持);`01` 开门(DIR=0);`02` 关门(DIR=1)。步进轴每次非零动作 **450 步 / 1000 step/s**,可并行。
+### 门动作字节语义(马达 vs 电磁铁)
+
+同一编码 `00/01/02`,**按执行器类型解释不同**:
+
+| 值 | 步进马达(出风门 X/Y,及 motor-compat 进风轴) | 电磁铁(生产进风门) |
+| --- | --- | --- |
+| `00` | **stop**:不启动新的 jog;无新 STEP 上升沿 | **hold**:保持当前开/关 latch,不去激励翻转 |
+| `01` | 开门:DIR=0,固定 450 步 @ 1000 step/s | open latched(激励到开位语义) |
+| `02` | 关门:DIR=1,固定 450 步 @ 1000 step/s | closed latched |
+
+说明:
+
+- 不要把马达 `00` 写成“心跳保持”、也不要把电磁铁 `00` 写成“停止步进”。
+- X/Y 步进可并行;主机合同假设:马达运行中不发新命令。
+- 看门狗超时:马达停止;电磁铁去激励(inactive),见 `project.json` / requirements。
 
 **Golden vectors:**
 
@@ -49,7 +63,7 @@ length `0x0E`(14 字节旧格式)及任何非法字段/CRC/长度均**静默
 
 PTC 8 路物理 PWM 由 4 个 chamber 逻辑值复制。FAN 4 路独立。PWM ~20 Hz,duty 0..100。PTC active-high;FAN FPGA active-low(top 反相)。
 
-进风门默认 **电磁铁**(`intake_solenoid_out`);物理 pin 见 [`IO_EVIDENCE_MATRIX.zh-CN.md`](IO_EVIDENCE_MATRIX.zh-CN.md)。
+进风门默认 **电磁铁**(`intake_solenoid_out`);物理 ball **blocked**(未 LOC),见 [`IO_EVIDENCE_MATRIX.zh-CN.md`](IO_EVIDENCE_MATRIX.zh-CN.md)。
 
 ## 马达、限位和看门狗
 
@@ -61,4 +75,4 @@ PTC 8 路物理 PWM 由 4 个 chamber 逻辑值复制。FAN 4 路独立。PWM ~2
 
 ## 历史
 
-14 字节 SET_ALL 已作废,见 [`docs/historical/`](historical/)。
+14 字节 SET_ALL 与 Windows 最终包时代叙述已作废,见 [`docs/historical/`](historical/)。

+ 3 - 2
projects/prod2u-door-temp/requirements.zh-CN.md

@@ -31,9 +31,10 @@ CRC 为 CRC-16/CCITT-FALSE。正式类型只有 `0x01`、`0x02` 和 `0x82`。
 
 ## 风门与马达
 
-- `01`:DIR=0 开门,`02`:DIR=1 关门,`00`:停止 jog / 电磁铁保持。
+- 编码同为 `00/01/02`,语义按执行器分流:
+  - **步进马达**(出风门 X/Y):`00` = **stop**(无新 jog);`01` 开门 DIR=0;`02` 关门 DIR=1。
+  - **电磁铁**(默认进风门):`00` = **hold**(保持 latch);`01` open latched;`02` closed latched;reset/watchdog → inactive。
 - 出风门 X/Y:450 步、1000 step/s,可并行。
-- 进风门:默认电磁铁;01=open latched,02=closed latched,00=hold;reset/watchdog=inactive。
 - 限位仅 startup 校准;运行期 limit 不影响 jog。
 
 ## 输出与看门狗