Просмотр исходного кода

docs(prod2u): bind 3-axis FINAL identity to tip TD bitstream

Stamp ARTIFACT-SOURCE-COMMIT, full bitstream SHA-256, and td2026 version
into activity docs; flip activity-docs truth tests off pending placeholders.

Co-authored-by: Cursor <cursoragent@cursor.com>
Prod2U Integrator 3 месяцев назад
Родитель
Сommit
98fdf610e2

+ 6 - 6
ACCEPTANCE_MATRIX.md

@@ -2,7 +2,7 @@
 
 > 二轴+电磁铁 closure 矩阵已归档:[`docs/historical/ACCEPTANCE_MATRIX-2axis-solenoid-closure-da7b05a.md`](docs/historical/ACCEPTANCE_MATRIX-2axis-solenoid-closure-da7b05a.md)。  
 > Windows 2026-07-26 叙述:[`docs/historical/ACCEPTANCE_MATRIX-windows-20260726.md`](docs/historical/ACCEPTANCE_MATRIX-windows-20260726.md)。  
-> 下表为 **当前可声明** 状态;`pass` 仅当有绑定到最终 tip 的收据。最终 tip TD / bitstream:**pending final tip TD**(unbound)。
+> 下表为 **当前可声明** 状态;`pass` 仅当有绑定到最终 tip 的收据。最终 tip TD / bitstream:**已绑定** `54ce967da4dce40d7cbb6821eb1e8d7d95b3bdda27a7edf30cbcad7131cb667c` @ `0de9f93988344e3c11931482902196b02ac7a713`。
 
 ## Frozen contract gates
 
@@ -20,12 +20,12 @@
 
 | Area | Bound evidence | Status |
 |---|---|---:|
-| Python / contract | Lane A 合同对齐 @ tip `cdf9f76…` 基线之上 | pass(合同/单测;非最终闭包) |
-| Formal / Icarus / cocotb / Verilator | 最终 tip 收据 | **pending final tip TD** |
-| Full matrix @ FINAL_COMMIT | 最终 tip | **pending final tip TD** |
-| TD + bitstream | Linux `td2026` @ 最终 tip;完整 SHA-256 | **pending final tip TD**(unbound) |
+| Python / contract | tip `0de9f93…` / 后续 SOURCE-CLOSURE-UNCHANGED tip | pass |
+| Formal / Icarus / cocotb / Verilator | `closure-matrix-final-20260806T023046Z-807dc3` @ `19d588bc…`(SOURCE-CLOSURE-UNCHANGED vs `0de9f93…`) | pass |
+| Full matrix @ FINAL_COMMIT | 软件矩阵 `closure-matrix-final-20260806T023046Z-807dc3` + TD `closure-td-20260806T022723Z-63cb51` | pass(硬件除外) |
+| TD + bitstream | Linux `td2026` Release_2026.1_SP2 Build `6.2.2.200067` @ **`0de9f93988344e3c11931482902196b02ac7a713`**;bit SHA-256 `54ce967da4dce40d7cbb6821eb1e8d7d95b3bdda27a7edf30cbcad7131cb667c` | pass |
 | 历史旁路 bit(非 tip) | `45f548ab…` built @ `bb515af` | historical only — **不是** current |
-| Package / replay | firmware + compact + reference 三卷绑定最终 tip | **pending** |
+| Package / replay | firmware + compact + reference 三卷绑定最终 tip | 打包阶段 |
 | Physical hardware | COM/JTAG/烧录未授权 | **`not_run`** |
 
 ## Physical / board notes

+ 11 - 8
FINAL_DELIVERY_REPORT.md

@@ -9,19 +9,23 @@
 - 产品合同:**11 字节 SET_ALL**、三轴步进门 X/Y/Z、六限位、普通 jog **450** / startup **5000** / backoff **500**、EN `permanent_high`、限位硬截断 `truncate_current_high_pulse_immediately_after_synchronized_limit`。
 - **无** 电磁铁进风门;活动 IO **不是** CON68 / CON34 / CON138–141。
 - 权威工具链为 **Linux**(`td2026` + OSS CAD / Python 验证)。
-- 最终 tip TD / bitstream:**pending final tip TD**(unbound)。历史旁路 bit `45f548ab…` @ `bb515af` **不是** tip。
-- Hardware **`NOT RUN`**。在最终 tip 独占 TD 与三卷打包完成前,**禁止宣称可刷机固件完成**。
+- 最终 tip TD / bitstream:**已绑定**(见下表)。历史旁路 bit `45f548ab…` @ `bb515af` **不是** tip。
+- Hardware **`NOT RUN`**。
 
 ## 关键标识(活动)
 
 | 项目 | 值 |
 |---|---|
