|
@@ -1,42 +1,38 @@
|
|
|
-# CPLD UART Refactor Operating Rules
|
|
|
|
|
|
|
+# Prod2U CPLD Operating Rules
|
|
|
|
|
|
|
|
This repository is the active `dev` branch for the Prod2U multi-project UART refactor.
|
|
This repository is the active `dev` branch for the Prod2U multi-project UART refactor.
|
|
|
|
|
|
|
|
-## Authority
|
|
|
|
|
|
|
+## [DYNAMIC-NATIVE-MA]
|
|
|
|
|
|
|
|
-- `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.
|
|
|
|
|
|
|
+- Tasks marked `[DYNAMIC-NATIVE-MA]` must use the current client's native multi-agent/subagent tools.
|
|
|
|
|
+- Root builds a dependency graph before delegation and only runs independent, clearly bounded work in parallel.
|
|
|
|
|
+- Normal concurrency is 2-4 agents; 6 is the hard upper bound.
|
|
|
|
|
+- Prefer parallel read-heavy exploration, test review, and log triage.
|
|
|
|
|
+- Write-heavy work uses independent worktrees or mutually exclusive owned paths.
|
|
|
|
|
+- Two write agents must never modify the same file concurrently.
|
|
|
|
|
+- Test agents do not modify production RTL; reviewers are read-only.
|
|
|
|
|
+- Root owns interface freezes, integration, conflict resolution, and final candidate selection.
|
|
|
|
|
+- The Harness must not start Codex, call model APIs, or create agent threads.
|
|
|
|
|
+- Background build/test processes are ordinary processes, not subagents.
|
|
|
|
|
|
|
|
-## Protocol
|
|
|
|
|
|
|
+## Phase boundaries
|
|
|
|
|
|
|
|
-- 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.
|
|
|
|
|
|
|
+- Phase 0 establishes native coordination, Git isolation, ownership validation, and minimal evidence only.
|
|
|
|
|
+- Phase 0 must not implement product functionality or modify RTL, project configuration, protocol, pins, TD, or product contracts.
|
|
|
|
|
+- Phase 1 must review every nested `AGENTS.md` before product work and replace historical rules that conflict with the accepted Phase 1 product contract.
|
|
|
|
|
+- Historical v1 product prohibitions are not a permanent blocker for a later accepted Phase 1 contract; Phase 0 remains strictly non-product.
|
|
|
|
|
|
|
|
## Safety and evidence
|
|
## 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.
|
|
|
|
|
|
|
+- Do not call ChatGPT Adviser or create Adviser artifacts.
|
|
|
|
|
+- Do not access COM/JTAG, program hardware, install drivers, or modify global PATH.
|
|
|
|
|
+- Keep source, offline simulation, formal, TD, package, and physical-hardware evidence separate.
|
|
|
|
|
+- Blocked, dry-run, fixture, and partial evidence is not a pass.
|
|
|
|
|
+- Preserve unrelated dirty work and ignored generated evidence.
|
|
|
|
|
|
|
|
-## Ownership
|
|
|
|
|
|
|
+## Ownership and delivery
|
|
|
|
|
|
|
|
-- 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.
|
|
|
|
|
|
|
+- Each temporary worktree or owned path has one coordinator-assigned owner.
|
|
|
|
|
+- Only Root integrates commits into `dev` and modifies production tops.
|
|
|
|
|
+- Every run uses one 32-character lowercase hexadecimal `run_id`.
|
|
|
|
|
+- Phase 0 changed paths are restricted to the approved allowlist and every final worktree must be clean.
|