Four-person daily workspace.yaml and ws commands (v0.2.0)

Codex Resource Selftest 9ff59462db gitignore: ignore iverilog vvp artifacts 4 meses atrás
.agents 8851a8dcb8 Final convergence: agent-team infrastructure, verification matrix, and receipt provenance. 4 meses atrás
.codex bb31d234a5 governance: define final convergence operating rules 4 meses atrás
.cursor 8851a8dcb8 Final convergence: agent-team infrastructure, verification matrix, and receipt provenance. 4 meses atrás
.devin 2e8a15fb16 fix: limit_sync_valid/WAIT_SYNC startup race, real top-level startup tests, mutation test, and agent guard local config. 4 meses atrás
agent-team 2e8a15fb16 fix: limit_sync_valid/WAIT_SYNC startup race, real top-level startup tests, mutation test, and agent guard local config. 4 meses atrás
config 2e8a15fb16 fix: limit_sync_valid/WAIT_SYNC startup race, real top-level startup tests, mutation test, and agent guard local config. 4 meses atrás
constraints 55c24cf378 generator: derive phase-1 artifacts and active ADC 4 meses atrás
docs 4c11840881 feat: per-axis limit stop during startup burst 4 meses atrás
projects 4c11840881 feat: per-axis limit stop during startup burst 4 meses atrás
receipts aeb23afeaa Fix Prod2U SRAM startup and binary921 evidence flow 4 meses atrás
reference 8851a8dcb8 Final convergence: agent-team infrastructure, verification matrix, and receipt provenance. 4 meses atrás
requirements 831164b495 feat(prod2u): add profile 4 fan tach control 4 meses atrás
runs a09ff02405 chore: align verification package contract 4 meses atrás
schemas 4c11840881 feat: per-axis limit stop during startup burst 4 meses atrás
src 4c11840881 feat: per-axis limit stop during startup burst 4 meses atrás
td 3cbddfc50f Update TD phy CDC checks for x/y limit synchronizers. 4 meses atrás
tests 4c11840881 feat: per-axis limit stop during startup burst 4 meses atrás
tools 4c11840881 feat: per-axis limit stop during startup burst 4 meses atrás
.gitattributes ddd52a2aef chore(snapshot): checkpoint normal v3 before minimal motion rewrite 4 meses atrás
.gitignore 9ff59462db gitignore: ignore iverilog vvp artifacts 4 meses atrás
ACCEPTANCE_MATRIX.md 8851a8dcb8 Final convergence: agent-team infrastructure, verification matrix, and receipt provenance. 4 meses atrás
AGENTS.md bb31d234a5 governance: define final convergence operating rules 4 meses atrás
BASELINE_REPORT.md 3eb23eb650 chore: freeze baseline and refactor operating rules 4 meses atrás
FINAL_DELIVERY_REPORT.md a5f63413a9 docs: finalize README, PLAN, WORKTREE_PLAN and add FINAL_DELIVERY_REPORT for VERIFIED_OFFLINE package. 4 meses atrás
OPEN_QUESTIONS.md a09ff02405 chore: align verification package contract 4 meses atrás
PACKAGE_FOR_AGENT_ANALYSIS.README.zh-CN.md 4aeb07a8c2 chore: migrate CPLD reference assets and audit tooling 4 meses atrás
PLAN.md a5f63413a9 docs: finalize README, PLAN, WORKTREE_PLAN and add FINAL_DELIVERY_REPORT for VERIFIED_OFFLINE package. 4 meses atrás
README.zh-CN.md a5f63413a9 docs: finalize README, PLAN, WORKTREE_PLAN and add FINAL_DELIVERY_REPORT for VERIFIED_OFFLINE package. 4 meses atrás
WORKTREE_PLAN.md a5f63413a9 docs: finalize README, PLAN, WORKTREE_PLAN and add FINAL_DELIVERY_REPORT for VERIFIED_OFFLINE package. 4 meses atrás
package_for_agent_analysis.py 4aeb07a8c2 chore: migrate CPLD reference assets and audit tooling 4 meses atrás
pyproject.toml 818a603b1f Final convergence: startup limit close/seek, source-of-truth refactor, verification matrix. 4 meses atrás

README.zh-CN.md

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 经二级同步后输入。
  • project.json、schemas/project.schema.json、tools/generate_project.py 已加入 limits.startup 并生成 src/generated/prod2u_door_temp_params.vh。
  • 生成器事实源为 config/source_closure.json,产物 src/generated/td-source-manifest.json 被所有构建/包/验证消费者共享。
  • tools/codex_harness.py 已修正 receipt provenance:不再重新填充缺失的 commit/hash/run_id 绑定,不得把不完整 receipt 标记为权威。
  • 新增 tests/unit/test_startup_close_seek.py、tests/sim/startup_close_seek_tb.v、tests/formal/startup_close_seek.sby/startup_close_seek_formal.v。
  • 新增跨工具 Agent Team 基础设施:agent-team/contract.json、.devin/*、.agents/*、.cursor/rules/*、tools/agent_guard.py、tools/agent_team_harness.py、tools/run_verification_matrix.py、tools/sync_agent_adapters.py。

当前离线验证状态

所有离线层均已通过同一 verification_run_id 与 commit:

层级 命令 状态
Python 单元/合同 python -B tools/run_verification_matrix.py --lanes python ... pass
Icarus 完整 manifest 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 + confirmation python -B tools/prod2u_p4_harness.py td-build ... pass
Package selftest python -B tools/prod2u_p4_harness.py package-selftest ... pass
Final gate python -B tools/prod2u_p4_harness.py p4-normal-v3-final-gate ... pass
Package VERIFIED_OFFLINE promoted
# 一键运行完整离线矩阵(含 cocotb 约 10 分钟)
python -B tools/run_verification_matrix.py `
  --work-root-prefix "C:\Users\Administrator\CodexTemp\prod2u-matrix-3e7bb09" `
  --verification-run-id f159b9192a4d4e0bbdcf1585c63bb2f8 `
  --report-file "C:\Users\Administrator\CodexTemp\prod2u-matrix-3e7bb09\matrix-receipt.json"

最终交付物

  • 最终 commit: 3e7bb098dc103c8c3331894218349399173a3be9
  • VERIFIED_OFFLINE 包:C:\Users\Administrator\CodexTemp\prod2u-dist-3e7bb09\prod2u-door-temp\3e7bb098dc103c8c3331894218349399173a3be9-2a36a0280c42a12c
  • 包自测试收据:...\evidence\package-selftest-result.json (status: pass)
  • 最终门 receipts:C:\Users\Administrator\CodexTemp\prod2u-dist-3e7bb09\final-gate-receipt.json (status: pass)
  • 主/确认位流 SHA-256:2a36a0280c42a12cc0ac3d19ac72125db654c3950695a775b1fe3809a1f09eb4(两者一致)

物理硬件验证不在本次任务边界内。