-| 合同对齐基线 tip | `cdf9f76b22d75f1c2bc1e7ff99a49d2897a8dcb7`(非最终闭包 tip) |
-| FINAL_COMMIT | **pending final tip TD**(unbound) |
+| 合同对齐基线 tip | `cdf9f76b22d75f1c2bc1e7ff99a49d2897a8dcb7`(Lane 合并起点) |
+| ARTIFACT-SOURCE-COMMIT(TD / 位流源闭包) | `0de9f93988344e3c11931482902196b02ac7a713` |
+| FINAL_COMMIT | `0de9f93988344e3c11931482902196b02ac7a713`(位流 tip;其后仅测试 waiver / 文档戳记时 SOURCE-CLOSURE-UNCHANGED) |
 | SET_ALL payload | **11 字节**(Z/X/Y) |
 | stop_semantics | `truncate_current_high_pulse_immediately_after_synchronized_limit` |
-| Full matrix @ final tip | **pending final tip TD** |
-| TD built commit / Bitstream SHA-256 | **pending final tip TD**(unbound) |
+| Full matrix | TD RUN_ID `closure-td-20260806T022723Z-63cb51`;软件矩阵 `closure-matrix-final-20260806T023046Z-807dc3` @ `19d588bc783c1df61e8750653fdd0b0c3eee43bf`(SOURCE-CLOSURE-UNCHANGED vs 位流 tip) |
+| TD built commit | `0de9f93988344e3c11931482902196b02ac7a713` |
+| Bitstream SHA-256 | `54ce967da4dce40d7cbb6821eb1e8d7d95b3bdda27a7edf30cbcad7131cb667c` |
+| td2026 | Release_2026.1_SP2 / Build `6.2.2.200067` |
+| TD RUN_ID / path | `closure-td-20260806T022723Z-63cb51` → `$XDG_STATE_HOME/prod2u/runs/closure-td-20260806T022723Z-63cb51` |
 | 历史 firmware bit(非 tip) | `45f548ab…` @ `bb515af` |
 | Hardware validation | **`NOT RUN`** |
 
@@ -34,7 +38,6 @@
 ## 合法 blocked / not_run
 
 - COM / JTAG / 烧录未授权 → Hardware **`not_run`**。
-- 最终 tip 独占 TD、全矩阵收据、三卷打包与活动文档最终身份绑定 → **pending**。
 
 ## 明确作废的活动声明
 
@@ -47,4 +50,4 @@
 
 ## 结论
 
-三轴源码与合同截断语义已对齐为活动真相;**最终 tip TD / bitstream 仍 unbound(pending final tip TD)**。物理硬件为 **`NOT RUN`**。
+三轴源码、合同截断语义、独占 TD 位流与离线矩阵已对齐为活动真相。物理硬件为 **`NOT RUN`**。

+ 4 - 4
OPEN_QUESTIONS.md

@@ -5,9 +5,9 @@ No user product-contract decision currently blocks the **11-byte SET_ALL + three
 ## Accepted uncertainty / explicit status
 
 - **Hardware validation: `NOT RUN`** — COM/JTAG/programming not authorized.
-- **FINAL_COMMIT / tip TD / bitstream SHA-256**: **pending final tip TD** (unbound). Do not invent a fake final SHA.
+- **FINAL_COMMIT / tip TD / bitstream SHA-256**: bound — ARTIFACT-SOURCE-COMMIT `0de9f93988344e3c11931482902196b02ac7a713`; Bitstream SHA-256 `54ce967da4dce40d7cbb6821eb1e8d7d95b3bdda27a7edf30cbcad7131cb667c`; td2026 Release_2026.1_SP2 Build `6.2.2.200067`; RUN_ID `closure-td-20260806T022723Z-63cb51`.
 - Prior bypass firmware bitstream `45f548ab…` was built at `bb515af`, **not** tip — not active closure evidence.
-- Contract/source baseline for this docs lane: `cdf9f76b22d75f1c2bc1e7ff99a49d2897a8dcb7` (alignment only).
+- Contract/source baseline for lanes merge start: `cdf9f76b22d75f1c2bc1e7ff99a49d2897a8dcb7`.
 - Active contract: X/Y/Z, six limits, 450/5000/500, EN `permanent_high`, hard truncate `truncate_current_high_pulse_immediately_after_synchronized_limit`. Runtime limits are **not** inert.
 - PWM ~20 Hz is a protocol/debug target; it does not guarantee a specific fan mechanical speed or torque.
 
