Prod2U CPLD Operating Rules
This repository is the active dev branch for the Prod2U multi-project UART refactor.
Authority
projects/<project_id>/project.json is the only machine configuration source.
projects/prod2u-door-temp/requirements.zh-CN.md records the project requirements.
docs/prod2u-door-temp-protocol.zh-CN.md records the host-facing frame contract.
- Generated files and the active ADC are derived outputs; do not hand-edit them independently.
- Phase 1 covers the door-temperature project contract only. Production RTL, TD/top, hardware, and RTL/TD behavior tests remain outside this worktree ownership; Python contract tests are in scope.
Coordination
- 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.
- Tasks marked
[DYNAMIC-NATIVE-MA] use the current client's native coordination tools.
- Root owns interface freezes, integration, conflict resolution, and final candidate selection.
- Each temporary worktree or owned path has one coordinator-assigned owner.
- Test agents do not modify production RTL. The coordinator does not modify tests owned by the test engineer.
- The Harness must not start Codex, call model APIs, or create agent threads.
Phase boundaries
- Phase 0 must not implement product functionality or modify RTL, project configuration, protocol, pins, TD, or product contracts.
- Phase 0 established coordination, Git isolation, ownership validation, and minimal evidence.
- Phase 1 freezes the 25 MHz / 115200 8N1 contract, project mappings, schema, generator, protocol reference model, generated artifacts, and active ADC.
- Phase 2 owns production RTL, simulations, TD scripts, bitstreams, and broader verification.
- Phase 1 must review every nested
AGENTS.md and replace rules that conflict with the accepted product contract; this run audited them and kept non-conflicting rules unchanged.
- Physical hardware access, programming, drivers, global PATH changes, and external model services are prohibited.
Safety and evidence
- 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 changes and ignored generated evidence.
- Every run uses one 32-character lowercase hexadecimal
run_id.