AGENTS.md 2.1 KB

CPLD UART Refactor Operating Rules

This repository is the active dev branch for the Prod2U multi-project UART refactor.

Authority

  • CPLD_多项目_UART协议_项目适配_Codex并行Harness_详细设计_v1.0.md is the design authority.
  • BASELINE_REPORT.md records the frozen 1920ab3e source/tag and 7c5918ac bitstream baseline.
  • projects/<project_id>/project.json is the only machine configuration source.
  • Hardware facts must match the selected baseline package, current production constraints, and TD project. Conflicts are blockers.

Protocol

  • UART is fixed at 115200 8N1, no flow control, 25 MHz, 217 clocks per bit.
  • Frames are A5 5A type payload_length payload crc16_le.
  • CRC is CRC-16/CCITT-FALSE over type, length, and payload only.
  • The only supported types are 0x01 SET_ALL, 0x02 GET_TEMPERATURE, and 0x82 TEMPERATURE_DATA.
  • Do not restore Binary921, 921600, ACK, ERROR, BUSY, JOG, STOP, watchdog, replay, pagination, limits, or runtime project discovery.

Safety and evidence

  • Never call ChatGPT Adviser or create Adviser artifacts.
  • Never open COM/JTAG, program hardware, install drivers, or modify global PATH.
  • Distinguish source, offline simulation, formal, TD, package, and physical hardware evidence.
  • A blocked, dry-run, fixture, or partial receipt is not a pass.
  • Preserve ignored generated evidence unless the user explicitly requests its removal.

Ownership

  • Each temporary agent worktree owns an exclusive path set.
  • Only the coordinator integrates commits into dev and modifies the production top.
  • Tests do not modify production RTL.
  • Common UART/CRC/frame modules do not know project channel counts or pins.
  • Project modules do not parse UART bytes directly.

Delivery

  • Every run uses one 32-character lowercase run_id.
  • Receipts bind run ID, commit, project configuration SHA-256, and bitstream SHA-256.
  • Generate an UNVERIFIED package immediately after a non-empty TD bitstream.
  • Promote the same bitstream to VERIFIED only after all applicable tests pass.
  • Do not delete the old production RTL until the new top produces a non-empty bitstream.