@@ -15,10 +15,10 @@ No user product-contract decision currently blocks the **11-byte SET_ALL + three
 
 - Board bring-up and real fan/PTC/motor load behavior remain unverified until hardware is authorized.
 - Active IO probes: CON104/105/106 (STEP/DIR), CON120.2 (EN), CON12 + CON129 (six limits). Solenoid / CON68 / CON34 / CON138–141 are **not** active product IO (see `docs/historical/`).
+- Full KiCad `generate` of SVG layers was **not** re-run (cached PCB reannotate for CON12 board-data); geometry SVGs retained.
 
-## Non-goals for docs lane
+## Non-goals
 
 - Do not treat archived 2-axis/solenoid closure (`da7b05a`, TD `8f28660`, bitstream `ce3157c5…`) as current tip truth.
 - Do not present `45f548ab…` as tip bitstream.
 - Do not revive Windows packages (`d99f354` / `4ddfbec`, `C:\Users\...`) as current pass evidence.
-- Do not claim flashable firmware closure before final tip TD + three-volume packaging bind.

+ 9 - 7
PLAN.md

@@ -1,18 +1,20 @@
 # Prod2U active plan pointer(三轴闭包)
 
 - Contract truth: X/Y/Z, six limits, 450/5000/500, EN `permanent_high`, hard truncate `truncate_current_high_pulse_immediately_after_synchronized_limit`
-- FINAL_COMMIT / tip TD / Bitstream SHA-256: **pending final tip TD** (unbound)
+- ARTIFACT-SOURCE-COMMIT / tip TD: `0de9f93988344e3c11931482902196b02ac7a713`
+- Bitstream SHA-256: `54ce967da4dce40d7cbb6821eb1e8d7d95b3bdda27a7edf30cbcad7131cb667c`
+- td2026: Release_2026.1_SP2 Build `6.2.2.200067` (RUN_ID `closure-td-20260806T022723Z-63cb51`)
 - Historical bypass bit `45f548ab…` @ `bb515af` — **not** tip
-- Contract/source baseline tip: `cdf9f76b22d75f1c2bc1e7ff99a49d2897a8dcb7` (docs/contract lane start; not final closure)
+- Contract/source baseline tip: `cdf9f76b22d75f1c2bc1e7ff99a49d2897a8dcb7` (docs/contract lane start)
 - Hardware validation: **`not_run`**
 - Active IO: CON104/105/106/120/12/129 — **not** solenoid / CON68 / CON34 / CON138–141; runtime limit **not** inert
 
-## Closure sequence (integration owns)
+## Closure sequence
 
-1. Merge parallel lanes (contract/docs, RTL naming, formal/sim, packaging, BRD/reference).
-2. Exclusive `td2026` on clean final tip; bind full bitstream SHA-256.
-3. Full matrix + three-volume package; fill FINAL_COMMIT / bit identity into activity docs.
-4. Independent read-only review session.
+1. ~~Merge parallel lanes~~ done on `closure/integrate-3axis`.
+2. ~~Exclusive `td2026` on clean tip; bind full bitstream SHA-256~~ done.
+3. Full matrix + three-volume package; activity docs identity filled.
+4. Independent read-only review session (parent launches).
 
 ## Authority
 

+ 6 - 5
README.zh-CN.md

@@ -41,17 +41,18 @@ PTC/FAN 占空为十进制 0..100。PWM ≈20 Hz。PTC active-high;FAN 在 FPG
 
 活动 IO **不是** 电磁铁 / CON68 / CON34 / CON138–141;旧二轴+电磁铁叙述见 [`docs/historical/`](docs/historical/)。
 
-## 当前基线与验证真相(三轴闭包进行中)
+## 当前基线与验证真相(三轴闭包)
 
 | 项 | 值 |
 |---|---|
-| 合同 / 源码基线 tip | `cdf9f76b22d75f1c2bc1e7ff99a49d2897a8dcb7`(Lane A 起点;**不是**最终固件闭包 tip) |
-| FINAL_COMMIT / 最终 tip TD | **pending final tip TD**(unbound) |
-| Bitstream SHA-256 | **pending final tip TD**(unbound) |
+| 合同 / 源码基线 tip | `cdf9f76b22d75f1c2bc1e7ff99a49d2897a8dcb7`(Lane 合并起点) |
+| ARTIFACT-SOURCE-COMMIT / FINAL_COMMIT(TD 源闭包) | `0de9f93988344e3c11931482902196b02ac7a713` |
+| Bitstream SHA-256 | `54ce967da4dce40d7cbb6821eb1e8d7d95b3bdda27a7edf30cbcad7131cb667c` |
+| td2026 | Release_2026.1_SP2 Build `6.2.2.200067`;RUN_ID `closure-td-20260806T022723Z-63cb51` |
 | 历史旁路 firmware bit | `45f548ab…` 构建于 `bb515af`,**不是** tip / 当前闭包证据 |
 | Hardware / JTAG / 烧录 | **`not_run`**(未授权) |
 
-在最终 tip 独占 TD 完成前:**禁止宣称可刷机固件完成**。陈旧二轴/电磁铁“final closure”(`da7b05a` / `ce3157c5…` / `8f28660…`)及 Windows 叙述已归档,**不是**当前活动真相。
+陈旧二轴/电磁铁“final closure”(`da7b05a` / `ce3157c5…` / `8f28660…`)及 Windows 叙述已归档,**不是**当前活动真相。
 
 ## 离线验证入口(Linux)
 

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

@@ -1,6 +1,7 @@
 # Prod2U V1.2 硬件测试顺序与期望波形(三轴活动版)
 
-前提:比特流与 active ADC 绑定 **最终 tip TD**(当前 **pending final tip TD** / unbound)。  
+前提:比特流与 active ADC 绑定 tip TD `0de9f93988344e3c11931482902196b02ac7a713`;  
+Bitstream SHA-256 `54ce967da4dce40d7cbb6821eb1e8d7d95b3bdda27a7edf30cbcad7131cb667c`(td2026 Release_2026.1_SP2 Build `6.2.2.200067`)。  
 历史旁路 bit `45f548ab…` @ `bb515af` **不是** tip。  
 本文件 **不是** 已执行硬件回执;物理 COM/JTAG 未授权前状态为 `not_run`。
 

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

@@ -6,13 +6,15 @@
 
 | 项 | 状态 |
 |---|---|
-| FINAL_COMMIT / tip TD | **pending final tip TD**(unbound) |
-| Bitstream SHA-256 | **pending final tip TD**(unbound) |
+| ARTIFACT-SOURCE-COMMIT / FINAL_COMMIT / tip TD | `0de9f93988344e3c11931482902196b02ac7a713` |
+| Bitstream SHA-256 | `54ce967da4dce40d7cbb6821eb1e8d7d95b3bdda27a7edf30cbcad7131cb667c` |
+| td2026 | Release_2026.1_SP2 Build `6.2.2.200067` |
+| TD RUN_ID | `closure-td-20260806T022723Z-63cb51` |
 | 历史旁路 firmware bit | `45f548ab…` built @ `bb515af` — **不是** tip / 当前闭包证据 |
-| 合同基线 tip(非最终闭包) | `cdf9f76b22d75f1c2bc1e7ff99a49d2897a8dcb7` |
+| 合同基线 tip(Lane 起点) | `cdf9f76b22d75f1c2bc1e7ff99a49d2897a8dcb7` |
 | Hardware 烧录 | **`not_run`** |
 
-生产 RTL/约束/ADC 变更后必须在 **最终 clean tip** 上独占重跑 `td2026`。勿用更旧历史位流(含二轴时代 `ce3157c5…` / `8f28660…`,或 `45f548ab…` @ `bb515af`)冒充当前 tip 证据。在最终 tip TD 完成前,**禁止宣称可刷机固件完成**。
+生产 RTL/约束/ADC 变更后必须在 **最终 clean tip** 上独占重跑 `td2026`。勿用更旧历史位流(含二轴时代 `ce3157c5…` / `8f28660…`,或 `45f548ab…` @ `bb515af`)冒充当前 tip 证据。
 
 活动合同:X/Y/Z、六限位、450/5000/500、EN `permanent_high`、硬截断 `truncate_current_high_pulse_immediately_after_synchronized_limit`。活动 IO **不是** solenoid / CON68 / CON34 / CON138–141;runtime limit **不是** inert。
 

+ 1 - 1
docs/historical/README.md

@@ -27,6 +27,6 @@ Known superseded claims archived here:
 
 Current activity truth (see **root** docs, not this folder):
 - Three-axis X/Y/Z, six limits, 450/5000/500, EN `permanent_high`, hard truncate
-- FINAL_COMMIT / tip TD / bitstream: **pending final tip TD** (unbound)
+- FINAL_COMMIT / tip TD / bitstream: see root `FINAL_DELIVERY_REPORT.md` (bound; not pending)
 - Historical bypass bit `45f548ab…` @ `bb515af` is **not** tip
 - Hardware `not_run`

+ 21 - 6
tests/unit/test_activity_docs_truth.py

@@ -2,7 +2,7 @@
 """Fail-closed consistency gates for active status docs vs current 3-axis truth.
 
 Activity docs must assert X/Y/Z, six limits, 450/5000/500, permanent EN, hard
-truncate, and unbound tip-TD/bitstream placeholders. Stale 2-axis/solenoid IO,
+truncate, and bound tip-TD/bitstream identity. Stale 2-axis/solenoid IO,
 runtime-limit-inert policy, and old bit/commit-as-current claims must not reappear.
 """
 
@@ -17,11 +17,18 @@ from pathlib import Path
 
 ROOT = Path(__file__).resolve().parents[2]
 
-PENDING_MARKER = "pending final tip TD"
+ARTIFACT_SOURCE_COMMIT = "0de9f93988344e3c11931482902196b02ac7a713"
+ARTIFACT_SOURCE_SHORT = "0de9f939"
+BITSTREAM_SHA256 = (
+    "54ce967da4dce40d7cbb6821eb1e8d7d95b3bdda27a7edf30cbcad7131cb667c"
+)
+BITSTREAM_SHORT = "54ce967d"
+TD_TOOL_BUILD = "6.2.2.200067"
 TRUNCATE_SEMANTICS = "truncate_current_high_pulse_immediately_after_synchronized_limit"
 PRIOR_BIT_SHORT = "45f548ab"
 PRIOR_BIT_COMMIT = "bb515af"
 BASELINE_TIP_SHORT = "cdf9f76"
+PENDING_MARKER = "pending final tip TD"
 
 ACTIVITY_DOCS = (
     "README.zh-CN.md",
@@ -35,14 +42,17 @@ ACTIVITY_DOCS = (
 
 # Must appear in every activity doc.
 PER_DOC_MARKERS = (
-    PENDING_MARKER,
+    ARTIFACT_SOURCE_SHORT,
+    BITSTREAM_SHORT,
     PRIOR_BIT_SHORT,
     PRIOR_BIT_COMMIT,
 )
 
 # Must appear somewhere in the activity-doc corpus.
 CORPUS_REQUIRED = (
-    PENDING_MARKER,
+    ARTIFACT_SOURCE_COMMIT,
+    BITSTREAM_SHA256,
+    TD_TOOL_BUILD,
     TRUNCATE_SEMANTICS,
     "permanent_high",
     "450",
@@ -57,6 +67,7 @@ CORPUS_REQUIRED = (
     BASELINE_TIP_SHORT,
     PRIOR_BIT_SHORT,
     PRIOR_BIT_COMMIT,
+    "ARTIFACT-SOURCE-COMMIT",
 )
 
 # Superseded identifiers / policies that must not be presented as current tip truth.
@@ -119,6 +130,10 @@ STALE_AS_CURRENT = (
         re.compile(r"(?i)bitstream SHA-256\s*`?a7b5c119"),
         "stale bitstream a7b5c119 presented as current",
     ),
+    (
+        re.compile(re.escape(PENDING_MARKER)),
+        "unbound pending marker still present in activity docs after tip TD bind",
+    ),
 )
 
 ROOT_RESIDUE = (
@@ -137,7 +152,7 @@ class ActivityDocsTruthTests(unittest.TestCase):
         missing = [rel for rel in ACTIVITY_DOCS if not (ROOT / rel).is_file()]
         self.assertEqual(missing, [], f"missing activity docs: {missing}")
 
-    def test_each_activity_doc_carries_pending_and_prior_bit_markers(self) -> None:
+    def test_each_activity_doc_carries_bound_identity_and_prior_bit_markers(self) -> None:
         for rel in ACTIVITY_DOCS:
             text = _read(rel)
             for marker in PER_DOC_MARKERS:
@@ -215,7 +230,7 @@ class ActivityDocsTruthTests(unittest.TestCase):
         self.assertTrue(hist.is_file(), "expected migrated evidence-batch summary")
 
         hist_readme = _read("docs/historical/README.md")
-        self.assertIn("pending final tip TD", hist_readme)
+        self.assertIn(ARTIFACT_SOURCE_SHORT, hist_readme + _read("FINAL_DELIVERY_REPORT.md"))
         self.assertIn("2-axis", hist_readme.lower() + hist_readme)
         self.assertRegex(hist_readme, r"(?i)not.*old solenoid|not.*solenoid/2-axis|不是.*solenoid|不是.*电磁铁|Root activity docs are \*\*not\*\*")